Required. The username that Database Migration Service will use to connect
to the database. The value is encrypted when stored in Database Migration
Service.
Required. The username that Database Migration Service will use to connect
to the database. The value is encrypted when stored in Database Migration
Service.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[],[],null,["# Interface MySqlConnectionProfileOrBuilder (0.16.0)\n\nVersion latestkeyboard_arrow_down\n\n- [0.16.0 (latest)](/java/docs/reference/google-cloudevent-types/latest/com.google.events.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder)\n- [0.15.0](/java/docs/reference/google-cloudevent-types/0.15.0/com.google.events.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder)\n- [0.14.1](/java/docs/reference/google-cloudevent-types/0.14.1/com.google.events.cloud.clouddms.v1.MySqlConnectionProfileOrBuilder) \n\n public interface MySqlConnectionProfileOrBuilder extends MessageOrBuilder\n\nImplements\n----------\n\n[MessageOrBuilder](https://cloud.google.com/java/docs/reference/protobuf/latest/com.google.protobuf.MessageOrBuilder.html)\n\nMethods\n-------\n\n### getCloudSqlId()\n\n public abstract String getCloudSqlId()\n\nIf the source is a Cloud SQL database, use this field to\nprovide the Cloud SQL instance ID of the source.\n\n`string cloud_sql_id = 7;`\n\n### getCloudSqlIdBytes()\n\n public abstract ByteString getCloudSqlIdBytes()\n\nIf the source is a Cloud SQL database, use this field to\nprovide the Cloud SQL instance ID of the source.\n\n`string cloud_sql_id = 7;`\n\n### getHost()\n\n public abstract String getHost()\n\nRequired. The IP or hostname of the source MySQL database.\n\n`string host = 1;`\n\n### getHostBytes()\n\n public abstract ByteString getHostBytes()\n\nRequired. The IP or hostname of the source MySQL database.\n\n`string host = 1;`\n\n### getPasswordSet()\n\n public abstract boolean getPasswordSet()\n\nOutput only. Indicates If this connection profile password is stored.\n\n`bool password_set = 5;`\n\n### getPort()\n\n public abstract int getPort()\n\nRequired. The network port of the source MySQL database.\n\n`int32 port = 2;`\n\n### getSsl()\n\n public abstract SslConfig getSsl()\n\nSSL configuration for the destination to connect to the source database.\n\n`.google.events.cloud.clouddms.v1.SslConfig ssl = 6;`\n\n### getSslOrBuilder()\n\n public abstract SslConfigOrBuilder getSslOrBuilder()\n\nSSL configuration for the destination to connect to the source database.\n\n`.google.events.cloud.clouddms.v1.SslConfig ssl = 6;`\n\n### getUsername()\n\n public abstract String getUsername()\n\nRequired. The username that Database Migration Service will use to connect\nto the database. The value is encrypted when stored in Database Migration\nService.\n\n`string username = 3;`\n\n### getUsernameBytes()\n\n public abstract ByteString getUsernameBytes()\n\nRequired. The username that Database Migration Service will use to connect\nto the database. The value is encrypted when stored in Database Migration\nService.\n\n`string username = 3;`\n\n### hasSsl()\n\n public abstract boolean hasSsl()\n\nSSL configuration for the destination to connect to the source database.\n\n`.google.events.cloud.clouddms.v1.SslConfig ssl = 6;`"]]