public static final class PostgreSqlConnectionProfile.Builder extends GeneratedMessageV3.Builder<PostgreSqlConnectionProfile.Builder> implements PostgreSqlConnectionProfileOrBuilder
Specifies connection parameters required specifically for PostgreSQL databases.
Protobuf type google.events.cloud.clouddms.v1.PostgreSqlConnectionProfile
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > PostgreSqlConnectionProfile.BuilderImplements
PostgreSqlConnectionProfileOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns | |
---|---|
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PostgreSqlConnectionProfile.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
build()
public PostgreSqlConnectionProfile build()
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile |
buildPartial()
public PostgreSqlConnectionProfile buildPartial()
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile |
clear()
public PostgreSqlConnectionProfile.Builder clear()
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
clearCloudSqlId()
public PostgreSqlConnectionProfile.Builder clearCloudSqlId()
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 | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
clearField(Descriptors.FieldDescriptor field)
public PostgreSqlConnectionProfile.Builder clearField(Descriptors.FieldDescriptor field)
Parameter | |
---|---|
Name | Description |
field |
FieldDescriptor |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
clearHost()
public PostgreSqlConnectionProfile.Builder clearHost()
Required. The IP or hostname of the source PostgreSQL database.
string host = 1;
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
clearNetworkArchitecture()
public PostgreSqlConnectionProfile.Builder clearNetworkArchitecture()
Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.
.google.events.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8;
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public PostgreSqlConnectionProfile.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter | |
---|---|
Name | Description |
oneof |
OneofDescriptor |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
clearPasswordSet()
public PostgreSqlConnectionProfile.Builder clearPasswordSet()
Output only. Indicates If this connection profile password is stored.
bool password_set = 5;
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
clearPort()
public PostgreSqlConnectionProfile.Builder clearPort()
Required. The network port of the source PostgreSQL database.
int32 port = 2;
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
clearSsl()
public PostgreSqlConnectionProfile.Builder clearSsl()
SSL configuration for the destination to connect to the source database.
.google.events.cloud.clouddms.v1.SslConfig ssl = 6;
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
clearUsername()
public PostgreSqlConnectionProfile.Builder clearUsername()
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;
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
clone()
public PostgreSqlConnectionProfile.Builder clone()
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
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 | |
---|---|
Type | Description |
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 | |
---|---|
Type | Description |
ByteString |
The bytes for cloudSqlId. |
getDefaultInstanceForType()
public PostgreSqlConnectionProfile getDefaultInstanceForType()
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns | |
---|---|
Type | Description |
Descriptor |
getHost()
public String getHost()
Required. The IP or hostname of the source PostgreSQL database.
string host = 1;
Returns | |
---|---|
Type | Description |
String |
The host. |
getHostBytes()
public ByteString getHostBytes()
Required. The IP or hostname of the source PostgreSQL database.
string host = 1;
Returns | |
---|---|
Type | Description |
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.events.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8;
Returns | |
---|---|
Type | Description |
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.events.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8;
Returns | |
---|---|
Type | Description |
int |
The enum numeric value on the wire for networkArchitecture. |
getPasswordSet()
public boolean getPasswordSet()
Output only. Indicates If this connection profile password is stored.
bool password_set = 5;
Returns | |
---|---|
Type | Description |
boolean |
The passwordSet. |
getPort()
public int getPort()
Required. The network port of the source PostgreSQL database.
int32 port = 2;
Returns | |
---|---|
Type | Description |
int |
The port. |
getSsl()
public SslConfig getSsl()
SSL configuration for the destination to connect to the source database.
.google.events.cloud.clouddms.v1.SslConfig ssl = 6;
Returns | |
---|---|
Type | Description |
SslConfig |
The ssl. |
getSslBuilder()
public SslConfig.Builder getSslBuilder()
SSL configuration for the destination to connect to the source database.
.google.events.cloud.clouddms.v1.SslConfig ssl = 6;
Returns | |
---|---|
Type | Description |
SslConfig.Builder |
getSslOrBuilder()
public SslConfigOrBuilder getSslOrBuilder()
SSL configuration for the destination to connect to the source database.
.google.events.cloud.clouddms.v1.SslConfig ssl = 6;
Returns | |
---|---|
Type | Description |
SslConfigOrBuilder |
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;
Returns | |
---|---|
Type | Description |
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;
Returns | |
---|---|
Type | Description |
ByteString |
The bytes for username. |
hasSsl()
public boolean hasSsl()
SSL configuration for the destination to connect to the source database.
.google.events.cloud.clouddms.v1.SslConfig ssl = 6;
Returns | |
---|---|
Type | Description |
boolean |
Whether the ssl field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns | |
---|---|
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Returns | |
---|---|
Type | Description |
boolean |
mergeFrom(PostgreSqlConnectionProfile other)
public PostgreSqlConnectionProfile.Builder mergeFrom(PostgreSqlConnectionProfile other)
Parameter | |
---|---|
Name | Description |
other |
PostgreSqlConnectionProfile |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public PostgreSqlConnectionProfile.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters | |
---|---|
Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
Exceptions | |
---|---|
Type | Description |
IOException |
mergeFrom(Message other)
public PostgreSqlConnectionProfile.Builder mergeFrom(Message other)
Parameter | |
---|---|
Name | Description |
other |
Message |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
mergeSsl(SslConfig value)
public PostgreSqlConnectionProfile.Builder mergeSsl(SslConfig value)
SSL configuration for the destination to connect to the source database.
.google.events.cloud.clouddms.v1.SslConfig ssl = 6;
Parameter | |
---|---|
Name | Description |
value |
SslConfig |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PostgreSqlConnectionProfile.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
setCloudSqlId(String value)
public PostgreSqlConnectionProfile.Builder setCloudSqlId(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The cloudSqlId to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setCloudSqlIdBytes(ByteString value)
public PostgreSqlConnectionProfile.Builder setCloudSqlIdBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for cloudSqlId to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setField(Descriptors.FieldDescriptor field, Object value)
public PostgreSqlConnectionProfile.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
value |
Object |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
setHost(String value)
public PostgreSqlConnectionProfile.Builder setHost(String value)
Required. The IP or hostname of the source PostgreSQL database.
string host = 1;
Parameter | |
---|---|
Name | Description |
value |
String The host to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setHostBytes(ByteString value)
public PostgreSqlConnectionProfile.Builder setHostBytes(ByteString value)
Required. The IP or hostname of the source PostgreSQL database.
string host = 1;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for host to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setNetworkArchitecture(NetworkArchitecture value)
public PostgreSqlConnectionProfile.Builder setNetworkArchitecture(NetworkArchitecture value)
Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.
.google.events.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8;
Parameter | |
---|---|
Name | Description |
value |
NetworkArchitecture The networkArchitecture to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setNetworkArchitectureValue(int value)
public PostgreSqlConnectionProfile.Builder setNetworkArchitectureValue(int value)
Output only. If the source is a Cloud SQL database, this field indicates the network architecture it's associated with.
.google.events.cloud.clouddms.v1.NetworkArchitecture network_architecture = 8;
Parameter | |
---|---|
Name | Description |
value |
int The enum numeric value on the wire for networkArchitecture to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setPasswordSet(boolean value)
public PostgreSqlConnectionProfile.Builder setPasswordSet(boolean value)
Output only. Indicates If this connection profile password is stored.
bool password_set = 5;
Parameter | |
---|---|
Name | Description |
value |
boolean The passwordSet to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setPort(int value)
public PostgreSqlConnectionProfile.Builder setPort(int value)
Required. The network port of the source PostgreSQL database.
int32 port = 2;
Parameter | |
---|---|
Name | Description |
value |
int The port to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PostgreSqlConnectionProfile.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters | |
---|---|
Name | Description |
field |
FieldDescriptor |
index |
int |
value |
Object |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
setSsl(SslConfig value)
public PostgreSqlConnectionProfile.Builder setSsl(SslConfig value)
SSL configuration for the destination to connect to the source database.
.google.events.cloud.clouddms.v1.SslConfig ssl = 6;
Parameter | |
---|---|
Name | Description |
value |
SslConfig |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
setSsl(SslConfig.Builder builderForValue)
public PostgreSqlConnectionProfile.Builder setSsl(SslConfig.Builder builderForValue)
SSL configuration for the destination to connect to the source database.
.google.events.cloud.clouddms.v1.SslConfig ssl = 6;
Parameter | |
---|---|
Name | Description |
builderForValue |
SslConfig.Builder |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final PostgreSqlConnectionProfile.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter | |
---|---|
Name | Description |
unknownFields |
UnknownFieldSet |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
setUsername(String value)
public PostgreSqlConnectionProfile.Builder setUsername(String value)
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;
Parameter | |
---|---|
Name | Description |
value |
String The username to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |
setUsernameBytes(ByteString value)
public PostgreSqlConnectionProfile.Builder setUsernameBytes(ByteString value)
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;
Parameter | |
---|---|
Name | Description |
value |
ByteString The bytes for username to set. |
Returns | |
---|---|
Type | Description |
PostgreSqlConnectionProfile.Builder |
This builder for chaining. |