Class RestoreTableMetadata.Builder

  • All Implemented Interfaces:
    RestoreTableMetadataOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    RestoreTableMetadata

    public static final class RestoreTableMetadata.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
    implements RestoreTableMetadataOrBuilder
     Metadata type for the long-running operation returned by
     [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable].
     
    Protobuf type google.bigtable.admin.v2.RestoreTableMetadata
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • clear

        public RestoreTableMetadata.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • getDefaultInstanceForType

        public RestoreTableMetadata getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public RestoreTableMetadata build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public RestoreTableMetadata buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public RestoreTableMetadata.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • setField

        public RestoreTableMetadata.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                     Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • clearField

        public RestoreTableMetadata.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • clearOneof

        public RestoreTableMetadata.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • setRepeatedField

        public RestoreTableMetadata.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             int index,
                                                             Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • addRepeatedField

        public RestoreTableMetadata.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                             Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • mergeFrom

        public RestoreTableMetadata.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                      com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                               throws IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RestoreTableMetadata.Builder>
        Throws:
        IOException
      • getNameBytes

        public com.google.protobuf.ByteString getNameBytes()
         Name of the table being created and restored to.
         
        string name = 1;
        Specified by:
        getNameBytes in interface RestoreTableMetadataOrBuilder
        Returns:
        The bytes for name.
      • setName

        public RestoreTableMetadata.Builder setName​(String value)
         Name of the table being created and restored to.
         
        string name = 1;
        Parameters:
        value - The name to set.
        Returns:
        This builder for chaining.
      • clearName

        public RestoreTableMetadata.Builder clearName()
         Name of the table being created and restored to.
         
        string name = 1;
        Returns:
        This builder for chaining.
      • setNameBytes

        public RestoreTableMetadata.Builder setNameBytes​(com.google.protobuf.ByteString value)
         Name of the table being created and restored to.
         
        string name = 1;
        Parameters:
        value - The bytes for name to set.
        Returns:
        This builder for chaining.
      • getSourceTypeValue

        public int getSourceTypeValue()
         The type of the restore source.
         
        .google.bigtable.admin.v2.RestoreSourceType source_type = 2;
        Specified by:
        getSourceTypeValue in interface RestoreTableMetadataOrBuilder
        Returns:
        The enum numeric value on the wire for sourceType.
      • setSourceTypeValue

        public RestoreTableMetadata.Builder setSourceTypeValue​(int value)
         The type of the restore source.
         
        .google.bigtable.admin.v2.RestoreSourceType source_type = 2;
        Parameters:
        value - The enum numeric value on the wire for sourceType to set.
        Returns:
        This builder for chaining.
      • setSourceType

        public RestoreTableMetadata.Builder setSourceType​(RestoreSourceType value)
         The type of the restore source.
         
        .google.bigtable.admin.v2.RestoreSourceType source_type = 2;
        Parameters:
        value - The sourceType to set.
        Returns:
        This builder for chaining.
      • clearSourceType

        public RestoreTableMetadata.Builder clearSourceType()
         The type of the restore source.
         
        .google.bigtable.admin.v2.RestoreSourceType source_type = 2;
        Returns:
        This builder for chaining.
      • hasBackupInfo

        public boolean hasBackupInfo()
        .google.bigtable.admin.v2.BackupInfo backup_info = 3;
        Specified by:
        hasBackupInfo in interface RestoreTableMetadataOrBuilder
        Returns:
        Whether the backupInfo field is set.
      • getBackupInfoBuilder

        public BackupInfo.Builder getBackupInfoBuilder()
        .google.bigtable.admin.v2.BackupInfo backup_info = 3;
      • getOptimizeTableOperationName

        public String getOptimizeTableOperationName()
         If exists, the name of the long-running operation that will be used to
         track the post-restore optimization process to optimize the performance of
         the restored table. The metadata type of the long-running operation is
         [OptimizeRestoreTableMetadata][]. The response type is
         [Empty][google.protobuf.Empty]. This long-running operation may be
         automatically created by the system if applicable after the
         RestoreTable long-running operation completes successfully. This operation
         may not be created if the table is already optimized or the restore was
         not successful.
         
        string optimize_table_operation_name = 4;
        Specified by:
        getOptimizeTableOperationName in interface RestoreTableMetadataOrBuilder
        Returns:
        The optimizeTableOperationName.
      • getOptimizeTableOperationNameBytes

        public com.google.protobuf.ByteString getOptimizeTableOperationNameBytes()
         If exists, the name of the long-running operation that will be used to
         track the post-restore optimization process to optimize the performance of
         the restored table. The metadata type of the long-running operation is
         [OptimizeRestoreTableMetadata][]. The response type is
         [Empty][google.protobuf.Empty]. This long-running operation may be
         automatically created by the system if applicable after the
         RestoreTable long-running operation completes successfully. This operation
         may not be created if the table is already optimized or the restore was
         not successful.
         
        string optimize_table_operation_name = 4;
        Specified by:
        getOptimizeTableOperationNameBytes in interface RestoreTableMetadataOrBuilder
        Returns:
        The bytes for optimizeTableOperationName.
      • setOptimizeTableOperationName

        public RestoreTableMetadata.Builder setOptimizeTableOperationName​(String value)
         If exists, the name of the long-running operation that will be used to
         track the post-restore optimization process to optimize the performance of
         the restored table. The metadata type of the long-running operation is
         [OptimizeRestoreTableMetadata][]. The response type is
         [Empty][google.protobuf.Empty]. This long-running operation may be
         automatically created by the system if applicable after the
         RestoreTable long-running operation completes successfully. This operation
         may not be created if the table is already optimized or the restore was
         not successful.
         
        string optimize_table_operation_name = 4;
        Parameters:
        value - The optimizeTableOperationName to set.
        Returns:
        This builder for chaining.
      • clearOptimizeTableOperationName

        public RestoreTableMetadata.Builder clearOptimizeTableOperationName()
         If exists, the name of the long-running operation that will be used to
         track the post-restore optimization process to optimize the performance of
         the restored table. The metadata type of the long-running operation is
         [OptimizeRestoreTableMetadata][]. The response type is
         [Empty][google.protobuf.Empty]. This long-running operation may be
         automatically created by the system if applicable after the
         RestoreTable long-running operation completes successfully. This operation
         may not be created if the table is already optimized or the restore was
         not successful.
         
        string optimize_table_operation_name = 4;
        Returns:
        This builder for chaining.
      • setOptimizeTableOperationNameBytes

        public RestoreTableMetadata.Builder setOptimizeTableOperationNameBytes​(com.google.protobuf.ByteString value)
         If exists, the name of the long-running operation that will be used to
         track the post-restore optimization process to optimize the performance of
         the restored table. The metadata type of the long-running operation is
         [OptimizeRestoreTableMetadata][]. The response type is
         [Empty][google.protobuf.Empty]. This long-running operation may be
         automatically created by the system if applicable after the
         RestoreTable long-running operation completes successfully. This operation
         may not be created if the table is already optimized or the restore was
         not successful.
         
        string optimize_table_operation_name = 4;
        Parameters:
        value - The bytes for optimizeTableOperationName to set.
        Returns:
        This builder for chaining.
      • hasProgress

        public boolean hasProgress()
         The progress of the
         [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
         operation.
         
        .google.bigtable.admin.v2.OperationProgress progress = 5;
        Specified by:
        hasProgress in interface RestoreTableMetadataOrBuilder
        Returns:
        Whether the progress field is set.
      • getProgress

        public OperationProgress getProgress()
         The progress of the
         [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
         operation.
         
        .google.bigtable.admin.v2.OperationProgress progress = 5;
        Specified by:
        getProgress in interface RestoreTableMetadataOrBuilder
        Returns:
        The progress.
      • setProgress

        public RestoreTableMetadata.Builder setProgress​(OperationProgress value)
         The progress of the
         [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
         operation.
         
        .google.bigtable.admin.v2.OperationProgress progress = 5;
      • setProgress

        public RestoreTableMetadata.Builder setProgress​(OperationProgress.Builder builderForValue)
         The progress of the
         [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
         operation.
         
        .google.bigtable.admin.v2.OperationProgress progress = 5;
      • mergeProgress

        public RestoreTableMetadata.Builder mergeProgress​(OperationProgress value)
         The progress of the
         [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
         operation.
         
        .google.bigtable.admin.v2.OperationProgress progress = 5;
      • clearProgress

        public RestoreTableMetadata.Builder clearProgress()
         The progress of the
         [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
         operation.
         
        .google.bigtable.admin.v2.OperationProgress progress = 5;
      • getProgressBuilder

        public OperationProgress.Builder getProgressBuilder()
         The progress of the
         [RestoreTable][google.bigtable.admin.v2.BigtableTableAdmin.RestoreTable]
         operation.
         
        .google.bigtable.admin.v2.OperationProgress progress = 5;
      • setUnknownFields

        public final RestoreTableMetadata.Builder setUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>
      • mergeUnknownFields

        public final RestoreTableMetadata.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<RestoreTableMetadata.Builder>