Package com.google.cloud.clouddms.v1
Class MySqlConnectionProfile.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
- com.google.cloud.clouddms.v1.MySqlConnectionProfile.Builder
-
- All Implemented Interfaces:
MySqlConnectionProfileOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MySqlConnectionProfile
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 typegoogle.cloud.clouddms.v1.MySqlConnectionProfile
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MySqlConnectionProfile.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MySqlConnectionProfilebuild()MySqlConnectionProfilebuildPartial()MySqlConnectionProfile.Builderclear()MySqlConnectionProfile.BuilderclearCloudSqlId()If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.MySqlConnectionProfile.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MySqlConnectionProfile.BuilderclearHost()Required.MySqlConnectionProfile.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MySqlConnectionProfile.BuilderclearPassword()Required.MySqlConnectionProfile.BuilderclearPasswordSet()Output only.MySqlConnectionProfile.BuilderclearPort()Required.MySqlConnectionProfile.BuilderclearSsl()SSL configuration for the destination to connect to the source database.MySqlConnectionProfile.BuilderclearUsername()Required.MySqlConnectionProfile.Builderclone()StringgetCloudSqlId()If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.com.google.protobuf.ByteStringgetCloudSqlIdBytes()If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.MySqlConnectionProfilegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()StringgetHost()Required.com.google.protobuf.ByteStringgetHostBytes()Required.StringgetPassword()Required.com.google.protobuf.ByteStringgetPasswordBytes()Required.booleangetPasswordSet()Output only.intgetPort()Required.SslConfiggetSsl()SSL configuration for the destination to connect to the source database.SslConfig.BuildergetSslBuilder()SSL configuration for the destination to connect to the source database.SslConfigOrBuildergetSslOrBuilder()SSL configuration for the destination to connect to the source database.StringgetUsername()Required.com.google.protobuf.ByteStringgetUsernameBytes()Required.booleanhasSsl()SSL configuration for the destination to connect to the source database.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MySqlConnectionProfile.BuildermergeFrom(MySqlConnectionProfile other)MySqlConnectionProfile.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MySqlConnectionProfile.BuildermergeFrom(com.google.protobuf.Message other)MySqlConnectionProfile.BuildermergeSsl(SslConfig value)SSL configuration for the destination to connect to the source database.MySqlConnectionProfile.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MySqlConnectionProfile.BuildersetCloudSqlId(String value)If the source is a Cloud SQL database, use this field to provide the Cloud SQL instance ID of the source.MySqlConnectionProfile.BuildersetCloudSqlIdBytes(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.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MySqlConnectionProfile.BuildersetHost(String value)Required.MySqlConnectionProfile.BuildersetHostBytes(com.google.protobuf.ByteString value)Required.MySqlConnectionProfile.BuildersetPassword(String value)Required.MySqlConnectionProfile.BuildersetPasswordBytes(com.google.protobuf.ByteString value)Required.MySqlConnectionProfile.BuildersetPasswordSet(boolean value)Output only.MySqlConnectionProfile.BuildersetPort(int value)Required.MySqlConnectionProfile.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MySqlConnectionProfile.BuildersetSsl(SslConfig value)SSL configuration for the destination to connect to the source database.MySqlConnectionProfile.BuildersetSsl(SslConfig.Builder builderForValue)SSL configuration for the destination to connect to the source database.MySqlConnectionProfile.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MySqlConnectionProfile.BuildersetUsername(String value)Required.MySqlConnectionProfile.BuildersetUsernameBytes(com.google.protobuf.ByteString value)Required.-
Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMutableMapField, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
Method Detail
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
clear
public MySqlConnectionProfile.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
getDefaultInstanceForType
public MySqlConnectionProfile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MySqlConnectionProfile build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MySqlConnectionProfile buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MySqlConnectionProfile.Builder clone()
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
setField
public MySqlConnectionProfile.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
clearField
public MySqlConnectionProfile.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
clearOneof
public MySqlConnectionProfile.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
setRepeatedField
public MySqlConnectionProfile.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
addRepeatedField
public MySqlConnectionProfile.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
mergeFrom
public MySqlConnectionProfile.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MySqlConnectionProfile.Builder>
-
mergeFrom
public MySqlConnectionProfile.Builder mergeFrom(MySqlConnectionProfile other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
mergeFrom
public MySqlConnectionProfile.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MySqlConnectionProfile.Builder>- Throws:
IOException
-
getHost
public String getHost()
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getHostin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The host.
-
getHostBytes
public com.google.protobuf.ByteString getHostBytes()
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getHostBytesin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The bytes for host.
-
setHost
public MySqlConnectionProfile.Builder setHost(String value)
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The host to set.- Returns:
- This builder for chaining.
-
clearHost
public MySqlConnectionProfile.Builder clearHost()
Required. The IP or hostname of the source MySQL database.
string host = 1 [(.google.api.field_behavior) = REQUIRED];- Returns:
- This builder for chaining.
-
setHostBytes
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];- Parameters:
value- The bytes for host to set.- Returns:
- This builder for chaining.
-
getPort
public int getPort()
Required. The network port of the source MySQL database.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];- Specified by:
getPortin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The port.
-
setPort
public MySqlConnectionProfile.Builder setPort(int value)
Required. The network port of the source MySQL database.
int32 port = 2 [(.google.api.field_behavior) = REQUIRED];- Parameters:
value- The port to set.- Returns:
- 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:
- This builder for chaining.
-
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];- Specified by:
getUsernamein interfaceMySqlConnectionProfileOrBuilder- Returns:
- The username.
-
getUsernameBytes
public 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];- Specified by:
getUsernameBytesin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The bytes for username.
-
setUsername
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];- Parameters:
value- The username to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setUsernameBytes
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];- Parameters:
value- The bytes for username to set.- Returns:
- This builder for chaining.
-
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];- Specified by:
getPasswordin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The password.
-
getPasswordBytes
public 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];- Specified by:
getPasswordBytesin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The bytes for password.
-
setPassword
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];- Parameters:
value- The password to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setPasswordBytes
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];- Parameters:
value- The bytes for password to set.- Returns:
- This builder for chaining.
-
getPasswordSet
public boolean getPasswordSet()
Output only. Indicates If this connection profile password is stored.
bool password_set = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getPasswordSetin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The passwordSet.
-
setPasswordSet
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];- Parameters:
value- The passwordSet to set.- Returns:
- 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:
- This builder for chaining.
-
hasSsl
public boolean hasSsl()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;- Specified by:
hasSslin interfaceMySqlConnectionProfileOrBuilder- Returns:
- Whether the ssl field is set.
-
getSsl
public SslConfig getSsl()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;- Specified by:
getSslin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The ssl.
-
setSsl
public MySqlConnectionProfile.Builder setSsl(SslConfig value)
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;
-
setSsl
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;
-
mergeSsl
public MySqlConnectionProfile.Builder mergeSsl(SslConfig value)
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;
-
clearSsl
public MySqlConnectionProfile.Builder clearSsl()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;
-
getSslBuilder
public SslConfig.Builder getSslBuilder()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;
-
getSslOrBuilder
public SslConfigOrBuilder getSslOrBuilder()
SSL configuration for the destination to connect to the source database.
.google.cloud.clouddms.v1.SslConfig ssl = 6;- Specified by:
getSslOrBuilderin interfaceMySqlConnectionProfileOrBuilder
-
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;- Specified by:
getCloudSqlIdin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The cloudSqlId.
-
getCloudSqlIdBytes
public 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;- Specified by:
getCloudSqlIdBytesin interfaceMySqlConnectionProfileOrBuilder- Returns:
- The bytes for cloudSqlId.
-
setCloudSqlId
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;- Parameters:
value- The cloudSqlId to set.- Returns:
- This builder for chaining.
-
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:
- This builder for chaining.
-
setCloudSqlIdBytes
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;- Parameters:
value- The bytes for cloudSqlId to set.- Returns:
- This builder for chaining.
-
setUnknownFields
public final MySqlConnectionProfile.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
mergeUnknownFields
public final MySqlConnectionProfile.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
-