Class CopyCloudBackupAction.Builder

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

public static final class CopyCloudBackupAction.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<CopyCloudBackupAction.Builder> implements CopyCloudBackupActionOrBuilder
 Action that copies a Cloud Spanner database backup.
 
Protobuf type google.spanner.executor.v1.CopyCloudBackupAction
  • 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<CopyCloudBackupAction.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<CopyCloudBackupAction.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<CopyCloudBackupAction.Builder>
    • getDefaultInstanceForType

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

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

      public CopyCloudBackupAction 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<CopyCloudBackupAction.Builder>
    • setField

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

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

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

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

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

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

      public CopyCloudBackupAction.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<CopyCloudBackupAction.Builder>
      Throws:
      IOException
    • getProjectId

      public String getProjectId()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 1;
      Specified by:
      getProjectId in interface CopyCloudBackupActionOrBuilder
      Returns:
      The projectId.
    • getProjectIdBytes

      public com.google.protobuf.ByteString getProjectIdBytes()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 1;
      Specified by:
      getProjectIdBytes in interface CopyCloudBackupActionOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public CopyCloudBackupAction.Builder setProjectId(String value)
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 1;
      Parameters:
      value - The projectId to set.
      Returns:
      This builder for chaining.
    • clearProjectId

      public CopyCloudBackupAction.Builder clearProjectId()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 1;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public CopyCloudBackupAction.Builder setProjectIdBytes(com.google.protobuf.ByteString value)
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 1;
      Parameters:
      value - The bytes for projectId to set.
      Returns:
      This builder for chaining.
    • getInstanceId

      public String getInstanceId()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 2;
      Specified by:
      getInstanceId in interface CopyCloudBackupActionOrBuilder
      Returns:
      The instanceId.
    • getInstanceIdBytes

      public com.google.protobuf.ByteString getInstanceIdBytes()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 2;
      Specified by:
      getInstanceIdBytes in interface CopyCloudBackupActionOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public CopyCloudBackupAction.Builder setInstanceId(String value)
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 2;
      Parameters:
      value - The instanceId to set.
      Returns:
      This builder for chaining.
    • clearInstanceId

      public CopyCloudBackupAction.Builder clearInstanceId()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 2;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public CopyCloudBackupAction.Builder setInstanceIdBytes(com.google.protobuf.ByteString value)
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 2;
      Parameters:
      value - The bytes for instanceId to set.
      Returns:
      This builder for chaining.
    • getBackupId

      public String getBackupId()
       The id of the backup to be created, e.g. "test-backup".
       
      string backup_id = 3;
      Specified by:
      getBackupId in interface CopyCloudBackupActionOrBuilder
      Returns:
      The backupId.
    • getBackupIdBytes

      public com.google.protobuf.ByteString getBackupIdBytes()
       The id of the backup to be created, e.g. "test-backup".
       
      string backup_id = 3;
      Specified by:
      getBackupIdBytes in interface CopyCloudBackupActionOrBuilder
      Returns:
      The bytes for backupId.
    • setBackupId

      public CopyCloudBackupAction.Builder setBackupId(String value)
       The id of the backup to be created, e.g. "test-backup".
       
      string backup_id = 3;
      Parameters:
      value - The backupId to set.
      Returns:
      This builder for chaining.
    • clearBackupId

      public CopyCloudBackupAction.Builder clearBackupId()
       The id of the backup to be created, e.g. "test-backup".
       
      string backup_id = 3;
      Returns:
      This builder for chaining.
    • setBackupIdBytes

      public CopyCloudBackupAction.Builder setBackupIdBytes(com.google.protobuf.ByteString value)
       The id of the backup to be created, e.g. "test-backup".
       
      string backup_id = 3;
      Parameters:
      value - The bytes for backupId to set.
      Returns:
      This builder for chaining.
    • getSourceBackup

      public String getSourceBackup()
       The fully qualified uri of the source backup from which this
       backup was copied. eg.
       "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
       
      string source_backup = 4;
      Specified by:
      getSourceBackup in interface CopyCloudBackupActionOrBuilder
      Returns:
      The sourceBackup.
    • getSourceBackupBytes

      public com.google.protobuf.ByteString getSourceBackupBytes()
       The fully qualified uri of the source backup from which this
       backup was copied. eg.
       "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
       
      string source_backup = 4;
      Specified by:
      getSourceBackupBytes in interface CopyCloudBackupActionOrBuilder
      Returns:
      The bytes for sourceBackup.
    • setSourceBackup

      public CopyCloudBackupAction.Builder setSourceBackup(String value)
       The fully qualified uri of the source backup from which this
       backup was copied. eg.
       "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
       
      string source_backup = 4;
      Parameters:
      value - The sourceBackup to set.
      Returns:
      This builder for chaining.
    • clearSourceBackup

      public CopyCloudBackupAction.Builder clearSourceBackup()
       The fully qualified uri of the source backup from which this
       backup was copied. eg.
       "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
       
      string source_backup = 4;
      Returns:
      This builder for chaining.
    • setSourceBackupBytes

      public CopyCloudBackupAction.Builder setSourceBackupBytes(com.google.protobuf.ByteString value)
       The fully qualified uri of the source backup from which this
       backup was copied. eg.
       "projects/<project_id>/instances/<instance_id>/backups/<backup_id>".
       
      string source_backup = 4;
      Parameters:
      value - The bytes for sourceBackup to set.
      Returns:
      This builder for chaining.
    • hasExpireTime

      public boolean hasExpireTime()
       Output only. The expiration time of the backup, which must be at least 6
       hours and at most 366 days from the time the request is received.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      hasExpireTime in interface CopyCloudBackupActionOrBuilder
      Returns:
      Whether the expireTime field is set.
    • getExpireTime

      public com.google.protobuf.Timestamp getExpireTime()
       Output only. The expiration time of the backup, which must be at least 6
       hours and at most 366 days from the time the request is received.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpireTime in interface CopyCloudBackupActionOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public CopyCloudBackupAction.Builder setExpireTime(com.google.protobuf.Timestamp value)
       Output only. The expiration time of the backup, which must be at least 6
       hours and at most 366 days from the time the request is received.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • setExpireTime

      public CopyCloudBackupAction.Builder setExpireTime(com.google.protobuf.Timestamp.Builder builderForValue)
       Output only. The expiration time of the backup, which must be at least 6
       hours and at most 366 days from the time the request is received.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • mergeExpireTime

      public CopyCloudBackupAction.Builder mergeExpireTime(com.google.protobuf.Timestamp value)
       Output only. The expiration time of the backup, which must be at least 6
       hours and at most 366 days from the time the request is received.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • clearExpireTime

      public CopyCloudBackupAction.Builder clearExpireTime()
       Output only. The expiration time of the backup, which must be at least 6
       hours and at most 366 days from the time the request is received.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpireTimeBuilder

      public com.google.protobuf.Timestamp.Builder getExpireTimeBuilder()
       Output only. The expiration time of the backup, which must be at least 6
       hours and at most 366 days from the time the request is received.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
    • getExpireTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getExpireTimeOrBuilder()
       Output only. The expiration time of the backup, which must be at least 6
       hours and at most 366 days from the time the request is received.
       
      .google.protobuf.Timestamp expire_time = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];
      Specified by:
      getExpireTimeOrBuilder in interface CopyCloudBackupActionOrBuilder
    • setUnknownFields

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

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