Class CreateCloudDatabaseAction.Builder

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

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

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

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

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

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

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

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

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

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

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

      public CreateCloudDatabaseAction.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<CreateCloudDatabaseAction.Builder>
      Throws:
      IOException
    • getInstanceId

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

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

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

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

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

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

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

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

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

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

      public String getDatabaseId()
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Specified by:
      getDatabaseId in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      The databaseId.
    • getDatabaseIdBytes

      public com.google.protobuf.ByteString getDatabaseIdBytes()
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Specified by:
      getDatabaseIdBytes in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      The bytes for databaseId.
    • setDatabaseId

      public CreateCloudDatabaseAction.Builder setDatabaseId(String value)
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Parameters:
      value - The databaseId to set.
      Returns:
      This builder for chaining.
    • clearDatabaseId

      public CreateCloudDatabaseAction.Builder clearDatabaseId()
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Returns:
      This builder for chaining.
    • setDatabaseIdBytes

      public CreateCloudDatabaseAction.Builder setDatabaseIdBytes(com.google.protobuf.ByteString value)
       Cloud database ID (not full path), e.g. "db0".
       
      string database_id = 3;
      Parameters:
      value - The bytes for databaseId to set.
      Returns:
      This builder for chaining.
    • getSdlStatementList

      public com.google.protobuf.ProtocolStringList getSdlStatementList()
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Specified by:
      getSdlStatementList in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      A list containing the sdlStatement.
    • getSdlStatementCount

      public int getSdlStatementCount()
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Specified by:
      getSdlStatementCount in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      The count of sdlStatement.
    • getSdlStatement

      public String getSdlStatement(int index)
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Specified by:
      getSdlStatement in interface CreateCloudDatabaseActionOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The sdlStatement at the given index.
    • getSdlStatementBytes

      public com.google.protobuf.ByteString getSdlStatementBytes(int index)
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Specified by:
      getSdlStatementBytes in interface CreateCloudDatabaseActionOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the sdlStatement at the given index.
    • setSdlStatement

      public CreateCloudDatabaseAction.Builder setSdlStatement(int index, String value)
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Parameters:
      index - The index to set the value at.
      value - The sdlStatement to set.
      Returns:
      This builder for chaining.
    • addSdlStatement

      public CreateCloudDatabaseAction.Builder addSdlStatement(String value)
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Parameters:
      value - The sdlStatement to add.
      Returns:
      This builder for chaining.
    • addAllSdlStatement

      public CreateCloudDatabaseAction.Builder addAllSdlStatement(Iterable<String> values)
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Parameters:
      values - The sdlStatement to add.
      Returns:
      This builder for chaining.
    • clearSdlStatement

      public CreateCloudDatabaseAction.Builder clearSdlStatement()
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Returns:
      This builder for chaining.
    • addSdlStatementBytes

      public CreateCloudDatabaseAction.Builder addSdlStatementBytes(com.google.protobuf.ByteString value)
       SDL statements to apply to the new database.
       
      repeated string sdl_statement = 4;
      Parameters:
      value - The bytes of the sdlStatement to add.
      Returns:
      This builder for chaining.
    • hasEncryptionConfig

      public boolean hasEncryptionConfig()
       The KMS key used to encrypt the database to be created if the database
       should be CMEK protected.
       
      .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
      Specified by:
      hasEncryptionConfig in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      Whether the encryptionConfig field is set.
    • getEncryptionConfig

      public EncryptionConfig getEncryptionConfig()
       The KMS key used to encrypt the database to be created if the database
       should be CMEK protected.
       
      .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
      Specified by:
      getEncryptionConfig in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      The encryptionConfig.
    • setEncryptionConfig

      public CreateCloudDatabaseAction.Builder setEncryptionConfig(EncryptionConfig value)
       The KMS key used to encrypt the database to be created if the database
       should be CMEK protected.
       
      .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
    • setEncryptionConfig

      public CreateCloudDatabaseAction.Builder setEncryptionConfig(EncryptionConfig.Builder builderForValue)
       The KMS key used to encrypt the database to be created if the database
       should be CMEK protected.
       
      .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
    • mergeEncryptionConfig

      public CreateCloudDatabaseAction.Builder mergeEncryptionConfig(EncryptionConfig value)
       The KMS key used to encrypt the database to be created if the database
       should be CMEK protected.
       
      .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
    • clearEncryptionConfig

      public CreateCloudDatabaseAction.Builder clearEncryptionConfig()
       The KMS key used to encrypt the database to be created if the database
       should be CMEK protected.
       
      .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
    • getEncryptionConfigBuilder

      public EncryptionConfig.Builder getEncryptionConfigBuilder()
       The KMS key used to encrypt the database to be created if the database
       should be CMEK protected.
       
      .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
    • getEncryptionConfigOrBuilder

      public EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()
       The KMS key used to encrypt the database to be created if the database
       should be CMEK protected.
       
      .google.spanner.admin.database.v1.EncryptionConfig encryption_config = 5;
      Specified by:
      getEncryptionConfigOrBuilder in interface CreateCloudDatabaseActionOrBuilder
    • hasDialect

      public boolean hasDialect()
       Optional SQL dialect (GOOGLESQL or POSTGRESQL).  Default: GOOGLESQL.
       
      optional string dialect = 6;
      Specified by:
      hasDialect in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      Whether the dialect field is set.
    • getDialect

      public String getDialect()
       Optional SQL dialect (GOOGLESQL or POSTGRESQL).  Default: GOOGLESQL.
       
      optional string dialect = 6;
      Specified by:
      getDialect in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      The dialect.
    • getDialectBytes

      public com.google.protobuf.ByteString getDialectBytes()
       Optional SQL dialect (GOOGLESQL or POSTGRESQL).  Default: GOOGLESQL.
       
      optional string dialect = 6;
      Specified by:
      getDialectBytes in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      The bytes for dialect.
    • setDialect

      public CreateCloudDatabaseAction.Builder setDialect(String value)
       Optional SQL dialect (GOOGLESQL or POSTGRESQL).  Default: GOOGLESQL.
       
      optional string dialect = 6;
      Parameters:
      value - The dialect to set.
      Returns:
      This builder for chaining.
    • clearDialect

      public CreateCloudDatabaseAction.Builder clearDialect()
       Optional SQL dialect (GOOGLESQL or POSTGRESQL).  Default: GOOGLESQL.
       
      optional string dialect = 6;
      Returns:
      This builder for chaining.
    • setDialectBytes

      public CreateCloudDatabaseAction.Builder setDialectBytes(com.google.protobuf.ByteString value)
       Optional SQL dialect (GOOGLESQL or POSTGRESQL).  Default: GOOGLESQL.
       
      optional string dialect = 6;
      Parameters:
      value - The bytes for dialect to set.
      Returns:
      This builder for chaining.
    • hasProtoDescriptors

      public boolean hasProtoDescriptors()
      optional bytes proto_descriptors = 7;
      Specified by:
      hasProtoDescriptors in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      Whether the protoDescriptors field is set.
    • getProtoDescriptors

      public com.google.protobuf.ByteString getProtoDescriptors()
      optional bytes proto_descriptors = 7;
      Specified by:
      getProtoDescriptors in interface CreateCloudDatabaseActionOrBuilder
      Returns:
      The protoDescriptors.
    • setProtoDescriptors

      public CreateCloudDatabaseAction.Builder setProtoDescriptors(com.google.protobuf.ByteString value)
      optional bytes proto_descriptors = 7;
      Parameters:
      value - The protoDescriptors to set.
      Returns:
      This builder for chaining.
    • clearProtoDescriptors

      public CreateCloudDatabaseAction.Builder clearProtoDescriptors()
      optional bytes proto_descriptors = 7;
      Returns:
      This builder for chaining.
    • setUnknownFields

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

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