Class CloudSqlConnectionProfile.Builder (0.14.1)

public static final class CloudSqlConnectionProfile.Builder extends GeneratedMessageV3.Builder<CloudSqlConnectionProfile.Builder> implements CloudSqlConnectionProfileOrBuilder

Specifies required connection parameters, and, optionally, the parameters required to create a Cloud SQL destination database instance.

Protobuf type google.events.cloud.clouddms.v1.CloudSqlConnectionProfile

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CloudSqlConnectionProfile build()
Returns
TypeDescription
CloudSqlConnectionProfile

buildPartial()

public CloudSqlConnectionProfile buildPartial()
Returns
TypeDescription
CloudSqlConnectionProfile

clear()

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

clearAdditionalPublicIp()

public CloudSqlConnectionProfile.Builder clearAdditionalPublicIp()

Output only. The Cloud SQL database instance's additional (outgoing) public IP. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string additional_public_ip = 5;

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

clearCloudSqlId()

public CloudSqlConnectionProfile.Builder clearCloudSqlId()

Output only. The Cloud SQL instance ID that this connection profile is associated with.

string cloud_sql_id = 1;

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPrivateIp()

public CloudSqlConnectionProfile.Builder clearPrivateIp()

Output only. The Cloud SQL database instance's private IP.

string private_ip = 3;

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

clearPublicIp()

public CloudSqlConnectionProfile.Builder clearPublicIp()

Output only. The Cloud SQL database instance's public IP.

string public_ip = 4;

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

clearSettings()

public CloudSqlConnectionProfile.Builder clearSettings()

Immutable. Metadata used to create the destination Cloud SQL database.

.google.events.cloud.clouddms.v1.CloudSqlSettings settings = 2;

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

clone()

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

getAdditionalPublicIp()

public String getAdditionalPublicIp()

Output only. The Cloud SQL database instance's additional (outgoing) public IP. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string additional_public_ip = 5;

Returns
TypeDescription
String

The additionalPublicIp.

getAdditionalPublicIpBytes()

public ByteString getAdditionalPublicIpBytes()

Output only. The Cloud SQL database instance's additional (outgoing) public IP. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string additional_public_ip = 5;

Returns
TypeDescription
ByteString

The bytes for additionalPublicIp.

getCloudSqlId()

public String getCloudSqlId()

Output only. The Cloud SQL instance ID that this connection profile is associated with.

string cloud_sql_id = 1;

Returns
TypeDescription
String

The cloudSqlId.

getCloudSqlIdBytes()

public ByteString getCloudSqlIdBytes()

Output only. The Cloud SQL instance ID that this connection profile is associated with.

string cloud_sql_id = 1;

Returns
TypeDescription
ByteString

The bytes for cloudSqlId.

getDefaultInstanceForType()

public CloudSqlConnectionProfile getDefaultInstanceForType()
Returns
TypeDescription
CloudSqlConnectionProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPrivateIp()

public String getPrivateIp()

Output only. The Cloud SQL database instance's private IP.

string private_ip = 3;

Returns
TypeDescription
String

The privateIp.

getPrivateIpBytes()

public ByteString getPrivateIpBytes()

Output only. The Cloud SQL database instance's private IP.

string private_ip = 3;

Returns
TypeDescription
ByteString

The bytes for privateIp.

getPublicIp()

public String getPublicIp()

Output only. The Cloud SQL database instance's public IP.

string public_ip = 4;

Returns
TypeDescription
String

The publicIp.

getPublicIpBytes()

public ByteString getPublicIpBytes()

Output only. The Cloud SQL database instance's public IP.

string public_ip = 4;

Returns
TypeDescription
ByteString

The bytes for publicIp.

getSettings()

public CloudSqlSettings getSettings()

Immutable. Metadata used to create the destination Cloud SQL database.

.google.events.cloud.clouddms.v1.CloudSqlSettings settings = 2;

Returns
TypeDescription
CloudSqlSettings

The settings.

getSettingsBuilder()

public CloudSqlSettings.Builder getSettingsBuilder()

Immutable. Metadata used to create the destination Cloud SQL database.

.google.events.cloud.clouddms.v1.CloudSqlSettings settings = 2;

Returns
TypeDescription
CloudSqlSettings.Builder

getSettingsOrBuilder()

public CloudSqlSettingsOrBuilder getSettingsOrBuilder()

Immutable. Metadata used to create the destination Cloud SQL database.

.google.events.cloud.clouddms.v1.CloudSqlSettings settings = 2;

Returns
TypeDescription
CloudSqlSettingsOrBuilder

hasSettings()

public boolean hasSettings()

Immutable. Metadata used to create the destination Cloud SQL database.

.google.events.cloud.clouddms.v1.CloudSqlSettings settings = 2;

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(CloudSqlConnectionProfile other)

public CloudSqlConnectionProfile.Builder mergeFrom(CloudSqlConnectionProfile other)
Parameter
NameDescription
otherCloudSqlConnectionProfile
Returns
TypeDescription
CloudSqlConnectionProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSettings(CloudSqlSettings value)

public CloudSqlConnectionProfile.Builder mergeSettings(CloudSqlSettings value)

Immutable. Metadata used to create the destination Cloud SQL database.

.google.events.cloud.clouddms.v1.CloudSqlSettings settings = 2;

Parameter
NameDescription
valueCloudSqlSettings
Returns
TypeDescription
CloudSqlConnectionProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setAdditionalPublicIp(String value)

public CloudSqlConnectionProfile.Builder setAdditionalPublicIp(String value)

Output only. The Cloud SQL database instance's additional (outgoing) public IP. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string additional_public_ip = 5;

Parameter
NameDescription
valueString

The additionalPublicIp to set.

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

setAdditionalPublicIpBytes(ByteString value)

public CloudSqlConnectionProfile.Builder setAdditionalPublicIpBytes(ByteString value)

Output only. The Cloud SQL database instance's additional (outgoing) public IP. Used when the Cloud SQL database availability type is REGIONAL (i.e. multiple zones / highly available).

string additional_public_ip = 5;

Parameter
NameDescription
valueByteString

The bytes for additionalPublicIp to set.

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

setCloudSqlId(String value)

public CloudSqlConnectionProfile.Builder setCloudSqlId(String value)

Output only. The Cloud SQL instance ID that this connection profile is associated with.

string cloud_sql_id = 1;

Parameter
NameDescription
valueString

The cloudSqlId to set.

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

setCloudSqlIdBytes(ByteString value)

public CloudSqlConnectionProfile.Builder setCloudSqlIdBytes(ByteString value)

Output only. The Cloud SQL instance ID that this connection profile is associated with.

string cloud_sql_id = 1;

Parameter
NameDescription
valueByteString

The bytes for cloudSqlId to set.

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setPrivateIp(String value)

public CloudSqlConnectionProfile.Builder setPrivateIp(String value)

Output only. The Cloud SQL database instance's private IP.

string private_ip = 3;

Parameter
NameDescription
valueString

The privateIp to set.

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

setPrivateIpBytes(ByteString value)

public CloudSqlConnectionProfile.Builder setPrivateIpBytes(ByteString value)

Output only. The Cloud SQL database instance's private IP.

string private_ip = 3;

Parameter
NameDescription
valueByteString

The bytes for privateIp to set.

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

setPublicIp(String value)

public CloudSqlConnectionProfile.Builder setPublicIp(String value)

Output only. The Cloud SQL database instance's public IP.

string public_ip = 4;

Parameter
NameDescription
valueString

The publicIp to set.

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

setPublicIpBytes(ByteString value)

public CloudSqlConnectionProfile.Builder setPublicIpBytes(ByteString value)

Output only. The Cloud SQL database instance's public IP.

string public_ip = 4;

Parameter
NameDescription
valueByteString

The bytes for publicIp to set.

Returns
TypeDescription
CloudSqlConnectionProfile.Builder

This builder for chaining.

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

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

setSettings(CloudSqlSettings value)

public CloudSqlConnectionProfile.Builder setSettings(CloudSqlSettings value)

Immutable. Metadata used to create the destination Cloud SQL database.

.google.events.cloud.clouddms.v1.CloudSqlSettings settings = 2;

Parameter
NameDescription
valueCloudSqlSettings
Returns
TypeDescription
CloudSqlConnectionProfile.Builder

setSettings(CloudSqlSettings.Builder builderForValue)

public CloudSqlConnectionProfile.Builder setSettings(CloudSqlSettings.Builder builderForValue)

Immutable. Metadata used to create the destination Cloud SQL database.

.google.events.cloud.clouddms.v1.CloudSqlSettings settings = 2;

Parameter
NameDescription
builderForValueCloudSqlSettings.Builder
Returns
TypeDescription
CloudSqlConnectionProfile.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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