Class DataTaxonomyServiceClient (1.21.0)

public class DataTaxonomyServiceClient implements BackgroundResource

Service Description: DataTaxonomyService enables attribute-based governance. The resources currently offered include DataTaxonomy and DataAttribute.

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:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataTaxonomyName name = DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]");
   DataTaxonomy response = dataTaxonomyServiceClient.getDataTaxonomy(name);
 }
 

Note: close() needs to be called on the DataTaxonomyServiceClient 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:

  1. A "flattened" method. With this type of method, the fields of the request type have been converted into function parameters. It may be the case that not all fields are available as parameters, and not every API method will have a flattened method entry point.
  2. A "request object" method. This type of method only takes one parameter, a request object, which must be constructed before the call. Not every API method will have a request object method.
  3. A "callable" method. This type of method takes no parameters and returns an immutable API callable object, which can be used to initiate calls to the service.

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 DataTaxonomyServiceSettings to create(). For example:

To customize credentials:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DataTaxonomyServiceSettings dataTaxonomyServiceSettings =
     DataTaxonomyServiceSettings.newBuilder()
         .setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
         .build();
 DataTaxonomyServiceClient dataTaxonomyServiceClient =
     DataTaxonomyServiceClient.create(dataTaxonomyServiceSettings);
 

To customize the endpoint:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DataTaxonomyServiceSettings dataTaxonomyServiceSettings =
     DataTaxonomyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
 DataTaxonomyServiceClient dataTaxonomyServiceClient =
     DataTaxonomyServiceClient.create(dataTaxonomyServiceSettings);
 

To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 DataTaxonomyServiceSettings dataTaxonomyServiceSettings =
     DataTaxonomyServiceSettings.newHttpJsonBuilder().build();
 DataTaxonomyServiceClient dataTaxonomyServiceClient =
     DataTaxonomyServiceClient.create(dataTaxonomyServiceSettings);
 

Please refer to the GitHub repository's samples for more quickstart code snippets.

Inheritance

java.lang.Object > DataTaxonomyServiceClient

Implements

BackgroundResource

Static Methods

create()

public static final DataTaxonomyServiceClient create()

Constructs an instance of DataTaxonomyServiceClient with default settings.

Returns
TypeDescription
DataTaxonomyServiceClient
Exceptions
TypeDescription
IOException

create(DataTaxonomyServiceSettings settings)

public static final DataTaxonomyServiceClient create(DataTaxonomyServiceSettings settings)

Constructs an instance of DataTaxonomyServiceClient, using the given settings. The channels are created based on the settings passed in, or defaults for any settings that are not set.

Parameter
NameDescription
settingsDataTaxonomyServiceSettings
Returns
TypeDescription
DataTaxonomyServiceClient
Exceptions
TypeDescription
IOException

create(DataTaxonomyServiceStub stub)

public static final DataTaxonomyServiceClient create(DataTaxonomyServiceStub stub)

Constructs an instance of DataTaxonomyServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(DataTaxonomyServiceSettings).

Parameter
NameDescription
stubDataTaxonomyServiceStub
Returns
TypeDescription
DataTaxonomyServiceClient

Constructors

DataTaxonomyServiceClient(DataTaxonomyServiceSettings settings)

protected DataTaxonomyServiceClient(DataTaxonomyServiceSettings settings)

Constructs an instance of DataTaxonomyServiceClient, 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.

Parameter
NameDescription
settingsDataTaxonomyServiceSettings

DataTaxonomyServiceClient(DataTaxonomyServiceStub stub)

protected DataTaxonomyServiceClient(DataTaxonomyServiceStub stub)
Parameter
NameDescription
stubDataTaxonomyServiceStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
NameDescription
durationlong
unitTimeUnit
Returns
TypeDescription
boolean
Exceptions
TypeDescription
InterruptedException

close()

public final void close()

createDataAttributeAsync(CreateDataAttributeRequest request)

public final OperationFuture<DataAttribute,OperationMetadata> createDataAttributeAsync(CreateDataAttributeRequest request)

Create a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataAttributeRequest request =
       CreateDataAttributeRequest.newBuilder()
           .setParent(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setDataAttributeId("dataAttributeId-44128563")
           .setDataAttribute(DataAttribute.newBuilder().build())
           .setValidateOnly(true)
           .build();
   DataAttribute response = dataTaxonomyServiceClient.createDataAttributeAsync(request).get();
 }
 
Parameter
NameDescription
requestCreateDataAttributeRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<DataAttribute,OperationMetadata>

createDataAttributeAsync(DataTaxonomyName parent, DataAttribute dataAttribute, String dataAttributeId)

public final OperationFuture<DataAttribute,OperationMetadata> createDataAttributeAsync(DataTaxonomyName parent, DataAttribute dataAttribute, String dataAttributeId)

Create a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataTaxonomyName parent =
       DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]");
   DataAttribute dataAttribute = DataAttribute.newBuilder().build();
   String dataAttributeId = "dataAttributeId-44128563";
   DataAttribute response =
       dataTaxonomyServiceClient
           .createDataAttributeAsync(parent, dataAttribute, dataAttributeId)
           .get();
 }
 
Parameters
NameDescription
parentDataTaxonomyName

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

dataAttributeDataAttribute

Required. DataAttribute resource.

dataAttributeIdString

Required. DataAttribute identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the DataTaxonomy.

Returns
TypeDescription
OperationFuture<DataAttribute,OperationMetadata>

createDataAttributeAsync(String parent, DataAttribute dataAttribute, String dataAttributeId)

public final OperationFuture<DataAttribute,OperationMetadata> createDataAttributeAsync(String parent, DataAttribute dataAttribute, String dataAttributeId)

Create a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String parent =
       DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString();
   DataAttribute dataAttribute = DataAttribute.newBuilder().build();
   String dataAttributeId = "dataAttributeId-44128563";
   DataAttribute response =
       dataTaxonomyServiceClient
           .createDataAttributeAsync(parent, dataAttribute, dataAttributeId)
           .get();
 }
 
Parameters
NameDescription
parentString

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

dataAttributeDataAttribute

Required. DataAttribute resource.

dataAttributeIdString

Required. DataAttribute identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the DataTaxonomy.

Returns
TypeDescription
OperationFuture<DataAttribute,OperationMetadata>

createDataAttributeBindingAsync(CreateDataAttributeBindingRequest request)

public final OperationFuture<DataAttributeBinding,OperationMetadata> createDataAttributeBindingAsync(CreateDataAttributeBindingRequest request)

Create a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataAttributeBindingRequest request =
       CreateDataAttributeBindingRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setDataAttributeBindingId("dataAttributeBindingId1952425102")
           .setDataAttributeBinding(DataAttributeBinding.newBuilder().build())
           .setValidateOnly(true)
           .build();
   DataAttributeBinding response =
       dataTaxonomyServiceClient.createDataAttributeBindingAsync(request).get();
 }
 
Parameter
NameDescription
requestCreateDataAttributeBindingRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<DataAttributeBinding,OperationMetadata>

createDataAttributeBindingAsync(LocationName parent, DataAttributeBinding dataAttributeBinding, String dataAttributeBindingId)

public final OperationFuture<DataAttributeBinding,OperationMetadata> createDataAttributeBindingAsync(LocationName parent, DataAttributeBinding dataAttributeBinding, String dataAttributeBindingId)

Create a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   DataAttributeBinding dataAttributeBinding = DataAttributeBinding.newBuilder().build();
   String dataAttributeBindingId = "dataAttributeBindingId1952425102";
   DataAttributeBinding response =
       dataTaxonomyServiceClient
           .createDataAttributeBindingAsync(parent, dataAttributeBinding, dataAttributeBindingId)
           .get();
 }
 
Parameters
NameDescription
parentLocationName

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}

dataAttributeBindingDataAttributeBinding

Required. DataAttributeBinding resource.

dataAttributeBindingIdString

Required. DataAttributeBinding identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the Location.

Returns
TypeDescription
OperationFuture<DataAttributeBinding,OperationMetadata>

createDataAttributeBindingAsync(String parent, DataAttributeBinding dataAttributeBinding, String dataAttributeBindingId)

public final OperationFuture<DataAttributeBinding,OperationMetadata> createDataAttributeBindingAsync(String parent, DataAttributeBinding dataAttributeBinding, String dataAttributeBindingId)

Create a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   DataAttributeBinding dataAttributeBinding = DataAttributeBinding.newBuilder().build();
   String dataAttributeBindingId = "dataAttributeBindingId1952425102";
   DataAttributeBinding response =
       dataTaxonomyServiceClient
           .createDataAttributeBindingAsync(parent, dataAttributeBinding, dataAttributeBindingId)
           .get();
 }
 
Parameters
NameDescription
parentString

Required. The resource name of the parent data taxonomy projects/{project_number}/locations/{location_id}

dataAttributeBindingDataAttributeBinding

Required. DataAttributeBinding resource.

dataAttributeBindingIdString

Required. DataAttributeBinding identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the Location.

Returns
TypeDescription
OperationFuture<DataAttributeBinding,OperationMetadata>

createDataAttributeBindingCallable()

public final UnaryCallable<CreateDataAttributeBindingRequest,Operation> createDataAttributeBindingCallable()

Create a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataAttributeBindingRequest request =
       CreateDataAttributeBindingRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setDataAttributeBindingId("dataAttributeBindingId1952425102")
           .setDataAttributeBinding(DataAttributeBinding.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.createDataAttributeBindingCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateDataAttributeBindingRequest,Operation>

createDataAttributeBindingOperationCallable()

public final OperationCallable<CreateDataAttributeBindingRequest,DataAttributeBinding,OperationMetadata> createDataAttributeBindingOperationCallable()

Create a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataAttributeBindingRequest request =
       CreateDataAttributeBindingRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setDataAttributeBindingId("dataAttributeBindingId1952425102")
           .setDataAttributeBinding(DataAttributeBinding.newBuilder().build())
           .setValidateOnly(true)
           .build();
   OperationFuture<DataAttributeBinding, OperationMetadata> future =
       dataTaxonomyServiceClient
           .createDataAttributeBindingOperationCallable()
           .futureCall(request);
   // Do something.
   DataAttributeBinding response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<CreateDataAttributeBindingRequest,DataAttributeBinding,OperationMetadata>

createDataAttributeCallable()

public final UnaryCallable<CreateDataAttributeRequest,Operation> createDataAttributeCallable()

Create a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataAttributeRequest request =
       CreateDataAttributeRequest.newBuilder()
           .setParent(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setDataAttributeId("dataAttributeId-44128563")
           .setDataAttribute(DataAttribute.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.createDataAttributeCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateDataAttributeRequest,Operation>

createDataAttributeOperationCallable()

public final OperationCallable<CreateDataAttributeRequest,DataAttribute,OperationMetadata> createDataAttributeOperationCallable()

Create a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataAttributeRequest request =
       CreateDataAttributeRequest.newBuilder()
           .setParent(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setDataAttributeId("dataAttributeId-44128563")
           .setDataAttribute(DataAttribute.newBuilder().build())
           .setValidateOnly(true)
           .build();
   OperationFuture<DataAttribute, OperationMetadata> future =
       dataTaxonomyServiceClient.createDataAttributeOperationCallable().futureCall(request);
   // Do something.
   DataAttribute response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<CreateDataAttributeRequest,DataAttribute,OperationMetadata>

createDataTaxonomyAsync(CreateDataTaxonomyRequest request)

public final OperationFuture<DataTaxonomy,OperationMetadata> createDataTaxonomyAsync(CreateDataTaxonomyRequest request)

Create a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataTaxonomyRequest request =
       CreateDataTaxonomyRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setDataTaxonomyId("dataTaxonomyId987458454")
           .setDataTaxonomy(DataTaxonomy.newBuilder().build())
           .setValidateOnly(true)
           .build();
   DataTaxonomy response = dataTaxonomyServiceClient.createDataTaxonomyAsync(request).get();
 }
 
Parameter
NameDescription
requestCreateDataTaxonomyRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<DataTaxonomy,OperationMetadata>

createDataTaxonomyAsync(LocationName parent, DataTaxonomy dataTaxonomy, String dataTaxonomyId)

public final OperationFuture<DataTaxonomy,OperationMetadata> createDataTaxonomyAsync(LocationName parent, DataTaxonomy dataTaxonomy, String dataTaxonomyId)

Create a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   DataTaxonomy dataTaxonomy = DataTaxonomy.newBuilder().build();
   String dataTaxonomyId = "dataTaxonomyId987458454";
   DataTaxonomy response =
       dataTaxonomyServiceClient
           .createDataTaxonomyAsync(parent, dataTaxonomy, dataTaxonomyId)
           .get();
 }
 
Parameters
NameDescription
parentLocationName

Required. The resource name of the data taxonomy location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

dataTaxonomyDataTaxonomy

Required. DataTaxonomy resource.

dataTaxonomyIdString

Required. DataTaxonomy identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the Project.

Returns
TypeDescription
OperationFuture<DataTaxonomy,OperationMetadata>

createDataTaxonomyAsync(String parent, DataTaxonomy dataTaxonomy, String dataTaxonomyId)

public final OperationFuture<DataTaxonomy,OperationMetadata> createDataTaxonomyAsync(String parent, DataTaxonomy dataTaxonomy, String dataTaxonomyId)

Create a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   DataTaxonomy dataTaxonomy = DataTaxonomy.newBuilder().build();
   String dataTaxonomyId = "dataTaxonomyId987458454";
   DataTaxonomy response =
       dataTaxonomyServiceClient
           .createDataTaxonomyAsync(parent, dataTaxonomy, dataTaxonomyId)
           .get();
 }
 
Parameters
NameDescription
parentString

Required. The resource name of the data taxonomy location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

dataTaxonomyDataTaxonomy

Required. DataTaxonomy resource.

dataTaxonomyIdString

Required. DataTaxonomy identifier.

  • Must contain only lowercase letters, numbers and hyphens.
  • Must start with a letter.
  • Must be between 1-63 characters.
  • Must end with a number or a letter.
  • Must be unique within the Project.

Returns
TypeDescription
OperationFuture<DataTaxonomy,OperationMetadata>

createDataTaxonomyCallable()

public final UnaryCallable<CreateDataTaxonomyRequest,Operation> createDataTaxonomyCallable()

Create a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataTaxonomyRequest request =
       CreateDataTaxonomyRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setDataTaxonomyId("dataTaxonomyId987458454")
           .setDataTaxonomy(DataTaxonomy.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.createDataTaxonomyCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<CreateDataTaxonomyRequest,Operation>

createDataTaxonomyOperationCallable()

public final OperationCallable<CreateDataTaxonomyRequest,DataTaxonomy,OperationMetadata> createDataTaxonomyOperationCallable()

Create a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   CreateDataTaxonomyRequest request =
       CreateDataTaxonomyRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setDataTaxonomyId("dataTaxonomyId987458454")
           .setDataTaxonomy(DataTaxonomy.newBuilder().build())
           .setValidateOnly(true)
           .build();
   OperationFuture<DataTaxonomy, OperationMetadata> future =
       dataTaxonomyServiceClient.createDataTaxonomyOperationCallable().futureCall(request);
   // Do something.
   DataTaxonomy response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<CreateDataTaxonomyRequest,DataTaxonomy,OperationMetadata>

deleteDataAttributeAsync(DataAttributeName name)

public final OperationFuture<Empty,OperationMetadata> deleteDataAttributeAsync(DataAttributeName name)

Deletes a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataAttributeName name =
       DataAttributeName.of("[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]");
   dataTaxonomyServiceClient.deleteDataAttributeAsync(name).get();
 }
 
Parameter
NameDescription
nameDataAttributeName

Required. The resource name of the DataAttribute: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataAttributeAsync(DeleteDataAttributeRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteDataAttributeAsync(DeleteDataAttributeRequest request)

Deletes a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataAttributeRequest request =
       DeleteDataAttributeRequest.newBuilder()
           .setName(
               DataAttributeName.of(
                       "[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]")
                   .toString())
           .setEtag("etag3123477")
           .build();
   dataTaxonomyServiceClient.deleteDataAttributeAsync(request).get();
 }
 
Parameter
NameDescription
requestDeleteDataAttributeRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataAttributeAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteDataAttributeAsync(String name)

Deletes a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String name =
       DataAttributeName.of("[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]")
           .toString();
   dataTaxonomyServiceClient.deleteDataAttributeAsync(name).get();
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the DataAttribute: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataAttributeBindingAsync(DataAttributeBindingName name)

public final OperationFuture<Empty,OperationMetadata> deleteDataAttributeBindingAsync(DataAttributeBindingName name)

Deletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataAttributeBindingName name =
       DataAttributeBindingName.of("[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]");
   dataTaxonomyServiceClient.deleteDataAttributeBindingAsync(name).get();
 }
 
Parameter
NameDescription
nameDataAttributeBindingName

Required. The resource name of the DataAttributeBinding: projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id}

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataAttributeBindingAsync(DeleteDataAttributeBindingRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteDataAttributeBindingAsync(DeleteDataAttributeBindingRequest request)

Deletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataAttributeBindingRequest request =
       DeleteDataAttributeBindingRequest.newBuilder()
           .setName(
               DataAttributeBindingName.of(
                       "[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]")
                   .toString())
           .setEtag("etag3123477")
           .build();
   dataTaxonomyServiceClient.deleteDataAttributeBindingAsync(request).get();
 }
 
Parameter
NameDescription
requestDeleteDataAttributeBindingRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataAttributeBindingAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteDataAttributeBindingAsync(String name)

Deletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String name =
       DataAttributeBindingName.of("[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]")
           .toString();
   dataTaxonomyServiceClient.deleteDataAttributeBindingAsync(name).get();
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the DataAttributeBinding: projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id}

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataAttributeBindingCallable()

public final UnaryCallable<DeleteDataAttributeBindingRequest,Operation> deleteDataAttributeBindingCallable()

Deletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataAttributeBindingRequest request =
       DeleteDataAttributeBindingRequest.newBuilder()
           .setName(
               DataAttributeBindingName.of(
                       "[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]")
                   .toString())
           .setEtag("etag3123477")
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.deleteDataAttributeBindingCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteDataAttributeBindingRequest,Operation>

deleteDataAttributeBindingOperationCallable()

public final OperationCallable<DeleteDataAttributeBindingRequest,Empty,OperationMetadata> deleteDataAttributeBindingOperationCallable()

Deletes a DataAttributeBinding resource. All attributes within the DataAttributeBinding must be deleted before the DataAttributeBinding can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataAttributeBindingRequest request =
       DeleteDataAttributeBindingRequest.newBuilder()
           .setName(
               DataAttributeBindingName.of(
                       "[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]")
                   .toString())
           .setEtag("etag3123477")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       dataTaxonomyServiceClient
           .deleteDataAttributeBindingOperationCallable()
           .futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
OperationCallable<DeleteDataAttributeBindingRequest,Empty,OperationMetadata>

deleteDataAttributeCallable()

public final UnaryCallable<DeleteDataAttributeRequest,Operation> deleteDataAttributeCallable()

Deletes a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataAttributeRequest request =
       DeleteDataAttributeRequest.newBuilder()
           .setName(
               DataAttributeName.of(
                       "[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]")
                   .toString())
           .setEtag("etag3123477")
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.deleteDataAttributeCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteDataAttributeRequest,Operation>

deleteDataAttributeOperationCallable()

public final OperationCallable<DeleteDataAttributeRequest,Empty,OperationMetadata> deleteDataAttributeOperationCallable()

Deletes a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataAttributeRequest request =
       DeleteDataAttributeRequest.newBuilder()
           .setName(
               DataAttributeName.of(
                       "[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]")
                   .toString())
           .setEtag("etag3123477")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       dataTaxonomyServiceClient.deleteDataAttributeOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
OperationCallable<DeleteDataAttributeRequest,Empty,OperationMetadata>

deleteDataTaxonomyAsync(DataTaxonomyName name)

public final OperationFuture<Empty,OperationMetadata> deleteDataTaxonomyAsync(DataTaxonomyName name)

Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataTaxonomyName name = DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]");
   dataTaxonomyServiceClient.deleteDataTaxonomyAsync(name).get();
 }
 
Parameter
NameDescription
nameDataTaxonomyName

Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataTaxonomyAsync(DeleteDataTaxonomyRequest request)

public final OperationFuture<Empty,OperationMetadata> deleteDataTaxonomyAsync(DeleteDataTaxonomyRequest request)

Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataTaxonomyRequest request =
       DeleteDataTaxonomyRequest.newBuilder()
           .setName(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setEtag("etag3123477")
           .build();
   dataTaxonomyServiceClient.deleteDataTaxonomyAsync(request).get();
 }
 
Parameter
NameDescription
requestDeleteDataTaxonomyRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataTaxonomyAsync(String name)

public final OperationFuture<Empty,OperationMetadata> deleteDataTaxonomyAsync(String name)

Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String name = DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString();
   dataTaxonomyServiceClient.deleteDataTaxonomyAsync(name).get();
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

Returns
TypeDescription
OperationFuture<Empty,OperationMetadata>

deleteDataTaxonomyCallable()

public final UnaryCallable<DeleteDataTaxonomyRequest,Operation> deleteDataTaxonomyCallable()

Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataTaxonomyRequest request =
       DeleteDataTaxonomyRequest.newBuilder()
           .setName(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setEtag("etag3123477")
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.deleteDataTaxonomyCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
UnaryCallable<DeleteDataTaxonomyRequest,Operation>

deleteDataTaxonomyOperationCallable()

public final OperationCallable<DeleteDataTaxonomyRequest,Empty,OperationMetadata> deleteDataTaxonomyOperationCallable()

Deletes a DataTaxonomy resource. All attributes within the DataTaxonomy must be deleted before the DataTaxonomy can be deleted.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DeleteDataTaxonomyRequest request =
       DeleteDataTaxonomyRequest.newBuilder()
           .setName(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setEtag("etag3123477")
           .build();
   OperationFuture<Empty, OperationMetadata> future =
       dataTaxonomyServiceClient.deleteDataTaxonomyOperationCallable().futureCall(request);
   // Do something.
   future.get();
 }
 
Returns
TypeDescription
OperationCallable<DeleteDataTaxonomyRequest,Empty,OperationMetadata>

getDataAttribute(DataAttributeName name)

public final DataAttribute getDataAttribute(DataAttributeName name)

Retrieves a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataAttributeName name =
       DataAttributeName.of("[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]");
   DataAttribute response = dataTaxonomyServiceClient.getDataAttribute(name);
 }
 
Parameter
NameDescription
nameDataAttributeName

Required. The resource name of the dataAttribute: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}

Returns
TypeDescription
DataAttribute

getDataAttribute(GetDataAttributeRequest request)

public final DataAttribute getDataAttribute(GetDataAttributeRequest request)

Retrieves a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   GetDataAttributeRequest request =
       GetDataAttributeRequest.newBuilder()
           .setName(
               DataAttributeName.of(
                       "[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]")
                   .toString())
           .build();
   DataAttribute response = dataTaxonomyServiceClient.getDataAttribute(request);
 }
 
Parameter
NameDescription
requestGetDataAttributeRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataAttribute

getDataAttribute(String name)

public final DataAttribute getDataAttribute(String name)

Retrieves a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String name =
       DataAttributeName.of("[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]")
           .toString();
   DataAttribute response = dataTaxonomyServiceClient.getDataAttribute(name);
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the dataAttribute: projects/{project_number}/locations/{location_id}/dataTaxonomies/{dataTaxonomy}/attributes/{data_attribute_id}

Returns
TypeDescription
DataAttribute

getDataAttributeBinding(DataAttributeBindingName name)

public final DataAttributeBinding getDataAttributeBinding(DataAttributeBindingName name)

Retrieves a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataAttributeBindingName name =
       DataAttributeBindingName.of("[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]");
   DataAttributeBinding response = dataTaxonomyServiceClient.getDataAttributeBinding(name);
 }
 
Parameter
NameDescription
nameDataAttributeBindingName

Required. The resource name of the DataAttributeBinding: projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id}

Returns
TypeDescription
DataAttributeBinding

getDataAttributeBinding(GetDataAttributeBindingRequest request)

public final DataAttributeBinding getDataAttributeBinding(GetDataAttributeBindingRequest request)

Retrieves a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   GetDataAttributeBindingRequest request =
       GetDataAttributeBindingRequest.newBuilder()
           .setName(
               DataAttributeBindingName.of(
                       "[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]")
                   .toString())
           .build();
   DataAttributeBinding response = dataTaxonomyServiceClient.getDataAttributeBinding(request);
 }
 
Parameter
NameDescription
requestGetDataAttributeBindingRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataAttributeBinding

getDataAttributeBinding(String name)

public final DataAttributeBinding getDataAttributeBinding(String name)

Retrieves a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String name =
       DataAttributeBindingName.of("[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]")
           .toString();
   DataAttributeBinding response = dataTaxonomyServiceClient.getDataAttributeBinding(name);
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the DataAttributeBinding: projects/{project_number}/locations/{location_id}/dataAttributeBindings/{data_attribute_binding_id}

Returns
TypeDescription
DataAttributeBinding

getDataAttributeBindingCallable()

public final UnaryCallable<GetDataAttributeBindingRequest,DataAttributeBinding> getDataAttributeBindingCallable()

Retrieves a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   GetDataAttributeBindingRequest request =
       GetDataAttributeBindingRequest.newBuilder()
           .setName(
               DataAttributeBindingName.of(
                       "[PROJECT]", "[LOCATION]", "[DATA_ATTRIBUTE_BINDING_ID]")
                   .toString())
           .build();
   ApiFuture<DataAttributeBinding> future =
       dataTaxonomyServiceClient.getDataAttributeBindingCallable().futureCall(request);
   // Do something.
   DataAttributeBinding response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetDataAttributeBindingRequest,DataAttributeBinding>

getDataAttributeCallable()

public final UnaryCallable<GetDataAttributeRequest,DataAttribute> getDataAttributeCallable()

Retrieves a Data Attribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   GetDataAttributeRequest request =
       GetDataAttributeRequest.newBuilder()
           .setName(
               DataAttributeName.of(
                       "[PROJECT]", "[LOCATION]", "[DATATAXONOMY]", "[DATA_ATTRIBUTE_ID]")
                   .toString())
           .build();
   ApiFuture<DataAttribute> future =
       dataTaxonomyServiceClient.getDataAttributeCallable().futureCall(request);
   // Do something.
   DataAttribute response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetDataAttributeRequest,DataAttribute>

getDataTaxonomy(DataTaxonomyName name)

public final DataTaxonomy getDataTaxonomy(DataTaxonomyName name)

Retrieves a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataTaxonomyName name = DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]");
   DataTaxonomy response = dataTaxonomyServiceClient.getDataTaxonomy(name);
 }
 
Parameter
NameDescription
nameDataTaxonomyName

Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

Returns
TypeDescription
DataTaxonomy

getDataTaxonomy(GetDataTaxonomyRequest request)

public final DataTaxonomy getDataTaxonomy(GetDataTaxonomyRequest request)

Retrieves a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   GetDataTaxonomyRequest request =
       GetDataTaxonomyRequest.newBuilder()
           .setName(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .build();
   DataTaxonomy response = dataTaxonomyServiceClient.getDataTaxonomy(request);
 }
 
Parameter
NameDescription
requestGetDataTaxonomyRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataTaxonomy

getDataTaxonomy(String name)

public final DataTaxonomy getDataTaxonomy(String name)

Retrieves a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String name = DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString();
   DataTaxonomy response = dataTaxonomyServiceClient.getDataTaxonomy(name);
 }
 
Parameter
NameDescription
nameString

Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

Returns
TypeDescription
DataTaxonomy

getDataTaxonomyCallable()

public final UnaryCallable<GetDataTaxonomyRequest,DataTaxonomy> getDataTaxonomyCallable()

Retrieves a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   GetDataTaxonomyRequest request =
       GetDataTaxonomyRequest.newBuilder()
           .setName(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .build();
   ApiFuture<DataTaxonomy> future =
       dataTaxonomyServiceClient.getDataTaxonomyCallable().futureCall(request);
   // Do something.
   DataTaxonomy response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<GetDataTaxonomyRequest,DataTaxonomy>

getHttpJsonOperationsClient()

public final OperationsClient getHttpJsonOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
TypeDescription
OperationsClient

getLocation(GetLocationRequest request)

public final Location getLocation(GetLocationRequest request)

Gets information about a location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   Location response = dataTaxonomyServiceClient.getLocation(request);
 }
 
Parameter
NameDescription
requestcom.google.cloud.location.GetLocationRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
com.google.cloud.location.Location

getLocationCallable()

public final UnaryCallable<GetLocationRequest,Location> getLocationCallable()

Gets information about a location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   GetLocationRequest request = GetLocationRequest.newBuilder().setName("name3373707").build();
   ApiFuture<Location> future =
       dataTaxonomyServiceClient.getLocationCallable().futureCall(request);
   // Do something.
   Location response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.GetLocationRequest,com.google.cloud.location.Location>

getOperationsClient()

public final OperationsClient getOperationsClient()

Returns the OperationsClient that can be used to query the status of a long-running operation returned by another API method call.

Returns
TypeDescription
OperationsClient

getSettings()

public final DataTaxonomyServiceSettings getSettings()
Returns
TypeDescription
DataTaxonomyServiceSettings

getStub()

public DataTaxonomyServiceStub getStub()
Returns
TypeDescription
DataTaxonomyServiceStub

isShutdown()

public boolean isShutdown()
Returns
TypeDescription
boolean

isTerminated()

public boolean isTerminated()
Returns
TypeDescription
boolean

listDataAttributeBindings(ListDataAttributeBindingsRequest request)

public final DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse listDataAttributeBindings(ListDataAttributeBindingsRequest request)

Lists DataAttributeBinding resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataAttributeBindingsRequest request =
       ListDataAttributeBindingsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (DataAttributeBinding element :
       dataTaxonomyServiceClient.listDataAttributeBindings(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListDataAttributeBindingsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse

listDataAttributeBindings(LocationName parent)

public final DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse listDataAttributeBindings(LocationName parent)

Lists DataAttributeBinding resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (DataAttributeBinding element :
       dataTaxonomyServiceClient.listDataAttributeBindings(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. The resource name of the Location: projects/{project_number}/locations/{location_id}

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse

listDataAttributeBindings(String parent)

public final DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse listDataAttributeBindings(String parent)

Lists DataAttributeBinding resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (DataAttributeBinding element :
       dataTaxonomyServiceClient.listDataAttributeBindings(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. The resource name of the Location: projects/{project_number}/locations/{location_id}

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse

listDataAttributeBindingsCallable()

public final UnaryCallable<ListDataAttributeBindingsRequest,ListDataAttributeBindingsResponse> listDataAttributeBindingsCallable()

Lists DataAttributeBinding resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataAttributeBindingsRequest request =
       ListDataAttributeBindingsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListDataAttributeBindingsResponse response =
         dataTaxonomyServiceClient.listDataAttributeBindingsCallable().call(request);
     for (DataAttributeBinding element : response.getDataAttributeBindingsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDataAttributeBindingsRequest,ListDataAttributeBindingsResponse>

listDataAttributeBindingsPagedCallable()

public final UnaryCallable<ListDataAttributeBindingsRequest,DataTaxonomyServiceClient.ListDataAttributeBindingsPagedResponse> listDataAttributeBindingsPagedCallable()

Lists DataAttributeBinding resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataAttributeBindingsRequest request =
       ListDataAttributeBindingsRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<DataAttributeBinding> future =
       dataTaxonomyServiceClient.listDataAttributeBindingsPagedCallable().futureCall(request);
   // Do something.
   for (DataAttributeBinding element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDataAttributeBindingsRequest,ListDataAttributeBindingsPagedResponse>

listDataAttributes(DataTaxonomyName parent)

public final DataTaxonomyServiceClient.ListDataAttributesPagedResponse listDataAttributes(DataTaxonomyName parent)

Lists Data Attribute resources in a DataTaxonomy.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataTaxonomyName parent =
       DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]");
   for (DataAttribute element :
       dataTaxonomyServiceClient.listDataAttributes(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentDataTaxonomyName

Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataAttributesPagedResponse

listDataAttributes(ListDataAttributesRequest request)

public final DataTaxonomyServiceClient.ListDataAttributesPagedResponse listDataAttributes(ListDataAttributesRequest request)

Lists Data Attribute resources in a DataTaxonomy.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataAttributesRequest request =
       ListDataAttributesRequest.newBuilder()
           .setParent(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (DataAttribute element :
       dataTaxonomyServiceClient.listDataAttributes(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListDataAttributesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataAttributesPagedResponse

listDataAttributes(String parent)

public final DataTaxonomyServiceClient.ListDataAttributesPagedResponse listDataAttributes(String parent)

Lists Data Attribute resources in a DataTaxonomy.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String parent =
       DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString();
   for (DataAttribute element :
       dataTaxonomyServiceClient.listDataAttributes(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. The resource name of the DataTaxonomy: projects/{project_number}/locations/{location_id}/dataTaxonomies/{data_taxonomy_id}

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataAttributesPagedResponse

listDataAttributesCallable()

public final UnaryCallable<ListDataAttributesRequest,ListDataAttributesResponse> listDataAttributesCallable()

Lists Data Attribute resources in a DataTaxonomy.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataAttributesRequest request =
       ListDataAttributesRequest.newBuilder()
           .setParent(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListDataAttributesResponse response =
         dataTaxonomyServiceClient.listDataAttributesCallable().call(request);
     for (DataAttribute element : response.getDataAttributesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDataAttributesRequest,ListDataAttributesResponse>

listDataAttributesPagedCallable()

public final UnaryCallable<ListDataAttributesRequest,DataTaxonomyServiceClient.ListDataAttributesPagedResponse> listDataAttributesPagedCallable()

Lists Data Attribute resources in a DataTaxonomy.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataAttributesRequest request =
       ListDataAttributesRequest.newBuilder()
           .setParent(
               DataTaxonomyName.of("[PROJECT]", "[LOCATION]", "[DATA_TAXONOMY_ID]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<DataAttribute> future =
       dataTaxonomyServiceClient.listDataAttributesPagedCallable().futureCall(request);
   // Do something.
   for (DataAttribute element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDataAttributesRequest,ListDataAttributesPagedResponse>

listDataTaxonomies(ListDataTaxonomiesRequest request)

public final DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse listDataTaxonomies(ListDataTaxonomiesRequest request)

Lists DataTaxonomy resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataTaxonomiesRequest request =
       ListDataTaxonomiesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   for (DataTaxonomy element :
       dataTaxonomyServiceClient.listDataTaxonomies(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestListDataTaxonomiesRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse

listDataTaxonomies(LocationName parent)

public final DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse listDataTaxonomies(LocationName parent)

Lists DataTaxonomy resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   LocationName parent = LocationName.of("[PROJECT]", "[LOCATION]");
   for (DataTaxonomy element :
       dataTaxonomyServiceClient.listDataTaxonomies(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentLocationName

Required. The resource name of the DataTaxonomy location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse

listDataTaxonomies(String parent)

public final DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse listDataTaxonomies(String parent)

Lists DataTaxonomy resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   String parent = LocationName.of("[PROJECT]", "[LOCATION]").toString();
   for (DataTaxonomy element :
       dataTaxonomyServiceClient.listDataTaxonomies(parent).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
parentString

Required. The resource name of the DataTaxonomy location, of the form: projects/{project_number}/locations/{location_id} where location_id refers to a GCP region.

Returns
TypeDescription
DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse

listDataTaxonomiesCallable()

public final UnaryCallable<ListDataTaxonomiesRequest,ListDataTaxonomiesResponse> listDataTaxonomiesCallable()

Lists DataTaxonomy resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataTaxonomiesRequest request =
       ListDataTaxonomiesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   while (true) {
     ListDataTaxonomiesResponse response =
         dataTaxonomyServiceClient.listDataTaxonomiesCallable().call(request);
     for (DataTaxonomy element : response.getDataTaxonomiesList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDataTaxonomiesRequest,ListDataTaxonomiesResponse>

listDataTaxonomiesPagedCallable()

public final UnaryCallable<ListDataTaxonomiesRequest,DataTaxonomyServiceClient.ListDataTaxonomiesPagedResponse> listDataTaxonomiesPagedCallable()

Lists DataTaxonomy resources in a project and location.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListDataTaxonomiesRequest request =
       ListDataTaxonomiesRequest.newBuilder()
           .setParent(LocationName.of("[PROJECT]", "[LOCATION]").toString())
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .setFilter("filter-1274492040")
           .setOrderBy("orderBy-1207110587")
           .build();
   ApiFuture<DataTaxonomy> future =
       dataTaxonomyServiceClient.listDataTaxonomiesPagedCallable().futureCall(request);
   // Do something.
   for (DataTaxonomy element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<ListDataTaxonomiesRequest,ListDataTaxonomiesPagedResponse>

listLocations(ListLocationsRequest request)

public final DataTaxonomyServiceClient.ListLocationsPagedResponse listLocations(ListLocationsRequest request)

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   for (Location element : dataTaxonomyServiceClient.listLocations(request).iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Parameter
NameDescription
requestcom.google.cloud.location.ListLocationsRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
DataTaxonomyServiceClient.ListLocationsPagedResponse

listLocationsCallable()

public final UnaryCallable<ListLocationsRequest,ListLocationsResponse> listLocationsCallable()

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   while (true) {
     ListLocationsResponse response =
         dataTaxonomyServiceClient.listLocationsCallable().call(request);
     for (Location element : response.getLocationsList()) {
       // doThingsWith(element);
     }
     String nextPageToken = response.getNextPageToken();
     if (!Strings.isNullOrEmpty(nextPageToken)) {
       request = request.toBuilder().setPageToken(nextPageToken).build();
     } else {
       break;
     }
   }
 }
 
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,com.google.cloud.location.ListLocationsResponse>

listLocationsPagedCallable()

public final UnaryCallable<ListLocationsRequest,DataTaxonomyServiceClient.ListLocationsPagedResponse> listLocationsPagedCallable()

Lists information about the supported locations for this service.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   ListLocationsRequest request =
       ListLocationsRequest.newBuilder()
           .setName("name3373707")
           .setFilter("filter-1274492040")
           .setPageSize(883849137)
           .setPageToken("pageToken873572522")
           .build();
   ApiFuture<Location> future =
       dataTaxonomyServiceClient.listLocationsPagedCallable().futureCall(request);
   // Do something.
   for (Location element : future.get().iterateAll()) {
     // doThingsWith(element);
   }
 }
 
Returns
TypeDescription
UnaryCallable<com.google.cloud.location.ListLocationsRequest,ListLocationsPagedResponse>

shutdown()

public void shutdown()

shutdownNow()

public void shutdownNow()

updateDataAttributeAsync(DataAttribute dataAttribute, FieldMask updateMask)

public final OperationFuture<DataAttribute,OperationMetadata> updateDataAttributeAsync(DataAttribute dataAttribute, FieldMask updateMask)

Updates a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataAttribute dataAttribute = DataAttribute.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   DataAttribute response =
       dataTaxonomyServiceClient.updateDataAttributeAsync(dataAttribute, updateMask).get();
 }
 
Parameters
NameDescription
dataAttributeDataAttribute

Required. Only fields specified in update_mask are updated.

updateMaskFieldMask

Required. Mask of fields to update.

Returns
TypeDescription
OperationFuture<DataAttribute,OperationMetadata>

updateDataAttributeAsync(UpdateDataAttributeRequest request)

public final OperationFuture<DataAttribute,OperationMetadata> updateDataAttributeAsync(UpdateDataAttributeRequest request)

Updates a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataAttributeRequest request =
       UpdateDataAttributeRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataAttribute(DataAttribute.newBuilder().build())
           .setValidateOnly(true)
           .build();
   DataAttribute response = dataTaxonomyServiceClient.updateDataAttributeAsync(request).get();
 }
 
Parameter
NameDescription
requestUpdateDataAttributeRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<DataAttribute,OperationMetadata>

updateDataAttributeBindingAsync(DataAttributeBinding dataAttributeBinding, FieldMask updateMask)

public final OperationFuture<DataAttributeBinding,OperationMetadata> updateDataAttributeBindingAsync(DataAttributeBinding dataAttributeBinding, FieldMask updateMask)

Updates a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataAttributeBinding dataAttributeBinding = DataAttributeBinding.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   DataAttributeBinding response =
       dataTaxonomyServiceClient
           .updateDataAttributeBindingAsync(dataAttributeBinding, updateMask)
           .get();
 }
 
Parameters
NameDescription
dataAttributeBindingDataAttributeBinding

Required. Only fields specified in update_mask are updated.

updateMaskFieldMask

Required. Mask of fields to update.

Returns
TypeDescription
OperationFuture<DataAttributeBinding,OperationMetadata>

updateDataAttributeBindingAsync(UpdateDataAttributeBindingRequest request)

public final OperationFuture<DataAttributeBinding,OperationMetadata> updateDataAttributeBindingAsync(UpdateDataAttributeBindingRequest request)

Updates a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataAttributeBindingRequest request =
       UpdateDataAttributeBindingRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataAttributeBinding(DataAttributeBinding.newBuilder().build())
           .setValidateOnly(true)
           .build();
   DataAttributeBinding response =
       dataTaxonomyServiceClient.updateDataAttributeBindingAsync(request).get();
 }
 
Parameter
NameDescription
requestUpdateDataAttributeBindingRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<DataAttributeBinding,OperationMetadata>

updateDataAttributeBindingCallable()

public final UnaryCallable<UpdateDataAttributeBindingRequest,Operation> updateDataAttributeBindingCallable()

Updates a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataAttributeBindingRequest request =
       UpdateDataAttributeBindingRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataAttributeBinding(DataAttributeBinding.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.updateDataAttributeBindingCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateDataAttributeBindingRequest,Operation>

updateDataAttributeBindingOperationCallable()

public final OperationCallable<UpdateDataAttributeBindingRequest,DataAttributeBinding,OperationMetadata> updateDataAttributeBindingOperationCallable()

Updates a DataAttributeBinding resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataAttributeBindingRequest request =
       UpdateDataAttributeBindingRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataAttributeBinding(DataAttributeBinding.newBuilder().build())
           .setValidateOnly(true)
           .build();
   OperationFuture<DataAttributeBinding, OperationMetadata> future =
       dataTaxonomyServiceClient
           .updateDataAttributeBindingOperationCallable()
           .futureCall(request);
   // Do something.
   DataAttributeBinding response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<UpdateDataAttributeBindingRequest,DataAttributeBinding,OperationMetadata>

updateDataAttributeCallable()

public final UnaryCallable<UpdateDataAttributeRequest,Operation> updateDataAttributeCallable()

Updates a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataAttributeRequest request =
       UpdateDataAttributeRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataAttribute(DataAttribute.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.updateDataAttributeCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateDataAttributeRequest,Operation>

updateDataAttributeOperationCallable()

public final OperationCallable<UpdateDataAttributeRequest,DataAttribute,OperationMetadata> updateDataAttributeOperationCallable()

Updates a DataAttribute resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataAttributeRequest request =
       UpdateDataAttributeRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataAttribute(DataAttribute.newBuilder().build())
           .setValidateOnly(true)
           .build();
   OperationFuture<DataAttribute, OperationMetadata> future =
       dataTaxonomyServiceClient.updateDataAttributeOperationCallable().futureCall(request);
   // Do something.
   DataAttribute response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<UpdateDataAttributeRequest,DataAttribute,OperationMetadata>

updateDataTaxonomyAsync(DataTaxonomy dataTaxonomy, FieldMask updateMask)

public final OperationFuture<DataTaxonomy,OperationMetadata> updateDataTaxonomyAsync(DataTaxonomy dataTaxonomy, FieldMask updateMask)

Updates a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   DataTaxonomy dataTaxonomy = DataTaxonomy.newBuilder().build();
   FieldMask updateMask = FieldMask.newBuilder().build();
   DataTaxonomy response =
       dataTaxonomyServiceClient.updateDataTaxonomyAsync(dataTaxonomy, updateMask).get();
 }
 
Parameters
NameDescription
dataTaxonomyDataTaxonomy

Required. Only fields specified in update_mask are updated.

updateMaskFieldMask

Required. Mask of fields to update.

Returns
TypeDescription
OperationFuture<DataTaxonomy,OperationMetadata>

updateDataTaxonomyAsync(UpdateDataTaxonomyRequest request)

public final OperationFuture<DataTaxonomy,OperationMetadata> updateDataTaxonomyAsync(UpdateDataTaxonomyRequest request)

Updates a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataTaxonomyRequest request =
       UpdateDataTaxonomyRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataTaxonomy(DataTaxonomy.newBuilder().build())
           .setValidateOnly(true)
           .build();
   DataTaxonomy response = dataTaxonomyServiceClient.updateDataTaxonomyAsync(request).get();
 }
 
Parameter
NameDescription
requestUpdateDataTaxonomyRequest

The request object containing all of the parameters for the API call.

Returns
TypeDescription
OperationFuture<DataTaxonomy,OperationMetadata>

updateDataTaxonomyCallable()

public final UnaryCallable<UpdateDataTaxonomyRequest,Operation> updateDataTaxonomyCallable()

Updates a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataTaxonomyRequest request =
       UpdateDataTaxonomyRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataTaxonomy(DataTaxonomy.newBuilder().build())
           .setValidateOnly(true)
           .build();
   ApiFuture<Operation> future =
       dataTaxonomyServiceClient.updateDataTaxonomyCallable().futureCall(request);
   // Do something.
   Operation response = future.get();
 }
 
Returns
TypeDescription
UnaryCallable<UpdateDataTaxonomyRequest,Operation>

updateDataTaxonomyOperationCallable()

public final OperationCallable<UpdateDataTaxonomyRequest,DataTaxonomy,OperationMetadata> updateDataTaxonomyOperationCallable()

Updates a DataTaxonomy resource.

Sample code:


 // This snippet has been automatically generated and should be regarded as a code template only.
 // It will require modifications to work:
 // - It may require correct/in-range values for request initialization.
 // - It may require specifying regional endpoints when creating the service client as shown in
 // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
 try (DataTaxonomyServiceClient dataTaxonomyServiceClient = DataTaxonomyServiceClient.create()) {
   UpdateDataTaxonomyRequest request =
       UpdateDataTaxonomyRequest.newBuilder()
           .setUpdateMask(FieldMask.newBuilder().build())
           .setDataTaxonomy(DataTaxonomy.newBuilder().build())
           .setValidateOnly(true)
           .build();
   OperationFuture<DataTaxonomy, OperationMetadata> future =
       dataTaxonomyServiceClient.updateDataTaxonomyOperationCallable().futureCall(request);
   // Do something.
   DataTaxonomy response = future.get();
 }
 
Returns
TypeDescription
OperationCallable<UpdateDataTaxonomyRequest,DataTaxonomy,OperationMetadata>