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 e41f437d86..5271632246 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 @@ -33,6 +33,8 @@ import com.google.bigtable.admin.v2.CheckConsistencyRequest; import com.google.bigtable.admin.v2.CheckConsistencyResponse; import com.google.bigtable.admin.v2.ClusterName; +import com.google.bigtable.admin.v2.CopyBackupMetadata; +import com.google.bigtable.admin.v2.CopyBackupRequest; import com.google.bigtable.admin.v2.CreateBackupMetadata; import com.google.bigtable.admin.v2.CreateBackupRequest; import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata; @@ -80,6 +82,7 @@ import com.google.longrunning.OperationsClient; import com.google.protobuf.Empty; import com.google.protobuf.FieldMask; +import com.google.protobuf.Timestamp; import java.io.IOException; import java.util.List; import java.util.concurrent.TimeUnit; @@ -2923,7 +2926,8 @@ public final UnaryCallable getBackupCallable() { * * @param backup Required. The backup to update. `backup.name`, and the fields to be updated as * specified by `update_mask` are required. Other fields are ignored. Update is only supported - * for the following fields: * `backup.expire_time`. + * for the following fields: + *

* `backup.expire_time`. * @param updateMask Required. A mask specifying which fields (e.g. `expire_time`) in the Backup * resource should be updated. This mask is relative to the Backup resource, not to the * request message. The field mask must always be specified; this prevents any future fields @@ -3293,8 +3297,7 @@ public final UnaryCallable listBackupsC // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new table by restoring from a completed backup. The new table must be in the same - * project as the instance containing the backup. The returned table [long-running + * Create a new table by restoring from a completed backup. The returned table [long-running * operation][google.longrunning.Operation] can be used to track the progress of the operation, * and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is * [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The @@ -3330,8 +3333,7 @@ public final OperationFuture restoreTableAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new table by restoring from a completed backup. The new table must be in the same - * project as the instance containing the backup. The returned table [long-running + * Create a new table by restoring from a completed backup. The returned table [long-running * operation][google.longrunning.Operation] can be used to track the progress of the operation, * and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is * [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The @@ -3367,8 +3369,7 @@ public final OperationFuture restoreTableAsync( // AUTO-GENERATED DOCUMENTATION AND METHOD. /** - * Create a new table by restoring from a completed backup. The new table must be in the same - * project as the instance containing the backup. The returned table [long-running + * Create a new table by restoring from a completed backup. The returned table [long-running * operation][google.longrunning.Operation] can be used to track the progress of the operation, * and to cancel it. The [metadata][google.longrunning.Operation.metadata] field type is * [RestoreTableMetadata][google.bigtable.admin.RestoreTableMetadata]. The @@ -3401,6 +3402,340 @@ public final UnaryCallable restoreTableCallable( return stub.restoreTableCallable(); } + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the + * destination instance and project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
+   *   String backupId = "backupId2121930365";
+   *   BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
+   *   Timestamp expireTime = Timestamp.newBuilder().build();
+   *   Backup response =
+   *       baseBigtableTableAdminClient
+   *           .copyBackupAsync(parent, backupId, sourceBackup, expireTime)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The name of the destination cluster that will contain the backup copy. + * The cluster must already exists. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @param backupId Required. The id of the new backup. The `backup_id` along with `parent` are + * combined as {parent}/backups/{backup_id} to create the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. This + * string must be between 1 and 50 characters in length and match the regex + * [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * @param sourceBackup Required. The source backup to be copied from. The source backup needs to + * be in READY state for it to be copied. Copying a copied backup is not allowed. Once + * CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration + * until CopyBackup is finished. Values are of the form: + * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`. + * @param expireTime Required. Required. The expiration time of the copied backup with microsecond + * granularity that must be at least 6 hours and at most 30 days from the time the request is + * received. Once the `expire_time` has passed, Cloud Bigtable will delete the backup and free + * the resources used by the backup. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture copyBackupAsync( + ClusterName parent, String backupId, BackupName sourceBackup, Timestamp expireTime) { + CopyBackupRequest request = + CopyBackupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBackupId(backupId) + .setSourceBackup(sourceBackup == null ? null : sourceBackup.toString()) + .setExpireTime(expireTime) + .build(); + return copyBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the + * destination instance and project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]");
+   *   String backupId = "backupId2121930365";
+   *   String sourceBackup =
+   *       BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString();
+   *   Timestamp expireTime = Timestamp.newBuilder().build();
+   *   Backup response =
+   *       baseBigtableTableAdminClient
+   *           .copyBackupAsync(parent, backupId, sourceBackup, expireTime)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The name of the destination cluster that will contain the backup copy. + * The cluster must already exists. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @param backupId Required. The id of the new backup. The `backup_id` along with `parent` are + * combined as {parent}/backups/{backup_id} to create the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. This + * string must be between 1 and 50 characters in length and match the regex + * [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * @param sourceBackup Required. The source backup to be copied from. The source backup needs to + * be in READY state for it to be copied. Copying a copied backup is not allowed. Once + * CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration + * until CopyBackup is finished. Values are of the form: + * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`. + * @param expireTime Required. Required. The expiration time of the copied backup with microsecond + * granularity that must be at least 6 hours and at most 30 days from the time the request is + * received. Once the `expire_time` has passed, Cloud Bigtable will delete the backup and free + * the resources used by the backup. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture copyBackupAsync( + ClusterName parent, String backupId, String sourceBackup, Timestamp expireTime) { + CopyBackupRequest request = + CopyBackupRequest.newBuilder() + .setParent(parent == null ? null : parent.toString()) + .setBackupId(backupId) + .setSourceBackup(sourceBackup) + .setExpireTime(expireTime) + .build(); + return copyBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the + * destination instance and project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   String parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
+   *   String backupId = "backupId2121930365";
+   *   BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]");
+   *   Timestamp expireTime = Timestamp.newBuilder().build();
+   *   Backup response =
+   *       baseBigtableTableAdminClient
+   *           .copyBackupAsync(parent, backupId, sourceBackup, expireTime)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The name of the destination cluster that will contain the backup copy. + * The cluster must already exists. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @param backupId Required. The id of the new backup. The `backup_id` along with `parent` are + * combined as {parent}/backups/{backup_id} to create the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. This + * string must be between 1 and 50 characters in length and match the regex + * [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * @param sourceBackup Required. The source backup to be copied from. The source backup needs to + * be in READY state for it to be copied. Copying a copied backup is not allowed. Once + * CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration + * until CopyBackup is finished. Values are of the form: + * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`. + * @param expireTime Required. Required. The expiration time of the copied backup with microsecond + * granularity that must be at least 6 hours and at most 30 days from the time the request is + * received. Once the `expire_time` has passed, Cloud Bigtable will delete the backup and free + * the resources used by the backup. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture copyBackupAsync( + String parent, String backupId, BackupName sourceBackup, Timestamp expireTime) { + CopyBackupRequest request = + CopyBackupRequest.newBuilder() + .setParent(parent) + .setBackupId(backupId) + .setSourceBackup(sourceBackup == null ? null : sourceBackup.toString()) + .setExpireTime(expireTime) + .build(); + return copyBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the + * destination instance and project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   String parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString();
+   *   String backupId = "backupId2121930365";
+   *   String sourceBackup =
+   *       BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString();
+   *   Timestamp expireTime = Timestamp.newBuilder().build();
+   *   Backup response =
+   *       baseBigtableTableAdminClient
+   *           .copyBackupAsync(parent, backupId, sourceBackup, expireTime)
+   *           .get();
+   * }
+   * }
+ * + * @param parent Required. The name of the destination cluster that will contain the backup copy. + * The cluster must already exists. Values are of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}`. + * @param backupId Required. The id of the new backup. The `backup_id` along with `parent` are + * combined as {parent}/backups/{backup_id} to create the full backup name, of the form: + * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. This + * string must be between 1 and 50 characters in length and match the regex + * [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + * @param sourceBackup Required. The source backup to be copied from. The source backup needs to + * be in READY state for it to be copied. Copying a copied backup is not allowed. Once + * CopyBackup is in progress, the source backup cannot be deleted or cleaned up on expiration + * until CopyBackup is finished. Values are of the form: + * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`. + * @param expireTime Required. Required. The expiration time of the copied backup with microsecond + * granularity that must be at least 6 hours and at most 30 days from the time the request is + * received. Once the `expire_time` has passed, Cloud Bigtable will delete the backup and free + * the resources used by the backup. + * @throws com.google.api.gax.rpc.ApiException if the remote call fails + */ + public final OperationFuture copyBackupAsync( + String parent, String backupId, String sourceBackup, Timestamp expireTime) { + CopyBackupRequest request = + CopyBackupRequest.newBuilder() + .setParent(parent) + .setBackupId(backupId) + .setSourceBackup(sourceBackup) + .setExpireTime(expireTime) + .build(); + return copyBackupAsync(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the + * destination instance and project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   CopyBackupRequest request =
+   *       CopyBackupRequest.newBuilder()
+   *           .setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setSourceBackup(
+   *               BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
+   *           .setExpireTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   Backup response = baseBigtableTableAdminClient.copyBackupAsync(request).get();
+   * }
+   * }
+ * + * @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 copyBackupAsync( + CopyBackupRequest request) { + return copyBackupOperationCallable().futureCall(request); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the + * destination instance and project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   CopyBackupRequest request =
+   *       CopyBackupRequest.newBuilder()
+   *           .setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setSourceBackup(
+   *               BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
+   *           .setExpireTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   OperationFuture future =
+   *       baseBigtableTableAdminClient.copyBackupOperationCallable().futureCall(request);
+   *   // Do something.
+   *   Backup response = future.get();
+   * }
+   * }
+ */ + public final OperationCallable + copyBackupOperationCallable() { + return stub.copyBackupOperationCallable(); + } + + // AUTO-GENERATED DOCUMENTATION AND METHOD. + /** + * Copy a Cloud Bigtable backup to a new backup in the destination cluster located in the + * destination instance and project. + * + *

Sample code: + * + *

{@code
+   * // This snippet has been automatically generated and should be regarded as a code template only.
+   * // It will require modifications to work:
+   * // - It may require correct/in-range values for request initialization.
+   * // - It may require specifying regional endpoints when creating the service client as shown in
+   * // https://cloud.google.com/java/docs/setup#configure_endpoints_for_the_client_library
+   * try (BaseBigtableTableAdminClient baseBigtableTableAdminClient =
+   *     BaseBigtableTableAdminClient.create()) {
+   *   CopyBackupRequest request =
+   *       CopyBackupRequest.newBuilder()
+   *           .setParent(ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]").toString())
+   *           .setBackupId("backupId2121930365")
+   *           .setSourceBackup(
+   *               BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString())
+   *           .setExpireTime(Timestamp.newBuilder().build())
+   *           .build();
+   *   ApiFuture future =
+   *       baseBigtableTableAdminClient.copyBackupCallable().futureCall(request);
+   *   // Do something.
+   *   Operation response = future.get();
+   * }
+   * }
+ */ + public final UnaryCallable copyBackupCallable() { + return stub.copyBackupCallable(); + } + // AUTO-GENERATED DOCUMENTATION AND METHOD. /** * Gets the access control policy for a Table or Backup resource. Returns an empty policy if the 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 b4363a2d0b..3b1ae503f1 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 @@ -36,6 +36,8 @@ import com.google.bigtable.admin.v2.Backup; import com.google.bigtable.admin.v2.CheckConsistencyRequest; import com.google.bigtable.admin.v2.CheckConsistencyResponse; +import com.google.bigtable.admin.v2.CopyBackupMetadata; +import com.google.bigtable.admin.v2.CopyBackupRequest; import com.google.bigtable.admin.v2.CreateBackupMetadata; import com.google.bigtable.admin.v2.CreateBackupRequest; import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata; @@ -235,6 +237,17 @@ public UnaryCallSettings restoreTableSettings() return ((BigtableTableAdminStubSettings) getStubSettings()).restoreTableOperationSettings(); } + /** Returns the object with the settings used for calls to copyBackup. */ + public UnaryCallSettings copyBackupSettings() { + return ((BigtableTableAdminStubSettings) getStubSettings()).copyBackupSettings(); + } + + /** Returns the object with the settings used for calls to copyBackup. */ + public OperationCallSettings + copyBackupOperationSettings() { + return ((BigtableTableAdminStubSettings) getStubSettings()).copyBackupOperationSettings(); + } + /** Returns the object with the settings used for calls to getIamPolicy. */ public UnaryCallSettings getIamPolicySettings() { return ((BigtableTableAdminStubSettings) getStubSettings()).getIamPolicySettings(); @@ -501,6 +514,17 @@ public UnaryCallSettings.Builder restoreTableSet return getStubSettingsBuilder().restoreTableOperationSettings(); } + /** Returns the builder for the settings used for calls to copyBackup. */ + public UnaryCallSettings.Builder copyBackupSettings() { + return getStubSettingsBuilder().copyBackupSettings(); + } + + /** Returns the builder for the settings used for calls to copyBackup. */ + public OperationCallSettings.Builder + copyBackupOperationSettings() { + return getStubSettingsBuilder().copyBackupOperationSettings(); + } + /** Returns the builder for the settings used for calls to getIamPolicy. */ public UnaryCallSettings.Builder getIamPolicySettings() { return getStubSettingsBuilder().getIamPolicySettings(); 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 4d3a71155a..4f0c1b49c8 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 @@ -124,6 +124,8 @@ public String toString() { .add("undeleteTableOperationSettings", stubSettings.undeleteTableOperationSettings()) .add("updateTableSettings", stubSettings.updateTableSettings()) .add("updateTableOperationSettings", stubSettings.updateTableOperationSettings()) + .add("copyBackupSettings", stubSettings.copyBackupSettings()) + .add("copyBackupOperationSettings", stubSettings.copyBackupOperationSettings()) .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 bda1f8b016..aca81585e0 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 @@ -85,6 +85,9 @@ "CheckConsistency": { "methods": ["checkConsistency", "checkConsistency", "checkConsistency", "checkConsistencyCallable"] }, + "CopyBackup": { + "methods": ["copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupAsync", "copyBackupOperationCallable", "copyBackupCallable"] + }, "CreateBackup": { "methods": ["createBackupAsync", "createBackupAsync", "createBackupAsync", "createBackupOperationCallable", "createBackupCallable"] }, 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 3d360eb240..4b80937e54 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 @@ -27,6 +27,8 @@ import com.google.bigtable.admin.v2.Backup; import com.google.bigtable.admin.v2.CheckConsistencyRequest; import com.google.bigtable.admin.v2.CheckConsistencyResponse; +import com.google.bigtable.admin.v2.CopyBackupMetadata; +import com.google.bigtable.admin.v2.CopyBackupRequest; import com.google.bigtable.admin.v2.CreateBackupMetadata; import com.google.bigtable.admin.v2.CreateBackupRequest; import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata; @@ -210,6 +212,15 @@ public UnaryCallable restoreTableCallable() { throw new UnsupportedOperationException("Not implemented: restoreTableCallable()"); } + public OperationCallable + copyBackupOperationCallable() { + throw new UnsupportedOperationException("Not implemented: copyBackupOperationCallable()"); + } + + public UnaryCallable copyBackupCallable() { + throw new UnsupportedOperationException("Not implemented: copyBackupCallable()"); + } + public UnaryCallable getIamPolicyCallable() { throw new UnsupportedOperationException("Not implemented: getIamPolicyCallable()"); } 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 9da7192c5f..7abc6f4723 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 @@ -49,6 +49,8 @@ import com.google.bigtable.admin.v2.Backup; import com.google.bigtable.admin.v2.CheckConsistencyRequest; import com.google.bigtable.admin.v2.CheckConsistencyResponse; +import com.google.bigtable.admin.v2.CopyBackupMetadata; +import com.google.bigtable.admin.v2.CopyBackupRequest; import com.google.bigtable.admin.v2.CreateBackupMetadata; import com.google.bigtable.admin.v2.CreateBackupRequest; import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata; @@ -189,6 +191,9 @@ public class BigtableTableAdminStubSettings extends StubSettings restoreTableSettings; private final OperationCallSettings restoreTableOperationSettings; + private final UnaryCallSettings copyBackupSettings; + private final OperationCallSettings + copyBackupOperationSettings; private final UnaryCallSettings getIamPolicySettings; private final UnaryCallSettings setIamPolicySettings; private final UnaryCallSettings @@ -501,6 +506,17 @@ public UnaryCallSettings restoreTableSettings() return restoreTableOperationSettings; } + /** Returns the object with the settings used for calls to copyBackup. */ + public UnaryCallSettings copyBackupSettings() { + return copyBackupSettings; + } + + /** Returns the object with the settings used for calls to copyBackup. */ + public OperationCallSettings + copyBackupOperationSettings() { + return copyBackupOperationSettings; + } + /** Returns the object with the settings used for calls to getIamPolicy. */ public UnaryCallSettings getIamPolicySettings() { return getIamPolicySettings; @@ -620,6 +636,8 @@ protected BigtableTableAdminStubSettings(Builder settingsBuilder) throws IOExcep listBackupsSettings = settingsBuilder.listBackupsSettings().build(); restoreTableSettings = settingsBuilder.restoreTableSettings().build(); restoreTableOperationSettings = settingsBuilder.restoreTableOperationSettings().build(); + copyBackupSettings = settingsBuilder.copyBackupSettings().build(); + copyBackupOperationSettings = settingsBuilder.copyBackupOperationSettings().build(); getIamPolicySettings = settingsBuilder.getIamPolicySettings().build(); setIamPolicySettings = settingsBuilder.setIamPolicySettings().build(); testIamPermissionsSettings = settingsBuilder.testIamPermissionsSettings().build(); @@ -675,6 +693,9 @@ public static class Builder private final UnaryCallSettings.Builder restoreTableSettings; private final OperationCallSettings.Builder restoreTableOperationSettings; + private final UnaryCallSettings.Builder copyBackupSettings; + private final OperationCallSettings.Builder + copyBackupOperationSettings; private final UnaryCallSettings.Builder getIamPolicySettings; private final UnaryCallSettings.Builder setIamPolicySettings; private final UnaryCallSettings.Builder @@ -795,6 +816,8 @@ protected Builder(ClientContext clientContext) { listBackupsSettings = PagedCallSettings.newBuilder(LIST_BACKUPS_PAGE_STR_FACT); restoreTableSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); restoreTableOperationSettings = OperationCallSettings.newBuilder(); + copyBackupSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); + copyBackupOperationSettings = OperationCallSettings.newBuilder(); getIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); setIamPolicySettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); testIamPermissionsSettings = UnaryCallSettings.newUnaryCallSettingsBuilder(); @@ -822,6 +845,7 @@ protected Builder(ClientContext clientContext) { deleteBackupSettings, listBackupsSettings, restoreTableSettings, + copyBackupSettings, getIamPolicySettings, setIamPolicySettings, testIamPermissionsSettings); @@ -859,6 +883,8 @@ protected Builder(BigtableTableAdminStubSettings settings) { listBackupsSettings = settings.listBackupsSettings.toBuilder(); restoreTableSettings = settings.restoreTableSettings.toBuilder(); restoreTableOperationSettings = settings.restoreTableOperationSettings.toBuilder(); + copyBackupSettings = settings.copyBackupSettings.toBuilder(); + copyBackupOperationSettings = settings.copyBackupOperationSettings.toBuilder(); getIamPolicySettings = settings.getIamPolicySettings.toBuilder(); setIamPolicySettings = settings.setIamPolicySettings.toBuilder(); testIamPermissionsSettings = settings.testIamPermissionsSettings.toBuilder(); @@ -886,6 +912,7 @@ protected Builder(BigtableTableAdminStubSettings settings) { deleteBackupSettings, listBackupsSettings, restoreTableSettings, + copyBackupSettings, getIamPolicySettings, setIamPolicySettings, testIamPermissionsSettings); @@ -1010,6 +1037,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 + .copyBackupSettings() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")); + builder .getIamPolicySettings() .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("retry_policy_3_codes")) @@ -1169,6 +1201,29 @@ private static Builder initDefaults(Builder builder) { .setTotalTimeout(Duration.ofMillis(600000L)) .build())); + builder + .copyBackupOperationSettings() + .setInitialCallSettings( + UnaryCallSettings.newUnaryCallSettingsBuilder() + .setRetryableCodes(RETRYABLE_CODE_DEFINITIONS.get("no_retry_codes")) + .setRetrySettings(RETRY_PARAM_DEFINITIONS.get("no_retry_params")) + .build()) + .setResponseTransformer( + ProtoOperationTransformers.ResponseTransformer.create(Backup.class)) + .setMetadataTransformer( + ProtoOperationTransformers.MetadataTransformer.create(CopyBackupMetadata.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())); + return builder; } @@ -1351,6 +1406,19 @@ public UnaryCallSettings.Builder restoreTableSet return restoreTableOperationSettings; } + /** Returns the builder for the settings used for calls to copyBackup. */ + public UnaryCallSettings.Builder copyBackupSettings() { + return copyBackupSettings; + } + + /** Returns the builder for the settings used for calls to copyBackup. */ + @BetaApi( + "The surface for use by generated code is not stable yet and may change in the future.") + public OperationCallSettings.Builder + copyBackupOperationSettings() { + return copyBackupOperationSettings; + } + /** Returns the builder for the settings used for calls to getIamPolicy. */ public UnaryCallSettings.Builder getIamPolicySettings() { return getIamPolicySettings; 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 c3779232df..6c24bc9fbc 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 @@ -32,6 +32,8 @@ import com.google.bigtable.admin.v2.Backup; import com.google.bigtable.admin.v2.CheckConsistencyRequest; import com.google.bigtable.admin.v2.CheckConsistencyResponse; +import com.google.bigtable.admin.v2.CopyBackupMetadata; +import com.google.bigtable.admin.v2.CopyBackupRequest; import com.google.bigtable.admin.v2.CreateBackupMetadata; import com.google.bigtable.admin.v2.CreateBackupRequest; import com.google.bigtable.admin.v2.CreateTableFromSnapshotMetadata; @@ -279,6 +281,14 @@ public class GrpcBigtableTableAdminStub extends BigtableTableAdminStub { .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) .build(); + private static final MethodDescriptor copyBackupMethodDescriptor = + MethodDescriptor.newBuilder() + .setType(MethodDescriptor.MethodType.UNARY) + .setFullMethodName("google.bigtable.admin.v2.BigtableTableAdmin/CopyBackup") + .setRequestMarshaller(ProtoUtils.marshaller(CopyBackupRequest.getDefaultInstance())) + .setResponseMarshaller(ProtoUtils.marshaller(Operation.getDefaultInstance())) + .build(); + private static final MethodDescriptor getIamPolicyMethodDescriptor = MethodDescriptor.newBuilder() .setType(MethodDescriptor.MethodType.UNARY) @@ -348,6 +358,9 @@ public class GrpcBigtableTableAdminStub extends BigtableTableAdminStub { private final UnaryCallable restoreTableCallable; private final OperationCallable restoreTableOperationCallable; + private final UnaryCallable copyBackupCallable; + private final OperationCallable + copyBackupOperationCallable; private final UnaryCallable getIamPolicyCallable; private final UnaryCallable setIamPolicyCallable; private final UnaryCallable @@ -611,6 +624,16 @@ protected GrpcBigtableTableAdminStub( return builder.build(); }) .build(); + GrpcCallSettings copyBackupTransportSettings = + GrpcCallSettings.newBuilder() + .setMethodDescriptor(copyBackupMethodDescriptor) + .setParamsExtractor( + request -> { + RequestParamsBuilder builder = RequestParamsBuilder.create(); + builder.add("parent", String.valueOf(request.getParent())); + return builder.build(); + }) + .build(); GrpcCallSettings getIamPolicyTransportSettings = GrpcCallSettings.newBuilder() .setMethodDescriptor(getIamPolicyMethodDescriptor) @@ -757,6 +780,15 @@ protected GrpcBigtableTableAdminStub( settings.restoreTableOperationSettings(), clientContext, operationsStub); + this.copyBackupCallable = + callableFactory.createUnaryCallable( + copyBackupTransportSettings, settings.copyBackupSettings(), clientContext); + this.copyBackupOperationCallable = + callableFactory.createOperationCallable( + copyBackupTransportSettings, + settings.copyBackupOperationSettings(), + clientContext, + operationsStub); this.getIamPolicyCallable = callableFactory.createUnaryCallable( getIamPolicyTransportSettings, settings.getIamPolicySettings(), clientContext); @@ -937,6 +969,17 @@ public UnaryCallable restoreTableCallable() { return restoreTableOperationCallable; } + @Override + public UnaryCallable copyBackupCallable() { + return copyBackupCallable; + } + + @Override + public OperationCallable + copyBackupOperationCallable() { + return copyBackupOperationCallable; + } + @Override public UnaryCallable getIamPolicyCallable() { return getIamPolicyCallable; diff --git a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json index 716a3df26c..c4e7d8a86e 100644 --- a/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json +++ b/google-cloud-bigtable/src/main/resources/META-INF/native-image/com.google.cloud.bigtable.admin.v2/reflect-config.json @@ -665,6 +665,42 @@ "allDeclaredClasses": true, "allPublicClasses": true }, + { + "name": "com.google.bigtable.admin.v2.CopyBackupMetadata", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CopyBackupMetadata$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CopyBackupRequest", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, + { + "name": "com.google.bigtable.admin.v2.CopyBackupRequest$Builder", + "queryAllDeclaredConstructors": true, + "queryAllPublicConstructors": true, + "queryAllDeclaredMethods": true, + "allPublicMethods": true, + "allDeclaredClasses": true, + "allPublicClasses": true + }, { "name": "com.google.bigtable.admin.v2.CreateAppProfileRequest", "queryAllDeclaredConstructors": true, 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 3fd61b52d6..2b49b476da 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 @@ -36,6 +36,7 @@ import com.google.bigtable.admin.v2.CheckConsistencyResponse; import com.google.bigtable.admin.v2.ClusterName; import com.google.bigtable.admin.v2.ColumnFamily; +import com.google.bigtable.admin.v2.CopyBackupRequest; import com.google.bigtable.admin.v2.CreateBackupRequest; import com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest; import com.google.bigtable.admin.v2.CreateTableRequest; @@ -1663,6 +1664,7 @@ public void createBackupTest() throws Exception { Backup.newBuilder() .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") .setExpireTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) @@ -1721,6 +1723,7 @@ public void createBackupTest2() throws Exception { Backup.newBuilder() .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") .setExpireTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) @@ -1779,6 +1782,7 @@ public void getBackupTest() throws Exception { Backup.newBuilder() .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") .setExpireTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) @@ -1823,6 +1827,7 @@ public void getBackupTest2() throws Exception { Backup.newBuilder() .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") .setExpireTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) @@ -1867,6 +1872,7 @@ public void updateBackupTest() throws Exception { Backup.newBuilder() .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") .setExpireTime(Timestamp.newBuilder().build()) .setStartTime(Timestamp.newBuilder().build()) .setEndTime(Timestamp.newBuilder().build()) @@ -2125,6 +2131,258 @@ public void restoreTableExceptionTest() throws Exception { } } + @Test + public void copyBackupTest() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) + .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") + .setExpireTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableTableAdmin.addResponse(resultOperation); + + ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableTableAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyBackupRequest actualRequest = ((CopyBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(sourceBackup.toString(), actualRequest.getSourceBackup()); + Assert.assertEquals(expireTime, actualRequest.getExpireTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyBackupExceptionTest() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableTableAdmin.addException(exception); + + try { + ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).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 copyBackupTest2() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) + .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") + .setExpireTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableTableAdmin.addResponse(resultOperation); + + ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableTableAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyBackupRequest actualRequest = ((CopyBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent.toString(), actualRequest.getParent()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(sourceBackup, actualRequest.getSourceBackup()); + Assert.assertEquals(expireTime, actualRequest.getExpireTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyBackupExceptionTest2() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableTableAdmin.addException(exception); + + try { + ClusterName parent = ClusterName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]"); + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).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 copyBackupTest3() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) + .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") + .setExpireTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableTableAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableTableAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyBackupRequest actualRequest = ((CopyBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(sourceBackup.toString(), actualRequest.getSourceBackup()); + Assert.assertEquals(expireTime, actualRequest.getExpireTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyBackupExceptionTest3() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableTableAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String backupId = "backupId2121930365"; + BackupName sourceBackup = BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]"); + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).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 copyBackupTest4() throws Exception { + Backup expectedResponse = + Backup.newBuilder() + .setName(BackupName.of("[PROJECT]", "[INSTANCE]", "[CLUSTER]", "[BACKUP]").toString()) + .setSourceTable("sourceTable-95372173") + .setSourceBackup("sourceBackup823134653") + .setExpireTime(Timestamp.newBuilder().build()) + .setStartTime(Timestamp.newBuilder().build()) + .setEndTime(Timestamp.newBuilder().build()) + .setSizeBytes(-1796325715) + .setEncryptionInfo(EncryptionInfo.newBuilder().build()) + .build(); + Operation resultOperation = + Operation.newBuilder() + .setName("copyBackupTest") + .setDone(true) + .setResponse(Any.pack(expectedResponse)) + .build(); + mockBigtableTableAdmin.addResponse(resultOperation); + + String parent = "parent-995424086"; + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + + Backup actualResponse = + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).get(); + Assert.assertEquals(expectedResponse, actualResponse); + + List actualRequests = mockBigtableTableAdmin.getRequests(); + Assert.assertEquals(1, actualRequests.size()); + CopyBackupRequest actualRequest = ((CopyBackupRequest) actualRequests.get(0)); + + Assert.assertEquals(parent, actualRequest.getParent()); + Assert.assertEquals(backupId, actualRequest.getBackupId()); + Assert.assertEquals(sourceBackup, actualRequest.getSourceBackup()); + Assert.assertEquals(expireTime, actualRequest.getExpireTime()); + Assert.assertTrue( + channelProvider.isHeaderSent( + ApiClientHeaderProvider.getDefaultApiClientHeaderKey(), + GaxGrpcProperties.getDefaultApiClientHeaderPattern())); + } + + @Test + public void copyBackupExceptionTest4() throws Exception { + StatusRuntimeException exception = new StatusRuntimeException(io.grpc.Status.INVALID_ARGUMENT); + mockBigtableTableAdmin.addException(exception); + + try { + String parent = "parent-995424086"; + String backupId = "backupId2121930365"; + String sourceBackup = "sourceBackup823134653"; + Timestamp expireTime = Timestamp.newBuilder().build(); + client.copyBackupAsync(parent, backupId, sourceBackup, expireTime).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 getIamPolicyTest() throws Exception { Policy 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 1aacb7f606..87d5cb3a88 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 @@ -136,7 +136,9 @@ public void testStubSettings() throws IOException { "undeleteTableSettings", "undeleteTableOperationSettings", "updateTableSettings", - "updateTableOperationSettings" + "updateTableOperationSettings", + "copyBackupSettings", + "copyBackupOperationSettings", }; @Test 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 6d5cc98a1d..8b87bc19f6 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 @@ -21,6 +21,7 @@ import com.google.bigtable.admin.v2.BigtableTableAdminGrpc.BigtableTableAdminImplBase; import com.google.bigtable.admin.v2.CheckConsistencyRequest; import com.google.bigtable.admin.v2.CheckConsistencyResponse; +import com.google.bigtable.admin.v2.CopyBackupRequest; import com.google.bigtable.admin.v2.CreateBackupRequest; import com.google.bigtable.admin.v2.CreateTableFromSnapshotRequest; import com.google.bigtable.admin.v2.CreateTableRequest; @@ -527,6 +528,26 @@ public void restoreTable( } } + @Override + public void copyBackup(CopyBackupRequest 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 CopyBackup, expected %s or %s", + response == null ? "null" : response.getClass().getName(), + Operation.class.getName(), + Exception.class.getName()))); + } + } + @Override public void getIamPolicy(GetIamPolicyRequest request, StreamObserver responseObserver) { Object response = responses.poll(); diff --git a/grpc-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml b/grpc-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml index 0ad34755c1..452e0b8902 100644 --- a/grpc-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml +++ b/grpc-google-cloud-bigtable-admin-v2/clirr-ignored-differences.xml @@ -7,4 +7,9 @@ com/google/bigtable/admin/v2/*Grpc METHOD_* + + 7012 + com/google/bigtable/admin/v2/BigtableTableAdminGrpc* + * + 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 0ae0c9d547..9f2702644a 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 @@ -968,6 +968,48 @@ private BigtableTableAdminGrpc() {} return getRestoreTableMethod; } + private static volatile io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CopyBackupRequest, com.google.longrunning.Operation> + getCopyBackupMethod; + + @io.grpc.stub.annotations.RpcMethod( + fullMethodName = SERVICE_NAME + '/' + "CopyBackup", + requestType = com.google.bigtable.admin.v2.CopyBackupRequest.class, + responseType = com.google.longrunning.Operation.class, + methodType = io.grpc.MethodDescriptor.MethodType.UNARY) + public static io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CopyBackupRequest, com.google.longrunning.Operation> + getCopyBackupMethod() { + io.grpc.MethodDescriptor< + com.google.bigtable.admin.v2.CopyBackupRequest, com.google.longrunning.Operation> + getCopyBackupMethod; + if ((getCopyBackupMethod = BigtableTableAdminGrpc.getCopyBackupMethod) == null) { + synchronized (BigtableTableAdminGrpc.class) { + if ((getCopyBackupMethod = BigtableTableAdminGrpc.getCopyBackupMethod) == null) { + BigtableTableAdminGrpc.getCopyBackupMethod = + getCopyBackupMethod = + io.grpc.MethodDescriptor + . + newBuilder() + .setType(io.grpc.MethodDescriptor.MethodType.UNARY) + .setFullMethodName(generateFullMethodName(SERVICE_NAME, "CopyBackup")) + .setSampledToLocalTracing(true) + .setRequestMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.bigtable.admin.v2.CopyBackupRequest.getDefaultInstance())) + .setResponseMarshaller( + io.grpc.protobuf.ProtoUtils.marshaller( + com.google.longrunning.Operation.getDefaultInstance())) + .setSchemaDescriptor( + new BigtableTableAdminMethodDescriptorSupplier("CopyBackup")) + .build(); + } + } + } + return getCopyBackupMethod; + } + private static volatile io.grpc.MethodDescriptor< com.google.iam.v1.GetIamPolicyRequest, com.google.iam.v1.Policy> getGetIamPolicyMethod; @@ -1404,8 +1446,8 @@ default void deleteSnapshot( * [metadata][google.longrunning.Operation.metadata] field type is * [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The * [response][google.longrunning.Operation.response] field type is - * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the - * creation and delete the backup. + * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the + * returned operation will stop the creation and delete the backup. * */ default void createBackup( @@ -1476,8 +1518,7 @@ default void listBackups( * * *
-     * Create a new table by restoring from a completed backup. The new table
-     * must be in the same project as the instance containing the backup.  The
+     * Create a new table by restoring from a completed backup.  The
      * returned table [long-running operation][google.longrunning.Operation] can
      * be used to track the progress of the operation, and to cancel it.  The
      * [metadata][google.longrunning.Operation.metadata] field type is
@@ -1493,6 +1534,20 @@ default void restoreTable(
           getRestoreTableMethod(), responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Copy a Cloud Bigtable backup to a new backup in the destination cluster
+     * located in the destination instance and project.
+     * 
+ */ + default void copyBackup( + com.google.bigtable.admin.v2.CopyBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ServerCalls.asyncUnimplementedUnaryCall(getCopyBackupMethod(), responseObserver); + } + /** * * @@ -1528,7 +1583,8 @@ default void setIamPolicy( * * *
-     * Returns permissions that the caller has on the specified Table or Backup resource.
+     * Returns permissions that the caller has on the specified Table or Backup
+     * resource.
      * 
*/ default void testIamPermissions( @@ -1868,8 +1924,8 @@ public void deleteSnapshot( * [metadata][google.longrunning.Operation.metadata] field type is * [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The * [response][google.longrunning.Operation.response] field type is - * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the - * creation and delete the backup. + * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the + * returned operation will stop the creation and delete the backup. *
*/ public void createBackup( @@ -1949,8 +2005,7 @@ public void listBackups( * * *
-     * Create a new table by restoring from a completed backup. The new table
-     * must be in the same project as the instance containing the backup.  The
+     * Create a new table by restoring from a completed backup.  The
      * returned table [long-running operation][google.longrunning.Operation] can
      * be used to track the progress of the operation, and to cancel it.  The
      * [metadata][google.longrunning.Operation.metadata] field type is
@@ -1968,6 +2023,21 @@ public void restoreTable(
           responseObserver);
     }
 
+    /**
+     *
+     *
+     * 
+     * Copy a Cloud Bigtable backup to a new backup in the destination cluster
+     * located in the destination instance and project.
+     * 
+ */ + public void copyBackup( + com.google.bigtable.admin.v2.CopyBackupRequest request, + io.grpc.stub.StreamObserver responseObserver) { + io.grpc.stub.ClientCalls.asyncUnaryCall( + getChannel().newCall(getCopyBackupMethod(), getCallOptions()), request, responseObserver); + } + /** * * @@ -2007,7 +2077,8 @@ public void setIamPolicy( * * *
-     * Returns permissions that the caller has on the specified Table or Backup resource.
+     * Returns permissions that the caller has on the specified Table or Backup
+     * resource.
      * 
*/ public void testIamPermissions( @@ -2287,8 +2358,8 @@ public com.google.protobuf.Empty deleteSnapshot( * [metadata][google.longrunning.Operation.metadata] field type is * [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The * [response][google.longrunning.Operation.response] field type is - * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the - * creation and delete the backup. + * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the + * returned operation will stop the creation and delete the backup. *
*/ public com.google.longrunning.Operation createBackup( @@ -2354,8 +2425,7 @@ public com.google.bigtable.admin.v2.ListBackupsResponse listBackups( * * *
-     * Create a new table by restoring from a completed backup. The new table
-     * must be in the same project as the instance containing the backup.  The
+     * Create a new table by restoring from a completed backup.  The
      * returned table [long-running operation][google.longrunning.Operation] can
      * be used to track the progress of the operation, and to cancel it.  The
      * [metadata][google.longrunning.Operation.metadata] field type is
@@ -2370,6 +2440,20 @@ public com.google.longrunning.Operation restoreTable(
           getChannel(), getRestoreTableMethod(), getCallOptions(), request);
     }
 
+    /**
+     *
+     *
+     * 
+     * Copy a Cloud Bigtable backup to a new backup in the destination cluster
+     * located in the destination instance and project.
+     * 
+ */ + public com.google.longrunning.Operation copyBackup( + com.google.bigtable.admin.v2.CopyBackupRequest request) { + return io.grpc.stub.ClientCalls.blockingUnaryCall( + getChannel(), getCopyBackupMethod(), getCallOptions(), request); + } + /** * * @@ -2401,7 +2485,8 @@ public com.google.iam.v1.Policy setIamPolicy(com.google.iam.v1.SetIamPolicyReque * * *
-     * Returns permissions that the caller has on the specified Table or Backup resource.
+     * Returns permissions that the caller has on the specified Table or Backup
+     * resource.
      * 
*/ public com.google.iam.v1.TestIamPermissionsResponse testIamPermissions( @@ -2682,8 +2767,8 @@ protected BigtableTableAdminFutureStub build( * [metadata][google.longrunning.Operation.metadata] field type is * [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The * [response][google.longrunning.Operation.response] field type is - * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the - * creation and delete the backup. + * [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the + * returned operation will stop the creation and delete the backup. *
*/ public com.google.common.util.concurrent.ListenableFuture @@ -2750,8 +2835,7 @@ protected BigtableTableAdminFutureStub build( * * *
-     * Create a new table by restoring from a completed backup. The new table
-     * must be in the same project as the instance containing the backup.  The
+     * Create a new table by restoring from a completed backup.  The
      * returned table [long-running operation][google.longrunning.Operation] can
      * be used to track the progress of the operation, and to cancel it.  The
      * [metadata][google.longrunning.Operation.metadata] field type is
@@ -2766,6 +2850,20 @@ protected BigtableTableAdminFutureStub build(
           getChannel().newCall(getRestoreTableMethod(), getCallOptions()), request);
     }
 
+    /**
+     *
+     *
+     * 
+     * Copy a Cloud Bigtable backup to a new backup in the destination cluster
+     * located in the destination instance and project.
+     * 
+ */ + public com.google.common.util.concurrent.ListenableFuture + copyBackup(com.google.bigtable.admin.v2.CopyBackupRequest request) { + return io.grpc.stub.ClientCalls.futureUnaryCall( + getChannel().newCall(getCopyBackupMethod(), getCallOptions()), request); + } + /** * * @@ -2799,7 +2897,8 @@ protected BigtableTableAdminFutureStub build( * * *
-     * Returns permissions that the caller has on the specified Table or Backup resource.
+     * Returns permissions that the caller has on the specified Table or Backup
+     * resource.
      * 
*/ public com.google.common.util.concurrent.ListenableFuture< @@ -2831,9 +2930,10 @@ protected BigtableTableAdminFutureStub build( private static final int METHODID_DELETE_BACKUP = 18; private static final int METHODID_LIST_BACKUPS = 19; private static final int METHODID_RESTORE_TABLE = 20; - private static final int METHODID_GET_IAM_POLICY = 21; - private static final int METHODID_SET_IAM_POLICY = 22; - private static final int METHODID_TEST_IAM_PERMISSIONS = 23; + private static final int METHODID_COPY_BACKUP = 21; + private static final int METHODID_GET_IAM_POLICY = 22; + private static final int METHODID_SET_IAM_POLICY = 23; + private static final int METHODID_TEST_IAM_PERMISSIONS = 24; private static final class MethodHandlers implements io.grpc.stub.ServerCalls.UnaryMethod, @@ -2964,6 +3064,11 @@ public void invoke(Req request, io.grpc.stub.StreamObserver responseObserv (com.google.bigtable.admin.v2.RestoreTableRequest) request, (io.grpc.stub.StreamObserver) responseObserver); break; + case METHODID_COPY_BACKUP: + serviceImpl.copyBackup( + (com.google.bigtable.admin.v2.CopyBackupRequest) request, + (io.grpc.stub.StreamObserver) responseObserver); + break; case METHODID_GET_IAM_POLICY: serviceImpl.getIamPolicy( (com.google.iam.v1.GetIamPolicyRequest) request, @@ -3130,6 +3235,12 @@ public static final io.grpc.ServerServiceDefinition bindService(AsyncService ser new MethodHandlers< com.google.bigtable.admin.v2.RestoreTableRequest, com.google.longrunning.Operation>(service, METHODID_RESTORE_TABLE))) + .addMethod( + getCopyBackupMethod(), + io.grpc.stub.ServerCalls.asyncUnaryCall( + new MethodHandlers< + com.google.bigtable.admin.v2.CopyBackupRequest, + com.google.longrunning.Operation>(service, METHODID_COPY_BACKUP))) .addMethod( getGetIamPolicyMethod(), io.grpc.stub.ServerCalls.asyncUnaryCall( @@ -3219,6 +3330,7 @@ public static io.grpc.ServiceDescriptor getServiceDescriptor() { .addMethod(getDeleteBackupMethod()) .addMethod(getListBackupsMethod()) .addMethod(getRestoreTableMethod()) + .addMethod(getCopyBackupMethod()) .addMethod(getGetIamPolicyMethod()) .addMethod(getSetIamPolicyMethod()) .addMethod(getTestIamPermissionsMethod()) diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Backup.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Backup.java index 49e16b34c6..7891d8d5d3 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Backup.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Backup.java @@ -40,6 +40,7 @@ private Backup(com.google.protobuf.GeneratedMessageV3.Builder builder) { private Backup() { name_ = ""; sourceTable_ = ""; + sourceBackup_ = ""; state_ = 0; } @@ -300,8 +301,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. Immutable. Name of the table from which this backup was created. This needs
-   * to be in the same instance as the backup. Values are of the form
+   * Required. Immutable. Name of the table from which this backup was created.
+   * This needs to be in the same instance as the backup. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{source_table}`.
    * 
* @@ -327,8 +328,8 @@ public java.lang.String getSourceTable() { * * *
-   * Required. Immutable. Name of the table from which this backup was created. This needs
-   * to be in the same instance as the backup. Values are of the form
+   * Required. Immutable. Name of the table from which this backup was created.
+   * This needs to be in the same instance as the backup. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{source_table}`.
    * 
* @@ -351,6 +352,61 @@ public com.google.protobuf.ByteString getSourceTableBytes() { } } + public static final int SOURCE_BACKUP_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceBackup_ = ""; + /** + * + * + *
+   * Output only. Name of the backup from which this backup was copied. If a
+   * backup is not created by copying a backup, this field will be empty. Values
+   * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+   * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceBackup. + */ + @java.lang.Override + public java.lang.String getSourceBackup() { + java.lang.Object ref = sourceBackup_; + 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(); + sourceBackup_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the backup from which this backup was copied. If a
+   * backup is not created by copying a backup, this field will be empty. Values
+   * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+   * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceBackup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBackupBytes() { + java.lang.Object ref = sourceBackup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBackup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + public static final int EXPIRE_TIME_FIELD_NUMBER = 3; private com.google.protobuf.Timestamp expireTime_; /** @@ -420,8 +476,9 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { *
    * Output only. `start_time` is the time that the backup was started
    * (i.e. approximately the time the
-   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-   * row data in this backup will be no older than this timestamp.
+   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+   * request is received).  The row data in this backup will be no older than
+   * this timestamp.
    * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -439,8 +496,9 @@ public boolean hasStartTime() { *
    * Output only. `start_time` is the time that the backup was started
    * (i.e. approximately the time the
-   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-   * row data in this backup will be no older than this timestamp.
+   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+   * request is received).  The row data in this backup will be no older than
+   * this timestamp.
    * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -458,8 +516,9 @@ public com.google.protobuf.Timestamp getStartTime() { *
    * Output only. `start_time` is the time that the backup was started
    * (i.e. approximately the time the
-   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-   * row data in this backup will be no older than this timestamp.
+   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+   * request is received).  The row data in this backup will be no older than
+   * this timestamp.
    * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -673,6 +732,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (encryptionInfo_ != null) { output.writeMessage(9, getEncryptionInfo()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, sourceBackup_); + } getUnknownFields().writeTo(output); } @@ -706,6 +768,9 @@ public int getSerializedSize() { if (encryptionInfo_ != null) { size += com.google.protobuf.CodedOutputStream.computeMessageSize(9, getEncryptionInfo()); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, sourceBackup_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -723,6 +788,7 @@ public boolean equals(final java.lang.Object obj) { if (!getName().equals(other.getName())) return false; if (!getSourceTable().equals(other.getSourceTable())) return false; + if (!getSourceBackup().equals(other.getSourceBackup())) return false; if (hasExpireTime() != other.hasExpireTime()) return false; if (hasExpireTime()) { if (!getExpireTime().equals(other.getExpireTime())) return false; @@ -756,6 +822,8 @@ public int hashCode() { hash = (53 * hash) + getName().hashCode(); hash = (37 * hash) + SOURCE_TABLE_FIELD_NUMBER; hash = (53 * hash) + getSourceTable().hashCode(); + hash = (37 * hash) + SOURCE_BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceBackup().hashCode(); if (hasExpireTime()) { hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; hash = (53 * hash) + getExpireTime().hashCode(); @@ -916,6 +984,7 @@ public Builder clear() { bitField0_ = 0; name_ = ""; sourceTable_ = ""; + sourceBackup_ = ""; expireTime_ = null; if (expireTimeBuilder_ != null) { expireTimeBuilder_.dispose(); @@ -980,21 +1049,24 @@ private void buildPartial0(com.google.bigtable.admin.v2.Backup result) { result.sourceTable_ = sourceTable_; } if (((from_bitField0_ & 0x00000004) != 0)) { - result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + result.sourceBackup_ = sourceBackup_; } if (((from_bitField0_ & 0x00000008) != 0)) { - result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000010) != 0)) { - result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); + result.startTime_ = startTimeBuilder_ == null ? startTime_ : startTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000020) != 0)) { - result.sizeBytes_ = sizeBytes_; + result.endTime_ = endTimeBuilder_ == null ? endTime_ : endTimeBuilder_.build(); } if (((from_bitField0_ & 0x00000040) != 0)) { - result.state_ = state_; + result.sizeBytes_ = sizeBytes_; } if (((from_bitField0_ & 0x00000080) != 0)) { + result.state_ = state_; + } + if (((from_bitField0_ & 0x00000100) != 0)) { result.encryptionInfo_ = encryptionInfoBuilder_ == null ? encryptionInfo_ : encryptionInfoBuilder_.build(); } @@ -1055,6 +1127,11 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.Backup other) { bitField0_ |= 0x00000002; onChanged(); } + if (!other.getSourceBackup().isEmpty()) { + sourceBackup_ = other.sourceBackup_; + bitField0_ |= 0x00000004; + onChanged(); + } if (other.hasExpireTime()) { mergeExpireTime(other.getExpireTime()); } @@ -1114,39 +1191,45 @@ public Builder mergeFrom( case 26: { input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; break; } // case 26 case 34: { input.readMessage(getStartTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; break; } // case 34 case 42: { input.readMessage(getEndTimeFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; break; } // case 42 case 48: { sizeBytes_ = input.readInt64(); - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; break; } // case 48 case 56: { state_ = input.readEnum(); - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; break; } // case 56 case 74: { input.readMessage(getEncryptionInfoFieldBuilder().getBuilder(), extensionRegistry); - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; break; } // case 74 + case 82: + { + sourceBackup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1322,8 +1405,8 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. Immutable. Name of the table from which this backup was created. This needs
-     * to be in the same instance as the backup. Values are of the form
+     * Required. Immutable. Name of the table from which this backup was created.
+     * This needs to be in the same instance as the backup. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{source_table}`.
      * 
* @@ -1348,8 +1431,8 @@ public java.lang.String getSourceTable() { * * *
-     * Required. Immutable. Name of the table from which this backup was created. This needs
-     * to be in the same instance as the backup. Values are of the form
+     * Required. Immutable. Name of the table from which this backup was created.
+     * This needs to be in the same instance as the backup. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{source_table}`.
      * 
* @@ -1374,8 +1457,8 @@ public com.google.protobuf.ByteString getSourceTableBytes() { * * *
-     * Required. Immutable. Name of the table from which this backup was created. This needs
-     * to be in the same instance as the backup. Values are of the form
+     * Required. Immutable. Name of the table from which this backup was created.
+     * This needs to be in the same instance as the backup. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{source_table}`.
      * 
* @@ -1399,8 +1482,8 @@ public Builder setSourceTable(java.lang.String value) { * * *
-     * Required. Immutable. Name of the table from which this backup was created. This needs
-     * to be in the same instance as the backup. Values are of the form
+     * Required. Immutable. Name of the table from which this backup was created.
+     * This needs to be in the same instance as the backup. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{source_table}`.
      * 
* @@ -1420,8 +1503,8 @@ public Builder clearSourceTable() { * * *
-     * Required. Immutable. Name of the table from which this backup was created. This needs
-     * to be in the same instance as the backup. Values are of the form
+     * Required. Immutable. Name of the table from which this backup was created.
+     * This needs to be in the same instance as the backup. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{source_table}`.
      * 
* @@ -1443,6 +1526,122 @@ public Builder setSourceTableBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object sourceBackup_ = ""; + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceBackup. + */ + public java.lang.String getSourceBackup() { + java.lang.Object ref = sourceBackup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBackup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceBackup. + */ + public com.google.protobuf.ByteString getSourceBackupBytes() { + java.lang.Object ref = sourceBackup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBackup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sourceBackup to set. + * @return This builder for chaining. + */ + public Builder setSourceBackup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceBackup_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSourceBackup() { + sourceBackup_ = getDefaultInstance().getSourceBackup(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sourceBackup to set. + * @return This builder for chaining. + */ + public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceBackup_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + private com.google.protobuf.Timestamp expireTime_; private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1466,7 +1665,7 @@ public Builder setSourceTableBytes(com.google.protobuf.ByteString value) { * @return Whether the expireTime field is set. */ public boolean hasExpireTime() { - return ((bitField0_ & 0x00000004) != 0); + return ((bitField0_ & 0x00000008) != 0); } /** * @@ -1516,7 +1715,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1540,7 +1739,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal } else { expireTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1560,7 +1759,7 @@ public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForVal */ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { if (expireTimeBuilder_ == null) { - if (((bitField0_ & 0x00000004) != 0) + if (((bitField0_ & 0x00000008) != 0) && expireTime_ != null && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getExpireTimeBuilder().mergeFrom(value); @@ -1570,7 +1769,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { } else { expireTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return this; } @@ -1589,7 +1788,7 @@ public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { *
*/ public Builder clearExpireTime() { - bitField0_ = (bitField0_ & ~0x00000004); + bitField0_ = (bitField0_ & ~0x00000008); expireTime_ = null; if (expireTimeBuilder_ != null) { expireTimeBuilder_.dispose(); @@ -1613,7 +1812,7 @@ public Builder clearExpireTime() { *
*/ public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { - bitField0_ |= 0x00000004; + bitField0_ |= 0x00000008; onChanged(); return getExpireTimeFieldBuilder().getBuilder(); } @@ -1683,8 +1882,9 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1693,7 +1893,7 @@ public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { * @return Whether the startTime field is set. */ public boolean hasStartTime() { - return ((bitField0_ & 0x00000008) != 0); + return ((bitField0_ & 0x00000010) != 0); } /** * @@ -1701,8 +1901,9 @@ public boolean hasStartTime() { *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1723,8 +1924,9 @@ public com.google.protobuf.Timestamp getStartTime() { *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1739,7 +1941,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1749,8 +1951,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp value) { *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1762,7 +1965,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu } else { startTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1772,8 +1975,9 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1781,7 +1985,7 @@ public Builder setStartTime(com.google.protobuf.Timestamp.Builder builderForValu */ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { if (startTimeBuilder_ == null) { - if (((bitField0_ & 0x00000008) != 0) + if (((bitField0_ & 0x00000010) != 0) && startTime_ != null && startTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getStartTimeBuilder().mergeFrom(value); @@ -1791,7 +1995,7 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { } else { startTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return this; } @@ -1801,15 +2005,16 @@ public Builder mergeStartTime(com.google.protobuf.Timestamp value) { *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public Builder clearStartTime() { - bitField0_ = (bitField0_ & ~0x00000008); + bitField0_ = (bitField0_ & ~0x00000010); startTime_ = null; if (startTimeBuilder_ != null) { startTimeBuilder_.dispose(); @@ -1824,15 +2029,16 @@ public Builder clearStartTime() { *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; * */ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { - bitField0_ |= 0x00000008; + bitField0_ |= 0x00000010; onChanged(); return getStartTimeFieldBuilder().getBuilder(); } @@ -1842,8 +2048,9 @@ public com.google.protobuf.Timestamp.Builder getStartTimeBuilder() { *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1862,8 +2069,9 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { *
      * Output only. `start_time` is the time that the backup was started
      * (i.e. approximately the time the
-     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-     * row data in this backup will be no older than this timestamp.
+     * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+     * request is received).  The row data in this backup will be no older than
+     * this timestamp.
      * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1906,7 +2114,7 @@ public com.google.protobuf.TimestampOrBuilder getStartTimeOrBuilder() { * @return Whether the endTime field is set. */ public boolean hasEndTime() { - return ((bitField0_ & 0x00000010) != 0); + return ((bitField0_ & 0x00000020) != 0); } /** * @@ -1948,7 +2156,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.setMessage(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1969,7 +2177,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) } else { endTimeBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -1986,7 +2194,7 @@ public Builder setEndTime(com.google.protobuf.Timestamp.Builder builderForValue) */ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { if (endTimeBuilder_ == null) { - if (((bitField0_ & 0x00000010) != 0) + if (((bitField0_ & 0x00000020) != 0) && endTime_ != null && endTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { getEndTimeBuilder().mergeFrom(value); @@ -1996,7 +2204,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { } else { endTimeBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return this; } @@ -2012,7 +2220,7 @@ public Builder mergeEndTime(com.google.protobuf.Timestamp value) { * */ public Builder clearEndTime() { - bitField0_ = (bitField0_ & ~0x00000010); + bitField0_ = (bitField0_ & ~0x00000020); endTime_ = null; if (endTimeBuilder_ != null) { endTimeBuilder_.dispose(); @@ -2033,7 +2241,7 @@ public Builder clearEndTime() { *
*/ public com.google.protobuf.Timestamp.Builder getEndTimeBuilder() { - bitField0_ |= 0x00000010; + bitField0_ |= 0x00000020; onChanged(); return getEndTimeFieldBuilder().getBuilder(); } @@ -2114,7 +2322,7 @@ public long getSizeBytes() { public Builder setSizeBytes(long value) { sizeBytes_ = value; - bitField0_ |= 0x00000020; + bitField0_ |= 0x00000040; onChanged(); return this; } @@ -2130,7 +2338,7 @@ public Builder setSizeBytes(long value) { * @return This builder for chaining. */ public Builder clearSizeBytes() { - bitField0_ = (bitField0_ & ~0x00000020); + bitField0_ = (bitField0_ & ~0x00000040); sizeBytes_ = 0L; onChanged(); return this; @@ -2170,7 +2378,7 @@ public int getStateValue() { */ public Builder setStateValue(int value) { state_ = value; - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; onChanged(); return this; } @@ -2211,7 +2419,7 @@ public Builder setState(com.google.bigtable.admin.v2.Backup.State value) { if (value == null) { throw new NullPointerException(); } - bitField0_ |= 0x00000040; + bitField0_ |= 0x00000080; state_ = value.getNumber(); onChanged(); return this; @@ -2230,7 +2438,7 @@ public Builder setState(com.google.bigtable.admin.v2.Backup.State value) { * @return This builder for chaining. */ public Builder clearState() { - bitField0_ = (bitField0_ & ~0x00000040); + bitField0_ = (bitField0_ & ~0x00000080); state_ = 0; onChanged(); return this; @@ -2256,7 +2464,7 @@ public Builder clearState() { * @return Whether the encryptionInfo field is set. */ public boolean hasEncryptionInfo() { - return ((bitField0_ & 0x00000080) != 0); + return ((bitField0_ & 0x00000100) != 0); } /** * @@ -2300,7 +2508,7 @@ public Builder setEncryptionInfo(com.google.bigtable.admin.v2.EncryptionInfo val } else { encryptionInfoBuilder_.setMessage(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2322,7 +2530,7 @@ public Builder setEncryptionInfo( } else { encryptionInfoBuilder_.setMessage(builderForValue.build()); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2339,7 +2547,7 @@ public Builder setEncryptionInfo( */ public Builder mergeEncryptionInfo(com.google.bigtable.admin.v2.EncryptionInfo value) { if (encryptionInfoBuilder_ == null) { - if (((bitField0_ & 0x00000080) != 0) + if (((bitField0_ & 0x00000100) != 0) && encryptionInfo_ != null && encryptionInfo_ != com.google.bigtable.admin.v2.EncryptionInfo.getDefaultInstance()) { @@ -2350,7 +2558,7 @@ public Builder mergeEncryptionInfo(com.google.bigtable.admin.v2.EncryptionInfo v } else { encryptionInfoBuilder_.mergeFrom(value); } - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return this; } @@ -2366,7 +2574,7 @@ public Builder mergeEncryptionInfo(com.google.bigtable.admin.v2.EncryptionInfo v *
*/ public Builder clearEncryptionInfo() { - bitField0_ = (bitField0_ & ~0x00000080); + bitField0_ = (bitField0_ & ~0x00000100); encryptionInfo_ = null; if (encryptionInfoBuilder_ != null) { encryptionInfoBuilder_.dispose(); @@ -2387,7 +2595,7 @@ public Builder clearEncryptionInfo() { *
*/ public com.google.bigtable.admin.v2.EncryptionInfo.Builder getEncryptionInfoBuilder() { - bitField0_ |= 0x00000080; + bitField0_ |= 0x00000100; onChanged(); return getEncryptionInfoFieldBuilder().getBuilder(); } diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupInfo.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupInfo.java index 34971fa5ad..34b1f092f0 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupInfo.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupInfo.java @@ -40,6 +40,7 @@ private BackupInfo(com.google.protobuf.GeneratedMessageV3.Builder builder) { private BackupInfo() { backup_ = ""; sourceTable_ = ""; + sourceBackup_ = ""; } @java.lang.Override @@ -269,6 +270,61 @@ public com.google.protobuf.ByteString getSourceTableBytes() { } } + public static final int SOURCE_BACKUP_FIELD_NUMBER = 10; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceBackup_ = ""; + /** + * + * + *
+   * Output only. Name of the backup from which this backup was copied. If a
+   * backup is not created by copying a backup, this field will be empty. Values
+   * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+   * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceBackup. + */ + @java.lang.Override + public java.lang.String getSourceBackup() { + java.lang.Object ref = sourceBackup_; + 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(); + sourceBackup_ = s; + return s; + } + } + /** + * + * + *
+   * Output only. Name of the backup from which this backup was copied. If a
+   * backup is not created by copying a backup, this field will be empty. Values
+   * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+   * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceBackup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBackupBytes() { + java.lang.Object ref = sourceBackup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBackup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + private byte memoizedIsInitialized = -1; @java.lang.Override @@ -295,6 +351,9 @@ public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceTable_)) { com.google.protobuf.GeneratedMessageV3.writeString(output, 4, sourceTable_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 10, sourceBackup_); + } getUnknownFields().writeTo(output); } @@ -316,6 +375,9 @@ public int getSerializedSize() { if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceTable_)) { size += com.google.protobuf.GeneratedMessageV3.computeStringSize(4, sourceTable_); } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(10, sourceBackup_); + } size += getUnknownFields().getSerializedSize(); memoizedSize = size; return size; @@ -341,6 +403,7 @@ public boolean equals(final java.lang.Object obj) { if (!getEndTime().equals(other.getEndTime())) return false; } if (!getSourceTable().equals(other.getSourceTable())) return false; + if (!getSourceBackup().equals(other.getSourceBackup())) return false; if (!getUnknownFields().equals(other.getUnknownFields())) return false; return true; } @@ -364,6 +427,8 @@ public int hashCode() { } hash = (37 * hash) + SOURCE_TABLE_FIELD_NUMBER; hash = (53 * hash) + getSourceTable().hashCode(); + hash = (37 * hash) + SOURCE_BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceBackup().hashCode(); hash = (29 * hash) + getUnknownFields().hashCode(); memoizedHashCode = hash; return hash; @@ -515,6 +580,7 @@ public Builder clear() { endTimeBuilder_ = null; } sourceTable_ = ""; + sourceBackup_ = ""; return this; } @@ -563,6 +629,9 @@ private void buildPartial0(com.google.bigtable.admin.v2.BackupInfo result) { if (((from_bitField0_ & 0x00000008) != 0)) { result.sourceTable_ = sourceTable_; } + if (((from_bitField0_ & 0x00000010) != 0)) { + result.sourceBackup_ = sourceBackup_; + } } @java.lang.Override @@ -626,6 +695,11 @@ public Builder mergeFrom(com.google.bigtable.admin.v2.BackupInfo other) { bitField0_ |= 0x00000008; onChanged(); } + if (!other.getSourceBackup().isEmpty()) { + sourceBackup_ = other.sourceBackup_; + bitField0_ |= 0x00000010; + onChanged(); + } this.mergeUnknownFields(other.getUnknownFields()); onChanged(); return this; @@ -676,6 +750,12 @@ public Builder mergeFrom( bitField0_ |= 0x00000008; break; } // case 34 + case 82: + { + sourceBackup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000010; + break; + } // case 82 default: { if (!super.parseUnknownField(input, extensionRegistry, tag)) { @@ -1301,6 +1381,122 @@ public Builder setSourceTableBytes(com.google.protobuf.ByteString value) { return this; } + private java.lang.Object sourceBackup_ = ""; + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceBackup. + */ + public java.lang.String getSourceBackup() { + java.lang.Object ref = sourceBackup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBackup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceBackup. + */ + public com.google.protobuf.ByteString getSourceBackupBytes() { + java.lang.Object ref = sourceBackup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBackup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The sourceBackup to set. + * @return This builder for chaining. + */ + public Builder setSourceBackup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceBackup_ = value; + bitField0_ |= 0x00000010; + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return This builder for chaining. + */ + public Builder clearSourceBackup() { + sourceBackup_ = getDefaultInstance().getSourceBackup(); + bitField0_ = (bitField0_ & ~0x00000010); + onChanged(); + return this; + } + /** + * + * + *
+     * Output only. Name of the backup from which this backup was copied. If a
+     * backup is not created by copying a backup, this field will be empty. Values
+     * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+     * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @param value The bytes for sourceBackup to set. + * @return This builder for chaining. + */ + public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceBackup_ = value; + bitField0_ |= 0x00000010; + 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/BackupInfoOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupInfoOrBuilder.java index f74263d1c7..7d0691b53d 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupInfoOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupInfoOrBuilder.java @@ -154,4 +154,33 @@ public interface BackupInfoOrBuilder * @return The bytes for sourceTable. */ com.google.protobuf.ByteString getSourceTableBytes(); + + /** + * + * + *
+   * Output only. Name of the backup from which this backup was copied. If a
+   * backup is not created by copying a backup, this field will be empty. Values
+   * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+   * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceBackup. + */ + java.lang.String getSourceBackup(); + /** + * + * + *
+   * Output only. Name of the backup from which this backup was copied. If a
+   * backup is not created by copying a backup, this field will be empty. Values
+   * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+   * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceBackup. + */ + com.google.protobuf.ByteString getSourceBackupBytes(); } diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupOrBuilder.java index cf990353d5..92fecae6a3 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/BackupOrBuilder.java @@ -70,8 +70,8 @@ public interface BackupOrBuilder * * *
-   * Required. Immutable. Name of the table from which this backup was created. This needs
-   * to be in the same instance as the backup. Values are of the form
+   * Required. Immutable. Name of the table from which this backup was created.
+   * This needs to be in the same instance as the backup. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{source_table}`.
    * 
* @@ -86,8 +86,8 @@ public interface BackupOrBuilder * * *
-   * Required. Immutable. Name of the table from which this backup was created. This needs
-   * to be in the same instance as the backup. Values are of the form
+   * Required. Immutable. Name of the table from which this backup was created.
+   * This needs to be in the same instance as the backup. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{source_table}`.
    * 
* @@ -99,6 +99,35 @@ public interface BackupOrBuilder */ com.google.protobuf.ByteString getSourceTableBytes(); + /** + * + * + *
+   * Output only. Name of the backup from which this backup was copied. If a
+   * backup is not created by copying a backup, this field will be empty. Values
+   * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+   * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The sourceBackup. + */ + java.lang.String getSourceBackup(); + /** + * + * + *
+   * Output only. Name of the backup from which this backup was copied. If a
+   * backup is not created by copying a backup, this field will be empty. Values
+   * are of the form: projects/<project>/instances/<instance>/backups/<backup>.
+   * 
+ * + * string source_backup = 10 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * + * @return The bytes for sourceBackup. + */ + com.google.protobuf.ByteString getSourceBackupBytes(); + /** * * @@ -155,8 +184,9 @@ public interface BackupOrBuilder *
    * Output only. `start_time` is the time that the backup was started
    * (i.e. approximately the time the
-   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-   * row data in this backup will be no older than this timestamp.
+   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+   * request is received).  The row data in this backup will be no older than
+   * this timestamp.
    * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -171,8 +201,9 @@ public interface BackupOrBuilder *
    * Output only. `start_time` is the time that the backup was started
    * (i.e. approximately the time the
-   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-   * row data in this backup will be no older than this timestamp.
+   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+   * request is received).  The row data in this backup will be no older than
+   * this timestamp.
    * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -187,8 +218,9 @@ public interface BackupOrBuilder *
    * Output only. `start_time` is the time that the backup was started
    * (i.e. approximately the time the
-   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received).  The
-   * row data in this backup will be no older than this timestamp.
+   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]
+   * request is received).  The row data in this backup will be no older than
+   * this timestamp.
    * 
* * .google.protobuf.Timestamp start_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; 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 27db557a0b..3c575dd878 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 @@ -167,6 +167,14 @@ public static void registerAllExtensions(com.google.protobuf.ExtensionRegistry r internal_static_google_bigtable_admin_v2_ListBackupsResponse_descriptor; static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internal_static_google_bigtable_admin_v2_ListBackupsResponse_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_CopyBackupRequest_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_CopyBackupRequest_fieldAccessorTable; + static final com.google.protobuf.Descriptors.Descriptor + internal_static_google_bigtable_admin_v2_CopyBackupMetadata_descriptor; + static final com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internal_static_google_bigtable_admin_v2_CopyBackupMetadata_fieldAccessorTable; public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { return descriptor; @@ -307,142 +315,159 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "r_by\030\003 \001(\t\022\021\n\tpage_size\030\004 \001(\005\022\022\n\npage_to" + "ken\030\005 \001(\t\"a\n\023ListBackupsResponse\0221\n\007back" + "ups\030\001 \003(\0132 .google.bigtable.admin.v2.Bac" - + "kup\022\027\n\017next_page_token\030\002 \001(\t2\262(\n\022Bigtabl" - + "eTableAdmin\022\253\001\n\013CreateTable\022,.google.big" - + "table.admin.v2.CreateTableRequest\032\037.goog" - + "le.bigtable.admin.v2.Table\"M\332A\025parent,ta" - + "ble_id,table\202\323\344\223\002/\"*/v2/{parent=projects" - + "/*/instances/*}/tables:\001*\022\212\002\n\027CreateTabl" - + "eFromSnapshot\0228.google.bigtable.admin.v2" - + ".CreateTableFromSnapshotRequest\032\035.google" - + ".longrunning.Operation\"\225\001\312A(\n\005Table\022\037Cre" - + "ateTableFromSnapshotMetadata\332A\037parent,ta" - + "ble_id,source_snapshot\202\323\344\223\002B\"=/v2/{paren" - + "t=projects/*/instances/*}/tables:createF" - + "romSnapshot:\001*\022\244\001\n\nListTables\022+.google.b" - + "igtable.admin.v2.ListTablesRequest\032,.goo" - + "gle.bigtable.admin.v2.ListTablesResponse" - + "\";\332A\006parent\202\323\344\223\002,\022*/v2/{parent=projects/" - + "*/instances/*}/tables\022\221\001\n\010GetTable\022).goo" - + "gle.bigtable.admin.v2.GetTableRequest\032\037." - + "google.bigtable.admin.v2.Table\"9\332A\004name\202" - + "\323\344\223\002,\022*/v2/{name=projects/*/instances/*/" - + "tables/*}\022\316\001\n\013UpdateTable\022,.google.bigta" - + "ble.admin.v2.UpdateTableRequest\032\035.google" - + ".longrunning.Operation\"r\312A\034\n\005Table\022\023Upda" - + "teTableMetadata\332A\021table,update_mask\202\323\344\223\002" - + "920/v2/{table.name=projects/*/instances/" - + "*/tables/*}:\005table\022\216\001\n\013DeleteTable\022,.goo" - + "gle.bigtable.admin.v2.DeleteTableRequest" - + "\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223\002,*" - + "*/v2/{name=projects/*/instances/*/tables" - + "/*}\022\306\001\n\rUndeleteTable\022..google.bigtable." - + "admin.v2.UndeleteTableRequest\032\035.google.l" - + "ongrunning.Operation\"f\312A\036\n\005Table\022\025Undele" - + "teTableMetadata\332A\004name\202\323\344\223\0028\"3/v2/{name=" - + "projects/*/instances/*/tables/*}:undelet" - + "e:\001*\022\317\001\n\024ModifyColumnFamilies\0225.google.b" - + "igtable.admin.v2.ModifyColumnFamiliesReq" - + "uest\032\037.google.bigtable.admin.v2.Table\"_\332" - + "A\022name,modifications\202\323\344\223\002D\"?/v2/{name=pr" - + "ojects/*/instances/*/tables/*}:modifyCol" - + "umnFamilies:\001*\022\231\001\n\014DropRowRange\022-.google" - + ".bigtable.admin.v2.DropRowRangeRequest\032\026" - + ".google.protobuf.Empty\"B\202\323\344\223\002<\"7/v2/{nam" - + "e=projects/*/instances/*/tables/*}:dropR" - + "owRange:\001*\022\350\001\n\030GenerateConsistencyToken\022" - + "9.google.bigtable.admin.v2.GenerateConsi" - + "stencyTokenRequest\032:.google.bigtable.adm" - + "in.v2.GenerateConsistencyTokenResponse\"U" - + "\332A\004name\202\323\344\223\002H\"C/v2/{name=projects/*/inst" - + "ances/*/tables/*}:generateConsistencyTok" - + "en:\001*\022\332\001\n\020CheckConsistency\0221.google.bigt" - + "able.admin.v2.CheckConsistencyRequest\0322." - + "google.bigtable.admin.v2.CheckConsistenc" - + "yResponse\"_\332A\026name,consistency_token\202\323\344\223" - + "\002@\";/v2/{name=projects/*/instances/*/tab" - + "les/*}:checkConsistency:\001*\022\352\001\n\rSnapshotT" - + "able\022..google.bigtable.admin.v2.Snapshot" - + "TableRequest\032\035.google.longrunning.Operat" - + "ion\"\211\001\312A!\n\010Snapshot\022\025SnapshotTableMetada" - + "ta\332A$name,cluster,snapshot_id,descriptio" - + "n\202\323\344\223\0028\"3/v2/{name=projects/*/instances/" - + "*/tables/*}:snapshot:\001*\022\250\001\n\013GetSnapshot\022" - + ",.google.bigtable.admin.v2.GetSnapshotRe" - + "quest\032\".google.bigtable.admin.v2.Snapsho" - + "t\"G\332A\004name\202\323\344\223\002:\0228/v2/{name=projects/*/i" - + "nstances/*/clusters/*/snapshots/*}\022\273\001\n\rL" - + "istSnapshots\022..google.bigtable.admin.v2." - + "ListSnapshotsRequest\032/.google.bigtable.a" - + "dmin.v2.ListSnapshotsResponse\"I\332A\006parent" - + "\202\323\344\223\002:\0228/v2/{parent=projects/*/instances" - + "/*/clusters/*}/snapshots\022\242\001\n\016DeleteSnaps" - + "hot\022/.google.bigtable.admin.v2.DeleteSna" - + "pshotRequest\032\026.google.protobuf.Empty\"G\332A" - + "\004name\202\323\344\223\002:*8/v2/{name=projects/*/instan" - + "ces/*/clusters/*/snapshots/*}\022\340\001\n\014Create" - + "Backup\022-.google.bigtable.admin.v2.Create" - + "BackupRequest\032\035.google.longrunning.Opera" - + "tion\"\201\001\312A\036\n\006Backup\022\024CreateBackupMetadata" - + "\332A\027parent,backup_id,backup\202\323\344\223\002@\"6/v2/{p" - + "arent=projects/*/instances/*/clusters/*}" - + "/backups:\006backup\022\240\001\n\tGetBackup\022*.google." - + "bigtable.admin.v2.GetBackupRequest\032 .goo" - + "gle.bigtable.admin.v2.Backup\"E\332A\004name\202\323\344" - + "\223\0028\0226/v2/{name=projects/*/instances/*/cl" - + "usters/*/backups/*}\022\303\001\n\014UpdateBackup\022-.g" - + "oogle.bigtable.admin.v2.UpdateBackupRequ" - + "est\032 .google.bigtable.admin.v2.Backup\"b\332" - + "A\022backup,update_mask\202\323\344\223\002G2=/v2/{backup." - + "name=projects/*/instances/*/clusters/*/b" - + "ackups/*}:\006backup\022\234\001\n\014DeleteBackup\022-.goo" - + "gle.bigtable.admin.v2.DeleteBackupReques" - + "t\032\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223\0028" - + "*6/v2/{name=projects/*/instances/*/clust" - + "ers/*/backups/*}\022\263\001\n\013ListBackups\022,.googl" - + "e.bigtable.admin.v2.ListBackupsRequest\032-" - + ".google.bigtable.admin.v2.ListBackupsRes" - + "ponse\"G\332A\006parent\202\323\344\223\0028\0226/v2/{parent=proj" - + "ects/*/instances/*/clusters/*}/backups\022\273" - + "\001\n\014RestoreTable\022-.google.bigtable.admin." - + "v2.RestoreTableRequest\032\035.google.longrunn" - + "ing.Operation\"]\312A\035\n\005Table\022\024RestoreTableM" - + "etadata\202\323\344\223\0027\"2/v2/{parent=projects/*/in" - + "stances/*}/tables:restore:\001*\022\354\001\n\014GetIamP" - + "olicy\022\".google.iam.v1.GetIamPolicyReques" - + "t\032\025.google.iam.v1.Policy\"\240\001\332A\010resource\202\323" - + "\344\223\002\216\001\";/v2/{resource=projects/*/instance" - + "s/*/tables/*}:getIamPolicy:\001*ZL\"G/v2/{re" - + "source=projects/*/instances/*/clusters/*" - + "/backups/*}:getIamPolicy:\001*\022\363\001\n\014SetIamPo" - + "licy\022\".google.iam.v1.SetIamPolicyRequest" - + "\032\025.google.iam.v1.Policy\"\247\001\332A\017resource,po" - + "licy\202\323\344\223\002\216\001\";/v2/{resource=projects/*/in" - + "stances/*/tables/*}:setIamPolicy:\001*ZL\"G/" - + "v2/{resource=projects/*/instances/*/clus" - + "ters/*/backups/*}:setIamPolicy:\001*\022\244\002\n\022Te" - + "stIamPermissions\022(.google.iam.v1.TestIam" - + "PermissionsRequest\032).google.iam.v1.TestI" - + "amPermissionsResponse\"\270\001\332A\024resource,perm" - + "issions\202\323\344\223\002\232\001\"A/v2/{resource=projects/*" - + "/instances/*/tables/*}:testIamPermission" - + "s:\001*ZR\"M/v2/{resource=projects/*/instanc" - + "es/*/clusters/*/backups/*}:testIamPermis" - + "sions:\001*\032\336\002\312A\034bigtableadmin.googleapis.c" - + "om\322A\273\002https://www.googleapis.com/auth/bi" - + "gtable.admin,https://www.googleapis.com/" - + "auth/bigtable.admin.table,https://www.go" - + "ogleapis.com/auth/cloud-bigtable.admin,h" - + "ttps://www.googleapis.com/auth/cloud-big" - + "table.admin.table,https://www.googleapis" - + ".com/auth/cloud-platform,https://www.goo" - + "gleapis.com/auth/cloud-platform.read-onl" - + "yB\337\001\n\034com.google.bigtable.admin.v2B\027Bigt" - + "ableTableAdminProtoP\001Z=google.golang.org" - + "/genproto/googleapis/bigtable/admin/v2;a" - + "dmin\252\002\036Google.Cloud.Bigtable.Admin.V2\312\002\036" - + "Google\\Cloud\\Bigtable\\Admin\\V2\352\002\"Google:" - + ":Cloud::Bigtable::Admin::V2b\006proto3" + + "kup\022\027\n\017next_page_token\030\002 \001(\t\"\347\001\n\021CopyBac" + + "kupRequest\022=\n\006parent\030\001 \001(\tB-\342A\001\002\372A&\n$big" + + "tableadmin.googleapis.com/Cluster\022\027\n\tbac" + + "kup_id\030\002 \001(\tB\004\342A\001\002\022C\n\rsource_backup\030\003 \001(" + + "\tB,\342A\001\002\372A%\n#bigtableadmin.googleapis.com" + + "/Backup\0225\n\013expire_time\030\004 \001(\0132\032.google.pr" + + "otobuf.TimestampB\004\342A\001\002\"\315\001\n\022CopyBackupMet" + + "adata\0226\n\004name\030\001 \001(\tB(\372A%\n#bigtableadmin." + + "googleapis.com/Backup\022@\n\022source_backup_i" + + "nfo\030\002 \001(\0132$.google.bigtable.admin.v2.Bac" + + "kupInfo\022=\n\010progress\030\003 \001(\0132+.google.bigta" + + "ble.admin.v2.OperationProgress2\242*\n\022Bigta" + + "bleTableAdmin\022\253\001\n\013CreateTable\022,.google.b" + + "igtable.admin.v2.CreateTableRequest\032\037.go" + + "ogle.bigtable.admin.v2.Table\"M\332A\025parent," + + "table_id,table\202\323\344\223\002/\"*/v2/{parent=projec" + + "ts/*/instances/*}/tables:\001*\022\212\002\n\027CreateTa" + + "bleFromSnapshot\0228.google.bigtable.admin." + + "v2.CreateTableFromSnapshotRequest\032\035.goog" + + "le.longrunning.Operation\"\225\001\312A(\n\005Table\022\037C" + + "reateTableFromSnapshotMetadata\332A\037parent," + + "table_id,source_snapshot\202\323\344\223\002B\"=/v2/{par" + + "ent=projects/*/instances/*}/tables:creat" + + "eFromSnapshot:\001*\022\244\001\n\nListTables\022+.google" + + ".bigtable.admin.v2.ListTablesRequest\032,.g" + + "oogle.bigtable.admin.v2.ListTablesRespon" + + "se\";\332A\006parent\202\323\344\223\002,\022*/v2/{parent=project" + + "s/*/instances/*}/tables\022\221\001\n\010GetTable\022).g" + + "oogle.bigtable.admin.v2.GetTableRequest\032" + + "\037.google.bigtable.admin.v2.Table\"9\332A\004nam" + + "e\202\323\344\223\002,\022*/v2/{name=projects/*/instances/" + + "*/tables/*}\022\316\001\n\013UpdateTable\022,.google.big" + + "table.admin.v2.UpdateTableRequest\032\035.goog" + + "le.longrunning.Operation\"r\312A\034\n\005Table\022\023Up" + + "dateTableMetadata\332A\021table,update_mask\202\323\344" + + "\223\002920/v2/{table.name=projects/*/instance" + + "s/*/tables/*}:\005table\022\216\001\n\013DeleteTable\022,.g" + + "oogle.bigtable.admin.v2.DeleteTableReque" + + "st\032\026.google.protobuf.Empty\"9\332A\004name\202\323\344\223\002" + + ",**/v2/{name=projects/*/instances/*/tabl" + + "es/*}\022\306\001\n\rUndeleteTable\022..google.bigtabl" + + "e.admin.v2.UndeleteTableRequest\032\035.google" + + ".longrunning.Operation\"f\312A\036\n\005Table\022\025Unde" + + "leteTableMetadata\332A\004name\202\323\344\223\0028\"3/v2/{nam" + + "e=projects/*/instances/*/tables/*}:undel" + + "ete:\001*\022\317\001\n\024ModifyColumnFamilies\0225.google" + + ".bigtable.admin.v2.ModifyColumnFamiliesR" + + "equest\032\037.google.bigtable.admin.v2.Table\"" + + "_\332A\022name,modifications\202\323\344\223\002D\"?/v2/{name=" + + "projects/*/instances/*/tables/*}:modifyC" + + "olumnFamilies:\001*\022\231\001\n\014DropRowRange\022-.goog" + + "le.bigtable.admin.v2.DropRowRangeRequest" + + "\032\026.google.protobuf.Empty\"B\202\323\344\223\002<\"7/v2/{n" + + "ame=projects/*/instances/*/tables/*}:dro" + + "pRowRange:\001*\022\350\001\n\030GenerateConsistencyToke" + + "n\0229.google.bigtable.admin.v2.GenerateCon" + + "sistencyTokenRequest\032:.google.bigtable.a" + + "dmin.v2.GenerateConsistencyTokenResponse" + + "\"U\332A\004name\202\323\344\223\002H\"C/v2/{name=projects/*/in" + + "stances/*/tables/*}:generateConsistencyT" + + "oken:\001*\022\332\001\n\020CheckConsistency\0221.google.bi" + + "gtable.admin.v2.CheckConsistencyRequest\032" + + "2.google.bigtable.admin.v2.CheckConsiste" + + "ncyResponse\"_\332A\026name,consistency_token\202\323" + + "\344\223\002@\";/v2/{name=projects/*/instances/*/t" + + "ables/*}:checkConsistency:\001*\022\352\001\n\rSnapsho" + + "tTable\022..google.bigtable.admin.v2.Snapsh" + + "otTableRequest\032\035.google.longrunning.Oper" + + "ation\"\211\001\312A!\n\010Snapshot\022\025SnapshotTableMeta" + + "data\332A$name,cluster,snapshot_id,descript" + + "ion\202\323\344\223\0028\"3/v2/{name=projects/*/instance" + + "s/*/tables/*}:snapshot:\001*\022\250\001\n\013GetSnapsho" + + "t\022,.google.bigtable.admin.v2.GetSnapshot" + + "Request\032\".google.bigtable.admin.v2.Snaps" + + "hot\"G\332A\004name\202\323\344\223\002:\0228/v2/{name=projects/*" + + "/instances/*/clusters/*/snapshots/*}\022\273\001\n" + + "\rListSnapshots\022..google.bigtable.admin.v" + + "2.ListSnapshotsRequest\032/.google.bigtable" + + ".admin.v2.ListSnapshotsResponse\"I\332A\006pare" + + "nt\202\323\344\223\002:\0228/v2/{parent=projects/*/instanc" + + "es/*/clusters/*}/snapshots\022\242\001\n\016DeleteSna" + + "pshot\022/.google.bigtable.admin.v2.DeleteS" + + "napshotRequest\032\026.google.protobuf.Empty\"G" + + "\332A\004name\202\323\344\223\002:*8/v2/{name=projects/*/inst" + + "ances/*/clusters/*/snapshots/*}\022\340\001\n\014Crea" + + "teBackup\022-.google.bigtable.admin.v2.Crea" + + "teBackupRequest\032\035.google.longrunning.Ope" + + "ration\"\201\001\312A\036\n\006Backup\022\024CreateBackupMetada" + + "ta\332A\027parent,backup_id,backup\202\323\344\223\002@\"6/v2/" + + "{parent=projects/*/instances/*/clusters/" + + "*}/backups:\006backup\022\240\001\n\tGetBackup\022*.googl" + + "e.bigtable.admin.v2.GetBackupRequest\032 .g" + + "oogle.bigtable.admin.v2.Backup\"E\332A\004name\202" + + "\323\344\223\0028\0226/v2/{name=projects/*/instances/*/" + + "clusters/*/backups/*}\022\303\001\n\014UpdateBackup\022-" + + ".google.bigtable.admin.v2.UpdateBackupRe" + + "quest\032 .google.bigtable.admin.v2.Backup\"" + + "b\332A\022backup,update_mask\202\323\344\223\002G2=/v2/{backu" + + "p.name=projects/*/instances/*/clusters/*" + + "/backups/*}:\006backup\022\234\001\n\014DeleteBackup\022-.g" + + "oogle.bigtable.admin.v2.DeleteBackupRequ" + + "est\032\026.google.protobuf.Empty\"E\332A\004name\202\323\344\223" + + "\0028*6/v2/{name=projects/*/instances/*/clu" + + "sters/*/backups/*}\022\263\001\n\013ListBackups\022,.goo" + + "gle.bigtable.admin.v2.ListBackupsRequest" + + "\032-.google.bigtable.admin.v2.ListBackupsR" + + "esponse\"G\332A\006parent\202\323\344\223\0028\0226/v2/{parent=pr" + + "ojects/*/instances/*/clusters/*}/backups" + + "\022\273\001\n\014RestoreTable\022-.google.bigtable.admi" + + "n.v2.RestoreTableRequest\032\035.google.longru" + + "nning.Operation\"]\312A\035\n\005Table\022\024RestoreTabl" + + "eMetadata\202\323\344\223\0027\"2/v2/{parent=projects/*/" + + "instances/*}/tables:restore:\001*\022\355\001\n\nCopyB" + + "ackup\022+.google.bigtable.admin.v2.CopyBac" + + "kupRequest\032\035.google.longrunning.Operatio" + + "n\"\222\001\312A\034\n\006Backup\022\022CopyBackupMetadata\332A*pa" + + "rent,backup_id,source_backup,expire_time" + + "\202\323\344\223\002@\";/v2/{parent=projects/*/instances" + + "/*/clusters/*}/backups:copy:\001*\022\354\001\n\014GetIa" + + "mPolicy\022\".google.iam.v1.GetIamPolicyRequ" + + "est\032\025.google.iam.v1.Policy\"\240\001\332A\010resource" + + "\202\323\344\223\002\216\001\";/v2/{resource=projects/*/instan" + + "ces/*/tables/*}:getIamPolicy:\001*ZL\"G/v2/{" + + "resource=projects/*/instances/*/clusters" + + "/*/backups/*}:getIamPolicy:\001*\022\363\001\n\014SetIam" + + "Policy\022\".google.iam.v1.SetIamPolicyReque" + + "st\032\025.google.iam.v1.Policy\"\247\001\332A\017resource," + + "policy\202\323\344\223\002\216\001\";/v2/{resource=projects/*/" + + "instances/*/tables/*}:setIamPolicy:\001*ZL\"" + + "G/v2/{resource=projects/*/instances/*/cl" + + "usters/*/backups/*}:setIamPolicy:\001*\022\244\002\n\022" + + "TestIamPermissions\022(.google.iam.v1.TestI" + + "amPermissionsRequest\032).google.iam.v1.Tes" + + "tIamPermissionsResponse\"\270\001\332A\024resource,pe" + + "rmissions\202\323\344\223\002\232\001\"A/v2/{resource=projects" + + "/*/instances/*/tables/*}:testIamPermissi" + + "ons:\001*ZR\"M/v2/{resource=projects/*/insta" + + "nces/*/clusters/*/backups/*}:testIamPerm" + + "issions:\001*\032\336\002\312A\034bigtableadmin.googleapis" + + ".com\322A\273\002https://www.googleapis.com/auth/" + + "bigtable.admin,https://www.googleapis.co" + + "m/auth/bigtable.admin.table,https://www." + + "googleapis.com/auth/cloud-bigtable.admin" + + ",https://www.googleapis.com/auth/cloud-b" + + "igtable.admin.table,https://www.googleap" + + "is.com/auth/cloud-platform,https://www.g" + + "oogleapis.com/auth/cloud-platform.read-o" + + "nlyB\337\001\n\034com.google.bigtable.admin.v2B\027Bi" + + "gtableTableAdminProtoP\001Z=google.golang.o" + + "rg/genproto/googleapis/bigtable/admin/v2" + + ";admin\252\002\036Google.Cloud.Bigtable.Admin.V2\312" + + "\002\036Google\\Cloud\\Bigtable\\Admin\\V2\352\002\"Googl" + + "e::Cloud::Bigtable::Admin::V2b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -751,6 +776,22 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Backups", "NextPageToken", }); + internal_static_google_bigtable_admin_v2_CopyBackupRequest_descriptor = + getDescriptor().getMessageTypes().get(33); + internal_static_google_bigtable_admin_v2_CopyBackupRequest_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_CopyBackupRequest_descriptor, + new java.lang.String[] { + "Parent", "BackupId", "SourceBackup", "ExpireTime", + }); + internal_static_google_bigtable_admin_v2_CopyBackupMetadata_descriptor = + getDescriptor().getMessageTypes().get(34); + internal_static_google_bigtable_admin_v2_CopyBackupMetadata_fieldAccessorTable = + new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( + internal_static_google_bigtable_admin_v2_CopyBackupMetadata_descriptor, + new java.lang.String[] { + "Name", "SourceBackupInfo", "Progress", + }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); registry.add(com.google.api.ClientProto.defaultHost); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CheckConsistencyRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CheckConsistencyRequest.java index 5d10d9e609..d84bebf27d 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CheckConsistencyRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CheckConsistencyRequest.java @@ -72,8 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The unique name of the Table for which to check replication consistency.
-   * Values are of the form
+   * Required. The unique name of the Table for which to check replication
+   * consistency. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{table}`.
    * 
* @@ -99,8 +99,8 @@ public java.lang.String getName() { * * *
-   * Required. The unique name of the Table for which to check replication consistency.
-   * Values are of the form
+   * Required. The unique name of the Table for which to check replication
+   * consistency. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{table}`.
    * 
* @@ -546,8 +546,8 @@ public Builder mergeFrom( * * *
-     * Required. The unique name of the Table for which to check replication consistency.
-     * Values are of the form
+     * Required. The unique name of the Table for which to check replication
+     * consistency. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* @@ -572,8 +572,8 @@ public java.lang.String getName() { * * *
-     * Required. The unique name of the Table for which to check replication consistency.
-     * Values are of the form
+     * Required. The unique name of the Table for which to check replication
+     * consistency. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* @@ -598,8 +598,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The unique name of the Table for which to check replication consistency.
-     * Values are of the form
+     * Required. The unique name of the Table for which to check replication
+     * consistency. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* @@ -623,8 +623,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The unique name of the Table for which to check replication consistency.
-     * Values are of the form
+     * Required. The unique name of the Table for which to check replication
+     * consistency. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* @@ -644,8 +644,8 @@ public Builder clearName() { * * *
-     * Required. The unique name of the Table for which to check replication consistency.
-     * Values are of the form
+     * Required. The unique name of the Table for which to check replication
+     * consistency. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CheckConsistencyRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CheckConsistencyRequestOrBuilder.java index 0c40a7371c..7b337028d4 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CheckConsistencyRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CheckConsistencyRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface CheckConsistencyRequestOrBuilder * * *
-   * Required. The unique name of the Table for which to check replication consistency.
-   * Values are of the form
+   * Required. The unique name of the Table for which to check replication
+   * consistency. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{table}`.
    * 
* @@ -43,8 +43,8 @@ public interface CheckConsistencyRequestOrBuilder * * *
-   * Required. The unique name of the Table for which to check replication consistency.
-   * Values are of the form
+   * Required. The unique name of the Table for which to check replication
+   * consistency. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{table}`.
    * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupMetadata.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupMetadata.java new file mode 100644 index 0000000000..67eb1e8f72 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupMetadata.java @@ -0,0 +1,1196 @@ +/* + * Copyright 2023 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 google.longrunning.Operation returned by
+ * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup].
+ * 
+ * + * Protobuf type {@code google.bigtable.admin.v2.CopyBackupMetadata} + */ +public final class CopyBackupMetadata extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.CopyBackupMetadata) + CopyBackupMetadataOrBuilder { + private static final long serialVersionUID = 0L; + // Use CopyBackupMetadata.newBuilder() to construct. + private CopyBackupMetadata(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CopyBackupMetadata() { + name_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CopyBackupMetadata(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_CopyBackupMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_CopyBackupMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CopyBackupMetadata.class, + com.google.bigtable.admin.v2.CopyBackupMetadata.Builder.class); + } + + public static final int NAME_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object name_ = ""; + /** + * + * + *
+   * The name of the backup being created through the copy operation.
+   * Values are of the form
+   * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+   * 
+ * + * string name = 1 [(.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; + } + } + /** + * + * + *
+   * The name of the backup being created through the copy operation.
+   * Values are of the form
+   * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+   * 
+ * + * string name = 1 [(.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; + } + } + + public static final int SOURCE_BACKUP_INFO_FIELD_NUMBER = 2; + private com.google.bigtable.admin.v2.BackupInfo sourceBackupInfo_; + /** + * + * + *
+   * Information about the source backup that is being copied from.
+   * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + * + * @return Whether the sourceBackupInfo field is set. + */ + @java.lang.Override + public boolean hasSourceBackupInfo() { + return sourceBackupInfo_ != null; + } + /** + * + * + *
+   * Information about the source backup that is being copied from.
+   * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + * + * @return The sourceBackupInfo. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.BackupInfo getSourceBackupInfo() { + return sourceBackupInfo_ == null + ? com.google.bigtable.admin.v2.BackupInfo.getDefaultInstance() + : sourceBackupInfo_; + } + /** + * + * + *
+   * Information about the source backup that is being copied from.
+   * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.BackupInfoOrBuilder getSourceBackupInfoOrBuilder() { + return sourceBackupInfo_ == null + ? com.google.bigtable.admin.v2.BackupInfo.getDefaultInstance() + : sourceBackupInfo_; + } + + public static final int PROGRESS_FIELD_NUMBER = 3; + private com.google.bigtable.admin.v2.OperationProgress progress_; + /** + * + * + *
+   * The progress of the
+   * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+   * operation.
+   * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + * + * @return Whether the progress field is set. + */ + @java.lang.Override + public boolean hasProgress() { + return progress_ != null; + } + /** + * + * + *
+   * The progress of the
+   * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+   * operation.
+   * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + * + * @return The progress. + */ + @java.lang.Override + public com.google.bigtable.admin.v2.OperationProgress getProgress() { + return progress_ == null + ? com.google.bigtable.admin.v2.OperationProgress.getDefaultInstance() + : progress_; + } + /** + * + * + *
+   * The progress of the
+   * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+   * operation.
+   * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + @java.lang.Override + public com.google.bigtable.admin.v2.OperationProgressOrBuilder getProgressOrBuilder() { + return progress_ == null + ? com.google.bigtable.admin.v2.OperationProgress.getDefaultInstance() + : progress_; + } + + 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 (sourceBackupInfo_ != null) { + output.writeMessage(2, getSourceBackupInfo()); + } + if (progress_ != null) { + output.writeMessage(3, getProgress()); + } + getUnknownFields().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 (sourceBackupInfo_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(2, getSourceBackupInfo()); + } + if (progress_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(3, getProgress()); + } + size += getUnknownFields().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.CopyBackupMetadata)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.CopyBackupMetadata other = + (com.google.bigtable.admin.v2.CopyBackupMetadata) obj; + + if (!getName().equals(other.getName())) return false; + if (hasSourceBackupInfo() != other.hasSourceBackupInfo()) return false; + if (hasSourceBackupInfo()) { + if (!getSourceBackupInfo().equals(other.getSourceBackupInfo())) return false; + } + if (hasProgress() != other.hasProgress()) return false; + if (hasProgress()) { + if (!getProgress().equals(other.getProgress())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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 (hasSourceBackupInfo()) { + hash = (37 * hash) + SOURCE_BACKUP_INFO_FIELD_NUMBER; + hash = (53 * hash) + getSourceBackupInfo().hashCode(); + } + if (hasProgress()) { + hash = (37 * hash) + PROGRESS_FIELD_NUMBER; + hash = (53 * hash) + getProgress().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.CopyBackupMetadata parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CopyBackupMetadata 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.CopyBackupMetadata parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CopyBackupMetadata 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.CopyBackupMetadata parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CopyBackupMetadata 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.CopyBackupMetadata parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CopyBackupMetadata 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.CopyBackupMetadata parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CopyBackupMetadata 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.CopyBackupMetadata 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.CopyBackupMetadata 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.CopyBackupMetadata 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 google.longrunning.Operation returned by
+   * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup].
+   * 
+ * + * Protobuf type {@code google.bigtable.admin.v2.CopyBackupMetadata} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.CopyBackupMetadata) + com.google.bigtable.admin.v2.CopyBackupMetadataOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_CopyBackupMetadata_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_CopyBackupMetadata_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CopyBackupMetadata.class, + com.google.bigtable.admin.v2.CopyBackupMetadata.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.CopyBackupMetadata.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + name_ = ""; + sourceBackupInfo_ = null; + if (sourceBackupInfoBuilder_ != null) { + sourceBackupInfoBuilder_.dispose(); + sourceBackupInfoBuilder_ = null; + } + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = 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_CopyBackupMetadata_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CopyBackupMetadata getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.CopyBackupMetadata.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CopyBackupMetadata build() { + com.google.bigtable.admin.v2.CopyBackupMetadata result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CopyBackupMetadata buildPartial() { + com.google.bigtable.admin.v2.CopyBackupMetadata result = + new com.google.bigtable.admin.v2.CopyBackupMetadata(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.CopyBackupMetadata result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.name_ = name_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.sourceBackupInfo_ = + sourceBackupInfoBuilder_ == null ? sourceBackupInfo_ : sourceBackupInfoBuilder_.build(); + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.progress_ = progressBuilder_ == null ? progress_ : progressBuilder_.build(); + } + } + + @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.CopyBackupMetadata) { + return mergeFrom((com.google.bigtable.admin.v2.CopyBackupMetadata) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.CopyBackupMetadata other) { + if (other == com.google.bigtable.admin.v2.CopyBackupMetadata.getDefaultInstance()) + return this; + if (!other.getName().isEmpty()) { + name_ = other.name_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (other.hasSourceBackupInfo()) { + mergeSourceBackupInfo(other.getSourceBackupInfo()); + } + if (other.hasProgress()) { + mergeProgress(other.getProgress()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + name_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + input.readMessage( + getSourceBackupInfoFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + input.readMessage(getProgressFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000004; + break; + } // case 26 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object name_ = ""; + /** + * + * + *
+     * The name of the backup being created through the copy operation.
+     * Values are of the form
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * string name = 1 [(.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; + } + } + /** + * + * + *
+     * The name of the backup being created through the copy operation.
+     * Values are of the form
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * string name = 1 [(.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; + } + } + /** + * + * + *
+     * The name of the backup being created through the copy operation.
+     * Values are of the form
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * string name = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the backup being created through the copy operation.
+     * Values are of the form
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return This builder for chaining. + */ + public Builder clearName() { + name_ = getDefaultInstance().getName(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * The name of the backup being created through the copy operation.
+     * Values are of the form
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * string name = 1 [(.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; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private com.google.bigtable.admin.v2.BackupInfo sourceBackupInfo_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.BackupInfo, + com.google.bigtable.admin.v2.BackupInfo.Builder, + com.google.bigtable.admin.v2.BackupInfoOrBuilder> + sourceBackupInfoBuilder_; + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + * + * @return Whether the sourceBackupInfo field is set. + */ + public boolean hasSourceBackupInfo() { + return ((bitField0_ & 0x00000002) != 0); + } + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + * + * @return The sourceBackupInfo. + */ + public com.google.bigtable.admin.v2.BackupInfo getSourceBackupInfo() { + if (sourceBackupInfoBuilder_ == null) { + return sourceBackupInfo_ == null + ? com.google.bigtable.admin.v2.BackupInfo.getDefaultInstance() + : sourceBackupInfo_; + } else { + return sourceBackupInfoBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + public Builder setSourceBackupInfo(com.google.bigtable.admin.v2.BackupInfo value) { + if (sourceBackupInfoBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + sourceBackupInfo_ = value; + } else { + sourceBackupInfoBuilder_.setMessage(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + public Builder setSourceBackupInfo( + com.google.bigtable.admin.v2.BackupInfo.Builder builderForValue) { + if (sourceBackupInfoBuilder_ == null) { + sourceBackupInfo_ = builderForValue.build(); + } else { + sourceBackupInfoBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + public Builder mergeSourceBackupInfo(com.google.bigtable.admin.v2.BackupInfo value) { + if (sourceBackupInfoBuilder_ == null) { + if (((bitField0_ & 0x00000002) != 0) + && sourceBackupInfo_ != null + && sourceBackupInfo_ != com.google.bigtable.admin.v2.BackupInfo.getDefaultInstance()) { + getSourceBackupInfoBuilder().mergeFrom(value); + } else { + sourceBackupInfo_ = value; + } + } else { + sourceBackupInfoBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + public Builder clearSourceBackupInfo() { + bitField0_ = (bitField0_ & ~0x00000002); + sourceBackupInfo_ = null; + if (sourceBackupInfoBuilder_ != null) { + sourceBackupInfoBuilder_.dispose(); + sourceBackupInfoBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + public com.google.bigtable.admin.v2.BackupInfo.Builder getSourceBackupInfoBuilder() { + bitField0_ |= 0x00000002; + onChanged(); + return getSourceBackupInfoFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + public com.google.bigtable.admin.v2.BackupInfoOrBuilder getSourceBackupInfoOrBuilder() { + if (sourceBackupInfoBuilder_ != null) { + return sourceBackupInfoBuilder_.getMessageOrBuilder(); + } else { + return sourceBackupInfo_ == null + ? com.google.bigtable.admin.v2.BackupInfo.getDefaultInstance() + : sourceBackupInfo_; + } + } + /** + * + * + *
+     * Information about the source backup that is being copied from.
+     * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.BackupInfo, + com.google.bigtable.admin.v2.BackupInfo.Builder, + com.google.bigtable.admin.v2.BackupInfoOrBuilder> + getSourceBackupInfoFieldBuilder() { + if (sourceBackupInfoBuilder_ == null) { + sourceBackupInfoBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.BackupInfo, + com.google.bigtable.admin.v2.BackupInfo.Builder, + com.google.bigtable.admin.v2.BackupInfoOrBuilder>( + getSourceBackupInfo(), getParentForChildren(), isClean()); + sourceBackupInfo_ = null; + } + return sourceBackupInfoBuilder_; + } + + private com.google.bigtable.admin.v2.OperationProgress progress_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.OperationProgress, + com.google.bigtable.admin.v2.OperationProgress.Builder, + com.google.bigtable.admin.v2.OperationProgressOrBuilder> + progressBuilder_; + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + * + * @return Whether the progress field is set. + */ + public boolean hasProgress() { + return ((bitField0_ & 0x00000004) != 0); + } + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + * + * @return The progress. + */ + public com.google.bigtable.admin.v2.OperationProgress getProgress() { + if (progressBuilder_ == null) { + return progress_ == null + ? com.google.bigtable.admin.v2.OperationProgress.getDefaultInstance() + : progress_; + } else { + return progressBuilder_.getMessage(); + } + } + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + public Builder setProgress(com.google.bigtable.admin.v2.OperationProgress value) { + if (progressBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + progress_ = value; + } else { + progressBuilder_.setMessage(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + public Builder setProgress( + com.google.bigtable.admin.v2.OperationProgress.Builder builderForValue) { + if (progressBuilder_ == null) { + progress_ = builderForValue.build(); + } else { + progressBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + public Builder mergeProgress(com.google.bigtable.admin.v2.OperationProgress value) { + if (progressBuilder_ == null) { + if (((bitField0_ & 0x00000004) != 0) + && progress_ != null + && progress_ != com.google.bigtable.admin.v2.OperationProgress.getDefaultInstance()) { + getProgressBuilder().mergeFrom(value); + } else { + progress_ = value; + } + } else { + progressBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + public Builder clearProgress() { + bitField0_ = (bitField0_ & ~0x00000004); + progress_ = null; + if (progressBuilder_ != null) { + progressBuilder_.dispose(); + progressBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + public com.google.bigtable.admin.v2.OperationProgress.Builder getProgressBuilder() { + bitField0_ |= 0x00000004; + onChanged(); + return getProgressFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + public com.google.bigtable.admin.v2.OperationProgressOrBuilder getProgressOrBuilder() { + if (progressBuilder_ != null) { + return progressBuilder_.getMessageOrBuilder(); + } else { + return progress_ == null + ? com.google.bigtable.admin.v2.OperationProgress.getDefaultInstance() + : progress_; + } + } + /** + * + * + *
+     * The progress of the
+     * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+     * operation.
+     * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.OperationProgress, + com.google.bigtable.admin.v2.OperationProgress.Builder, + com.google.bigtable.admin.v2.OperationProgressOrBuilder> + getProgressFieldBuilder() { + if (progressBuilder_ == null) { + progressBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.bigtable.admin.v2.OperationProgress, + com.google.bigtable.admin.v2.OperationProgress.Builder, + com.google.bigtable.admin.v2.OperationProgressOrBuilder>( + getProgress(), getParentForChildren(), isClean()); + progress_ = null; + } + return progressBuilder_; + } + + @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.CopyBackupMetadata) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CopyBackupMetadata) + private static final com.google.bigtable.admin.v2.CopyBackupMetadata DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.CopyBackupMetadata(); + } + + public static com.google.bigtable.admin.v2.CopyBackupMetadata getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyBackupMetadata parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.CopyBackupMetadata getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupMetadataOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupMetadataOrBuilder.java new file mode 100644 index 0000000000..036ee7f15b --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupMetadataOrBuilder.java @@ -0,0 +1,130 @@ +/* + * Copyright 2023 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 CopyBackupMetadataOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.CopyBackupMetadata) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * The name of the backup being created through the copy operation.
+   * Values are of the form
+   * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The name. + */ + java.lang.String getName(); + /** + * + * + *
+   * The name of the backup being created through the copy operation.
+   * Values are of the form
+   * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+   * 
+ * + * string name = 1 [(.google.api.resource_reference) = { ... } + * + * @return The bytes for name. + */ + com.google.protobuf.ByteString getNameBytes(); + + /** + * + * + *
+   * Information about the source backup that is being copied from.
+   * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + * + * @return Whether the sourceBackupInfo field is set. + */ + boolean hasSourceBackupInfo(); + /** + * + * + *
+   * Information about the source backup that is being copied from.
+   * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + * + * @return The sourceBackupInfo. + */ + com.google.bigtable.admin.v2.BackupInfo getSourceBackupInfo(); + /** + * + * + *
+   * Information about the source backup that is being copied from.
+   * 
+ * + * .google.bigtable.admin.v2.BackupInfo source_backup_info = 2; + */ + com.google.bigtable.admin.v2.BackupInfoOrBuilder getSourceBackupInfoOrBuilder(); + + /** + * + * + *
+   * The progress of the
+   * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+   * operation.
+   * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + * + * @return Whether the progress field is set. + */ + boolean hasProgress(); + /** + * + * + *
+   * The progress of the
+   * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+   * operation.
+   * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + * + * @return The progress. + */ + com.google.bigtable.admin.v2.OperationProgress getProgress(); + /** + * + * + *
+   * The progress of the
+   * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]
+   * operation.
+   * 
+ * + * .google.bigtable.admin.v2.OperationProgress progress = 3; + */ + com.google.bigtable.admin.v2.OperationProgressOrBuilder getProgressOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupRequest.java new file mode 100644 index 0000000000..744ce55927 --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupRequest.java @@ -0,0 +1,1428 @@ +/* + * Copyright 2023 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; + +/** + * + * + *
+ * The request for
+ * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup].
+ * 
+ * + * Protobuf type {@code google.bigtable.admin.v2.CopyBackupRequest} + */ +public final class CopyBackupRequest extends com.google.protobuf.GeneratedMessageV3 + implements + // @@protoc_insertion_point(message_implements:google.bigtable.admin.v2.CopyBackupRequest) + CopyBackupRequestOrBuilder { + private static final long serialVersionUID = 0L; + // Use CopyBackupRequest.newBuilder() to construct. + private CopyBackupRequest(com.google.protobuf.GeneratedMessageV3.Builder builder) { + super(builder); + } + + private CopyBackupRequest() { + parent_ = ""; + backupId_ = ""; + sourceBackup_ = ""; + } + + @java.lang.Override + @SuppressWarnings({"unused"}) + protected java.lang.Object newInstance(UnusedPrivateParameter unused) { + return new CopyBackupRequest(); + } + + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_CopyBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_CopyBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CopyBackupRequest.class, + com.google.bigtable.admin.v2.CopyBackupRequest.Builder.class); + } + + public static final int PARENT_FIELD_NUMBER = 1; + + @SuppressWarnings("serial") + private volatile java.lang.Object parent_ = ""; + /** + * + * + *
+   * Required. The name of the destination cluster that will contain the backup
+   * copy. The cluster must already exists. Values are of the form:
+   * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + @java.lang.Override + public java.lang.String getParent() { + java.lang.Object ref = parent_; + 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(); + parent_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The name of the destination cluster that will contain the backup
+   * copy. The cluster must already exists. Values are of the form:
+   * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + @java.lang.Override + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int BACKUP_ID_FIELD_NUMBER = 2; + + @SuppressWarnings("serial") + private volatile java.lang.Object backupId_ = ""; + /** + * + * + *
+   * Required. The id of the new backup. The `backup_id` along with `parent`
+   * are combined as {parent}/backups/{backup_id} to create the full backup
+   * name, of the form:
+   * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+   * This string must be between 1 and 50 characters in length and match the
+   * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + @java.lang.Override + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + 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(); + backupId_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The id of the new backup. The `backup_id` along with `parent`
+   * are combined as {parent}/backups/{backup_id} to create the full backup
+   * name, of the form:
+   * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+   * This string must be between 1 and 50 characters in length and match the
+   * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + @java.lang.Override + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int SOURCE_BACKUP_FIELD_NUMBER = 3; + + @SuppressWarnings("serial") + private volatile java.lang.Object sourceBackup_ = ""; + /** + * + * + *
+   * Required. The source backup to be copied from.
+   * The source backup needs to be in READY state for it to be copied.
+   * Copying a copied backup is not allowed.
+   * Once CopyBackup is in progress, the source backup cannot be deleted or
+   * cleaned up on expiration until CopyBackup is finished.
+   * Values are of the form:
+   * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+   * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceBackup. + */ + @java.lang.Override + public java.lang.String getSourceBackup() { + java.lang.Object ref = sourceBackup_; + 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(); + sourceBackup_ = s; + return s; + } + } + /** + * + * + *
+   * Required. The source backup to be copied from.
+   * The source backup needs to be in READY state for it to be copied.
+   * Copying a copied backup is not allowed.
+   * Once CopyBackup is in progress, the source backup cannot be deleted or
+   * cleaned up on expiration until CopyBackup is finished.
+   * Values are of the form:
+   * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+   * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceBackup. + */ + @java.lang.Override + public com.google.protobuf.ByteString getSourceBackupBytes() { + java.lang.Object ref = sourceBackup_; + if (ref instanceof java.lang.String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBackup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + + public static final int EXPIRE_TIME_FIELD_NUMBER = 4; + private com.google.protobuf.Timestamp expireTime_; + /** + * + * + *
+   * Required. Required. The expiration time of the copied backup with
+   * microsecond granularity that must be at least 6 hours and at most 30 days
+   * from the time the request is received. Once the `expire_time` has
+   * passed, Cloud Bigtable will delete the backup and free the resources used
+   * by the backup.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expireTime field is set. + */ + @java.lang.Override + public boolean hasExpireTime() { + return expireTime_ != null; + } + /** + * + * + *
+   * Required. Required. The expiration time of the copied backup with
+   * microsecond granularity that must be at least 6 hours and at most 30 days
+   * from the time the request is received. Once the `expire_time` has
+   * passed, Cloud Bigtable will delete the backup and free the resources used
+   * by the backup.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expireTime. + */ + @java.lang.Override + public com.google.protobuf.Timestamp getExpireTime() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + /** + * + * + *
+   * Required. Required. The expiration time of the copied backup with
+   * microsecond granularity that must be at least 6 hours and at most 30 days
+   * from the time the request is received. Once the `expire_time` has
+   * passed, Cloud Bigtable will delete the backup and free the resources used
+   * by the backup.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + @java.lang.Override + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + return expireTime_ == null ? com.google.protobuf.Timestamp.getDefaultInstance() : expireTime_; + } + + 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(parent_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 2, backupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { + com.google.protobuf.GeneratedMessageV3.writeString(output, 3, sourceBackup_); + } + if (expireTime_ != null) { + output.writeMessage(4, getExpireTime()); + } + getUnknownFields().writeTo(output); + } + + @java.lang.Override + public int getSerializedSize() { + int size = memoizedSize; + if (size != -1) return size; + + size = 0; + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(parent_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(1, parent_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(backupId_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(2, backupId_); + } + if (!com.google.protobuf.GeneratedMessageV3.isStringEmpty(sourceBackup_)) { + size += com.google.protobuf.GeneratedMessageV3.computeStringSize(3, sourceBackup_); + } + if (expireTime_ != null) { + size += com.google.protobuf.CodedOutputStream.computeMessageSize(4, getExpireTime()); + } + size += getUnknownFields().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.CopyBackupRequest)) { + return super.equals(obj); + } + com.google.bigtable.admin.v2.CopyBackupRequest other = + (com.google.bigtable.admin.v2.CopyBackupRequest) obj; + + if (!getParent().equals(other.getParent())) return false; + if (!getBackupId().equals(other.getBackupId())) return false; + if (!getSourceBackup().equals(other.getSourceBackup())) return false; + if (hasExpireTime() != other.hasExpireTime()) return false; + if (hasExpireTime()) { + if (!getExpireTime().equals(other.getExpireTime())) return false; + } + if (!getUnknownFields().equals(other.getUnknownFields())) 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) + PARENT_FIELD_NUMBER; + hash = (53 * hash) + getParent().hashCode(); + hash = (37 * hash) + BACKUP_ID_FIELD_NUMBER; + hash = (53 * hash) + getBackupId().hashCode(); + hash = (37 * hash) + SOURCE_BACKUP_FIELD_NUMBER; + hash = (53 * hash) + getSourceBackup().hashCode(); + if (hasExpireTime()) { + hash = (37 * hash) + EXPIRE_TIME_FIELD_NUMBER; + hash = (53 * hash) + getExpireTime().hashCode(); + } + hash = (29 * hash) + getUnknownFields().hashCode(); + memoizedHashCode = hash; + return hash; + } + + public static com.google.bigtable.admin.v2.CopyBackupRequest parseFrom(java.nio.ByteBuffer data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CopyBackupRequest 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.CopyBackupRequest parseFrom( + com.google.protobuf.ByteString data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CopyBackupRequest 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.CopyBackupRequest parseFrom(byte[] data) + throws com.google.protobuf.InvalidProtocolBufferException { + return PARSER.parseFrom(data); + } + + public static com.google.bigtable.admin.v2.CopyBackupRequest 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.CopyBackupRequest parseFrom(java.io.InputStream input) + throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CopyBackupRequest 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.CopyBackupRequest parseDelimitedFrom( + java.io.InputStream input) throws java.io.IOException { + return com.google.protobuf.GeneratedMessageV3.parseDelimitedWithIOException(PARSER, input); + } + + public static com.google.bigtable.admin.v2.CopyBackupRequest 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.CopyBackupRequest 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.CopyBackupRequest 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.CopyBackupRequest 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; + } + /** + * + * + *
+   * The request for
+   * [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup].
+   * 
+ * + * Protobuf type {@code google.bigtable.admin.v2.CopyBackupRequest} + */ + public static final class Builder extends com.google.protobuf.GeneratedMessageV3.Builder + implements + // @@protoc_insertion_point(builder_implements:google.bigtable.admin.v2.CopyBackupRequest) + com.google.bigtable.admin.v2.CopyBackupRequestOrBuilder { + public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_CopyBackupRequest_descriptor; + } + + @java.lang.Override + protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable + internalGetFieldAccessorTable() { + return com.google.bigtable.admin.v2.BigtableTableAdminProto + .internal_static_google_bigtable_admin_v2_CopyBackupRequest_fieldAccessorTable + .ensureFieldAccessorsInitialized( + com.google.bigtable.admin.v2.CopyBackupRequest.class, + com.google.bigtable.admin.v2.CopyBackupRequest.Builder.class); + } + + // Construct using com.google.bigtable.admin.v2.CopyBackupRequest.newBuilder() + private Builder() {} + + private Builder(com.google.protobuf.GeneratedMessageV3.BuilderParent parent) { + super(parent); + } + + @java.lang.Override + public Builder clear() { + super.clear(); + bitField0_ = 0; + parent_ = ""; + backupId_ = ""; + sourceBackup_ = ""; + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = 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_CopyBackupRequest_descriptor; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CopyBackupRequest getDefaultInstanceForType() { + return com.google.bigtable.admin.v2.CopyBackupRequest.getDefaultInstance(); + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CopyBackupRequest build() { + com.google.bigtable.admin.v2.CopyBackupRequest result = buildPartial(); + if (!result.isInitialized()) { + throw newUninitializedMessageException(result); + } + return result; + } + + @java.lang.Override + public com.google.bigtable.admin.v2.CopyBackupRequest buildPartial() { + com.google.bigtable.admin.v2.CopyBackupRequest result = + new com.google.bigtable.admin.v2.CopyBackupRequest(this); + if (bitField0_ != 0) { + buildPartial0(result); + } + onBuilt(); + return result; + } + + private void buildPartial0(com.google.bigtable.admin.v2.CopyBackupRequest result) { + int from_bitField0_ = bitField0_; + if (((from_bitField0_ & 0x00000001) != 0)) { + result.parent_ = parent_; + } + if (((from_bitField0_ & 0x00000002) != 0)) { + result.backupId_ = backupId_; + } + if (((from_bitField0_ & 0x00000004) != 0)) { + result.sourceBackup_ = sourceBackup_; + } + if (((from_bitField0_ & 0x00000008) != 0)) { + result.expireTime_ = expireTimeBuilder_ == null ? expireTime_ : expireTimeBuilder_.build(); + } + } + + @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.CopyBackupRequest) { + return mergeFrom((com.google.bigtable.admin.v2.CopyBackupRequest) other); + } else { + super.mergeFrom(other); + return this; + } + } + + public Builder mergeFrom(com.google.bigtable.admin.v2.CopyBackupRequest other) { + if (other == com.google.bigtable.admin.v2.CopyBackupRequest.getDefaultInstance()) return this; + if (!other.getParent().isEmpty()) { + parent_ = other.parent_; + bitField0_ |= 0x00000001; + onChanged(); + } + if (!other.getBackupId().isEmpty()) { + backupId_ = other.backupId_; + bitField0_ |= 0x00000002; + onChanged(); + } + if (!other.getSourceBackup().isEmpty()) { + sourceBackup_ = other.sourceBackup_; + bitField0_ |= 0x00000004; + onChanged(); + } + if (other.hasExpireTime()) { + mergeExpireTime(other.getExpireTime()); + } + this.mergeUnknownFields(other.getUnknownFields()); + 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 { + if (extensionRegistry == null) { + throw new java.lang.NullPointerException(); + } + try { + boolean done = false; + while (!done) { + int tag = input.readTag(); + switch (tag) { + case 0: + done = true; + break; + case 10: + { + parent_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000001; + break; + } // case 10 + case 18: + { + backupId_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000002; + break; + } // case 18 + case 26: + { + sourceBackup_ = input.readStringRequireUtf8(); + bitField0_ |= 0x00000004; + break; + } // case 26 + case 34: + { + input.readMessage(getExpireTimeFieldBuilder().getBuilder(), extensionRegistry); + bitField0_ |= 0x00000008; + break; + } // case 34 + default: + { + if (!super.parseUnknownField(input, extensionRegistry, tag)) { + done = true; // was an endgroup tag + } + break; + } // default: + } // switch (tag) + } // while (!done) + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.unwrapIOException(); + } finally { + onChanged(); + } // finally + return this; + } + + private int bitField0_; + + private java.lang.Object parent_ = ""; + /** + * + * + *
+     * Required. The name of the destination cluster that will contain the backup
+     * copy. The cluster must already exists. Values are of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + public java.lang.String getParent() { + java.lang.Object ref = parent_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + parent_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The name of the destination cluster that will contain the backup
+     * copy. The cluster must already exists. Values are of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + public com.google.protobuf.ByteString getParentBytes() { + java.lang.Object ref = parent_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + parent_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The name of the destination cluster that will contain the backup
+     * copy. The cluster must already exists. Values are of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The parent to set. + * @return This builder for chaining. + */ + public Builder setParent(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the destination cluster that will contain the backup
+     * copy. The cluster must already exists. Values are of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearParent() { + parent_ = getDefaultInstance().getParent(); + bitField0_ = (bitField0_ & ~0x00000001); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The name of the destination cluster that will contain the backup
+     * copy. The cluster must already exists. Values are of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+     * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for parent to set. + * @return This builder for chaining. + */ + public Builder setParentBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + parent_ = value; + bitField0_ |= 0x00000001; + onChanged(); + return this; + } + + private java.lang.Object backupId_ = ""; + /** + * + * + *
+     * Required. The id of the new backup. The `backup_id` along with `parent`
+     * are combined as {parent}/backups/{backup_id} to create the full backup
+     * name, of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+     * This string must be between 1 and 50 characters in length and match the
+     * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + public java.lang.String getBackupId() { + java.lang.Object ref = backupId_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + backupId_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The id of the new backup. The `backup_id` along with `parent`
+     * are combined as {parent}/backups/{backup_id} to create the full backup
+     * name, of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+     * This string must be between 1 and 50 characters in length and match the
+     * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + public com.google.protobuf.ByteString getBackupIdBytes() { + java.lang.Object ref = backupId_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + backupId_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The id of the new backup. The `backup_id` along with `parent`
+     * are combined as {parent}/backups/{backup_id} to create the full backup
+     * name, of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+     * This string must be between 1 and 50 characters in length and match the
+     * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupId(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + backupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The id of the new backup. The `backup_id` along with `parent`
+     * are combined as {parent}/backups/{backup_id} to create the full backup
+     * name, of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+     * This string must be between 1 and 50 characters in length and match the
+     * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return This builder for chaining. + */ + public Builder clearBackupId() { + backupId_ = getDefaultInstance().getBackupId(); + bitField0_ = (bitField0_ & ~0x00000002); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The id of the new backup. The `backup_id` along with `parent`
+     * are combined as {parent}/backups/{backup_id} to create the full backup
+     * name, of the form:
+     * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+     * This string must be between 1 and 50 characters in length and match the
+     * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+     * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @param value The bytes for backupId to set. + * @return This builder for chaining. + */ + public Builder setBackupIdBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + backupId_ = value; + bitField0_ |= 0x00000002; + onChanged(); + return this; + } + + private java.lang.Object sourceBackup_ = ""; + /** + * + * + *
+     * Required. The source backup to be copied from.
+     * The source backup needs to be in READY state for it to be copied.
+     * Copying a copied backup is not allowed.
+     * Once CopyBackup is in progress, the source backup cannot be deleted or
+     * cleaned up on expiration until CopyBackup is finished.
+     * Values are of the form:
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceBackup. + */ + public java.lang.String getSourceBackup() { + java.lang.Object ref = sourceBackup_; + if (!(ref instanceof java.lang.String)) { + com.google.protobuf.ByteString bs = (com.google.protobuf.ByteString) ref; + java.lang.String s = bs.toStringUtf8(); + sourceBackup_ = s; + return s; + } else { + return (java.lang.String) ref; + } + } + /** + * + * + *
+     * Required. The source backup to be copied from.
+     * The source backup needs to be in READY state for it to be copied.
+     * Copying a copied backup is not allowed.
+     * Once CopyBackup is in progress, the source backup cannot be deleted or
+     * cleaned up on expiration until CopyBackup is finished.
+     * Values are of the form:
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceBackup. + */ + public com.google.protobuf.ByteString getSourceBackupBytes() { + java.lang.Object ref = sourceBackup_; + if (ref instanceof String) { + com.google.protobuf.ByteString b = + com.google.protobuf.ByteString.copyFromUtf8((java.lang.String) ref); + sourceBackup_ = b; + return b; + } else { + return (com.google.protobuf.ByteString) ref; + } + } + /** + * + * + *
+     * Required. The source backup to be copied from.
+     * The source backup needs to be in READY state for it to be copied.
+     * Copying a copied backup is not allowed.
+     * Once CopyBackup is in progress, the source backup cannot be deleted or
+     * cleaned up on expiration until CopyBackup is finished.
+     * Values are of the form:
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The sourceBackup to set. + * @return This builder for chaining. + */ + public Builder setSourceBackup(java.lang.String value) { + if (value == null) { + throw new NullPointerException(); + } + sourceBackup_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The source backup to be copied from.
+     * The source backup needs to be in READY state for it to be copied.
+     * Copying a copied backup is not allowed.
+     * Once CopyBackup is in progress, the source backup cannot be deleted or
+     * cleaned up on expiration until CopyBackup is finished.
+     * Values are of the form:
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return This builder for chaining. + */ + public Builder clearSourceBackup() { + sourceBackup_ = getDefaultInstance().getSourceBackup(); + bitField0_ = (bitField0_ & ~0x00000004); + onChanged(); + return this; + } + /** + * + * + *
+     * Required. The source backup to be copied from.
+     * The source backup needs to be in READY state for it to be copied.
+     * Copying a copied backup is not allowed.
+     * Once CopyBackup is in progress, the source backup cannot be deleted or
+     * cleaned up on expiration until CopyBackup is finished.
+     * Values are of the form:
+     * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+     * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @param value The bytes for sourceBackup to set. + * @return This builder for chaining. + */ + public Builder setSourceBackupBytes(com.google.protobuf.ByteString value) { + if (value == null) { + throw new NullPointerException(); + } + checkByteStringIsUtf8(value); + sourceBackup_ = value; + bitField0_ |= 0x00000004; + onChanged(); + return this; + } + + private com.google.protobuf.Timestamp expireTime_; + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + expireTimeBuilder_; + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expireTime field is set. + */ + public boolean hasExpireTime() { + return ((bitField0_ & 0x00000008) != 0); + } + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expireTime. + */ + public com.google.protobuf.Timestamp getExpireTime() { + if (expireTimeBuilder_ == null) { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } else { + return expireTimeBuilder_.getMessage(); + } + } + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (value == null) { + throw new NullPointerException(); + } + expireTime_ = value; + } else { + expireTimeBuilder_.setMessage(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue) { + if (expireTimeBuilder_ == null) { + expireTime_ = builderForValue.build(); + } else { + expireTimeBuilder_.setMessage(builderForValue.build()); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder mergeExpireTime(com.google.protobuf.Timestamp value) { + if (expireTimeBuilder_ == null) { + if (((bitField0_ & 0x00000008) != 0) + && expireTime_ != null + && expireTime_ != com.google.protobuf.Timestamp.getDefaultInstance()) { + getExpireTimeBuilder().mergeFrom(value); + } else { + expireTime_ = value; + } + } else { + expireTimeBuilder_.mergeFrom(value); + } + bitField0_ |= 0x00000008; + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public Builder clearExpireTime() { + bitField0_ = (bitField0_ & ~0x00000008); + expireTime_ = null; + if (expireTimeBuilder_ != null) { + expireTimeBuilder_.dispose(); + expireTimeBuilder_ = null; + } + onChanged(); + return this; + } + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder() { + bitField0_ |= 0x00000008; + onChanged(); + return getExpireTimeFieldBuilder().getBuilder(); + } + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder() { + if (expireTimeBuilder_ != null) { + return expireTimeBuilder_.getMessageOrBuilder(); + } else { + return expireTime_ == null + ? com.google.protobuf.Timestamp.getDefaultInstance() + : expireTime_; + } + } + /** + * + * + *
+     * Required. Required. The expiration time of the copied backup with
+     * microsecond granularity that must be at least 6 hours and at most 30 days
+     * from the time the request is received. Once the `expire_time` has
+     * passed, Cloud Bigtable will delete the backup and free the resources used
+     * by the backup.
+     * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + private com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder> + getExpireTimeFieldBuilder() { + if (expireTimeBuilder_ == null) { + expireTimeBuilder_ = + new com.google.protobuf.SingleFieldBuilderV3< + com.google.protobuf.Timestamp, + com.google.protobuf.Timestamp.Builder, + com.google.protobuf.TimestampOrBuilder>( + getExpireTime(), getParentForChildren(), isClean()); + expireTime_ = null; + } + return expireTimeBuilder_; + } + + @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.CopyBackupRequest) + } + + // @@protoc_insertion_point(class_scope:google.bigtable.admin.v2.CopyBackupRequest) + private static final com.google.bigtable.admin.v2.CopyBackupRequest DEFAULT_INSTANCE; + + static { + DEFAULT_INSTANCE = new com.google.bigtable.admin.v2.CopyBackupRequest(); + } + + public static com.google.bigtable.admin.v2.CopyBackupRequest getDefaultInstance() { + return DEFAULT_INSTANCE; + } + + private static final com.google.protobuf.Parser PARSER = + new com.google.protobuf.AbstractParser() { + @java.lang.Override + public CopyBackupRequest parsePartialFrom( + com.google.protobuf.CodedInputStream input, + com.google.protobuf.ExtensionRegistryLite extensionRegistry) + throws com.google.protobuf.InvalidProtocolBufferException { + Builder builder = newBuilder(); + try { + builder.mergeFrom(input, extensionRegistry); + } catch (com.google.protobuf.InvalidProtocolBufferException e) { + throw e.setUnfinishedMessage(builder.buildPartial()); + } catch (com.google.protobuf.UninitializedMessageException e) { + throw e.asInvalidProtocolBufferException().setUnfinishedMessage(builder.buildPartial()); + } catch (java.io.IOException e) { + throw new com.google.protobuf.InvalidProtocolBufferException(e) + .setUnfinishedMessage(builder.buildPartial()); + } + return builder.buildPartial(); + } + }; + + 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.CopyBackupRequest getDefaultInstanceForType() { + return DEFAULT_INSTANCE; + } +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupRequestOrBuilder.java new file mode 100644 index 0000000000..ba72ae1dfb --- /dev/null +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CopyBackupRequestOrBuilder.java @@ -0,0 +1,184 @@ +/* + * Copyright 2023 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 CopyBackupRequestOrBuilder + extends + // @@protoc_insertion_point(interface_extends:google.bigtable.admin.v2.CopyBackupRequest) + com.google.protobuf.MessageOrBuilder { + + /** + * + * + *
+   * Required. The name of the destination cluster that will contain the backup
+   * copy. The cluster must already exists. Values are of the form:
+   * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The parent. + */ + java.lang.String getParent(); + /** + * + * + *
+   * Required. The name of the destination cluster that will contain the backup
+   * copy. The cluster must already exists. Values are of the form:
+   * `projects/{project}/instances/{instance}/clusters/{cluster}`.
+   * 
+ * + * + * string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for parent. + */ + com.google.protobuf.ByteString getParentBytes(); + + /** + * + * + *
+   * Required. The id of the new backup. The `backup_id` along with `parent`
+   * are combined as {parent}/backups/{backup_id} to create the full backup
+   * name, of the form:
+   * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+   * This string must be between 1 and 50 characters in length and match the
+   * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The backupId. + */ + java.lang.String getBackupId(); + /** + * + * + *
+   * Required. The id of the new backup. The `backup_id` along with `parent`
+   * are combined as {parent}/backups/{backup_id} to create the full backup
+   * name, of the form:
+   * `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`.
+   * This string must be between 1 and 50 characters in length and match the
+   * regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*.
+   * 
+ * + * string backup_id = 2 [(.google.api.field_behavior) = REQUIRED]; + * + * @return The bytes for backupId. + */ + com.google.protobuf.ByteString getBackupIdBytes(); + + /** + * + * + *
+   * Required. The source backup to be copied from.
+   * The source backup needs to be in READY state for it to be copied.
+   * Copying a copied backup is not allowed.
+   * Once CopyBackup is in progress, the source backup cannot be deleted or
+   * cleaned up on expiration until CopyBackup is finished.
+   * Values are of the form:
+   * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+   * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The sourceBackup. + */ + java.lang.String getSourceBackup(); + /** + * + * + *
+   * Required. The source backup to be copied from.
+   * The source backup needs to be in READY state for it to be copied.
+   * Copying a copied backup is not allowed.
+   * Once CopyBackup is in progress, the source backup cannot be deleted or
+   * cleaned up on expiration until CopyBackup is finished.
+   * Values are of the form:
+   * `projects/<project>/instances/<instance>/clusters/<cluster>/backups/<backup>`.
+   * 
+ * + * + * string source_backup = 3 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... } + * + * + * @return The bytes for sourceBackup. + */ + com.google.protobuf.ByteString getSourceBackupBytes(); + + /** + * + * + *
+   * Required. Required. The expiration time of the copied backup with
+   * microsecond granularity that must be at least 6 hours and at most 30 days
+   * from the time the request is received. Once the `expire_time` has
+   * passed, Cloud Bigtable will delete the backup and free the resources used
+   * by the backup.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return Whether the expireTime field is set. + */ + boolean hasExpireTime(); + /** + * + * + *
+   * Required. Required. The expiration time of the copied backup with
+   * microsecond granularity that must be at least 6 hours and at most 30 days
+   * from the time the request is received. Once the `expire_time` has
+   * passed, Cloud Bigtable will delete the backup and free the resources used
+   * by the backup.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + * + * @return The expireTime. + */ + com.google.protobuf.Timestamp getExpireTime(); + /** + * + * + *
+   * Required. Required. The expiration time of the copied backup with
+   * microsecond granularity that must be at least 6 hours and at most 30 days
+   * from the time the request is received. Once the `expire_time` has
+   * passed, Cloud Bigtable will delete the backup and free the resources used
+   * by the backup.
+   * 
+ * + * .google.protobuf.Timestamp expire_time = 4 [(.google.api.field_behavior) = REQUIRED]; + * + */ + com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder(); +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateBackupRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateBackupRequest.java index 4374feafa0..dc1ad7b4b7 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateBackupRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateBackupRequest.java @@ -22,7 +22,8 @@ * * *
- * The request for [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup].
+ * The request for
+ * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup].
  * 
* * Protobuf type {@code google.bigtable.admin.v2.CreateBackupRequest} @@ -418,7 +419,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup].
+   * The request for
+   * [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup].
    * 
* * Protobuf type {@code google.bigtable.admin.v2.CreateBackupRequest} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotRequest.java index 90eb8f86bf..03c9da72c9 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotRequest.java @@ -136,8 +136,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Required. The name by which the new table should be referred to within the parent
-   * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+   * Required. The name by which the new table should be referred to within the
+   * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
    * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -160,8 +160,8 @@ public java.lang.String getTableId() { * * *
-   * Required. The name by which the new table should be referred to within the parent
-   * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+   * Required. The name by which the new table should be referred to within the
+   * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
    * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -189,9 +189,9 @@ public com.google.protobuf.ByteString getTableIdBytes() { * * *
-   * Required. The unique name of the snapshot from which to restore the table. The
-   * snapshot and the table must be in the same instance.
-   * Values are of the form
+   * Required. The unique name of the snapshot from which to restore the table.
+   * The snapshot and the table must be in the same instance. Values are of the
+   * form
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
    * 
* @@ -217,9 +217,9 @@ public java.lang.String getSourceSnapshot() { * * *
-   * Required. The unique name of the snapshot from which to restore the table. The
-   * snapshot and the table must be in the same instance.
-   * Values are of the form
+   * Required. The unique name of the snapshot from which to restore the table.
+   * The snapshot and the table must be in the same instance. Values are of the
+   * form
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
    * 
* @@ -765,8 +765,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -788,8 +788,8 @@ public java.lang.String getTableId() { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -811,8 +811,8 @@ public com.google.protobuf.ByteString getTableIdBytes() { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -833,8 +833,8 @@ public Builder setTableId(java.lang.String value) { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -851,8 +851,8 @@ public Builder clearTableId() { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -876,9 +876,9 @@ public Builder setTableIdBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The unique name of the snapshot from which to restore the table. The
-     * snapshot and the table must be in the same instance.
-     * Values are of the form
+     * Required. The unique name of the snapshot from which to restore the table.
+     * The snapshot and the table must be in the same instance. Values are of the
+     * form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
* @@ -903,9 +903,9 @@ public java.lang.String getSourceSnapshot() { * * *
-     * Required. The unique name of the snapshot from which to restore the table. The
-     * snapshot and the table must be in the same instance.
-     * Values are of the form
+     * Required. The unique name of the snapshot from which to restore the table.
+     * The snapshot and the table must be in the same instance. Values are of the
+     * form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
* @@ -930,9 +930,9 @@ public com.google.protobuf.ByteString getSourceSnapshotBytes() { * * *
-     * Required. The unique name of the snapshot from which to restore the table. The
-     * snapshot and the table must be in the same instance.
-     * Values are of the form
+     * Required. The unique name of the snapshot from which to restore the table.
+     * The snapshot and the table must be in the same instance. Values are of the
+     * form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
* @@ -956,9 +956,9 @@ public Builder setSourceSnapshot(java.lang.String value) { * * *
-     * Required. The unique name of the snapshot from which to restore the table. The
-     * snapshot and the table must be in the same instance.
-     * Values are of the form
+     * Required. The unique name of the snapshot from which to restore the table.
+     * The snapshot and the table must be in the same instance. Values are of the
+     * form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
* @@ -978,9 +978,9 @@ public Builder clearSourceSnapshot() { * * *
-     * Required. The unique name of the snapshot from which to restore the table. The
-     * snapshot and the table must be in the same instance.
-     * Values are of the form
+     * Required. The unique name of the snapshot from which to restore the table.
+     * The snapshot and the table must be in the same instance. Values are of the
+     * form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotRequestOrBuilder.java index db4fc23d26..767bffe049 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableFromSnapshotRequestOrBuilder.java @@ -58,8 +58,8 @@ public interface CreateTableFromSnapshotRequestOrBuilder * * *
-   * Required. The name by which the new table should be referred to within the parent
-   * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+   * Required. The name by which the new table should be referred to within the
+   * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
    * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -71,8 +71,8 @@ public interface CreateTableFromSnapshotRequestOrBuilder * * *
-   * Required. The name by which the new table should be referred to within the parent
-   * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+   * Required. The name by which the new table should be referred to within the
+   * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
    * 
* * string table_id = 2 [(.google.api.field_behavior) = REQUIRED]; @@ -85,9 +85,9 @@ public interface CreateTableFromSnapshotRequestOrBuilder * * *
-   * Required. The unique name of the snapshot from which to restore the table. The
-   * snapshot and the table must be in the same instance.
-   * Values are of the form
+   * Required. The unique name of the snapshot from which to restore the table.
+   * The snapshot and the table must be in the same instance. Values are of the
+   * form
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
    * 
* @@ -102,9 +102,9 @@ public interface CreateTableFromSnapshotRequestOrBuilder * * *
-   * Required. The unique name of the snapshot from which to restore the table. The
-   * snapshot and the table must be in the same instance.
-   * Values are of the form
+   * Required. The unique name of the snapshot from which to restore the table.
+   * The snapshot and the table must be in the same instance. Values are of the
+   * form
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
    * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableRequest.java index b09ecb44b2..ae89f8028b 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableRequest.java @@ -674,8 +674,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-   * Required. The name by which the new table should be referred to within the parent
-   * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+   * Required. The name by which the new table should be referred to within the
+   * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
    * Maximum 50 characters.
    * 
* @@ -699,8 +699,8 @@ public java.lang.String getTableId() { * * *
-   * Required. The name by which the new table should be referred to within the parent
-   * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+   * Required. The name by which the new table should be referred to within the
+   * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
    * Maximum 50 characters.
    * 
* @@ -1515,8 +1515,8 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * Maximum 50 characters.
      * 
* @@ -1539,8 +1539,8 @@ public java.lang.String getTableId() { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * Maximum 50 characters.
      * 
* @@ -1563,8 +1563,8 @@ public com.google.protobuf.ByteString getTableIdBytes() { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * Maximum 50 characters.
      * 
* @@ -1586,8 +1586,8 @@ public Builder setTableId(java.lang.String value) { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * Maximum 50 characters.
      * 
* @@ -1605,8 +1605,8 @@ public Builder clearTableId() { * * *
-     * Required. The name by which the new table should be referred to within the parent
-     * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+     * Required. The name by which the new table should be referred to within the
+     * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
      * Maximum 50 characters.
      * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableRequestOrBuilder.java index cdf535cdd7..ff21da27a7 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/CreateTableRequestOrBuilder.java @@ -58,8 +58,8 @@ public interface CreateTableRequestOrBuilder * * *
-   * Required. The name by which the new table should be referred to within the parent
-   * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+   * Required. The name by which the new table should be referred to within the
+   * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
    * Maximum 50 characters.
    * 
* @@ -72,8 +72,8 @@ public interface CreateTableRequestOrBuilder * * *
-   * Required. The name by which the new table should be referred to within the parent
-   * instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
+   * Required. The name by which the new table should be referred to within the
+   * parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`.
    * Maximum 50 characters.
    * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteBackupRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteBackupRequest.java index f33cf6b081..f58d86efbc 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteBackupRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/DeleteBackupRequest.java @@ -22,7 +22,8 @@ * * *
- * The request for [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup].
+ * The request for
+ * [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup].
  * 
* * Protobuf type {@code google.bigtable.admin.v2.DeleteBackupRequest} @@ -284,7 +285,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup].
+   * The request for
+   * [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup].
    * 
* * Protobuf type {@code google.bigtable.admin.v2.DeleteBackupRequest} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfo.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfo.java index 03f635c4a4..5f70d0f713 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfo.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfo.java @@ -286,8 +286,9 @@ public com.google.bigtable.admin.v2.EncryptionInfo.EncryptionType getEncryptionT * * *
-   * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-   * Regardless of status, the existing data is always encrypted at rest.
+   * Output only. The status of encrypt/decrypt calls on underlying data for
+   * this resource. Regardless of status, the existing data is always encrypted
+   * at rest.
    * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -303,8 +304,9 @@ public boolean hasEncryptionStatus() { * * *
-   * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-   * Regardless of status, the existing data is always encrypted at rest.
+   * Output only. The status of encrypt/decrypt calls on underlying data for
+   * this resource. Regardless of status, the existing data is always encrypted
+   * at rest.
    * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -322,8 +324,9 @@ public com.google.rpc.Status getEncryptionStatus() { * * *
-   * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-   * Regardless of status, the existing data is always encrypted at rest.
+   * Output only. The status of encrypt/decrypt calls on underlying data for
+   * this resource. Regardless of status, the existing data is always encrypted
+   * at rest.
    * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -344,8 +347,8 @@ public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() { * * *
-   * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-   * in use for the data underlying this table.
+   * Output only. The version of the Cloud KMS key specified in the parent
+   * cluster that is in use for the data underlying this table.
    * 
* * @@ -370,8 +373,8 @@ public java.lang.String getKmsKeyVersion() { * * *
-   * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-   * in use for the data underlying this table.
+   * Output only. The version of the Cloud KMS key specified in the parent
+   * cluster that is in use for the data underlying this table.
    * 
* * @@ -907,8 +910,9 @@ public Builder clearEncryptionType() { * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -923,8 +927,9 @@ public boolean hasEncryptionStatus() { * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -945,8 +950,9 @@ public com.google.rpc.Status getEncryptionStatus() { * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -969,8 +975,9 @@ public Builder setEncryptionStatus(com.google.rpc.Status value) { * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -990,8 +997,9 @@ public Builder setEncryptionStatus(com.google.rpc.Status.Builder builderForValue * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1017,8 +1025,9 @@ public Builder mergeEncryptionStatus(com.google.rpc.Status value) { * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1038,8 +1047,9 @@ public Builder clearEncryptionStatus() { * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1054,8 +1064,9 @@ public com.google.rpc.Status.Builder getEncryptionStatusBuilder() { * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1074,8 +1085,9 @@ public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() { * * *
-     * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-     * Regardless of status, the existing data is always encrypted at rest.
+     * Output only. The status of encrypt/decrypt calls on underlying data for
+     * this resource. Regardless of status, the existing data is always encrypted
+     * at rest.
      * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -1101,8 +1113,8 @@ public com.google.rpc.StatusOrBuilder getEncryptionStatusOrBuilder() { * * *
-     * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-     * in use for the data underlying this table.
+     * Output only. The version of the Cloud KMS key specified in the parent
+     * cluster that is in use for the data underlying this table.
      * 
* * @@ -1126,8 +1138,8 @@ public java.lang.String getKmsKeyVersion() { * * *
-     * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-     * in use for the data underlying this table.
+     * Output only. The version of the Cloud KMS key specified in the parent
+     * cluster that is in use for the data underlying this table.
      * 
* * @@ -1151,8 +1163,8 @@ public com.google.protobuf.ByteString getKmsKeyVersionBytes() { * * *
-     * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-     * in use for the data underlying this table.
+     * Output only. The version of the Cloud KMS key specified in the parent
+     * cluster that is in use for the data underlying this table.
      * 
* * @@ -1175,8 +1187,8 @@ public Builder setKmsKeyVersion(java.lang.String value) { * * *
-     * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-     * in use for the data underlying this table.
+     * Output only. The version of the Cloud KMS key specified in the parent
+     * cluster that is in use for the data underlying this table.
      * 
* * @@ -1195,8 +1207,8 @@ public Builder clearKmsKeyVersion() { * * *
-     * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-     * in use for the data underlying this table.
+     * Output only. The version of the Cloud KMS key specified in the parent
+     * cluster that is in use for the data underlying this table.
      * 
* * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfoOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfoOrBuilder.java index 1b0ea589fd..aca12bced4 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfoOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/EncryptionInfoOrBuilder.java @@ -56,8 +56,9 @@ public interface EncryptionInfoOrBuilder * * *
-   * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-   * Regardless of status, the existing data is always encrypted at rest.
+   * Output only. The status of encrypt/decrypt calls on underlying data for
+   * this resource. Regardless of status, the existing data is always encrypted
+   * at rest.
    * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -70,8 +71,9 @@ public interface EncryptionInfoOrBuilder * * *
-   * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-   * Regardless of status, the existing data is always encrypted at rest.
+   * Output only. The status of encrypt/decrypt calls on underlying data for
+   * this resource. Regardless of status, the existing data is always encrypted
+   * at rest.
    * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -84,8 +86,9 @@ public interface EncryptionInfoOrBuilder * * *
-   * Output only. The status of encrypt/decrypt calls on underlying data for this resource.
-   * Regardless of status, the existing data is always encrypted at rest.
+   * Output only. The status of encrypt/decrypt calls on underlying data for
+   * this resource. Regardless of status, the existing data is always encrypted
+   * at rest.
    * 
* * .google.rpc.Status encryption_status = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; @@ -97,8 +100,8 @@ public interface EncryptionInfoOrBuilder * * *
-   * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-   * in use for the data underlying this table.
+   * Output only. The version of the Cloud KMS key specified in the parent
+   * cluster that is in use for the data underlying this table.
    * 
* * @@ -112,8 +115,8 @@ public interface EncryptionInfoOrBuilder * * *
-   * Output only. The version of the Cloud KMS key specified in the parent cluster that is
-   * in use for the data underlying this table.
+   * Output only. The version of the Cloud KMS key specified in the parent
+   * cluster that is in use for the data underlying this table.
    * 
* * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GenerateConsistencyTokenRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GenerateConsistencyTokenRequest.java index c11012523e..1ed7c3e7bd 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GenerateConsistencyTokenRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GenerateConsistencyTokenRequest.java @@ -72,8 +72,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The unique name of the Table for which to create a consistency token.
-   * Values are of the form
+   * Required. The unique name of the Table for which to create a consistency
+   * token. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{table}`.
    * 
* @@ -99,8 +99,8 @@ public java.lang.String getName() { * * *
-   * Required. The unique name of the Table for which to create a consistency token.
-   * Values are of the form
+   * Required. The unique name of the Table for which to create a consistency
+   * token. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{table}`.
    * 
* @@ -475,8 +475,8 @@ public Builder mergeFrom( * * *
-     * Required. The unique name of the Table for which to create a consistency token.
-     * Values are of the form
+     * Required. The unique name of the Table for which to create a consistency
+     * token. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* @@ -501,8 +501,8 @@ public java.lang.String getName() { * * *
-     * Required. The unique name of the Table for which to create a consistency token.
-     * Values are of the form
+     * Required. The unique name of the Table for which to create a consistency
+     * token. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* @@ -527,8 +527,8 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Required. The unique name of the Table for which to create a consistency token.
-     * Values are of the form
+     * Required. The unique name of the Table for which to create a consistency
+     * token. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* @@ -552,8 +552,8 @@ public Builder setName(java.lang.String value) { * * *
-     * Required. The unique name of the Table for which to create a consistency token.
-     * Values are of the form
+     * Required. The unique name of the Table for which to create a consistency
+     * token. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* @@ -573,8 +573,8 @@ public Builder clearName() { * * *
-     * Required. The unique name of the Table for which to create a consistency token.
-     * Values are of the form
+     * Required. The unique name of the Table for which to create a consistency
+     * token. Values are of the form
      * `projects/{project}/instances/{instance}/tables/{table}`.
      * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GenerateConsistencyTokenRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GenerateConsistencyTokenRequestOrBuilder.java index 3636438b23..12e7741b0b 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GenerateConsistencyTokenRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GenerateConsistencyTokenRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface GenerateConsistencyTokenRequestOrBuilder * * *
-   * Required. The unique name of the Table for which to create a consistency token.
-   * Values are of the form
+   * Required. The unique name of the Table for which to create a consistency
+   * token. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{table}`.
    * 
* @@ -43,8 +43,8 @@ public interface GenerateConsistencyTokenRequestOrBuilder * * *
-   * Required. The unique name of the Table for which to create a consistency token.
-   * Values are of the form
+   * Required. The unique name of the Table for which to create a consistency
+   * token. Values are of the form
    * `projects/{project}/instances/{instance}/tables/{table}`.
    * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetBackupRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetBackupRequest.java index 402281630f..fbbc04583a 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetBackupRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/GetBackupRequest.java @@ -22,7 +22,8 @@ * * *
- * The request for [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup].
+ * The request for
+ * [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup].
  * 
* * Protobuf type {@code google.bigtable.admin.v2.GetBackupRequest} @@ -284,7 +285,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup].
+   * The request for
+   * [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup].
    * 
* * Protobuf type {@code google.bigtable.admin.v2.GetBackupRequest} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsRequest.java index 7ed1e8efda..7f6d00421d 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsRequest.java @@ -22,7 +22,8 @@ * * *
- * The request for [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].
+ * The request for
+ * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].
  * 
* * Protobuf type {@code google.bigtable.admin.v2.ListBackupsRequest} @@ -142,13 +143,14 @@ public com.google.protobuf.ByteString getParentBytes() { * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -156,16 +158,16 @@ public com.google.protobuf.ByteString getParentBytes() { * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB *
* * string filter = 2; @@ -196,13 +198,14 @@ public java.lang.String getFilter() { * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -210,16 +213,16 @@ public java.lang.String getFilter() { * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB * * * string filter = 2; @@ -248,17 +251,19 @@ public com.google.protobuf.ByteString getFilterBytes() { * *
    * An expression for specifying the sort order of the results of the request.
-   * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-   * syntax is described at https://aip.dev/132#ordering.
+   * The string value should specify one or more fields in
+   * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+   * https://aip.dev/132#ordering.
    *
    * Fields supported are:
-   *    * name
-   *    * source_table
-   *    * expire_time
-   *    * start_time
-   *    * end_time
-   *    * size_bytes
-   *    * state
+   *
+   * * name
+   * * source_table
+   * * expire_time
+   * * start_time
+   * * end_time
+   * * size_bytes
+   * * state
    *
    * For example, "start_time". The default sorting order is ascending.
    * To specify descending order for the field, a suffix " desc" should
@@ -290,17 +295,19 @@ public java.lang.String getOrderBy() {
    *
    * 
    * An expression for specifying the sort order of the results of the request.
-   * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-   * syntax is described at https://aip.dev/132#ordering.
+   * The string value should specify one or more fields in
+   * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+   * https://aip.dev/132#ordering.
    *
    * Fields supported are:
-   *    * name
-   *    * source_table
-   *    * expire_time
-   *    * start_time
-   *    * end_time
-   *    * size_bytes
-   *    * state
+   *
+   * * name
+   * * source_table
+   * * expire_time
+   * * start_time
+   * * end_time
+   * * size_bytes
+   * * state
    *
    * For example, "start_time". The default sorting order is ascending.
    * To specify descending order for the field, a suffix " desc" should
@@ -356,9 +363,10 @@ public int getPageSize() {
    *
    * 
    * If non-empty, `page_token` should contain a
-   * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-   * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-   * `filter`.
+   * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+   * from a previous
+   * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+   * same `parent` and with the same `filter`.
    * 
* * string page_token = 5; @@ -382,9 +390,10 @@ public java.lang.String getPageToken() { * *
    * If non-empty, `page_token` should contain a
-   * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-   * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-   * `filter`.
+   * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+   * from a previous
+   * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+   * same `parent` and with the same `filter`.
    * 
* * string page_token = 5; @@ -603,7 +612,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].
+   * The request for
+   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].
    * 
* * Protobuf type {@code google.bigtable.admin.v2.ListBackupsRequest} @@ -984,13 +994,14 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -998,16 +1009,16 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB *
* * string filter = 2; @@ -1037,13 +1048,14 @@ public java.lang.String getFilter() { * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -1051,16 +1063,16 @@ public java.lang.String getFilter() { * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB *
* * string filter = 2; @@ -1090,13 +1102,14 @@ public com.google.protobuf.ByteString getFilterBytes() { * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -1104,16 +1117,16 @@ public com.google.protobuf.ByteString getFilterBytes() { * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB * * * string filter = 2; @@ -1142,13 +1155,14 @@ public Builder setFilter(java.lang.String value) { * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -1156,16 +1170,16 @@ public Builder setFilter(java.lang.String value) { * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB * * * string filter = 2; @@ -1190,13 +1204,14 @@ public Builder clearFilter() { * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -1204,16 +1219,16 @@ public Builder clearFilter() { * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB * * * string filter = 2; @@ -1238,17 +1253,19 @@ public Builder setFilterBytes(com.google.protobuf.ByteString value) { * *
      * An expression for specifying the sort order of the results of the request.
-     * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-     * syntax is described at https://aip.dev/132#ordering.
+     * The string value should specify one or more fields in
+     * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+     * https://aip.dev/132#ordering.
      *
      * Fields supported are:
-     *    * name
-     *    * source_table
-     *    * expire_time
-     *    * start_time
-     *    * end_time
-     *    * size_bytes
-     *    * state
+     *
+     * * name
+     * * source_table
+     * * expire_time
+     * * start_time
+     * * end_time
+     * * size_bytes
+     * * state
      *
      * For example, "start_time". The default sorting order is ascending.
      * To specify descending order for the field, a suffix " desc" should
@@ -1279,17 +1296,19 @@ public java.lang.String getOrderBy() {
      *
      * 
      * An expression for specifying the sort order of the results of the request.
-     * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-     * syntax is described at https://aip.dev/132#ordering.
+     * The string value should specify one or more fields in
+     * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+     * https://aip.dev/132#ordering.
      *
      * Fields supported are:
-     *    * name
-     *    * source_table
-     *    * expire_time
-     *    * start_time
-     *    * end_time
-     *    * size_bytes
-     *    * state
+     *
+     * * name
+     * * source_table
+     * * expire_time
+     * * start_time
+     * * end_time
+     * * size_bytes
+     * * state
      *
      * For example, "start_time". The default sorting order is ascending.
      * To specify descending order for the field, a suffix " desc" should
@@ -1320,17 +1339,19 @@ public com.google.protobuf.ByteString getOrderByBytes() {
      *
      * 
      * An expression for specifying the sort order of the results of the request.
-     * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-     * syntax is described at https://aip.dev/132#ordering.
+     * The string value should specify one or more fields in
+     * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+     * https://aip.dev/132#ordering.
      *
      * Fields supported are:
-     *    * name
-     *    * source_table
-     *    * expire_time
-     *    * start_time
-     *    * end_time
-     *    * size_bytes
-     *    * state
+     *
+     * * name
+     * * source_table
+     * * expire_time
+     * * start_time
+     * * end_time
+     * * size_bytes
+     * * state
      *
      * For example, "start_time". The default sorting order is ascending.
      * To specify descending order for the field, a suffix " desc" should
@@ -1360,17 +1381,19 @@ public Builder setOrderBy(java.lang.String value) {
      *
      * 
      * An expression for specifying the sort order of the results of the request.
-     * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-     * syntax is described at https://aip.dev/132#ordering.
+     * The string value should specify one or more fields in
+     * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+     * https://aip.dev/132#ordering.
      *
      * Fields supported are:
-     *    * name
-     *    * source_table
-     *    * expire_time
-     *    * start_time
-     *    * end_time
-     *    * size_bytes
-     *    * state
+     *
+     * * name
+     * * source_table
+     * * expire_time
+     * * start_time
+     * * end_time
+     * * size_bytes
+     * * state
      *
      * For example, "start_time". The default sorting order is ascending.
      * To specify descending order for the field, a suffix " desc" should
@@ -1396,17 +1419,19 @@ public Builder clearOrderBy() {
      *
      * 
      * An expression for specifying the sort order of the results of the request.
-     * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-     * syntax is described at https://aip.dev/132#ordering.
+     * The string value should specify one or more fields in
+     * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+     * https://aip.dev/132#ordering.
      *
      * Fields supported are:
-     *    * name
-     *    * source_table
-     *    * expire_time
-     *    * start_time
-     *    * end_time
-     *    * size_bytes
-     *    * state
+     *
+     * * name
+     * * source_table
+     * * expire_time
+     * * start_time
+     * * end_time
+     * * size_bytes
+     * * state
      *
      * For example, "start_time". The default sorting order is ascending.
      * To specify descending order for the field, a suffix " desc" should
@@ -1495,9 +1520,10 @@ public Builder clearPageSize() {
      *
      * 
      * If non-empty, `page_token` should contain a
-     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-     * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-     * `filter`.
+     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+     * from a previous
+     * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+     * same `parent` and with the same `filter`.
      * 
* * string page_token = 5; @@ -1520,9 +1546,10 @@ public java.lang.String getPageToken() { * *
      * If non-empty, `page_token` should contain a
-     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-     * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-     * `filter`.
+     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+     * from a previous
+     * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+     * same `parent` and with the same `filter`.
      * 
* * string page_token = 5; @@ -1545,9 +1572,10 @@ public com.google.protobuf.ByteString getPageTokenBytes() { * *
      * If non-empty, `page_token` should contain a
-     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-     * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-     * `filter`.
+     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+     * from a previous
+     * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+     * same `parent` and with the same `filter`.
      * 
* * string page_token = 5; @@ -1569,9 +1597,10 @@ public Builder setPageToken(java.lang.String value) { * *
      * If non-empty, `page_token` should contain a
-     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-     * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-     * `filter`.
+     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+     * from a previous
+     * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+     * same `parent` and with the same `filter`.
      * 
* * string page_token = 5; @@ -1589,9 +1618,10 @@ public Builder clearPageToken() { * *
      * If non-empty, `page_token` should contain a
-     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-     * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-     * `filter`.
+     * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+     * from a previous
+     * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+     * same `parent` and with the same `filter`.
      * 
* * string page_token = 5; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsRequestOrBuilder.java index 89a6907fac..0b793f2fd7 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsRequestOrBuilder.java @@ -70,13 +70,14 @@ public interface ListBackupsRequestOrBuilder * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -84,16 +85,16 @@ public interface ListBackupsRequestOrBuilder * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB *
* * string filter = 2; @@ -113,13 +114,14 @@ public interface ListBackupsRequestOrBuilder * roughly synonymous with equality. Filter rules are case insensitive. * * The fields eligible for filtering are: - * * `name` - * * `source_table` - * * `state` - * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - * * `size_bytes` + * + * * `name` + * * `source_table` + * * `state` + * * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + * * `size_bytes` * * To filter on multiple expressions, provide each separate expression within * parentheses. By default, each expression is an AND expression. However, @@ -127,16 +129,16 @@ public interface ListBackupsRequestOrBuilder * * Some examples of using filters are: * - * * `name:"exact"` --> The backup's name is the string "exact". - * * `name:howl` --> The backup's name contains the string "howl". - * * `source_table:prod` - * --> The source_table's name contains the string "prod". - * * `state:CREATING` --> The backup is pending creation. - * * `state:READY` --> The backup is fully created and ready for use. - * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - * --> The backup name contains the string "howl" and start_time - * of the backup is before 2018-03-28T14:50:00Z. - * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + * * `name:"exact"` --> The backup's name is the string "exact". + * * `name:howl` --> The backup's name contains the string "howl". + * * `source_table:prod` + * --> The source_table's name contains the string "prod". + * * `state:CREATING` --> The backup is pending creation. + * * `state:READY` --> The backup is fully created and ready for use. + * * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + * --> The backup name contains the string "howl" and start_time + * of the backup is before 2018-03-28T14:50:00Z. + * * `size_bytes > 10000000000` --> The backup's size is greater than 10GB *
* * string filter = 2; @@ -150,17 +152,19 @@ public interface ListBackupsRequestOrBuilder * *
    * An expression for specifying the sort order of the results of the request.
-   * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-   * syntax is described at https://aip.dev/132#ordering.
+   * The string value should specify one or more fields in
+   * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+   * https://aip.dev/132#ordering.
    *
    * Fields supported are:
-   *    * name
-   *    * source_table
-   *    * expire_time
-   *    * start_time
-   *    * end_time
-   *    * size_bytes
-   *    * state
+   *
+   * * name
+   * * source_table
+   * * expire_time
+   * * start_time
+   * * end_time
+   * * size_bytes
+   * * state
    *
    * For example, "start_time". The default sorting order is ascending.
    * To specify descending order for the field, a suffix " desc" should
@@ -181,17 +185,19 @@ public interface ListBackupsRequestOrBuilder
    *
    * 
    * An expression for specifying the sort order of the results of the request.
-   * The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full
-   * syntax is described at https://aip.dev/132#ordering.
+   * The string value should specify one or more fields in
+   * [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at
+   * https://aip.dev/132#ordering.
    *
    * Fields supported are:
-   *    * name
-   *    * source_table
-   *    * expire_time
-   *    * start_time
-   *    * end_time
-   *    * size_bytes
-   *    * state
+   *
+   * * name
+   * * source_table
+   * * expire_time
+   * * start_time
+   * * end_time
+   * * size_bytes
+   * * state
    *
    * For example, "start_time". The default sorting order is ascending.
    * To specify descending order for the field, a suffix " desc" should
@@ -227,9 +233,10 @@ public interface ListBackupsRequestOrBuilder
    *
    * 
    * If non-empty, `page_token` should contain a
-   * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-   * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-   * `filter`.
+   * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+   * from a previous
+   * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+   * same `parent` and with the same `filter`.
    * 
* * string page_token = 5; @@ -242,9 +249,10 @@ public interface ListBackupsRequestOrBuilder * *
    * If non-empty, `page_token` should contain a
-   * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a
-   * previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same
-   * `filter`.
+   * [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token]
+   * from a previous
+   * [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the
+   * same `parent` and with the same `filter`.
    * 
* * string page_token = 5; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsResponse.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsResponse.java index 0d61d0f8ec..7603c0cc5b 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsResponse.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsResponse.java @@ -22,7 +22,8 @@ * * *
- * The response for [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].
+ * The response for
+ * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].
  * 
* * Protobuf type {@code google.bigtable.admin.v2.ListBackupsResponse} @@ -143,8 +144,8 @@ public com.google.bigtable.admin.v2.BackupOrBuilder getBackupsOrBuilder(int inde * *
    * `next_page_token` can be sent in a subsequent
-   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-   * of the matching backups.
+   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+   * to fetch more of the matching backups.
    * 
* * string next_page_token = 2; @@ -168,8 +169,8 @@ public java.lang.String getNextPageToken() { * *
    * `next_page_token` can be sent in a subsequent
-   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-   * of the matching backups.
+   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+   * to fetch more of the matching backups.
    * 
* * string next_page_token = 2; @@ -363,7 +364,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The response for [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].
+   * The response for
+   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups].
    * 
* * Protobuf type {@code google.bigtable.admin.v2.ListBackupsResponse} @@ -957,8 +959,8 @@ public java.util.List getBackupsBui * *
      * `next_page_token` can be sent in a subsequent
-     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-     * of the matching backups.
+     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+     * to fetch more of the matching backups.
      * 
* * string next_page_token = 2; @@ -981,8 +983,8 @@ public java.lang.String getNextPageToken() { * *
      * `next_page_token` can be sent in a subsequent
-     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-     * of the matching backups.
+     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+     * to fetch more of the matching backups.
      * 
* * string next_page_token = 2; @@ -1005,8 +1007,8 @@ public com.google.protobuf.ByteString getNextPageTokenBytes() { * *
      * `next_page_token` can be sent in a subsequent
-     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-     * of the matching backups.
+     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+     * to fetch more of the matching backups.
      * 
* * string next_page_token = 2; @@ -1028,8 +1030,8 @@ public Builder setNextPageToken(java.lang.String value) { * *
      * `next_page_token` can be sent in a subsequent
-     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-     * of the matching backups.
+     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+     * to fetch more of the matching backups.
      * 
* * string next_page_token = 2; @@ -1047,8 +1049,8 @@ public Builder clearNextPageToken() { * *
      * `next_page_token` can be sent in a subsequent
-     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-     * of the matching backups.
+     * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+     * to fetch more of the matching backups.
      * 
* * string next_page_token = 2; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsResponseOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsResponseOrBuilder.java index 8af4ffc11e..7718eff59c 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsResponseOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListBackupsResponseOrBuilder.java @@ -79,8 +79,8 @@ public interface ListBackupsResponseOrBuilder * *
    * `next_page_token` can be sent in a subsequent
-   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-   * of the matching backups.
+   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+   * to fetch more of the matching backups.
    * 
* * string next_page_token = 2; @@ -93,8 +93,8 @@ public interface ListBackupsResponseOrBuilder * *
    * `next_page_token` can be sent in a subsequent
-   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more
-   * of the matching backups.
+   * [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call
+   * to fetch more of the matching backups.
    * 
* * string next_page_token = 2; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequest.java index 212a07878d..05aeaf7469 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequest.java @@ -77,8 +77,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * * *
-   * Required. The unique name of the cluster for which snapshots should be listed.
-   * Values are of the form
+   * Required. The unique name of the cluster for which snapshots should be
+   * listed. Values are of the form
    * `projects/{project}/instances/{instance}/clusters/{cluster}`.
    * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
    * e.g., `projects/{project}/instances/{instance}/clusters/-`.
@@ -106,8 +106,8 @@ public java.lang.String getParent() {
    *
    *
    * 
-   * Required. The unique name of the cluster for which snapshots should be listed.
-   * Values are of the form
+   * Required. The unique name of the cluster for which snapshots should be
+   * listed. Values are of the form
    * `projects/{project}/instances/{instance}/clusters/{cluster}`.
    * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
    * e.g., `projects/{project}/instances/{instance}/clusters/-`.
@@ -601,8 +601,8 @@ public Builder mergeFrom(
      *
      *
      * 
-     * Required. The unique name of the cluster for which snapshots should be listed.
-     * Values are of the form
+     * Required. The unique name of the cluster for which snapshots should be
+     * listed. Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}`.
      * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
      * e.g., `projects/{project}/instances/{instance}/clusters/-`.
@@ -629,8 +629,8 @@ public java.lang.String getParent() {
      *
      *
      * 
-     * Required. The unique name of the cluster for which snapshots should be listed.
-     * Values are of the form
+     * Required. The unique name of the cluster for which snapshots should be
+     * listed. Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}`.
      * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
      * e.g., `projects/{project}/instances/{instance}/clusters/-`.
@@ -657,8 +657,8 @@ public com.google.protobuf.ByteString getParentBytes() {
      *
      *
      * 
-     * Required. The unique name of the cluster for which snapshots should be listed.
-     * Values are of the form
+     * Required. The unique name of the cluster for which snapshots should be
+     * listed. Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}`.
      * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
      * e.g., `projects/{project}/instances/{instance}/clusters/-`.
@@ -684,8 +684,8 @@ public Builder setParent(java.lang.String value) {
      *
      *
      * 
-     * Required. The unique name of the cluster for which snapshots should be listed.
-     * Values are of the form
+     * Required. The unique name of the cluster for which snapshots should be
+     * listed. Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}`.
      * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
      * e.g., `projects/{project}/instances/{instance}/clusters/-`.
@@ -707,8 +707,8 @@ public Builder clearParent() {
      *
      *
      * 
-     * Required. The unique name of the cluster for which snapshots should be listed.
-     * Values are of the form
+     * Required. The unique name of the cluster for which snapshots should be
+     * listed. Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}`.
      * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
      * e.g., `projects/{project}/instances/{instance}/clusters/-`.
diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequestOrBuilder.java
index a51bc368e1..05cb896aa1 100644
--- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequestOrBuilder.java
+++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListSnapshotsRequestOrBuilder.java
@@ -27,8 +27,8 @@ public interface ListSnapshotsRequestOrBuilder
    *
    *
    * 
-   * Required. The unique name of the cluster for which snapshots should be listed.
-   * Values are of the form
+   * Required. The unique name of the cluster for which snapshots should be
+   * listed. Values are of the form
    * `projects/{project}/instances/{instance}/clusters/{cluster}`.
    * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
    * e.g., `projects/{project}/instances/{instance}/clusters/-`.
@@ -45,8 +45,8 @@ public interface ListSnapshotsRequestOrBuilder
    *
    *
    * 
-   * Required. The unique name of the cluster for which snapshots should be listed.
-   * Values are of the form
+   * Required. The unique name of the cluster for which snapshots should be
+   * listed. Values are of the form
    * `projects/{project}/instances/{instance}/clusters/{cluster}`.
    * Use `{cluster} = '-'` to list snapshots for all clusters in an instance,
    * e.g., `projects/{project}/instances/{instance}/clusters/-`.
diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequest.java
index f18a4ca3d5..ceb5584c9f 100644
--- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequest.java
+++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequest.java
@@ -73,8 +73,8 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() {
    *
    *
    * 
-   * Required. The unique name of the instance for which tables should be listed.
-   * Values are of the form `projects/{project}/instances/{instance}`.
+   * Required. The unique name of the instance for which tables should be
+   * listed. Values are of the form `projects/{project}/instances/{instance}`.
    * 
* * @@ -99,8 +99,8 @@ public java.lang.String getParent() { * * *
-   * Required. The unique name of the instance for which tables should be listed.
-   * Values are of the form `projects/{project}/instances/{instance}`.
+   * Required. The unique name of the instance for which tables should be
+   * listed. Values are of the form `projects/{project}/instances/{instance}`.
    * 
* * @@ -129,7 +129,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
    * The view to be applied to the returned tables' fields.
-   * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+   * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
    * 
* * .google.bigtable.admin.v2.Table.View view = 2; @@ -145,7 +145,7 @@ public int getViewValue() { * *
    * The view to be applied to the returned tables' fields.
-   * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+   * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
    * 
* * .google.bigtable.admin.v2.Table.View view = 2; @@ -651,8 +651,8 @@ public Builder mergeFrom( * * *
-     * Required. The unique name of the instance for which tables should be listed.
-     * Values are of the form `projects/{project}/instances/{instance}`.
+     * Required. The unique name of the instance for which tables should be
+     * listed. Values are of the form `projects/{project}/instances/{instance}`.
      * 
* * @@ -676,8 +676,8 @@ public java.lang.String getParent() { * * *
-     * Required. The unique name of the instance for which tables should be listed.
-     * Values are of the form `projects/{project}/instances/{instance}`.
+     * Required. The unique name of the instance for which tables should be
+     * listed. Values are of the form `projects/{project}/instances/{instance}`.
      * 
* * @@ -701,8 +701,8 @@ public com.google.protobuf.ByteString getParentBytes() { * * *
-     * Required. The unique name of the instance for which tables should be listed.
-     * Values are of the form `projects/{project}/instances/{instance}`.
+     * Required. The unique name of the instance for which tables should be
+     * listed. Values are of the form `projects/{project}/instances/{instance}`.
      * 
* * @@ -725,8 +725,8 @@ public Builder setParent(java.lang.String value) { * * *
-     * Required. The unique name of the instance for which tables should be listed.
-     * Values are of the form `projects/{project}/instances/{instance}`.
+     * Required. The unique name of the instance for which tables should be
+     * listed. Values are of the form `projects/{project}/instances/{instance}`.
      * 
* * @@ -745,8 +745,8 @@ public Builder clearParent() { * * *
-     * Required. The unique name of the instance for which tables should be listed.
-     * Values are of the form `projects/{project}/instances/{instance}`.
+     * Required. The unique name of the instance for which tables should be
+     * listed. Values are of the form `projects/{project}/instances/{instance}`.
      * 
* * @@ -773,7 +773,7 @@ public Builder setParentBytes(com.google.protobuf.ByteString value) { * *
      * The view to be applied to the returned tables' fields.
-     * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+     * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
      * 
* * .google.bigtable.admin.v2.Table.View view = 2; @@ -789,7 +789,7 @@ public int getViewValue() { * *
      * The view to be applied to the returned tables' fields.
-     * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+     * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
      * 
* * .google.bigtable.admin.v2.Table.View view = 2; @@ -808,7 +808,7 @@ public Builder setViewValue(int value) { * *
      * The view to be applied to the returned tables' fields.
-     * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+     * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
      * 
* * .google.bigtable.admin.v2.Table.View view = 2; @@ -826,7 +826,7 @@ public com.google.bigtable.admin.v2.Table.View getView() { * *
      * The view to be applied to the returned tables' fields.
-     * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+     * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
      * 
* * .google.bigtable.admin.v2.Table.View view = 2; @@ -848,7 +848,7 @@ public Builder setView(com.google.bigtable.admin.v2.Table.View value) { * *
      * The view to be applied to the returned tables' fields.
-     * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+     * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
      * 
* * .google.bigtable.admin.v2.Table.View view = 2; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequestOrBuilder.java index 1316348a61..fe02f406d8 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ListTablesRequestOrBuilder.java @@ -27,8 +27,8 @@ public interface ListTablesRequestOrBuilder * * *
-   * Required. The unique name of the instance for which tables should be listed.
-   * Values are of the form `projects/{project}/instances/{instance}`.
+   * Required. The unique name of the instance for which tables should be
+   * listed. Values are of the form `projects/{project}/instances/{instance}`.
    * 
* * @@ -42,8 +42,8 @@ public interface ListTablesRequestOrBuilder * * *
-   * Required. The unique name of the instance for which tables should be listed.
-   * Values are of the form `projects/{project}/instances/{instance}`.
+   * Required. The unique name of the instance for which tables should be
+   * listed. Values are of the form `projects/{project}/instances/{instance}`.
    * 
* * @@ -59,7 +59,7 @@ public interface ListTablesRequestOrBuilder * *
    * The view to be applied to the returned tables' fields.
-   * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+   * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
    * 
* * .google.bigtable.admin.v2.Table.View view = 2; @@ -72,7 +72,7 @@ public interface ListTablesRequestOrBuilder * *
    * The view to be applied to the returned tables' fields.
-   * Only NAME_ONLY view (default) and REPLICATION_VIEW are supported.
+   * NAME_ONLY view (default) and REPLICATION_VIEW are supported.
    * 
* * .google.bigtable.admin.v2.Table.View view = 2; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ModifyColumnFamiliesRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ModifyColumnFamiliesRequest.java index 255e6e3140..5eaa481fee 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ModifyColumnFamiliesRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ModifyColumnFamiliesRequest.java @@ -1727,10 +1727,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -1746,10 +1746,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -1766,10 +1766,10 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -1784,10 +1784,10 @@ public int getModificationsCount() { * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -1803,10 +1803,10 @@ public com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification get * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -2386,10 +2386,10 @@ private void ensureModificationsIsMutable() { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2408,10 +2408,10 @@ private void ensureModificationsIsMutable() { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2429,10 +2429,10 @@ public int getModificationsCount() { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2451,10 +2451,10 @@ public com.google.bigtable.admin.v2.ModifyColumnFamiliesRequest.Modification get * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2479,10 +2479,10 @@ public Builder setModifications( * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2506,10 +2506,10 @@ public Builder setModifications( * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2534,10 +2534,10 @@ public Builder addModifications( * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2562,10 +2562,10 @@ public Builder addModifications( * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2588,10 +2588,10 @@ public Builder addModifications( * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2615,10 +2615,10 @@ public Builder addModifications( * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2642,10 +2642,10 @@ public Builder addAllModifications( * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2666,10 +2666,10 @@ public Builder clearModifications() { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2690,10 +2690,10 @@ public Builder removeModifications(int index) { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2708,10 +2708,10 @@ public Builder removeModifications(int index) { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2730,10 +2730,10 @@ public Builder removeModifications(int index) { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2754,10 +2754,10 @@ public Builder removeModifications(int index) { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2775,10 +2775,10 @@ public Builder removeModifications(int index) { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * @@ -2797,10 +2797,10 @@ public Builder removeModifications(int index) { * * *
-     * Required. Modifications to be atomically applied to the specified table's families.
-     * Entries are applied in order, meaning that earlier modifications can be
-     * masked by later ones (in the case of repeated updates to the same family,
-     * for example).
+     * Required. Modifications to be atomically applied to the specified table's
+     * families. Entries are applied in order, meaning that earlier modifications
+     * can be masked by later ones (in the case of repeated updates to the same
+     * family, for example).
      * 
* * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ModifyColumnFamiliesRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ModifyColumnFamiliesRequestOrBuilder.java index 2a5a201628..e386edffea 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ModifyColumnFamiliesRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/ModifyColumnFamiliesRequestOrBuilder.java @@ -60,10 +60,10 @@ public interface ModifyColumnFamiliesRequestOrBuilder * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -76,10 +76,10 @@ public interface ModifyColumnFamiliesRequestOrBuilder * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -91,10 +91,10 @@ public interface ModifyColumnFamiliesRequestOrBuilder * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -106,10 +106,10 @@ public interface ModifyColumnFamiliesRequestOrBuilder * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * @@ -123,10 +123,10 @@ public interface ModifyColumnFamiliesRequestOrBuilder * * *
-   * Required. Modifications to be atomically applied to the specified table's families.
-   * Entries are applied in order, meaning that earlier modifications can be
-   * masked by later ones (in the case of repeated updates to the same family,
-   * for example).
+   * Required. Modifications to be atomically applied to the specified table's
+   * families. Entries are applied in order, meaning that earlier modifications
+   * can be masked by later ones (in the case of repeated updates to the same
+   * family, for example).
    * 
* * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableMetadata.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableMetadata.java index 3cf76cc5a9..3fa051b0cd 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableMetadata.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableMetadata.java @@ -301,7 +301,8 @@ public com.google.protobuf.ByteString getOptimizeTableOperationNameBytes() { * * *
-   * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+   * The progress of the
+   * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
    * operation.
    * 
* @@ -317,7 +318,8 @@ public boolean hasProgress() { * * *
-   * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+   * The progress of the
+   * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
    * operation.
    * 
* @@ -335,7 +337,8 @@ public com.google.bigtable.admin.v2.OperationProgress getProgress() { * * *
-   * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+   * The progress of the
+   * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
    * operation.
    * 
* @@ -1335,7 +1338,8 @@ public Builder setOptimizeTableOperationNameBytes(com.google.protobuf.ByteString * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* @@ -1350,7 +1354,8 @@ public boolean hasProgress() { * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* @@ -1371,7 +1376,8 @@ public com.google.bigtable.admin.v2.OperationProgress getProgress() { * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* @@ -1394,7 +1400,8 @@ public Builder setProgress(com.google.bigtable.admin.v2.OperationProgress value) * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* @@ -1415,7 +1422,8 @@ public Builder setProgress( * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* @@ -1441,7 +1449,8 @@ public Builder mergeProgress(com.google.bigtable.admin.v2.OperationProgress valu * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* @@ -1461,7 +1470,8 @@ public Builder clearProgress() { * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* @@ -1476,7 +1486,8 @@ public com.google.bigtable.admin.v2.OperationProgress.Builder getProgressBuilder * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* @@ -1495,7 +1506,8 @@ public com.google.bigtable.admin.v2.OperationProgressOrBuilder getProgressOrBuil * * *
-     * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+     * The progress of the
+     * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
      * operation.
      * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableMetadataOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableMetadataOrBuilder.java index 55436a916e..9d69094d6e 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableMetadataOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableMetadataOrBuilder.java @@ -133,7 +133,8 @@ public interface RestoreTableMetadataOrBuilder * * *
-   * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+   * The progress of the
+   * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
    * operation.
    * 
* @@ -146,7 +147,8 @@ public interface RestoreTableMetadataOrBuilder * * *
-   * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+   * The progress of the
+   * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
    * operation.
    * 
* @@ -159,7 +161,8 @@ public interface RestoreTableMetadataOrBuilder * * *
-   * The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
+   * The progress of the
+   * [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
    * operation.
    * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableRequest.java index 052f6ed624..b50a79c5d9 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableRequest.java @@ -119,8 +119,7 @@ public SourceCase getSourceCase() { * *
    * Required. The name of the instance in which to create the restored
-   * table. This instance must be in the same project as the source backup.
-   * Values are of the form `projects/<project>/instances/<instance>`.
+   * table. Values are of the form `projects/<project>/instances/<instance>`.
    * 
* * @@ -146,8 +145,7 @@ public java.lang.String getParent() { * *
    * Required. The name of the instance in which to create the restored
-   * table. This instance must be in the same project as the source backup.
-   * Values are of the form `projects/<project>/instances/<instance>`.
+   * table. Values are of the form `projects/<project>/instances/<instance>`.
    * 
* * @@ -736,8 +734,7 @@ public Builder clearSource() { * *
      * Required. The name of the instance in which to create the restored
-     * table. This instance must be in the same project as the source backup.
-     * Values are of the form `projects/<project>/instances/<instance>`.
+     * table. Values are of the form `projects/<project>/instances/<instance>`.
      * 
* * @@ -762,8 +759,7 @@ public java.lang.String getParent() { * *
      * Required. The name of the instance in which to create the restored
-     * table. This instance must be in the same project as the source backup.
-     * Values are of the form `projects/<project>/instances/<instance>`.
+     * table. Values are of the form `projects/<project>/instances/<instance>`.
      * 
* * @@ -788,8 +784,7 @@ public com.google.protobuf.ByteString getParentBytes() { * *
      * Required. The name of the instance in which to create the restored
-     * table. This instance must be in the same project as the source backup.
-     * Values are of the form `projects/<project>/instances/<instance>`.
+     * table. Values are of the form `projects/<project>/instances/<instance>`.
      * 
* * @@ -813,8 +808,7 @@ public Builder setParent(java.lang.String value) { * *
      * Required. The name of the instance in which to create the restored
-     * table. This instance must be in the same project as the source backup.
-     * Values are of the form `projects/<project>/instances/<instance>`.
+     * table. Values are of the form `projects/<project>/instances/<instance>`.
      * 
* * @@ -834,8 +828,7 @@ public Builder clearParent() { * *
      * Required. The name of the instance in which to create the restored
-     * table. This instance must be in the same project as the source backup.
-     * Values are of the form `projects/<project>/instances/<instance>`.
+     * table. Values are of the form `projects/<project>/instances/<instance>`.
      * 
* * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableRequestOrBuilder.java index aeba6fe81b..db998656a5 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/RestoreTableRequestOrBuilder.java @@ -28,8 +28,7 @@ public interface RestoreTableRequestOrBuilder * *
    * Required. The name of the instance in which to create the restored
-   * table. This instance must be in the same project as the source backup.
-   * Values are of the form `projects/<project>/instances/<instance>`.
+   * table. Values are of the form `projects/<project>/instances/<instance>`.
    * 
* * @@ -44,8 +43,7 @@ public interface RestoreTableRequestOrBuilder * *
    * Required. The name of the instance in which to create the restored
-   * table. This instance must be in the same project as the source backup.
-   * Values are of the form `projects/<project>/instances/<instance>`.
+   * table. Values are of the form `projects/<project>/instances/<instance>`.
    * 
* * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Snapshot.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Snapshot.java index e21e957a72..6f9800709e 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Snapshot.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Snapshot.java @@ -239,7 +239,7 @@ private State(int value) { * * *
-   * Output only. The unique name of the snapshot.
+   * The unique name of the snapshot.
    * Values are of the form
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
    * 
@@ -264,7 +264,7 @@ public java.lang.String getName() { * * *
-   * Output only. The unique name of the snapshot.
+   * The unique name of the snapshot.
    * Values are of the form
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
    * 
@@ -295,7 +295,9 @@ public com.google.protobuf.ByteString getNameBytes() { * Output only. The source table at the time the snapshot was taken. *
* - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the sourceTable field is set. */ @@ -310,7 +312,9 @@ public boolean hasSourceTable() { * Output only. The source table at the time the snapshot was taken. *
* - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The sourceTable. */ @@ -327,7 +331,9 @@ public com.google.bigtable.admin.v2.Table getSourceTable() { * Output only. The source table at the time the snapshot was taken. *
* - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.bigtable.admin.v2.TableOrBuilder getSourceTableOrBuilder() { @@ -348,7 +354,7 @@ public com.google.bigtable.admin.v2.TableOrBuilder getSourceTableOrBuilder() { * in the meantime. *
* - * int64 data_size_bytes = 3; + * int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dataSizeBytes. */ @@ -366,7 +372,8 @@ public long getDataSizeBytes() { * Output only. The time when the snapshot is created. *
* - * .google.protobuf.Timestamp create_time = 4; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the createTime field is set. */ @@ -381,7 +388,8 @@ public boolean hasCreateTime() { * Output only. The time when the snapshot is created. *
* - * .google.protobuf.Timestamp create_time = 4; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The createTime. */ @@ -396,7 +404,8 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The time when the snapshot is created. *
* - * .google.protobuf.Timestamp create_time = 4; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ @java.lang.Override public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { @@ -409,8 +418,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-   * Output only. The time when the snapshot will be deleted. The maximum amount
-   * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+   * The time when the snapshot will be deleted. The maximum amount of time a
+   * snapshot can stay active is 365 days. If 'ttl' is not specified,
    * the default maximum of 365 days will be used.
    * 
* @@ -426,8 +435,8 @@ public boolean hasDeleteTime() { * * *
-   * Output only. The time when the snapshot will be deleted. The maximum amount
-   * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+   * The time when the snapshot will be deleted. The maximum amount of time a
+   * snapshot can stay active is 365 days. If 'ttl' is not specified,
    * the default maximum of 365 days will be used.
    * 
* @@ -443,8 +452,8 @@ public com.google.protobuf.Timestamp getDeleteTime() { * * *
-   * Output only. The time when the snapshot will be deleted. The maximum amount
-   * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+   * The time when the snapshot will be deleted. The maximum amount of time a
+   * snapshot can stay active is 365 days. If 'ttl' is not specified,
    * the default maximum of 365 days will be used.
    * 
* @@ -464,7 +473,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { * Output only. The current state of the snapshot. *
* - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -479,7 +490,9 @@ public int getStateValue() { * Output only. The current state of the snapshot. *
* - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -498,7 +511,7 @@ public com.google.bigtable.admin.v2.Snapshot.State getState() { * * *
-   * Output only. Description of the snapshot.
+   * Description of the snapshot.
    * 
* * string description = 7; @@ -521,7 +534,7 @@ public java.lang.String getDescription() { * * *
-   * Output only. Description of the snapshot.
+   * Description of the snapshot.
    * 
* * string description = 7; @@ -1053,7 +1066,7 @@ public Builder mergeFrom( * * *
-     * Output only. The unique name of the snapshot.
+     * The unique name of the snapshot.
      * Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
@@ -1077,7 +1090,7 @@ public java.lang.String getName() { * * *
-     * Output only. The unique name of the snapshot.
+     * The unique name of the snapshot.
      * Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
@@ -1101,7 +1114,7 @@ public com.google.protobuf.ByteString getNameBytes() { * * *
-     * Output only. The unique name of the snapshot.
+     * The unique name of the snapshot.
      * Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
@@ -1124,7 +1137,7 @@ public Builder setName(java.lang.String value) { * * *
-     * Output only. The unique name of the snapshot.
+     * The unique name of the snapshot.
      * Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
@@ -1143,7 +1156,7 @@ public Builder clearName() { * * *
-     * Output only. The unique name of the snapshot.
+     * The unique name of the snapshot.
      * Values are of the form
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
      * 
@@ -1177,7 +1190,9 @@ public Builder setNameBytes(com.google.protobuf.ByteString value) { * Output only. The source table at the time the snapshot was taken. *
* - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the sourceTable field is set. */ @@ -1191,7 +1206,9 @@ public boolean hasSourceTable() { * Output only. The source table at the time the snapshot was taken. *
* - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The sourceTable. */ @@ -1211,7 +1228,9 @@ public com.google.bigtable.admin.v2.Table getSourceTable() { * Output only. The source table at the time the snapshot was taken. *
* - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceTable(com.google.bigtable.admin.v2.Table value) { if (sourceTableBuilder_ == null) { @@ -1233,7 +1252,9 @@ public Builder setSourceTable(com.google.bigtable.admin.v2.Table value) { * Output only. The source table at the time the snapshot was taken. *
* - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setSourceTable(com.google.bigtable.admin.v2.Table.Builder builderForValue) { if (sourceTableBuilder_ == null) { @@ -1252,7 +1273,9 @@ public Builder setSourceTable(com.google.bigtable.admin.v2.Table.Builder builder * Output only. The source table at the time the snapshot was taken. *
* - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeSourceTable(com.google.bigtable.admin.v2.Table value) { if (sourceTableBuilder_ == null) { @@ -1277,7 +1300,9 @@ public Builder mergeSourceTable(com.google.bigtable.admin.v2.Table value) { * Output only. The source table at the time the snapshot was taken. * * - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearSourceTable() { bitField0_ = (bitField0_ & ~0x00000002); @@ -1296,7 +1321,9 @@ public Builder clearSourceTable() { * Output only. The source table at the time the snapshot was taken. * * - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.bigtable.admin.v2.Table.Builder getSourceTableBuilder() { bitField0_ |= 0x00000002; @@ -1310,7 +1337,9 @@ public com.google.bigtable.admin.v2.Table.Builder getSourceTableBuilder() { * Output only. The source table at the time the snapshot was taken. * * - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.bigtable.admin.v2.TableOrBuilder getSourceTableOrBuilder() { if (sourceTableBuilder_ != null) { @@ -1328,7 +1357,9 @@ public com.google.bigtable.admin.v2.TableOrBuilder getSourceTableOrBuilder() { * Output only. The source table at the time the snapshot was taken. * * - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.bigtable.admin.v2.Table, @@ -1358,7 +1389,7 @@ public com.google.bigtable.admin.v2.TableOrBuilder getSourceTableOrBuilder() { * in the meantime. * * - * int64 data_size_bytes = 3; + * int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dataSizeBytes. */ @@ -1376,7 +1407,7 @@ public long getDataSizeBytes() { * in the meantime. * * - * int64 data_size_bytes = 3; + * int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @param value The dataSizeBytes to set. * @return This builder for chaining. @@ -1398,7 +1429,7 @@ public Builder setDataSizeBytes(long value) { * in the meantime. * * - * int64 data_size_bytes = 3; + * int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return This builder for chaining. */ @@ -1422,7 +1453,9 @@ public Builder clearDataSizeBytes() { * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the createTime field is set. */ @@ -1436,7 +1469,9 @@ public boolean hasCreateTime() { * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The createTime. */ @@ -1456,7 +1491,9 @@ public com.google.protobuf.Timestamp getCreateTime() { * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1478,7 +1515,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp value) { * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForValue) { if (createTimeBuilder_ == null) { @@ -1497,7 +1536,9 @@ public Builder setCreateTime(com.google.protobuf.Timestamp.Builder builderForVal * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { if (createTimeBuilder_ == null) { @@ -1522,7 +1563,9 @@ public Builder mergeCreateTime(com.google.protobuf.Timestamp value) { * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public Builder clearCreateTime() { bitField0_ = (bitField0_ & ~0x00000008); @@ -1541,7 +1584,9 @@ public Builder clearCreateTime() { * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { bitField0_ |= 0x00000008; @@ -1555,7 +1600,9 @@ public com.google.protobuf.Timestamp.Builder getCreateTimeBuilder() { * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { if (createTimeBuilder_ != null) { @@ -1573,7 +1620,9 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ private com.google.protobuf.SingleFieldBuilderV3< com.google.protobuf.Timestamp, @@ -1602,8 +1651,8 @@ public com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder() { * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1618,8 +1667,8 @@ public boolean hasDeleteTime() { * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1640,8 +1689,8 @@ public com.google.protobuf.Timestamp getDeleteTime() { * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1664,8 +1713,8 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1685,8 +1734,8 @@ public Builder setDeleteTime(com.google.protobuf.Timestamp.Builder builderForVal * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1712,8 +1761,8 @@ public Builder mergeDeleteTime(com.google.protobuf.Timestamp value) { * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1733,8 +1782,8 @@ public Builder clearDeleteTime() { * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1749,8 +1798,8 @@ public com.google.protobuf.Timestamp.Builder getDeleteTimeBuilder() { * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1769,8 +1818,8 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { * * *
-     * Output only. The time when the snapshot will be deleted. The maximum amount
-     * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+     * The time when the snapshot will be deleted. The maximum amount of time a
+     * snapshot can stay active is 365 days. If 'ttl' is not specified,
      * the default maximum of 365 days will be used.
      * 
* @@ -1801,7 +1850,9 @@ public com.google.protobuf.TimestampOrBuilder getDeleteTimeOrBuilder() { * Output only. The current state of the snapshot. * * - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -1816,7 +1867,9 @@ public int getStateValue() { * Output only. The current state of the snapshot. * * - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The enum numeric value on the wire for state to set. * @return This builder for chaining. @@ -1834,7 +1887,9 @@ public Builder setStateValue(int value) { * Output only. The current state of the snapshot. * * - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -1851,7 +1906,9 @@ public com.google.bigtable.admin.v2.Snapshot.State getState() { * Output only. The current state of the snapshot. * * - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @param value The state to set. * @return This builder for chaining. @@ -1872,7 +1929,9 @@ public Builder setState(com.google.bigtable.admin.v2.Snapshot.State value) { * Output only. The current state of the snapshot. * * - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return This builder for chaining. */ @@ -1888,7 +1947,7 @@ public Builder clearState() { * * *
-     * Output only. Description of the snapshot.
+     * Description of the snapshot.
      * 
* * string description = 7; @@ -1910,7 +1969,7 @@ public java.lang.String getDescription() { * * *
-     * Output only. Description of the snapshot.
+     * Description of the snapshot.
      * 
* * string description = 7; @@ -1932,7 +1991,7 @@ public com.google.protobuf.ByteString getDescriptionBytes() { * * *
-     * Output only. Description of the snapshot.
+     * Description of the snapshot.
      * 
* * string description = 7; @@ -1953,7 +2012,7 @@ public Builder setDescription(java.lang.String value) { * * *
-     * Output only. Description of the snapshot.
+     * Description of the snapshot.
      * 
* * string description = 7; @@ -1970,7 +2029,7 @@ public Builder clearDescription() { * * *
-     * Output only. Description of the snapshot.
+     * Description of the snapshot.
      * 
* * string description = 7; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotOrBuilder.java index 9e109a836a..1cb720d02e 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotOrBuilder.java @@ -27,7 +27,7 @@ public interface SnapshotOrBuilder * * *
-   * Output only. The unique name of the snapshot.
+   * The unique name of the snapshot.
    * Values are of the form
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
    * 
@@ -41,7 +41,7 @@ public interface SnapshotOrBuilder * * *
-   * Output only. The unique name of the snapshot.
+   * The unique name of the snapshot.
    * Values are of the form
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`.
    * 
@@ -59,7 +59,9 @@ public interface SnapshotOrBuilder * Output only. The source table at the time the snapshot was taken. * * - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the sourceTable field is set. */ @@ -71,7 +73,9 @@ public interface SnapshotOrBuilder * Output only. The source table at the time the snapshot was taken. * * - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The sourceTable. */ @@ -83,7 +87,9 @@ public interface SnapshotOrBuilder * Output only. The source table at the time the snapshot was taken. * * - * .google.bigtable.admin.v2.Table source_table = 2; + * + * .google.bigtable.admin.v2.Table source_table = 2 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.bigtable.admin.v2.TableOrBuilder getSourceTableOrBuilder(); @@ -97,7 +103,7 @@ public interface SnapshotOrBuilder * in the meantime. * * - * int64 data_size_bytes = 3; + * int64 data_size_bytes = 3 [(.google.api.field_behavior) = OUTPUT_ONLY]; * * @return The dataSizeBytes. */ @@ -110,7 +116,8 @@ public interface SnapshotOrBuilder * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return Whether the createTime field is set. */ @@ -122,7 +129,8 @@ public interface SnapshotOrBuilder * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The createTime. */ @@ -134,7 +142,8 @@ public interface SnapshotOrBuilder * Output only. The time when the snapshot is created. * * - * .google.protobuf.Timestamp create_time = 4; + * .google.protobuf.Timestamp create_time = 4 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * */ com.google.protobuf.TimestampOrBuilder getCreateTimeOrBuilder(); @@ -142,8 +151,8 @@ public interface SnapshotOrBuilder * * *
-   * Output only. The time when the snapshot will be deleted. The maximum amount
-   * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+   * The time when the snapshot will be deleted. The maximum amount of time a
+   * snapshot can stay active is 365 days. If 'ttl' is not specified,
    * the default maximum of 365 days will be used.
    * 
* @@ -156,8 +165,8 @@ public interface SnapshotOrBuilder * * *
-   * Output only. The time when the snapshot will be deleted. The maximum amount
-   * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+   * The time when the snapshot will be deleted. The maximum amount of time a
+   * snapshot can stay active is 365 days. If 'ttl' is not specified,
    * the default maximum of 365 days will be used.
    * 
* @@ -170,8 +179,8 @@ public interface SnapshotOrBuilder * * *
-   * Output only. The time when the snapshot will be deleted. The maximum amount
-   * of time a snapshot can stay active is 365 days. If 'ttl' is not specified,
+   * The time when the snapshot will be deleted. The maximum amount of time a
+   * snapshot can stay active is 365 days. If 'ttl' is not specified,
    * the default maximum of 365 days will be used.
    * 
* @@ -186,7 +195,9 @@ public interface SnapshotOrBuilder * Output only. The current state of the snapshot. * * - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The enum numeric value on the wire for state. */ @@ -198,7 +209,9 @@ public interface SnapshotOrBuilder * Output only. The current state of the snapshot. * * - * .google.bigtable.admin.v2.Snapshot.State state = 6; + * + * .google.bigtable.admin.v2.Snapshot.State state = 6 [(.google.api.field_behavior) = OUTPUT_ONLY]; + * * * @return The state. */ @@ -208,7 +221,7 @@ public interface SnapshotOrBuilder * * *
-   * Output only. Description of the snapshot.
+   * Description of the snapshot.
    * 
* * string description = 7; @@ -220,7 +233,7 @@ public interface SnapshotOrBuilder * * *
-   * Output only. Description of the snapshot.
+   * Description of the snapshot.
    * 
* * string description = 7; diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotTableRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotTableRequest.java index 673000864c..10d073685d 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotTableRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotTableRequest.java @@ -197,9 +197,9 @@ public com.google.protobuf.ByteString getClusterBytes() { * * *
-   * Required. The ID by which the new snapshot should be referred to within the parent
-   * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-   * rather than
+   * Required. The ID by which the new snapshot should be referred to within the
+   * parent cluster, e.g., `mysnapshot` of the form:
+   * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
    * 
* @@ -223,9 +223,9 @@ public java.lang.String getSnapshotId() { * * *
-   * Required. The ID by which the new snapshot should be referred to within the parent
-   * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-   * rather than
+   * Required. The ID by which the new snapshot should be referred to within the
+   * parent cluster, e.g., `mysnapshot` of the form:
+   * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
    * 
* @@ -1060,9 +1060,9 @@ public Builder setClusterBytes(com.google.protobuf.ByteString value) { * * *
-     * Required. The ID by which the new snapshot should be referred to within the parent
-     * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-     * rather than
+     * Required. The ID by which the new snapshot should be referred to within the
+     * parent cluster, e.g., `mysnapshot` of the form:
+     * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
      * 
* @@ -1085,9 +1085,9 @@ public java.lang.String getSnapshotId() { * * *
-     * Required. The ID by which the new snapshot should be referred to within the parent
-     * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-     * rather than
+     * Required. The ID by which the new snapshot should be referred to within the
+     * parent cluster, e.g., `mysnapshot` of the form:
+     * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
      * 
* @@ -1110,9 +1110,9 @@ public com.google.protobuf.ByteString getSnapshotIdBytes() { * * *
-     * Required. The ID by which the new snapshot should be referred to within the parent
-     * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-     * rather than
+     * Required. The ID by which the new snapshot should be referred to within the
+     * parent cluster, e.g., `mysnapshot` of the form:
+     * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
      * 
* @@ -1134,9 +1134,9 @@ public Builder setSnapshotId(java.lang.String value) { * * *
-     * Required. The ID by which the new snapshot should be referred to within the parent
-     * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-     * rather than
+     * Required. The ID by which the new snapshot should be referred to within the
+     * parent cluster, e.g., `mysnapshot` of the form:
+     * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
      * 
* @@ -1154,9 +1154,9 @@ public Builder clearSnapshotId() { * * *
-     * Required. The ID by which the new snapshot should be referred to within the parent
-     * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-     * rather than
+     * Required. The ID by which the new snapshot should be referred to within the
+     * parent cluster, e.g., `mysnapshot` of the form:
+     * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
      * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
      * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotTableRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotTableRequestOrBuilder.java index a693ed634d..813376a1d0 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotTableRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/SnapshotTableRequestOrBuilder.java @@ -93,9 +93,9 @@ public interface SnapshotTableRequestOrBuilder * * *
-   * Required. The ID by which the new snapshot should be referred to within the parent
-   * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-   * rather than
+   * Required. The ID by which the new snapshot should be referred to within the
+   * parent cluster, e.g., `mysnapshot` of the form:
+   * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
    * 
* @@ -108,9 +108,9 @@ public interface SnapshotTableRequestOrBuilder * * *
-   * Required. The ID by which the new snapshot should be referred to within the parent
-   * cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*`
-   * rather than
+   * Required. The ID by which the new snapshot should be referred to within the
+   * parent cluster, e.g., `mysnapshot` of the form:
+   * `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than
    * `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`.
    * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java index ca03579836..9d98a100c3 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/Table.java @@ -2280,7 +2280,7 @@ public int getColumnFamiliesCount() { * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -2304,7 +2304,7 @@ public boolean containsColumnFamilies(java.lang.String key) { * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -2319,7 +2319,7 @@ public boolean containsColumnFamilies(java.lang.String key) { * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -2341,7 +2341,7 @@ public boolean containsColumnFamilies(java.lang.String key) { * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -2365,10 +2365,10 @@ public com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrThrow(java.l * * *
-   * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-   * table. Timestamps not matching the granularity will be rejected.
-   * If unspecified at creation time, the value will be set to `MILLIS`.
-   * Views: `SCHEMA_VIEW`, `FULL`.
+   * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+   * in this table. Timestamps not matching the granularity will be rejected. If
+   * unspecified at creation time, the value will be set to `MILLIS`. Views:
+   * `SCHEMA_VIEW`, `FULL`.
    * 
* * @@ -2385,10 +2385,10 @@ public int getGranularityValue() { * * *
-   * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-   * table. Timestamps not matching the granularity will be rejected.
-   * If unspecified at creation time, the value will be set to `MILLIS`.
-   * Views: `SCHEMA_VIEW`, `FULL`.
+   * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+   * in this table. Timestamps not matching the granularity will be rejected. If
+   * unspecified at creation time, the value will be set to `MILLIS`. Views:
+   * `SCHEMA_VIEW`, `FULL`.
    * 
* * @@ -2412,8 +2412,8 @@ public com.google.bigtable.admin.v2.Table.TimestampGranularity getGranularity() * * *
-   * Output only. If this table was restored from another data source (e.g. a backup), this
-   * field will be populated with information about the restore.
+   * Output only. If this table was restored from another data source (e.g. a
+   * backup), this field will be populated with information about the restore.
    * 
* * @@ -2430,8 +2430,8 @@ public boolean hasRestoreInfo() { * * *
-   * Output only. If this table was restored from another data source (e.g. a backup), this
-   * field will be populated with information about the restore.
+   * Output only. If this table was restored from another data source (e.g. a
+   * backup), this field will be populated with information about the restore.
    * 
* * @@ -2450,8 +2450,8 @@ public com.google.bigtable.admin.v2.RestoreInfo getRestoreInfo() { * * *
-   * Output only. If this table was restored from another data source (e.g. a backup), this
-   * field will be populated with information about the restore.
+   * Output only. If this table was restored from another data source (e.g. a
+   * backup), this field will be populated with information about the restore.
    * 
* * @@ -2529,9 +2529,11 @@ public com.google.bigtable.admin.v2.ChangeStreamConfigOrBuilder getChangeStreamC *
    * Set to true to make the table protected against data loss. i.e. deleting
    * the following resources through Admin APIs are prohibited:
-   *   - The table.
-   *   - The column families in the table.
-   *   - The instance containing the table.
+   *
+   * * The table.
+   * * The column families in the table.
+   * * The instance containing the table.
+   *
    * Note one can still delete the data stored in the table through Data APIs.
    * 
* @@ -3474,7 +3476,7 @@ public int getColumnFamiliesCount() { * *
      * The column families configured for this table, mapped by column family ID.
-     * Views: `SCHEMA_VIEW`, `FULL`
+     * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
      * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -3498,7 +3500,7 @@ public boolean containsColumnFamilies(java.lang.String key) { * *
      * The column families configured for this table, mapped by column family ID.
-     * Views: `SCHEMA_VIEW`, `FULL`
+     * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
      * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -3513,7 +3515,7 @@ public boolean containsColumnFamilies(java.lang.String key) { * *
      * The column families configured for this table, mapped by column family ID.
-     * Views: `SCHEMA_VIEW`, `FULL`
+     * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
      * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -3535,7 +3537,7 @@ public boolean containsColumnFamilies(java.lang.String key) { * *
      * The column families configured for this table, mapped by column family ID.
-     * Views: `SCHEMA_VIEW`, `FULL`
+     * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
      * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -3564,7 +3566,7 @@ public Builder clearColumnFamilies() { * *
      * The column families configured for this table, mapped by column family ID.
-     * Views: `SCHEMA_VIEW`, `FULL`
+     * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
      * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -3588,7 +3590,7 @@ public Builder removeColumnFamilies(java.lang.String key) { * *
      * The column families configured for this table, mapped by column family ID.
-     * Views: `SCHEMA_VIEW`, `FULL`
+     * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
      * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -3610,7 +3612,7 @@ public Builder putColumnFamilies( * *
      * The column families configured for this table, mapped by column family ID.
-     * Views: `SCHEMA_VIEW`, `FULL`
+     * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
      * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -3627,10 +3629,10 @@ public Builder putAllColumnFamilies( * * *
-     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-     * table. Timestamps not matching the granularity will be rejected.
-     * If unspecified at creation time, the value will be set to `MILLIS`.
-     * Views: `SCHEMA_VIEW`, `FULL`.
+     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+     * in this table. Timestamps not matching the granularity will be rejected. If
+     * unspecified at creation time, the value will be set to `MILLIS`. Views:
+     * `SCHEMA_VIEW`, `FULL`.
      * 
* * @@ -3647,10 +3649,10 @@ public int getGranularityValue() { * * *
-     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-     * table. Timestamps not matching the granularity will be rejected.
-     * If unspecified at creation time, the value will be set to `MILLIS`.
-     * Views: `SCHEMA_VIEW`, `FULL`.
+     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+     * in this table. Timestamps not matching the granularity will be rejected. If
+     * unspecified at creation time, the value will be set to `MILLIS`. Views:
+     * `SCHEMA_VIEW`, `FULL`.
      * 
* * @@ -3670,10 +3672,10 @@ public Builder setGranularityValue(int value) { * * *
-     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-     * table. Timestamps not matching the granularity will be rejected.
-     * If unspecified at creation time, the value will be set to `MILLIS`.
-     * Views: `SCHEMA_VIEW`, `FULL`.
+     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+     * in this table. Timestamps not matching the granularity will be rejected. If
+     * unspecified at creation time, the value will be set to `MILLIS`. Views:
+     * `SCHEMA_VIEW`, `FULL`.
      * 
* * @@ -3694,10 +3696,10 @@ public com.google.bigtable.admin.v2.Table.TimestampGranularity getGranularity() * * *
-     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-     * table. Timestamps not matching the granularity will be rejected.
-     * If unspecified at creation time, the value will be set to `MILLIS`.
-     * Views: `SCHEMA_VIEW`, `FULL`.
+     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+     * in this table. Timestamps not matching the granularity will be rejected. If
+     * unspecified at creation time, the value will be set to `MILLIS`. Views:
+     * `SCHEMA_VIEW`, `FULL`.
      * 
* * @@ -3720,10 +3722,10 @@ public Builder setGranularity(com.google.bigtable.admin.v2.Table.TimestampGranul * * *
-     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-     * table. Timestamps not matching the granularity will be rejected.
-     * If unspecified at creation time, the value will be set to `MILLIS`.
-     * Views: `SCHEMA_VIEW`, `FULL`.
+     * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+     * in this table. Timestamps not matching the granularity will be rejected. If
+     * unspecified at creation time, the value will be set to `MILLIS`. Views:
+     * `SCHEMA_VIEW`, `FULL`.
      * 
* * @@ -3749,8 +3751,8 @@ public Builder clearGranularity() { * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -3766,8 +3768,8 @@ public boolean hasRestoreInfo() { * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -3789,8 +3791,8 @@ public com.google.bigtable.admin.v2.RestoreInfo getRestoreInfo() { * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -3814,8 +3816,8 @@ public Builder setRestoreInfo(com.google.bigtable.admin.v2.RestoreInfo value) { * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -3837,8 +3839,8 @@ public Builder setRestoreInfo( * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -3865,8 +3867,8 @@ public Builder mergeRestoreInfo(com.google.bigtable.admin.v2.RestoreInfo value) * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -3887,8 +3889,8 @@ public Builder clearRestoreInfo() { * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -3904,8 +3906,8 @@ public com.google.bigtable.admin.v2.RestoreInfo.Builder getRestoreInfoBuilder() * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -3925,8 +3927,8 @@ public com.google.bigtable.admin.v2.RestoreInfoOrBuilder getRestoreInfoOrBuilder * * *
-     * Output only. If this table was restored from another data source (e.g. a backup), this
-     * field will be populated with information about the restore.
+     * Output only. If this table was restored from another data source (e.g. a
+     * backup), this field will be populated with information about the restore.
      * 
* * @@ -4161,9 +4163,11 @@ public com.google.bigtable.admin.v2.ChangeStreamConfig.Builder getChangeStreamCo *
      * Set to true to make the table protected against data loss. i.e. deleting
      * the following resources through Admin APIs are prohibited:
-     *   - The table.
-     *   - The column families in the table.
-     *   - The instance containing the table.
+     *
+     * * The table.
+     * * The column families in the table.
+     * * The instance containing the table.
+     *
      * Note one can still delete the data stored in the table through Data APIs.
      * 
* @@ -4181,9 +4185,11 @@ public boolean getDeletionProtection() { *
      * Set to true to make the table protected against data loss. i.e. deleting
      * the following resources through Admin APIs are prohibited:
-     *   - The table.
-     *   - The column families in the table.
-     *   - The instance containing the table.
+     *
+     * * The table.
+     * * The column families in the table.
+     * * The instance containing the table.
+     *
      * Note one can still delete the data stored in the table through Data APIs.
      * 
* @@ -4205,9 +4211,11 @@ public Builder setDeletionProtection(boolean value) { *
      * Set to true to make the table protected against data loss. i.e. deleting
      * the following resources through Admin APIs are prohibited:
-     *   - The table.
-     *   - The column families in the table.
-     *   - The instance containing the table.
+     *
+     * * The table.
+     * * The column families in the table.
+     * * The instance containing the table.
+     *
      * Note one can still delete the data stored in the table through Data APIs.
      * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java index 02432acce6..952e777dec 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableOrBuilder.java @@ -147,7 +147,7 @@ com.google.bigtable.admin.v2.Table.ClusterState getClusterStatesOrDefault( * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -158,7 +158,7 @@ com.google.bigtable.admin.v2.Table.ClusterState getClusterStatesOrDefault( * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -172,7 +172,7 @@ com.google.bigtable.admin.v2.Table.ClusterState getClusterStatesOrDefault( * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -183,7 +183,7 @@ com.google.bigtable.admin.v2.Table.ClusterState getClusterStatesOrDefault( * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -198,7 +198,7 @@ com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( * *
    * The column families configured for this table, mapped by column family ID.
-   * Views: `SCHEMA_VIEW`, `FULL`
+   * Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL`
    * 
* * map<string, .google.bigtable.admin.v2.ColumnFamily> column_families = 3; @@ -209,10 +209,10 @@ com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( * * *
-   * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-   * table. Timestamps not matching the granularity will be rejected.
-   * If unspecified at creation time, the value will be set to `MILLIS`.
-   * Views: `SCHEMA_VIEW`, `FULL`.
+   * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+   * in this table. Timestamps not matching the granularity will be rejected. If
+   * unspecified at creation time, the value will be set to `MILLIS`. Views:
+   * `SCHEMA_VIEW`, `FULL`.
    * 
* * @@ -226,10 +226,10 @@ com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( * * *
-   * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this
-   * table. Timestamps not matching the granularity will be rejected.
-   * If unspecified at creation time, the value will be set to `MILLIS`.
-   * Views: `SCHEMA_VIEW`, `FULL`.
+   * Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored
+   * in this table. Timestamps not matching the granularity will be rejected. If
+   * unspecified at creation time, the value will be set to `MILLIS`. Views:
+   * `SCHEMA_VIEW`, `FULL`.
    * 
* * @@ -244,8 +244,8 @@ com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( * * *
-   * Output only. If this table was restored from another data source (e.g. a backup), this
-   * field will be populated with information about the restore.
+   * Output only. If this table was restored from another data source (e.g. a
+   * backup), this field will be populated with information about the restore.
    * 
* * @@ -259,8 +259,8 @@ com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( * * *
-   * Output only. If this table was restored from another data source (e.g. a backup), this
-   * field will be populated with information about the restore.
+   * Output only. If this table was restored from another data source (e.g. a
+   * backup), this field will be populated with information about the restore.
    * 
* * @@ -274,8 +274,8 @@ com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( * * *
-   * Output only. If this table was restored from another data source (e.g. a backup), this
-   * field will be populated with information about the restore.
+   * Output only. If this table was restored from another data source (e.g. a
+   * backup), this field will be populated with information about the restore.
    * 
* * @@ -331,9 +331,11 @@ com.google.bigtable.admin.v2.ColumnFamily getColumnFamiliesOrDefault( *
    * Set to true to make the table protected against data loss. i.e. deleting
    * the following resources through Admin APIs are prohibited:
-   *   - The table.
-   *   - The column families in the table.
-   *   - The instance containing the table.
+   *
+   * * The table.
+   * * The column families in the table.
+   * * The instance containing the table.
+   *
    * Note one can still delete the data stored in the table through Data APIs.
    * 
* diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java index e6afd3c3e8..736bd750eb 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/TableProto.java @@ -153,48 +153,50 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { + "pis.com/CryptoKeyVersion\"q\n\016EncryptionTy" + "pe\022\037\n\033ENCRYPTION_TYPE_UNSPECIFIED\020\000\022\035\n\031G" + "OOGLE_DEFAULT_ENCRYPTION\020\001\022\037\n\033CUSTOMER_M" - + "ANAGED_ENCRYPTION\020\002\"\314\003\n\010Snapshot\022\014\n\004name" - + "\030\001 \001(\t\0225\n\014source_table\030\002 \001(\0132\037.google.bi" - + "gtable.admin.v2.Table\022\027\n\017data_size_bytes" - + "\030\003 \001(\003\022/\n\013create_time\030\004 \001(\0132\032.google.pro" - + "tobuf.Timestamp\022/\n\013delete_time\030\005 \001(\0132\032.g" - + "oogle.protobuf.Timestamp\0227\n\005state\030\006 \001(\0162" - + "(.google.bigtable.admin.v2.Snapshot.Stat" - + "e\022\023\n\013description\030\007 \001(\t\"5\n\005State\022\023\n\017STATE" - + "_NOT_KNOWN\020\000\022\t\n\005READY\020\001\022\014\n\010CREATING\020\002:{\352" - + "Ax\n%bigtableadmin.googleapis.com/Snapsho" - + "t\022Oprojects/{project}/instances/{instanc" - + "e}/clusters/{cluster}/snapshots/{snapsho" - + "t}\"\244\004\n\006Backup\022\014\n\004name\030\001 \001(\t\022\033\n\014source_ta" - + "ble\030\002 \001(\tB\005\342A\002\005\002\0225\n\013expire_time\030\003 \001(\0132\032." - + "google.protobuf.TimestampB\004\342A\001\002\0224\n\nstart" - + "_time\030\004 \001(\0132\032.google.protobuf.TimestampB" - + "\004\342A\001\003\0222\n\010end_time\030\005 \001(\0132\032.google.protobu" - + "f.TimestampB\004\342A\001\003\022\030\n\nsize_bytes\030\006 \001(\003B\004\342" - + "A\001\003\022;\n\005state\030\007 \001(\0162&.google.bigtable.adm" - + "in.v2.Backup.StateB\004\342A\001\003\022G\n\017encryption_i" - + "nfo\030\t \001(\0132(.google.bigtable.admin.v2.Enc" - + "ryptionInfoB\004\342A\001\003\"7\n\005State\022\025\n\021STATE_UNSP" - + "ECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005READY\020\002:u\352Ar\n" - + "#bigtableadmin.googleapis.com/Backup\022Kpr" - + "ojects/{project}/instances/{instance}/cl" - + "usters/{cluster}/backups/{backup}\"\250\001\n\nBa" - + "ckupInfo\022\024\n\006backup\030\001 \001(\tB\004\342A\001\003\0224\n\nstart_" - + "time\030\002 \001(\0132\032.google.protobuf.TimestampB\004" - + "\342A\001\003\0222\n\010end_time\030\003 \001(\0132\032.google.protobuf" - + ".TimestampB\004\342A\001\003\022\032\n\014source_table\030\004 \001(\tB\004" - + "\342A\001\003*D\n\021RestoreSourceType\022#\n\037RESTORE_SOU" - + "RCE_TYPE_UNSPECIFIED\020\000\022\n\n\006BACKUP\020\001B\374\002\n\034c" - + "om.google.bigtable.admin.v2B\nTableProtoP" - + "\001Z=google.golang.org/genproto/googleapis" - + "/bigtable/admin/v2;admin\252\002\036Google.Cloud." - + "Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigtabl" - + "e\\Admin\\V2\352\002\"Google::Cloud::Bigtable::Ad" - + "min::V2\352A\246\001\n(cloudkms.googleapis.com/Cry" - + "ptoKeyVersion\022zprojects/{project}/locati" - + "ons/{location}/keyRings/{key_ring}/crypt" - + "oKeys/{crypto_key}/cryptoKeyVersions/{cr" - + "ypto_key_version}b\006proto3" + + "ANAGED_ENCRYPTION\020\002\"\344\003\n\010Snapshot\022\014\n\004name" + + "\030\001 \001(\t\022;\n\014source_table\030\002 \001(\0132\037.google.bi" + + "gtable.admin.v2.TableB\004\342A\001\003\022\035\n\017data_size" + + "_bytes\030\003 \001(\003B\004\342A\001\003\0225\n\013create_time\030\004 \001(\0132" + + "\032.google.protobuf.TimestampB\004\342A\001\003\022/\n\013del" + + "ete_time\030\005 \001(\0132\032.google.protobuf.Timesta" + + "mp\022=\n\005state\030\006 \001(\0162(.google.bigtable.admi" + + "n.v2.Snapshot.StateB\004\342A\001\003\022\023\n\013description" + + "\030\007 \001(\t\"5\n\005State\022\023\n\017STATE_NOT_KNOWN\020\000\022\t\n\005" + + "READY\020\001\022\014\n\010CREATING\020\002:{\352Ax\n%bigtableadmi" + + "n.googleapis.com/Snapshot\022Oprojects/{pro" + + "ject}/instances/{instance}/clusters/{clu" + + "ster}/snapshots/{snapshot}\"\301\004\n\006Backup\022\014\n" + + "\004name\030\001 \001(\t\022\033\n\014source_table\030\002 \001(\tB\005\342A\002\005\002" + + "\022\033\n\rsource_backup\030\n \001(\tB\004\342A\001\003\0225\n\013expire_" + + "time\030\003 \001(\0132\032.google.protobuf.TimestampB\004" + + "\342A\001\002\0224\n\nstart_time\030\004 \001(\0132\032.google.protob" + + "uf.TimestampB\004\342A\001\003\0222\n\010end_time\030\005 \001(\0132\032.g" + + "oogle.protobuf.TimestampB\004\342A\001\003\022\030\n\nsize_b" + + "ytes\030\006 \001(\003B\004\342A\001\003\022;\n\005state\030\007 \001(\0162&.google" + + ".bigtable.admin.v2.Backup.StateB\004\342A\001\003\022G\n" + + "\017encryption_info\030\t \001(\0132(.google.bigtable" + + ".admin.v2.EncryptionInfoB\004\342A\001\003\"7\n\005State\022" + + "\025\n\021STATE_UNSPECIFIED\020\000\022\014\n\010CREATING\020\001\022\t\n\005" + + "READY\020\002:u\352Ar\n#bigtableadmin.googleapis.c" + + "om/Backup\022Kprojects/{project}/instances/" + + "{instance}/clusters/{cluster}/backups/{b" + + "ackup}\"\305\001\n\nBackupInfo\022\024\n\006backup\030\001 \001(\tB\004\342" + + "A\001\003\0224\n\nstart_time\030\002 \001(\0132\032.google.protobu" + + "f.TimestampB\004\342A\001\003\0222\n\010end_time\030\003 \001(\0132\032.go" + + "ogle.protobuf.TimestampB\004\342A\001\003\022\032\n\014source_" + + "table\030\004 \001(\tB\004\342A\001\003\022\033\n\rsource_backup\030\n \001(\t" + + "B\004\342A\001\003*D\n\021RestoreSourceType\022#\n\037RESTORE_S" + + "OURCE_TYPE_UNSPECIFIED\020\000\022\n\n\006BACKUP\020\001B\374\002\n" + + "\034com.google.bigtable.admin.v2B\nTableProt" + + "oP\001Z=google.golang.org/genproto/googleap" + + "is/bigtable/admin/v2;admin\252\002\036Google.Clou" + + "d.Bigtable.Admin.V2\312\002\036Google\\Cloud\\Bigta" + + "ble\\Admin\\V2\352\002\"Google::Cloud::Bigtable::" + + "Admin::V2\352A\246\001\n(cloudkms.googleapis.com/C" + + "ryptoKeyVersion\022zprojects/{project}/loca" + + "tions/{location}/keyRings/{key_ring}/cry" + + "ptoKeys/{crypto_key}/cryptoKeyVersions/{" + + "crypto_key_version}b\006proto3" }; descriptor = com.google.protobuf.Descriptors.FileDescriptor.internalBuildGeneratedFileFrom( @@ -322,6 +324,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new java.lang.String[] { "Name", "SourceTable", + "SourceBackup", "ExpireTime", "StartTime", "EndTime", @@ -335,7 +338,7 @@ public static com.google.protobuf.Descriptors.FileDescriptor getDescriptor() { new com.google.protobuf.GeneratedMessageV3.FieldAccessorTable( internal_static_google_bigtable_admin_v2_BackupInfo_descriptor, new java.lang.String[] { - "Backup", "StartTime", "EndTime", "SourceTable", + "Backup", "StartTime", "EndTime", "SourceTable", "SourceBackup", }); com.google.protobuf.ExtensionRegistry registry = com.google.protobuf.ExtensionRegistry.newInstance(); diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateBackupRequest.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateBackupRequest.java index 5d7e064d19..77e28b229a 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateBackupRequest.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateBackupRequest.java @@ -22,7 +22,8 @@ * * *
- * The request for [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup].
+ * The request for
+ * [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup].
  * 
* * Protobuf type {@code google.bigtable.admin.v2.UpdateBackupRequest} @@ -69,6 +70,7 @@ public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -88,6 +90,7 @@ public boolean hasBackup() { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -107,6 +110,7 @@ public com.google.bigtable.admin.v2.Backup getBackup() { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -361,7 +365,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build * * *
-   * The request for [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup].
+   * The request for
+   * [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup].
    * 
* * Protobuf type {@code google.bigtable.admin.v2.UpdateBackupRequest} @@ -572,6 +577,7 @@ public Builder mergeFrom( * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -590,6 +596,7 @@ public boolean hasBackup() { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -612,6 +619,7 @@ public com.google.bigtable.admin.v2.Backup getBackup() { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -638,6 +646,7 @@ public Builder setBackup(com.google.bigtable.admin.v2.Backup value) { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -661,6 +670,7 @@ public Builder setBackup(com.google.bigtable.admin.v2.Backup.Builder builderForV * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -690,6 +700,7 @@ public Builder mergeBackup(com.google.bigtable.admin.v2.Backup value) { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -713,6 +724,7 @@ public Builder clearBackup() { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -731,6 +743,7 @@ public com.google.bigtable.admin.v2.Backup.Builder getBackupBuilder() { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -751,6 +764,7 @@ public com.google.bigtable.admin.v2.BackupOrBuilder getBackupOrBuilder() { * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateBackupRequestOrBuilder.java b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateBackupRequestOrBuilder.java index 0ccb1ab036..75dd4d311c 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateBackupRequestOrBuilder.java +++ b/proto-google-cloud-bigtable-admin-v2/src/main/java/com/google/bigtable/admin/v2/UpdateBackupRequestOrBuilder.java @@ -30,6 +30,7 @@ public interface UpdateBackupRequestOrBuilder * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -46,6 +47,7 @@ public interface UpdateBackupRequestOrBuilder * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * @@ -62,6 +64,7 @@ public interface UpdateBackupRequestOrBuilder * Required. The backup to update. `backup.name`, and the fields to be updated * as specified by `update_mask` are required. Other fields are ignored. * Update is only supported for the following fields: + * * * `backup.expire_time`. * * 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 203bb52d46..8c516abe7a 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 2022 Google LLC +// Copyright 2023 Google LLC // // Licensed under the Apache License, Version 2.0 (the "License"); // you may not use this file except in compliance with the License. @@ -72,7 +72,8 @@ service BigtableTableAdmin { // feature might be changed in backward-incompatible ways and is not // recommended for production use. It is not subject to any SLA or deprecation // policy. - rpc CreateTableFromSnapshot(CreateTableFromSnapshotRequest) returns (google.longrunning.Operation) { + rpc CreateTableFromSnapshot(CreateTableFromSnapshotRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{parent=projects/*/instances/*}/tables:createFromSnapshot" body: "*" @@ -122,7 +123,8 @@ service BigtableTableAdmin { } // Restores a specified table which was accidentally deleted. - rpc UndeleteTable(UndeleteTableRequest) returns (google.longrunning.Operation) { + rpc UndeleteTable(UndeleteTableRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{name=projects/*/instances/*/tables/*}:undelete" body: "*" @@ -160,7 +162,8 @@ service BigtableTableAdmin { // CheckConsistency to check whether mutations to the table that finished // before this call started have been replicated. The tokens will be available // for 90 days. - rpc GenerateConsistencyToken(GenerateConsistencyTokenRequest) returns (GenerateConsistencyTokenResponse) { + rpc GenerateConsistencyToken(GenerateConsistencyTokenRequest) + returns (GenerateConsistencyTokenResponse) { option (google.api.http) = { post: "/v2/{name=projects/*/instances/*/tables/*}:generateConsistencyToken" body: "*" @@ -171,7 +174,8 @@ service BigtableTableAdmin { // Checks replication consistency based on a consistency token, that is, if // replication has caught up based on the conditions specified in the token // and the check request. - rpc CheckConsistency(CheckConsistencyRequest) returns (CheckConsistencyResponse) { + rpc CheckConsistency(CheckConsistencyRequest) + returns (CheckConsistencyResponse) { option (google.api.http) = { post: "/v2/{name=projects/*/instances/*/tables/*}:checkConsistency" body: "*" @@ -187,12 +191,14 @@ service BigtableTableAdmin { // feature might be changed in backward-incompatible ways and is not // recommended for production use. It is not subject to any SLA or deprecation // policy. - rpc SnapshotTable(SnapshotTableRequest) returns (google.longrunning.Operation) { + rpc SnapshotTable(SnapshotTableRequest) + returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{name=projects/*/instances/*/tables/*}:snapshot" body: "*" }; - option (google.api.method_signature) = "name,cluster,snapshot_id,description"; + option (google.api.method_signature) = + "name,cluster,snapshot_id,description"; option (google.longrunning.operation_info) = { response_type: "Snapshot" metadata_type: "SnapshotTableMetadata" @@ -247,8 +253,8 @@ service BigtableTableAdmin { // [metadata][google.longrunning.Operation.metadata] field type is // [CreateBackupMetadata][google.bigtable.admin.v2.CreateBackupMetadata]. The // [response][google.longrunning.Operation.response] field type is - // [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the returned operation will stop the - // creation and delete the backup. + // [Backup][google.bigtable.admin.v2.Backup], if successful. Cancelling the + // returned operation will stop the creation and delete the backup. rpc CreateBackup(CreateBackupRequest) returns (google.longrunning.Operation) { option (google.api.http) = { post: "/v2/{parent=projects/*/instances/*/clusters/*}/backups" @@ -295,8 +301,7 @@ service BigtableTableAdmin { option (google.api.method_signature) = "parent"; } - // Create a new table by restoring from a completed backup. The new table - // must be in the same project as the instance containing the backup. The + // Create a new table by restoring from a completed backup. The // returned table [long-running operation][google.longrunning.Operation] can // be used to track the progress of the operation, and to cancel it. The // [metadata][google.longrunning.Operation.metadata] field type is @@ -314,10 +319,26 @@ service BigtableTableAdmin { }; } + // Copy a Cloud Bigtable backup to a new backup in the destination cluster + // located in the destination instance and project. + rpc CopyBackup(CopyBackupRequest) returns (google.longrunning.Operation) { + option (google.api.http) = { + post: "/v2/{parent=projects/*/instances/*/clusters/*}/backups:copy" + body: "*" + }; + option (google.api.method_signature) = + "parent,backup_id,source_backup,expire_time"; + option (google.longrunning.operation_info) = { + response_type: "Backup" + metadata_type: "CopyBackupMetadata" + }; + } + // Gets the access control policy for a Table or Backup resource. // Returns an empty policy if the resource exists but does not have a policy // set. - rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc GetIamPolicy(google.iam.v1.GetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:getIamPolicy" body: "*" @@ -331,7 +352,8 @@ service BigtableTableAdmin { // Sets the access control policy on a Table or Backup resource. // Replaces any existing policy. - rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) returns (google.iam.v1.Policy) { + rpc SetIamPolicy(google.iam.v1.SetIamPolicyRequest) + returns (google.iam.v1.Policy) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:setIamPolicy" body: "*" @@ -343,8 +365,10 @@ service BigtableTableAdmin { option (google.api.method_signature) = "resource,policy"; } - // Returns permissions that the caller has on the specified Table or Backup resource. - rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) returns (google.iam.v1.TestIamPermissionsResponse) { + // Returns permissions that the caller has on the specified Table or Backup + // resource. + rpc TestIamPermissions(google.iam.v1.TestIamPermissionsRequest) + returns (google.iam.v1.TestIamPermissionsResponse) { option (google.api.http) = { post: "/v2/{resource=projects/*/instances/*/tables/*}:testIamPermissions" body: "*" @@ -361,8 +385,7 @@ service BigtableTableAdmin { // [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]. message RestoreTableRequest { // Required. The name of the instance in which to create the restored - // table. This instance must be in the same project as the source backup. - // Values are of the form `projects//instances/`. + // table. Values are of the form `projects//instances/`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -381,8 +404,8 @@ message RestoreTableRequest { // Name of the backup from which to restore. Values are of the form // `projects//instances//clusters//backups/`. string backup = 3 [(google.api.resource_reference) = { - type: "bigtableadmin.googleapis.com/Backup" - }]; + type: "bigtableadmin.googleapis.com/Backup" + }]; } } @@ -396,7 +419,8 @@ message RestoreTableMetadata { RestoreSourceType source_type = 2; // Information about the source used to restore the table, as specified by - // `source` in [RestoreTableRequest][google.bigtable.admin.v2.RestoreTableRequest]. + // `source` in + // [RestoreTableRequest][google.bigtable.admin.v2.RestoreTableRequest]. oneof source_info { BackupInfo backup_info = 3; } @@ -412,7 +436,8 @@ message RestoreTableMetadata { // not successful. string optimize_table_operation_name = 4; - // The progress of the [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] + // The progress of the + // [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable] // operation. OperationProgress progress = 5; } @@ -447,8 +472,8 @@ message CreateTableRequest { } ]; - // Required. The name by which the new table should be referred to within the parent - // instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + // Required. The name by which the new table should be referred to within the + // parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. // Maximum 50 characters. string table_id = 2 [(google.api.field_behavior) = REQUIRED]; @@ -491,13 +516,13 @@ message CreateTableFromSnapshotRequest { } ]; - // Required. The name by which the new table should be referred to within the parent - // instance, e.g., `foobar` rather than `{parent}/tables/foobar`. + // Required. The name by which the new table should be referred to within the + // parent instance, e.g., `foobar` rather than `{parent}/tables/foobar`. string table_id = 2 [(google.api.field_behavior) = REQUIRED]; - // Required. The unique name of the snapshot from which to restore the table. The - // snapshot and the table must be in the same instance. - // Values are of the form + // Required. The unique name of the snapshot from which to restore the table. + // The snapshot and the table must be in the same instance. Values are of the + // form // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. string source_snapshot = 3 [ (google.api.field_behavior) = REQUIRED, @@ -534,8 +559,8 @@ message DropRowRangeRequest { // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.ListTables][google.bigtable.admin.v2.BigtableTableAdmin.ListTables] message ListTablesRequest { - // Required. The unique name of the instance for which tables should be listed. - // Values are of the form `projects/{project}/instances/{instance}`. + // Required. The unique name of the instance for which tables should be + // listed. Values are of the form `projects/{project}/instances/{instance}`. string parent = 1 [ (google.api.field_behavior) = REQUIRED, (google.api.resource_reference) = { @@ -544,7 +569,7 @@ message ListTablesRequest { ]; // The view to be applied to the returned tables' fields. - // Only NAME_ONLY view (default) and REPLICATION_VIEW are supported. + // NAME_ONLY view (default) and REPLICATION_VIEW are supported. Table.View view = 2; // Maximum number of results per page. @@ -703,18 +728,19 @@ message ModifyColumnFamiliesRequest { } ]; - // Required. Modifications to be atomically applied to the specified table's families. - // Entries are applied in order, meaning that earlier modifications can be - // masked by later ones (in the case of repeated updates to the same family, - // for example). - repeated Modification modifications = 2 [(google.api.field_behavior) = REQUIRED]; + // Required. Modifications to be atomically applied to the specified table's + // families. Entries are applied in order, meaning that earlier modifications + // can be masked by later ones (in the case of repeated updates to the same + // family, for example). + repeated Modification modifications = 2 + [(google.api.field_behavior) = REQUIRED]; } // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken][google.bigtable.admin.v2.BigtableTableAdmin.GenerateConsistencyToken] message GenerateConsistencyTokenRequest { - // Required. The unique name of the Table for which to create a consistency token. - // Values are of the form + // Required. The unique name of the Table for which to create a consistency + // token. Values are of the form // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -734,8 +760,8 @@ message GenerateConsistencyTokenResponse { // Request message for // [google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency][google.bigtable.admin.v2.BigtableTableAdmin.CheckConsistency] message CheckConsistencyRequest { - // Required. The unique name of the Table for which to check replication consistency. - // Values are of the form + // Required. The unique name of the Table for which to check replication + // consistency. Values are of the form // `projects/{project}/instances/{instance}/tables/{table}`. string name = 1 [ (google.api.field_behavior) = REQUIRED, @@ -784,9 +810,9 @@ message SnapshotTableRequest { } ]; - // Required. The ID by which the new snapshot should be referred to within the parent - // cluster, e.g., `mysnapshot` of the form: `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` - // rather than + // Required. The ID by which the new snapshot should be referred to within the + // parent cluster, e.g., `mysnapshot` of the form: + // `[_a-zA-Z0-9][-_.a-zA-Z0-9]*` rather than // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/mysnapshot`. string snapshot_id = 3 [(google.api.field_behavior) = REQUIRED]; @@ -827,8 +853,8 @@ message GetSnapshotRequest { // feature might be changed in backward-incompatible ways and is not recommended // for production use. It is not subject to any SLA or deprecation policy. message ListSnapshotsRequest { - // Required. The unique name of the cluster for which snapshots should be listed. - // Values are of the form + // Required. The unique name of the cluster for which snapshots should be + // listed. Values are of the form // `projects/{project}/instances/{instance}/clusters/{cluster}`. // Use `{cluster} = '-'` to list snapshots for all clusters in an instance, // e.g., `projects/{project}/instances/{instance}/clusters/-`. @@ -918,7 +944,8 @@ message CreateTableFromSnapshotMetadata { google.protobuf.Timestamp finish_time = 3; } -// The request for [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]. +// The request for +// [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup]. message CreateBackupRequest { // Required. This must be one of the clusters in the instance in which this // table is located. The backup will be stored in this cluster. Values are @@ -958,11 +985,13 @@ message CreateBackupMetadata { google.protobuf.Timestamp end_time = 4; } -// The request for [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup]. +// The request for +// [UpdateBackup][google.bigtable.admin.v2.BigtableTableAdmin.UpdateBackup]. message UpdateBackupRequest { // Required. The backup to update. `backup.name`, and the fields to be updated // as specified by `update_mask` are required. Other fields are ignored. // Update is only supported for the following fields: + // // * `backup.expire_time`. Backup backup = 1 [(google.api.field_behavior) = REQUIRED]; @@ -971,10 +1000,12 @@ message UpdateBackupRequest { // resource, not to the request message. The field mask must always be // specified; this prevents any future fields from being erased accidentally // by clients that do not know about them. - google.protobuf.FieldMask update_mask = 2 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.FieldMask update_mask = 2 + [(google.api.field_behavior) = REQUIRED]; } -// The request for [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup]. +// The request for +// [GetBackup][google.bigtable.admin.v2.BigtableTableAdmin.GetBackup]. message GetBackupRequest { // Required. Name of the backup. // Values are of the form @@ -987,7 +1018,8 @@ message GetBackupRequest { ]; } -// The request for [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup]. +// The request for +// [DeleteBackup][google.bigtable.admin.v2.BigtableTableAdmin.DeleteBackup]. message DeleteBackupRequest { // Required. Name of the backup to delete. // Values are of the form @@ -1000,7 +1032,8 @@ message DeleteBackupRequest { ]; } -// The request for [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. +// The request for +// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. message ListBackupsRequest { // Required. The cluster to list backups from. Values are of the // form `projects/{project}/instances/{instance}/clusters/{cluster}`. @@ -1021,13 +1054,14 @@ message ListBackupsRequest { // roughly synonymous with equality. Filter rules are case insensitive. // // The fields eligible for filtering are: - // * `name` - // * `source_table` - // * `state` - // * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - // * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - // * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) - // * `size_bytes` + // + // * `name` + // * `source_table` + // * `state` + // * `start_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `end_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `expire_time` (and values are of the format YYYY-MM-DDTHH:MM:SSZ) + // * `size_bytes` // // To filter on multiple expressions, provide each separate expression within // parentheses. By default, each expression is an AND expression. However, @@ -1035,30 +1069,32 @@ message ListBackupsRequest { // // Some examples of using filters are: // - // * `name:"exact"` --> The backup's name is the string "exact". - // * `name:howl` --> The backup's name contains the string "howl". - // * `source_table:prod` - // --> The source_table's name contains the string "prod". - // * `state:CREATING` --> The backup is pending creation. - // * `state:READY` --> The backup is fully created and ready for use. - // * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` - // --> The backup name contains the string "howl" and start_time - // of the backup is before 2018-03-28T14:50:00Z. - // * `size_bytes > 10000000000` --> The backup's size is greater than 10GB + // * `name:"exact"` --> The backup's name is the string "exact". + // * `name:howl` --> The backup's name contains the string "howl". + // * `source_table:prod` + // --> The source_table's name contains the string "prod". + // * `state:CREATING` --> The backup is pending creation. + // * `state:READY` --> The backup is fully created and ready for use. + // * `(name:howl) AND (start_time < \"2018-03-28T14:50:00Z\")` + // --> The backup name contains the string "howl" and start_time + // of the backup is before 2018-03-28T14:50:00Z. + // * `size_bytes > 10000000000` --> The backup's size is greater than 10GB string filter = 2; // An expression for specifying the sort order of the results of the request. - // The string value should specify one or more fields in [Backup][google.bigtable.admin.v2.Backup]. The full - // syntax is described at https://aip.dev/132#ordering. + // The string value should specify one or more fields in + // [Backup][google.bigtable.admin.v2.Backup]. The full syntax is described at + // https://aip.dev/132#ordering. // // Fields supported are: - // * name - // * source_table - // * expire_time - // * start_time - // * end_time - // * size_bytes - // * state + // + // * name + // * source_table + // * expire_time + // * start_time + // * end_time + // * size_bytes + // * state // // For example, "start_time". The default sorting order is ascending. // To specify descending order for the field, a suffix " desc" should @@ -1074,19 +1110,84 @@ message ListBackupsRequest { int32 page_size = 4; // If non-empty, `page_token` should contain a - // [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] from a - // previous [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the same `parent` and with the same - // `filter`. + // [next_page_token][google.bigtable.admin.v2.ListBackupsResponse.next_page_token] + // from a previous + // [ListBackupsResponse][google.bigtable.admin.v2.ListBackupsResponse] to the + // same `parent` and with the same `filter`. string page_token = 5; } -// The response for [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. +// The response for +// [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups]. message ListBackupsResponse { // The list of matching backups. repeated Backup backups = 1; // `next_page_token` can be sent in a subsequent - // [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call to fetch more - // of the matching backups. + // [ListBackups][google.bigtable.admin.v2.BigtableTableAdmin.ListBackups] call + // to fetch more of the matching backups. string next_page_token = 2; } + +// The request for +// [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]. +message CopyBackupRequest { + // Required. The name of the destination cluster that will contain the backup + // copy. The cluster must already exists. Values are of the form: + // `projects/{project}/instances/{instance}/clusters/{cluster}`. + string parent = 1 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Cluster" + } + ]; + + // Required. The id of the new backup. The `backup_id` along with `parent` + // are combined as {parent}/backups/{backup_id} to create the full backup + // name, of the form: + // `projects/{project}/instances/{instance}/clusters/{cluster}/backups/{backup_id}`. + // This string must be between 1 and 50 characters in length and match the + // regex [_a-zA-Z0-9][-_.a-zA-Z0-9]*. + string backup_id = 2 [(google.api.field_behavior) = REQUIRED]; + + // Required. The source backup to be copied from. + // The source backup needs to be in READY state for it to be copied. + // Copying a copied backup is not allowed. + // Once CopyBackup is in progress, the source backup cannot be deleted or + // cleaned up on expiration until CopyBackup is finished. + // Values are of the form: + // `projects//instances//clusters//backups/`. + string source_backup = 3 [ + (google.api.field_behavior) = REQUIRED, + (google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Backup" + } + ]; + + // Required. Required. The expiration time of the copied backup with + // microsecond granularity that must be at least 6 hours and at most 30 days + // from the time the request is received. Once the `expire_time` has + // passed, Cloud Bigtable will delete the backup and free the resources used + // by the backup. + google.protobuf.Timestamp expire_time = 4 + [(google.api.field_behavior) = REQUIRED]; +} + +// Metadata type for the google.longrunning.Operation returned by +// [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup]. +message CopyBackupMetadata { + // The name of the backup being created through the copy operation. + // Values are of the form + // `projects//instances//clusters//backups/`. + string name = 1 [(google.api.resource_reference) = { + type: "bigtableadmin.googleapis.com/Backup" + }]; + + // Information about the source backup that is being copied from. + BackupInfo source_backup_info = 2; + + // The progress of the + // [CopyBackup][google.bigtable.admin.v2.BigtableTableAdmin.CopyBackup] + // operation. + OperationProgress progress = 3; +} diff --git a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto index e597850ebf..4d02d30364 100644 --- a/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto +++ b/proto-google-cloud-bigtable-admin-v2/src/main/proto/google/bigtable/admin/v2/table.proto @@ -34,7 +34,6 @@ option (google.api.resource_definition) = { pattern: "projects/{project}/locations/{location}/keyRings/{key_ring}/cryptoKeys/{crypto_key}/cryptoKeyVersions/{crypto_key_version}" }; - // Information about a table restore. message RestoreInfo { // The type of the restore source. @@ -98,14 +97,16 @@ message Table { } // Output only. The state of replication for the table in this cluster. - ReplicationState replication_state = 1 [(google.api.field_behavior) = OUTPUT_ONLY]; + ReplicationState replication_state = 1 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The encryption information for the table in this cluster. // If the encryption key protecting this resource is customer managed, then // its version can be rotated in Cloud Key Management Service (Cloud KMS). // The primary version of the key and its status will be reflected here when // changes propagate from Cloud KMS. - repeated EncryptionInfo encryption_info = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + repeated EncryptionInfo encryption_info = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Possible timestamp granularities to use when keeping multiple versions @@ -151,20 +152,22 @@ message Table { // particular cluster (for example, if its zone is unavailable), then // there will be an entry for the cluster with UNKNOWN `replication_status`. // Views: `REPLICATION_VIEW`, `ENCRYPTION_VIEW`, `FULL` - map cluster_states = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + map cluster_states = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // The column families configured for this table, mapped by column family ID. - // Views: `SCHEMA_VIEW`, `FULL` + // Views: `SCHEMA_VIEW`, `STATS_VIEW`, `FULL` map column_families = 3; - // Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored in this - // table. Timestamps not matching the granularity will be rejected. - // If unspecified at creation time, the value will be set to `MILLIS`. - // Views: `SCHEMA_VIEW`, `FULL`. - TimestampGranularity granularity = 4 [(google.api.field_behavior) = IMMUTABLE]; + // Immutable. The granularity (i.e. `MILLIS`) at which timestamps are stored + // in this table. Timestamps not matching the granularity will be rejected. If + // unspecified at creation time, the value will be set to `MILLIS`. Views: + // `SCHEMA_VIEW`, `FULL`. + TimestampGranularity granularity = 4 + [(google.api.field_behavior) = IMMUTABLE]; - // Output only. If this table was restored from another data source (e.g. a backup), this - // field will be populated with information about the restore. + // Output only. If this table was restored from another data source (e.g. a + // backup), this field will be populated with information about the restore. RestoreInfo restore_info = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; // If specified, enable the change stream on this table. @@ -174,9 +177,11 @@ message Table { // Set to true to make the table protected against data loss. i.e. deleting // the following resources through Admin APIs are prohibited: - // - The table. - // - The column families in the table. - // - The instance containing the table. + // + // * The table. + // * The column families in the table. + // * The instance containing the table. + // // Note one can still delete the data stored in the table through Data APIs. bool deletion_protection = 9; } @@ -250,14 +255,17 @@ message EncryptionInfo { } // Output only. The type of encryption used to protect this resource. - EncryptionType encryption_type = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + EncryptionType encryption_type = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The status of encrypt/decrypt calls on underlying data for this resource. - // Regardless of status, the existing data is always encrypted at rest. - google.rpc.Status encryption_status = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Output only. The status of encrypt/decrypt calls on underlying data for + // this resource. Regardless of status, the existing data is always encrypted + // at rest. + google.rpc.Status encryption_status = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The version of the Cloud KMS key specified in the parent cluster that is - // in use for the data underlying this table. + // Output only. The version of the Cloud KMS key specified in the parent + // cluster that is in use for the data underlying this table. string kms_key_version = 2 [ (google.api.field_behavior) = OUTPUT_ONLY, (google.api.resource_reference) = { @@ -293,32 +301,33 @@ message Snapshot { CREATING = 2; } - // Output only. The unique name of the snapshot. + // The unique name of the snapshot. // Values are of the form // `projects/{project}/instances/{instance}/clusters/{cluster}/snapshots/{snapshot}`. string name = 1; // Output only. The source table at the time the snapshot was taken. - Table source_table = 2; + Table source_table = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The size of the data in the source table at the time the // snapshot was taken. In some cases, this value may be computed // asynchronously via a background process and a placeholder of 0 will be used // in the meantime. - int64 data_size_bytes = 3; + int64 data_size_bytes = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The time when the snapshot is created. - google.protobuf.Timestamp create_time = 4; + google.protobuf.Timestamp create_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. The time when the snapshot will be deleted. The maximum amount - // of time a snapshot can stay active is 365 days. If 'ttl' is not specified, + // The time when the snapshot will be deleted. The maximum amount of time a + // snapshot can stay active is 365 days. If 'ttl' is not specified, // the default maximum of 365 days will be used. google.protobuf.Timestamp delete_time = 5; // Output only. The current state of the snapshot. - State state = 6; + State state = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; - // Output only. Description of the snapshot. + // Description of the snapshot. string description = 7; } @@ -354,30 +363,39 @@ message Backup { // `projects/{project}/instances/{instance}/clusters/{cluster}`. string name = 1; - // Required. Immutable. Name of the table from which this backup was created. This needs - // to be in the same instance as the backup. Values are of the form + // Required. Immutable. Name of the table from which this backup was created. + // This needs to be in the same instance as the backup. Values are of the form // `projects/{project}/instances/{instance}/tables/{source_table}`. string source_table = 2 [ (google.api.field_behavior) = IMMUTABLE, (google.api.field_behavior) = REQUIRED ]; + // Output only. Name of the backup from which this backup was copied. If a + // backup is not created by copying a backup, this field will be empty. Values + // are of the form: projects//instances//backups/. + string source_backup = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; + // Required. The expiration time of the backup, with microseconds // granularity that must be at least 6 hours and at most 90 days // from the time the request is received. Once the `expire_time` // has passed, Cloud Bigtable will delete the backup and free the // resources used by the backup. - google.protobuf.Timestamp expire_time = 3 [(google.api.field_behavior) = REQUIRED]; + google.protobuf.Timestamp expire_time = 3 + [(google.api.field_behavior) = REQUIRED]; // Output only. `start_time` is the time that the backup was started // (i.e. approximately the time the - // [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] request is received). The - // row data in this backup will be no older than this timestamp. - google.protobuf.Timestamp start_time = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + // [CreateBackup][google.bigtable.admin.v2.BigtableTableAdmin.CreateBackup] + // request is received). The row data in this backup will be no older than + // this timestamp. + google.protobuf.Timestamp start_time = 4 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. `end_time` is the time that the backup was finished. The row // data in the backup will be no newer than this timestamp. - google.protobuf.Timestamp end_time = 5 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 5 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Size of the backup in bytes. int64 size_bytes = 6 [(google.api.field_behavior) = OUTPUT_ONLY]; @@ -386,7 +404,8 @@ message Backup { State state = 7 [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. The encryption information for the backup. - EncryptionInfo encryption_info = 9 [(google.api.field_behavior) = OUTPUT_ONLY]; + EncryptionInfo encryption_info = 9 + [(google.api.field_behavior) = OUTPUT_ONLY]; } // Information about a backup. @@ -396,14 +415,21 @@ message BackupInfo { // Output only. The time that the backup was started. Row data in the backup // will be no older than this timestamp. - google.protobuf.Timestamp start_time = 2 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp start_time = 2 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. This time that the backup was finished. Row data in the // backup will be no newer than this timestamp. - google.protobuf.Timestamp end_time = 3 [(google.api.field_behavior) = OUTPUT_ONLY]; + google.protobuf.Timestamp end_time = 3 + [(google.api.field_behavior) = OUTPUT_ONLY]; // Output only. Name of the table the backup was created from. string source_table = 4 [(google.api.field_behavior) = OUTPUT_ONLY]; + + // Output only. Name of the backup from which this backup was copied. If a + // backup is not created by copying a backup, this field will be empty. Values + // are of the form: projects//instances//backups/. + string source_backup = 10 [(google.api.field_behavior) = OUTPUT_ONLY]; } // Indicates the type of the restore source.