- 1.53.0 (latest)
- 1.52.0
- 1.51.0
- 1.50.0
- 1.49.0
- 1.47.0
- 1.46.0
- 1.45.0
- 1.44.0
- 1.43.0
- 1.42.0
- 1.41.0
- 1.40.0
- 1.39.0
- 1.38.0
- 1.37.0
- 1.35.0
- 1.34.0
- 1.33.0
- 1.32.0
- 1.31.0
- 1.30.0
- 1.29.0
- 1.28.0
- 1.27.0
- 1.26.0
- 1.25.0
- 1.22.0
- 1.21.0
- 1.20.0
- 1.19.0
- 1.18.0
- 1.17.0
- 1.16.0
- 1.15.0
- 1.14.0
- 1.13.0
- 1.12.0
- 1.11.0
- 1.10.0
- 1.9.0
- 1.7.0
- 1.6.0
- 1.5.0
- 1.4.0
- 1.3.0
- 1.2.0
- 1.1.2
- 1.0.1
- 0.2.2
GitHub Repository | Product Reference | REST Documentation | RPC 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().
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.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateDataTaxonomy |
Updates a DataTaxonomy resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetDataTaxonomy |
Retrieves a DataTaxonomy resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateDataAttributeBinding |
Create a DataAttributeBinding resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateDataAttributeBinding |
Updates a DataAttributeBinding resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetDataAttributeBinding |
Retrieves a DataAttributeBinding resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
CreateDataAttribute |
Create a DataAttribute resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
UpdateDataAttribute |
Updates a DataAttribute resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
DeleteDataAttribute |
Deletes a Data Attribute resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Methods that return long-running operations have "Async" method variants that return
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetDataAttribute |
Retrieves a Data Attribute resource. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
"Flattened" method variants have converted the fields of the request object into function parameters to enable multiple ways to call the same method.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
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.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
GetLocation |
Gets information about a location. |
Request object method variants only take one parameter, a request object, which must be constructed before the call.
Callable method variants take no parameters and return an immutable API callable object, which can be used to initiate calls to the service.
|
See the individual methods for example code.
Many parameters require resource names to be formatted in a particular way. To assist with these names, this class includes a format method for each type of name, and additionally a parse method to extract the individual identifiers contained within names that are returned.
This class can be customized by passing in a custom instance of DataTaxonomyServiceSettings to create(). For example:
To customize credentials:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
DataTaxonomyServiceSettings dataTaxonomyServiceSettings =
DataTaxonomyServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
DataTaxonomyServiceClient dataTaxonomyServiceClient =
DataTaxonomyServiceClient.create(dataTaxonomyServiceSettings);
To customize the endpoint:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
DataTaxonomyServiceSettings dataTaxonomyServiceSettings =
DataTaxonomyServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
DataTaxonomyServiceClient dataTaxonomyServiceClient =
DataTaxonomyServiceClient.create(dataTaxonomyServiceSettings);
To use REST (HTTP1.1/JSON) transport (instead of gRPC) for sending and receiving requests over the wire:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
DataTaxonomyServiceSettings dataTaxonomyServiceSettings =
DataTaxonomyServiceSettings.newHttpJsonBuilder().build();
DataTaxonomyServiceClient dataTaxonomyServiceClient =
DataTaxonomyServiceClient.create(dataTaxonomyServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
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.
|
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.
|
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.
|
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.
|
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 |
dataTaxonomy |
DataTaxonomy Required. DataTaxonomy resource. |
dataTaxonomyId |
String Required. DataTaxonomy identifier.
|
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 |
dataTaxonomy |
DataTaxonomy Required. DataTaxonomy resource. |
dataTaxonomyId |
String Required. DataTaxonomy identifier.
|
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 |
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 |
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 |
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 |
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 |
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> |