public static final class MySqlConnectionProfile.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder> implements MySqlConnectionProfileOrBuilder
Specifies connection parameters required specifically for MySQL databases.Protobuf type
google.cloud.clouddms.v1.MySqlConnectionProfile| Modifier and Type | Method and Description |
|---|---|
MySqlConnectionProfile.Builder |
addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MySqlConnectionProfile |
build() |
MySqlConnectionProfile |
buildPartial() |
MySqlConnectionProfile.Builder |
clear() |
MySqlConnectionProfile.Builder |
clearCloudSqlId()
If the source is a Cloud SQL database, use this field to
provide the Cloud SQL instance ID of the source.
|
MySqlConnectionProfile.Builder |
clearField(com.google.protobuf.Descriptors.FieldDescriptor field) |
MySqlConnectionProfile.Builder |
clearHost()
Required.
|
MySqlConnectionProfile.Builder |
clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) |
MySqlConnectionProfile.Builder |
clearPassword()
Required.
|
MySqlConnectionProfile.Builder |
clearPasswordSet()
Output only.
|
MySqlConnectionProfile.Builder |
clearPort()
Required.
|
MySqlConnectionProfile.Builder |
clearSsl()
SSL configuration for the destination to connect to the source database.
|
MySqlConnectionProfile.Builder |
clearUsername()
Required.
|
MySqlConnectionProfile.Builder |
clone() |
String |
getCloudSqlId()
If the source is a Cloud SQL database, use this field to
provide the Cloud SQL instance ID of the source.
|
com.google.protobuf.ByteString |
getCloudSqlIdBytes()
If the source is a Cloud SQL database, use this field to
provide the Cloud SQL instance ID of the source.
|
MySqlConnectionProfile |
getDefaultInstanceForType() |
static com.google.protobuf.Descriptors.Descriptor |
getDescriptor() |
com.google.protobuf.Descriptors.Descriptor |
getDescriptorForType() |
String |
getHost()
Required.
|
com.google.protobuf.ByteString |
getHostBytes()
Required.
|
String |
getPassword()
Required.
|
com.google.protobuf.ByteString |
getPasswordBytes()
Required.
|
boolean |
getPasswordSet()
Output only.
|
int |
getPort()
Required.
|
SslConfig |
getSsl()
SSL configuration for the destination to connect to the source database.
|
SslConfig.Builder |
getSslBuilder()
SSL configuration for the destination to connect to the source database.
|
SslConfigOrBuilder |
getSslOrBuilder()
SSL configuration for the destination to connect to the source database.
|
String |
getUsername()
Required.
|
com.google.protobuf.ByteString |
getUsernameBytes()
Required.
|
boolean |
hasSsl()
SSL configuration for the destination to connect to the source database.
|
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable |
internalGetFieldAccessorTable() |
boolean |
isInitialized() |
MySqlConnectionProfile.Builder |
mergeFrom(com.google.protobuf.CodedInputStream input,
com.google.protobuf.ExtensionRegistryLite extensionRegistry) |
MySqlConnectionProfile.Builder |
mergeFrom(com.google.protobuf.Message other) |
MySqlConnectionProfile.Builder |
mergeFrom(MySqlConnectionProfile other) |
MySqlConnectionProfile.Builder |
mergeSsl(SslConfig value)
SSL configuration for the destination to connect to the source database.
|
MySqlConnectionProfile.Builder |
mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
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.
|
MySqlConnectionProfile.Builder |
setCloudSqlIdBytes(com.google.protobuf.ByteString value)
If the source is a Cloud SQL database, use this field to
provide the Cloud SQL instance ID of the source.
|
MySqlConnectionProfile.Builder |
setField(com.google.protobuf.Descriptors.FieldDescriptor field,
Object value) |
MySqlConnectionProfile.Builder |
setHost(String value)
Required.
|
MySqlConnectionProfile.Builder |
setHostBytes(com.google.protobuf.ByteString value)
Required.
|
MySqlConnectionProfile.Builder |
setPassword(String value)
Required.
|
MySqlConnectionProfile.Builder |
setPasswordBytes(com.google.protobuf.ByteString value)
Required.
|
MySqlConnectionProfile.Builder |
setPasswordSet(boolean value)
Output only.
|
MySqlConnectionProfile.Builder |
setPort(int value)
Required.
|
MySqlConnectionProfile.Builder |
setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field,
int index,
Object value) |
MySqlConnectionProfile.Builder |
setSsl(SslConfig.Builder builderForValue)
SSL configuration for the destination to connect to the source database.
|
MySqlConnectionProfile.Builder |
setSsl(SslConfig value)
SSL configuration for the destination to connect to the source database.
|
MySqlConnectionProfile.Builder |
setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) |
MySqlConnectionProfile.Builder |
setUsername(String value)
Required.
|
MySqlConnectionProfile.Builder |
setUsernameBytes(com.google.protobuf.ByteString value)
Required.
|
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringaddAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, newUninitializedMessageExceptionequals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitpublic static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder clear()
clear in interface com.google.protobuf.Message.Builderclear in interface com.google.protobuf.MessageLite.Builderclear in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.Message.BuildergetDescriptorForType in interface com.google.protobuf.MessageOrBuildergetDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile getDefaultInstanceForType()
getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuildergetDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilderpublic MySqlConnectionProfile build()
build in interface com.google.protobuf.Message.Builderbuild in interface com.google.protobuf.MessageLite.Builderpublic MySqlConnectionProfile buildPartial()
buildPartial in interface com.google.protobuf.Message.BuilderbuildPartial in interface com.google.protobuf.MessageLite.Builderpublic MySqlConnectionProfile.Builder clone()
clone in interface com.google.protobuf.Message.Builderclone in interface com.google.protobuf.MessageLite.Builderclone in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
setField in interface com.google.protobuf.Message.BuildersetField in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
clearField in interface com.google.protobuf.Message.BuilderclearField in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
clearOneof in interface com.google.protobuf.Message.BuilderclearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
setRepeatedField in interface com.google.protobuf.Message.BuildersetRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
addRepeatedField in interface com.google.protobuf.Message.BuilderaddRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder mergeFrom(com.google.protobuf.Message other)
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder mergeFrom(MySqlConnectionProfile other)
public final boolean isInitialized()
isInitialized in interface com.google.protobuf.MessageLiteOrBuilderisInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public MySqlConnectionProfile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
mergeFrom in interface com.google.protobuf.Message.BuildermergeFrom in interface com.google.protobuf.MessageLite.BuildermergeFrom in class com.google.protobuf.AbstractMessage.Builder<MySqlConnectionProfile.Builder>IOExceptionpublic String getHost()
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];getHost in interface MySqlConnectionProfileOrBuilderpublic com.google.protobuf.ByteString getHostBytes()
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];getHostBytes in interface MySqlConnectionProfileOrBuilderpublic MySqlConnectionProfile.Builder setHost(String value)
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];value - The host to set.public MySqlConnectionProfile.Builder clearHost()
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];public MySqlConnectionProfile.Builder setHostBytes(com.google.protobuf.ByteString value)
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];value - The bytes for host to set.public int getPort()
Required. The network port of the source MySQL database.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];getPort in interface MySqlConnectionProfileOrBuilderpublic MySqlConnectionProfile.Builder setPort(int value)
Required. The network port of the source MySQL database.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];value - The port to set.public MySqlConnectionProfile.Builder clearPort()
Required. The network port of the source MySQL database.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];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];getUsername in interface MySqlConnectionProfileOrBuilderpublic com.google.protobuf.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];getUsernameBytes in interface MySqlConnectionProfileOrBuilderpublic 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];value - The username to set.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];public MySqlConnectionProfile.Builder setUsernameBytes(com.google.protobuf.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];value - The bytes for username to set.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];
getPassword in interface MySqlConnectionProfileOrBuilderpublic com.google.protobuf.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];
getPasswordBytes in interface MySqlConnectionProfileOrBuilderpublic 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];
value - The password to set.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];
public MySqlConnectionProfile.Builder setPasswordBytes(com.google.protobuf.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];
value - The bytes for password to set.public boolean getPasswordSet()
Output only. Indicates If this connection profile password is stored.
bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];getPasswordSet in interface MySqlConnectionProfileOrBuilderpublic 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];value - The passwordSet to set.public MySqlConnectionProfile.Builder clearPasswordSet()
Output only. Indicates If this connection profile password is stored.
bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];public boolean hasSsl()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;hasSsl in interface MySqlConnectionProfileOrBuilderpublic SslConfig getSsl()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;getSsl in interface MySqlConnectionProfileOrBuilderpublic MySqlConnectionProfile.Builder setSsl(SslConfig value)
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;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;public MySqlConnectionProfile.Builder mergeSsl(SslConfig value)
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;public MySqlConnectionProfile.Builder clearSsl()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;public SslConfig.Builder getSslBuilder()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;public SslConfigOrBuilder getSslOrBuilder()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;getSslOrBuilder in interface MySqlConnectionProfileOrBuilderpublic 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;getCloudSqlId in interface MySqlConnectionProfileOrBuilderpublic com.google.protobuf.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;getCloudSqlIdBytes in interface MySqlConnectionProfileOrBuilderpublic 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;value - The cloudSqlId to set.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;public MySqlConnectionProfile.Builder setCloudSqlIdBytes(com.google.protobuf.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;value - The bytes for cloudSqlId to set.public final MySqlConnectionProfile.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
setUnknownFields in interface com.google.protobuf.Message.BuildersetUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>public final MySqlConnectionProfile.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
mergeUnknownFields in interface com.google.protobuf.Message.BuildermergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>Copyright © 2024 Google LLC. All rights reserved.