Class AlloyDbSettings (2.41.0)

public final class AlloyDbSettings extends GeneratedMessageV3 implements AlloyDbSettingsOrBuilder

Settings for creating an AlloyDB cluster.

Protobuf type google.cloud.clouddms.v1.AlloyDbSettings

Static Fields

ENCRYPTION_CONFIG_FIELD_NUMBER

public static final int ENCRYPTION_CONFIG_FIELD_NUMBER
Field Value
Type Description
int

INITIAL_USER_FIELD_NUMBER

public static final int INITIAL_USER_FIELD_NUMBER
Field Value
Type Description
int

LABELS_FIELD_NUMBER

public static final int LABELS_FIELD_NUMBER
Field Value
Type Description
int

PRIMARY_INSTANCE_SETTINGS_FIELD_NUMBER

public static final int PRIMARY_INSTANCE_SETTINGS_FIELD_NUMBER
Field Value
Type Description
int

VPC_NETWORK_FIELD_NUMBER

public static final int VPC_NETWORK_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static AlloyDbSettings getDefaultInstance()
Returns
Type Description
AlloyDbSettings

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

newBuilder()

public static AlloyDbSettings.Builder newBuilder()
Returns
Type Description
AlloyDbSettings.Builder

newBuilder(AlloyDbSettings prototype)

public static AlloyDbSettings.Builder newBuilder(AlloyDbSettings prototype)
Parameter
Name Description
prototype AlloyDbSettings
Returns
Type Description
AlloyDbSettings.Builder

parseDelimitedFrom(InputStream input)

public static AlloyDbSettings parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static AlloyDbSettings parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static AlloyDbSettings parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static AlloyDbSettings parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static AlloyDbSettings parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static AlloyDbSettings parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static AlloyDbSettings parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
AlloyDbSettings
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<AlloyDbSettings> parser()
Returns
Type Description
Parser<AlloyDbSettings>

Methods

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
Name Description
key String
Returns
Type Description
boolean

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

getDefaultInstanceForType()

public AlloyDbSettings getDefaultInstanceForType()
Returns
Type Description
AlloyDbSettings

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
Type Description
AlloyDbSettings.EncryptionConfig

The encryptionConfig.

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
Type Description
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
Type Description
AlloyDbSettings.UserPassword

The initialUser.

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
Type Description
AlloyDbSettings.UserPasswordOrBuilder

getLabels() (deprecated)

public Map<String,String> getLabels()

Use #getLabelsMap() instead.

Returns
Type Description
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
Type Description
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
Type Description
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
Name Description
key String
defaultValue String
Returns
Type Description
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
Name Description
key String
Returns
Type Description
String

getParserForType()

public Parser<AlloyDbSettings> getParserForType()
Returns
Type Description
Parser<AlloyDbSettings>
Overrides

getPrimaryInstanceSettings()

public AlloyDbSettings.PrimaryInstanceSettings getPrimaryInstanceSettings()

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

Returns
Type Description
AlloyDbSettings.PrimaryInstanceSettings

The primaryInstanceSettings.

getPrimaryInstanceSettingsOrBuilder()

public AlloyDbSettings.PrimaryInstanceSettingsOrBuilder getPrimaryInstanceSettingsOrBuilder()

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

Returns
Type Description
AlloyDbSettings.PrimaryInstanceSettingsOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

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
Type Description
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
Type Description
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
Type Description
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
Type Description
boolean

Whether the initialUser field is set.

hasPrimaryInstanceSettings()

public boolean hasPrimaryInstanceSettings()

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

Returns
Type Description
boolean

Whether the primaryInstanceSettings field is set.

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

internalGetMapFieldReflection(int number)

protected MapFieldReflectionAccessor internalGetMapFieldReflection(int number)
Parameter
Name Description
number int
Returns
Type Description
com.google.protobuf.MapFieldReflectionAccessor
Overrides
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public AlloyDbSettings.Builder newBuilderForType()
Returns
Type Description
AlloyDbSettings.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected AlloyDbSettings.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
AlloyDbSettings.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Name Description
unused UnusedPrivateParameter
Returns
Type Description
Object
Overrides

toBuilder()

public AlloyDbSettings.Builder toBuilder()
Returns
Type Description
AlloyDbSettings.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException