public final class MySqlConnectionProfile extends GeneratedMessageV3 implements MySqlConnectionProfileOrBuilder
Specifies connection parameters required specifically for MySQL databases.
Protobuf type google.cloud.clouddms.v1.MySqlConnectionProfile
Static Fields
CLOUD_SQL_ID_FIELD_NUMBER
public static final int CLOUD_SQL_ID_FIELD_NUMBER
Field Value
HOST_FIELD_NUMBER
public static final int HOST_FIELD_NUMBER
Field Value
PASSWORD_FIELD_NUMBER
public static final int PASSWORD_FIELD_NUMBER
Field Value
PASSWORD_SET_FIELD_NUMBER
public static final int PASSWORD_SET_FIELD_NUMBER
Field Value
PORT_FIELD_NUMBER
public static final int PORT_FIELD_NUMBER
Field Value
SSL_FIELD_NUMBER
public static final int SSL_FIELD_NUMBER
Field Value
USERNAME_FIELD_NUMBER
public static final int USERNAME_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MySqlConnectionProfile getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MySqlConnectionProfile.Builder newBuilder()
Returns
newBuilder(MySqlConnectionProfile prototype)
public static MySqlConnectionProfile.Builder newBuilder(MySqlConnectionProfile prototype)
Parameter
Returns
public static MySqlConnectionProfile parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MySqlConnectionProfile parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MySqlConnectionProfile parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MySqlConnectionProfile parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MySqlConnectionProfile parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MySqlConnectionProfile parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MySqlConnectionProfile parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MySqlConnectionProfile parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MySqlConnectionProfile parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MySqlConnectionProfile parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MySqlConnectionProfile parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MySqlConnectionProfile parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MySqlConnectionProfile> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
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
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 MySqlConnectionProfile getDefaultInstanceForType()
Returns
getHost()
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
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
getParserForType()
public Parser<MySqlConnectionProfile> getParserForType()
Returns
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
Type | Description |
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
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
Type | Description |
boolean | The passwordSet.
|
getPort()
Required. The network port of the source MySQL database.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];
Returns
Type | Description |
int | The port.
|
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getSsl()
public SslConfig getSsl()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;
Returns
getSslOrBuilder()
public SslConfigOrBuilder getSslOrBuilder()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;
Returns
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
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
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 [(.google.api.field_behavior) = REQUIRED];
Returns
hasSsl()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;
Returns
Type | Description |
boolean | Whether the ssl field is set.
|
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MySqlConnectionProfile.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MySqlConnectionProfile.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MySqlConnectionProfile.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions