Class DataTaxonomyServiceClient (1.52.0)

GitHub RepositoryProduct ReferenceREST DocumentationRPC Documentation

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().

Methods
Method Description Method Variants

CreateDataTaxonomy

Create a DataTaxonomy resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createDataTaxonomyAsync(CreateDataTaxonomyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createDataTaxonomyAsync(LocationName parent, DataTaxonomy dataTaxonomy, String dataTaxonomyId)

  • createDataTaxonomyAsync(String parent, DataTaxonomy dataTaxonomy, String dataTaxonomyId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createDataTaxonomyOperationCallable()

  • createDataTaxonomyCallable()

UpdateDataTaxonomy

Updates a DataTaxonomy resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateDataTaxonomyAsync(UpdateDataTaxonomyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateDataTaxonomyAsync(DataTaxonomy dataTaxonomy, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateDataTaxonomyOperationCallable()

  • updateDataTaxonomyCallable()

DeleteDataTaxonomy

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

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteDataTaxonomyAsync(DeleteDataTaxonomyRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteDataTaxonomyAsync(DataTaxonomyName name)

  • deleteDataTaxonomyAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteDataTaxonomyOperationCallable()

  • deleteDataTaxonomyCallable()

ListDataTaxonomies

Lists DataTaxonomy resources in a project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listDataTaxonomies(ListDataTaxonomiesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listDataTaxonomies(LocationName parent)

  • listDataTaxonomies(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listDataTaxonomiesPagedCallable()

  • listDataTaxonomiesCallable()

GetDataTaxonomy

Retrieves a DataTaxonomy resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getDataTaxonomy(GetDataTaxonomyRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getDataTaxonomy(DataTaxonomyName name)

  • getDataTaxonomy(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getDataTaxonomyCallable()

CreateDataAttributeBinding

Create a DataAttributeBinding resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createDataAttributeBindingAsync(CreateDataAttributeBindingRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createDataAttributeBindingAsync(LocationName parent, DataAttributeBinding dataAttributeBinding, String dataAttributeBindingId)

  • createDataAttributeBindingAsync(String parent, DataAttributeBinding dataAttributeBinding, String dataAttributeBindingId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createDataAttributeBindingOperationCallable()

  • createDataAttributeBindingCallable()

UpdateDataAttributeBinding

Updates a DataAttributeBinding resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateDataAttributeBindingAsync(UpdateDataAttributeBindingRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateDataAttributeBindingAsync(DataAttributeBinding dataAttributeBinding, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateDataAttributeBindingOperationCallable()

  • updateDataAttributeBindingCallable()

DeleteDataAttributeBinding

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

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteDataAttributeBindingAsync(DeleteDataAttributeBindingRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteDataAttributeBindingAsync(DataAttributeBindingName name)

  • deleteDataAttributeBindingAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteDataAttributeBindingOperationCallable()

  • deleteDataAttributeBindingCallable()

ListDataAttributeBindings

Lists DataAttributeBinding resources in a project and location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listDataAttributeBindings(ListDataAttributeBindingsRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listDataAttributeBindings(LocationName parent)

  • listDataAttributeBindings(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listDataAttributeBindingsPagedCallable()

  • listDataAttributeBindingsCallable()

GetDataAttributeBinding

Retrieves a DataAttributeBinding resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getDataAttributeBinding(GetDataAttributeBindingRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getDataAttributeBinding(DataAttributeBindingName name)

  • getDataAttributeBinding(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getDataAttributeBindingCallable()

CreateDataAttribute

Create a DataAttribute resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • createDataAttributeAsync(CreateDataAttributeRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • createDataAttributeAsync(DataTaxonomyName parent, DataAttribute dataAttribute, String dataAttributeId)

  • createDataAttributeAsync(String parent, DataAttribute dataAttribute, String dataAttributeId)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • createDataAttributeOperationCallable()

  • createDataAttributeCallable()

UpdateDataAttribute

Updates a DataAttribute resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • updateDataAttributeAsync(UpdateDataAttributeRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • updateDataAttributeAsync(DataAttribute dataAttribute, FieldMask updateMask)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • updateDataAttributeOperationCallable()

  • updateDataAttributeCallable()

DeleteDataAttribute

Deletes a Data Attribute resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • deleteDataAttributeAsync(DeleteDataAttributeRequest request)

Methods that return long-running operations have "Async" method variants that return OperationFuture, which is used to track polling of the service.

  • deleteDataAttributeAsync(DataAttributeName name)

  • deleteDataAttributeAsync(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • deleteDataAttributeOperationCallable()

  • deleteDataAttributeCallable()

ListDataAttributes

Lists Data Attribute resources in a DataTaxonomy.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listDataAttributes(ListDataAttributesRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • listDataAttributes(DataTaxonomyName parent)

  • listDataAttributes(String parent)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listDataAttributesPagedCallable()

  • listDataAttributesCallable()

GetDataAttribute

Retrieves a Data Attribute resource.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getDataAttribute(GetDataAttributeRequest request)

"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.

  • getDataAttribute(DataAttributeName name)

  • getDataAttribute(String name)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getDataAttributeCallable()

ListLocations

Lists information about the supported locations for this service.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • listLocations(ListLocationsRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • listLocationsPagedCallable()

  • listLocationsCallable()

GetLocation

Gets information about a location.

Request object method variants only take one parameter, a request object, which must be constructed before the call.

  • getLocation(GetLocationRequest request)

Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.

  • getLocationCallable()

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

Static Methods

create()

public static final DataTaxonomyServiceClient create()

Constructs an instance of DataTaxonomyServiceClient with default settings.

Returns
Type Description
DataTaxonomyServiceClient
Exceptions
Type Description
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
Name Description
settings DataTaxonomyServiceSettings
Returns
Type Description
DataTaxonomyServiceClient
Exceptions
Type Description
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
Name Description
stub DataTaxonomyServiceStub
Returns
Type Description
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
Name Description
settings DataTaxonomyServiceSettings

DataTaxonomyServiceClient(DataTaxonomyServiceStub stub)

protected DataTaxonomyServiceClient(DataTaxonomyServiceStub stub)
Parameter
Name Description
stub DataTaxonomyServiceStub

Methods

awaitTermination(long duration, TimeUnit unit)

public boolean awaitTermination(long duration, TimeUnit unit)
Parameters
Name Description
duration long
unit TimeUnit
Returns
Type Description
boolean
Exceptions
Type Description
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
Name Description
request CreateDataAttributeRequest

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

Returns
Type Description
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
Name Description
parent DataTaxonomyName

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

dataAttribute DataAttribute

Required. DataAttribute resource.

dataAttributeId String

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
Type Description
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
Name Description
parent String

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

dataAttribute DataAttribute

Required. DataAttribute resource.

dataAttributeId String

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
Type Description
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
Name Description
request CreateDataAttributeBindingRequest

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

Returns
Type Description
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
Name Description
parent LocationName

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

dataAttributeBinding DataAttributeBinding

Required. DataAttributeBinding resource.

dataAttributeBindingId String

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
Type Description
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
Name Description
parent String

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

dataAttributeBinding DataAttributeBinding

Required. DataAttributeBinding resource.

dataAttributeBindingId String

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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
request CreateDataTaxonomyRequest

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

Returns
Type Description
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
Name Description
parent LocationName

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.

dataTaxonomy DataTaxonomy

Required. DataTaxonomy resource.

dataTaxonomyId String

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
Type Description
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
Name Description
parent String

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.

dataTaxonomy DataTaxonomy

Required. DataTaxonomy resource.

dataTaxonomyId String

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
Type Description
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
Type Description
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
Type Description
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
Name Description
name DataAttributeName

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

Returns
Type Description
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
Name Description
request DeleteDataAttributeRequest

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

Returns
Type Description
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
Name Description
name String

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

Returns
Type Description
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
Name Description
name DataAttributeBindingName

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

Returns
Type Description
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
Name Description
request DeleteDataAttributeBindingRequest

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

Returns
Type Description
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
Name Description
name String

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
name DataTaxonomyName

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

Returns
Type Description
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
Name Description
request DeleteDataTaxonomyRequest

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

Returns
Type Description
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
Name Description
name String

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

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
name DataAttributeName

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

Returns
Type Description
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
Name Description
request GetDataAttributeRequest

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

Returns
Type Description
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
Name Description
name String

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

Returns
Type Description
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
Name Description
name DataAttributeBindingName

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

Returns
Type Description
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
Name Description
request GetDataAttributeBindingRequest

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

Returns
Type Description
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
Name Description
name String

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

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
name DataTaxonomyName

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

Returns
Type Description
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
Name Description
request GetDataTaxonomyRequest

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

Returns
Type Description
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
Name Description
name String

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

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
request com.google.cloud.location.GetLocationRequest

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

Returns
Type Description
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
Type Description
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
Type Description
OperationsClient

getSettings()

public final DataTaxonomyServiceSettings getSettings()
Returns
Type Description
DataTaxonomyServiceSettings

getStub()

public DataTaxonomyServiceStub getStub()
Returns
Type Description
DataTaxonomyServiceStub

isShutdown()

public boolean isShutdown()
Returns
Type Description
boolean

isTerminated()

public boolean isTerminated()
Returns
Type Description
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
Name Description
request ListDataAttributeBindingsRequest

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

Returns
Type Description
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
Name Description
parent LocationName

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

Returns
Type Description
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
Name Description
parent String

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

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
parent DataTaxonomyName

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

Returns
Type Description
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
Name Description
request ListDataAttributesRequest

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

Returns
Type Description
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
Name Description
parent String

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

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
request ListDataTaxonomiesRequest

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

Returns
Type Description
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
Name Description
parent LocationName

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
Type Description
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
Name Description
parent String

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
Type Description
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
Type Description
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
Type Description
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
Name Description
request com.google.cloud.location.ListLocationsRequest

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

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
dataAttribute DataAttribute

Required. Only fields specified in update_mask are updated.

updateMask FieldMask

Required. Mask of fields to update.

Returns
Type Description
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
Name Description
request UpdateDataAttributeRequest

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

Returns
Type Description
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
Name Description
dataAttributeBinding DataAttributeBinding

Required. Only fields specified in update_mask are updated.

updateMask FieldMask

Required. Mask of fields to update.

Returns
Type Description
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
Name Description
request UpdateDataAttributeBindingRequest

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

Returns
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Type Description
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
Name Description
dataTaxonomy DataTaxonomy

Required. Only fields specified in update_mask are updated.

updateMask FieldMask

Required. Mask of fields to update.

Returns
Type Description
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
Name Description
request UpdateDataTaxonomyRequest

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

Returns
Type Description
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
Type Description
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
Type Description
OperationCallable<UpdateDataTaxonomyRequest,DataTaxonomy,OperationMetadata>