Class CloudSqlConnectionProfile (2.11.0)

public final class CloudSqlConnectionProfile extends GeneratedMessageV3 implements CloudSqlConnectionProfileOrBuilder

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

Protobuf type google.cloud.clouddms.v1.CloudSqlConnectionProfile

Static Fields

CLOUD_SQL_ID_FIELD_NUMBER

public static final int CLOUD_SQL_ID_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVATE_IP_FIELD_NUMBER

public static final int PRIVATE_IP_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLIC_IP_FIELD_NUMBER

public static final int PUBLIC_IP_FIELD_NUMBER
Field Value
TypeDescription
int

SETTINGS_FIELD_NUMBER

public static final int SETTINGS_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CloudSqlConnectionProfile getDefaultInstance()
Returns
TypeDescription
CloudSqlConnectionProfile

getDescriptor()

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

newBuilder()

public static CloudSqlConnectionProfile.Builder newBuilder()
Returns
TypeDescription
CloudSqlConnectionProfile.Builder

newBuilder(CloudSqlConnectionProfile prototype)

public static CloudSqlConnectionProfile.Builder newBuilder(CloudSqlConnectionProfile prototype)
Parameter
NameDescription
prototypeCloudSqlConnectionProfile
Returns
TypeDescription
CloudSqlConnectionProfile.Builder

parseDelimitedFrom(InputStream input)

public static CloudSqlConnectionProfile parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CloudSqlConnectionProfile
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

public static CloudSqlConnectionProfile parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CloudSqlConnectionProfile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

public static CloudSqlConnectionProfile parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CloudSqlConnectionProfile
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

public static CloudSqlConnectionProfile parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CloudSqlConnectionProfile
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

public static CloudSqlConnectionProfile parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CloudSqlConnectionProfile
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

public static Parser<CloudSqlConnectionProfile> parser()
Returns
TypeDescription
Parser<CloudSqlConnectionProfile>

Methods

equals(Object obj)

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

getCloudSqlId()

public String getCloudSqlId()

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

string cloud_sql_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for cloudSqlId.

getDefaultInstanceForType()

public CloudSqlConnectionProfile getDefaultInstanceForType()
Returns
TypeDescription
CloudSqlConnectionProfile

getParserForType()

public Parser<CloudSqlConnectionProfile> getParserForType()
Returns
TypeDescription
Parser<CloudSqlConnectionProfile>
Overrides

getPrivateIp()

public String getPrivateIp()

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

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

Returns
TypeDescription
String

The privateIp.

getPrivateIpBytes()

public ByteString getPrivateIpBytes()

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

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

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 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
String

The publicIp.

getPublicIpBytes()

public ByteString getPublicIpBytes()

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

string public_ip = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
ByteString

The bytes for publicIp.

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSettings()

public CloudSqlSettings getSettings()

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

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

Returns
TypeDescription
CloudSqlSettings

The settings.

getSettingsOrBuilder()

public CloudSqlSettingsOrBuilder getSettingsOrBuilder()

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

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

Returns
TypeDescription
CloudSqlSettingsOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasSettings()

public boolean hasSettings()

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

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

Returns
TypeDescription
boolean

Whether the settings field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CloudSqlConnectionProfile.Builder newBuilderForType()
Returns
TypeDescription
CloudSqlConnectionProfile.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

public CloudSqlConnectionProfile.Builder toBuilder()
Returns
TypeDescription
CloudSqlConnectionProfile.Builder

writeTo(CodedOutputStream output)

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