diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java index 9c664619f0..bc52bde120 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClient.java @@ -63,6 +63,8 @@ import com.google.bigtable.admin.v2.SnapshotTableRequest; import com.google.bigtable.admin.v2.Table; import com.google.bigtable.admin.v2.TableName; +import com.google.bigtable.admin.v2.UndeleteTableMetadata; +import com.google.bigtable.admin.v2.UndeleteTableRequest; import com.google.bigtable.admin.v2.UpdateBackupRequest; import com.google.cloud.bigtable.admin.v2.stub.BigtableTableAdminStub; import com.google.cloud.bigtable.admin.v2.stub.BigtableTableAdminStubSettings; @@ -940,6 +942,137 @@ public final UnaryCallable deleteTableCallable() { return stub.deleteTableCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a specified table which was accidentally deleted. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]");
+   *   Table response = baseBigtableTableAdminClient.undeleteTableAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The unique name of the table to be restored. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture undeleteTableAsync(TableName name) { + UndeleteTableRequest request = + UndeleteTableRequest.newBuilder().setName(name == null ? null : name.toString()).build(); + return undeleteTableAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a specified table which was accidentally deleted. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   String name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString();
+   *   Table response = baseBigtableTableAdminClient.undeleteTableAsync(name).get();
+   * }
+   * }
+ * + * @param name Required. The unique name of the table to be restored. Values are of the form + * `projects/{project}/instances/{instance}/tables/{table}`. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture undeleteTableAsync(String name) { + UndeleteTableRequest request = UndeleteTableRequest.newBuilder().setName(name).build(); + return undeleteTableAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a specified table which was accidentally deleted. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   UndeleteTableRequest request =
+   *       UndeleteTableRequest.newBuilder()
+   *           .setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+   *           .build();
+   *   Table response = baseBigtableTableAdminClient.undeleteTableAsync(request).get();
+   * }
+   * }
+ * + * @param request The request object containing all of the parameters for the API call. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture undeleteTableAsync( + UndeleteTableRequest request) { + return undeleteTableOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a specified table which was accidentally deleted. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   UndeleteTableRequest request =
+   *       UndeleteTableRequest.newBuilder()
+   *           .setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+   *           .build();
+   *   OperationFuture future =
+   *       baseBigtableTableAdminClient.undeleteTableOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Table response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + undeleteTableOperationCallable() { + return stub.undeleteTableOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Restores a specified table which was accidentally deleted. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated for illustrative purposes only.
+   * // It may require modifications to work in your environment.
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   UndeleteTableRequest request =
+   *       UndeleteTableRequest.newBuilder()
+   *           .setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString())
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableTableAdminClient.undeleteTableCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable undeleteTableCallable() { + return stub.undeleteTableCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Performs a series of column family modifications on the specified table. Either all or none of diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java index 59dd25e3f4..97cc6bb5d6 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminSettings.java @@ -63,6 +63,8 @@ import com.google.bigtable.admin.v2.SnapshotTableMetadata; import com.google.bigtable.admin.v2.SnapshotTableRequest; import com.google.bigtable.admin.v2.Table; +import com.google.bigtable.admin.v2.UndeleteTableMetadata; +import com.google.bigtable.admin.v2.UndeleteTableRequest; import com.google.bigtable.admin.v2.UpdateBackupRequest; import com.google.cloud.bigtable.admin.v2.stub.BigtableTableAdminStubSettings; import com.google.iam.v1.GetIamPolicyRequest; @@ -117,6 +119,17 @@ public UnaryCallSettings deleteTableSettings() { return ((BigtableTableAdminStubSettings) getStubSettings()).deleteTableSettings(); } + /** Returns the object with the settings used for calls to undeleteTable. */ + public UnaryCallSettings undeleteTableSettings() { + return ((BigtableTableAdminStubSettings) getStubSettings()).undeleteTableSettings(); + } + + /** Returns the object with the settings used for calls to undeleteTable. */ + public OperationCallSettings + undeleteTableOperationSettings() { + return ((BigtableTableAdminStubSettings) getStubSettings()).undeleteTableOperationSettings(); + } + /** Returns the object with the settings used for calls to modifyColumnFamilies. */ public UnaryCallSettings modifyColumnFamiliesSettings() { return ((BigtableTableAdminStubSettings) getStubSettings()).modifyColumnFamiliesSettings(); @@ -357,6 +370,17 @@ public UnaryCallSettings.Builder deleteTableSettings( return getStubSettingsBuilder().deleteTableSettings(); } + /** Returns the builder for the settings used for calls to undeleteTable. */ + public UnaryCallSettings.Builder undeleteTableSettings() { + return getStubSettingsBuilder().undeleteTableSettings(); + } + + /** Returns the builder for the settings used for calls to undeleteTable. */ + public OperationCallSettings.Builder + undeleteTableOperationSettings() { + return getStubSettingsBuilder().undeleteTableOperationSettings(); + } + /** Returns the builder for the settings used for calls to modifyColumnFamilies. */ public UnaryCallSettings.Builder modifyColumnFamiliesSettings() { diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettings.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettings.java index 9cba1159b9..2d7f1d5803 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettings.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettings.java @@ -120,6 +120,8 @@ public String toString() { .add("restoreTableSettings", stubSettings.restoreTableSettings()) .add("restoreTableOperationSettings", stubSettings.restoreTableOperationSettings()) .add("stubSettings", stubSettings) + .add("undeleteTableSettings", stubSettings.undeleteTableSettings()) + .add("undeleteTableOperationSettings", stubSettings.undeleteTableOperationSettings()) .toString(); } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json index 1459cac691..fbaa5e3bea 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/gapic_metadata.json @@ -145,6 +145,9 @@ "TestIamPermissions": { "methods": ["testIamPermissions", "testIamPermissions", "testIamPermissions", "testIamPermissionsCallable"] }, + "UndeleteTable": { + "methods": ["undeleteTableAsync", "undeleteTableAsync", "undeleteTableAsync", "undeleteTableOperationCallable", "undeleteTableCallable"] + }, "UpdateBackup": { "methods": ["updateBackup", "updateBackup", "updateBackupCallable"] } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java index 93ab2057ce..d278228522 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStub.java @@ -54,6 +54,8 @@ import com.google.bigtable.admin.v2.SnapshotTableMetadata; import com.google.bigtable.admin.v2.SnapshotTableRequest; import com.google.bigtable.admin.v2.Table; +import com.google.bigtable.admin.v2.UndeleteTableMetadata; +import com.google.bigtable.admin.v2.UndeleteTableRequest; import com.google.bigtable.admin.v2.UpdateBackupRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -106,6 +108,15 @@ public UnaryCallable deleteTableCallable() { throw new UnsupportedOperationException("Not implemented: deleteTableCallable()"); } + public OperationCallable + undeleteTableOperationCallable() { + throw new UnsupportedOperationException("Not implemented: undeleteTableOperationCallable()"); + } + + public UnaryCallable undeleteTableCallable() { + throw new UnsupportedOperationException("Not implemented: undeleteTableCallable()"); + } + public UnaryCallable modifyColumnFamiliesCallable() { throw new UnsupportedOperationException("Not implemented: modifyColumnFamiliesCallable()"); } diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java index 5e6c717684..6d750a5d35 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/BigtableTableAdminStubSettings.java @@ -76,6 +76,8 @@ import com.google.bigtable.admin.v2.SnapshotTableMetadata; import com.google.bigtable.admin.v2.SnapshotTableRequest; import com.google.bigtable.admin.v2.Table; +import com.google.bigtable.admin.v2.UndeleteTableMetadata; +import com.google.bigtable.admin.v2.UndeleteTableRequest; import com.google.bigtable.admin.v2.UpdateBackupRequest; import com.google.common.collect.ImmutableList; import com.google.common.collect.ImmutableMap; @@ -151,6 +153,9 @@ public class BigtableTableAdminStubSettings extends StubSettings getTableSettings; private final UnaryCallSettings deleteTableSettings; + private final UnaryCallSettings undeleteTableSettings; + private final OperationCallSettings + undeleteTableOperationSettings; private final UnaryCallSettings modifyColumnFamiliesSettings; private final UnaryCallSettings dropRowRangeSettings; private final UnaryCallSettings @@ -374,6 +379,17 @@ public UnaryCallSettings deleteTableSettings() { return deleteTableSettings; } + /** Returns the object with the settings used for calls to undeleteTable. */ + public UnaryCallSettings undeleteTableSettings() { + return undeleteTableSettings; + } + + /** Returns the object with the settings used for calls to undeleteTable. */ + public OperationCallSettings + undeleteTableOperationSettings() { + return undeleteTableOperationSettings; + } + /** Returns the object with the settings used for calls to modifyColumnFamilies. */ public UnaryCallSettings modifyColumnFamiliesSettings() { return modifyColumnFamiliesSettings; @@ -564,6 +580,8 @@ protected BigtableTableAdminStubSettings(Builder settingsBuilder) throws IOExcep listTablesSettings = settingsBuilder.listTablesSettings().build(); getTableSettings = settingsBuilder.getTableSettings().build(); deleteTableSettings = settingsBuilder.deleteTableSettings().build(); + undeleteTableSettings = settingsBuilder.undeleteTableSettings().build(); + undeleteTableOperationSettings = settingsBuilder.undeleteTableOperationSettings().build(); modifyColumnFamiliesSettings = settingsBuilder.modifyColumnFamiliesSettings().build(); dropRowRangeSettings = settingsBuilder.dropRowRangeSettings().build(); generateConsistencyTokenSettings = settingsBuilder.generateConsistencyTokenSettings().build(); @@ -601,6 +619,9 @@ public static class Builder listTablesSettings; private final UnaryCallSettings.Builder getTableSettings; private final UnaryCallSettings.Builder deleteTableSettings; + private final UnaryCallSettings.Builder undeleteTableSettings; + private final OperationCallSettings.Builder + undeleteTableOperationSettings; private final UnaryCallSettings.Builder modifyColumnFamiliesSettings; private final UnaryCallSettings.Builder dropRowRangeSettings; @@ -729,6 +750,8 @@ protected Builder(ClientContext clientContext) { listTablesSettings = PagedCallSettings.newBuilder(LIST_TABLES_PAGE_STR_FACT); getTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); deleteTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + undeleteTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + undeleteTableOperationSettings = OperationCallSettings.newBuilder(); modifyColumnFamiliesSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); dropRowRangeSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); generateConsistencyTokenSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -757,6 +780,7 @@ protected Builder(ClientContext clientContext) { listTablesSettings, getTableSettings, deleteTableSettings, + undeleteTableSettings, modifyColumnFamiliesSettings, dropRowRangeSettings, generateConsistencyTokenSettings, @@ -787,6 +811,8 @@ protected Builder(BigtableTableAdminStubSettings settings) { listTablesSettings = settings.listTablesSettings.toBuilder(); getTableSettings = settings.getTableSettings.toBuilder(); deleteTableSettings = settings.deleteTableSettings.toBuilder(); + undeleteTableSettings = settings.undeleteTableSettings.toBuilder(); + undeleteTableOperationSettings = settings.undeleteTableOperationSettings.toBuilder(); modifyColumnFamiliesSettings = settings.modifyColumnFamiliesSettings.toBuilder(); dropRowRangeSettings = settings.dropRowRangeSettings.toBuilder(); generateConsistencyTokenSettings = settings.generateConsistencyTokenSettings.toBuilder(); @@ -815,6 +841,7 @@ protected Builder(BigtableTableAdminStubSettings settings) { listTablesSettings, getTableSettings, deleteTableSettings, + undeleteTableSettings, modifyColumnFamiliesSettings, dropRowRangeSettings, generateConsistencyTokenSettings, @@ -873,6 +900,11 @@ private static Builder initDefaults(Builder builder) { .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_1_codes")) .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_1_params")); + builder + .undeleteTableSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .modifyColumnFamiliesSettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_0_codes")) @@ -983,6 +1015,30 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(3600000L)) .build())); + builder + .undeleteTableOperationSettings() + .setInitialCallSettings( + UnaryCallSettings + .newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Table.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(UndeleteTableMetadata.class)) + .setPollingAlgorithm( + OperationTimedPollAlgorithm.create( + RetrySettings.newBuilder() + .setInitialRetryDelay(Duration.ofMillis(5000L)) + .setRetryDelayMultiplier(1.5) + .setMaxRetryDelay(Duration.ofMillis(45000L)) + .setInitialRpcTimeout(Duration.ZERO) + .setRpcTimeoutMultiplier(1.0) + .setMaxRpcTimeout(Duration.ZERO) + .setTotalTimeout(Duration.ofMillis(300000L)) + .build())); + builder .snapshotTableOperationSettings() .setInitialCallSettings( @@ -1109,6 +1165,19 @@ public UnaryCallSettings.Builder deleteTableSettings( return deleteTableSettings; } + /** Returns the builder for the settings used for calls to undeleteTable. */ + public UnaryCallSettings.Builder undeleteTableSettings() { + return undeleteTableSettings; + } + + /** Returns the builder for the settings used for calls to undeleteTable. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + undeleteTableOperationSettings() { + return undeleteTableOperationSettings; + } + /** Returns the builder for the settings used for calls to modifyColumnFamilies. */ public UnaryCallSettings.Builder modifyColumnFamiliesSettings() { diff --git a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableTableAdminStub.java b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableTableAdminStub.java index 8cb4105299..f75f5fe399 100644 --- a/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableTableAdminStub.java +++ b/google-cloud-bigtable/src/main/java/com/google/cloud/bigtable/admin/v2/stub/GrpcBigtableTableAdminStub.java @@ -58,6 +58,8 @@ import com.google.bigtable.admin.v2.SnapshotTableMetadata; import com.google.bigtable.admin.v2.SnapshotTableRequest; import com.google.bigtable.admin.v2.Table; +import com.google.bigtable.admin.v2.UndeleteTableMetadata; +import com.google.bigtable.admin.v2.UndeleteTableRequest; import com.google.bigtable.admin.v2.UpdateBackupRequest; import com.google.common.collect.ImmutableMap; import com.google.iam.v1.GetIamPolicyRequest; @@ -123,6 +125,16 @@ public class GrpcBigtableTableAdminStub extends BigtableTableAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Empty.getDefaultInstance())) .build(); + private static final MethodDescriptor + undeleteTableMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.bigtable.admin.v2.BigtableTableAdmin/UndeleteTable") + .setRequestMarshaller( + ProtoUtils.marshaller(UndeleteTableRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor modifyColumnFamiliesMethodDescriptor = MethodDescriptor.newBuilder() @@ -294,6 +306,9 @@ public class GrpcBigtableTableAdminStub extends BigtableTableAdminStub { private final UnaryCallable listTablesPagedCallable; private final UnaryCallable getTableCallable; private final UnaryCallable deleteTableCallable; + private final UnaryCallable undeleteTableCallable; + private final OperationCallable + undeleteTableOperationCallable; private final UnaryCallable modifyColumnFamiliesCallable; private final UnaryCallable dropRowRangeCallable; private final UnaryCallable @@ -420,6 +435,16 @@ protected GrpcBigtableTableAdminStub( return params.build(); }) .build(); + GrpcCallSettings undeleteTableTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(undeleteTableMethodDescriptor) + .setParamsExtractor( + request -> { + ImmutableMap.Builder params = ImmutableMap.builder(); + params.put("name", String.valueOf(request.getName())); + return params.build(); + }) + .build(); GrpcCallSettings modifyColumnFamiliesTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(modifyColumnFamiliesMethodDescriptor) @@ -621,6 +646,15 @@ protected GrpcBigtableTableAdminStub( this.deleteTableCallable = callableFactory.createUnaryCallable( deleteTableTransportSettings, settings.deleteTableSettings(), clientContext); + this.undeleteTableCallable = + callableFactory.createUnaryCallable( + undeleteTableTransportSettings, settings.undeleteTableSettings(), clientContext); + this.undeleteTableOperationCallable = + callableFactory.createOperationCallable( + undeleteTableTransportSettings, + settings.undeleteTableOperationSettings(), + clientContext, + operationsStub); this.modifyColumnFamiliesCallable = callableFactory.createUnaryCallable( modifyColumnFamiliesTransportSettings, @@ -748,6 +782,17 @@ public UnaryCallable deleteTableCallable() { return deleteTableCallable; } + @Override + public UnaryCallable undeleteTableCallable() { + return undeleteTableCallable; + } + + @Override + public OperationCallable + undeleteTableOperationCallable() { + return undeleteTableOperationCallable; + } + @Override public UnaryCallable modifyColumnFamiliesCallable() { return modifyColumnFamiliesCallable; diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java index ac444d0c52..e0ee12fa12 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BaseBigtableTableAdminClientTest.java @@ -63,6 +63,7 @@ import com.google.bigtable.admin.v2.SnapshotTableRequest; import com.google.bigtable.admin.v2.Table; import com.google.bigtable.admin.v2.TableName; +import com.google.bigtable.admin.v2.UndeleteTableRequest; import com.google.bigtable.admin.v2.UpdateBackupRequest; import com.google.common.collect.Lists; import com.google.iam.v1.AuditConfig; @@ -697,6 +698,104 @@ public void deleteTableExceptionTest2() throws Exception { } } + @Test + public void undeleteTableTest() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString()) + .putAllClusterStates(new HashMap()) + .putAllColumnFamilies(new HashMap()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeleteTableTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableTableAdmin.addResponse(resultOperation); + + TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]"); + + Table actualResponse = client.undeleteTableAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableTableAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeleteTableRequest actualRequest = ((UndeleteTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name.toString(), actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeleteTableExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableTableAdmin.addException(exception); + + try { + TableName name = TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]"); + client.undeleteTableAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + + @Test + public void undeleteTableTest2() throws Exception { + Table expectedResponse = + Table.newBuilder() + .setName(TableName.of("[PROJECT]", "[INSTANCE]", "[TABLE]").toString()) + .putAllClusterStates(new HashMap()) + .putAllColumnFamilies(new HashMap()) + .setRestoreInfo(RestoreInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("undeleteTableTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableTableAdmin.addResponse(resultOperation); + + String name = "name3373707"; + + Table actualResponse = client.undeleteTableAsync(name).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableTableAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + UndeleteTableRequest actualRequest = ((UndeleteTableRequest) actualRequests.get(0)); + + Assert.assertEquals(name, actualRequest.getName()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void undeleteTableExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableTableAdmin.addException(exception); + + try { + String name = "name3373707"; + client.undeleteTableAsync(name).get(); + Assert.fail("No exception raised"); + } catch (ExecutionException e) { + Assert.assertEquals(InvalidArgumentException.class, e.getCause().getClass()); + InvalidArgumentException apiException = ((InvalidArgumentException) e.getCause()); + Assert.assertEquals(StatusCode.Code.INVALID_ARGUMENT, apiException.getStatusCode().getCode()); + } + } + @Test public void modifyColumnFamiliesTest() throws Exception { Table expectedResponse = diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettingsTest.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettingsTest.java index 773bd56665..28038d1db4 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettingsTest.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/BigtableTableAdminSettingsTest.java @@ -24,6 +24,9 @@ import java.io.IOException; import java.lang.reflect.Field; import java.lang.reflect.Modifier; +import java.util.Arrays; +import java.util.List; +import java.util.stream.Collectors; import org.junit.Test; import org.junit.runner.RunWith; import org.junit.runners.JUnit4; @@ -130,6 +133,8 @@ public void testStubSettings() throws IOException { "deleteBackupSettings", "restoreTableSettings", "restoreTableOperationSettings", + "undeleteTableSettings", + "undeleteTableOperationSettings" }; @Test @@ -158,14 +163,14 @@ public void testToString() throws IOException { assertThat(defaultSettings.toString()).doesNotContain("totalTimeout=PT13H32M"); assertThat(settings.toString()).contains("totalTimeout=PT13H32M"); - int nonStaticFields = 0; - for (Field field : BigtableTableAdminStubSettings.class.getDeclaredFields()) { - if (!Modifier.isStatic(field.getModifiers())) { - nonStaticFields++; - } - } + List nonStaticFields = + Arrays.stream(BigtableTableAdminStubSettings.class.getDeclaredFields()) + .filter(field -> !Modifier.isStatic(field.getModifiers())) + .map(Field::getName) + .collect(Collectors.toList()); + // failure will signal about adding a new settings property - assertThat(SETTINGS_LIST.length).isEqualTo(nonStaticFields); + assertThat(nonStaticFields).containsExactlyElementsIn(SETTINGS_LIST); } void checkToString(BigtableTableAdminSettings settings) { diff --git a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableTableAdminImpl.java b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableTableAdminImpl.java index b149b02f50..f33b96aea4 100644 --- a/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableTableAdminImpl.java +++ b/google-cloud-bigtable/src/test/java/com/google/cloud/bigtable/admin/v2/MockBigtableTableAdminImpl.java @@ -44,6 +44,7 @@ import com.google.bigtable.admin.v2.Snapshot; import com.google.bigtable.admin.v2.SnapshotTableRequest; import com.google.bigtable.admin.v2.Table; +import com.google.bigtable.admin.v2.UndeleteTableRequest; import com.google.bigtable.admin.v2.UpdateBackupRequest; import com.google.iam.v1.GetIamPolicyRequest; import com.google.iam.v1.Policy; @@ -194,6 +195,27 @@ public void deleteTable(DeleteTableRequest request, StreamObserver respon } } + @Override + public void undeleteTable( + UndeleteTableRequest request, StreamObserver responseObserver) { + Object response = responses.poll(); + if (response instanceof Operation) { + requests.add(request); + responseObserver.onNext(((Operation) response)); + responseObserver.onCompleted(); + } else if (response instanceof Exception) { + responseObserver.onError(((Exception) response)); + } else { + responseObserver.onError( + new IllegalArgumentException( + String.format( + "Unrecognized response type %s for method UndeleteTable, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void modifyColumnFamilies( ModifyColumnFamiliesRequest request, StreamObserver responseObserver) { diff --git a/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminGrpc.java b/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminGrpc.java index c226e35060..69de131981 100644 --- a/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminGrpc.java +++ b/grpc-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminGrpc.java @@ -257,6 +257,49 @@ private BigtableTableAdminGrpc() {} return getDeleteTableMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UndeleteTableRequest, com.google.longrunning.Operation> + getUndeleteTableMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "UndeleteTable", + requestType = com.google.bigtable.admin.v2.UndeleteTableRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UndeleteTableRequest, com.google.longrunning.Operation> + getUndeleteTableMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.UndeleteTableRequest, com.google.longrunning.Operation> + getUndeleteTableMethod; + if ((getUndeleteTableMethod = BigtableTableAdminGrpc.getUndeleteTableMethod) == null) { + synchronized (BigtableTableAdminGrpc.class) { + if ((getUndeleteTableMethod = BigtableTableAdminGrpc.getUndeleteTableMethod) == null) { + BigtableTableAdminGrpc.getUndeleteTableMethod = + getUndeleteTableMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "UndeleteTable")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.UndeleteTableRequest + .getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableTableAdminMethodDescriptorSupplier("UndeleteTable")) + .build(); + } + } + } + return getUndeleteTableMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest, com.google.bigtable.admin.v2.Table> @@ -1135,6 +1178,20 @@ public void deleteTable( getDeleteTableMethod(), responseObserver); } + /** + * + * + *
+     * Restores a specified table which was accidentally deleted.
+     * 
+ */ + public void undeleteTable( + com.google.bigtable.admin.v2.UndeleteTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall( + getUndeleteTableMethod(), responseObserver); + } + /** * * @@ -1459,6 +1516,12 @@ public final io.grpc.ServerServiceDefinition bindService() { new MethodHandlers< com.google.bigtable.admin.v2.DeleteTableRequest, com.google.protobuf.Empty>( this, METHODID_DELETE_TABLE))) + .addMethod( + getUndeleteTableMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.UndeleteTableRequest, + com.google.longrunning.Operation>(this, METHODID_UNDELETE_TABLE))) .addMethod( getModifyColumnFamiliesMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -1676,6 +1739,22 @@ public void deleteTable( responseObserver); } + /** + * + * + *
+     * Restores a specified table which was accidentally deleted.
+     * 
+ */ + public void undeleteTable( + com.google.bigtable.admin.v2.UndeleteTableRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getUndeleteTableMethod(), getCallOptions()), + request, + responseObserver); + } + /** * * @@ -2096,6 +2175,19 @@ public com.google.protobuf.Empty deleteTable( getChannel(), getDeleteTableMethod(), getCallOptions(), request); } + /** + * + * + *
+     * Restores a specified table which was accidentally deleted.
+     * 
+ */ + public com.google.longrunning.Operation undeleteTable( + com.google.bigtable.admin.v2.UndeleteTableRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getUndeleteTableMethod(), getCallOptions(), request); + } + /** * * @@ -2461,6 +2553,19 @@ protected BigtableTableAdminFutureStub build( getChannel().newCall(getDeleteTableMethod(), getCallOptions()), request); } + /** + * + * + *
+     * Restores a specified table which was accidentally deleted.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + undeleteTable(com.google.bigtable.admin.v2.UndeleteTableRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getUndeleteTableMethod(), getCallOptions()), request); + } + /** * * @@ -2743,23 +2848,24 @@ protected BigtableTableAdminFutureStub build( private static final int METHODID_LIST_TABLES = 2; private static final int METHODID_GET_TABLE = 3; private static final int METHODID_DELETE_TABLE = 4; - private static final int METHODID_MODIFY_COLUMN_FAMILIES = 5; - private static final int METHODID_DROP_ROW_RANGE = 6; - private static final int METHODID_GENERATE_CONSISTENCY_TOKEN = 7; - private static final int METHODID_CHECK_CONSISTENCY = 8; - private static final int METHODID_SNAPSHOT_TABLE = 9; - private static final int METHODID_GET_SNAPSHOT = 10; - private static final int METHODID_LIST_SNAPSHOTS = 11; - private static final int METHODID_DELETE_SNAPSHOT = 12; - private static final int METHODID_CREATE_BACKUP = 13; - private static final int METHODID_GET_BACKUP = 14; - private static final int METHODID_UPDATE_BACKUP = 15; - private static final int METHODID_DELETE_BACKUP = 16; - private static final int METHODID_LIST_BACKUPS = 17; - private static final int METHODID_RESTORE_TABLE = 18; - private static final int METHODID_GET_IAM_POLICY = 19; - private static final int METHODID_SET_IAM_POLICY = 20; - private static final int METHODID_TEST_IAM_PERMISSIONS = 21; + private static final int METHODID_UNDELETE_TABLE = 5; + private static final int METHODID_MODIFY_COLUMN_FAMILIES = 6; + private static final int METHODID_DROP_ROW_RANGE = 7; + private static final int METHODID_GENERATE_CONSISTENCY_TOKEN = 8; + private static final int METHODID_CHECK_CONSISTENCY = 9; + private static final int METHODID_SNAPSHOT_TABLE = 10; + private static final int METHODID_GET_SNAPSHOT = 11; + private static final int METHODID_LIST_SNAPSHOTS = 12; + private static final int METHODID_DELETE_SNAPSHOT = 13; + private static final int METHODID_CREATE_BACKUP = 14; + private static final int METHODID_GET_BACKUP = 15; + private static final int METHODID_UPDATE_BACKUP = 16; + private static final int METHODID_DELETE_BACKUP = 17; + private static final int METHODID_LIST_BACKUPS = 18; + private static final int METHODID_RESTORE_TABLE = 19; + private static final int METHODID_GET_IAM_POLICY = 20; + private static final int METHODID_SET_IAM_POLICY = 21; + private static final int METHODID_TEST_IAM_PERMISSIONS = 22; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2804,6 +2910,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.bigtable.admin.v2.DeleteTableRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_UNDELETE_TABLE: + serviceImpl.undeleteTable( + (com.google.bigtable.admin.v2.UndeleteTableRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_MODIFY_COLUMN_FAMILIES: serviceImpl.modifyColumnFamilies( (com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest) request, @@ -2965,6 +3076,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getListTablesMethod()) .addMethod(getGetTableMethod()) .addMethod(getDeleteTableMethod()) + .addMethod(getUndeleteTableMethod()) .addMethod(getModifyColumnFamiliesMethod()) .addMethod(getDropRowRangeMethod()) .addMethod(getGenerateConsistencyTokenMethod()) diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AutoscalingTargets.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AutoscalingTargets.java index d353ac1781..c0d6cb0b8c 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AutoscalingTargets.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AutoscalingTargets.java @@ -73,6 +73,11 @@ private AutoscalingTargets( cpuUtilizationPercent_ = input.readInt32(); break; } + case 24: + { + storageUtilizationGibPerNode_ = input.readInt32(); + break; + } default: { if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { @@ -130,6 +135,29 @@ public int getCpuUtilizationPercent() { return cpuUtilizationPercent_; } + public static final int STORAGE_UTILIZATION_GIB_PER_NODE_FIELD_NUMBER = 3; + private int storageUtilizationGibPerNode_; + /** + * + * + *
+   * The storage utilization that the Autoscaler should be trying to achieve.
+   * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD
+   * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster;
+   * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0,
+   * it will be treated as if it were set to the default value: 2560 for SSD,
+   * 8192 for HDD.
+   * 
+ * + * int32 storage_utilization_gib_per_node = 3; + * + * @return The storageUtilizationGibPerNode. + */ + @java.lang.Override + public int getStorageUtilizationGibPerNode() { + return storageUtilizationGibPerNode_; + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -147,6 +175,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (cpuUtilizationPercent_ != 0) { output.writeInt32(2, cpuUtilizationPercent_); } + if (storageUtilizationGibPerNode_ != 0) { + output.writeInt32(3, storageUtilizationGibPerNode_); + } unknownFields.writeTo(output); } @@ -159,6 +190,10 @@ public int getSerializedSize() { if (cpuUtilizationPercent_ != 0) { size += com.google.protobuf.CodedOutputStream.computeInt32Size(2, cpuUtilizationPercent_); } + if (storageUtilizationGibPerNode_ != 0) { + size += + com.google.protobuf.CodedOutputStream.computeInt32Size(3, storageUtilizationGibPerNode_); + } size += unknownFields.getSerializedSize(); memoizedSize = size; return size; @@ -176,6 +211,7 @@ public boolean equals(final java.lang.Object obj) { (com.google.bigtable.admin.v2.AutoscalingTargets) obj; if (getCpuUtilizationPercent() != other.getCpuUtilizationPercent()) return false; + if (getStorageUtilizationGibPerNode() != other.getStorageUtilizationGibPerNode()) return false; if (!unknownFields.equals(other.unknownFields)) return false; return true; } @@ -189,6 +225,8 @@ public int hashCode() { hash = (19 * hash) + getDescriptor().hashCode(); hash = (37 * hash) + CPU_UTILIZATION_PERCENT_FIELD_NUMBER; hash = (53 * hash) + getCpuUtilizationPercent(); + hash = (37 * hash) + STORAGE_UTILIZATION_GIB_PER_NODE_FIELD_NUMBER; + hash = (53 * hash) + getStorageUtilizationGibPerNode(); hash = (29 * hash) + unknownFields.hashCode(); memoizedHashCode = hash; return hash; @@ -336,6 +374,8 @@ public Builder clear() { super.clear(); cpuUtilizationPercent_ = 0; + storageUtilizationGibPerNode_ = 0; + return this; } @@ -364,6 +404,7 @@ public com.google.bigtable.admin.v2.AutoscalingTargets buildPartial() { com.google.bigtable.admin.v2.AutoscalingTargets result = new com.google.bigtable.admin.v2.AutoscalingTargets(this); result.cpuUtilizationPercent_ = cpuUtilizationPercent_; + result.storageUtilizationGibPerNode_ = storageUtilizationGibPerNode_; onBuilt(); return result; } @@ -417,6 +458,9 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.AutoscalingTargets other) if (other.getCpuUtilizationPercent() != 0) { setCpuUtilizationPercent(other.getCpuUtilizationPercent()); } + if (other.getStorageUtilizationGibPerNode() != 0) { + setStorageUtilizationGibPerNode(other.getStorageUtilizationGibPerNode()); + } this.mergeUnknownFields(other.unknownFields); onChanged(); return this; @@ -507,6 +551,73 @@ public Builder clearCpuUtilizationPercent() { return this; } + private int storageUtilizationGibPerNode_; + /** + * + * + *
+     * The storage utilization that the Autoscaler should be trying to achieve.
+     * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD
+     * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster;
+     * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0,
+     * it will be treated as if it were set to the default value: 2560 for SSD,
+     * 8192 for HDD.
+     * 
+ * + * int32 storage_utilization_gib_per_node = 3; + * + * @return The storageUtilizationGibPerNode. + */ + @java.lang.Override + public int getStorageUtilizationGibPerNode() { + return storageUtilizationGibPerNode_; + } + /** + * + * + *
+     * The storage utilization that the Autoscaler should be trying to achieve.
+     * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD
+     * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster;
+     * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0,
+     * it will be treated as if it were set to the default value: 2560 for SSD,
+     * 8192 for HDD.
+     * 
+ * + * int32 storage_utilization_gib_per_node = 3; + * + * @param value The storageUtilizationGibPerNode to set. + * @return This builder for chaining. + */ + public Builder setStorageUtilizationGibPerNode(int value) { + + storageUtilizationGibPerNode_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The storage utilization that the Autoscaler should be trying to achieve.
+     * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD
+     * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster;
+     * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0,
+     * it will be treated as if it were set to the default value: 2560 for SSD,
+     * 8192 for HDD.
+     * 
+ * + * int32 storage_utilization_gib_per_node = 3; + * + * @return This builder for chaining. + */ + public Builder clearStorageUtilizationGibPerNode() { + + storageUtilizationGibPerNode_ = 0; + onChanged(); + return this; + } + @java.lang.Override public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { return super.setUnknownFields(unknownFields); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AutoscalingTargetsOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AutoscalingTargetsOrBuilder.java index 965b822573..c3b9e6e256 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AutoscalingTargetsOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/AutoscalingTargetsOrBuilder.java @@ -38,4 +38,22 @@ public interface AutoscalingTargetsOrBuilder * @return The cpuUtilizationPercent. */ int getCpuUtilizationPercent(); + + /** + * + * + *
+   * The storage utilization that the Autoscaler should be trying to achieve.
+   * This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD
+   * cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster;
+   * otherwise it will return INVALID_ARGUMENT error. If this value is set to 0,
+   * it will be treated as if it were set to the default value: 2560 for SSD,
+   * 8192 for HDD.
+   * 
+ * + * int32 storage_utilization_gib_per_node = 3; + * + * @return The storageUtilizationGibPerNode. + */ + int getStorageUtilizationGibPerNode(); } diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java index 0bfe904405..082eaffde9 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BigtableTableAdminProto.java @@ -71,6 +71,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_bigtable_admin_v2_DeleteTableRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_bigtable_admin_v2_DeleteTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_UndeleteTableRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_UndeleteTableRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_fieldAccessorTable; static final com.google.protobuf.Descriptors.Descriptor internal_static_google_bigtable_admin_v2_ModifyColumnFamiliesRequest_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable @@ -214,196 +222,207 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "\0162$.google.bigtable.admin.v2.Table.View\"" + "N\n\022DeleteTableRequest\0228\n\004name\030\001 \001(\tB*\340A\002" + "\372A$\n\"bigtableadmin.googleapis.com/Table\"" - + "\337\002\n\033ModifyColumnFamiliesRequest\0228\n\004name\030" - + "\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis." - + "com/Table\022^\n\rmodifications\030\002 \003(\0132B.googl" - + "e.bigtable.admin.v2.ModifyColumnFamilies" - + "Request.ModificationB\003\340A\002\032\245\001\n\014Modificati" - + "on\022\n\n\002id\030\001 \001(\t\0228\n\006create\030\002 \001(\0132&.google." - + "bigtable.admin.v2.ColumnFamilyH\000\0228\n\006upda" - + "te\030\003 \001(\0132&.google.bigtable.admin.v2.Colu" - + "mnFamilyH\000\022\016\n\004drop\030\004 \001(\010H\000B\005\n\003mod\"[\n\037Gen" - + "erateConsistencyTokenRequest\0228\n\004name\030\001 \001" - + "(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis.com" - + "/Table\"=\n GenerateConsistencyTokenRespon" - + "se\022\031\n\021consistency_token\030\001 \001(\t\"s\n\027CheckCo" - + "nsistencyRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"" - + "bigtableadmin.googleapis.com/Table\022\036\n\021co" - + "nsistency_token\030\002 \001(\tB\003\340A\002\".\n\030CheckConsi" - + "stencyResponse\022\022\n\nconsistent\030\001 \001(\010\"\346\001\n\024S" - + "napshotTableRequest\0228\n\004name\030\001 \001(\tB*\340A\002\372A" - + "$\n\"bigtableadmin.googleapis.com/Table\022=\n" - + "\007cluster\030\002 \001(\tB,\340A\002\372A&\n$bigtableadmin.go" - + "ogleapis.com/Cluster\022\030\n\013snapshot_id\030\003 \001(" - + "\tB\003\340A\002\022&\n\003ttl\030\004 \001(\0132\031.google.protobuf.Du" - + "ration\022\023\n\013description\030\005 \001(\t\"Q\n\022GetSnapsh" - + "otRequest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%bigtabl" - + "eadmin.googleapis.com/Snapshot\"{\n\024ListSn" - + "apshotsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$" - + "bigtableadmin.googleapis.com/Cluster\022\021\n\t" - + "page_size\030\002 \001(\005\022\022\n\npage_token\030\003 \001(\t\"g\n\025L" - + "istSnapshotsResponse\0225\n\tsnapshots\030\001 \003(\0132" - + "\".google.bigtable.admin.v2.Snapshot\022\027\n\017n" - + "ext_page_token\030\002 \001(\t\"T\n\025DeleteSnapshotRe" - + "quest\022;\n\004name\030\001 \001(\tB-\340A\002\372A\'\n%bigtableadm" - + "in.googleapis.com/Snapshot\"\304\001\n\025SnapshotT" - + "ableMetadata\022H\n\020original_request\030\001 \001(\0132." - + ".google.bigtable.admin.v2.SnapshotTableR" - + "equest\0220\n\014request_time\030\002 \001(\0132\032.google.pr" - + "otobuf.Timestamp\022/\n\013finish_time\030\003 \001(\0132\032." - + "google.protobuf.Timestamp\"\330\001\n\037CreateTabl" - + "eFromSnapshotMetadata\022R\n\020original_reques" - + "t\030\001 \001(\01328.google.bigtable.admin.v2.Creat" - + "eTableFromSnapshotRequest\0220\n\014request_tim" - + "e\030\002 \001(\0132\032.google.protobuf.Timestamp\022/\n\013f" - + "inish_time\030\003 \001(\0132\032.google.protobuf.Times" - + "tamp\"\242\001\n\023CreateBackupRequest\022<\n\006parent\030\001" - + " \001(\tB,\340A\002\372A&\n$bigtableadmin.googleapis.c" - + "om/Cluster\022\026\n\tbackup_id\030\002 \001(\tB\003\340A\002\0225\n\006ba" - + "ckup\030\003 \001(\0132 .google.bigtable.admin.v2.Ba" - + "ckupB\003\340A\002\"\230\001\n\024CreateBackupMetadata\022\014\n\004na" - + "me\030\001 \001(\t\022\024\n\014source_table\030\002 \001(\t\022.\n\nstart_" - + "time\030\003 \001(\0132\032.google.protobuf.Timestamp\022," - + "\n\010end_time\030\004 \001(\0132\032.google.protobuf.Times" - + "tamp\"\202\001\n\023UpdateBackupRequest\0225\n\006backup\030\001" - + " \001(\0132 .google.bigtable.admin.v2.BackupB\003" - + "\340A\002\0224\n\013update_mask\030\002 \001(\0132\032.google.protob" - + "uf.FieldMaskB\003\340A\002\"M\n\020GetBackupRequest\0229\n" - + "\004name\030\001 \001(\tB+\340A\002\372A%\n#bigtableadmin.googl" - + "eapis.com/Backup\"P\n\023DeleteBackupRequest\022" - + "9\n\004name\030\001 \001(\tB+\340A\002\372A%\n#bigtableadmin.goo" - + "gleapis.com/Backup\"\233\001\n\022ListBackupsReques" - + "t\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$bigtableadmin" - + ".googleapis.com/Cluster\022\016\n\006filter\030\002 \001(\t\022" - + "\020\n\010order_by\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\n" - + "page_token\030\005 \001(\t\"a\n\023ListBackupsResponse\022" - + "1\n\007backups\030\001 \003(\0132 .google.bigtable.admin" - + ".v2.Backup\022\027\n\017next_page_token\030\002 \001(\t2\230%\n\022" - + "BigtableTableAdmin\022\253\001\n\013CreateTable\022,.goo" - + "gle.bigtable.admin.v2.CreateTableRequest" - + "\032\037.google.bigtable.admin.v2.Table\"M\202\323\344\223\002" - + "/\"*/v2/{parent=projects/*/instances/*}/t" - + "ables:\001*\332A\025parent,table_id,table\022\212\002\n\027Cre" - + "ateTableFromSnapshot\0228.google.bigtable.a" - + "dmin.v2.CreateTableFromSnapshotRequest\032\035" - + ".google.longrunning.Operation\"\225\001\202\323\344\223\002B\"=" - + "/v2/{parent=projects/*/instances/*}/tabl" - + "es:createFromSnapshot:\001*\332A\037parent,table_" - + "id,source_snapshot\312A(\n\005Table\022\037CreateTabl" - + "eFromSnapshotMetadata\022\244\001\n\nListTables\022+.g" - + "oogle.bigtable.admin.v2.ListTablesReques" - + "t\032,.google.bigtable.admin.v2.ListTablesR" - + "esponse\";\202\323\344\223\002,\022*/v2/{parent=projects/*/" - + "instances/*}/tables\332A\006parent\022\221\001\n\010GetTabl" - + "e\022).google.bigtable.admin.v2.GetTableReq" - + "uest\032\037.google.bigtable.admin.v2.Table\"9\202" - + "\323\344\223\002,\022*/v2/{name=projects/*/instances/*/" - + "tables/*}\332A\004name\022\216\001\n\013DeleteTable\022,.googl" - + "e.bigtable.admin.v2.DeleteTableRequest\032\026" - + ".google.protobuf.Empty\"9\202\323\344\223\002,**/v2/{nam" - + "e=projects/*/instances/*/tables/*}\332A\004nam" - + "e\022\317\001\n\024ModifyColumnFamilies\0225.google.bigt" - + "able.admin.v2.ModifyColumnFamiliesReques" - + "t\032\037.google.bigtable.admin.v2.Table\"_\202\323\344\223" - + "\002D\"?/v2/{name=projects/*/instances/*/tab" - + "les/*}:modifyColumnFamilies:\001*\332A\022name,mo" - + "difications\022\231\001\n\014DropRowRange\022-.google.bi" - + "gtable.admin.v2.DropRowRangeRequest\032\026.go" - + "ogle.protobuf.Empty\"B\202\323\344\223\002<\"7/v2/{name=p" - + "rojects/*/instances/*/tables/*}:dropRowR" - + "ange:\001*\022\350\001\n\030GenerateConsistencyToken\0229.g" - + "oogle.bigtable.admin.v2.GenerateConsiste" - + "ncyTokenRequest\032:.google.bigtable.admin." - + "v2.GenerateConsistencyTokenResponse\"U\202\323\344" - + "\223\002H\"C/v2/{name=projects/*/instances/*/ta" - + "bles/*}:generateConsistencyToken:\001*\332A\004na" - + "me\022\332\001\n\020CheckConsistency\0221.google.bigtabl" - + "e.admin.v2.CheckConsistencyRequest\0322.goo" - + "gle.bigtable.admin.v2.CheckConsistencyRe" - + "sponse\"_\202\323\344\223\002@\";/v2/{name=projects/*/ins" - + "tances/*/tables/*}:checkConsistency:\001*\332A" - + "\026name,consistency_token\022\352\001\n\rSnapshotTabl" - + "e\022..google.bigtable.admin.v2.SnapshotTab" - + "leRequest\032\035.google.longrunning.Operation" - + "\"\211\001\202\323\344\223\0028\"3/v2/{name=projects/*/instance" - + "s/*/tables/*}:snapshot:\001*\332A$name,cluster" - + ",snapshot_id,description\312A!\n\010Snapshot\022\025S" - + "napshotTableMetadata\022\250\001\n\013GetSnapshot\022,.g" - + "oogle.bigtable.admin.v2.GetSnapshotReque" - + "st\032\".google.bigtable.admin.v2.Snapshot\"G" - + "\202\323\344\223\002:\0228/v2/{name=projects/*/instances/*" - + "/clusters/*/snapshots/*}\332A\004name\022\273\001\n\rList" - + "Snapshots\022..google.bigtable.admin.v2.Lis" - + "tSnapshotsRequest\032/.google.bigtable.admi" - + "n.v2.ListSnapshotsResponse\"I\202\323\344\223\002:\0228/v2/" - + "{parent=projects/*/instances/*/clusters/" - + "*}/snapshots\332A\006parent\022\242\001\n\016DeleteSnapshot" - + "\022/.google.bigtable.admin.v2.DeleteSnapsh" - + "otRequest\032\026.google.protobuf.Empty\"G\202\323\344\223\002" - + ":*8/v2/{name=projects/*/instances/*/clus" - + "ters/*/snapshots/*}\332A\004name\022\340\001\n\014CreateBac" - + "kup\022-.google.bigtable.admin.v2.CreateBac" - + "kupRequest\032\035.google.longrunning.Operatio" - + "n\"\201\001\202\323\344\223\002@\"6/v2/{parent=projects/*/insta" - + "nces/*/clusters/*}/backups:\006backup\332A\027par" - + "ent,backup_id,backup\312A\036\n\006Backup\022\024CreateB" - + "ackupMetadata\022\240\001\n\tGetBackup\022*.google.big" - + "table.admin.v2.GetBackupRequest\032 .google" - + ".bigtable.admin.v2.Backup\"E\202\323\344\223\0028\0226/v2/{" - + "name=projects/*/instances/*/clusters/*/b" - + "ackups/*}\332A\004name\022\303\001\n\014UpdateBackup\022-.goog" - + "le.bigtable.admin.v2.UpdateBackupRequest" - + "\032 .google.bigtable.admin.v2.Backup\"b\202\323\344\223" - + "\002G2=/v2/{backup.name=projects/*/instance" - + "s/*/clusters/*/backups/*}:\006backup\332A\022back" - + "up,update_mask\022\234\001\n\014DeleteBackup\022-.google" - + ".bigtable.admin.v2.DeleteBackupRequest\032\026" - + ".google.protobuf.Empty\"E\202\323\344\223\0028*6/v2/{nam" - + "e=projects/*/instances/*/clusters/*/back" - + "ups/*}\332A\004name\022\263\001\n\013ListBackups\022,.google.b" - + "igtable.admin.v2.ListBackupsRequest\032-.go" - + "ogle.bigtable.admin.v2.ListBackupsRespon" - + "se\"G\202\323\344\223\0028\0226/v2/{parent=projects/*/insta" - + "nces/*/clusters/*}/backups\332A\006parent\022\273\001\n\014" - + "RestoreTable\022-.google.bigtable.admin.v2." - + "RestoreTableRequest\032\035.google.longrunning" - + ".Operation\"]\202\323\344\223\0027\"2/v2/{parent=projects" - + "/*/instances/*}/tables:restore:\001*\312A\035\n\005Ta" - + "ble\022\024RestoreTableMetadata\022\354\001\n\014GetIamPoli" - + "cy\022\".google.iam.v1.GetIamPolicyRequest\032\025" - + ".google.iam.v1.Policy\"\240\001\202\323\344\223\002\216\001\";/v2/{re" - + "source=projects/*/instances/*/tables/*}:" - + "getIamPolicy:\001*ZL\"G/v2/{resource=project" - + "s/*/instances/*/clusters/*/backups/*}:ge" - + "tIamPolicy:\001*\332A\010resource\022\363\001\n\014SetIamPolic" - + "y\022\".google.iam.v1.SetIamPolicyRequest\032\025." - + "google.iam.v1.Policy\"\247\001\202\323\344\223\002\216\001\";/v2/{res" - + "ource=projects/*/instances/*/tables/*}:s" - + "etIamPolicy:\001*ZL\"G/v2/{resource=projects" - + "/*/instances/*/clusters/*/backups/*}:set" - + "IamPolicy:\001*\332A\017resource,policy\022\244\002\n\022TestI" - + "amPermissions\022(.google.iam.v1.TestIamPer" - + "missionsRequest\032).google.iam.v1.TestIamP" - + "ermissionsResponse\"\270\001\202\323\344\223\002\232\001\"A/v2/{resou" - + "rce=projects/*/instances/*/tables/*}:tes" - + "tIamPermissions:\001*ZR\"M/v2/{resource=proj" - + "ects/*/instances/*/clusters/*/backups/*}" - + ":testIamPermissions:\001*\332A\024resource,permis" - + "sions\032\336\002\312A\034bigtableadmin.googleapis.com\322" - + "A\273\002https://www.googleapis.com/auth/bigta" - + "ble.admin,https://www.googleapis.com/aut" - + "h/bigtable.admin.table,https://www.googl" - + "eapis.com/auth/cloud-bigtable.admin,http" - + "s://www.googleapis.com/auth/cloud-bigtab" - + "le.admin.table,https://www.googleapis.co" - + "m/auth/cloud-platform,https://www.google" - + "apis.com/auth/cloud-platform.read-onlyB\337" - + "\001\n\034com.google.bigtable.admin.v2B\027Bigtabl" - + "eTableAdminProtoP\001Z=google.golang.org/ge" - + "nproto/googleapis/bigtable/admin/v2;admi" - + "n\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Goo" - + "gle\\Cloud\\Bigtable\\Admin\\V2\352\002\"Google::Cl" - + "oud::Bigtable::Admin::V2b\006proto3" + + "P\n\024UndeleteTableRequest\0228\n\004name\030\001 \001(\tB*\340" + + "A\002\372A$\n\"bigtableadmin.googleapis.com/Tabl" + + "e\"\203\001\n\025UndeleteTableMetadata\022\014\n\004name\030\001 \001(" + + "\t\022.\n\nstart_time\030\002 \001(\0132\032.google.protobuf." + + "Timestamp\022,\n\010end_time\030\003 \001(\0132\032.google.pro" + + "tobuf.Timestamp\"\337\002\n\033ModifyColumnFamilies" + + "Request\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"bigtablea" + + "dmin.googleapis.com/Table\022^\n\rmodificatio" + + "ns\030\002 \003(\0132B.google.bigtable.admin.v2.Modi" + + "fyColumnFamiliesRequest.ModificationB\003\340A" + + "\002\032\245\001\n\014Modification\022\n\n\002id\030\001 \001(\t\0228\n\006create" + + "\030\002 \001(\0132&.google.bigtable.admin.v2.Column" + + "FamilyH\000\0228\n\006update\030\003 \001(\0132&.google.bigtab" + + "le.admin.v2.ColumnFamilyH\000\022\016\n\004drop\030\004 \001(\010" + + "H\000B\005\n\003mod\"[\n\037GenerateConsistencyTokenReq" + + "uest\0228\n\004name\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmi" + + "n.googleapis.com/Table\"=\n GenerateConsis" + + "tencyTokenResponse\022\031\n\021consistency_token\030" + + "\001 \001(\t\"s\n\027CheckConsistencyRequest\0228\n\004name" + + "\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin.googleapis" + + ".com/Table\022\036\n\021consistency_token\030\002 \001(\tB\003\340" + + "A\002\".\n\030CheckConsistencyResponse\022\022\n\nconsis" + + "tent\030\001 \001(\010\"\346\001\n\024SnapshotTableRequest\0228\n\004n" + + "ame\030\001 \001(\tB*\340A\002\372A$\n\"bigtableadmin.googlea" + + "pis.com/Table\022=\n\007cluster\030\002 \001(\tB,\340A\002\372A&\n$" + + "bigtableadmin.googleapis.com/Cluster\022\030\n\013" + + "snapshot_id\030\003 \001(\tB\003\340A\002\022&\n\003ttl\030\004 \001(\0132\031.go" + + "ogle.protobuf.Duration\022\023\n\013description\030\005 " + + "\001(\t\"Q\n\022GetSnapshotRequest\022;\n\004name\030\001 \001(\tB" + + "-\340A\002\372A\'\n%bigtableadmin.googleapis.com/Sn" + + "apshot\"{\n\024ListSnapshotsRequest\022<\n\006parent" + + "\030\001 \001(\tB,\340A\002\372A&\n$bigtableadmin.googleapis" + + ".com/Cluster\022\021\n\tpage_size\030\002 \001(\005\022\022\n\npage_" + + "token\030\003 \001(\t\"g\n\025ListSnapshotsResponse\0225\n\t" + + "snapshots\030\001 \003(\0132\".google.bigtable.admin." + + "v2.Snapshot\022\027\n\017next_page_token\030\002 \001(\t\"T\n\025" + + "DeleteSnapshotRequest\022;\n\004name\030\001 \001(\tB-\340A\002" + + "\372A\'\n%bigtableadmin.googleapis.com/Snapsh" + + "ot\"\304\001\n\025SnapshotTableMetadata\022H\n\020original" + + "_request\030\001 \001(\0132..google.bigtable.admin.v" + + "2.SnapshotTableRequest\0220\n\014request_time\030\002" + + " \001(\0132\032.google.protobuf.Timestamp\022/\n\013fini" + + "sh_time\030\003 \001(\0132\032.google.protobuf.Timestam" + + "p\"\330\001\n\037CreateTableFromSnapshotMetadata\022R\n" + + "\020original_request\030\001 \001(\01328.google.bigtabl" + + "e.admin.v2.CreateTableFromSnapshotReques" + + "t\0220\n\014request_time\030\002 \001(\0132\032.google.protobu" + + "f.Timestamp\022/\n\013finish_time\030\003 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\242\001\n\023CreateBackupReq" + + "uest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A&\n$bigtablead" + + "min.googleapis.com/Cluster\022\026\n\tbackup_id\030" + + "\002 \001(\tB\003\340A\002\0225\n\006backup\030\003 \001(\0132 .google.bigt" + + "able.admin.v2.BackupB\003\340A\002\"\230\001\n\024CreateBack" + + "upMetadata\022\014\n\004name\030\001 \001(\t\022\024\n\014source_table" + + "\030\002 \001(\t\022.\n\nstart_time\030\003 \001(\0132\032.google.prot" + + "obuf.Timestamp\022,\n\010end_time\030\004 \001(\0132\032.googl" + + "e.protobuf.Timestamp\"\202\001\n\023UpdateBackupReq" + + "uest\0225\n\006backup\030\001 \001(\0132 .google.bigtable.a" + + "dmin.v2.BackupB\003\340A\002\0224\n\013update_mask\030\002 \001(\013" + + "2\032.google.protobuf.FieldMaskB\003\340A\002\"M\n\020Get" + + "BackupRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#big" + + "tableadmin.googleapis.com/Backup\"P\n\023Dele" + + "teBackupRequest\0229\n\004name\030\001 \001(\tB+\340A\002\372A%\n#b" + + "igtableadmin.googleapis.com/Backup\"\233\001\n\022L" + + "istBackupsRequest\022<\n\006parent\030\001 \001(\tB,\340A\002\372A" + + "&\n$bigtableadmin.googleapis.com/Cluster\022" + + "\016\n\006filter\030\002 \001(\t\022\020\n\010order_by\030\003 \001(\t\022\021\n\tpag" + + "e_size\030\004 \001(\005\022\022\n\npage_token\030\005 \001(\t\"a\n\023List" + + "BackupsResponse\0221\n\007backups\030\001 \003(\0132 .googl" + + "e.bigtable.admin.v2.Backup\022\027\n\017next_page_" + + "token\030\002 \001(\t2\341&\n\022BigtableTableAdmin\022\253\001\n\013C" + + "reateTable\022,.google.bigtable.admin.v2.Cr" + + "eateTableRequest\032\037.google.bigtable.admin" + + ".v2.Table\"M\202\323\344\223\002/\"*/v2/{parent=projects/" + + "*/instances/*}/tables:\001*\332A\025parent,table_" + + "id,table\022\212\002\n\027CreateTableFromSnapshot\0228.g" + + "oogle.bigtable.admin.v2.CreateTableFromS" + + "napshotRequest\032\035.google.longrunning.Oper" + + "ation\"\225\001\202\323\344\223\002B\"=/v2/{parent=projects/*/i" + + "nstances/*}/tables:createFromSnapshot:\001*" + + "\332A\037parent,table_id,source_snapshot\312A(\n\005T" + + "able\022\037CreateTableFromSnapshotMetadata\022\244\001" + + "\n\nListTables\022+.google.bigtable.admin.v2." + + "ListTablesRequest\032,.google.bigtable.admi" + + "n.v2.ListTablesResponse\";\202\323\344\223\002,\022*/v2/{pa" + + "rent=projects/*/instances/*}/tables\332A\006pa" + + "rent\022\221\001\n\010GetTable\022).google.bigtable.admi" + + "n.v2.GetTableRequest\032\037.google.bigtable.a" + + "dmin.v2.Table\"9\202\323\344\223\002,\022*/v2/{name=project" + + "s/*/instances/*/tables/*}\332A\004name\022\216\001\n\013Del" + + "eteTable\022,.google.bigtable.admin.v2.Dele" + + "teTableRequest\032\026.google.protobuf.Empty\"9" + + "\202\323\344\223\002,**/v2/{name=projects/*/instances/*" + + "/tables/*}\332A\004name\022\306\001\n\rUndeleteTable\022..go" + + "ogle.bigtable.admin.v2.UndeleteTableRequ" + + "est\032\035.google.longrunning.Operation\"f\202\323\344\223" + + "\0028\"3/v2/{name=projects/*/instances/*/tab" + + "les/*}:undelete:\001*\332A\004name\312A\036\n\005Table\022\025Und" + + "eleteTableMetadata\022\317\001\n\024ModifyColumnFamil" + + "ies\0225.google.bigtable.admin.v2.ModifyCol" + + "umnFamiliesRequest\032\037.google.bigtable.adm" + + "in.v2.Table\"_\202\323\344\223\002D\"?/v2/{name=projects/" + + "*/instances/*/tables/*}:modifyColumnFami" + + "lies:\001*\332A\022name,modifications\022\231\001\n\014DropRow" + + "Range\022-.google.bigtable.admin.v2.DropRow" + + "RangeRequest\032\026.google.protobuf.Empty\"B\202\323" + + "\344\223\002<\"7/v2/{name=projects/*/instances/*/t" + + "ables/*}:dropRowRange:\001*\022\350\001\n\030GenerateCon" + + "sistencyToken\0229.google.bigtable.admin.v2" + + ".GenerateConsistencyTokenRequest\032:.googl" + + "e.bigtable.admin.v2.GenerateConsistencyT" + + "okenResponse\"U\202\323\344\223\002H\"C/v2/{name=projects" + + "/*/instances/*/tables/*}:generateConsist" + + "encyToken:\001*\332A\004name\022\332\001\n\020CheckConsistency" + + "\0221.google.bigtable.admin.v2.CheckConsist" + + "encyRequest\0322.google.bigtable.admin.v2.C" + + "heckConsistencyResponse\"_\202\323\344\223\002@\";/v2/{na" + + "me=projects/*/instances/*/tables/*}:chec" + + "kConsistency:\001*\332A\026name,consistency_token" + + "\022\352\001\n\rSnapshotTable\022..google.bigtable.adm" + + "in.v2.SnapshotTableRequest\032\035.google.long" + + "running.Operation\"\211\001\202\323\344\223\0028\"3/v2/{name=pr" + + "ojects/*/instances/*/tables/*}:snapshot:" + + "\001*\332A$name,cluster,snapshot_id,descriptio" + + "n\312A!\n\010Snapshot\022\025SnapshotTableMetadata\022\250\001" + + "\n\013GetSnapshot\022,.google.bigtable.admin.v2" + + ".GetSnapshotRequest\032\".google.bigtable.ad" + + "min.v2.Snapshot\"G\202\323\344\223\002:\0228/v2/{name=proje" + + "cts/*/instances/*/clusters/*/snapshots/*" + + "}\332A\004name\022\273\001\n\rListSnapshots\022..google.bigt" + + "able.admin.v2.ListSnapshotsRequest\032/.goo" + + "gle.bigtable.admin.v2.ListSnapshotsRespo" + + "nse\"I\202\323\344\223\002:\0228/v2/{parent=projects/*/inst" + + "ances/*/clusters/*}/snapshots\332A\006parent\022\242" + + "\001\n\016DeleteSnapshot\022/.google.bigtable.admi" + + "n.v2.DeleteSnapshotRequest\032\026.google.prot" + + "obuf.Empty\"G\202\323\344\223\002:*8/v2/{name=projects/*" + + "/instances/*/clusters/*/snapshots/*}\332A\004n" + + "ame\022\340\001\n\014CreateBackup\022-.google.bigtable.a" + + "dmin.v2.CreateBackupRequest\032\035.google.lon" + + "grunning.Operation\"\201\001\202\323\344\223\002@\"6/v2/{parent" + + "=projects/*/instances/*/clusters/*}/back" + + "ups:\006backup\332A\027parent,backup_id,backup\312A\036" + + "\n\006Backup\022\024CreateBackupMetadata\022\240\001\n\tGetBa" + + "ckup\022*.google.bigtable.admin.v2.GetBacku" + + "pRequest\032 .google.bigtable.admin.v2.Back" + + "up\"E\202\323\344\223\0028\0226/v2/{name=projects/*/instanc" + + "es/*/clusters/*/backups/*}\332A\004name\022\303\001\n\014Up" + + "dateBackup\022-.google.bigtable.admin.v2.Up" + + "dateBackupRequest\032 .google.bigtable.admi" + + "n.v2.Backup\"b\202\323\344\223\002G2=/v2/{backup.name=pr" + + "ojects/*/instances/*/clusters/*/backups/" + + "*}:\006backup\332A\022backup,update_mask\022\234\001\n\014Dele" + + "teBackup\022-.google.bigtable.admin.v2.Dele" + + "teBackupRequest\032\026.google.protobuf.Empty\"" + + "E\202\323\344\223\0028*6/v2/{name=projects/*/instances/" + + "*/clusters/*/backups/*}\332A\004name\022\263\001\n\013ListB" + + "ackups\022,.google.bigtable.admin.v2.ListBa" + + "ckupsRequest\032-.google.bigtable.admin.v2." + + "ListBackupsResponse\"G\202\323\344\223\0028\0226/v2/{parent" + + "=projects/*/instances/*/clusters/*}/back" + + "ups\332A\006parent\022\273\001\n\014RestoreTable\022-.google.b" + + "igtable.admin.v2.RestoreTableRequest\032\035.g" + + "oogle.longrunning.Operation\"]\202\323\344\223\0027\"2/v2" + + "/{parent=projects/*/instances/*}/tables:" + + "restore:\001*\312A\035\n\005Table\022\024RestoreTableMetada" + + "ta\022\354\001\n\014GetIamPolicy\022\".google.iam.v1.GetI" + + "amPolicyRequest\032\025.google.iam.v1.Policy\"\240" + + "\001\202\323\344\223\002\216\001\";/v2/{resource=projects/*/insta" + + "nces/*/tables/*}:getIamPolicy:\001*ZL\"G/v2/" + + "{resource=projects/*/instances/*/cluster" + + "s/*/backups/*}:getIamPolicy:\001*\332A\010resourc" + + "e\022\363\001\n\014SetIamPolicy\022\".google.iam.v1.SetIa" + + "mPolicyRequest\032\025.google.iam.v1.Policy\"\247\001" + + "\202\323\344\223\002\216\001\";/v2/{resource=projects/*/instan" + + "ces/*/tables/*}:setIamPolicy:\001*ZL\"G/v2/{" + + "resource=projects/*/instances/*/clusters" + + "/*/backups/*}:setIamPolicy:\001*\332A\017resource" + + ",policy\022\244\002\n\022TestIamPermissions\022(.google." + + "iam.v1.TestIamPermissionsRequest\032).googl" + + "e.iam.v1.TestIamPermissionsResponse\"\270\001\202\323" + + "\344\223\002\232\001\"A/v2/{resource=projects/*/instance" + + "s/*/tables/*}:testIamPermissions:\001*ZR\"M/" + + "v2/{resource=projects/*/instances/*/clus" + + "ters/*/backups/*}:testIamPermissions:\001*\332" + + "A\024resource,permissions\032\336\002\312A\034bigtableadmi" + + "n.googleapis.com\322A\273\002https://www.googleap" + + "is.com/auth/bigtable.admin,https://www.g" + + "oogleapis.com/auth/bigtable.admin.table," + + "https://www.googleapis.com/auth/cloud-bi" + + "gtable.admin,https://www.googleapis.com/" + + "auth/cloud-bigtable.admin.table,https://" + + "www.googleapis.com/auth/cloud-platform,h" + + "ttps://www.googleapis.com/auth/cloud-pla" + + "tform.read-onlyB\337\001\n\034com.google.bigtable." + + "admin.v2B\027BigtableTableAdminProtoP\001Z=goo" + + "gle.golang.org/genproto/googleapis/bigta" + + "ble/admin/v2;admin\252\002\036Google.Cloud.Bigtab" + + "le.Admin.V2\312\002\036Google\\Cloud\\Bigtable\\Admi" + + "n\\V2\352\002\"Google::Cloud::Bigtable::Admin::V" + + "2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -518,8 +537,24 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", }); - internal_static_google_bigtable_admin_v2_ModifyColumnFamiliesRequest_descriptor = + internal_static_google_bigtable_admin_v2_UndeleteTableRequest_descriptor = getDescriptor().getMessageTypes().get(10); + internal_static_google_bigtable_admin_v2_UndeleteTableRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_UndeleteTableRequest_descriptor, + new java.lang.String[] { + "Name", + }); + internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_descriptor = + getDescriptor().getMessageTypes().get(11); + internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_descriptor, + new java.lang.String[] { + "Name", "StartTime", "EndTime", + }); + internal_static_google_bigtable_admin_v2_ModifyColumnFamiliesRequest_descriptor = + getDescriptor().getMessageTypes().get(12); internal_static_google_bigtable_admin_v2_ModifyColumnFamiliesRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_ModifyColumnFamiliesRequest_descriptor, @@ -537,7 +572,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Id", "Create", "Update", "Drop", "Mod", }); internal_static_google_bigtable_admin_v2_GenerateConsistencyTokenRequest_descriptor = - getDescriptor().getMessageTypes().get(11); + getDescriptor().getMessageTypes().get(13); internal_static_google_bigtable_admin_v2_GenerateConsistencyTokenRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_GenerateConsistencyTokenRequest_descriptor, @@ -545,7 +580,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_bigtable_admin_v2_GenerateConsistencyTokenResponse_descriptor = - getDescriptor().getMessageTypes().get(12); + getDescriptor().getMessageTypes().get(14); internal_static_google_bigtable_admin_v2_GenerateConsistencyTokenResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_GenerateConsistencyTokenResponse_descriptor, @@ -553,7 +588,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "ConsistencyToken", }); internal_static_google_bigtable_admin_v2_CheckConsistencyRequest_descriptor = - getDescriptor().getMessageTypes().get(13); + getDescriptor().getMessageTypes().get(15); internal_static_google_bigtable_admin_v2_CheckConsistencyRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_CheckConsistencyRequest_descriptor, @@ -561,7 +596,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "ConsistencyToken", }); internal_static_google_bigtable_admin_v2_CheckConsistencyResponse_descriptor = - getDescriptor().getMessageTypes().get(14); + getDescriptor().getMessageTypes().get(16); internal_static_google_bigtable_admin_v2_CheckConsistencyResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_CheckConsistencyResponse_descriptor, @@ -569,7 +604,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Consistent", }); internal_static_google_bigtable_admin_v2_SnapshotTableRequest_descriptor = - getDescriptor().getMessageTypes().get(15); + getDescriptor().getMessageTypes().get(17); internal_static_google_bigtable_admin_v2_SnapshotTableRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_SnapshotTableRequest_descriptor, @@ -577,7 +612,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "Cluster", "SnapshotId", "Ttl", "Description", }); internal_static_google_bigtable_admin_v2_GetSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(16); + getDescriptor().getMessageTypes().get(18); internal_static_google_bigtable_admin_v2_GetSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_GetSnapshotRequest_descriptor, @@ -585,7 +620,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_bigtable_admin_v2_ListSnapshotsRequest_descriptor = - getDescriptor().getMessageTypes().get(17); + getDescriptor().getMessageTypes().get(19); internal_static_google_bigtable_admin_v2_ListSnapshotsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_ListSnapshotsRequest_descriptor, @@ -593,7 +628,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "PageSize", "PageToken", }); internal_static_google_bigtable_admin_v2_ListSnapshotsResponse_descriptor = - getDescriptor().getMessageTypes().get(18); + getDescriptor().getMessageTypes().get(20); internal_static_google_bigtable_admin_v2_ListSnapshotsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_ListSnapshotsResponse_descriptor, @@ -601,7 +636,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Snapshots", "NextPageToken", }); internal_static_google_bigtable_admin_v2_DeleteSnapshotRequest_descriptor = - getDescriptor().getMessageTypes().get(19); + getDescriptor().getMessageTypes().get(21); internal_static_google_bigtable_admin_v2_DeleteSnapshotRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_DeleteSnapshotRequest_descriptor, @@ -609,7 +644,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_bigtable_admin_v2_SnapshotTableMetadata_descriptor = - getDescriptor().getMessageTypes().get(20); + getDescriptor().getMessageTypes().get(22); internal_static_google_bigtable_admin_v2_SnapshotTableMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_SnapshotTableMetadata_descriptor, @@ -617,7 +652,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OriginalRequest", "RequestTime", "FinishTime", }); internal_static_google_bigtable_admin_v2_CreateTableFromSnapshotMetadata_descriptor = - getDescriptor().getMessageTypes().get(21); + getDescriptor().getMessageTypes().get(23); internal_static_google_bigtable_admin_v2_CreateTableFromSnapshotMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_CreateTableFromSnapshotMetadata_descriptor, @@ -625,7 +660,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "OriginalRequest", "RequestTime", "FinishTime", }); internal_static_google_bigtable_admin_v2_CreateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(22); + getDescriptor().getMessageTypes().get(24); internal_static_google_bigtable_admin_v2_CreateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_CreateBackupRequest_descriptor, @@ -633,7 +668,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "BackupId", "Backup", }); internal_static_google_bigtable_admin_v2_CreateBackupMetadata_descriptor = - getDescriptor().getMessageTypes().get(23); + getDescriptor().getMessageTypes().get(25); internal_static_google_bigtable_admin_v2_CreateBackupMetadata_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_CreateBackupMetadata_descriptor, @@ -641,7 +676,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", "SourceTable", "StartTime", "EndTime", }); internal_static_google_bigtable_admin_v2_UpdateBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(24); + getDescriptor().getMessageTypes().get(26); internal_static_google_bigtable_admin_v2_UpdateBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_UpdateBackupRequest_descriptor, @@ -649,7 +684,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Backup", "UpdateMask", }); internal_static_google_bigtable_admin_v2_GetBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(25); + getDescriptor().getMessageTypes().get(27); internal_static_google_bigtable_admin_v2_GetBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_GetBackupRequest_descriptor, @@ -657,7 +692,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_bigtable_admin_v2_DeleteBackupRequest_descriptor = - getDescriptor().getMessageTypes().get(26); + getDescriptor().getMessageTypes().get(28); internal_static_google_bigtable_admin_v2_DeleteBackupRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_DeleteBackupRequest_descriptor, @@ -665,7 +700,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Name", }); internal_static_google_bigtable_admin_v2_ListBackupsRequest_descriptor = - getDescriptor().getMessageTypes().get(27); + getDescriptor().getMessageTypes().get(29); internal_static_google_bigtable_admin_v2_ListBackupsRequest_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_ListBackupsRequest_descriptor, @@ -673,7 +708,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { "Parent", "Filter", "OrderBy", "PageSize", "PageToken", }); internal_static_google_bigtable_admin_v2_ListBackupsResponse_descriptor = - getDescriptor().getMessageTypes().get(28); + getDescriptor().getMessageTypes().get(30); internal_static_google_bigtable_admin_v2_ListBackupsResponse_fieldAccessorTable = new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_ListBackupsResponse_descriptor, diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java index a93744b0a9..d73caea850 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/InstanceProto.java @@ -102,66 +102,67 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "E_UNSPECIFIED\020\000\022\016\n\nPRODUCTION\020\001\022\017\n\013DEVEL" + "OPMENT\020\002:S\352AP\n%bigtableadmin.googleapis." + "com/Instance\022\'projects/{project}/instanc" - + "es/{instance}\"5\n\022AutoscalingTargets\022\037\n\027c" - + "pu_utilization_percent\030\002 \001(\005\"O\n\021Autoscal" - + "ingLimits\022\034\n\017min_serve_nodes\030\001 \001(\005B\003\340A\002\022" - + "\034\n\017max_serve_nodes\030\002 \001(\005B\003\340A\002\"\321\007\n\007Cluste" - + "r\022\014\n\004name\030\001 \001(\t\022;\n\010location\030\002 \001(\tB)\340A\005\372A" - + "#\n!locations.googleapis.com/Location\022;\n\005" - + "state\030\003 \001(\0162\'.google.bigtable.admin.v2.C" - + "luster.StateB\003\340A\003\022\023\n\013serve_nodes\030\004 \001(\005\022I" - + "\n\016cluster_config\030\007 \001(\0132/.google.bigtable" - + ".admin.v2.Cluster.ClusterConfigH\000\022H\n\024def" - + "ault_storage_type\030\005 \001(\0162%.google.bigtabl" - + "e.admin.v2.StorageTypeB\003\340A\005\022R\n\021encryptio" - + "n_config\030\006 \001(\01322.google.bigtable.admin.v" - + "2.Cluster.EncryptionConfigB\003\340A\005\032\270\001\n\030Clus" - + "terAutoscalingConfig\022L\n\022autoscaling_limi" - + "ts\030\001 \001(\0132+.google.bigtable.admin.v2.Auto" - + "scalingLimitsB\003\340A\002\022N\n\023autoscaling_target" - + "s\030\002 \001(\0132,.google.bigtable.admin.v2.Autos" - + "calingTargetsB\003\340A\002\032o\n\rClusterConfig\022^\n\032c" - + "luster_autoscaling_config\030\001 \001(\0132:.google" - + ".bigtable.admin.v2.Cluster.ClusterAutosc" - + "alingConfig\032P\n\020EncryptionConfig\022<\n\014kms_k" - + "ey_name\030\001 \001(\tB&\372A#\n!cloudkms.googleapis." - + "com/CryptoKey\"Q\n\005State\022\023\n\017STATE_NOT_KNOW" - + "N\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010RESIZING" - + "\020\003\022\014\n\010DISABLED\020\004:e\352Ab\n$bigtableadmin.goo" - + "gleapis.com/Cluster\022:projects/{project}/" - + "instances/{instance}/clusters/{cluster}B" - + "\010\n\006config\"\210\004\n\nAppProfile\022\014\n\004name\030\001 \001(\t\022\014" - + "\n\004etag\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022g\n\035mul" - + "ti_cluster_routing_use_any\030\005 \001(\0132>.googl" - + "e.bigtable.admin.v2.AppProfile.MultiClus" - + "terRoutingUseAnyH\000\022[\n\026single_cluster_rou" - + "ting\030\006 \001(\01329.google.bigtable.admin.v2.Ap" - + "pProfile.SingleClusterRoutingH\000\0320\n\031Multi" - + "ClusterRoutingUseAny\022\023\n\013cluster_ids\030\001 \003(" - + "\t\032N\n\024SingleClusterRouting\022\022\n\ncluster_id\030" - + "\001 \001(\t\022\"\n\032allow_transactional_writes\030\002 \001(" - + "\010:o\352Al\n\'bigtableadmin.googleapis.com/App" - + "Profile\022Aprojects/{project}/instances/{i" - + "nstance}/appProfiles/{app_profile}B\020\n\016ro" - + "uting_policy\"\210\003\n\tHotTablet\022\014\n\004name\030\001 \001(\t" - + "\022;\n\ntable_name\030\002 \001(\tB\'\372A$\n\"bigtableadmin" - + ".googleapis.com/Table\0223\n\nstart_time\030\003 \001(" - + "\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010en" - + "d_time\030\004 \001(\0132\032.google.protobuf.Timestamp" - + "B\003\340A\003\022\021\n\tstart_key\030\005 \001(\t\022\017\n\007end_key\030\006 \001(" - + "\t\022#\n\026node_cpu_usage_percent\030\007 \001(\002B\003\340A\003:\177" - + "\352A|\n&bigtableadmin.googleapis.com/HotTab" - + "let\022Rprojects/{project}/instances/{insta" - + "nce}/clusters/{cluster}/hotTablets/{hot_" - + "tablet}B\320\002\n\034com.google.bigtable.admin.v2" - + "B\rInstanceProtoP\001Z=google.golang.org/gen" - + "proto/googleapis/bigtable/admin/v2;admin" - + "\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Goog" - + "le\\Cloud\\Bigtable\\Admin\\V2\352\002\"Google::Clo" - + "ud::Bigtable::Admin::V2\352Ax\n!cloudkms.goo" - + "gleapis.com/CryptoKey\022Sprojects/{project" - + "}/locations/{location}/keyRings/{key_rin" - + "g}/cryptoKeys/{crypto_key}b\006proto3" + + "es/{instance}\"_\n\022AutoscalingTargets\022\037\n\027c" + + "pu_utilization_percent\030\002 \001(\005\022(\n storage_" + + "utilization_gib_per_node\030\003 \001(\005\"O\n\021Autosc" + + "alingLimits\022\034\n\017min_serve_nodes\030\001 \001(\005B\003\340A" + + "\002\022\034\n\017max_serve_nodes\030\002 \001(\005B\003\340A\002\"\321\007\n\007Clus" + + "ter\022\014\n\004name\030\001 \001(\t\022;\n\010location\030\002 \001(\tB)\340A\005" + + "\372A#\n!locations.googleapis.com/Location\022;" + + "\n\005state\030\003 \001(\0162\'.google.bigtable.admin.v2" + + ".Cluster.StateB\003\340A\003\022\023\n\013serve_nodes\030\004 \001(\005" + + "\022I\n\016cluster_config\030\007 \001(\0132/.google.bigtab" + + "le.admin.v2.Cluster.ClusterConfigH\000\022H\n\024d" + + "efault_storage_type\030\005 \001(\0162%.google.bigta" + + "ble.admin.v2.StorageTypeB\003\340A\005\022R\n\021encrypt" + + "ion_config\030\006 \001(\01322.google.bigtable.admin" + + ".v2.Cluster.EncryptionConfigB\003\340A\005\032\270\001\n\030Cl" + + "usterAutoscalingConfig\022L\n\022autoscaling_li" + + "mits\030\001 \001(\0132+.google.bigtable.admin.v2.Au" + + "toscalingLimitsB\003\340A\002\022N\n\023autoscaling_targ" + + "ets\030\002 \001(\0132,.google.bigtable.admin.v2.Aut" + + "oscalingTargetsB\003\340A\002\032o\n\rClusterConfig\022^\n" + + "\032cluster_autoscaling_config\030\001 \001(\0132:.goog" + + "le.bigtable.admin.v2.Cluster.ClusterAuto" + + "scalingConfig\032P\n\020EncryptionConfig\022<\n\014kms" + + "_key_name\030\001 \001(\tB&\372A#\n!cloudkms.googleapi" + + "s.com/CryptoKey\"Q\n\005State\022\023\n\017STATE_NOT_KN" + + "OWN\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002\022\014\n\010RESIZI" + + "NG\020\003\022\014\n\010DISABLED\020\004:e\352Ab\n$bigtableadmin.g" + + "oogleapis.com/Cluster\022:projects/{project" + + "}/instances/{instance}/clusters/{cluster" + + "}B\010\n\006config\"\210\004\n\nAppProfile\022\014\n\004name\030\001 \001(\t" + + "\022\014\n\004etag\030\002 \001(\t\022\023\n\013description\030\003 \001(\t\022g\n\035m" + + "ulti_cluster_routing_use_any\030\005 \001(\0132>.goo" + + "gle.bigtable.admin.v2.AppProfile.MultiCl" + + "usterRoutingUseAnyH\000\022[\n\026single_cluster_r" + + "outing\030\006 \001(\01329.google.bigtable.admin.v2." + + "AppProfile.SingleClusterRoutingH\000\0320\n\031Mul" + + "tiClusterRoutingUseAny\022\023\n\013cluster_ids\030\001 " + + "\003(\t\032N\n\024SingleClusterRouting\022\022\n\ncluster_i" + + "d\030\001 \001(\t\022\"\n\032allow_transactional_writes\030\002 " + + "\001(\010:o\352Al\n\'bigtableadmin.googleapis.com/A" + + "ppProfile\022Aprojects/{project}/instances/" + + "{instance}/appProfiles/{app_profile}B\020\n\016" + + "routing_policy\"\210\003\n\tHotTablet\022\014\n\004name\030\001 \001" + + "(\t\022;\n\ntable_name\030\002 \001(\tB\'\372A$\n\"bigtableadm" + + "in.googleapis.com/Table\0223\n\nstart_time\030\003 " + + "\001(\0132\032.google.protobuf.TimestampB\003\340A\003\0221\n\010" + + "end_time\030\004 \001(\0132\032.google.protobuf.Timesta" + + "mpB\003\340A\003\022\021\n\tstart_key\030\005 \001(\t\022\017\n\007end_key\030\006 " + + "\001(\t\022#\n\026node_cpu_usage_percent\030\007 \001(\002B\003\340A\003" + + ":\177\352A|\n&bigtableadmin.googleapis.com/HotT" + + "ablet\022Rprojects/{project}/instances/{ins" + + "tance}/clusters/{cluster}/hotTablets/{ho" + + "t_tablet}B\320\002\n\034com.google.bigtable.admin." + + "v2B\rInstanceProtoP\001Z=google.golang.org/g" + + "enproto/googleapis/bigtable/admin/v2;adm" + + "in\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036Go" + + "ogle\\Cloud\\Bigtable\\Admin\\V2\352\002\"Google::C" + + "loud::Bigtable::Admin::V2\352Ax\n!cloudkms.g" + + "oogleapis.com/CryptoKey\022Sprojects/{proje" + + "ct}/locations/{location}/keyRings/{key_r" + + "ing}/cryptoKeys/{crypto_key}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -194,7 +195,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_AutoscalingTargets_descriptor, new java.lang.String[] { - "CpuUtilizationPercent", + "CpuUtilizationPercent", "StorageUtilizationGibPerNode", }); internal_static_google_bigtable_admin_v2_AutoscalingLimits_descriptor = getDescriptor().getMessageTypes().get(2); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableMetadata.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableMetadata.java new file mode 100644 index 0000000000..b4488d0427 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableMetadata.java @@ -0,0 +1,1176 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/bigtable_table_admin.proto + +package com.google.bigtable.admin.v2; + +/** + * + * + *
+ * Metadata type for the operation returned by
+ * [google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable].
+ * 
+ * + * Protobuf type {@code google.bigtable.admin.v2.UndeleteTableMetadata} + */ +public final class UndeleteTableMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.UndeleteTableMetadata) + UndeleteTableMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use UndeleteTableMetadata.newBuilder() to construct. + private UndeleteTableMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UndeleteTableMetadata() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UndeleteTableMetadata(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UndeleteTableMetadata( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + case 18: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (startTime_ != null) { + subBuilder = startTime_.toBuilder(); + } + startTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(startTime_); + startTime_ = subBuilder.buildPartial(); + } + + break; + } + case 26: + { + com.google.protobuf.Timestamp.Builder subBuilder = null; + if (endTime_ != null) { + subBuilder = endTime_.toBuilder(); + } + endTime_ = + input.readMessage(com.google.protobuf.Timestamp.parser(), extensionRegistry); + if (subBuilder != null) { + subBuilder.mergeFrom(endTime_); + endTime_ = subBuilder.buildPartial(); + } + + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UndeleteTableMetadata.class, + com.google.bigtable.admin.v2.UndeleteTableMetadata.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * The name of the table being restored.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * The name of the table being restored.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int START_TIME_FIELD_NUMBER = 2; + private com.google.protobuf.Timestamp startTime_; + /** + * + * + *
+   * The time at which this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + @java.lang.Override + public boolean hasStartTime() { + return startTime_ != null; + } + /** + * + * + *
+   * The time at which this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getStartTime() { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + /** + * + * + *
+   * The time at which this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + return getStartTime(); + } + + public static final int END_TIME_FIELD_NUMBER = 3; + private com.google.protobuf.Timestamp endTime_; + /** + * + * + *
+   * If set, the time at which this operation finished or was cancelled.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + @java.lang.Override + public boolean hasEndTime() { + return endTime_ != null; + } + /** + * + * + *
+   * If set, the time at which this operation finished or was cancelled.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getEndTime() { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + /** + * + * + *
+   * If set, the time at which this operation finished or was cancelled.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + return getEndTime(); + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + if (startTime_ != null) { + output.writeMessage(2, getStartTime()); + } + if (endTime_ != null) { + output.writeMessage(3, getEndTime()); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + if (startTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getStartTime()); + } + if (endTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getEndTime()); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.admin.v2.UndeleteTableMetadata)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.UndeleteTableMetadata other = + (com.google.bigtable.admin.v2.UndeleteTableMetadata) obj; + + if (!getName().equals(other.getName())) return false; + if (hasStartTime() != other.hasStartTime()) return false; + if (hasStartTime()) { + if (!getStartTime().equals(other.getStartTime())) return false; + } + if (hasEndTime() != other.hasEndTime()) return false; + if (hasEndTime()) { + if (!getEndTime().equals(other.getEndTime())) return false; + } + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + if (hasStartTime()) { + hash = (37 * hash) + START_TIME_FIELD_NUMBER; + hash = (53 * hash) + getStartTime().hashCode(); + } + if (hasEndTime()) { + hash = (37 * hash) + END_TIME_FIELD_NUMBER; + hash = (53 * hash) + getEndTime().hashCode(); + } + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.admin.v2.UndeleteTableMetadata prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Metadata type for the operation returned by
+   * [google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable].
+   * 
+ * + * Protobuf type {@code google.bigtable.admin.v2.UndeleteTableMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.UndeleteTableMetadata) + com.google.bigtable.admin.v2.UndeleteTableMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UndeleteTableMetadata.class, + com.google.bigtable.admin.v2.UndeleteTableMetadata.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.UndeleteTableMetadata.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + if (startTimeBuilder_ == null) { + startTime_ = null; + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + if (endTimeBuilder_ == null) { + endTime_ = null; + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableMetadata_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UndeleteTableMetadata getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.UndeleteTableMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UndeleteTableMetadata build() { + com.google.bigtable.admin.v2.UndeleteTableMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UndeleteTableMetadata buildPartial() { + com.google.bigtable.admin.v2.UndeleteTableMetadata result = + new com.google.bigtable.admin.v2.UndeleteTableMetadata(this); + result.name_ = name_; + if (startTimeBuilder_ == null) { + result.startTime_ = startTime_; + } else { + result.startTime_ = startTimeBuilder_.build(); + } + if (endTimeBuilder_ == null) { + result.endTime_ = endTime_; + } else { + result.endTime_ = endTimeBuilder_.build(); + } + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.admin.v2.UndeleteTableMetadata) { + return mergeFrom((com.google.bigtable.admin.v2.UndeleteTableMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.UndeleteTableMetadata other) { + if (other == com.google.bigtable.admin.v2.UndeleteTableMetadata.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + if (other.hasStartTime()) { + mergeStartTime(other.getStartTime()); + } + if (other.hasEndTime()) { + mergeEndTime(other.getEndTime()); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.bigtable.admin.v2.UndeleteTableMetadata parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.bigtable.admin.v2.UndeleteTableMetadata) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the table being restored.
+     * 
+ * + * string name = 1; + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * The name of the table being restored.
+     * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * The name of the table being restored.
+     * 
+ * + * string name = 1; + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the table being restored.
+     * 
+ * + * string name = 1; + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the table being restored.
+     * 
+ * + * string name = 1; + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp startTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + startTimeBuilder_; + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + public boolean hasStartTime() { + return startTimeBuilder_ != null || startTime_ != null; + } + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + public com.google.protobuf.Timestamp getStartTime() { + if (startTimeBuilder_ == null) { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } else { + return startTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + startTime_ = value; + onChanged(); + } else { + startTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (startTimeBuilder_ == null) { + startTime_ = builderForValue.build(); + onChanged(); + } else { + startTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder mergeStartTime(com.google.protobuf.Timestamp value) { + if (startTimeBuilder_ == null) { + if (startTime_ != null) { + startTime_ = + com.google.protobuf.Timestamp.newBuilder(startTime_).mergeFrom(value).buildPartial(); + } else { + startTime_ = value; + } + onChanged(); + } else { + startTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public Builder clearStartTime() { + if (startTimeBuilder_ == null) { + startTime_ = null; + onChanged(); + } else { + startTime_ = null; + startTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { + + onChanged(); + return getStartTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { + if (startTimeBuilder_ != null) { + return startTimeBuilder_.getMessageOrBuilder(); + } else { + return startTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : startTime_; + } + } + /** + * + * + *
+     * The time at which this operation started.
+     * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getStartTimeFieldBuilder() { + if (startTimeBuilder_ == null) { + startTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getStartTime(), getParentForChildren(), isClean()); + startTime_ = null; + } + return startTimeBuilder_; + } + + private com.google.protobuf.Timestamp endTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + endTimeBuilder_; + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + public boolean hasEndTime() { + return endTimeBuilder_ != null || endTime_ != null; + } + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + public com.google.protobuf.Timestamp getEndTime() { + if (endTimeBuilder_ == null) { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } else { + return endTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + endTime_ = value; + onChanged(); + } else { + endTimeBuilder_.setMessage(value); + } + + return this; + } + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (endTimeBuilder_ == null) { + endTime_ = builderForValue.build(); + onChanged(); + } else { + endTimeBuilder_.setMessage(builderForValue.build()); + } + + return this; + } + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder mergeEndTime(com.google.protobuf.Timestamp value) { + if (endTimeBuilder_ == null) { + if (endTime_ != null) { + endTime_ = + com.google.protobuf.Timestamp.newBuilder(endTime_).mergeFrom(value).buildPartial(); + } else { + endTime_ = value; + } + onChanged(); + } else { + endTimeBuilder_.mergeFrom(value); + } + + return this; + } + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public Builder clearEndTime() { + if (endTimeBuilder_ == null) { + endTime_ = null; + onChanged(); + } else { + endTime_ = null; + endTimeBuilder_ = null; + } + + return this; + } + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { + + onChanged(); + return getEndTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + public com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder() { + if (endTimeBuilder_ != null) { + return endTimeBuilder_.getMessageOrBuilder(); + } else { + return endTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : endTime_; + } + } + /** + * + * + *
+     * If set, the time at which this operation finished or was cancelled.
+     * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getEndTimeFieldBuilder() { + if (endTimeBuilder_ == null) { + endTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getEndTime(), getParentForChildren(), isClean()); + endTime_ = null; + } + return endTimeBuilder_; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.UndeleteTableMetadata) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UndeleteTableMetadata) + private static final com.google.bigtable.admin.v2.UndeleteTableMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.UndeleteTableMetadata(); + } + + public static com.google.bigtable.admin.v2.UndeleteTableMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteTableMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeleteTableMetadata(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UndeleteTableMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableMetadataOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableMetadataOrBuilder.java new file mode 100644 index 0000000000..11ec2851d4 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableMetadataOrBuilder.java @@ -0,0 +1,120 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/bigtable_table_admin.proto + +package com.google.bigtable.admin.v2; + +public interface UndeleteTableMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.UndeleteTableMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the table being restored.
+   * 
+ * + * string name = 1; + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the table being restored.
+   * 
+ * + * string name = 1; + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * The time at which this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return Whether the startTime field is set. + */ + boolean hasStartTime(); + /** + * + * + *
+   * The time at which this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2; + * + * @return The startTime. + */ + com.google.protobuf.Timestamp getStartTime(); + /** + * + * + *
+   * The time at which this operation started.
+   * 
+ * + * .google.protobuf.Timestamp start_time = 2; + */ + com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder(); + + /** + * + * + *
+   * If set, the time at which this operation finished or was cancelled.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return Whether the endTime field is set. + */ + boolean hasEndTime(); + /** + * + * + *
+   * If set, the time at which this operation finished or was cancelled.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3; + * + * @return The endTime. + */ + com.google.protobuf.Timestamp getEndTime(); + /** + * + * + *
+   * If set, the time at which this operation finished or was cancelled.
+   * 
+ * + * .google.protobuf.Timestamp end_time = 3; + */ + com.google.protobuf.TimestampOrBuilder getEndTimeOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableRequest.java new file mode 100644 index 0000000000..8cecfc37af --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableRequest.java @@ -0,0 +1,668 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/bigtable_table_admin.proto + +package com.google.bigtable.admin.v2; + +/** + * + * + *
+ * Request message for
+ * [google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable]
+ * 
+ * + * Protobuf type {@code google.bigtable.admin.v2.UndeleteTableRequest} + */ +public final class UndeleteTableRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.UndeleteTableRequest) + UndeleteTableRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use UndeleteTableRequest.newBuilder() to construct. + private UndeleteTableRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private UndeleteTableRequest() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new UndeleteTableRequest(); + } + + @java.lang.Override + public final com.google.protobuf.UnknownFieldSet getUnknownFields() { + return this.unknownFields; + } + + private UndeleteTableRequest( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + this(); + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + com.google.protobuf.UnknownFieldSet.Builder unknownFields = + com.google.protobuf.UnknownFieldSet.newBuilder(); + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + java.lang.String s = input.readStringRequireUtf8(); + + name_ = s; + break; + } + default: + { + if (!parseUnknownField(input, unknownFields, extensionRegistry, tag)) { + done = true; + } + break; + } + } + } + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(this); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(this); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e).setUnfinishedMessage(this); + } finally { + this.unknownFields = unknownFields.build(); + makeExtensionsImmutable(); + } + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UndeleteTableRequest.class, + com.google.bigtable.admin.v2.UndeleteTableRequest.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + private volatile java.lang.Object name_; + /** + * + * + *
+   * Required. The unique name of the table to be restored.
+   * Values are of the form
+   * `projects/{project}/instances/{instance}/tables/{table}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + @java.lang.Override + public java.lang.String getName() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + return (java.lang.String) ref; + } else { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The unique name of the table to be restored.
+   * Values are of the form
+   * `projects/{project}/instances/{instance}/tables/{table}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + @java.lang.Override + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + private byte memoizedIsInitialized = -1; + + @java.lang.Override + public final boolean isInitialized() { + byte isInitialized = memoizedIsInitialized; + if (isInitialized == 1) return true; + if (isInitialized == 0) return false; + + memoizedIsInitialized = 1; + return true; + } + + @java.lang.Override + public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException { + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, name_); + } + unknownFields.writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(name_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, name_); + } + size += unknownFields.getSerializedSize(); + memoizedSize = size; + return size; + } + + @java.lang.Override + public boolean equals(final java.lang.Object obj) { + if (obj == this) { + return true; + } + if (!(obj instanceof com.google.bigtable.admin.v2.UndeleteTableRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.UndeleteTableRequest other = + (com.google.bigtable.admin.v2.UndeleteTableRequest) obj; + + if (!getName().equals(other.getName())) return false; + if (!unknownFields.equals(other.unknownFields)) return false; + return true; + } + + @java.lang.Override + public int hashCode() { + if (memoizedHashCode != 0) { + return memoizedHashCode; + } + int hash = 41; + hash = (19 * hash) + getDescriptor().hashCode(); + hash = (37 * hash) + NAME_FIELD_NUMBER; + hash = (53 * hash) + getName().hashCode(); + hash = (29 * hash) + unknownFields.hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + com.google.protobuf.ByteString data, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseDelimitedFrom( + java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException( + PARSER, input, extensionRegistry); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + com.google.protobuf.CodedInputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest parseFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException( + PARSER, input, extensionRegistry); + } + + @java.lang.Override + public Builder newBuilderForType() { + return newBuilder(); + } + + public static Builder newBuilder() { + return DEFAULT_INSTANCE.toBuilder(); + } + + public static Builder newBuilder(com.google.bigtable.admin.v2.UndeleteTableRequest prototype) { + return DEFAULT_INSTANCE.toBuilder().mergeFrom(prototype); + } + + @java.lang.Override + public Builder toBuilder() { + return this == DEFAULT_INSTANCE ? new Builder() : new Builder().mergeFrom(this); + } + + @java.lang.Override + protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + Builder builder = new Builder(parent); + return builder; + } + /** + * + * + *
+   * Request message for
+   * [google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable]
+   * 
+ * + * Protobuf type {@code google.bigtable.admin.v2.UndeleteTableRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.UndeleteTableRequest) + com.google.bigtable.admin.v2.UndeleteTableRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.UndeleteTableRequest.class, + com.google.bigtable.admin.v2.UndeleteTableRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.UndeleteTableRequest.newBuilder() + private Builder() { + maybeForceBuilderInitialization(); + } + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + maybeForceBuilderInitialization(); + } + + private void maybeForceBuilderInitialization() { + if (com.google.protobuf.GeneratedMessageV3.alwaysUseFieldBuilders) {} + } + + @java.lang.Override + public Builder clear() { + super.clear(); + name_ = ""; + + return this; + } + + @java.lang.Override + public com.google.protobuf.Descriptors.Descriptor getDescriptorForType() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_UndeleteTableRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UndeleteTableRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.UndeleteTableRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UndeleteTableRequest build() { + com.google.bigtable.admin.v2.UndeleteTableRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UndeleteTableRequest buildPartial() { + com.google.bigtable.admin.v2.UndeleteTableRequest result = + new com.google.bigtable.admin.v2.UndeleteTableRequest(this); + result.name_ = name_; + onBuilt(); + return result; + } + + @java.lang.Override + public Builder clone() { + return super.clone(); + } + + @java.lang.Override + public Builder setField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.setField(field, value); + } + + @java.lang.Override + public Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) { + return super.clearField(field); + } + + @java.lang.Override + public Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) { + return super.clearOneof(oneof); + } + + @java.lang.Override + public Builder setRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, int index, java.lang.Object value) { + return super.setRepeatedField(field, index, value); + } + + @java.lang.Override + public Builder addRepeatedField( + com.google.protobuf.Descriptors.FieldDescriptor field, java.lang.Object value) { + return super.addRepeatedField(field, value); + } + + @java.lang.Override + public Builder mergeFrom(com.google.protobuf.Message other) { + if (other instanceof com.google.bigtable.admin.v2.UndeleteTableRequest) { + return mergeFrom((com.google.bigtable.admin.v2.UndeleteTableRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.UndeleteTableRequest other) { + if (other == com.google.bigtable.admin.v2.UndeleteTableRequest.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + onChanged(); + } + this.mergeUnknownFields(other.unknownFields); + onChanged(); + return this; + } + + @java.lang.Override + public final boolean isInitialized() { + return true; + } + + @java.lang.Override + public Builder mergeFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws java.io.IOException { + com.google.bigtable.admin.v2.UndeleteTableRequest parsedMessage = null; + try { + parsedMessage = PARSER.parsePartialFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + parsedMessage = + (com.google.bigtable.admin.v2.UndeleteTableRequest) e.getUnfinishedMessage(); + throw e.unwrapIOException(); + } finally { + if (parsedMessage != null) { + mergeFrom(parsedMessage); + } + } + return this; + } + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * Required. The unique name of the table to be restored.
+     * Values are of the form
+     * `projects/{project}/instances/{instance}/tables/{table}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + public java.lang.String getName() { + java.lang.Object ref = name_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + name_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The unique name of the table to be restored.
+     * Values are of the form
+     * `projects/{project}/instances/{instance}/tables/{table}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + public com.google.protobuf.ByteString getNameBytes() { + java.lang.Object ref = name_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + name_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The unique name of the table to be restored.
+     * Values are of the form
+     * `projects/{project}/instances/{instance}/tables/{table}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The name to set. + * @return This builder for chaining. + */ + public Builder setName(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + + name_ = value; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The unique name of the table to be restored.
+     * Values are of the form
+     * `projects/{project}/instances/{instance}/tables/{table}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearName() { + + name_ = getDefaultInstance().getName(); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The unique name of the table to be restored.
+     * Values are of the form
+     * `projects/{project}/instances/{instance}/tables/{table}`.
+     * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for name to set. + * @return This builder for chaining. + */ + public Builder setNameBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + + name_ = value; + onChanged(); + return this; + } + + @java.lang.Override + public final Builder setUnknownFields(final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.setUnknownFields(unknownFields); + } + + @java.lang.Override + public final Builder mergeUnknownFields( + final com.google.protobuf.UnknownFieldSet unknownFields) { + return super.mergeUnknownFields(unknownFields); + } + + // @@protoc_insertion_point(builder_scope:google.bigtable.admin.v2.UndeleteTableRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.UndeleteTableRequest) + private static final com.google.bigtable.admin.v2.UndeleteTableRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.UndeleteTableRequest(); + } + + public static com.google.bigtable.admin.v2.UndeleteTableRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public UndeleteTableRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + return new UndeleteTableRequest(input, extensionRegistry); + } + }; + + public static com.google.protobuf.Parser parser() { + return PARSER; + } + + @java.lang.Override + public com.google.protobuf.Parser getParserForType() { + return PARSER; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.UndeleteTableRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableRequestOrBuilder.java new file mode 100644 index 0000000000..15fe8edcae --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UndeleteTableRequestOrBuilder.java @@ -0,0 +1,58 @@ +/* + * Copyright 2020 Google LLC + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ +// Generated by the protocol buffer compiler. DO NOT EDIT! +// source: google/bigtable/admin/v2/bigtable_table_admin.proto + +package com.google.bigtable.admin.v2; + +public interface UndeleteTableRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.UndeleteTableRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The unique name of the table to be restored.
+   * Values are of the form
+   * `projects/{project}/instances/{instance}/tables/{table}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * Required. The unique name of the table to be restored.
+   * Values are of the form
+   * `projects/{project}/instances/{instance}/tables/{table}`.
+   * 
+ * + * + * string name = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto index 88bd870474..92b9f690b2 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/bigtable_table_admin.proto @@ -1,4 +1,4 @@ -// Copyright 2020 Google LLC +// Copyright 2022 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -108,6 +108,19 @@ service BigtableTableAdmin { option (google.api.method_signature) = "name"; } + // Restores a specified table which was accidentally deleted. + rpc UndeleteTable(UndeleteTableRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{name=projects/*/instances/*/tables/*}:undelete" + body: "*" + }; + option (google.api.method_signature) = "name"; + option (google.longrunning.operation_info) = { + response_type: "Table" + metadata_type: "UndeleteTableMetadata" + }; + } + // 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 @@ -580,6 +593,33 @@ message DeleteTableRequest { ]; } +// Request message for +// [google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable] +message UndeleteTableRequest { + // Required. The unique name of the table to be restored. + // Values are of the form + // `projects/{project}/instances/{instance}/tables/{table}`. + string name = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Table" + } + ]; +} + +// Metadata type for the operation returned by +// [google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable][google.bigtable.admin.v2.BigtableTableAdmin.UndeleteTable]. +message UndeleteTableMetadata { + // The name of the table being restored. + string name = 1; + + // The time at which this operation started. + google.protobuf.Timestamp start_time = 2; + + // If set, the time at which this operation finished or was cancelled. + google.protobuf.Timestamp end_time = 3; +} + // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies][google.bigtable.admin.v2.BigtableTableAdmin.ModifyColumnFamilies] message ModifyColumnFamiliesRequest { @@ -588,7 +628,7 @@ message ModifyColumnFamiliesRequest { // The ID of the column family to be modified. string id = 1; - // Column familiy modifications. + // Column family modifications. oneof mod { // Create a new column family with the specified schema, or fail if // one already exists with the given ID. diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto index bbbc5bfaa6..4dbbbbbfc4 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/instance.proto @@ -115,6 +115,14 @@ message AutoscalingTargets { // 100 (total utilization), and is limited between 10 and 80, otherwise it // will return INVALID_ARGUMENT error. int32 cpu_utilization_percent = 2; + + // The storage utilization that the Autoscaler should be trying to achieve. + // This number is limited between 2560 (2.5TiB) and 5120 (5TiB) for a SSD + // cluster and between 8192 (8TiB) and 16384 (16TiB) for an HDD cluster; + // otherwise it will return INVALID_ARGUMENT error. If this value is set to 0, + // it will be treated as if it were set to the default value: 2560 for SSD, + // 8192 for HDD. + int32 storage_utilization_gib_per_node = 3; } // Limits for the number of nodes a Cluster can autoscale up/down to.