Class AlloyDbSettings.PrimaryInstanceSettings.Builder (2.19.0)

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

Settings for the cluster's primary instance

Protobuf type google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AlloyDbSettings.PrimaryInstanceSettings build()
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings

buildPartial()

public AlloyDbSettings.PrimaryInstanceSettings buildPartial()
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings

clear()

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

clearDatabaseFlags()

public AlloyDbSettings.PrimaryInstanceSettings.Builder clearDatabaseFlags()
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearId()

public AlloyDbSettings.PrimaryInstanceSettings.Builder clearId()

Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+".

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

This builder for chaining.

clearLabels()

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

clearMachineConfig()

public AlloyDbSettings.PrimaryInstanceSettings.Builder clearMachineConfig()

Configuration for the machines that host the underlying database engine.

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2;

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivateIp()

public AlloyDbSettings.PrimaryInstanceSettings.Builder clearPrivateIp()

Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.

string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

This builder for chaining.

clone()

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

containsDatabaseFlags(String key)

public boolean containsDatabaseFlags(String key)

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.

map<string, string> database_flags = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

containsLabels(String key)

public boolean containsLabels(String key)

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

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
boolean

getDatabaseFlags()

public Map<String,String> getDatabaseFlags()
Returns
TypeDescription
Map<String,String>

getDatabaseFlagsCount()

public int getDatabaseFlagsCount()

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.

map<string, string> database_flags = 6;

Returns
TypeDescription
int

getDatabaseFlagsMap()

public Map<String,String> getDatabaseFlagsMap()

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.

map<string, string> database_flags = 6;

Returns
TypeDescription
Map<String,String>

getDatabaseFlagsOrDefault(String key, String defaultValue)

public String getDatabaseFlagsOrDefault(String key, String defaultValue)

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.

map<string, string> database_flags = 6;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getDatabaseFlagsOrThrow(String key)

public String getDatabaseFlagsOrThrow(String key)

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.

map<string, string> database_flags = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getDefaultInstanceForType()

public AlloyDbSettings.PrimaryInstanceSettings getDefaultInstanceForType()
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getId()

public String getId()

Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+".

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The id.

getIdBytes()

public ByteString getIdBytes()

Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+".

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for id.

getLabels()

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
TypeDescription
Map<String,String>

getLabelsCount()

public int getLabelsCount()

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

map<string, string> labels = 7;

Returns
TypeDescription
int

getLabelsMap()

public Map<String,String> getLabelsMap()

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

map<string, string> labels = 7;

Returns
TypeDescription
Map<String,String>

getLabelsOrDefault(String key, String defaultValue)

public String getLabelsOrDefault(String key, String defaultValue)

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

map<string, string> labels = 7;

Parameters
NameDescription
keyString
defaultValueString
Returns
TypeDescription
String

getLabelsOrThrow(String key)

public String getLabelsOrThrow(String key)

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

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
String

getMachineConfig()

public AlloyDbSettings.PrimaryInstanceSettings.MachineConfig getMachineConfig()

Configuration for the machines that host the underlying database engine.

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2;

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.MachineConfig

The machineConfig.

getMachineConfigBuilder()

public AlloyDbSettings.PrimaryInstanceSettings.MachineConfig.Builder getMachineConfigBuilder()

Configuration for the machines that host the underlying database engine.

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2;

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.MachineConfig.Builder

getMachineConfigOrBuilder()

public AlloyDbSettings.PrimaryInstanceSettings.MachineConfigOrBuilder getMachineConfigOrBuilder()

Configuration for the machines that host the underlying database engine.

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2;

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.MachineConfigOrBuilder

getMutableDatabaseFlags()

public Map<String,String> getMutableDatabaseFlags()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getMutableLabels()

public Map<String,String> getMutableLabels()

Use alternate mutation accessors instead.

Returns
TypeDescription
Map<String,String>

getPrivateIp()

public String getPrivateIp()

Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.

string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The privateIp.

getPrivateIpBytes()

public ByteString getPrivateIpBytes()

Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.

string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for privateIp.

hasMachineConfig()

public boolean hasMachineConfig()

Configuration for the machines that host the underlying database engine.

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2;

Returns
TypeDescription
boolean

Whether the machineConfig 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

mergeFrom(AlloyDbSettings.PrimaryInstanceSettings other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeMachineConfig(AlloyDbSettings.PrimaryInstanceSettings.MachineConfig value)

public AlloyDbSettings.PrimaryInstanceSettings.Builder mergeMachineConfig(AlloyDbSettings.PrimaryInstanceSettings.MachineConfig value)

Configuration for the machines that host the underlying database engine.

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2;

Parameter
NameDescription
valueAlloyDbSettings.PrimaryInstanceSettings.MachineConfig
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

putAllDatabaseFlags(Map<String,String> values)

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

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.

map<string, string> database_flags = 6;

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

putAllLabels(Map<String,String> values)

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

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

map<string, string> labels = 7;

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

putDatabaseFlags(String key, String value)

public AlloyDbSettings.PrimaryInstanceSettings.Builder putDatabaseFlags(String key, String value)

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.

map<string, string> database_flags = 6;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

putLabels(String key, String value)

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

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

map<string, string> labels = 7;

Parameters
NameDescription
keyString
valueString
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

removeDatabaseFlags(String key)

public AlloyDbSettings.PrimaryInstanceSettings.Builder removeDatabaseFlags(String key)

Database flags to pass to AlloyDB when DMS is creating the AlloyDB cluster and instances. See the AlloyDB documentation for how these can be used.

map<string, string> database_flags = 6;

Parameter
NameDescription
keyString
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

removeLabels(String key)

public AlloyDbSettings.PrimaryInstanceSettings.Builder removeLabels(String key)

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

map<string, string> labels = 7;

Parameter
NameDescription
keyString
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setId(String value)

public AlloyDbSettings.PrimaryInstanceSettings.Builder setId(String value)

Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+".

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueString

The id to set.

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

This builder for chaining.

setIdBytes(ByteString value)

public AlloyDbSettings.PrimaryInstanceSettings.Builder setIdBytes(ByteString value)

Required. The ID of the AlloyDB primary instance. The ID must satisfy the regex expression "[a-z0-9-]+".

string id = 1 [(.google.api.field_behavior) = REQUIRED];

Parameter
NameDescription
valueByteString

The bytes for id to set.

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

This builder for chaining.

setMachineConfig(AlloyDbSettings.PrimaryInstanceSettings.MachineConfig value)

public AlloyDbSettings.PrimaryInstanceSettings.Builder setMachineConfig(AlloyDbSettings.PrimaryInstanceSettings.MachineConfig value)

Configuration for the machines that host the underlying database engine.

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2;

Parameter
NameDescription
valueAlloyDbSettings.PrimaryInstanceSettings.MachineConfig
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

setMachineConfig(AlloyDbSettings.PrimaryInstanceSettings.MachineConfig.Builder builderForValue)

public AlloyDbSettings.PrimaryInstanceSettings.Builder setMachineConfig(AlloyDbSettings.PrimaryInstanceSettings.MachineConfig.Builder builderForValue)

Configuration for the machines that host the underlying database engine.

.google.cloud.clouddms.v1.AlloyDbSettings.PrimaryInstanceSettings.MachineConfig machine_config = 2;

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

setPrivateIp(String value)

public AlloyDbSettings.PrimaryInstanceSettings.Builder setPrivateIp(String value)

Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.

string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueString

The privateIp to set.

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

This builder for chaining.

setPrivateIpBytes(ByteString value)

public AlloyDbSettings.PrimaryInstanceSettings.Builder setPrivateIpBytes(ByteString value)

Output only. The private IP address for the Instance. This is the connection endpoint for an end-user application.

string private_ip = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
NameDescription
valueByteString

The bytes for privateIp to set.

Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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