* projects/{project_id}/locations/{location} *
Note that this EntryGroup and its child resources may not actually be stored in the * location in this name. - * @param entryGroupId Required. The id of the entry group to create. + * @param entryGroupId Required. The id of the entry group to create. The id must begin with a + * letter or underscore, contain only English letters, numbers and underscores, and be at most + * 64 characters. * @param entryGroup The entry group to create. Defaults to an empty entry group. * @throws com.google.api.gax.rpc.ApiException if the remote call fails */ diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java index 95567f6c..03f0068a 100644 --- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/DataCatalogSettings.java @@ -29,34 +29,6 @@ import com.google.api.gax.rpc.PagedCallSettings; import com.google.api.gax.rpc.TransportChannelProvider; import com.google.api.gax.rpc.UnaryCallSettings; -import com.google.cloud.datacatalog.CreateEntryGroupRequest; -import com.google.cloud.datacatalog.CreateEntryRequest; -import com.google.cloud.datacatalog.CreateTagRequest; -import com.google.cloud.datacatalog.CreateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.CreateTagTemplateRequest; -import com.google.cloud.datacatalog.DeleteEntryGroupRequest; -import com.google.cloud.datacatalog.DeleteEntryRequest; -import com.google.cloud.datacatalog.DeleteTagRequest; -import com.google.cloud.datacatalog.DeleteTagTemplateFieldRequest; -import com.google.cloud.datacatalog.DeleteTagTemplateRequest; -import com.google.cloud.datacatalog.Entry; -import com.google.cloud.datacatalog.EntryGroup; -import com.google.cloud.datacatalog.GetEntryGroupRequest; -import com.google.cloud.datacatalog.GetEntryRequest; -import com.google.cloud.datacatalog.GetTagTemplateRequest; -import com.google.cloud.datacatalog.ListTagsRequest; -import com.google.cloud.datacatalog.ListTagsResponse; -import com.google.cloud.datacatalog.LookupEntryRequest; -import com.google.cloud.datacatalog.RenameTagTemplateFieldRequest; -import com.google.cloud.datacatalog.SearchCatalogRequest; -import com.google.cloud.datacatalog.SearchCatalogResponse; -import com.google.cloud.datacatalog.Tag; -import com.google.cloud.datacatalog.TagTemplate; -import com.google.cloud.datacatalog.TagTemplateField; -import com.google.cloud.datacatalog.UpdateEntryRequest; -import com.google.cloud.datacatalog.UpdateTagRequest; -import com.google.cloud.datacatalog.UpdateTagTemplateFieldRequest; -import com.google.cloud.datacatalog.UpdateTagTemplateRequest; import com.google.cloud.datacatalog.v1beta1.stub.DataCatalogStubSettings; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java new file mode 100644 index 00000000..06c957c7 --- /dev/null +++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/PolicyTagManagerClient.java @@ -0,0 +1,694 @@ +/* + * Copyright 2019 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +package com.google.cloud.datacatalog.v1beta1; + +import com.google.api.core.BetaApi; +import com.google.api.gax.core.BackgroundResource; +import com.google.api.gax.rpc.UnaryCallable; +import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerStub; +import com.google.cloud.datacatalog.v1beta1.stub.PolicyTagManagerStubSettings; +import com.google.iam.v1.GetIamPolicyRequest; +import com.google.iam.v1.Policy; +import com.google.iam.v1.SetIamPolicyRequest; +import com.google.iam.v1.TestIamPermissionsRequest; +import com.google.iam.v1.TestIamPermissionsResponse; +import com.google.protobuf.Empty; +import java.io.IOException; +import java.util.concurrent.TimeUnit; +import javax.annotation.Generated; + +// AUTO-GENERATED DOCUMENTATION AND SERVICE +/** + * Service Description: Policy tag manager API service allows clients to manage their taxonomies and + * policy tags data. + * + *
This class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
+ *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * CreateTaxonomyRequest request = CreateTaxonomyRequest.newBuilder().build();
+ * Taxonomy response = policyTagManagerClient.createTaxonomy(request);
+ * }
+ *
+ *
+ *
+ * Note: close() needs to be called on the policyTagManagerClient object to clean up resources + * such as threads. In the example above, try-with-resources is used, which automatically calls + * close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of PolicyTagManagerSettings to + * create(). For example: + * + *
To customize credentials: + * + *
+ *
+ * PolicyTagManagerSettings policyTagManagerSettings =
+ * PolicyTagManagerSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * PolicyTagManagerClient policyTagManagerClient =
+ * PolicyTagManagerClient.create(policyTagManagerSettings);
+ *
+ *
+ *
+ * To customize the endpoint:
+ *
+ *
+ *
+ * PolicyTagManagerSettings policyTagManagerSettings =
+ * PolicyTagManagerSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PolicyTagManagerClient policyTagManagerClient =
+ * PolicyTagManagerClient.create(policyTagManagerSettings);
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class PolicyTagManagerClient implements BackgroundResource {
+ private final PolicyTagManagerSettings settings;
+ private final PolicyTagManagerStub stub;
+
+ /** Constructs an instance of PolicyTagManagerClient with default settings. */
+ public static final PolicyTagManagerClient create() throws IOException {
+ return create(PolicyTagManagerSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of PolicyTagManagerClient, using the given settings. The channels are
+ * created based on the settings passed in, or defaults for any settings that are not set.
+ */
+ public static final PolicyTagManagerClient create(PolicyTagManagerSettings settings)
+ throws IOException {
+ return new PolicyTagManagerClient(settings);
+ }
+
+ /**
+ * Constructs an instance of PolicyTagManagerClient, using the given stub for making calls. This
+ * is for advanced usage - prefer to use PolicyTagManagerSettings}.
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final PolicyTagManagerClient create(PolicyTagManagerStub stub) {
+ return new PolicyTagManagerClient(stub);
+ }
+
+ /**
+ * Constructs an instance of PolicyTagManagerClient, using the given settings. This is protected
+ * so that it is easy to make a subclass, but otherwise, the static factory methods should be
+ * preferred.
+ */
+ protected PolicyTagManagerClient(PolicyTagManagerSettings settings) throws IOException {
+ this.settings = settings;
+ this.stub = ((PolicyTagManagerStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected PolicyTagManagerClient(PolicyTagManagerStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final PolicyTagManagerSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public PolicyTagManagerStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a new taxonomy in a given project.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * CreateTaxonomyRequest request = CreateTaxonomyRequest.newBuilder().build();
+ * Taxonomy response = policyTagManagerClient.createTaxonomy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Taxonomy createTaxonomy(CreateTaxonomyRequest request) {
+ return createTaxonomyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a new taxonomy in a given project.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * CreateTaxonomyRequest request = CreateTaxonomyRequest.newBuilder().build();
+ * ApiFuture<Taxonomy> future = policyTagManagerClient.createTaxonomyCallable().futureCall(request);
+ * // Do something
+ * Taxonomy response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * DeleteTaxonomyRequest request = DeleteTaxonomyRequest.newBuilder().build();
+ * policyTagManagerClient.deleteTaxonomy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deleteTaxonomy(DeleteTaxonomyRequest request) {
+ deleteTaxonomyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes a taxonomy. This operation will also delete all policy tags in this taxonomy.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * DeleteTaxonomyRequest request = DeleteTaxonomyRequest.newBuilder().build();
+ * ApiFuture<Void> future = policyTagManagerClient.deleteTaxonomyCallable().futureCall(request);
+ * // Do something
+ * future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * UpdateTaxonomyRequest request = UpdateTaxonomyRequest.newBuilder().build();
+ * Taxonomy response = policyTagManagerClient.updateTaxonomy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Taxonomy updateTaxonomy(UpdateTaxonomyRequest request) {
+ return updateTaxonomyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates a taxonomy.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * UpdateTaxonomyRequest request = UpdateTaxonomyRequest.newBuilder().build();
+ * ApiFuture<Taxonomy> future = policyTagManagerClient.updateTaxonomyCallable().futureCall(request);
+ * // Do something
+ * Taxonomy response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * ListTaxonomiesRequest request = ListTaxonomiesRequest.newBuilder().build();
+ * ListTaxonomiesResponse response = policyTagManagerClient.listTaxonomies(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListTaxonomiesResponse listTaxonomies(ListTaxonomiesRequest request) {
+ return listTaxonomiesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists all taxonomies in a project in a particular location.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * ListTaxonomiesRequest request = ListTaxonomiesRequest.newBuilder().build();
+ * ApiFuture<ListTaxonomiesResponse> future = policyTagManagerClient.listTaxonomiesCallable().futureCall(request);
+ * // Do something
+ * ListTaxonomiesResponse response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * GetTaxonomyRequest request = GetTaxonomyRequest.newBuilder().build();
+ * Taxonomy response = policyTagManagerClient.getTaxonomy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Taxonomy getTaxonomy(GetTaxonomyRequest request) {
+ return getTaxonomyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets a taxonomy.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * GetTaxonomyRequest request = GetTaxonomyRequest.newBuilder().build();
+ * ApiFuture<Taxonomy> future = policyTagManagerClient.getTaxonomyCallable().futureCall(request);
+ * // Do something
+ * Taxonomy response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * CreatePolicyTagRequest request = CreatePolicyTagRequest.newBuilder().build();
+ * PolicyTag response = policyTagManagerClient.createPolicyTag(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PolicyTag createPolicyTag(CreatePolicyTagRequest request) {
+ return createPolicyTagCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Creates a policy tag in a taxonomy.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * CreatePolicyTagRequest request = CreatePolicyTagRequest.newBuilder().build();
+ * ApiFuture<PolicyTag> future = policyTagManagerClient.createPolicyTagCallable().futureCall(request);
+ * // Do something
+ * PolicyTag response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * DeletePolicyTagRequest request = DeletePolicyTagRequest.newBuilder().build();
+ * policyTagManagerClient.deletePolicyTag(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final void deletePolicyTag(DeletePolicyTagRequest request) {
+ deletePolicyTagCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Deletes a policy tag. Also deletes all of its descendant policy tags.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * DeletePolicyTagRequest request = DeletePolicyTagRequest.newBuilder().build();
+ * ApiFuture<Void> future = policyTagManagerClient.deletePolicyTagCallable().futureCall(request);
+ * // Do something
+ * future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * UpdatePolicyTagRequest request = UpdatePolicyTagRequest.newBuilder().build();
+ * PolicyTag response = policyTagManagerClient.updatePolicyTag(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PolicyTag updatePolicyTag(UpdatePolicyTagRequest request) {
+ return updatePolicyTagCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Updates a policy tag.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * UpdatePolicyTagRequest request = UpdatePolicyTagRequest.newBuilder().build();
+ * ApiFuture<PolicyTag> future = policyTagManagerClient.updatePolicyTagCallable().futureCall(request);
+ * // Do something
+ * PolicyTag response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * ListPolicyTagsRequest request = ListPolicyTagsRequest.newBuilder().build();
+ * ListPolicyTagsResponse response = policyTagManagerClient.listPolicyTags(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ListPolicyTagsResponse listPolicyTags(ListPolicyTagsRequest request) {
+ return listPolicyTagsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Lists all policy tags in a taxonomy.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * ListPolicyTagsRequest request = ListPolicyTagsRequest.newBuilder().build();
+ * ApiFuture<ListPolicyTagsResponse> future = policyTagManagerClient.listPolicyTagsCallable().futureCall(request);
+ * // Do something
+ * ListPolicyTagsResponse response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * GetPolicyTagRequest request = GetPolicyTagRequest.newBuilder().build();
+ * PolicyTag response = policyTagManagerClient.getPolicyTag(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final PolicyTag getPolicyTag(GetPolicyTagRequest request) {
+ return getPolicyTagCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets a policy tag.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * GetPolicyTagRequest request = GetPolicyTagRequest.newBuilder().build();
+ * ApiFuture<PolicyTag> future = policyTagManagerClient.getPolicyTagCallable().futureCall(request);
+ * // Do something
+ * PolicyTag response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().build();
+ * Policy response = policyTagManagerClient.getIamPolicy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy getIamPolicy(GetIamPolicyRequest request) {
+ return getIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Gets the IAM policy for a taxonomy or a policy tag.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * GetIamPolicyRequest request = GetIamPolicyRequest.newBuilder().build();
+ * ApiFuture<Policy> future = policyTagManagerClient.getIamPolicyCallable().futureCall(request);
+ * // Do something
+ * Policy response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().build();
+ * Policy response = policyTagManagerClient.setIamPolicy(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final Policy setIamPolicy(SetIamPolicyRequest request) {
+ return setIamPolicyCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Sets the IAM policy for a taxonomy or a policy tag.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * SetIamPolicyRequest request = SetIamPolicyRequest.newBuilder().build();
+ * ApiFuture<Policy> future = policyTagManagerClient.setIamPolicyCallable().futureCall(request);
+ * // Do something
+ * Policy response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableSample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder().build();
+ * TestIamPermissionsResponse response = policyTagManagerClient.testIamPermissions(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request) {
+ return testIamPermissionsCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Returns permissions that a caller has on specified resources.
+ *
+ * Sample code: + * + *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * TestIamPermissionsRequest request = TestIamPermissionsRequest.newBuilder().build();
+ * ApiFuture<TestIamPermissionsResponse> future = policyTagManagerClient.testIamPermissionsCallable().futureCall(request);
+ * // Do something
+ * TestIamPermissionsResponse response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableThis class provides the ability to make remote calls to the backing service through method + * calls that map to API methods. Sample code to get started: + * + *
+ *
+ * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.create()) {
+ * ImportTaxonomiesRequest request = ImportTaxonomiesRequest.newBuilder().build();
+ * ImportTaxonomiesResponse response = policyTagManagerSerializationClient.importTaxonomies(request);
+ * }
+ *
+ *
+ *
+ * Note: close() needs to be called on the policyTagManagerSerializationClient object to clean up + * resources such as threads. In the example above, try-with-resources is used, which automatically + * calls close(). + * + *
The surface of this class includes several types of Java methods for each of the API's + * methods: + * + *
See the individual methods for example code. + * + *
Many parameters require resource names to be formatted in a particular way. To assist with + * these names, this class includes a format method for each type of name, and additionally a parse + * method to extract the individual identifiers contained within names that are returned. + * + *
This class can be customized by passing in a custom instance of + * PolicyTagManagerSerializationSettings to create(). For example: + * + *
To customize credentials: + * + *
+ *
+ * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
+ * PolicyTagManagerSerializationSettings.newBuilder()
+ * .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
+ * .build();
+ * PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
+ * PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings);
+ *
+ *
+ *
+ * To customize the endpoint:
+ *
+ *
+ *
+ * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings =
+ * PolicyTagManagerSerializationSettings.newBuilder().setEndpoint(myEndpoint).build();
+ * PolicyTagManagerSerializationClient policyTagManagerSerializationClient =
+ * PolicyTagManagerSerializationClient.create(policyTagManagerSerializationSettings);
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class PolicyTagManagerSerializationClient implements BackgroundResource {
+ private final PolicyTagManagerSerializationSettings settings;
+ private final PolicyTagManagerSerializationStub stub;
+
+ /** Constructs an instance of PolicyTagManagerSerializationClient with default settings. */
+ public static final PolicyTagManagerSerializationClient create() throws IOException {
+ return create(PolicyTagManagerSerializationSettings.newBuilder().build());
+ }
+
+ /**
+ * Constructs an instance of PolicyTagManagerSerializationClient, using the given settings. The
+ * channels are created based on the settings passed in, or defaults for any settings that are not
+ * set.
+ */
+ public static final PolicyTagManagerSerializationClient create(
+ PolicyTagManagerSerializationSettings settings) throws IOException {
+ return new PolicyTagManagerSerializationClient(settings);
+ }
+
+ /**
+ * Constructs an instance of PolicyTagManagerSerializationClient, using the given stub for making
+ * calls. This is for advanced usage - prefer to use PolicyTagManagerSerializationSettings}.
+ */
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public static final PolicyTagManagerSerializationClient create(
+ PolicyTagManagerSerializationStub stub) {
+ return new PolicyTagManagerSerializationClient(stub);
+ }
+
+ /**
+ * Constructs an instance of PolicyTagManagerSerializationClient, using the given settings. This
+ * is protected so that it is easy to make a subclass, but otherwise, the static factory methods
+ * should be preferred.
+ */
+ protected PolicyTagManagerSerializationClient(PolicyTagManagerSerializationSettings settings)
+ throws IOException {
+ this.settings = settings;
+ this.stub =
+ ((PolicyTagManagerSerializationStubSettings) settings.getStubSettings()).createStub();
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ protected PolicyTagManagerSerializationClient(PolicyTagManagerSerializationStub stub) {
+ this.settings = null;
+ this.stub = stub;
+ }
+
+ public final PolicyTagManagerSerializationSettings getSettings() {
+ return settings;
+ }
+
+ @BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+ public PolicyTagManagerSerializationStub getStub() {
+ return stub;
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Imports all taxonomies and their policy tags to a project as new taxonomies.
+ *
+ * This method provides a bulk taxonomy / policy tag creation using nested proto structure. + * + *
Sample code: + * + *
+ * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.create()) {
+ * ImportTaxonomiesRequest request = ImportTaxonomiesRequest.newBuilder().build();
+ * ImportTaxonomiesResponse response = policyTagManagerSerializationClient.importTaxonomies(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ImportTaxonomiesResponse importTaxonomies(ImportTaxonomiesRequest request) {
+ return importTaxonomiesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Imports all taxonomies and their policy tags to a project as new taxonomies.
+ *
+ * This method provides a bulk taxonomy / policy tag creation using nested proto structure. + * + *
Sample code: + * + *
+ * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.create()) {
+ * ImportTaxonomiesRequest request = ImportTaxonomiesRequest.newBuilder().build();
+ * ApiFuture<ImportTaxonomiesResponse> future = policyTagManagerSerializationClient.importTaxonomiesCallable().futureCall(request);
+ * // Do something
+ * ImportTaxonomiesResponse response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableThis method generates SerializedTaxonomy protos with nested policy tags that can be used as + * an input for future ImportTaxonomies calls. + * + *
Sample code: + * + *
+ * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.create()) {
+ * ExportTaxonomiesRequest request = ExportTaxonomiesRequest.newBuilder().build();
+ * ExportTaxonomiesResponse response = policyTagManagerSerializationClient.exportTaxonomies(request);
+ * }
+ *
+ *
+ * @param request The request object containing all of the parameters for the API call.
+ * @throws com.google.api.gax.rpc.ApiException if the remote call fails
+ */
+ public final ExportTaxonomiesResponse exportTaxonomies(ExportTaxonomiesRequest request) {
+ return exportTaxonomiesCallable().call(request);
+ }
+
+ // AUTO-GENERATED DOCUMENTATION AND METHOD
+ /**
+ * Exports all taxonomies and their policy tags in a project.
+ *
+ * This method generates SerializedTaxonomy protos with nested policy tags that can be used as + * an input for future ImportTaxonomies calls. + * + *
Sample code: + * + *
+ * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.create()) {
+ * ExportTaxonomiesRequest request = ExportTaxonomiesRequest.newBuilder().build();
+ * ApiFuture<ExportTaxonomiesResponse> future = policyTagManagerSerializationClient.exportTaxonomiesCallable().futureCall(request);
+ * // Do something
+ * ExportTaxonomiesResponse response = future.get();
+ * }
+ *
+ */
+ public final UnaryCallableThe default instance has everything set to sensible defaults: + * + *
The builder of this class is recursive, so contained classes are themselves builders. When + * build() is called, the tree of builders is called to create the complete settings object. + * + *
For example, to set the total timeout of importTaxonomies to 30 seconds: + * + *
+ *
+ * PolicyTagManagerSerializationSettings.Builder policyTagManagerSerializationSettingsBuilder =
+ * PolicyTagManagerSerializationSettings.newBuilder();
+ * policyTagManagerSerializationSettingsBuilder.importTaxonomiesSettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30));
+ * PolicyTagManagerSerializationSettings policyTagManagerSerializationSettings = policyTagManagerSerializationSettingsBuilder.build();
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class PolicyTagManagerSerializationSettings
+ extends ClientSettingsNote: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction The default instance has everything set to sensible defaults:
+ *
+ * The builder of this class is recursive, so contained classes are themselves builders. When
+ * build() is called, the tree of builders is called to create the complete settings object.
+ *
+ * For example, to set the total timeout of createTaxonomy to 30 seconds:
+ *
+ * Note: This method does not support applying settings to streaming methods.
+ */
+ public Builder applyToAllUnaryMethods(
+ ApiFunction Service Description: Policy tag manager API service allows clients to manage their taxonomies
+ * and policy tags data.
+ *
+ * Sample for PolicyTagManagerClient:
+ *
+ * Service Description: Policy tag manager serialization API service allows clients to manipulate
+ * their taxonomies and policy tags data with serialized format.
+ *
+ * Sample for PolicyTagManagerSerializationClient:
+ *
+ * This class is for advanced usage.
+ */
+@Generated("by gapic-generator")
+@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+public class GrpcPolicyTagManagerCallableFactory implements GrpcStubCallableFactory {
+ @Override
+ public This class is for advanced usage.
+ */
+@Generated("by gapic-generator")
+@BetaApi("The surface for use by generated code is not stable yet and may change in the future.")
+public class GrpcPolicyTagManagerSerializationCallableFactory implements GrpcStubCallableFactory {
+ @Override
+ public This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public class GrpcPolicyTagManagerSerializationStub extends PolicyTagManagerSerializationStub {
+
+ private static final MethodDescriptor This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public class GrpcPolicyTagManagerStub extends PolicyTagManagerStub {
+
+ private static final MethodDescriptor This class is for advanced usage and reflects the underlying API directly.
+ */
+@Generated("by gapic-generator")
+@BetaApi("A restructuring of stub classes is planned, so this may break in the future")
+public abstract class PolicyTagManagerSerializationStub implements BackgroundResource {
+
+ public UnaryCallable
+ *
+ *
+ *
+ *
+ */
+@Generated("by gapic-generator")
+@BetaApi
+public class PolicyTagManagerSettings extends ClientSettings
+ * PolicyTagManagerSettings.Builder policyTagManagerSettingsBuilder =
+ * PolicyTagManagerSettings.newBuilder();
+ * policyTagManagerSettingsBuilder.createTaxonomySettings().getRetrySettings().toBuilder()
+ * .setTotalTimeout(Duration.ofSeconds(30));
+ * PolicyTagManagerSettings policyTagManagerSettings = policyTagManagerSettingsBuilder.build();
+ *
+ *
+ *
+ *
+ * =================================== PolicyTagManagerSerializationClient
+ * ===================================
+ *
+ *
+ * try (PolicyTagManagerClient policyTagManagerClient = PolicyTagManagerClient.create()) {
+ * CreateTaxonomyRequest request = CreateTaxonomyRequest.newBuilder().build();
+ * Taxonomy response = policyTagManagerClient.createTaxonomy(request);
+ * }
+ *
+ *
+ *
*/
@Generated("by gapic-generator")
package com.google.cloud.datacatalog.v1beta1;
diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java
index bd52a2f3..8fbf9951 100644
--- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java
+++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStub.java
@@ -21,34 +21,34 @@
import com.google.api.core.BetaApi;
import com.google.api.gax.core.BackgroundResource;
import com.google.api.gax.rpc.UnaryCallable;
-import com.google.cloud.datacatalog.CreateEntryGroupRequest;
-import com.google.cloud.datacatalog.CreateEntryRequest;
-import com.google.cloud.datacatalog.CreateTagRequest;
-import com.google.cloud.datacatalog.CreateTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.CreateTagTemplateRequest;
-import com.google.cloud.datacatalog.DeleteEntryGroupRequest;
-import com.google.cloud.datacatalog.DeleteEntryRequest;
-import com.google.cloud.datacatalog.DeleteTagRequest;
-import com.google.cloud.datacatalog.DeleteTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.DeleteTagTemplateRequest;
-import com.google.cloud.datacatalog.Entry;
-import com.google.cloud.datacatalog.EntryGroup;
-import com.google.cloud.datacatalog.GetEntryGroupRequest;
-import com.google.cloud.datacatalog.GetEntryRequest;
-import com.google.cloud.datacatalog.GetTagTemplateRequest;
-import com.google.cloud.datacatalog.ListTagsRequest;
-import com.google.cloud.datacatalog.ListTagsResponse;
-import com.google.cloud.datacatalog.LookupEntryRequest;
-import com.google.cloud.datacatalog.RenameTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.SearchCatalogRequest;
-import com.google.cloud.datacatalog.SearchCatalogResponse;
-import com.google.cloud.datacatalog.Tag;
-import com.google.cloud.datacatalog.TagTemplate;
-import com.google.cloud.datacatalog.TagTemplateField;
-import com.google.cloud.datacatalog.UpdateEntryRequest;
-import com.google.cloud.datacatalog.UpdateTagRequest;
-import com.google.cloud.datacatalog.UpdateTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.UpdateTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.Entry;
+import com.google.cloud.datacatalog.v1beta1.EntryGroup;
+import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.GetEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.ListTagsRequest;
+import com.google.cloud.datacatalog.v1beta1.ListTagsResponse;
+import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest;
+import com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse;
+import com.google.cloud.datacatalog.v1beta1.Tag;
+import com.google.cloud.datacatalog.v1beta1.TagTemplate;
+import com.google.cloud.datacatalog.v1beta1.TagTemplateField;
+import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
import com.google.iam.v1.SetIamPolicyRequest;
diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java
index 3f2b0278..618f62c2 100644
--- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java
+++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/DataCatalogStubSettings.java
@@ -40,35 +40,35 @@
import com.google.api.gax.rpc.TransportChannelProvider;
import com.google.api.gax.rpc.UnaryCallSettings;
import com.google.api.gax.rpc.UnaryCallable;
-import com.google.cloud.datacatalog.CreateEntryGroupRequest;
-import com.google.cloud.datacatalog.CreateEntryRequest;
-import com.google.cloud.datacatalog.CreateTagRequest;
-import com.google.cloud.datacatalog.CreateTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.CreateTagTemplateRequest;
-import com.google.cloud.datacatalog.DeleteEntryGroupRequest;
-import com.google.cloud.datacatalog.DeleteEntryRequest;
-import com.google.cloud.datacatalog.DeleteTagRequest;
-import com.google.cloud.datacatalog.DeleteTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.DeleteTagTemplateRequest;
-import com.google.cloud.datacatalog.Entry;
-import com.google.cloud.datacatalog.EntryGroup;
-import com.google.cloud.datacatalog.GetEntryGroupRequest;
-import com.google.cloud.datacatalog.GetEntryRequest;
-import com.google.cloud.datacatalog.GetTagTemplateRequest;
-import com.google.cloud.datacatalog.ListTagsRequest;
-import com.google.cloud.datacatalog.ListTagsResponse;
-import com.google.cloud.datacatalog.LookupEntryRequest;
-import com.google.cloud.datacatalog.RenameTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.SearchCatalogRequest;
-import com.google.cloud.datacatalog.SearchCatalogResponse;
-import com.google.cloud.datacatalog.SearchCatalogResult;
-import com.google.cloud.datacatalog.Tag;
-import com.google.cloud.datacatalog.TagTemplate;
-import com.google.cloud.datacatalog.TagTemplateField;
-import com.google.cloud.datacatalog.UpdateEntryRequest;
-import com.google.cloud.datacatalog.UpdateTagRequest;
-import com.google.cloud.datacatalog.UpdateTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.UpdateTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.Entry;
+import com.google.cloud.datacatalog.v1beta1.EntryGroup;
+import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.GetEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.ListTagsRequest;
+import com.google.cloud.datacatalog.v1beta1.ListTagsResponse;
+import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest;
+import com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse;
+import com.google.cloud.datacatalog.v1beta1.SearchCatalogResult;
+import com.google.cloud.datacatalog.v1beta1.Tag;
+import com.google.cloud.datacatalog.v1beta1.TagTemplate;
+import com.google.cloud.datacatalog.v1beta1.TagTemplateField;
+import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest;
import com.google.common.collect.ImmutableList;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.ImmutableSet;
diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java
index d4fee021..66307adf 100644
--- a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java
+++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcDataCatalogStub.java
@@ -26,34 +26,34 @@
import com.google.api.gax.rpc.ClientContext;
import com.google.api.gax.rpc.RequestParamsExtractor;
import com.google.api.gax.rpc.UnaryCallable;
-import com.google.cloud.datacatalog.CreateEntryGroupRequest;
-import com.google.cloud.datacatalog.CreateEntryRequest;
-import com.google.cloud.datacatalog.CreateTagRequest;
-import com.google.cloud.datacatalog.CreateTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.CreateTagTemplateRequest;
-import com.google.cloud.datacatalog.DeleteEntryGroupRequest;
-import com.google.cloud.datacatalog.DeleteEntryRequest;
-import com.google.cloud.datacatalog.DeleteTagRequest;
-import com.google.cloud.datacatalog.DeleteTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.DeleteTagTemplateRequest;
-import com.google.cloud.datacatalog.Entry;
-import com.google.cloud.datacatalog.EntryGroup;
-import com.google.cloud.datacatalog.GetEntryGroupRequest;
-import com.google.cloud.datacatalog.GetEntryRequest;
-import com.google.cloud.datacatalog.GetTagTemplateRequest;
-import com.google.cloud.datacatalog.ListTagsRequest;
-import com.google.cloud.datacatalog.ListTagsResponse;
-import com.google.cloud.datacatalog.LookupEntryRequest;
-import com.google.cloud.datacatalog.RenameTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.SearchCatalogRequest;
-import com.google.cloud.datacatalog.SearchCatalogResponse;
-import com.google.cloud.datacatalog.Tag;
-import com.google.cloud.datacatalog.TagTemplate;
-import com.google.cloud.datacatalog.TagTemplateField;
-import com.google.cloud.datacatalog.UpdateEntryRequest;
-import com.google.cloud.datacatalog.UpdateTagRequest;
-import com.google.cloud.datacatalog.UpdateTagTemplateFieldRequest;
-import com.google.cloud.datacatalog.UpdateTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.CreateTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.DeleteTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.Entry;
+import com.google.cloud.datacatalog.v1beta1.EntryGroup;
+import com.google.cloud.datacatalog.v1beta1.GetEntryGroupRequest;
+import com.google.cloud.datacatalog.v1beta1.GetEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.GetTagTemplateRequest;
+import com.google.cloud.datacatalog.v1beta1.ListTagsRequest;
+import com.google.cloud.datacatalog.v1beta1.ListTagsResponse;
+import com.google.cloud.datacatalog.v1beta1.LookupEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.RenameTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.SearchCatalogRequest;
+import com.google.cloud.datacatalog.v1beta1.SearchCatalogResponse;
+import com.google.cloud.datacatalog.v1beta1.Tag;
+import com.google.cloud.datacatalog.v1beta1.TagTemplate;
+import com.google.cloud.datacatalog.v1beta1.TagTemplateField;
+import com.google.cloud.datacatalog.v1beta1.UpdateEntryRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateFieldRequest;
+import com.google.cloud.datacatalog.v1beta1.UpdateTagTemplateRequest;
import com.google.common.collect.ImmutableMap;
import com.google.iam.v1.GetIamPolicyRequest;
import com.google.iam.v1.Policy;
diff --git a/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java
new file mode 100644
index 00000000..e96f4acb
--- /dev/null
+++ b/google-cloud-datacatalog/src/main/java/com/google/cloud/datacatalog/v1beta1/stub/GrpcPolicyTagManagerCallableFactory.java
@@ -0,0 +1,115 @@
+/*
+ * Copyright 2019 Google LLC
+ *
+ * Licensed under the Apache License, Version 2.0 (the "License");
+ * you may not use this file except in compliance with the License.
+ * You may obtain a copy of the License at
+ *
+ * https://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+package com.google.cloud.datacatalog.v1beta1.stub;
+
+import com.google.api.core.BetaApi;
+import com.google.api.gax.grpc.GrpcCallSettings;
+import com.google.api.gax.grpc.GrpcCallableFactory;
+import com.google.api.gax.grpc.GrpcStubCallableFactory;
+import com.google.api.gax.rpc.BatchingCallSettings;
+import com.google.api.gax.rpc.BidiStreamingCallable;
+import com.google.api.gax.rpc.ClientContext;
+import com.google.api.gax.rpc.ClientStreamingCallable;
+import com.google.api.gax.rpc.OperationCallSettings;
+import com.google.api.gax.rpc.OperationCallable;
+import com.google.api.gax.rpc.PagedCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallSettings;
+import com.google.api.gax.rpc.ServerStreamingCallable;
+import com.google.api.gax.rpc.StreamingCallSettings;
+import com.google.api.gax.rpc.UnaryCallSettings;
+import com.google.api.gax.rpc.UnaryCallable;
+import com.google.longrunning.stub.OperationsStub;
+import javax.annotation.Generated;
+
+// AUTO-GENERATED DOCUMENTATION AND CLASS
+/**
+ * gRPC callable factory implementation for Google Cloud Data Catalog API.
+ *
+ *
+ * try (PolicyTagManagerSerializationClient policyTagManagerSerializationClient = PolicyTagManagerSerializationClient.create()) {
+ * ImportTaxonomiesRequest request = ImportTaxonomiesRequest.newBuilder().build();
+ * ImportTaxonomiesResponse response = policyTagManagerSerializationClient.importTaxonomies(request);
+ * }
+ *
+ *