Class RestoreCloudDatabaseAction.Builder

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

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

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

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

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

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

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

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

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

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

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

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

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

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

      public RestoreCloudDatabaseAction.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.
    • getBackupInstanceId

      public String getBackupInstanceId()
       Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
       
      string backup_instance_id = 2;
      Specified by:
      getBackupInstanceId in interface RestoreCloudDatabaseActionOrBuilder
      Returns:
      The backupInstanceId.
    • getBackupInstanceIdBytes

      public com.google.protobuf.ByteString getBackupInstanceIdBytes()
       Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
       
      string backup_instance_id = 2;
      Specified by:
      getBackupInstanceIdBytes in interface RestoreCloudDatabaseActionOrBuilder
      Returns:
      The bytes for backupInstanceId.
    • setBackupInstanceId

      public RestoreCloudDatabaseAction.Builder setBackupInstanceId(String value)
       Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
       
      string backup_instance_id = 2;
      Parameters:
      value - The backupInstanceId to set.
      Returns:
      This builder for chaining.
    • clearBackupInstanceId

      public RestoreCloudDatabaseAction.Builder clearBackupInstanceId()
       Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
       
      string backup_instance_id = 2;
      Returns:
      This builder for chaining.
    • setBackupInstanceIdBytes

      public RestoreCloudDatabaseAction.Builder setBackupInstanceIdBytes(com.google.protobuf.ByteString value)
       Cloud instance ID (not path) containing the backup, e.g. "backup-instance".
       
      string backup_instance_id = 2;
      Parameters:
      value - The bytes for backupInstanceId to set.
      Returns:
      This builder for chaining.
    • getBackupId

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

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

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

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

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

      public String getDatabaseInstanceId()
       Cloud instance ID (not path) containing the database, e.g.
       "database-instance".
       
      string database_instance_id = 4;
      Specified by:
      getDatabaseInstanceId in interface RestoreCloudDatabaseActionOrBuilder
      Returns:
      The databaseInstanceId.
    • getDatabaseInstanceIdBytes

      public com.google.protobuf.ByteString getDatabaseInstanceIdBytes()
       Cloud instance ID (not path) containing the database, e.g.
       "database-instance".
       
      string database_instance_id = 4;
      Specified by:
      getDatabaseInstanceIdBytes in interface RestoreCloudDatabaseActionOrBuilder
      Returns:
      The bytes for databaseInstanceId.
    • setDatabaseInstanceId

      public RestoreCloudDatabaseAction.Builder setDatabaseInstanceId(String value)
       Cloud instance ID (not path) containing the database, e.g.
       "database-instance".
       
      string database_instance_id = 4;
      Parameters:
      value - The databaseInstanceId to set.
      Returns:
      This builder for chaining.
    • clearDatabaseInstanceId

      public RestoreCloudDatabaseAction.Builder clearDatabaseInstanceId()
       Cloud instance ID (not path) containing the database, e.g.
       "database-instance".
       
      string database_instance_id = 4;
      Returns:
      This builder for chaining.
    • setDatabaseInstanceIdBytes

      public RestoreCloudDatabaseAction.Builder setDatabaseInstanceIdBytes(com.google.protobuf.ByteString value)
       Cloud instance ID (not path) containing the database, e.g.
       "database-instance".
       
      string database_instance_id = 4;
      Parameters:
      value - The bytes for databaseInstanceId to set.
      Returns:
      This builder for chaining.
    • getDatabaseId

      public String getDatabaseId()
       The id of the database to create and restore to, e.g. "db0". Note that this
       database must not already exist.
       
      string database_id = 5;
      Specified by:
      getDatabaseId in interface RestoreCloudDatabaseActionOrBuilder
      Returns:
      The databaseId.
    • getDatabaseIdBytes

      public com.google.protobuf.ByteString getDatabaseIdBytes()
       The id of the database to create and restore to, e.g. "db0". Note that this
       database must not already exist.
       
      string database_id = 5;
      Specified by:
      getDatabaseIdBytes in interface RestoreCloudDatabaseActionOrBuilder
      Returns:
      The bytes for databaseId.
    • setDatabaseId

      public RestoreCloudDatabaseAction.Builder setDatabaseId(String value)
       The id of the database to create and restore to, e.g. "db0". Note that this
       database must not already exist.
       
      string database_id = 5;
      Parameters:
      value - The databaseId to set.
      Returns:
      This builder for chaining.
    • clearDatabaseId

      public RestoreCloudDatabaseAction.Builder clearDatabaseId()
       The id of the database to create and restore to, e.g. "db0". Note that this
       database must not already exist.
       
      string database_id = 5;
      Returns:
      This builder for chaining.
    • setDatabaseIdBytes

      public RestoreCloudDatabaseAction.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
       The id of the database to create and restore to, e.g. "db0". Note that this
       database must not already exist.
       
      string database_id = 5;
      Parameters:
      value - The bytes for databaseId to set.
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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