| GitHub Repository | Product Reference |
Service Description: DataTableManager provides an interface for managing data tables.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
DataTable dataTable = DataTable.newBuilder().build();
String dataTableId = "dataTableId1260854911";
DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId);
}
Note: close() needs to be called on the DataTableServiceClient 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 |
|---|---|---|
CreateDataTable |
Create a new data table. |
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.
|
ListDataTables |
List data tables. |
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.
|
GetDataTable |
Get data table info. |
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.
|
UpdateDataTable |
Update data table. |
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.
|
DeleteDataTable |
Delete data table. |
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.
|
CreateDataTableRow |
Create a new data table row. |
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.
|
UpdateDataTableRow |
Update data table row |
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.
|
ListDataTableRows |
List data table rows. |
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.
|
GetDataTableRow |
Get data table row |
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.
|
DeleteDataTableRow |
Delete data table row. |
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.
|
BulkCreateDataTableRows |
Create data table rows in bulk. |
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.
|
BulkGetDataTableRows |
Get data table rows in bulk. |
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.
|
BulkReplaceDataTableRows |
Replace all existing data table rows with new data table rows. |
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.
|
BulkUpdateDataTableRows |
Update data table rows in bulk. |
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.
|
GetDataTableOperationErrors |
Get the error for a data table operation. |
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.
|
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 DataTableServiceSettings 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
DataTableServiceSettings dataTableServiceSettings =
DataTableServiceSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
DataTableServiceClient dataTableServiceClient =
DataTableServiceClient.create(dataTableServiceSettings);
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
DataTableServiceSettings dataTableServiceSettings =
DataTableServiceSettings.newBuilder().setEndpoint(myEndpoint).build();
DataTableServiceClient dataTableServiceClient =
DataTableServiceClient.create(dataTableServiceSettings);
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
DataTableServiceSettings dataTableServiceSettings =
DataTableServiceSettings.newHttpJsonBuilder().build();
DataTableServiceClient dataTableServiceClient =
DataTableServiceClient.create(dataTableServiceSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final DataTableServiceClient create()Constructs an instance of DataTableServiceClient with default settings.
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(DataTableServiceSettings settings)
public static final DataTableServiceClient create(DataTableServiceSettings settings)Constructs an instance of DataTableServiceClient, 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 |
DataTableServiceSettings |
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(DataTableServiceStub stub)
public static final DataTableServiceClient create(DataTableServiceStub stub)Constructs an instance of DataTableServiceClient, using the given stub for making calls. This is for advanced usage - prefer using create(DataTableServiceSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
DataTableServiceStub |
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient |
|
Constructors
DataTableServiceClient(DataTableServiceSettings settings)
protected DataTableServiceClient(DataTableServiceSettings settings)Constructs an instance of DataTableServiceClient, 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 |
DataTableServiceSettings |
DataTableServiceClient(DataTableServiceStub stub)
protected DataTableServiceClient(DataTableServiceStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
DataTableServiceStub |
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 |
|
bulkCreateDataTableRows(BulkCreateDataTableRowsRequest request)
public final BulkCreateDataTableRowsResponse bulkCreateDataTableRows(BulkCreateDataTableRowsRequest request)Create data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
BulkCreateDataTableRowsRequest request =
BulkCreateDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.addAllRequests(new ArrayList<CreateDataTableRowRequest>())
.build();
BulkCreateDataTableRowsResponse response =
dataTableServiceClient.bulkCreateDataTableRows(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BulkCreateDataTableRowsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BulkCreateDataTableRowsResponse |
|
bulkCreateDataTableRows(DataTableName parent, List<CreateDataTableRowRequest> requests)
public final BulkCreateDataTableRowsResponse bulkCreateDataTableRows(DataTableName parent, List<CreateDataTableRowRequest> requests)Create data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableName parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
List<CreateDataTableRowRequest> requests = new ArrayList<>();
BulkCreateDataTableRowsResponse response =
dataTableServiceClient.bulkCreateDataTableRows(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
DataTableNameRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
requests |
List<CreateDataTableRowRequest>Required. Data table rows to create. A maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) can be created in a single request. Total size of the rows should be less than 4MB. |
| Returns | |
|---|---|
| Type | Description |
BulkCreateDataTableRowsResponse |
|
bulkCreateDataTableRows(String parent, List<CreateDataTableRowRequest> requests)
public final BulkCreateDataTableRowsResponse bulkCreateDataTableRows(String parent, List<CreateDataTableRowRequest> requests)Create data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
List<CreateDataTableRowRequest> requests = new ArrayList<>();
BulkCreateDataTableRowsResponse response =
dataTableServiceClient.bulkCreateDataTableRows(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
requests |
List<CreateDataTableRowRequest>Required. Data table rows to create. A maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) can be created in a single request. Total size of the rows should be less than 4MB. |
| Returns | |
|---|---|
| Type | Description |
BulkCreateDataTableRowsResponse |
|
bulkCreateDataTableRowsCallable()
public final UnaryCallable<BulkCreateDataTableRowsRequest,BulkCreateDataTableRowsResponse> bulkCreateDataTableRowsCallable()Create data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
BulkCreateDataTableRowsRequest request =
BulkCreateDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.addAllRequests(new ArrayList<CreateDataTableRowRequest>())
.build();
ApiFuture<BulkCreateDataTableRowsResponse> future =
dataTableServiceClient.bulkCreateDataTableRowsCallable().futureCall(request);
// Do something.
BulkCreateDataTableRowsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BulkCreateDataTableRowsRequest,BulkCreateDataTableRowsResponse> |
|
bulkGetDataTableRows(BulkGetDataTableRowsRequest request)
public final BulkGetDataTableRowsResponse bulkGetDataTableRows(BulkGetDataTableRowsRequest request)Get data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
BulkGetDataTableRowsRequest request =
BulkGetDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.addAllRequests(new ArrayList<GetDataTableRowRequest>())
.build();
BulkGetDataTableRowsResponse response = dataTableServiceClient.bulkGetDataTableRows(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BulkGetDataTableRowsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BulkGetDataTableRowsResponse |
|
bulkGetDataTableRows(DataTableName parent, List<GetDataTableRowRequest> requests)
public final BulkGetDataTableRowsResponse bulkGetDataTableRows(DataTableName parent, List<GetDataTableRowRequest> requests)Get data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableName parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
List<GetDataTableRowRequest> requests = new ArrayList<>();
BulkGetDataTableRowsResponse response =
dataTableServiceClient.bulkGetDataTableRows(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
DataTableNameRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
requests |
List<GetDataTableRowRequest>Required. Data table rows to get. At max 1,000 rows can be there in a request. |
| Returns | |
|---|---|
| Type | Description |
BulkGetDataTableRowsResponse |
|
bulkGetDataTableRows(String parent, List<GetDataTableRowRequest> requests)
public final BulkGetDataTableRowsResponse bulkGetDataTableRows(String parent, List<GetDataTableRowRequest> requests)Get data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
List<GetDataTableRowRequest> requests = new ArrayList<>();
BulkGetDataTableRowsResponse response =
dataTableServiceClient.bulkGetDataTableRows(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
requests |
List<GetDataTableRowRequest>Required. Data table rows to get. At max 1,000 rows can be there in a request. |
| Returns | |
|---|---|
| Type | Description |
BulkGetDataTableRowsResponse |
|
bulkGetDataTableRowsCallable()
public final UnaryCallable<BulkGetDataTableRowsRequest,BulkGetDataTableRowsResponse> bulkGetDataTableRowsCallable()Get data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
BulkGetDataTableRowsRequest request =
BulkGetDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.addAllRequests(new ArrayList<GetDataTableRowRequest>())
.build();
ApiFuture<BulkGetDataTableRowsResponse> future =
dataTableServiceClient.bulkGetDataTableRowsCallable().futureCall(request);
// Do something.
BulkGetDataTableRowsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BulkGetDataTableRowsRequest,BulkGetDataTableRowsResponse> |
|
bulkReplaceDataTableRows(BulkReplaceDataTableRowsRequest request)
public final BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows(BulkReplaceDataTableRowsRequest request)Replace all existing data table rows with new data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
BulkReplaceDataTableRowsRequest request =
BulkReplaceDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.addAllRequests(new ArrayList<CreateDataTableRowRequest>())
.build();
BulkReplaceDataTableRowsResponse response =
dataTableServiceClient.bulkReplaceDataTableRows(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BulkReplaceDataTableRowsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BulkReplaceDataTableRowsResponse |
|
bulkReplaceDataTableRows(DataTableName parent, List<CreateDataTableRowRequest> requests)
public final BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows(DataTableName parent, List<CreateDataTableRowRequest> requests)Replace all existing data table rows with new data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableName parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
List<CreateDataTableRowRequest> requests = new ArrayList<>();
BulkReplaceDataTableRowsResponse response =
dataTableServiceClient.bulkReplaceDataTableRows(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
DataTableNameRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
requests |
List<CreateDataTableRowRequest>Required. Data table rows to replace the existing data table rows. A maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) can be replaced in a single request. Total size of the rows should be less than 4MB. |
| Returns | |
|---|---|
| Type | Description |
BulkReplaceDataTableRowsResponse |
|
bulkReplaceDataTableRows(String parent, List<CreateDataTableRowRequest> requests)
public final BulkReplaceDataTableRowsResponse bulkReplaceDataTableRows(String parent, List<CreateDataTableRowRequest> requests)Replace all existing data table rows with new data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
List<CreateDataTableRowRequest> requests = new ArrayList<>();
BulkReplaceDataTableRowsResponse response =
dataTableServiceClient.bulkReplaceDataTableRows(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
requests |
List<CreateDataTableRowRequest>Required. Data table rows to replace the existing data table rows. A maximum of 1000 rows (for sync requests) or 2000 rows (for async requests) can be replaced in a single request. Total size of the rows should be less than 4MB. |
| Returns | |
|---|---|
| Type | Description |
BulkReplaceDataTableRowsResponse |
|
bulkReplaceDataTableRowsCallable()
public final UnaryCallable<BulkReplaceDataTableRowsRequest,BulkReplaceDataTableRowsResponse> bulkReplaceDataTableRowsCallable()Replace all existing data table rows with new data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
BulkReplaceDataTableRowsRequest request =
BulkReplaceDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.addAllRequests(new ArrayList<CreateDataTableRowRequest>())
.build();
ApiFuture<BulkReplaceDataTableRowsResponse> future =
dataTableServiceClient.bulkReplaceDataTableRowsCallable().futureCall(request);
// Do something.
BulkReplaceDataTableRowsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BulkReplaceDataTableRowsRequest,BulkReplaceDataTableRowsResponse> |
|
bulkUpdateDataTableRows(BulkUpdateDataTableRowsRequest request)
public final BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows(BulkUpdateDataTableRowsRequest request)Update data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
BulkUpdateDataTableRowsRequest request =
BulkUpdateDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.addAllRequests(new ArrayList<UpdateDataTableRowRequest>())
.build();
BulkUpdateDataTableRowsResponse response =
dataTableServiceClient.bulkUpdateDataTableRows(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
BulkUpdateDataTableRowsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BulkUpdateDataTableRowsResponse |
|
bulkUpdateDataTableRows(DataTableName parent, List<UpdateDataTableRowRequest> requests)
public final BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows(DataTableName parent, List<UpdateDataTableRowRequest> requests)Update data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableName parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
List<UpdateDataTableRowRequest> requests = new ArrayList<>();
BulkUpdateDataTableRowsResponse response =
dataTableServiceClient.bulkUpdateDataTableRows(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
DataTableNameRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
requests |
List<UpdateDataTableRowRequest>Required. Data table rows to update. At max 1,000 rows (or rows with size less than 2MB) can be there in a request. |
| Returns | |
|---|---|
| Type | Description |
BulkUpdateDataTableRowsResponse |
|
bulkUpdateDataTableRows(String parent, List<UpdateDataTableRowRequest> requests)
public final BulkUpdateDataTableRowsResponse bulkUpdateDataTableRows(String parent, List<UpdateDataTableRowRequest> requests)Update data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
List<UpdateDataTableRowRequest> requests = new ArrayList<>();
BulkUpdateDataTableRowsResponse response =
dataTableServiceClient.bulkUpdateDataTableRows(parent, requests);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
requests |
List<UpdateDataTableRowRequest>Required. Data table rows to update. At max 1,000 rows (or rows with size less than 2MB) can be there in a request. |
| Returns | |
|---|---|
| Type | Description |
BulkUpdateDataTableRowsResponse |
|
bulkUpdateDataTableRowsCallable()
public final UnaryCallable<BulkUpdateDataTableRowsRequest,BulkUpdateDataTableRowsResponse> bulkUpdateDataTableRowsCallable()Update data table rows in bulk.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
BulkUpdateDataTableRowsRequest request =
BulkUpdateDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.addAllRequests(new ArrayList<UpdateDataTableRowRequest>())
.build();
ApiFuture<BulkUpdateDataTableRowsResponse> future =
dataTableServiceClient.bulkUpdateDataTableRowsCallable().futureCall(request);
// Do something.
BulkUpdateDataTableRowsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<BulkUpdateDataTableRowsRequest,BulkUpdateDataTableRowsResponse> |
|
close()
public final void close()createDataTable(CreateDataTableRequest request)
public final DataTable createDataTable(CreateDataTableRequest request)Create a new data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
CreateDataTableRequest request =
CreateDataTableRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setDataTable(DataTable.newBuilder().build())
.setDataTableId("dataTableId1260854911")
.build();
DataTable response = dataTableServiceClient.createDataTable(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateDataTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTable |
|
createDataTable(InstanceName parent, DataTable dataTable, String dataTableId)
public final DataTable createDataTable(InstanceName parent, DataTable dataTable, String dataTableId)Create a new data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
DataTable dataTable = DataTable.newBuilder().build();
String dataTableId = "dataTableId1260854911";
DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this data table will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
dataTable |
DataTableRequired. The data table being created. |
dataTableId |
StringRequired. The ID to use for the data table. This is also the display name for the data table. It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length < 256. |
| Returns | |
|---|---|
| Type | Description |
DataTable |
|
createDataTable(String parent, DataTable dataTable, String dataTableId)
public final DataTable createDataTable(String parent, DataTable dataTable, String dataTableId)Create a new data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
DataTable dataTable = DataTable.newBuilder().build();
String dataTableId = "dataTableId1260854911";
DataTable response = dataTableServiceClient.createDataTable(parent, dataTable, dataTableId);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this data table will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
dataTable |
DataTableRequired. The data table being created. |
dataTableId |
StringRequired. The ID to use for the data table. This is also the display name for the data table. It must satisfy the following requirements: - Starts with letter. - Contains only letters, numbers and underscore. - Must be unique and has length < 256. |
| Returns | |
|---|---|
| Type | Description |
DataTable |
|
createDataTableCallable()
public final UnaryCallable<CreateDataTableRequest,DataTable> createDataTableCallable()Create a new data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
CreateDataTableRequest request =
CreateDataTableRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setDataTable(DataTable.newBuilder().build())
.setDataTableId("dataTableId1260854911")
.build();
ApiFuture<DataTable> future =
dataTableServiceClient.createDataTableCallable().futureCall(request);
// Do something.
DataTable response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateDataTableRequest,DataTable> |
|
createDataTableRow(CreateDataTableRowRequest request)
public final DataTableRow createDataTableRow(CreateDataTableRowRequest request)Create a new data table row.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
CreateDataTableRowRequest request =
CreateDataTableRowRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.setDataTableRow(DataTableRow.newBuilder().build())
.build();
DataTableRow response = dataTableServiceClient.createDataTableRow(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
CreateDataTableRowRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTableRow |
|
createDataTableRow(DataTableName parent, DataTableRow dataTableRow)
public final DataTableRow createDataTableRow(DataTableName parent, DataTableRow dataTableRow)Create a new data table row.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableName parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
DataTableRow dataTableRow = DataTableRow.newBuilder().build();
DataTableRow response = dataTableServiceClient.createDataTableRow(parent, dataTableRow);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
DataTableNameRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
dataTableRow |
DataTableRowRequired. The data table row to create. |
| Returns | |
|---|---|
| Type | Description |
DataTableRow |
|
createDataTableRow(String parent, DataTableRow dataTableRow)
public final DataTableRow createDataTableRow(String parent, DataTableRow dataTableRow)Create a new data table row.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
DataTableRow dataTableRow = DataTableRow.newBuilder().build();
DataTableRow response = dataTableServiceClient.createDataTableRow(parent, dataTableRow);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The resource id of the data table. Format: /projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table} |
dataTableRow |
DataTableRowRequired. The data table row to create. |
| Returns | |
|---|---|
| Type | Description |
DataTableRow |
|
createDataTableRowCallable()
public final UnaryCallable<CreateDataTableRowRequest,DataTableRow> createDataTableRowCallable()Create a new data table row.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
CreateDataTableRowRequest request =
CreateDataTableRowRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.setDataTableRow(DataTableRow.newBuilder().build())
.build();
ApiFuture<DataTableRow> future =
dataTableServiceClient.createDataTableRowCallable().futureCall(request);
// Do something.
DataTableRow response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<CreateDataTableRowRequest,DataTableRow> |
|
deleteDataTable(DataTableName name, boolean force)
public final void deleteDataTable(DataTableName name, boolean force)Delete data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableName name =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
boolean force = true;
dataTableServiceClient.deleteDataTable(name, force);
}
| Parameters | |
|---|---|
| Name | Description |
name |
DataTableNameRequired. The resource name of the data table to delete. Format projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} |
force |
booleanOptional. If set to true, any rows under this data table will also be deleted. (Otherwise, the request will only work if the data table has no rows.) |
deleteDataTable(DeleteDataTableRequest request)
public final void deleteDataTable(DeleteDataTableRequest request)Delete data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DeleteDataTableRequest request =
DeleteDataTableRequest.newBuilder()
.setName(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.setForce(true)
.build();
dataTableServiceClient.deleteDataTable(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteDataTableRequestThe request object containing all of the parameters for the API call. |
deleteDataTable(String name, boolean force)
public final void deleteDataTable(String name, boolean force)Delete data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String name =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
boolean force = true;
dataTableServiceClient.deleteDataTable(name, force);
}
| Parameters | |
|---|---|
| Name | Description |
name |
StringRequired. The resource name of the data table to delete. Format projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} |
force |
booleanOptional. If set to true, any rows under this data table will also be deleted. (Otherwise, the request will only work if the data table has no rows.) |
deleteDataTableCallable()
public final UnaryCallable<DeleteDataTableRequest,Empty> deleteDataTableCallable()Delete data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DeleteDataTableRequest request =
DeleteDataTableRequest.newBuilder()
.setName(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.setForce(true)
.build();
ApiFuture<Empty> future =
dataTableServiceClient.deleteDataTableCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteDataTableRequest,Empty> |
|
deleteDataTableRow(DataTableRowName name)
public final void deleteDataTableRow(DataTableRowName name)Delete data table row.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableRowName name =
DataTableRowName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]");
dataTableServiceClient.deleteDataTableRow(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
DataTableRowNameRequired. The resource name of the data table row i,e row_id. Format: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} |
deleteDataTableRow(DeleteDataTableRowRequest request)
public final void deleteDataTableRow(DeleteDataTableRowRequest request)Delete data table row.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DeleteDataTableRowRequest request =
DeleteDataTableRowRequest.newBuilder()
.setName(
DataTableRowName.of(
"[PROJECT]",
"[LOCATION]",
"[INSTANCE]",
"[DATA_TABLE]",
"[DATA_TABLE_ROW]")
.toString())
.build();
dataTableServiceClient.deleteDataTableRow(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
DeleteDataTableRowRequestThe request object containing all of the parameters for the API call. |
deleteDataTableRow(String name)
public final void deleteDataTableRow(String name)Delete data table row.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String name =
DataTableRowName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]")
.toString();
dataTableServiceClient.deleteDataTableRow(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The resource name of the data table row i,e row_id. Format: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} |
deleteDataTableRowCallable()
public final UnaryCallable<DeleteDataTableRowRequest,Empty> deleteDataTableRowCallable()Delete data table row.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DeleteDataTableRowRequest request =
DeleteDataTableRowRequest.newBuilder()
.setName(
DataTableRowName.of(
"[PROJECT]",
"[LOCATION]",
"[INSTANCE]",
"[DATA_TABLE]",
"[DATA_TABLE_ROW]")
.toString())
.build();
ApiFuture<Empty> future =
dataTableServiceClient.deleteDataTableRowCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<DeleteDataTableRowRequest,Empty> |
|
getDataTable(DataTableName name)
public final DataTable getDataTable(DataTableName name)Get data table info.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableName name =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
DataTable response = dataTableServiceClient.getDataTable(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
DataTableNameRequired. The resource name of the data table to retrieve. Format: projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} |
| Returns | |
|---|---|
| Type | Description |
DataTable |
|
getDataTable(GetDataTableRequest request)
public final DataTable getDataTable(GetDataTableRequest request)Get data table info.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
GetDataTableRequest request =
GetDataTableRequest.newBuilder()
.setName(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.build();
DataTable response = dataTableServiceClient.getDataTable(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetDataTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTable |
|
getDataTable(String name)
public final DataTable getDataTable(String name)Get data table info.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String name =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
DataTable response = dataTableServiceClient.getDataTable(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The resource name of the data table to retrieve. Format: projects/{project}/locations/{location}/instances/{instances}/dataTables/{data_table} |
| Returns | |
|---|---|
| Type | Description |
DataTable |
|
getDataTableCallable()
public final UnaryCallable<GetDataTableRequest,DataTable> getDataTableCallable()Get data table info.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
GetDataTableRequest request =
GetDataTableRequest.newBuilder()
.setName(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.build();
ApiFuture<DataTable> future =
dataTableServiceClient.getDataTableCallable().futureCall(request);
// Do something.
DataTable response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetDataTableRequest,DataTable> |
|
getDataTableOperationErrors(DataTableOperationErrorsName name)
public final DataTableOperationErrors getDataTableOperationErrors(DataTableOperationErrorsName name)Get the error for a data table operation.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableOperationErrorsName name =
DataTableOperationErrorsName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]");
DataTableOperationErrors response = dataTableServiceClient.getDataTableOperationErrors(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
DataTableOperationErrorsNameRequired. Resource name for the data table operation errors. Format: projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} |
| Returns | |
|---|---|
| Type | Description |
DataTableOperationErrors |
|
getDataTableOperationErrors(GetDataTableOperationErrorsRequest request)
public final DataTableOperationErrors getDataTableOperationErrors(GetDataTableOperationErrorsRequest request)Get the error for a data table operation.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
GetDataTableOperationErrorsRequest request =
GetDataTableOperationErrorsRequest.newBuilder()
.setName(
DataTableOperationErrorsName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]")
.toString())
.build();
DataTableOperationErrors response =
dataTableServiceClient.getDataTableOperationErrors(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetDataTableOperationErrorsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTableOperationErrors |
|
getDataTableOperationErrors(String name)
public final DataTableOperationErrors getDataTableOperationErrors(String name)Get the error for a data table operation.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String name =
DataTableOperationErrorsName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]")
.toString();
DataTableOperationErrors response = dataTableServiceClient.getDataTableOperationErrors(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Resource name for the data table operation errors. Format: projects/{project}/locations/{location}/instances/{instance}/dataTableOperationErrors/{data_table_operation_errors} |
| Returns | |
|---|---|
| Type | Description |
DataTableOperationErrors |
|
getDataTableOperationErrorsCallable()
public final UnaryCallable<GetDataTableOperationErrorsRequest,DataTableOperationErrors> getDataTableOperationErrorsCallable()Get the error for a data table operation.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
GetDataTableOperationErrorsRequest request =
GetDataTableOperationErrorsRequest.newBuilder()
.setName(
DataTableOperationErrorsName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE_OPERATION_ERRORS]")
.toString())
.build();
ApiFuture<DataTableOperationErrors> future =
dataTableServiceClient.getDataTableOperationErrorsCallable().futureCall(request);
// Do something.
DataTableOperationErrors response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetDataTableOperationErrorsRequest,DataTableOperationErrors> |
|
getDataTableRow(DataTableRowName name)
public final DataTableRow getDataTableRow(DataTableRowName name)Get data table row
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableRowName name =
DataTableRowName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]");
DataTableRow response = dataTableServiceClient.getDataTableRow(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
DataTableRowNameRequired. The resource name of the data table row i,e row_id. Format: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} |
| Returns | |
|---|---|
| Type | Description |
DataTableRow |
|
getDataTableRow(GetDataTableRowRequest request)
public final DataTableRow getDataTableRow(GetDataTableRowRequest request)Get data table row
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
GetDataTableRowRequest request =
GetDataTableRowRequest.newBuilder()
.setName(
DataTableRowName.of(
"[PROJECT]",
"[LOCATION]",
"[INSTANCE]",
"[DATA_TABLE]",
"[DATA_TABLE_ROW]")
.toString())
.build();
DataTableRow response = dataTableServiceClient.getDataTableRow(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
GetDataTableRowRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTableRow |
|
getDataTableRow(String name)
public final DataTableRow getDataTableRow(String name)Get data table row
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String name =
DataTableRowName.of(
"[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]", "[DATA_TABLE_ROW]")
.toString();
DataTableRow response = dataTableServiceClient.getDataTableRow(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The resource name of the data table row i,e row_id. Format: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} |
| Returns | |
|---|---|
| Type | Description |
DataTableRow |
|
getDataTableRowCallable()
public final UnaryCallable<GetDataTableRowRequest,DataTableRow> getDataTableRowCallable()Get data table row
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
GetDataTableRowRequest request =
GetDataTableRowRequest.newBuilder()
.setName(
DataTableRowName.of(
"[PROJECT]",
"[LOCATION]",
"[INSTANCE]",
"[DATA_TABLE]",
"[DATA_TABLE_ROW]")
.toString())
.build();
ApiFuture<DataTableRow> future =
dataTableServiceClient.getDataTableRowCallable().futureCall(request);
// Do something.
DataTableRow response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<GetDataTableRowRequest,DataTableRow> |
|
getSettings()
public final DataTableServiceSettings getSettings()| Returns | |
|---|---|
| Type | Description |
DataTableServiceSettings |
|
getStub()
public DataTableServiceStub getStub()| Returns | |
|---|---|
| Type | Description |
DataTableServiceStub |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listDataTableRows(DataTableName parent)
public final DataTableServiceClient.ListDataTableRowsPagedResponse listDataTableRows(DataTableName parent)List data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableName parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]");
for (DataTableRow element : dataTableServiceClient.listDataTableRows(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
DataTableNameRequired. The resource id of the data table. Format: projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} |
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient.ListDataTableRowsPagedResponse |
|
listDataTableRows(ListDataTableRowsRequest request)
public final DataTableServiceClient.ListDataTableRowsPagedResponse listDataTableRows(ListDataTableRowsRequest request)List data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
ListDataTableRowsRequest request =
ListDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.setFilter("filter-1274492040")
.build();
for (DataTableRow element : dataTableServiceClient.listDataTableRows(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDataTableRowsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient.ListDataTableRowsPagedResponse |
|
listDataTableRows(String parent)
public final DataTableServiceClient.ListDataTableRowsPagedResponse listDataTableRows(String parent)List data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String parent =
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]").toString();
for (DataTableRow element : dataTableServiceClient.listDataTableRows(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The resource id of the data table. Format: projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} |
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient.ListDataTableRowsPagedResponse |
|
listDataTableRowsCallable()
public final UnaryCallable<ListDataTableRowsRequest,ListDataTableRowsResponse> listDataTableRowsCallable()List data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
ListDataTableRowsRequest request =
ListDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.setFilter("filter-1274492040")
.build();
while (true) {
ListDataTableRowsResponse response =
dataTableServiceClient.listDataTableRowsCallable().call(request);
for (DataTableRow element : response.getDataTableRowsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDataTableRowsRequest,ListDataTableRowsResponse> |
|
listDataTableRowsPagedCallable()
public final UnaryCallable<ListDataTableRowsRequest,DataTableServiceClient.ListDataTableRowsPagedResponse> listDataTableRowsPagedCallable()List data table rows.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
ListDataTableRowsRequest request =
ListDataTableRowsRequest.newBuilder()
.setParent(
DataTableName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]", "[DATA_TABLE]")
.toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.setFilter("filter-1274492040")
.build();
ApiFuture<DataTableRow> future =
dataTableServiceClient.listDataTableRowsPagedCallable().futureCall(request);
// Do something.
for (DataTableRow element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDataTableRowsRequest,ListDataTableRowsPagedResponse> |
|
listDataTables(InstanceName parent)
public final DataTableServiceClient.ListDataTablesPagedResponse listDataTables(InstanceName parent)List data tables.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]");
for (DataTable element : dataTableServiceClient.listDataTables(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
InstanceNameRequired. The parent resource where this data table will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient.ListDataTablesPagedResponse |
|
listDataTables(ListDataTablesRequest request)
public final DataTableServiceClient.ListDataTablesPagedResponse listDataTables(ListDataTablesRequest request)List data tables.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
ListDataTablesRequest request =
ListDataTablesRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.build();
for (DataTable element : dataTableServiceClient.listDataTables(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
ListDataTablesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient.ListDataTablesPagedResponse |
|
listDataTables(String parent)
public final DataTableServiceClient.ListDataTablesPagedResponse listDataTables(String parent)List data tables.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
String parent = InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString();
for (DataTable element : dataTableServiceClient.listDataTables(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this data table will be created. Format: projects/{project}/locations/{location}/instances/{instance} |
| Returns | |
|---|---|
| Type | Description |
DataTableServiceClient.ListDataTablesPagedResponse |
|
listDataTablesCallable()
public final UnaryCallable<ListDataTablesRequest,ListDataTablesResponse> listDataTablesCallable()List data tables.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
ListDataTablesRequest request =
ListDataTablesRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.build();
while (true) {
ListDataTablesResponse response =
dataTableServiceClient.listDataTablesCallable().call(request);
for (DataTable element : response.getDataTablesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDataTablesRequest,ListDataTablesResponse> |
|
listDataTablesPagedCallable()
public final UnaryCallable<ListDataTablesRequest,DataTableServiceClient.ListDataTablesPagedResponse> listDataTablesPagedCallable()List data tables.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
ListDataTablesRequest request =
ListDataTablesRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[LOCATION]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.setOrderBy("orderBy-1207110587")
.build();
ApiFuture<DataTable> future =
dataTableServiceClient.listDataTablesPagedCallable().futureCall(request);
// Do something.
for (DataTable element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<ListDataTablesRequest,ListDataTablesPagedResponse> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()updateDataTable(DataTable dataTable, FieldMask updateMask)
public final DataTable updateDataTable(DataTable dataTable, FieldMask updateMask)Update data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTable dataTable = DataTable.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
DataTable response = dataTableServiceClient.updateDataTable(dataTable, updateMask);
}
| Parameters | |
|---|---|
| Name | Description |
dataTable |
DataTableRequired. This field is used to identify the datatable to update. Format: projects/{project}/locations/{locations}/instances/{instance}/dataTables/{data_table} |
updateMask |
FieldMaskOptional. The list of metadata fields to update. Currently data tables only
support updating the |
| Returns | |
|---|---|
| Type | Description |
DataTable |
|
updateDataTable(UpdateDataTableRequest request)
public final DataTable updateDataTable(UpdateDataTableRequest request)Update data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
UpdateDataTableRequest request =
UpdateDataTableRequest.newBuilder()
.setDataTable(DataTable.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
DataTable response = dataTableServiceClient.updateDataTable(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateDataTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTable |
|
updateDataTableCallable()
public final UnaryCallable<UpdateDataTableRequest,DataTable> updateDataTableCallable()Update data table.
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
UpdateDataTableRequest request =
UpdateDataTableRequest.newBuilder()
.setDataTable(DataTable.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<DataTable> future =
dataTableServiceClient.updateDataTableCallable().futureCall(request);
// Do something.
DataTable response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateDataTableRequest,DataTable> |
|
updateDataTableRow(DataTableRow dataTableRow, FieldMask updateMask)
public final DataTableRow updateDataTableRow(DataTableRow dataTableRow, FieldMask updateMask)Update data table row
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
DataTableRow dataTableRow = DataTableRow.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
DataTableRow response = dataTableServiceClient.updateDataTableRow(dataTableRow, updateMask);
}
| Parameters | |
|---|---|
| Name | Description |
dataTableRow |
DataTableRowRequired. Format: projects/{project}/locations/{location}/instances/{instance}/dataTables/{data_table}/dataTableRows/{data_table_row} |
updateMask |
FieldMaskOptional. The list of fields to update. Currently data table rows only
support updating the |
| Returns | |
|---|---|
| Type | Description |
DataTableRow |
|
updateDataTableRow(UpdateDataTableRowRequest request)
public final DataTableRow updateDataTableRow(UpdateDataTableRowRequest request)Update data table row
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
UpdateDataTableRowRequest request =
UpdateDataTableRowRequest.newBuilder()
.setDataTableRow(DataTableRow.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
DataTableRow response = dataTableServiceClient.updateDataTableRow(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
UpdateDataTableRowRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
DataTableRow |
|
updateDataTableRowCallable()
public final UnaryCallable<UpdateDataTableRowRequest,DataTableRow> updateDataTableRowCallable()Update data table row
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 (DataTableServiceClient dataTableServiceClient = DataTableServiceClient.create()) {
UpdateDataTableRowRequest request =
UpdateDataTableRowRequest.newBuilder()
.setDataTableRow(DataTableRow.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<DataTableRow> future =
dataTableServiceClient.updateDataTableRowCallable().futureCall(request);
// Do something.
DataTableRow response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<UpdateDataTableRowRequest,DataTableRow> |
|