Class AlloyDbSettings.Builder (2.26.0)

public static final class AlloyDbSettings.Builder extends GeneratedMessageV3.Builder<AlloyDbSettings.Builder> implements AlloyDbSettingsOrBuilder

Settings for creating an AlloyDB cluster.

Protobuf type google.cloud.clouddms.v1.AlloyDbSettings

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public AlloyDbSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

build()

public AlloyDbSettings build()
Returns
TypeDescription
AlloyDbSettings

buildPartial()

public AlloyDbSettings buildPartial()
Returns
TypeDescription
AlloyDbSettings

clear()

public AlloyDbSettings.Builder clear()
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

clearEncryptionConfig()

public AlloyDbSettings.Builder clearEncryptionConfig()

Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AlloyDbSettings.Builder

clearField(Descriptors.FieldDescriptor field)

public AlloyDbSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

clearInitialUser()

public AlloyDbSettings.Builder clearInitialUser()

Required. Input only. Initial user to setup during cluster creation. Required.

.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
AlloyDbSettings.Builder

clearLabels()

public AlloyDbSettings.Builder clearLabels()
Returns
TypeDescription
AlloyDbSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

public AlloyDbSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

clearPrimaryInstanceSettings()

public AlloyDbSettings.Builder clearPrimaryInstanceSettings()

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;

Returns
TypeDescription
AlloyDbSettings.Builder

clearVpcNetwork()

public AlloyDbSettings.Builder clearVpcNetwork()

Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.

string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AlloyDbSettings.Builder

This builder for chaining.

clone()

public AlloyDbSettings.Builder clone()
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

containsLabels(String key)

public boolean containsLabels(String key)

Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDefaultInstanceForType()

public AlloyDbSettings getDefaultInstanceForType()
Returns
TypeDescription
AlloyDbSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEncryptionConfig()

public AlloyDbSettings.EncryptionConfig getEncryptionConfig()

Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AlloyDbSettings.EncryptionConfig

The encryptionConfig.

getEncryptionConfigBuilder()

public AlloyDbSettings.EncryptionConfig.Builder getEncryptionConfigBuilder()

Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AlloyDbSettings.EncryptionConfig.Builder

getEncryptionConfigOrBuilder()

public AlloyDbSettings.EncryptionConfigOrBuilder getEncryptionConfigOrBuilder()

Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
AlloyDbSettings.EncryptionConfigOrBuilder

getInitialUser()

public AlloyDbSettings.UserPassword getInitialUser()

Required. Input only. Initial user to setup during cluster creation. Required.

.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
AlloyDbSettings.UserPassword

The initialUser.

getInitialUserBuilder()

public AlloyDbSettings.UserPassword.Builder getInitialUserBuilder()

Required. Input only. Initial user to setup during cluster creation. Required.

.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
AlloyDbSettings.UserPassword.Builder

getInitialUserOrBuilder()

public AlloyDbSettings.UserPasswordOrBuilder getInitialUserOrBuilder()

Required. Input only. Initial user to setup during cluster creation. Required.

.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
AlloyDbSettings.UserPasswordOrBuilder

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

map<string, string> labels = 3;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

map<string, string> labels = 3;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

map<string, string> labels = 3;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getPrimaryInstanceSettings()

public AlloyDbSettings.PrimaryInstanceSettings getPrimaryInstanceSettings()

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings

The primaryInstanceSettings.

getPrimaryInstanceSettingsBuilder()

public AlloyDbSettings.PrimaryInstanceSettings.Builder getPrimaryInstanceSettingsBuilder()

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

getPrimaryInstanceSettingsOrBuilder()

public AlloyDbSettings.PrimaryInstanceSettingsOrBuilder getPrimaryInstanceSettingsOrBuilder()

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettingsOrBuilder

getVpcNetwork()

public String getVpcNetwork()

Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.

string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The vpcNetwork.

getVpcNetworkBytes()

public ByteString getVpcNetworkBytes()

Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.

string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for vpcNetwork.

hasEncryptionConfig()

public boolean hasEncryptionConfig()

Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the encryptionConfig field is set.

hasInitialUser()

public boolean hasInitialUser()

Required. Input only. Initial user to setup during cluster creation. Required.

.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Returns
TypeDescription
boolean

Whether the initialUser field is set.

hasPrimaryInstanceSettings()

public boolean hasPrimaryInstanceSettings()

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;

Returns
TypeDescription
boolean

Whether the primaryInstanceSettings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

protected MapField internalGetMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

internalGetMutableMapField(int number)

protected MapField internalGetMutableMapField(int number)
Parameter
NameDescription
numberint
Returns
TypeDescription
MapField
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeEncryptionConfig(AlloyDbSettings.EncryptionConfig value)

public AlloyDbSettings.Builder mergeEncryptionConfig(AlloyDbSettings.EncryptionConfig value)

Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAlloyDbSettings.EncryptionConfig
Returns
TypeDescription
AlloyDbSettings.Builder

mergeFrom(AlloyDbSettings other)

public AlloyDbSettings.Builder mergeFrom(AlloyDbSettings other)
Parameter
NameDescription
otherAlloyDbSettings
Returns
TypeDescription
AlloyDbSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public AlloyDbSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public AlloyDbSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

mergeInitialUser(AlloyDbSettings.UserPassword value)

public AlloyDbSettings.Builder mergeInitialUser(AlloyDbSettings.UserPassword value)

Required. Input only. Initial user to setup during cluster creation. Required.

.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueAlloyDbSettings.UserPassword
Returns
TypeDescription
AlloyDbSettings.Builder

mergePrimaryInstanceSettings(AlloyDbSettings.PrimaryInstanceSettings value)

public AlloyDbSettings.Builder mergePrimaryInstanceSettings(AlloyDbSettings.PrimaryInstanceSettings value)

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;

Parameter
NameDescription
valueAlloyDbSettings.PrimaryInstanceSettings
Returns
TypeDescription
AlloyDbSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final AlloyDbSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

putAllLabels(Map<String,String> values)

public AlloyDbSettings.Builder putAllLabels(Map<String,String> values)

Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

map<string, string> labels = 3;

Parameter
NameDescription
valuesMap<String,String>
Returns
TypeDescription
AlloyDbSettings.Builder

putLabels(String key, String value)

public AlloyDbSettings.Builder putLabels(String key, String value)

Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

map<string, string> labels = 3;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AlloyDbSettings.Builder

removeLabels(String key)

public AlloyDbSettings.Builder removeLabels(String key)

Labels for the AlloyDB cluster created by DMS. An object containing a list of 'key', 'value' pairs.

map<string, string> labels = 3;

Parameter
NameDescription
keyString
Returns
TypeDescription
AlloyDbSettings.Builder

setEncryptionConfig(AlloyDbSettings.EncryptionConfig value)

public AlloyDbSettings.Builder setEncryptionConfig(AlloyDbSettings.EncryptionConfig value)

Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueAlloyDbSettings.EncryptionConfig
Returns
TypeDescription
AlloyDbSettings.Builder

setEncryptionConfig(AlloyDbSettings.EncryptionConfig.Builder builderForValue)

public AlloyDbSettings.Builder setEncryptionConfig(AlloyDbSettings.EncryptionConfig.Builder builderForValue)

Optional. The encryption config can be specified to encrypt the data disks and other persistent data resources of a cluster with a customer-managed encryption key (CMEK). When this field is not specified, the cluster will then use default encryption scheme to protect the user data.

.google.cloud.clouddms.v1.AlloyDbSettings.EncryptionConfig encryption_config = 5 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
builderForValueAlloyDbSettings.EncryptionConfig.Builder
Returns
TypeDescription
AlloyDbSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public AlloyDbSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

setInitialUser(AlloyDbSettings.UserPassword value)

public AlloyDbSettings.Builder setInitialUser(AlloyDbSettings.UserPassword value)

Required. Input only. Initial user to setup during cluster creation. Required.

.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
valueAlloyDbSettings.UserPassword
Returns
TypeDescription
AlloyDbSettings.Builder

setInitialUser(AlloyDbSettings.UserPassword.Builder builderForValue)

public AlloyDbSettings.Builder setInitialUser(AlloyDbSettings.UserPassword.Builder builderForValue)

Required. Input only. Initial user to setup during cluster creation. Required.

.google.cloud.clouddms.v1.AlloyDbSettings.UserPassword initial_user = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.field_behavior) = INPUT_ONLY];

Parameter
NameDescription
builderForValueAlloyDbSettings.UserPassword.Builder
Returns
TypeDescription
AlloyDbSettings.Builder

setPrimaryInstanceSettings(AlloyDbSettings.PrimaryInstanceSettings value)

public AlloyDbSettings.Builder setPrimaryInstanceSettings(AlloyDbSettings.PrimaryInstanceSettings value)

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;

Parameter
NameDescription
valueAlloyDbSettings.PrimaryInstanceSettings
Returns
TypeDescription
AlloyDbSettings.Builder

setPrimaryInstanceSettings(AlloyDbSettings.PrimaryInstanceSettings.Builder builderForValue)

public AlloyDbSettings.Builder setPrimaryInstanceSettings(AlloyDbSettings.PrimaryInstanceSettings.Builder builderForValue)

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings primary_instance_settings = 4;

Parameter
NameDescription
builderForValueAlloyDbSettings.PrimaryInstanceSettings.Builder
Returns
TypeDescription
AlloyDbSettings.Builder

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public AlloyDbSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final AlloyDbSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
AlloyDbSettings.Builder
Overrides

setVpcNetwork(String value)

public AlloyDbSettings.Builder setVpcNetwork(String value)

Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.

string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The vpcNetwork to set.

Returns
TypeDescription
AlloyDbSettings.Builder

This builder for chaining.

setVpcNetworkBytes(ByteString value)

public AlloyDbSettings.Builder setVpcNetworkBytes(ByteString value)

Required. The resource link for the VPC network in which cluster resources are created and from which they are accessible via Private IP. The network must belong to the same project as the cluster. It is specified in the form: "projects/{project_number}/global/networks/{network_id}". This is required to create a cluster.

string vpc_network = 2 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for vpcNetwork to set.

Returns
TypeDescription
AlloyDbSettings.Builder

This builder for chaining.