Class PostgreSqlConnectionProfile (2.27.0)

public final class PostgreSqlConnectionProfile extends GeneratedMessageV3 implements PostgreSqlConnectionProfileOrBuilder

Specifies connection parameters required specifically for PostgreSQL databases.

Protobuf type google.cloud.clouddms.v1.PostgreSqlConnectionProfile

Static Fields

CLOUD_SQL_ID_FIELD_NUMBER

public static final int CLOUD_SQL_ID_FIELD_NUMBER
Field Value
TypeDescription
int

HOST_FIELD_NUMBER

public static final int HOST_FIELD_NUMBER
Field Value
TypeDescription
int

NETWORK_ARCHITECTURE_FIELD_NUMBER

public static final int NETWORK_ARCHITECTURE_FIELD_NUMBER
Field Value
TypeDescription
int

PASSWORD_FIELD_NUMBER

public static final int PASSWORD_FIELD_NUMBER
Field Value
TypeDescription
int

PASSWORD_SET_FIELD_NUMBER

public static final int PASSWORD_SET_FIELD_NUMBER
Field Value
TypeDescription
int

PORT_FIELD_NUMBER

public static final int PORT_FIELD_NUMBER
Field Value
TypeDescription
int

PRIVATE_SERVICE_CONNECT_CONNECTIVITY_FIELD_NUMBER

public static final int PRIVATE_SERVICE_CONNECT_CONNECTIVITY_FIELD_NUMBER
Field Value
TypeDescription
int

SSL_FIELD_NUMBER

public static final int SSL_FIELD_NUMBER
Field Value
TypeDescription
int

STATIC_IP_CONNECTIVITY_FIELD_NUMBER

public static final int STATIC_IP_CONNECTIVITY_FIELD_NUMBER
Field Value
TypeDescription
int

USERNAME_FIELD_NUMBER

public static final int USERNAME_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static PostgreSqlConnectionProfile getDefaultInstance()
Returns
TypeDescription
PostgreSqlConnectionProfile

getDescriptor()

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

newBuilder()

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

newBuilder(PostgreSqlConnectionProfile prototype)

public static PostgreSqlConnectionProfile.Builder newBuilder(PostgreSqlConnectionProfile prototype)
Parameter
NameDescription
prototypePostgreSqlConnectionProfile
Returns
TypeDescription
PostgreSqlConnectionProfile.Builder

parseDelimitedFrom(InputStream input)

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

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(byte[] data)

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

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteString data)

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

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

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

parseFrom(CodedInputStream input)

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

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(InputStream input)

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

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

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

parseFrom(ByteBuffer data)

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

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

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

parser()

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

Methods

equals(Object obj)

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

getCloudSqlId()

public String getCloudSqlId()

If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.

string cloud_sql_id = 7;

Returns
TypeDescription
String

The cloudSqlId.

getCloudSqlIdBytes()

public ByteString getCloudSqlIdBytes()

If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.

string cloud_sql_id = 7;

Returns
TypeDescription
ByteString

The bytes for cloudSqlId.

getConnectivityCase()

public PostgreSqlConnectionProfile.ConnectivityCase getConnectivityCase()
Returns
TypeDescription
PostgreSqlConnectionProfile.ConnectivityCase

getDefaultInstanceForType()

public PostgreSqlConnectionProfile getDefaultInstanceForType()
Returns
TypeDescription
PostgreSqlConnectionProfile

getHost()

public String getHost()

Required. The IP or hostname of the source PostgreSQL database.

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

Returns
TypeDescription
String

The host.

getHostBytes()

public ByteString getHostBytes()

Required. The IP or hostname of the source PostgreSQL database.

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

Returns
TypeDescription
ByteString

The bytes for host.

getNetworkArchitecture()

public NetworkArchitecture getNetworkArchitecture()

Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.

.google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
NetworkArchitecture

The networkArchitecture.

getNetworkArchitectureValue()

public int getNetworkArchitectureValue()

Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.

.google.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
int

The enum numeric value on the wire for networkArchitecture.

getParserForType()

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

getPassword()

public String getPassword()

Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.

string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The password.

getPasswordBytes()

public ByteString getPasswordBytes()

Required. Input only. The password for the user that Database Migration Service will be using to connect to the database. This field is not returned on request, and the value is encrypted when stored in Database Migration Service.

string password = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for password.

getPasswordSet()

public boolean getPasswordSet()

Output only. Indicates If this connection profile password is stored.

bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
TypeDescription
boolean

The passwordSet.

getPort()

public int getPort()

Required. The network port of the source PostgreSQL database.

int32 port = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
int

The port.

getPrivateServiceConnectConnectivity()

public PrivateServiceConnectConnectivity getPrivateServiceConnectConnectivity()

Private service connect connectivity.

.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101;

Returns
TypeDescription
PrivateServiceConnectConnectivity

The privateServiceConnectConnectivity.

getPrivateServiceConnectConnectivityOrBuilder()

public PrivateServiceConnectConnectivityOrBuilder getPrivateServiceConnectConnectivityOrBuilder()

Private service connect connectivity.

.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101;

Returns
TypeDescription
PrivateServiceConnectConnectivityOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSsl()

public SslConfig getSsl()

SSL configuration for the destination to connect to the source database.

.google.cloud.clouddms.v1.SslConfig ssl = 6;

Returns
TypeDescription
SslConfig

The ssl.

getSslOrBuilder()

public SslConfigOrBuilder getSslOrBuilder()

SSL configuration for the destination to connect to the source database.

.google.cloud.clouddms.v1.SslConfig ssl = 6;

Returns
TypeDescription
SslConfigOrBuilder

getStaticIpConnectivity()

public StaticIpConnectivity getStaticIpConnectivity()

Static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100;

Returns
TypeDescription
StaticIpConnectivity

The staticIpConnectivity.

getStaticIpConnectivityOrBuilder()

public StaticIpConnectivityOrBuilder getStaticIpConnectivityOrBuilder()

Static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100;

Returns
TypeDescription
StaticIpConnectivityOrBuilder

getUsername()

public String getUsername()

Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
String

The username.

getUsernameBytes()

public ByteString getUsernameBytes()

Required. The username that Database Migration Service will use to connect to the database. The value is encrypted when stored in Database Migration Service.

string username = 3 [(.google.api.field_behavior) = REQUIRED];

Returns
TypeDescription
ByteString

The bytes for username.

hasPrivateServiceConnectConnectivity()

public boolean hasPrivateServiceConnectConnectivity()

Private service connect connectivity.

.google.cloud.clouddms.v1.PrivateServiceConnectConnectivity private_service_connect_connectivity = 101;

Returns
TypeDescription
boolean

Whether the privateServiceConnectConnectivity field is set.

hasSsl()

public boolean hasSsl()

SSL configuration for the destination to connect to the source database.

.google.cloud.clouddms.v1.SslConfig ssl = 6;

Returns
TypeDescription
boolean

Whether the ssl field is set.

hasStaticIpConnectivity()

public boolean hasStaticIpConnectivity()

Static ip connectivity data (default, no additional details needed).

.google.cloud.clouddms.v1.StaticIpConnectivity static_ip_connectivity = 100;

Returns
TypeDescription
boolean

Whether the staticIpConnectivity 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 PostgreSqlConnectionProfile.Builder newBuilderForType()
Returns
TypeDescription
PostgreSqlConnectionProfile.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

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

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

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

toBuilder()

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

writeTo(CodedOutputStream output)

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