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.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(MySqlConnectionProfile other)
MySqlConnectionProfile.Builder
mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
MySqlConnectionProfile.Builder
mergeFrom(com.google.protobuf.Message 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 value)
SSL configuration for the destination to connect to the source database.MySqlConnectionProfile.Builder
setSsl(SslConfig.Builder builderForValue)
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.-
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:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
clear
public MySqlConnectionProfile.Builder clear()
- Specified by:
clear
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clear
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clear
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.Message.Builder
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.MessageOrBuilder
- Overrides:
getDescriptorForType
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
getDefaultInstanceForType
public MySqlConnectionProfile getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
build
public MySqlConnectionProfile build()
- Specified by:
build
in interfacecom.google.protobuf.Message.Builder
- Specified by:
build
in interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MySqlConnectionProfile buildPartial()
- Specified by:
buildPartial
in interfacecom.google.protobuf.Message.Builder
- Specified by:
buildPartial
in interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MySqlConnectionProfile.Builder clone()
- Specified by:
clone
in interfacecom.google.protobuf.Message.Builder
- Specified by:
clone
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
clone
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
setField
public MySqlConnectionProfile.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
setField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
clearField
public MySqlConnectionProfile.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
clearOneof
public MySqlConnectionProfile.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneof
in interfacecom.google.protobuf.Message.Builder
- Overrides:
clearOneof
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
setRepeatedField
public MySqlConnectionProfile.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)
- Specified by:
setRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
addRepeatedField
public MySqlConnectionProfile.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)
- Specified by:
addRepeatedField
in interfacecom.google.protobuf.Message.Builder
- Overrides:
addRepeatedField
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
mergeFrom
public MySqlConnectionProfile.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeFrom
in classcom.google.protobuf.AbstractMessage.Builder<MySqlConnectionProfile.Builder>
-
mergeFrom
public MySqlConnectionProfile.Builder mergeFrom(MySqlConnectionProfile other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in 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:
mergeFrom
in interfacecom.google.protobuf.Message.Builder
- Specified by:
mergeFrom
in interfacecom.google.protobuf.MessageLite.Builder
- Overrides:
mergeFrom
in 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:
getHost
in 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:
getHostBytes
in 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:
getPort
in 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:
getUsername
in 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:
getUsernameBytes
in 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:
getPassword
in 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:
getPasswordBytes
in 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:
getPasswordSet
in 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:
hasSsl
in 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:
getSsl
in 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:
getSslOrBuilder
in 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:
getCloudSqlId
in 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:
getCloudSqlIdBytes
in 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:
setUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
setUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
mergeUnknownFields
public final MySqlConnectionProfile.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFields
in interfacecom.google.protobuf.Message.Builder
- Overrides:
mergeUnknownFields
in classcom.google.protobuf.GeneratedMessageV3.Builder<MySqlConnectionProfile.Builder>
-
-