| GitHub Repository | Product Reference |
Service Description: Service for creating, configuring, and deleting Cloud Bigtable tables.
Provides access to the table schemas only, not the data stored within the 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
String tableId = "tableId-1552905847";
Table table = Table.newBuilder().build();
Table response = baseBigtableTableAdminClient.createTable(parent, tableId, table);
}
Note: close() needs to be called on the BaseBigtableTableAdminClient 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 |
|---|---|---|
CreateTable |
Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request. |
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.
|
CreateTableFromSnapshot |
Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. |
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.
|
ListTables |
Lists all tables served from a specified instance. |
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.
|
GetTable |
Gets metadata information about the specified 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.
|
UpdateTable |
Updates a specified table. |
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.
|
DeleteTable |
Permanently deletes a specified table and all of its data. |
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.
|
UndeleteTable |
Restores a specified table which was accidentally 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.
|
CreateAuthorizedView |
Creates a new AuthorizedView in a table. |
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.
|
ListAuthorizedViews |
Lists all AuthorizedViews from a specific 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.
|
GetAuthorizedView |
Gets information from a specified AuthorizedView. |
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.
|
UpdateAuthorizedView |
Updates an AuthorizedView in a table. |
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.
|
DeleteAuthorizedView |
Permanently deletes a specified AuthorizedView. |
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.
|
ModifyColumnFamilies |
Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect. |
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.
|
DropRowRange |
Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix. |
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.
|
GenerateConsistencyToken |
Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days. |
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.
|
CheckConsistency |
Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request. |
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.
|
SnapshotTable |
Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. |
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.
|
GetSnapshot |
Gets metadata information about the specified snapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. |
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.
|
ListSnapshots |
Lists all snapshots associated with the specified cluster. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. |
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.
|
DeleteSnapshot |
Permanently deletes the specified snapshot. Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy. |
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.
|
CreateBackup |
Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup. |
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.
|
GetBackup |
Gets metadata on a pending or completed Cloud Bigtable Backup. |
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.
|
UpdateBackup |
Updates a pending or completed Cloud Bigtable Backup. |
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.
|
DeleteBackup |
Deletes a pending or completed Cloud Bigtable backup. |
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.
|
ListBackups |
Lists Cloud Bigtable backups. Returns both completed and pending backups. |
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.
|
RestoreTable |
Create a new table by restoring from a completed backup. The returned table long-running operation can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreTableMetadata. The response type is Table, if successful. |
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.
|
CopyBackup |
Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project. |
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.
|
GetIamPolicy |
Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set. |
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.
|
SetIamPolicy |
Sets the access control policy on a Bigtable resource. Replaces any existing policy. |
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.
|
TestIamPermissions |
Returns permissions that the caller has on the specified Bigtable 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.
|
CreateSchemaBundle |
Creates a new schema bundle in the specified table. |
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.
|
UpdateSchemaBundle |
Updates a schema bundle in the specified table. |
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.
|
GetSchemaBundle |
Gets metadata information about the specified schema bundle. |
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.
|
ListSchemaBundles |
Lists all schema bundles associated with the specified 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.
|
DeleteSchemaBundle |
Deletes a schema bundle in the specified 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.
|
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 BaseBigtableTableAdminSettings 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
BaseBigtableTableAdminSettings baseBigtableTableAdminSettings =
BaseBigtableTableAdminSettings.newBuilder()
.setCredentialsProvider(FixedCredentialsProvider.create(myCredentials))
.build();
BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create(baseBigtableTableAdminSettings);
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
BaseBigtableTableAdminSettings baseBigtableTableAdminSettings =
BaseBigtableTableAdminSettings.newBuilder().setEndpoint(myEndpoint).build();
BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create(baseBigtableTableAdminSettings);
Please refer to the GitHub repository's samples for more quickstart code snippets.
Static Methods
create()
public static final BaseBigtableTableAdminClient create()Constructs an instance of BaseBigtableTableAdminClient with default settings.
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(BaseBigtableTableAdminSettings settings)
public static final BaseBigtableTableAdminClient create(BaseBigtableTableAdminSettings settings)Constructs an instance of BaseBigtableTableAdminClient, 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 |
BaseBigtableTableAdminSettings |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
create(BigtableTableAdminStub stub)
public static final BaseBigtableTableAdminClient create(BigtableTableAdminStub stub)Constructs an instance of BaseBigtableTableAdminClient, using the given stub for making calls. This is for advanced usage - prefer using create(BaseBigtableTableAdminSettings).
| Parameter | |
|---|---|
| Name | Description |
stub |
BigtableTableAdminStub |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient |
|
Constructors
BaseBigtableTableAdminClient(BaseBigtableTableAdminSettings settings)
protected BaseBigtableTableAdminClient(BaseBigtableTableAdminSettings settings)Constructs an instance of BaseBigtableTableAdminClient, 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 |
BaseBigtableTableAdminSettings |
BaseBigtableTableAdminClient(BigtableTableAdminStub stub)
protected BaseBigtableTableAdminClient(BigtableTableAdminStub stub)| Parameter | |
|---|---|
| Name | Description |
stub |
BigtableTableAdminStub |
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 |
|
checkConsistency(CheckConsistencyRequest request)
public final CheckConsistencyResponse checkConsistency(CheckConsistencyRequest request)Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CheckConsistencyRequest request =
CheckConsistencyRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setConsistencyToken("consistencyToken-1985152319")
.build();
CheckConsistencyResponse response = baseBigtableTableAdminClient.checkConsistency(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.CheckConsistencyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.CheckConsistencyResponse |
|
checkConsistency(TableName name, String consistencyToken)
public final CheckConsistencyResponse checkConsistency(TableName name, String consistencyToken)Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
String consistencyToken = "consistencyToken-1985152319";
CheckConsistencyResponse response =
baseBigtableTableAdminClient.checkConsistency(name, consistencyToken);
}
| Parameters | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the Table for which to check replication consistency.
Values are of the form |
consistencyToken |
StringRequired. The token created using GenerateConsistencyToken for the Table. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.CheckConsistencyResponse |
|
checkConsistency(String name, String consistencyToken)
public final CheckConsistencyResponse checkConsistency(String name, String consistencyToken)Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
String consistencyToken = "consistencyToken-1985152319";
CheckConsistencyResponse response =
baseBigtableTableAdminClient.checkConsistency(name, consistencyToken);
}
| Parameters | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the Table for which to check replication consistency.
Values are of the form |
consistencyToken |
StringRequired. The token created using GenerateConsistencyToken for the Table. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.CheckConsistencyResponse |
|
checkConsistencyCallable()
public final UnaryCallable<CheckConsistencyRequest,CheckConsistencyResponse> checkConsistencyCallable()Checks replication consistency based on a consistency token, that is, if replication has caught up based on the conditions specified in the token and the check request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CheckConsistencyRequest request =
CheckConsistencyRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setConsistencyToken("consistencyToken-1985152319")
.build();
ApiFuture<CheckConsistencyResponse> future =
baseBigtableTableAdminClient.checkConsistencyCallable().futureCall(request);
// Do something.
CheckConsistencyResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.CheckConsistencyRequest,com.google.bigtable.admin.v2.CheckConsistencyResponse> |
|
close()
public final void close()copyBackupAsync(ClusterName parent, String backupId, BackupName sourceBackup, Timestamp expireTime)
public final OperationFuture<Backup,CopyBackupMetadata> copyBackupAsync(ClusterName parent, String backupId, BackupName sourceBackup, Timestamp expireTime)Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
String backupId = "backupId2121930365";
BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
Timestamp expireTime = Timestamp.newBuilder().build();
Backup response =
baseBigtableTableAdminClient
.copyBackupAsync(parent, backupId, sourceBackup, expireTime)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.ClusterNameRequired. The name of the destination cluster that will contain the backup copy.
The cluster must already exist. Values are of the form:
|
backupId |
StringRequired. The id of the new backup. The |
sourceBackup |
com.google.bigtable.admin.v2.BackupNameRequired. The source backup to be copied from. The source backup needs to
be in READY state for it to be copied. Copying a copied backup is not allowed. Once
CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration
until CopyBackup is finished. Values are of the form:
|
expireTime |
TimestampRequired. Required. The expiration time of the copied backup with microsecond
granularity that must be at least 6 hours and at most 30 days from the time the request is
received. Once the |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CopyBackupMetadata> |
|
copyBackupAsync(ClusterName parent, String backupId, String sourceBackup, Timestamp expireTime)
public final OperationFuture<Backup,CopyBackupMetadata> copyBackupAsync(ClusterName parent, String backupId, String sourceBackup, Timestamp expireTime)Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
String backupId = "backupId2121930365";
String sourceBackup =
BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString();
Timestamp expireTime = Timestamp.newBuilder().build();
Backup response =
baseBigtableTableAdminClient
.copyBackupAsync(parent, backupId, sourceBackup, expireTime)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.ClusterNameRequired. The name of the destination cluster that will contain the backup copy.
The cluster must already exist. Values are of the form:
|
backupId |
StringRequired. The id of the new backup. The |
sourceBackup |
StringRequired. The source backup to be copied from. The source backup needs to
be in READY state for it to be copied. Copying a copied backup is not allowed. Once
CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration
until CopyBackup is finished. Values are of the form:
|
expireTime |
TimestampRequired. Required. The expiration time of the copied backup with microsecond
granularity that must be at least 6 hours and at most 30 days from the time the request is
received. Once the |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CopyBackupMetadata> |
|
copyBackupAsync(CopyBackupRequest request)
public final OperationFuture<Backup,CopyBackupMetadata> copyBackupAsync(CopyBackupRequest request)Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CopyBackupRequest request =
CopyBackupRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setBackupId("backupId2121930365")
.setSourceBackup(
BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
.setExpireTime(Timestamp.newBuilder().build())
.build();
Backup response = baseBigtableTableAdminClient.copyBackupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.CopyBackupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CopyBackupMetadata> |
|
copyBackupAsync(String parent, String backupId, BackupName sourceBackup, Timestamp expireTime)
public final OperationFuture<Backup,CopyBackupMetadata> copyBackupAsync(String parent, String backupId, BackupName sourceBackup, Timestamp expireTime)Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
String backupId = "backupId2121930365";
BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
Timestamp expireTime = Timestamp.newBuilder().build();
Backup response =
baseBigtableTableAdminClient
.copyBackupAsync(parent, backupId, sourceBackup, expireTime)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The name of the destination cluster that will contain the backup copy.
The cluster must already exist. Values are of the form:
|
backupId |
StringRequired. The id of the new backup. The |
sourceBackup |
com.google.bigtable.admin.v2.BackupNameRequired. The source backup to be copied from. The source backup needs to
be in READY state for it to be copied. Copying a copied backup is not allowed. Once
CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration
until CopyBackup is finished. Values are of the form:
|
expireTime |
TimestampRequired. Required. The expiration time of the copied backup with microsecond
granularity that must be at least 6 hours and at most 30 days from the time the request is
received. Once the |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CopyBackupMetadata> |
|
copyBackupAsync(String parent, String backupId, String sourceBackup, Timestamp expireTime)
public final OperationFuture<Backup,CopyBackupMetadata> copyBackupAsync(String parent, String backupId, String sourceBackup, Timestamp expireTime)Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
String backupId = "backupId2121930365";
String sourceBackup =
BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString();
Timestamp expireTime = Timestamp.newBuilder().build();
Backup response =
baseBigtableTableAdminClient
.copyBackupAsync(parent, backupId, sourceBackup, expireTime)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The name of the destination cluster that will contain the backup copy.
The cluster must already exist. Values are of the form:
|
backupId |
StringRequired. The id of the new backup. The |
sourceBackup |
StringRequired. The source backup to be copied from. The source backup needs to
be in READY state for it to be copied. Copying a copied backup is not allowed. Once
CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration
until CopyBackup is finished. Values are of the form:
|
expireTime |
TimestampRequired. Required. The expiration time of the copied backup with microsecond
granularity that must be at least 6 hours and at most 30 days from the time the request is
received. Once the |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CopyBackupMetadata> |
|
copyBackupCallable()
public final UnaryCallable<CopyBackupRequest,Operation> copyBackupCallable()Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CopyBackupRequest request =
CopyBackupRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setBackupId("backupId2121930365")
.setSourceBackup(
BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
.setExpireTime(Timestamp.newBuilder().build())
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.copyBackupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.CopyBackupRequest,Operation> |
|
copyBackupOperationCallable()
public final OperationCallable<CopyBackupRequest,Backup,CopyBackupMetadata> copyBackupOperationCallable()Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the destination instance and project.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CopyBackupRequest request =
CopyBackupRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setBackupId("backupId2121930365")
.setSourceBackup(
BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
.setExpireTime(Timestamp.newBuilder().build())
.build();
OperationFuture<Backup, CopyBackupMetadata> future =
baseBigtableTableAdminClient.copyBackupOperationCallable().futureCall(request);
// Do something.
Backup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.CopyBackupRequest,com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CopyBackupMetadata> |
|
createAuthorizedViewAsync(CreateAuthorizedViewRequest request)
public final OperationFuture<AuthorizedView,CreateAuthorizedViewMetadata> createAuthorizedViewAsync(CreateAuthorizedViewRequest request)Creates a new AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateAuthorizedViewRequest request =
CreateAuthorizedViewRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setAuthorizedViewId("authorizedViewId-2074136549")
.setAuthorizedView(AuthorizedView.newBuilder().build())
.build();
AuthorizedView response =
baseBigtableTableAdminClient.createAuthorizedViewAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.CreateAuthorizedViewRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.AuthorizedView,com.google.bigtable.admin.v2.CreateAuthorizedViewMetadata> |
|
createAuthorizedViewAsync(TableName parent, AuthorizedView authorizedView, String authorizedViewId)
public final OperationFuture<AuthorizedView,CreateAuthorizedViewMetadata> createAuthorizedViewAsync(TableName parent, AuthorizedView authorizedView, String authorizedViewId)Creates a new AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName parent = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
AuthorizedView authorizedView = AuthorizedView.newBuilder().build();
String authorizedViewId = "authorizedViewId-2074136549";
AuthorizedView response =
baseBigtableTableAdminClient
.createAuthorizedViewAsync(parent, authorizedView, authorizedViewId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.TableNameRequired. This is the name of the table the AuthorizedView belongs to. Values are
of the form |
authorizedView |
com.google.bigtable.admin.v2.AuthorizedViewRequired. The AuthorizedView to create. |
authorizedViewId |
StringRequired. The id of the AuthorizedView to create. This AuthorizedView
must not already exist. The |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.AuthorizedView,com.google.bigtable.admin.v2.CreateAuthorizedViewMetadata> |
|
createAuthorizedViewAsync(String parent, AuthorizedView authorizedView, String authorizedViewId)
public final OperationFuture<AuthorizedView,CreateAuthorizedViewMetadata> createAuthorizedViewAsync(String parent, AuthorizedView authorizedView, String authorizedViewId)Creates a new AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
AuthorizedView authorizedView = AuthorizedView.newBuilder().build();
String authorizedViewId = "authorizedViewId-2074136549";
AuthorizedView response =
baseBigtableTableAdminClient
.createAuthorizedViewAsync(parent, authorizedView, authorizedViewId)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. This is the name of the table the AuthorizedView belongs to. Values are
of the form |
authorizedView |
com.google.bigtable.admin.v2.AuthorizedViewRequired. The AuthorizedView to create. |
authorizedViewId |
StringRequired. The id of the AuthorizedView to create. This AuthorizedView
must not already exist. The |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.AuthorizedView,com.google.bigtable.admin.v2.CreateAuthorizedViewMetadata> |
|
createAuthorizedViewCallable()
public final UnaryCallable<CreateAuthorizedViewRequest,Operation> createAuthorizedViewCallable()Creates a new AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateAuthorizedViewRequest request =
CreateAuthorizedViewRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setAuthorizedViewId("authorizedViewId-2074136549")
.setAuthorizedView(AuthorizedView.newBuilder().build())
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.createAuthorizedViewCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.CreateAuthorizedViewRequest,Operation> |
|
createAuthorizedViewOperationCallable()
public final OperationCallable<CreateAuthorizedViewRequest,AuthorizedView,CreateAuthorizedViewMetadata> createAuthorizedViewOperationCallable()Creates a new AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateAuthorizedViewRequest request =
CreateAuthorizedViewRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setAuthorizedViewId("authorizedViewId-2074136549")
.setAuthorizedView(AuthorizedView.newBuilder().build())
.build();
OperationFuture<AuthorizedView, CreateAuthorizedViewMetadata> future =
baseBigtableTableAdminClient.createAuthorizedViewOperationCallable().futureCall(request);
// Do something.
AuthorizedView response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.CreateAuthorizedViewRequest,com.google.bigtable.admin.v2.AuthorizedView,com.google.bigtable.admin.v2.CreateAuthorizedViewMetadata> |
|
createBackupAsync(ClusterName parent, String backupId, Backup backup)
public final OperationFuture<Backup,CreateBackupMetadata> createBackupAsync(ClusterName parent, String backupId, Backup backup)Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
String backupId = "backupId2121930365";
Backup backup = Backup.newBuilder().build();
Backup response =
baseBigtableTableAdminClient.createBackupAsync(parent, backupId, backup).get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.ClusterNameRequired. This must be one of the clusters in the instance in which this table is
located. The backup will be stored in this cluster. Values are of the form
|
backupId |
StringRequired. The id of the backup to be created. The |
backup |
com.google.bigtable.admin.v2.BackupRequired. The backup to create. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CreateBackupMetadata> |
|
createBackupAsync(CreateBackupRequest request)
public final OperationFuture<Backup,CreateBackupMetadata> createBackupAsync(CreateBackupRequest request)Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateBackupRequest request =
CreateBackupRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setBackupId("backupId2121930365")
.setBackup(Backup.newBuilder().build())
.build();
Backup response = baseBigtableTableAdminClient.createBackupAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.CreateBackupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CreateBackupMetadata> |
|
createBackupAsync(String parent, String backupId, Backup backup)
public final OperationFuture<Backup,CreateBackupMetadata> createBackupAsync(String parent, String backupId, Backup backup)Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
String backupId = "backupId2121930365";
Backup backup = Backup.newBuilder().build();
Backup response =
baseBigtableTableAdminClient.createBackupAsync(parent, backupId, backup).get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. This must be one of the clusters in the instance in which this table is
located. The backup will be stored in this cluster. Values are of the form
|
backupId |
StringRequired. The id of the backup to be created. The |
backup |
com.google.bigtable.admin.v2.BackupRequired. The backup to create. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CreateBackupMetadata> |
|
createBackupCallable()
public final UnaryCallable<CreateBackupRequest,Operation> createBackupCallable()Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateBackupRequest request =
CreateBackupRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setBackupId("backupId2121930365")
.setBackup(Backup.newBuilder().build())
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.createBackupCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.CreateBackupRequest,Operation> |
|
createBackupOperationCallable()
public final OperationCallable<CreateBackupRequest,Backup,CreateBackupMetadata> createBackupOperationCallable()Starts creating a new Cloud Bigtable Backup. The returned backup long-running operation can be used to track creation of the backup. The metadata field type is CreateBackupMetadata. The response field type is Backup, if successful. Cancelling the returned operation will stop the creation and delete the backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateBackupRequest request =
CreateBackupRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setBackupId("backupId2121930365")
.setBackup(Backup.newBuilder().build())
.build();
OperationFuture<Backup, CreateBackupMetadata> future =
baseBigtableTableAdminClient.createBackupOperationCallable().futureCall(request);
// Do something.
Backup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.CreateBackupRequest,com.google.bigtable.admin.v2.Backup,com.google.bigtable.admin.v2.CreateBackupMetadata> |
|
createSchemaBundleAsync(CreateSchemaBundleRequest request)
public final OperationFuture<SchemaBundle,CreateSchemaBundleMetadata> createSchemaBundleAsync(CreateSchemaBundleRequest request)Creates a new schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateSchemaBundleRequest request =
CreateSchemaBundleRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setSchemaBundleId("schemaBundleId2039843326")
.setSchemaBundle(SchemaBundle.newBuilder().build())
.build();
SchemaBundle response = baseBigtableTableAdminClient.createSchemaBundleAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.CreateSchemaBundleRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.SchemaBundle,com.google.bigtable.admin.v2.CreateSchemaBundleMetadata> |
|
createSchemaBundleAsync(TableName parent, String schemaBundleId, SchemaBundle schemaBundle)
public final OperationFuture<SchemaBundle,CreateSchemaBundleMetadata> createSchemaBundleAsync(TableName parent, String schemaBundleId, SchemaBundle schemaBundle)Creates a new schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName parent = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
String schemaBundleId = "schemaBundleId2039843326";
SchemaBundle schemaBundle = SchemaBundle.newBuilder().build();
SchemaBundle response =
baseBigtableTableAdminClient
.createSchemaBundleAsync(parent, schemaBundleId, schemaBundle)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.TableNameRequired. The parent resource where this schema bundle will be created. Values
are of the form |
schemaBundleId |
StringRequired. The unique ID to use for the schema bundle, which will become the final component of the schema bundle's resource name. |
schemaBundle |
com.google.bigtable.admin.v2.SchemaBundleRequired. The schema bundle to create. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.SchemaBundle,com.google.bigtable.admin.v2.CreateSchemaBundleMetadata> |
|
createSchemaBundleAsync(String parent, String schemaBundleId, SchemaBundle schemaBundle)
public final OperationFuture<SchemaBundle,CreateSchemaBundleMetadata> createSchemaBundleAsync(String parent, String schemaBundleId, SchemaBundle schemaBundle)Creates a new schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
String schemaBundleId = "schemaBundleId2039843326";
SchemaBundle schemaBundle = SchemaBundle.newBuilder().build();
SchemaBundle response =
baseBigtableTableAdminClient
.createSchemaBundleAsync(parent, schemaBundleId, schemaBundle)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent resource where this schema bundle will be created. Values
are of the form |
schemaBundleId |
StringRequired. The unique ID to use for the schema bundle, which will become the final component of the schema bundle's resource name. |
schemaBundle |
com.google.bigtable.admin.v2.SchemaBundleRequired. The schema bundle to create. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.SchemaBundle,com.google.bigtable.admin.v2.CreateSchemaBundleMetadata> |
|
createSchemaBundleCallable()
public final UnaryCallable<CreateSchemaBundleRequest,Operation> createSchemaBundleCallable()Creates a new schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateSchemaBundleRequest request =
CreateSchemaBundleRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setSchemaBundleId("schemaBundleId2039843326")
.setSchemaBundle(SchemaBundle.newBuilder().build())
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.createSchemaBundleCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.CreateSchemaBundleRequest,Operation> |
|
createSchemaBundleOperationCallable()
public final OperationCallable<CreateSchemaBundleRequest,SchemaBundle,CreateSchemaBundleMetadata> createSchemaBundleOperationCallable()Creates a new schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateSchemaBundleRequest request =
CreateSchemaBundleRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setSchemaBundleId("schemaBundleId2039843326")
.setSchemaBundle(SchemaBundle.newBuilder().build())
.build();
OperationFuture<SchemaBundle, CreateSchemaBundleMetadata> future =
baseBigtableTableAdminClient.createSchemaBundleOperationCallable().futureCall(request);
// Do something.
SchemaBundle response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.CreateSchemaBundleRequest,com.google.bigtable.admin.v2.SchemaBundle,com.google.bigtable.admin.v2.CreateSchemaBundleMetadata> |
|
createTable(CreateTableRequest request)
public final Table createTable(CreateTableRequest request)Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateTableRequest request =
CreateTableRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setTableId("tableId-1552905847")
.setTable(Table.newBuilder().build())
.addAllInitialSplits(new ArrayList<CreateTableRequest.Split>())
.build();
Table response = baseBigtableTableAdminClient.createTable(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.CreateTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
createTable(InstanceName parent, String tableId, Table table)
public final Table createTable(InstanceName parent, String tableId, Table table)Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
String tableId = "tableId-1552905847";
Table table = Table.newBuilder().build();
Table response = baseBigtableTableAdminClient.createTable(parent, tableId, table);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.InstanceNameRequired. The unique name of the instance in which to create the table. Values
are of the form |
tableId |
StringRequired. The name by which the new table should be referred to within the
parent instance, e.g., |
table |
com.google.bigtable.admin.v2.TableRequired. The Table to create. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
createTable(String parent, String tableId, Table table)
public final Table createTable(String parent, String tableId, Table table)Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
String tableId = "tableId-1552905847";
Table table = Table.newBuilder().build();
Table response = baseBigtableTableAdminClient.createTable(parent, tableId, table);
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The unique name of the instance in which to create the table. Values
are of the form |
tableId |
StringRequired. The name by which the new table should be referred to within the
parent instance, e.g., |
table |
com.google.bigtable.admin.v2.TableRequired. The Table to create. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
createTableCallable()
public final UnaryCallable<CreateTableRequest,Table> createTableCallable()Creates a new table in the specified instance. The table can be created with a full set of initial column families, specified in the request.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateTableRequest request =
CreateTableRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setTableId("tableId-1552905847")
.setTable(Table.newBuilder().build())
.addAllInitialSplits(new ArrayList<CreateTableRequest.Split>())
.build();
ApiFuture<Table> future =
baseBigtableTableAdminClient.createTableCallable().futureCall(request);
// Do something.
Table response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.CreateTableRequest,com.google.bigtable.admin.v2.Table> |
|
createTableFromSnapshotAsync(CreateTableFromSnapshotRequest request)
public final OperationFuture<Table,CreateTableFromSnapshotMetadata> createTableFromSnapshotAsync(CreateTableFromSnapshotRequest request)Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateTableFromSnapshotRequest request =
CreateTableFromSnapshotRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setTableId("tableId-1552905847")
.setSourceSnapshot(
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString())
.build();
Table response = baseBigtableTableAdminClient.createTableFromSnapshotAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.CreateTableFromSnapshotRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata> |
|
createTableFromSnapshotAsync(InstanceName parent, String tableId, SnapshotName sourceSnapshot)
public final OperationFuture<Table,CreateTableFromSnapshotMetadata> createTableFromSnapshotAsync(InstanceName parent, String tableId, SnapshotName sourceSnapshot)Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
String tableId = "tableId-1552905847";
SnapshotName sourceSnapshot =
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]");
Table response =
baseBigtableTableAdminClient
.createTableFromSnapshotAsync(parent, tableId, sourceSnapshot)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.InstanceNameRequired. The unique name of the instance in which to create the table. Values
are of the form |
tableId |
StringRequired. The name by which the new table should be referred to within the
parent instance, e.g., |
sourceSnapshot |
com.google.bigtable.admin.v2.SnapshotNameRequired. The unique name of the snapshot from which to restore the
table. The snapshot and the table must be in the same instance. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata> |
|
createTableFromSnapshotAsync(InstanceName parent, String tableId, String sourceSnapshot)
public final OperationFuture<Table,CreateTableFromSnapshotMetadata> createTableFromSnapshotAsync(InstanceName parent, String tableId, String sourceSnapshot)Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
String tableId = "tableId-1552905847";
String sourceSnapshot =
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString();
Table response =
baseBigtableTableAdminClient
.createTableFromSnapshotAsync(parent, tableId, sourceSnapshot)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.InstanceNameRequired. The unique name of the instance in which to create the table. Values
are of the form |
tableId |
StringRequired. The name by which the new table should be referred to within the
parent instance, e.g., |
sourceSnapshot |
StringRequired. The unique name of the snapshot from which to restore the
table. The snapshot and the table must be in the same instance. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata> |
|
createTableFromSnapshotAsync(String parent, String tableId, SnapshotName sourceSnapshot)
public final OperationFuture<Table,CreateTableFromSnapshotMetadata> createTableFromSnapshotAsync(String parent, String tableId, SnapshotName sourceSnapshot)Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
String tableId = "tableId-1552905847";
SnapshotName sourceSnapshot =
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]");
Table response =
baseBigtableTableAdminClient
.createTableFromSnapshotAsync(parent, tableId, sourceSnapshot)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The unique name of the instance in which to create the table. Values
are of the form |
tableId |
StringRequired. The name by which the new table should be referred to within the
parent instance, e.g., |
sourceSnapshot |
com.google.bigtable.admin.v2.SnapshotNameRequired. The unique name of the snapshot from which to restore the
table. The snapshot and the table must be in the same instance. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata> |
|
createTableFromSnapshotAsync(String parent, String tableId, String sourceSnapshot)
public final OperationFuture<Table,CreateTableFromSnapshotMetadata> createTableFromSnapshotAsync(String parent, String tableId, String sourceSnapshot)Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
String tableId = "tableId-1552905847";
String sourceSnapshot =
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString();
Table response =
baseBigtableTableAdminClient
.createTableFromSnapshotAsync(parent, tableId, sourceSnapshot)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
parent |
StringRequired. The unique name of the instance in which to create the table. Values
are of the form |
tableId |
StringRequired. The name by which the new table should be referred to within the
parent instance, e.g., |
sourceSnapshot |
StringRequired. The unique name of the snapshot from which to restore the
table. The snapshot and the table must be in the same instance. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata> |
|
createTableFromSnapshotCallable()
public final UnaryCallable<CreateTableFromSnapshotRequest,Operation> createTableFromSnapshotCallable()Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateTableFromSnapshotRequest request =
CreateTableFromSnapshotRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setTableId("tableId-1552905847")
.setSourceSnapshot(
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString())
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.createTableFromSnapshotCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest,Operation> |
|
createTableFromSnapshotOperationCallable()
public final OperationCallable<CreateTableFromSnapshotRequest,Table,CreateTableFromSnapshotMetadata> createTableFromSnapshotOperationCallable()Creates a new table from the specified snapshot. The target table must not exist. The snapshot and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
CreateTableFromSnapshotRequest request =
CreateTableFromSnapshotRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setTableId("tableId-1552905847")
.setSourceSnapshot(
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString())
.build();
OperationFuture<Table, CreateTableFromSnapshotMetadata> future =
baseBigtableTableAdminClient
.createTableFromSnapshotOperationCallable()
.futureCall(request);
// Do something.
Table response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest,com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata> |
|
deleteAuthorizedView(AuthorizedViewName name)
public final void deleteAuthorizedView(AuthorizedViewName name)Permanently deletes a specified AuthorizedView.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
AuthorizedViewName name =
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]");
baseBigtableTableAdminClient.deleteAuthorizedView(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.AuthorizedViewNameRequired. The unique name of the AuthorizedView to be deleted. Values are of the
form
|
deleteAuthorizedView(DeleteAuthorizedViewRequest request)
public final void deleteAuthorizedView(DeleteAuthorizedViewRequest request)Permanently deletes a specified AuthorizedView.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteAuthorizedViewRequest request =
DeleteAuthorizedViewRequest.newBuilder()
.setName(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.setEtag("etag3123477")
.build();
baseBigtableTableAdminClient.deleteAuthorizedView(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.DeleteAuthorizedViewRequestThe request object containing all of the parameters for the API call. |
deleteAuthorizedView(String name)
public final void deleteAuthorizedView(String name)Permanently deletes a specified AuthorizedView.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name =
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString();
baseBigtableTableAdminClient.deleteAuthorizedView(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the AuthorizedView to be deleted. Values are of the
form
|
deleteAuthorizedViewCallable()
public final UnaryCallable<DeleteAuthorizedViewRequest,Empty> deleteAuthorizedViewCallable()Permanently deletes a specified AuthorizedView.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteAuthorizedViewRequest request =
DeleteAuthorizedViewRequest.newBuilder()
.setName(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.setEtag("etag3123477")
.build();
ApiFuture<Empty> future =
baseBigtableTableAdminClient.deleteAuthorizedViewCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.DeleteAuthorizedViewRequest,Empty> |
|
deleteBackup(BackupName name)
public final void deleteBackup(BackupName name)Deletes a pending or completed Cloud Bigtable backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
baseBigtableTableAdminClient.deleteBackup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.BackupNameRequired. Name of the backup to delete. Values are of the form
|
deleteBackup(DeleteBackupRequest request)
public final void deleteBackup(DeleteBackupRequest request)Deletes a pending or completed Cloud Bigtable backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteBackupRequest request =
DeleteBackupRequest.newBuilder()
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
.build();
baseBigtableTableAdminClient.deleteBackup(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.DeleteBackupRequestThe request object containing all of the parameters for the API call. |
deleteBackup(String name)
public final void deleteBackup(String name)Deletes a pending or completed Cloud Bigtable backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString();
baseBigtableTableAdminClient.deleteBackup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the backup to delete. Values are of the form
|
deleteBackupCallable()
public final UnaryCallable<DeleteBackupRequest,Empty> deleteBackupCallable()Deletes a pending or completed Cloud Bigtable backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteBackupRequest request =
DeleteBackupRequest.newBuilder()
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
.build();
ApiFuture<Empty> future =
baseBigtableTableAdminClient.deleteBackupCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.DeleteBackupRequest,Empty> |
|
deleteSchemaBundle(DeleteSchemaBundleRequest request)
public final void deleteSchemaBundle(DeleteSchemaBundleRequest request)Deletes a schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteSchemaBundleRequest request =
DeleteSchemaBundleRequest.newBuilder()
.setName(
SchemaBundleName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[SCHEMA_BUNDLE]")
.toString())
.setEtag("etag3123477")
.build();
baseBigtableTableAdminClient.deleteSchemaBundle(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.DeleteSchemaBundleRequestThe request object containing all of the parameters for the API call. |
deleteSchemaBundle(SchemaBundleName name)
public final void deleteSchemaBundle(SchemaBundleName name)Deletes a schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SchemaBundleName name =
SchemaBundleName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[SCHEMA_BUNDLE]");
baseBigtableTableAdminClient.deleteSchemaBundle(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.SchemaBundleNameRequired. The unique name of the schema bundle to delete. Values are of the form
|
deleteSchemaBundle(String name)
public final void deleteSchemaBundle(String name)Deletes a schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name =
SchemaBundleName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[SCHEMA_BUNDLE]").toString();
baseBigtableTableAdminClient.deleteSchemaBundle(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the schema bundle to delete. Values are of the form
|
deleteSchemaBundleCallable()
public final UnaryCallable<DeleteSchemaBundleRequest,Empty> deleteSchemaBundleCallable()Deletes a schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteSchemaBundleRequest request =
DeleteSchemaBundleRequest.newBuilder()
.setName(
SchemaBundleName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[SCHEMA_BUNDLE]")
.toString())
.setEtag("etag3123477")
.build();
ApiFuture<Empty> future =
baseBigtableTableAdminClient.deleteSchemaBundleCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.DeleteSchemaBundleRequest,Empty> |
|
deleteSnapshot(DeleteSnapshotRequest request)
public final void deleteSnapshot(DeleteSnapshotRequest request)Permanently deletes the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteSnapshotRequest request =
DeleteSnapshotRequest.newBuilder()
.setName(
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString())
.build();
baseBigtableTableAdminClient.deleteSnapshot(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.DeleteSnapshotRequestThe request object containing all of the parameters for the API call. |
deleteSnapshot(SnapshotName name)
public final void deleteSnapshot(SnapshotName name)Permanently deletes the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SnapshotName name = SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]");
baseBigtableTableAdminClient.deleteSnapshot(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.SnapshotNameRequired. The unique name of the snapshot to be deleted. Values are of the form
|
deleteSnapshot(String name)
public final void deleteSnapshot(String name)Permanently deletes the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name =
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString();
baseBigtableTableAdminClient.deleteSnapshot(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the snapshot to be deleted. Values are of the form
|
deleteSnapshotCallable()
public final UnaryCallable<DeleteSnapshotRequest,Empty> deleteSnapshotCallable()Permanently deletes the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteSnapshotRequest request =
DeleteSnapshotRequest.newBuilder()
.setName(
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString())
.build();
ApiFuture<Empty> future =
baseBigtableTableAdminClient.deleteSnapshotCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.DeleteSnapshotRequest,Empty> |
|
deleteTable(DeleteTableRequest request)
public final void deleteTable(DeleteTableRequest request)Permanently deletes a specified table and all of its data.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteTableRequest request =
DeleteTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
baseBigtableTableAdminClient.deleteTable(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.DeleteTableRequestThe request object containing all of the parameters for the API call. |
deleteTable(TableName name)
public final void deleteTable(TableName name)Permanently deletes a specified table and all of its data.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
baseBigtableTableAdminClient.deleteTable(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the table to be deleted. Values are of the form
|
deleteTable(String name)
public final void deleteTable(String name)Permanently deletes a specified table and all of its data.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
baseBigtableTableAdminClient.deleteTable(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the table to be deleted. Values are of the form
|
deleteTableCallable()
public final UnaryCallable<DeleteTableRequest,Empty> deleteTableCallable()Permanently deletes a specified table and all of its data.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DeleteTableRequest request =
DeleteTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
ApiFuture<Empty> future =
baseBigtableTableAdminClient.deleteTableCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.DeleteTableRequest,Empty> |
|
dropRowRange(DropRowRangeRequest request)
public final void dropRowRange(DropRowRangeRequest request)Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DropRowRangeRequest request =
DropRowRangeRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
baseBigtableTableAdminClient.dropRowRange(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.DropRowRangeRequestThe request object containing all of the parameters for the API call. |
dropRowRangeCallable()
public final UnaryCallable<DropRowRangeRequest,Empty> dropRowRangeCallable()Permanently drop/delete a row range from a specified table. The request can specify whether to delete all rows in a table, or only those that match a particular prefix.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
DropRowRangeRequest request =
DropRowRangeRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
ApiFuture<Empty> future =
baseBigtableTableAdminClient.dropRowRangeCallable().futureCall(request);
// Do something.
future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.DropRowRangeRequest,Empty> |
|
generateConsistencyToken(GenerateConsistencyTokenRequest request)
public final GenerateConsistencyTokenResponse generateConsistencyToken(GenerateConsistencyTokenRequest request)Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GenerateConsistencyTokenRequest request =
GenerateConsistencyTokenRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
GenerateConsistencyTokenResponse response =
baseBigtableTableAdminClient.generateConsistencyToken(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.GenerateConsistencyTokenRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.GenerateConsistencyTokenResponse |
|
generateConsistencyToken(TableName name)
public final GenerateConsistencyTokenResponse generateConsistencyToken(TableName name)Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
GenerateConsistencyTokenResponse response =
baseBigtableTableAdminClient.generateConsistencyToken(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the Table for which to create a consistency token.
Values are of the form |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.GenerateConsistencyTokenResponse |
|
generateConsistencyToken(String name)
public final GenerateConsistencyTokenResponse generateConsistencyToken(String name)Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
GenerateConsistencyTokenResponse response =
baseBigtableTableAdminClient.generateConsistencyToken(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the Table for which to create a consistency token.
Values are of the form |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.GenerateConsistencyTokenResponse |
|
generateConsistencyTokenCallable()
public final UnaryCallable<GenerateConsistencyTokenRequest,GenerateConsistencyTokenResponse> generateConsistencyTokenCallable()Generates a consistency token for a Table, which can be used in CheckConsistency to check whether mutations to the table that finished before this call started have been replicated. The tokens will be available for 90 days.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GenerateConsistencyTokenRequest request =
GenerateConsistencyTokenRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
ApiFuture<GenerateConsistencyTokenResponse> future =
baseBigtableTableAdminClient.generateConsistencyTokenCallable().futureCall(request);
// Do something.
GenerateConsistencyTokenResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.GenerateConsistencyTokenRequest,com.google.bigtable.admin.v2.GenerateConsistencyTokenResponse> |
|
getAuthorizedView(AuthorizedViewName name)
public final AuthorizedView getAuthorizedView(AuthorizedViewName name)Gets information from a specified AuthorizedView.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
AuthorizedViewName name =
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]");
AuthorizedView response = baseBigtableTableAdminClient.getAuthorizedView(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.AuthorizedViewNameRequired. The unique name of the requested AuthorizedView. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.AuthorizedView |
|
getAuthorizedView(GetAuthorizedViewRequest request)
public final AuthorizedView getAuthorizedView(GetAuthorizedViewRequest request)Gets information from a specified AuthorizedView.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetAuthorizedViewRequest request =
GetAuthorizedViewRequest.newBuilder()
.setName(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.build();
AuthorizedView response = baseBigtableTableAdminClient.getAuthorizedView(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.GetAuthorizedViewRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.AuthorizedView |
|
getAuthorizedView(String name)
public final AuthorizedView getAuthorizedView(String name)Gets information from a specified AuthorizedView.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name =
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString();
AuthorizedView response = baseBigtableTableAdminClient.getAuthorizedView(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the requested AuthorizedView. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.AuthorizedView |
|
getAuthorizedViewCallable()
public final UnaryCallable<GetAuthorizedViewRequest,AuthorizedView> getAuthorizedViewCallable()Gets information from a specified AuthorizedView.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetAuthorizedViewRequest request =
GetAuthorizedViewRequest.newBuilder()
.setName(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.build();
ApiFuture<AuthorizedView> future =
baseBigtableTableAdminClient.getAuthorizedViewCallable().futureCall(request);
// Do something.
AuthorizedView response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.GetAuthorizedViewRequest,com.google.bigtable.admin.v2.AuthorizedView> |
|
getBackup(BackupName name)
public final Backup getBackup(BackupName name)Gets metadata on a pending or completed Cloud Bigtable Backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
BackupName name = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
Backup response = baseBigtableTableAdminClient.getBackup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.BackupNameRequired. Name of the backup. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Backup |
|
getBackup(GetBackupRequest request)
public final Backup getBackup(GetBackupRequest request)Gets metadata on a pending or completed Cloud Bigtable Backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetBackupRequest request =
GetBackupRequest.newBuilder()
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
.build();
Backup response = baseBigtableTableAdminClient.getBackup(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.GetBackupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Backup |
|
getBackup(String name)
public final Backup getBackup(String name)Gets metadata on a pending or completed Cloud Bigtable Backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString();
Backup response = baseBigtableTableAdminClient.getBackup(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. Name of the backup. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Backup |
|
getBackupCallable()
public final UnaryCallable<GetBackupRequest,Backup> getBackupCallable()Gets metadata on a pending or completed Cloud Bigtable Backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetBackupRequest request =
GetBackupRequest.newBuilder()
.setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
.build();
ApiFuture<Backup> future =
baseBigtableTableAdminClient.getBackupCallable().futureCall(request);
// Do something.
Backup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.GetBackupRequest,com.google.bigtable.admin.v2.Backup> |
|
getIamPolicy(ResourceName resource)
public final Policy getIamPolicy(ResourceName resource)Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ResourceName resource =
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]");
Policy response = baseBigtableTableAdminClient.getIamPolicy(resource);
}
| Parameter | |
|---|---|
| Name | Description |
resource |
com.google.api.resourcenames.ResourceNameREQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
getIamPolicy(GetIamPolicyRequest request)
public final Policy getIamPolicy(GetIamPolicyRequest request)Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
Policy response = baseBigtableTableAdminClient.getIamPolicy(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.GetIamPolicyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
getIamPolicy(String resource)
public final Policy getIamPolicy(String resource)Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String resource = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]").toString();
Policy response = baseBigtableTableAdminClient.getIamPolicy(resource);
}
| Parameter | |
|---|---|
| Name | Description |
resource |
StringREQUIRED: The resource for which the policy is being requested. See the operation documentation for the appropriate value for this field. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
getIamPolicyCallable()
public final UnaryCallable<GetIamPolicyRequest,Policy> getIamPolicyCallable()Gets the access control policy for a Bigtable resource. Returns an empty policy if the resource exists but does not have a policy set.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetIamPolicyRequest request =
GetIamPolicyRequest.newBuilder()
.setResource(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.setOptions(GetPolicyOptions.newBuilder().build())
.build();
ApiFuture<Policy> future =
baseBigtableTableAdminClient.getIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.GetIamPolicyRequest,com.google.iam.v1.Policy> |
|
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 |
|
getSchemaBundle(GetSchemaBundleRequest request)
public final SchemaBundle getSchemaBundle(GetSchemaBundleRequest request)Gets metadata information about the specified schema bundle.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetSchemaBundleRequest request =
GetSchemaBundleRequest.newBuilder()
.setName(
SchemaBundleName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[SCHEMA_BUNDLE]")
.toString())
.build();
SchemaBundle response = baseBigtableTableAdminClient.getSchemaBundle(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.GetSchemaBundleRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.SchemaBundle |
|
getSchemaBundle(SchemaBundleName name)
public final SchemaBundle getSchemaBundle(SchemaBundleName name)Gets metadata information about the specified schema bundle.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SchemaBundleName name =
SchemaBundleName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[SCHEMA_BUNDLE]");
SchemaBundle response = baseBigtableTableAdminClient.getSchemaBundle(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.SchemaBundleNameRequired. The unique name of the schema bundle to retrieve. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.SchemaBundle |
|
getSchemaBundle(String name)
public final SchemaBundle getSchemaBundle(String name)Gets metadata information about the specified schema bundle.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name =
SchemaBundleName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[SCHEMA_BUNDLE]").toString();
SchemaBundle response = baseBigtableTableAdminClient.getSchemaBundle(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the schema bundle to retrieve. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.SchemaBundle |
|
getSchemaBundleCallable()
public final UnaryCallable<GetSchemaBundleRequest,SchemaBundle> getSchemaBundleCallable()Gets metadata information about the specified schema bundle.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetSchemaBundleRequest request =
GetSchemaBundleRequest.newBuilder()
.setName(
SchemaBundleName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[SCHEMA_BUNDLE]")
.toString())
.build();
ApiFuture<SchemaBundle> future =
baseBigtableTableAdminClient.getSchemaBundleCallable().futureCall(request);
// Do something.
SchemaBundle response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.GetSchemaBundleRequest,com.google.bigtable.admin.v2.SchemaBundle> |
|
getSettings()
public final BaseBigtableTableAdminSettings getSettings()| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminSettings |
|
getSnapshot(GetSnapshotRequest request)
public final Snapshot getSnapshot(GetSnapshotRequest request)Gets metadata information about the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetSnapshotRequest request =
GetSnapshotRequest.newBuilder()
.setName(
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString())
.build();
Snapshot response = baseBigtableTableAdminClient.getSnapshot(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.GetSnapshotRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Snapshot |
|
getSnapshot(SnapshotName name)
public final Snapshot getSnapshot(SnapshotName name)Gets metadata information about the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SnapshotName name = SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]");
Snapshot response = baseBigtableTableAdminClient.getSnapshot(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.SnapshotNameRequired. The unique name of the requested snapshot. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Snapshot |
|
getSnapshot(String name)
public final Snapshot getSnapshot(String name)Gets metadata information about the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name =
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString();
Snapshot response = baseBigtableTableAdminClient.getSnapshot(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the requested snapshot. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Snapshot |
|
getSnapshotCallable()
public final UnaryCallable<GetSnapshotRequest,Snapshot> getSnapshotCallable()Gets metadata information about the specified snapshot.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetSnapshotRequest request =
GetSnapshotRequest.newBuilder()
.setName(
SnapshotName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[SNAPSHOT]").toString())
.build();
ApiFuture<Snapshot> future =
baseBigtableTableAdminClient.getSnapshotCallable().futureCall(request);
// Do something.
Snapshot response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.GetSnapshotRequest,com.google.bigtable.admin.v2.Snapshot> |
|
getStub()
public BigtableTableAdminStub getStub()| Returns | |
|---|---|
| Type | Description |
BigtableTableAdminStub |
|
getTable(GetTableRequest request)
public final Table getTable(GetTableRequest request)Gets metadata information about the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetTableRequest request =
GetTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
Table response = baseBigtableTableAdminClient.getTable(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.GetTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
getTable(TableName name)
public final Table getTable(TableName name)Gets metadata information about the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
Table response = baseBigtableTableAdminClient.getTable(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the requested table. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
getTable(String name)
public final Table getTable(String name)Gets metadata information about the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
Table response = baseBigtableTableAdminClient.getTable(name);
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the requested table. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
getTableCallable()
public final UnaryCallable<GetTableRequest,Table> getTableCallable()Gets metadata information about the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
GetTableRequest request =
GetTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
ApiFuture<Table> future = baseBigtableTableAdminClient.getTableCallable().futureCall(request);
// Do something.
Table response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.GetTableRequest,com.google.bigtable.admin.v2.Table> |
|
isShutdown()
public boolean isShutdown()| Returns | |
|---|---|
| Type | Description |
boolean |
|
isTerminated()
public boolean isTerminated()| Returns | |
|---|---|
| Type | Description |
boolean |
|
listAuthorizedViews(ListAuthorizedViewsRequest request)
public final BaseBigtableTableAdminClient.ListAuthorizedViewsPagedResponse listAuthorizedViews(ListAuthorizedViewsRequest request)Lists all AuthorizedViews from a specific 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListAuthorizedViewsRequest request =
ListAuthorizedViewsRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (AuthorizedView element :
baseBigtableTableAdminClient.listAuthorizedViews(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.ListAuthorizedViewsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListAuthorizedViewsPagedResponse |
|
listAuthorizedViews(TableName parent)
public final BaseBigtableTableAdminClient.ListAuthorizedViewsPagedResponse listAuthorizedViews(TableName parent)Lists all AuthorizedViews from a specific 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName parent = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
for (AuthorizedView element :
baseBigtableTableAdminClient.listAuthorizedViews(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the table for which AuthorizedViews should be
listed. Values are of the form |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListAuthorizedViewsPagedResponse |
|
listAuthorizedViews(String parent)
public final BaseBigtableTableAdminClient.ListAuthorizedViewsPagedResponse listAuthorizedViews(String parent)Lists all AuthorizedViews from a specific 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
for (AuthorizedView element :
baseBigtableTableAdminClient.listAuthorizedViews(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The unique name of the table for which AuthorizedViews should be
listed. Values are of the form |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListAuthorizedViewsPagedResponse |
|
listAuthorizedViewsCallable()
public final UnaryCallable<ListAuthorizedViewsRequest,ListAuthorizedViewsResponse> listAuthorizedViewsCallable()Lists all AuthorizedViews from a specific 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListAuthorizedViewsRequest request =
ListAuthorizedViewsRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListAuthorizedViewsResponse response =
baseBigtableTableAdminClient.listAuthorizedViewsCallable().call(request);
for (AuthorizedView element : response.getAuthorizedViewsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListAuthorizedViewsRequest,com.google.bigtable.admin.v2.ListAuthorizedViewsResponse> |
|
listAuthorizedViewsPagedCallable()
public final UnaryCallable<ListAuthorizedViewsRequest,BaseBigtableTableAdminClient.ListAuthorizedViewsPagedResponse> listAuthorizedViewsPagedCallable()Lists all AuthorizedViews from a specific 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListAuthorizedViewsRequest request =
ListAuthorizedViewsRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<AuthorizedView> future =
baseBigtableTableAdminClient.listAuthorizedViewsPagedCallable().futureCall(request);
// Do something.
for (AuthorizedView element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListAuthorizedViewsRequest,ListAuthorizedViewsPagedResponse> |
|
listBackups(ClusterName parent)
public final BaseBigtableTableAdminClient.ListBackupsPagedResponse listBackups(ClusterName parent)Lists Cloud Bigtable backups. Returns both completed and pending backups.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
for (Backup element : baseBigtableTableAdminClient.listBackups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.ClusterNameRequired. The cluster to list backups from. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListBackupsPagedResponse |
|
listBackups(ListBackupsRequest request)
public final BaseBigtableTableAdminClient.ListBackupsPagedResponse listBackups(ListBackupsRequest request)Lists Cloud Bigtable backups. Returns both completed and pending backups.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListBackupsRequest request =
ListBackupsRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Backup element : baseBigtableTableAdminClient.listBackups(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.ListBackupsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListBackupsPagedResponse |
|
listBackups(String parent)
public final BaseBigtableTableAdminClient.ListBackupsPagedResponse listBackups(String parent)Lists Cloud Bigtable backups. Returns both completed and pending backups.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
for (Backup element : baseBigtableTableAdminClient.listBackups(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The cluster to list backups from. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListBackupsPagedResponse |
|
listBackupsCallable()
public final UnaryCallable<ListBackupsRequest,ListBackupsResponse> listBackupsCallable()Lists Cloud Bigtable backups. Returns both completed and pending backups.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListBackupsRequest request =
ListBackupsRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListBackupsResponse response =
baseBigtableTableAdminClient.listBackupsCallable().call(request);
for (Backup element : response.getBackupsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListBackupsRequest,com.google.bigtable.admin.v2.ListBackupsResponse> |
|
listBackupsPagedCallable()
public final UnaryCallable<ListBackupsRequest,BaseBigtableTableAdminClient.ListBackupsPagedResponse> listBackupsPagedCallable()Lists Cloud Bigtable backups. Returns both completed and pending backups.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListBackupsRequest request =
ListBackupsRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setFilter("filter-1274492040")
.setOrderBy("orderBy-1207110587")
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Backup> future =
baseBigtableTableAdminClient.listBackupsPagedCallable().futureCall(request);
// Do something.
for (Backup element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListBackupsRequest,ListBackupsPagedResponse> |
|
listSchemaBundles(ListSchemaBundlesRequest request)
public final BaseBigtableTableAdminClient.ListSchemaBundlesPagedResponse listSchemaBundles(ListSchemaBundlesRequest request)Lists all schema bundles associated with the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListSchemaBundlesRequest request =
ListSchemaBundlesRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (SchemaBundle element :
baseBigtableTableAdminClient.listSchemaBundles(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.ListSchemaBundlesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListSchemaBundlesPagedResponse |
|
listSchemaBundles(TableName parent)
public final BaseBigtableTableAdminClient.ListSchemaBundlesPagedResponse listSchemaBundles(TableName parent)Lists all schema bundles associated with the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName parent = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
for (SchemaBundle element :
baseBigtableTableAdminClient.listSchemaBundles(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.TableNameRequired. The parent, which owns this collection of schema bundles. Values are of
the form |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListSchemaBundlesPagedResponse |
|
listSchemaBundles(String parent)
public final BaseBigtableTableAdminClient.ListSchemaBundlesPagedResponse listSchemaBundles(String parent)Lists all schema bundles associated with the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
for (SchemaBundle element :
baseBigtableTableAdminClient.listSchemaBundles(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The parent, which owns this collection of schema bundles. Values are of
the form |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListSchemaBundlesPagedResponse |
|
listSchemaBundlesCallable()
public final UnaryCallable<ListSchemaBundlesRequest,ListSchemaBundlesResponse> listSchemaBundlesCallable()Lists all schema bundles associated with the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListSchemaBundlesRequest request =
ListSchemaBundlesRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListSchemaBundlesResponse response =
baseBigtableTableAdminClient.listSchemaBundlesCallable().call(request);
for (SchemaBundle element : response.getSchemaBundlesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListSchemaBundlesRequest,com.google.bigtable.admin.v2.ListSchemaBundlesResponse> |
|
listSchemaBundlesPagedCallable()
public final UnaryCallable<ListSchemaBundlesRequest,BaseBigtableTableAdminClient.ListSchemaBundlesPagedResponse> listSchemaBundlesPagedCallable()Lists all schema bundles associated with the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListSchemaBundlesRequest request =
ListSchemaBundlesRequest.newBuilder()
.setParent(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<SchemaBundle> future =
baseBigtableTableAdminClient.listSchemaBundlesPagedCallable().futureCall(request);
// Do something.
for (SchemaBundle element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListSchemaBundlesRequest,ListSchemaBundlesPagedResponse> |
|
listSnapshots(ClusterName parent)
public final BaseBigtableTableAdminClient.ListSnapshotsPagedResponse listSnapshots(ClusterName parent)Lists all snapshots associated with the specified cluster.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
for (Snapshot element : baseBigtableTableAdminClient.listSnapshots(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.ClusterNameRequired. The unique name of the cluster for which snapshots should be listed.
Values are of the form |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListSnapshotsPagedResponse |
|
listSnapshots(ListSnapshotsRequest request)
public final BaseBigtableTableAdminClient.ListSnapshotsPagedResponse listSnapshots(ListSnapshotsRequest request)Lists all snapshots associated with the specified cluster.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListSnapshotsRequest request =
ListSnapshotsRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Snapshot element : baseBigtableTableAdminClient.listSnapshots(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.ListSnapshotsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListSnapshotsPagedResponse |
|
listSnapshots(String parent)
public final BaseBigtableTableAdminClient.ListSnapshotsPagedResponse listSnapshots(String parent)Lists all snapshots associated with the specified cluster.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
for (Snapshot element : baseBigtableTableAdminClient.listSnapshots(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The unique name of the cluster for which snapshots should be listed.
Values are of the form |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListSnapshotsPagedResponse |
|
listSnapshotsCallable()
public final UnaryCallable<ListSnapshotsRequest,ListSnapshotsResponse> listSnapshotsCallable()Lists all snapshots associated with the specified cluster.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListSnapshotsRequest request =
ListSnapshotsRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListSnapshotsResponse response =
baseBigtableTableAdminClient.listSnapshotsCallable().call(request);
for (Snapshot element : response.getSnapshotsList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListSnapshotsRequest,com.google.bigtable.admin.v2.ListSnapshotsResponse> |
|
listSnapshotsPagedCallable()
public final UnaryCallable<ListSnapshotsRequest,BaseBigtableTableAdminClient.ListSnapshotsPagedResponse> listSnapshotsPagedCallable()Lists all snapshots associated with the specified cluster.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListSnapshotsRequest request =
ListSnapshotsRequest.newBuilder()
.setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Snapshot> future =
baseBigtableTableAdminClient.listSnapshotsPagedCallable().futureCall(request);
// Do something.
for (Snapshot element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListSnapshotsRequest,ListSnapshotsPagedResponse> |
|
listTables(InstanceName parent)
public final BaseBigtableTableAdminClient.ListTablesPagedResponse listTables(InstanceName parent)Lists all tables served from a specified instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
InstanceName parent = InstanceName.of("[PROJECT]", "[INSTANCE]");
for (Table element : baseBigtableTableAdminClient.listTables(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
com.google.bigtable.admin.v2.InstanceNameRequired. The unique name of the instance for which tables should be listed.
Values are of the form |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListTablesPagedResponse |
|
listTables(ListTablesRequest request)
public final BaseBigtableTableAdminClient.ListTablesPagedResponse listTables(ListTablesRequest request)Lists all tables served from a specified instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListTablesRequest request =
ListTablesRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
for (Table element : baseBigtableTableAdminClient.listTables(request).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.ListTablesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListTablesPagedResponse |
|
listTables(String parent)
public final BaseBigtableTableAdminClient.ListTablesPagedResponse listTables(String parent)Lists all tables served from a specified instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String parent = InstanceName.of("[PROJECT]", "[INSTANCE]").toString();
for (Table element : baseBigtableTableAdminClient.listTables(parent).iterateAll()) {
// doThingsWith(element);
}
}
| Parameter | |
|---|---|
| Name | Description |
parent |
StringRequired. The unique name of the instance for which tables should be listed.
Values are of the form |
| Returns | |
|---|---|
| Type | Description |
BaseBigtableTableAdminClient.ListTablesPagedResponse |
|
listTablesCallable()
public final UnaryCallable<ListTablesRequest,ListTablesResponse> listTablesCallable()Lists all tables served from a specified instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListTablesRequest request =
ListTablesRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
while (true) {
ListTablesResponse response =
baseBigtableTableAdminClient.listTablesCallable().call(request);
for (Table element : response.getTablesList()) {
// doThingsWith(element);
}
String nextPageToken = response.getNextPageToken();
if (!Strings.isNullOrEmpty(nextPageToken)) {
request = request.toBuilder().setPageToken(nextPageToken).build();
} else {
break;
}
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListTablesRequest,com.google.bigtable.admin.v2.ListTablesResponse> |
|
listTablesPagedCallable()
public final UnaryCallable<ListTablesRequest,BaseBigtableTableAdminClient.ListTablesPagedResponse> listTablesPagedCallable()Lists all tables served from a specified instance.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ListTablesRequest request =
ListTablesRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setPageSize(883849137)
.setPageToken("pageToken873572522")
.build();
ApiFuture<Table> future =
baseBigtableTableAdminClient.listTablesPagedCallable().futureCall(request);
// Do something.
for (Table element : future.get().iterateAll()) {
// doThingsWith(element);
}
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ListTablesRequest,ListTablesPagedResponse> |
|
modifyColumnFamilies(ModifyColumnFamiliesRequest request)
public final Table modifyColumnFamilies(ModifyColumnFamiliesRequest request)Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ModifyColumnFamiliesRequest request =
ModifyColumnFamiliesRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.addAllModifications(new ArrayList<ModifyColumnFamiliesRequest.Modification>())
.setIgnoreWarnings(true)
.build();
Table response = baseBigtableTableAdminClient.modifyColumnFamilies(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.ModifyColumnFamiliesRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
modifyColumnFamilies(TableName name, List<ModifyColumnFamiliesRequest.Modification> modifications)
public final Table modifyColumnFamilies(TableName name, List<ModifyColumnFamiliesRequest.Modification> modifications)Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
List<ModifyColumnFamiliesRequest.Modification> modifications = new ArrayList<>();
Table response = baseBigtableTableAdminClient.modifyColumnFamilies(name, modifications);
}
| Parameters | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the table whose families should be modified. Values
are of the form |
modifications |
List<com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification>Required. Modifications to be atomically applied to the specified table's families. Entries are applied in order, meaning that earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example). |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
modifyColumnFamilies(String name, List<ModifyColumnFamiliesRequest.Modification> modifications)
public final Table modifyColumnFamilies(String name, List<ModifyColumnFamiliesRequest.Modification> modifications)Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
List<ModifyColumnFamiliesRequest.Modification> modifications = new ArrayList<>();
Table response = baseBigtableTableAdminClient.modifyColumnFamilies(name, modifications);
}
| Parameters | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the table whose families should be modified. Values
are of the form |
modifications |
List<com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification>Required. Modifications to be atomically applied to the specified table's families. Entries are applied in order, meaning that earlier modifications can be masked by later ones (in the case of repeated updates to the same family, for example). |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Table |
|
modifyColumnFamiliesCallable()
public final UnaryCallable<ModifyColumnFamiliesRequest,Table> modifyColumnFamiliesCallable()Performs a series of column family modifications on the specified table. Either all or none of the modifications will occur before this method returns, but data requests received prior to that point may see a table where only some modifications have taken effect.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ModifyColumnFamiliesRequest request =
ModifyColumnFamiliesRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.addAllModifications(new ArrayList<ModifyColumnFamiliesRequest.Modification>())
.setIgnoreWarnings(true)
.build();
ApiFuture<Table> future =
baseBigtableTableAdminClient.modifyColumnFamiliesCallable().futureCall(request);
// Do something.
Table response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest,com.google.bigtable.admin.v2.Table> |
|
restoreTableAsync(RestoreTableRequest request)
public final OperationFuture<Table,RestoreTableMetadata> restoreTableAsync(RestoreTableRequest request)Create a new table by restoring from a completed backup. The returned table long-running operation can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreTableMetadata. The response type is Table, if successful.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
RestoreTableRequest request =
RestoreTableRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setTableId("tableId-1552905847")
.build();
Table response = baseBigtableTableAdminClient.restoreTableAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.RestoreTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.RestoreTableMetadata> |
|
restoreTableCallable()
public final UnaryCallable<RestoreTableRequest,Operation> restoreTableCallable()Create a new table by restoring from a completed backup. The returned table long-running operation can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreTableMetadata. The response type is Table, if successful.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
RestoreTableRequest request =
RestoreTableRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setTableId("tableId-1552905847")
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.restoreTableCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.RestoreTableRequest,Operation> |
|
restoreTableOperationCallable()
public final OperationCallable<RestoreTableRequest,Table,RestoreTableMetadata> restoreTableOperationCallable()Create a new table by restoring from a completed backup. The returned table long-running operation can be used to track the progress of the operation, and to cancel it. The metadata field type is RestoreTableMetadata. The response type is Table, if successful.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
RestoreTableRequest request =
RestoreTableRequest.newBuilder()
.setParent(InstanceName.of("[PROJECT]", "[INSTANCE]").toString())
.setTableId("tableId-1552905847")
.build();
OperationFuture<Table, RestoreTableMetadata> future =
baseBigtableTableAdminClient.restoreTableOperationCallable().futureCall(request);
// Do something.
Table response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.RestoreTableRequest,com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.RestoreTableMetadata> |
|
setIamPolicy(ResourceName resource, Policy policy)
public final Policy setIamPolicy(ResourceName resource, Policy policy)Sets the access control policy on a Bigtable resource. Replaces any existing policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ResourceName resource =
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]");
Policy policy = Policy.newBuilder().build();
Policy response = baseBigtableTableAdminClient.setIamPolicy(resource, policy);
}
| Parameters | |
|---|---|
| Name | Description |
resource |
com.google.api.resourcenames.ResourceNameREQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
policy |
com.google.iam.v1.PolicyREQUIRED: The complete policy to be applied to the |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
setIamPolicy(SetIamPolicyRequest request)
public final Policy setIamPolicy(SetIamPolicyRequest request)Sets the access control policy on a Bigtable resource. Replaces any existing policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Policy response = baseBigtableTableAdminClient.setIamPolicy(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.SetIamPolicyRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
setIamPolicy(String resource, Policy policy)
public final Policy setIamPolicy(String resource, Policy policy)Sets the access control policy on a Bigtable resource. Replaces any existing policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String resource = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]").toString();
Policy policy = Policy.newBuilder().build();
Policy response = baseBigtableTableAdminClient.setIamPolicy(resource, policy);
}
| Parameters | |
|---|---|
| Name | Description |
resource |
StringREQUIRED: The resource for which the policy is being specified. See the operation documentation for the appropriate value for this field. |
policy |
com.google.iam.v1.PolicyREQUIRED: The complete policy to be applied to the |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.Policy |
|
setIamPolicyCallable()
public final UnaryCallable<SetIamPolicyRequest,Policy> setIamPolicyCallable()Sets the access control policy on a Bigtable resource. Replaces any existing policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SetIamPolicyRequest request =
SetIamPolicyRequest.newBuilder()
.setResource(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.setPolicy(Policy.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Policy> future =
baseBigtableTableAdminClient.setIamPolicyCallable().futureCall(request);
// Do something.
Policy response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.SetIamPolicyRequest,com.google.iam.v1.Policy> |
|
shutdown()
public void shutdown()shutdownNow()
public void shutdownNow()snapshotTableAsync(SnapshotTableRequest request)
public final OperationFuture<Snapshot,SnapshotTableMetadata> snapshotTableAsync(SnapshotTableRequest request)Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SnapshotTableRequest request =
SnapshotTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setCluster(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setSnapshotId("snapshotId-1113817601")
.setTtl(Duration.newBuilder().build())
.setDescription("description-1724546052")
.build();
Snapshot response = baseBigtableTableAdminClient.snapshotTableAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.SnapshotTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Snapshot,com.google.bigtable.admin.v2.SnapshotTableMetadata> |
|
snapshotTableAsync(TableName name, ClusterName cluster, String snapshotId, String description)
public final OperationFuture<Snapshot,SnapshotTableMetadata> snapshotTableAsync(TableName name, ClusterName cluster, String snapshotId, String description)Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
ClusterName cluster = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
String snapshotId = "snapshotId-1113817601";
String description = "description-1724546052";
Snapshot response =
baseBigtableTableAdminClient
.snapshotTableAsync(name, cluster, snapshotId, description)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the table to have the snapshot taken. Values are of
the form |
cluster |
com.google.bigtable.admin.v2.ClusterNameRequired. The name of the cluster where the snapshot will be created in. Values
are of the form |
snapshotId |
StringRequired. The ID by which the new snapshot should be referred to within the
parent cluster, e.g., |
description |
StringDescription of the snapshot. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Snapshot,com.google.bigtable.admin.v2.SnapshotTableMetadata> |
|
snapshotTableAsync(TableName name, String cluster, String snapshotId, String description)
public final OperationFuture<Snapshot,SnapshotTableMetadata> snapshotTableAsync(TableName name, String cluster, String snapshotId, String description)Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
String cluster = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
String snapshotId = "snapshotId-1113817601";
String description = "description-1724546052";
Snapshot response =
baseBigtableTableAdminClient
.snapshotTableAsync(name, cluster, snapshotId, description)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the table to have the snapshot taken. Values are of
the form |
cluster |
StringRequired. The name of the cluster where the snapshot will be created in. Values
are of the form |
snapshotId |
StringRequired. The ID by which the new snapshot should be referred to within the
parent cluster, e.g., |
description |
StringDescription of the snapshot. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Snapshot,com.google.bigtable.admin.v2.SnapshotTableMetadata> |
|
snapshotTableAsync(String name, ClusterName cluster, String snapshotId, String description)
public final OperationFuture<Snapshot,SnapshotTableMetadata> snapshotTableAsync(String name, ClusterName cluster, String snapshotId, String description)Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
ClusterName cluster = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
String snapshotId = "snapshotId-1113817601";
String description = "description-1724546052";
Snapshot response =
baseBigtableTableAdminClient
.snapshotTableAsync(name, cluster, snapshotId, description)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the table to have the snapshot taken. Values are of
the form |
cluster |
com.google.bigtable.admin.v2.ClusterNameRequired. The name of the cluster where the snapshot will be created in. Values
are of the form |
snapshotId |
StringRequired. The ID by which the new snapshot should be referred to within the
parent cluster, e.g., |
description |
StringDescription of the snapshot. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Snapshot,com.google.bigtable.admin.v2.SnapshotTableMetadata> |
|
snapshotTableAsync(String name, String cluster, String snapshotId, String description)
public final OperationFuture<Snapshot,SnapshotTableMetadata> snapshotTableAsync(String name, String cluster, String snapshotId, String description)Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
String cluster = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
String snapshotId = "snapshotId-1113817601";
String description = "description-1724546052";
Snapshot response =
baseBigtableTableAdminClient
.snapshotTableAsync(name, cluster, snapshotId, description)
.get();
}
| Parameters | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the table to have the snapshot taken. Values are of
the form |
cluster |
StringRequired. The name of the cluster where the snapshot will be created in. Values
are of the form |
snapshotId |
StringRequired. The ID by which the new snapshot should be referred to within the
parent cluster, e.g., |
description |
StringDescription of the snapshot. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Snapshot,com.google.bigtable.admin.v2.SnapshotTableMetadata> |
|
snapshotTableCallable()
public final UnaryCallable<SnapshotTableRequest,Operation> snapshotTableCallable()Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SnapshotTableRequest request =
SnapshotTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setCluster(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setSnapshotId("snapshotId-1113817601")
.setTtl(Duration.newBuilder().build())
.setDescription("description-1724546052")
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.snapshotTableCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.SnapshotTableRequest,Operation> |
|
snapshotTableOperationCallable()
public final OperationCallable<SnapshotTableRequest,Snapshot,SnapshotTableMetadata> snapshotTableOperationCallable()Creates a new snapshot in the specified cluster from the specified source table. The cluster and the table must be in the same instance.
Note: This is a private alpha release of Cloud Bigtable snapshots. This feature is not currently available to most Cloud Bigtable customers. This feature might be changed in backward-incompatible ways and is not recommended for production use. It is not subject to any SLA or deprecation policy.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SnapshotTableRequest request =
SnapshotTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.setCluster(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
.setSnapshotId("snapshotId-1113817601")
.setTtl(Duration.newBuilder().build())
.setDescription("description-1724546052")
.build();
OperationFuture<Snapshot, SnapshotTableMetadata> future =
baseBigtableTableAdminClient.snapshotTableOperationCallable().futureCall(request);
// Do something.
Snapshot response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.SnapshotTableRequest,com.google.bigtable.admin.v2.Snapshot,com.google.bigtable.admin.v2.SnapshotTableMetadata> |
|
testIamPermissions(ResourceName resource, List<String> permissions)
public final TestIamPermissionsResponse testIamPermissions(ResourceName resource, List<String> permissions)Returns permissions that the caller has on the specified Bigtable 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
ResourceName resource =
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]");
List<String> permissions = new ArrayList<>();
TestIamPermissionsResponse response =
baseBigtableTableAdminClient.testIamPermissions(resource, permissions);
}
| Parameters | |
|---|---|
| Name | Description |
resource |
com.google.api.resourcenames.ResourceNameREQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
permissions |
List<String>The set of permissions to check for the |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.TestIamPermissionsResponse |
|
testIamPermissions(TestIamPermissionsRequest request)
public final TestIamPermissionsResponse testIamPermissions(TestIamPermissionsRequest request)Returns permissions that the caller has on the specified Bigtable 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.addAllPermissions(new ArrayList<String>())
.build();
TestIamPermissionsResponse response =
baseBigtableTableAdminClient.testIamPermissions(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.iam.v1.TestIamPermissionsRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.TestIamPermissionsResponse |
|
testIamPermissions(String resource, List<String> permissions)
public final TestIamPermissionsResponse testIamPermissions(String resource, List<String> permissions)Returns permissions that the caller has on the specified Bigtable 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String resource = AppProfileName.of("[PROJECT]", "[INSTANCE]", "[APP_PROFILE]").toString();
List<String> permissions = new ArrayList<>();
TestIamPermissionsResponse response =
baseBigtableTableAdminClient.testIamPermissions(resource, permissions);
}
| Parameters | |
|---|---|
| Name | Description |
resource |
StringREQUIRED: The resource for which the policy detail is being requested. See the operation documentation for the appropriate value for this field. |
permissions |
List<String>The set of permissions to check for the |
| Returns | |
|---|---|
| Type | Description |
com.google.iam.v1.TestIamPermissionsResponse |
|
testIamPermissionsCallable()
public final UnaryCallable<TestIamPermissionsRequest,TestIamPermissionsResponse> testIamPermissionsCallable()Returns permissions that the caller has on the specified Bigtable 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TestIamPermissionsRequest request =
TestIamPermissionsRequest.newBuilder()
.setResource(
AuthorizedViewName.of("[PROJECT]", "[INSTANCE]", "[TABLE]", "[AUTHORIZED_VIEW]")
.toString())
.addAllPermissions(new ArrayList<String>())
.build();
ApiFuture<TestIamPermissionsResponse> future =
baseBigtableTableAdminClient.testIamPermissionsCallable().futureCall(request);
// Do something.
TestIamPermissionsResponse response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.iam.v1.TestIamPermissionsRequest,com.google.iam.v1.TestIamPermissionsResponse> |
|
undeleteTableAsync(TableName name)
public final OperationFuture<Table,UndeleteTableMetadata> undeleteTableAsync(TableName name)Restores a specified table which was accidentally 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
Table response = baseBigtableTableAdminClient.undeleteTableAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
com.google.bigtable.admin.v2.TableNameRequired. The unique name of the table to be restored. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.UndeleteTableMetadata> |
|
undeleteTableAsync(UndeleteTableRequest request)
public final OperationFuture<Table,UndeleteTableMetadata> undeleteTableAsync(UndeleteTableRequest request)Restores a specified table which was accidentally 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UndeleteTableRequest request =
UndeleteTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
Table response = baseBigtableTableAdminClient.undeleteTableAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.UndeleteTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.UndeleteTableMetadata> |
|
undeleteTableAsync(String name)
public final OperationFuture<Table,UndeleteTableMetadata> undeleteTableAsync(String name)Restores a specified table which was accidentally 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
Table response = baseBigtableTableAdminClient.undeleteTableAsync(name).get();
}
| Parameter | |
|---|---|
| Name | Description |
name |
StringRequired. The unique name of the table to be restored. Values are of the form
|
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.UndeleteTableMetadata> |
|
undeleteTableCallable()
public final UnaryCallable<UndeleteTableRequest,Operation> undeleteTableCallable()Restores a specified table which was accidentally 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UndeleteTableRequest request =
UndeleteTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.undeleteTableCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.UndeleteTableRequest,Operation> |
|
undeleteTableOperationCallable()
public final OperationCallable<UndeleteTableRequest,Table,UndeleteTableMetadata> undeleteTableOperationCallable()Restores a specified table which was accidentally 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UndeleteTableRequest request =
UndeleteTableRequest.newBuilder()
.setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
.build();
OperationFuture<Table, UndeleteTableMetadata> future =
baseBigtableTableAdminClient.undeleteTableOperationCallable().futureCall(request);
// Do something.
Table response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.UndeleteTableRequest,com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.UndeleteTableMetadata> |
|
updateAuthorizedViewAsync(AuthorizedView authorizedView, FieldMask updateMask)
public final OperationFuture<AuthorizedView,UpdateAuthorizedViewMetadata> updateAuthorizedViewAsync(AuthorizedView authorizedView, FieldMask updateMask)Updates an AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
AuthorizedView authorizedView = AuthorizedView.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
AuthorizedView response =
baseBigtableTableAdminClient.updateAuthorizedViewAsync(authorizedView, updateMask).get();
}
| Parameters | |
|---|---|
| Name | Description |
authorizedView |
com.google.bigtable.admin.v2.AuthorizedViewRequired. The AuthorizedView to update. The |
updateMask |
FieldMaskOptional. The list of fields to update. A mask specifying which fields in the
AuthorizedView resource should be updated. This mask is relative to the AuthorizedView
resource, not to the request message. A field will be overwritten if it is in the mask. If
empty, all fields set in the request will be overwritten. A special value |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.AuthorizedView,com.google.bigtable.admin.v2.UpdateAuthorizedViewMetadata> |
|
updateAuthorizedViewAsync(UpdateAuthorizedViewRequest request)
public final OperationFuture<AuthorizedView,UpdateAuthorizedViewMetadata> updateAuthorizedViewAsync(UpdateAuthorizedViewRequest request)Updates an AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateAuthorizedViewRequest request =
UpdateAuthorizedViewRequest.newBuilder()
.setAuthorizedView(AuthorizedView.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
AuthorizedView response =
baseBigtableTableAdminClient.updateAuthorizedViewAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.UpdateAuthorizedViewRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.AuthorizedView,com.google.bigtable.admin.v2.UpdateAuthorizedViewMetadata> |
|
updateAuthorizedViewCallable()
public final UnaryCallable<UpdateAuthorizedViewRequest,Operation> updateAuthorizedViewCallable()Updates an AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateAuthorizedViewRequest request =
UpdateAuthorizedViewRequest.newBuilder()
.setAuthorizedView(AuthorizedView.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.updateAuthorizedViewCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.UpdateAuthorizedViewRequest,Operation> |
|
updateAuthorizedViewOperationCallable()
public final OperationCallable<UpdateAuthorizedViewRequest,AuthorizedView,UpdateAuthorizedViewMetadata> updateAuthorizedViewOperationCallable()Updates an AuthorizedView in a 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateAuthorizedViewRequest request =
UpdateAuthorizedViewRequest.newBuilder()
.setAuthorizedView(AuthorizedView.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
OperationFuture<AuthorizedView, UpdateAuthorizedViewMetadata> future =
baseBigtableTableAdminClient.updateAuthorizedViewOperationCallable().futureCall(request);
// Do something.
AuthorizedView response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.UpdateAuthorizedViewRequest,com.google.bigtable.admin.v2.AuthorizedView,com.google.bigtable.admin.v2.UpdateAuthorizedViewMetadata> |
|
updateBackup(Backup backup, FieldMask updateMask)
public final Backup updateBackup(Backup backup, FieldMask updateMask)Updates a pending or completed Cloud Bigtable Backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
Backup backup = Backup.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Backup response = baseBigtableTableAdminClient.updateBackup(backup, updateMask);
}
| Parameters | |
|---|---|
| Name | Description |
backup |
com.google.bigtable.admin.v2.BackupRequired. The backup to update. * |
updateMask |
FieldMaskRequired. A mask specifying which fields (e.g. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Backup |
|
updateBackup(UpdateBackupRequest request)
public final Backup updateBackup(UpdateBackupRequest request)Updates a pending or completed Cloud Bigtable Backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateBackupRequest request =
UpdateBackupRequest.newBuilder()
.setBackup(Backup.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
Backup response = baseBigtableTableAdminClient.updateBackup(request);
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.UpdateBackupRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
com.google.bigtable.admin.v2.Backup |
|
updateBackupCallable()
public final UnaryCallable<UpdateBackupRequest,Backup> updateBackupCallable()Updates a pending or completed Cloud Bigtable Backup.
Sample code:
// This snippet has been automatically generated and should be regarded as a code template only.
// It will require modifications to work:
// - It may require correct/in-range values for request initialization.
// - It may require specifying regional endpoints when creating the service client as shown in
// https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateBackupRequest request =
UpdateBackupRequest.newBuilder()
.setBackup(Backup.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.build();
ApiFuture<Backup> future =
baseBigtableTableAdminClient.updateBackupCallable().futureCall(request);
// Do something.
Backup response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.UpdateBackupRequest,com.google.bigtable.admin.v2.Backup> |
|
updateSchemaBundleAsync(SchemaBundle schemaBundle, FieldMask updateMask)
public final OperationFuture<SchemaBundle,UpdateSchemaBundleMetadata> updateSchemaBundleAsync(SchemaBundle schemaBundle, FieldMask updateMask)Updates a schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
SchemaBundle schemaBundle = SchemaBundle.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
SchemaBundle response =
baseBigtableTableAdminClient.updateSchemaBundleAsync(schemaBundle, updateMask).get();
}
| Parameters | |
|---|---|
| Name | Description |
schemaBundle |
com.google.bigtable.admin.v2.SchemaBundleRequired. The schema bundle to update. The schema bundle's |
updateMask |
FieldMaskOptional. The list of fields to update. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.SchemaBundle,com.google.bigtable.admin.v2.UpdateSchemaBundleMetadata> |
|
updateSchemaBundleAsync(UpdateSchemaBundleRequest request)
public final OperationFuture<SchemaBundle,UpdateSchemaBundleMetadata> updateSchemaBundleAsync(UpdateSchemaBundleRequest request)Updates a schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateSchemaBundleRequest request =
UpdateSchemaBundleRequest.newBuilder()
.setSchemaBundle(SchemaBundle.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
SchemaBundle response = baseBigtableTableAdminClient.updateSchemaBundleAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.UpdateSchemaBundleRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.SchemaBundle,com.google.bigtable.admin.v2.UpdateSchemaBundleMetadata> |
|
updateSchemaBundleCallable()
public final UnaryCallable<UpdateSchemaBundleRequest,Operation> updateSchemaBundleCallable()Updates a schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateSchemaBundleRequest request =
UpdateSchemaBundleRequest.newBuilder()
.setSchemaBundle(SchemaBundle.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.updateSchemaBundleCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.UpdateSchemaBundleRequest,Operation> |
|
updateSchemaBundleOperationCallable()
public final OperationCallable<UpdateSchemaBundleRequest,SchemaBundle,UpdateSchemaBundleMetadata> updateSchemaBundleOperationCallable()Updates a schema bundle in the specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateSchemaBundleRequest request =
UpdateSchemaBundleRequest.newBuilder()
.setSchemaBundle(SchemaBundle.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
OperationFuture<SchemaBundle, UpdateSchemaBundleMetadata> future =
baseBigtableTableAdminClient.updateSchemaBundleOperationCallable().futureCall(request);
// Do something.
SchemaBundle response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.UpdateSchemaBundleRequest,com.google.bigtable.admin.v2.SchemaBundle,com.google.bigtable.admin.v2.UpdateSchemaBundleMetadata> |
|
updateTableAsync(Table table, FieldMask updateMask)
public final OperationFuture<Table,UpdateTableMetadata> updateTableAsync(Table table, FieldMask updateMask)Updates a specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
Table table = Table.newBuilder().build();
FieldMask updateMask = FieldMask.newBuilder().build();
Table response = baseBigtableTableAdminClient.updateTableAsync(table, updateMask).get();
}
| Parameters | |
|---|---|
| Name | Description |
table |
com.google.bigtable.admin.v2.TableRequired. The table to update. The table's |
updateMask |
FieldMaskRequired. The list of fields to update. A mask specifying which fields (e.g.
If |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.UpdateTableMetadata> |
|
updateTableAsync(UpdateTableRequest request)
public final OperationFuture<Table,UpdateTableMetadata> updateTableAsync(UpdateTableRequest request)Updates a specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateTableRequest request =
UpdateTableRequest.newBuilder()
.setTable(Table.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
Table response = baseBigtableTableAdminClient.updateTableAsync(request).get();
}
| Parameter | |
|---|---|
| Name | Description |
request |
com.google.bigtable.admin.v2.UpdateTableRequestThe request object containing all of the parameters for the API call. |
| Returns | |
|---|---|
| Type | Description |
OperationFuture<com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.UpdateTableMetadata> |
|
updateTableCallable()
public final UnaryCallable<UpdateTableRequest,Operation> updateTableCallable()Updates a specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateTableRequest request =
UpdateTableRequest.newBuilder()
.setTable(Table.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
ApiFuture<Operation> future =
baseBigtableTableAdminClient.updateTableCallable().futureCall(request);
// Do something.
Operation response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
UnaryCallable<com.google.bigtable.admin.v2.UpdateTableRequest,Operation> |
|
updateTableOperationCallable()
public final OperationCallable<UpdateTableRequest,Table,UpdateTableMetadata> updateTableOperationCallable()Updates a specified 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 (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
BaseBigtableTableAdminClient.create()) {
UpdateTableRequest request =
UpdateTableRequest.newBuilder()
.setTable(Table.newBuilder().build())
.setUpdateMask(FieldMask.newBuilder().build())
.setIgnoreWarnings(true)
.build();
OperationFuture<Table, UpdateTableMetadata> future =
baseBigtableTableAdminClient.updateTableOperationCallable().futureCall(request);
// Do something.
Table response = future.get();
}
| Returns | |
|---|---|
| Type | Description |
OperationCallable<com.google.bigtable.admin.v2.UpdateTableRequest,com.google.bigtable.admin.v2.Table,com.google.bigtable.admin.v2.UpdateTableMetadata> |
|