Class AlloyDbConnectionProfile.Builder (2.28.0)

public static final class AlloyDbConnectionProfile.Builder extends GeneratedMessageV3.Builder<AlloyDbConnectionProfile.Builder> implements AlloyDbConnectionProfileOrBuilder

Specifies required connection parameters, and the parameters required to create an AlloyDB destination cluster.

Protobuf type google.cloud.clouddms.v1.AlloyDbConnectionProfile

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public AlloyDbConnectionProfile build()
Returns
TypeDescription
AlloyDbConnectionProfile

buildPartial()

public AlloyDbConnectionProfile buildPartial()
Returns
TypeDescription
AlloyDbConnectionProfile

clear()

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

clearClusterId()

public AlloyDbConnectionProfile.Builder clearClusterId()

Required. The AlloyDB cluster ID that this connection profile is associated with.

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

Returns
TypeDescription
AlloyDbConnectionProfile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSettings()

public AlloyDbConnectionProfile.Builder clearSettings()

Immutable. Metadata used to create the destination AlloyDB cluster.

.google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
AlloyDbConnectionProfile.Builder

clone()

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

getClusterId()

public String getClusterId()

Required. The AlloyDB cluster ID that this connection profile is associated with.

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

Returns
TypeDescription
String

The clusterId.

getClusterIdBytes()

public ByteString getClusterIdBytes()

Required. The AlloyDB cluster ID that this connection profile is associated with.

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

Returns
TypeDescription
ByteString

The bytes for clusterId.

getDefaultInstanceForType()

public AlloyDbConnectionProfile getDefaultInstanceForType()
Returns
TypeDescription
AlloyDbConnectionProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getSettings()

public AlloyDbSettings getSettings()

Immutable. Metadata used to create the destination AlloyDB cluster.

.google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
AlloyDbSettings

The settings.

getSettingsBuilder()

public AlloyDbSettings.Builder getSettingsBuilder()

Immutable. Metadata used to create the destination AlloyDB cluster.

.google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
AlloyDbSettings.Builder

getSettingsOrBuilder()

public AlloyDbSettingsOrBuilder getSettingsOrBuilder()

Immutable. Metadata used to create the destination AlloyDB cluster.

.google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
AlloyDbSettingsOrBuilder

hasSettings()

public boolean hasSettings()

Immutable. Metadata used to create the destination AlloyDB cluster.

.google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE];

Returns
TypeDescription
boolean

Whether the settings field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(AlloyDbConnectionProfile other)

public AlloyDbConnectionProfile.Builder mergeFrom(AlloyDbConnectionProfile other)
Parameter
NameDescription
otherAlloyDbConnectionProfile
Returns
TypeDescription
AlloyDbConnectionProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSettings(AlloyDbSettings value)

public AlloyDbConnectionProfile.Builder mergeSettings(AlloyDbSettings value)

Immutable. Metadata used to create the destination AlloyDB cluster.

.google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueAlloyDbSettings
Returns
TypeDescription
AlloyDbConnectionProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setClusterId(String value)

public AlloyDbConnectionProfile.Builder setClusterId(String value)

Required. The AlloyDB cluster ID that this connection profile is associated with.

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

Parameter
NameDescription
valueString

The clusterId to set.

Returns
TypeDescription
AlloyDbConnectionProfile.Builder

This builder for chaining.

setClusterIdBytes(ByteString value)

public AlloyDbConnectionProfile.Builder setClusterIdBytes(ByteString value)

Required. The AlloyDB cluster ID that this connection profile is associated with.

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

Parameter
NameDescription
valueByteString

The bytes for clusterId to set.

Returns
TypeDescription
AlloyDbConnectionProfile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSettings(AlloyDbSettings value)

public AlloyDbConnectionProfile.Builder setSettings(AlloyDbSettings value)

Immutable. Metadata used to create the destination AlloyDB cluster.

.google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
valueAlloyDbSettings
Returns
TypeDescription
AlloyDbConnectionProfile.Builder

setSettings(AlloyDbSettings.Builder builderForValue)

public AlloyDbConnectionProfile.Builder setSettings(AlloyDbSettings.Builder builderForValue)

Immutable. Metadata used to create the destination AlloyDB cluster.

.google.cloud.clouddms.v1.AlloyDbSettings settings = 2 [(.google.api.field_behavior) = IMMUTABLE];

Parameter
NameDescription
builderForValueAlloyDbSettings.Builder
Returns
TypeDescription
AlloyDbConnectionProfile.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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