Class AlloyDbSettings.PrimaryInstanceSettings (2.19.0)

public static final class AlloyDbSettings.PrimaryInstanceSettings extends GeneratedMessageV3 implements AlloyDbSettings.PrimaryInstanceSettingsOrBuilder

Settings for the cluster's primary instance

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

Inheritance

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > AlloyDbSettings.PrimaryInstanceSettings

Static Fields

DATABASE_FLAGS_FIELD_NUMBER

public static final int DATABASE_FLAGS_FIELD_NUMBER
Field Value
TypeDescription
int

ID_FIELD_NUMBER

public static final int ID_FIELD_NUMBER
Field Value
TypeDescription
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
TypeDescription
int

MACHINE_CONFIG_FIELD_NUMBER

public static final int MACHINE_CONFIG_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVATE_IP_FIELD_NUMBER

public static final int PRIVATE_IP_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static AlloyDbSettings.PrimaryInstanceSettings getDefaultInstance()
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings

getDescriptor()

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

newBuilder()

public static AlloyDbSettings.PrimaryInstanceSettings.Builder newBuilder()
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

newBuilder(AlloyDbSettings.PrimaryInstanceSettings prototype)

public static AlloyDbSettings.PrimaryInstanceSettings.Builder newBuilder(AlloyDbSettings.PrimaryInstanceSettings prototype)
Parameter
NameDescription
prototypeAlloyDbSettings.PrimaryInstanceSettings
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder

parseDelimitedFrom(InputStream input)

public static AlloyDbSettings.PrimaryInstanceSettings parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings.PrimaryInstanceSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings.PrimaryInstanceSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<AlloyDbSettings.PrimaryInstanceSettings> parser()
Returns
TypeDescription
Parser<PrimaryInstanceSettings>

Methods

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

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

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

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.

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

getParserForType()

public Parser<AlloyDbSettings.PrimaryInstanceSettings> getParserForType()
Returns
TypeDescription
Parser<PrimaryInstanceSettings>
Overrides

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.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

internalGetMapField(int number)

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

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

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

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AlloyDbSettings.PrimaryInstanceSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
AlloyDbSettings.PrimaryInstanceSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

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

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException