Class CopyBackupMetadata.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder>
com.google.spanner.admin.database.v1.CopyBackupMetadata.Builder
All Implemented Interfaces:
com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CopyBackupMetadataOrBuilder, Cloneable
Enclosing class:
CopyBackupMetadata

public static final class CopyBackupMetadata.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CopyBackupMetadata.Builder> implements CopyBackupMetadataOrBuilder
 Metadata type for the google.longrunning.Operation returned by
 [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup].
 
Protobuf type google.spanner.admin.database.v1.CopyBackupMetadata
  • Method Details

    • 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<CopyBackupMetadata.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<CopyBackupMetadata.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<CopyBackupMetadata.Builder>
    • getDefaultInstanceForType

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

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

      public CopyBackupMetadata buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.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<CopyBackupMetadata.Builder>
    • setField

      public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
    • clearField

      public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
    • clearOneof

      public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
    • setRepeatedField

      public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
    • addRepeatedField

      public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
    • mergeFrom

      public CopyBackupMetadata.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<CopyBackupMetadata.Builder>
    • mergeFrom

    • isInitialized

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

      public CopyBackupMetadata.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<CopyBackupMetadata.Builder>
      Throws:
      IOException
    • getName

      public String getName()
       The name of the backup being created through the copy operation.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getName in interface CopyBackupMetadataOrBuilder
      Returns:
      The name.
    • getNameBytes

      public com.google.protobuf.ByteString getNameBytes()
       The name of the backup being created through the copy operation.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Specified by:
      getNameBytes in interface CopyBackupMetadataOrBuilder
      Returns:
      The bytes for name.
    • setName

      public CopyBackupMetadata.Builder setName(String value)
       The name of the backup being created through the copy operation.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The name to set.
      Returns:
      This builder for chaining.
    • clearName

      public CopyBackupMetadata.Builder clearName()
       The name of the backup being created through the copy operation.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setNameBytes

      public CopyBackupMetadata.Builder setNameBytes(com.google.protobuf.ByteString value)
       The name of the backup being created through the copy operation.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string name = 1 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for name to set.
      Returns:
      This builder for chaining.
    • getSourceBackup

      public String getSourceBackup()
       The name of the source backup that is being copied.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string source_backup = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceBackup in interface CopyBackupMetadataOrBuilder
      Returns:
      The sourceBackup.
    • getSourceBackupBytes

      public com.google.protobuf.ByteString getSourceBackupBytes()
       The name of the source backup that is being copied.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string source_backup = 2 [(.google.api.resource_reference) = { ... }
      Specified by:
      getSourceBackupBytes in interface CopyBackupMetadataOrBuilder
      Returns:
      The bytes for sourceBackup.
    • setSourceBackup

      public CopyBackupMetadata.Builder setSourceBackup(String value)
       The name of the source backup that is being copied.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string source_backup = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The sourceBackup to set.
      Returns:
      This builder for chaining.
    • clearSourceBackup

      public CopyBackupMetadata.Builder clearSourceBackup()
       The name of the source backup that is being copied.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string source_backup = 2 [(.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setSourceBackupBytes

      public CopyBackupMetadata.Builder setSourceBackupBytes(com.google.protobuf.ByteString value)
       The name of the source backup that is being copied.
       Values are of the form
       `projects/<project>/instances/<instance>/backups/<backup>`.
       
      string source_backup = 2 [(.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for sourceBackup to set.
      Returns:
      This builder for chaining.
    • hasProgress

      public boolean hasProgress()
       The progress of the
       [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
       
      .google.spanner.admin.database.v1.OperationProgress progress = 3;
      Specified by:
      hasProgress in interface CopyBackupMetadataOrBuilder
      Returns:
      Whether the progress field is set.
    • getProgress

      public OperationProgress getProgress()
       The progress of the
       [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
       
      .google.spanner.admin.database.v1.OperationProgress progress = 3;
      Specified by:
      getProgress in interface CopyBackupMetadataOrBuilder
      Returns:
      The progress.
    • setProgress

      public CopyBackupMetadata.Builder setProgress(OperationProgress value)
       The progress of the
       [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
       
      .google.spanner.admin.database.v1.OperationProgress progress = 3;
    • setProgress

      public CopyBackupMetadata.Builder setProgress(OperationProgress.Builder builderForValue)
       The progress of the
       [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
       
      .google.spanner.admin.database.v1.OperationProgress progress = 3;
    • mergeProgress

      public CopyBackupMetadata.Builder mergeProgress(OperationProgress value)
       The progress of the
       [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
       
      .google.spanner.admin.database.v1.OperationProgress progress = 3;
    • clearProgress

      public CopyBackupMetadata.Builder clearProgress()
       The progress of the
       [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
       
      .google.spanner.admin.database.v1.OperationProgress progress = 3;
    • getProgressBuilder

      public OperationProgress.Builder getProgressBuilder()
       The progress of the
       [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
       
      .google.spanner.admin.database.v1.OperationProgress progress = 3;
    • getProgressOrBuilder

      public OperationProgressOrBuilder getProgressOrBuilder()
       The progress of the
       [CopyBackup][google.spanner.admin.database.v1.DatabaseAdmin.CopyBackup] operation.
       
      .google.spanner.admin.database.v1.OperationProgress progress = 3;
      Specified by:
      getProgressOrBuilder in interface CopyBackupMetadataOrBuilder
    • hasCancelTime

      public boolean hasCancelTime()
       The time at which cancellation of CopyBackup operation was received.
       [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
       starts asynchronous cancellation on a long-running operation. The server
       makes a best effort to cancel the operation, but success is not guaranteed.
       Clients can use
       [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
       other methods to check whether the cancellation succeeded or whether the
       operation completed despite cancellation. On successful cancellation,
       the operation is not deleted; instead, it becomes an operation with
       an [Operation.error][google.longrunning.Operation.error] value with a
       [google.rpc.Status.code][google.rpc.Status.code] of 1,
       corresponding to `Code.CANCELLED`.
       
      .google.protobuf.Timestamp cancel_time = 4;
      Specified by:
      hasCancelTime in interface CopyBackupMetadataOrBuilder
      Returns:
      Whether the cancelTime field is set.
    • getCancelTime

      public com.google.protobuf.Timestamp getCancelTime()
       The time at which cancellation of CopyBackup operation was received.
       [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
       starts asynchronous cancellation on a long-running operation. The server
       makes a best effort to cancel the operation, but success is not guaranteed.
       Clients can use
       [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
       other methods to check whether the cancellation succeeded or whether the
       operation completed despite cancellation. On successful cancellation,
       the operation is not deleted; instead, it becomes an operation with
       an [Operation.error][google.longrunning.Operation.error] value with a
       [google.rpc.Status.code][google.rpc.Status.code] of 1,
       corresponding to `Code.CANCELLED`.
       
      .google.protobuf.Timestamp cancel_time = 4;
      Specified by:
      getCancelTime in interface CopyBackupMetadataOrBuilder
      Returns:
      The cancelTime.
    • setCancelTime

      public CopyBackupMetadata.Builder setCancelTime(com.google.protobuf.Timestamp value)
       The time at which cancellation of CopyBackup operation was received.
       [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
       starts asynchronous cancellation on a long-running operation. The server
       makes a best effort to cancel the operation, but success is not guaranteed.
       Clients can use
       [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
       other methods to check whether the cancellation succeeded or whether the
       operation completed despite cancellation. On successful cancellation,
       the operation is not deleted; instead, it becomes an operation with
       an [Operation.error][google.longrunning.Operation.error] value with a
       [google.rpc.Status.code][google.rpc.Status.code] of 1,
       corresponding to `Code.CANCELLED`.
       
      .google.protobuf.Timestamp cancel_time = 4;
    • setCancelTime

      public CopyBackupMetadata.Builder setCancelTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The time at which cancellation of CopyBackup operation was received.
       [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
       starts asynchronous cancellation on a long-running operation. The server
       makes a best effort to cancel the operation, but success is not guaranteed.
       Clients can use
       [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
       other methods to check whether the cancellation succeeded or whether the
       operation completed despite cancellation. On successful cancellation,
       the operation is not deleted; instead, it becomes an operation with
       an [Operation.error][google.longrunning.Operation.error] value with a
       [google.rpc.Status.code][google.rpc.Status.code] of 1,
       corresponding to `Code.CANCELLED`.
       
      .google.protobuf.Timestamp cancel_time = 4;
    • mergeCancelTime

      public CopyBackupMetadata.Builder mergeCancelTime(com.google.protobuf.Timestamp value)
       The time at which cancellation of CopyBackup operation was received.
       [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
       starts asynchronous cancellation on a long-running operation. The server
       makes a best effort to cancel the operation, but success is not guaranteed.
       Clients can use
       [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
       other methods to check whether the cancellation succeeded or whether the
       operation completed despite cancellation. On successful cancellation,
       the operation is not deleted; instead, it becomes an operation with
       an [Operation.error][google.longrunning.Operation.error] value with a
       [google.rpc.Status.code][google.rpc.Status.code] of 1,
       corresponding to `Code.CANCELLED`.
       
      .google.protobuf.Timestamp cancel_time = 4;
    • clearCancelTime

      public CopyBackupMetadata.Builder clearCancelTime()
       The time at which cancellation of CopyBackup operation was received.
       [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
       starts asynchronous cancellation on a long-running operation. The server
       makes a best effort to cancel the operation, but success is not guaranteed.
       Clients can use
       [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
       other methods to check whether the cancellation succeeded or whether the
       operation completed despite cancellation. On successful cancellation,
       the operation is not deleted; instead, it becomes an operation with
       an [Operation.error][google.longrunning.Operation.error] value with a
       [google.rpc.Status.code][google.rpc.Status.code] of 1,
       corresponding to `Code.CANCELLED`.
       
      .google.protobuf.Timestamp cancel_time = 4;
    • getCancelTimeBuilder

      public com.google.protobuf.Timestamp.Builder getCancelTimeBuilder()
       The time at which cancellation of CopyBackup operation was received.
       [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
       starts asynchronous cancellation on a long-running operation. The server
       makes a best effort to cancel the operation, but success is not guaranteed.
       Clients can use
       [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
       other methods to check whether the cancellation succeeded or whether the
       operation completed despite cancellation. On successful cancellation,
       the operation is not deleted; instead, it becomes an operation with
       an [Operation.error][google.longrunning.Operation.error] value with a
       [google.rpc.Status.code][google.rpc.Status.code] of 1,
       corresponding to `Code.CANCELLED`.
       
      .google.protobuf.Timestamp cancel_time = 4;
    • getCancelTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getCancelTimeOrBuilder()
       The time at which cancellation of CopyBackup operation was received.
       [Operations.CancelOperation][google.longrunning.Operations.CancelOperation]
       starts asynchronous cancellation on a long-running operation. The server
       makes a best effort to cancel the operation, but success is not guaranteed.
       Clients can use
       [Operations.GetOperation][google.longrunning.Operations.GetOperation] or
       other methods to check whether the cancellation succeeded or whether the
       operation completed despite cancellation. On successful cancellation,
       the operation is not deleted; instead, it becomes an operation with
       an [Operation.error][google.longrunning.Operation.error] value with a
       [google.rpc.Status.code][google.rpc.Status.code] of 1,
       corresponding to `Code.CANCELLED`.
       
      .google.protobuf.Timestamp cancel_time = 4;
      Specified by:
      getCancelTimeOrBuilder in interface CopyBackupMetadataOrBuilder
    • setUnknownFields

      public final CopyBackupMetadata.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<CopyBackupMetadata.Builder>
    • mergeUnknownFields

      public final CopyBackupMetadata.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<CopyBackupMetadata.Builder>