Class CreateCloudBackupAction.Builder

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

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

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

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

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

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

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

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

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

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

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

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

      public String getProjectId()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 1;
      Specified by:
      getProjectId in interface CreateCloudBackupActionOrBuilder
      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 CreateCloudBackupActionOrBuilder
      Returns:
      The bytes for projectId.
    • setProjectId

      public CreateCloudBackupAction.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 CreateCloudBackupAction.Builder clearProjectId()
       Cloud project ID, e.g. "spanner-cloud-systest".
       
      string project_id = 1;
      Returns:
      This builder for chaining.
    • setProjectIdBytes

      public CreateCloudBackupAction.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 CreateCloudBackupActionOrBuilder
      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 CreateCloudBackupActionOrBuilder
      Returns:
      The bytes for instanceId.
    • setInstanceId

      public CreateCloudBackupAction.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 CreateCloudBackupAction.Builder clearInstanceId()
       Cloud instance ID (not path), e.g. "test-instance".
       
      string instance_id = 2;
      Returns:
      This builder for chaining.
    • setInstanceIdBytes

      public CreateCloudBackupAction.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 CreateCloudBackupActionOrBuilder
      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 CreateCloudBackupActionOrBuilder
      Returns:
      The bytes for backupId.
    • setBackupId

      public CreateCloudBackupAction.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 CreateCloudBackupAction.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 CreateCloudBackupAction.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.
    • getDatabaseId

      public String getDatabaseId()
       The id of the database from which this backup was
       created, e.g. "db0". Note that this needs to be in the
       same instance as the backup.
       
      string database_id = 4;
      Specified by:
      getDatabaseId in interface CreateCloudBackupActionOrBuilder
      Returns:
      The databaseId.
    • getDatabaseIdBytes

      public com.google.protobuf.ByteString getDatabaseIdBytes()
       The id of the database from which this backup was
       created, e.g. "db0". Note that this needs to be in the
       same instance as the backup.
       
      string database_id = 4;
      Specified by:
      getDatabaseIdBytes in interface CreateCloudBackupActionOrBuilder
      Returns:
      The bytes for databaseId.
    • setDatabaseId

      public CreateCloudBackupAction.Builder setDatabaseId(String value)
       The id of the database from which this backup was
       created, e.g. "db0". Note that this needs to be in the
       same instance as the backup.
       
      string database_id = 4;
      Parameters:
      value - The databaseId to set.
      Returns:
      This builder for chaining.
    • clearDatabaseId

      public CreateCloudBackupAction.Builder clearDatabaseId()
       The id of the database from which this backup was
       created, e.g. "db0". Note that this needs to be in the
       same instance as the backup.
       
      string database_id = 4;
      Returns:
      This builder for chaining.
    • setDatabaseIdBytes

      public CreateCloudBackupAction.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
       The id of the database from which this backup was
       created, e.g. "db0". Note that this needs to be in the
       same instance as the backup.
       
      string database_id = 4;
      Parameters:
      value - The bytes for databaseId 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 CreateCloudBackupActionOrBuilder
      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 CreateCloudBackupActionOrBuilder
      Returns:
      The expireTime.
    • setExpireTime

      public CreateCloudBackupAction.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 CreateCloudBackupAction.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 CreateCloudBackupAction.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 CreateCloudBackupAction.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 CreateCloudBackupActionOrBuilder
    • hasVersionTime

      public boolean hasVersionTime()
       The version time of the backup, which must be within the time range of
       [earliest_version_time, NOW], where earliest_version_time is retrieved by
       cloud spanner frontend API (See details: go/cs-pitr-lite-design).
       
      optional .google.protobuf.Timestamp version_time = 6;
      Specified by:
      hasVersionTime in interface CreateCloudBackupActionOrBuilder
      Returns:
      Whether the versionTime field is set.
    • getVersionTime

      public com.google.protobuf.Timestamp getVersionTime()
       The version time of the backup, which must be within the time range of
       [earliest_version_time, NOW], where earliest_version_time is retrieved by
       cloud spanner frontend API (See details: go/cs-pitr-lite-design).
       
      optional .google.protobuf.Timestamp version_time = 6;
      Specified by:
      getVersionTime in interface CreateCloudBackupActionOrBuilder
      Returns:
      The versionTime.
    • setVersionTime

      public CreateCloudBackupAction.Builder setVersionTime(com.google.protobuf.Timestamp value)
       The version time of the backup, which must be within the time range of
       [earliest_version_time, NOW], where earliest_version_time is retrieved by
       cloud spanner frontend API (See details: go/cs-pitr-lite-design).
       
      optional .google.protobuf.Timestamp version_time = 6;
    • setVersionTime

      public CreateCloudBackupAction.Builder setVersionTime(com.google.protobuf.Timestamp.Builder builderForValue)
       The version time of the backup, which must be within the time range of
       [earliest_version_time, NOW], where earliest_version_time is retrieved by
       cloud spanner frontend API (See details: go/cs-pitr-lite-design).
       
      optional .google.protobuf.Timestamp version_time = 6;
    • mergeVersionTime

      public CreateCloudBackupAction.Builder mergeVersionTime(com.google.protobuf.Timestamp value)
       The version time of the backup, which must be within the time range of
       [earliest_version_time, NOW], where earliest_version_time is retrieved by
       cloud spanner frontend API (See details: go/cs-pitr-lite-design).
       
      optional .google.protobuf.Timestamp version_time = 6;
    • clearVersionTime

      public CreateCloudBackupAction.Builder clearVersionTime()
       The version time of the backup, which must be within the time range of
       [earliest_version_time, NOW], where earliest_version_time is retrieved by
       cloud spanner frontend API (See details: go/cs-pitr-lite-design).
       
      optional .google.protobuf.Timestamp version_time = 6;
    • getVersionTimeBuilder

      public com.google.protobuf.Timestamp.Builder getVersionTimeBuilder()
       The version time of the backup, which must be within the time range of
       [earliest_version_time, NOW], where earliest_version_time is retrieved by
       cloud spanner frontend API (See details: go/cs-pitr-lite-design).
       
      optional .google.protobuf.Timestamp version_time = 6;
    • getVersionTimeOrBuilder

      public com.google.protobuf.TimestampOrBuilder getVersionTimeOrBuilder()
       The version time of the backup, which must be within the time range of
       [earliest_version_time, NOW], where earliest_version_time is retrieved by
       cloud spanner frontend API (See details: go/cs-pitr-lite-design).
       
      optional .google.protobuf.Timestamp version_time = 6;
      Specified by:
      getVersionTimeOrBuilder in interface CreateCloudBackupActionOrBuilder
    • setUnknownFields

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

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