- 6.102.1 (latest)
 - 6.102.0
 - 6.101.1
 - 6.100.0
 - 6.99.0
 - 6.98.1
 - 6.97.1
 - 6.96.1
 - 6.95.1
 - 6.94.0
 - 6.93.0
 - 6.89.0
 - 6.88.0
 - 6.87.0
 - 6.86.0
 - 6.85.0
 - 6.83.0
 - 6.82.0
 - 6.80.1
 - 6.79.0
 - 6.77.0
 - 6.74.1
 - 6.72.0
 - 6.71.0
 - 6.69.0
 - 6.68.0
 - 6.66.0
 - 6.65.1
 - 6.62.0
 - 6.60.0
 - 6.58.0
 - 6.57.0
 - 6.56.0
 - 6.55.0
 - 6.54.0
 - 6.53.0
 - 6.52.1
 - 6.51.0
 - 6.50.1
 - 6.49.0
 - 6.25.1
 - 6.24.0
 - 6.23.4
 - 6.22.0
 - 6.21.2
 - 6.20.0
 - 6.19.1
 - 6.18.0
 - 6.17.4
 - 6.14.1
 
public static final class CreateCloudDatabaseAction.Builder extends GeneratedMessageV3.Builder<CreateCloudDatabaseAction.Builder> implements CreateCloudDatabaseActionOrBuilderAction that creates a Cloud Spanner database.
 Protobuf type google.spanner.executor.v1.CreateCloudDatabaseAction
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > CreateCloudDatabaseAction.BuilderImplements
CreateCloudDatabaseActionOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
Methods
addAllSdlStatement(Iterable<String> values)
public CreateCloudDatabaseAction.Builder addAllSdlStatement(Iterable<String> values)SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Parameter | |
|---|---|
| Name | Description | 
values | 
        Iterable<String>The sdlStatement to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public CreateCloudDatabaseAction.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
addSdlStatement(String value)
public CreateCloudDatabaseAction.Builder addSdlStatement(String value)SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe sdlStatement to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
addSdlStatementBytes(ByteString value)
public CreateCloudDatabaseAction.Builder addSdlStatementBytes(ByteString value)SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes of the sdlStatement to add.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
build()
public CreateCloudDatabaseAction build()| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction | 
        |
buildPartial()
public CreateCloudDatabaseAction buildPartial()| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction | 
        |
clear()
public CreateCloudDatabaseAction.Builder clear()| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
clearDatabaseId()
public CreateCloudDatabaseAction.Builder clearDatabaseId()Cloud database ID (not full path), e.g. "db0".
 string database_id = 3;
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
clearDialect()
public CreateCloudDatabaseAction.Builder clearDialect()Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
 optional string dialect = 6;
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
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;
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
clearField(Descriptors.FieldDescriptor field)
public CreateCloudDatabaseAction.Builder clearField(Descriptors.FieldDescriptor field)| Parameter | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
clearInstanceId()
public CreateCloudDatabaseAction.Builder clearInstanceId()Cloud instance ID (not path), e.g. "test-instance".
 string instance_id = 1;
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
clearOneof(Descriptors.OneofDescriptor oneof)
public CreateCloudDatabaseAction.Builder clearOneof(Descriptors.OneofDescriptor oneof)| Parameter | |
|---|---|
| Name | Description | 
oneof | 
        OneofDescriptor | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
clearProjectId()
public CreateCloudDatabaseAction.Builder clearProjectId()Cloud project ID, e.g. "spanner-cloud-systest".
 string project_id = 2;
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
clearProtoDescriptors()
public CreateCloudDatabaseAction.Builder clearProtoDescriptors()optional bytes proto_descriptors = 7;
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
clearSdlStatement()
public CreateCloudDatabaseAction.Builder clearSdlStatement()SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
clone()
public CreateCloudDatabaseAction.Builder clone()| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
getDatabaseId()
public String getDatabaseId()Cloud database ID (not full path), e.g. "db0".
 string database_id = 3;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The databaseId.  | 
      
getDatabaseIdBytes()
public ByteString getDatabaseIdBytes()Cloud database ID (not full path), e.g. "db0".
 string database_id = 3;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for databaseId.  | 
      
getDefaultInstanceForType()
public CreateCloudDatabaseAction getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction | 
        |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description | 
Descriptor | 
        |
getDialect()
public String getDialect()Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
 optional string dialect = 6;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The dialect.  | 
      
getDialectBytes()
public ByteString getDialectBytes()Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
 optional string dialect = 6;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for dialect.  | 
      
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;
| Returns | |
|---|---|
| Type | Description | 
EncryptionConfig | 
        The encryptionConfig.  | 
      
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;
| Returns | |
|---|---|
| Type | Description | 
EncryptionConfig.Builder | 
        |
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;
| Returns | |
|---|---|
| Type | Description | 
EncryptionConfigOrBuilder | 
        |
getInstanceId()
public String getInstanceId()Cloud instance ID (not path), e.g. "test-instance".
 string instance_id = 1;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The instanceId.  | 
      
getInstanceIdBytes()
public ByteString getInstanceIdBytes()Cloud instance ID (not path), e.g. "test-instance".
 string instance_id = 1;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for instanceId.  | 
      
getProjectId()
public String getProjectId()Cloud project ID, e.g. "spanner-cloud-systest".
 string project_id = 2;
| Returns | |
|---|---|
| Type | Description | 
String | 
        The projectId.  | 
      
getProjectIdBytes()
public ByteString getProjectIdBytes()Cloud project ID, e.g. "spanner-cloud-systest".
 string project_id = 2;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes for projectId.  | 
      
getProtoDescriptors()
public ByteString getProtoDescriptors()optional bytes proto_descriptors = 7;
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The protoDescriptors.  | 
      
getSdlStatement(int index)
public String getSdlStatement(int index)SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the element to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
String | 
        The sdlStatement at the given index.  | 
      
getSdlStatementBytes(int index)
public ByteString getSdlStatementBytes(int index)SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Parameter | |
|---|---|
| Name | Description | 
index | 
        intThe index of the value to return.  | 
      
| Returns | |
|---|---|
| Type | Description | 
ByteString | 
        The bytes of the sdlStatement at the given index.  | 
      
getSdlStatementCount()
public int getSdlStatementCount()SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Returns | |
|---|---|
| Type | Description | 
int | 
        The count of sdlStatement.  | 
      
getSdlStatementList()
public ProtocolStringList getSdlStatementList()SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Returns | |
|---|---|
| Type | Description | 
ProtocolStringList | 
        A list containing the sdlStatement.  | 
      
hasDialect()
public boolean hasDialect()Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
 optional string dialect = 6;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the dialect field is set.  | 
      
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;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the encryptionConfig field is set.  | 
      
hasProtoDescriptors()
public boolean hasProtoDescriptors()optional bytes proto_descriptors = 7;
| Returns | |
|---|---|
| Type | Description | 
boolean | 
        Whether the protoDescriptors field is set.  | 
      
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description | 
FieldAccessorTable | 
        |
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description | 
boolean | 
        |
mergeEncryptionConfig(EncryptionConfig value)
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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        EncryptionConfig | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public CreateCloudDatabaseAction.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description | 
input | 
        CodedInputStream | 
      
extensionRegistry | 
        ExtensionRegistryLite | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
| Exceptions | |
|---|---|
| Type | Description | 
IOException | 
        |
mergeFrom(Message other)
public CreateCloudDatabaseAction.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        Message | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
mergeFrom(CreateCloudDatabaseAction other)
public CreateCloudDatabaseAction.Builder mergeFrom(CreateCloudDatabaseAction other)| Parameter | |
|---|---|
| Name | Description | 
other | 
        CreateCloudDatabaseAction | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final CreateCloudDatabaseAction.Builder mergeUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
setDatabaseId(String value)
public CreateCloudDatabaseAction.Builder setDatabaseId(String value)Cloud database ID (not full path), e.g. "db0".
 string database_id = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe databaseId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setDatabaseIdBytes(ByteString value)
public CreateCloudDatabaseAction.Builder setDatabaseIdBytes(ByteString value)Cloud database ID (not full path), e.g. "db0".
 string database_id = 3;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for databaseId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setDialect(String value)
public CreateCloudDatabaseAction.Builder setDialect(String value)Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
 optional string dialect = 6;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe dialect to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setDialectBytes(ByteString value)
public CreateCloudDatabaseAction.Builder setDialectBytes(ByteString value)Optional SQL dialect (GOOGLESQL or POSTGRESQL). Default: GOOGLESQL.
 optional string dialect = 6;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for dialect to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setEncryptionConfig(EncryptionConfig value)
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;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        EncryptionConfig | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
setEncryptionConfig(EncryptionConfig.Builder builderForValue)
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;
| Parameter | |
|---|---|
| Name | Description | 
builderForValue | 
        EncryptionConfig.Builder | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
setField(Descriptors.FieldDescriptor field, Object value)
public CreateCloudDatabaseAction.Builder setField(Descriptors.FieldDescriptor field, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
setInstanceId(String value)
public CreateCloudDatabaseAction.Builder setInstanceId(String value)Cloud instance ID (not path), e.g. "test-instance".
 string instance_id = 1;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe instanceId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setInstanceIdBytes(ByteString value)
public CreateCloudDatabaseAction.Builder setInstanceIdBytes(ByteString value)Cloud instance ID (not path), e.g. "test-instance".
 string instance_id = 1;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for instanceId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setProjectId(String value)
public CreateCloudDatabaseAction.Builder setProjectId(String value)Cloud project ID, e.g. "spanner-cloud-systest".
 string project_id = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        StringThe projectId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setProjectIdBytes(ByteString value)
public CreateCloudDatabaseAction.Builder setProjectIdBytes(ByteString value)Cloud project ID, e.g. "spanner-cloud-systest".
 string project_id = 2;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe bytes for projectId to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setProtoDescriptors(ByteString value)
public CreateCloudDatabaseAction.Builder setProtoDescriptors(ByteString value)optional bytes proto_descriptors = 7;
| Parameter | |
|---|---|
| Name | Description | 
value | 
        ByteStringThe protoDescriptors to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public CreateCloudDatabaseAction.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)| Parameters | |
|---|---|
| Name | Description | 
field | 
        FieldDescriptor | 
      
index | 
        int | 
      
value | 
        Object | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |
setSdlStatement(int index, String value)
public CreateCloudDatabaseAction.Builder setSdlStatement(int index, String value)SDL statements to apply to the new database.
 repeated string sdl_statement = 4;
| Parameters | |
|---|---|
| Name | Description | 
index | 
        intThe index to set the value at.  | 
      
value | 
        StringThe sdlStatement to set.  | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        This builder for chaining.  | 
      
setUnknownFields(UnknownFieldSet unknownFields)
public final CreateCloudDatabaseAction.Builder setUnknownFields(UnknownFieldSet unknownFields)| Parameter | |
|---|---|
| Name | Description | 
unknownFields | 
        UnknownFieldSet | 
      
| Returns | |
|---|---|
| Type | Description | 
CreateCloudDatabaseAction.Builder | 
        |