Class MySqlConnectionProfile.Builder (2.11.0)

public static final class MySqlConnectionProfile.Builder extends GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder> implements MySqlConnectionProfileOrBuilder

Specifies connection parameters required specifically for MySQL databases.

Protobuf type google.cloud.clouddms.v1.MySqlConnectionProfile

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MySqlConnectionProfile build()
Returns
TypeDescription
MySqlConnectionProfile

buildPartial()

public MySqlConnectionProfile buildPartial()
Returns
TypeDescription
MySqlConnectionProfile

clear()

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

clearCloudSqlId()

public MySqlConnectionProfile.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
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearHost()

public MySqlConnectionProfile.Builder clearHost()

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

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

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPassword()

public MySqlConnectionProfile.Builder clearPassword()

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
MySqlConnectionProfile.Builder

This builder for chaining.

clearPasswordSet()

public MySqlConnectionProfile.Builder clearPasswordSet()

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

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

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

clearPort()

public MySqlConnectionProfile.Builder clearPort()

Required. The network port of the source MySQL database.

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

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

clearSsl()

public MySqlConnectionProfile.Builder clearSsl()

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

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

Returns
TypeDescription
MySqlConnectionProfile.Builder

clearUsername()

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

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

clone()

public MySqlConnectionProfile.Builder clone()
Returns
TypeDescription
MySqlConnectionProfile.Builder
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.

getDefaultInstanceForType()

public MySqlConnectionProfile getDefaultInstanceForType()
Returns
TypeDescription
MySqlConnectionProfile

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getHost()

public String getHost()

Required. The IP or hostname of the source MySQL 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 MySQL database.

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

Returns
TypeDescription
ByteString

The bytes for host.

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 MySQL database.

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

Returns
TypeDescription
int

The port.

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.

getSslBuilder()

public SslConfig.Builder getSslBuilder()

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

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

Returns
TypeDescription
SslConfig.Builder

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

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.

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.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MySqlConnectionProfile other)

public MySqlConnectionProfile.Builder mergeFrom(MySqlConnectionProfile other)
Parameter
NameDescription
otherMySqlConnectionProfile
Returns
TypeDescription
MySqlConnectionProfile.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSsl(SslConfig value)

public MySqlConnectionProfile.Builder mergeSsl(SslConfig value)

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

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

Parameter
NameDescription
valueSslConfig
Returns
TypeDescription
MySqlConnectionProfile.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCloudSqlId(String value)

public MySqlConnectionProfile.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
NameDescription
valueString

The cloudSqlId to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

setCloudSqlIdBytes(ByteString value)

public MySqlConnectionProfile.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
NameDescription
valueByteString

The bytes for cloudSqlId to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

setHost(String value)

public MySqlConnectionProfile.Builder setHost(String value)

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

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

Parameter
NameDescription
valueString

The host to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

setHostBytes(ByteString value)

public MySqlConnectionProfile.Builder setHostBytes(ByteString value)

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

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

Parameter
NameDescription
valueByteString

The bytes for host to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

setPassword(String value)

public MySqlConnectionProfile.Builder setPassword(String value)

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];

Parameter
NameDescription
valueString

The password to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

setPasswordBytes(ByteString value)

public MySqlConnectionProfile.Builder setPasswordBytes(ByteString value)

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];

Parameter
NameDescription
valueByteString

The bytes for password to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

setPasswordSet(boolean value)

public MySqlConnectionProfile.Builder setPasswordSet(boolean value)

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

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

Parameter
NameDescription
valueboolean

The passwordSet to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

setPort(int value)

public MySqlConnectionProfile.Builder setPort(int value)

Required. The network port of the source MySQL database.

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

Parameter
NameDescription
valueint

The port to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

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

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

setSsl(SslConfig value)

public MySqlConnectionProfile.Builder setSsl(SslConfig value)

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

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

Parameter
NameDescription
valueSslConfig
Returns
TypeDescription
MySqlConnectionProfile.Builder

setSsl(SslConfig.Builder builderForValue)

public MySqlConnectionProfile.Builder setSsl(SslConfig.Builder builderForValue)

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

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

Parameter
NameDescription
builderForValueSslConfig.Builder
Returns
TypeDescription
MySqlConnectionProfile.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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

setUsername(String value)

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

Parameter
NameDescription
valueString

The username to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.

setUsernameBytes(ByteString value)

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

Parameter
NameDescription
valueByteString

The bytes for username to set.

Returns
TypeDescription
MySqlConnectionProfile.Builder

This builder for chaining.