Package com.google.cloud.datastream.v1
Class MysqlSslConfig.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
- com.google.cloud.datastream.v1.MysqlSslConfig.Builder
-
- All Implemented Interfaces:
MysqlSslConfigOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MysqlSslConfig
public static final class MysqlSslConfig.Builder extends com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder> implements MysqlSslConfigOrBuilder
MySQL SSL configuration information.
Protobuf typegoogle.cloud.datastream.v1.MysqlSslConfig
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description MysqlSslConfig.BuilderaddRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MysqlSslConfigbuild()MysqlSslConfigbuildPartial()MysqlSslConfig.Builderclear()MysqlSslConfig.BuilderclearCaCertificate()Input only.MysqlSslConfig.BuilderclearCaCertificateSet()Output only.MysqlSslConfig.BuilderclearClientCertificate()Input only.MysqlSslConfig.BuilderclearClientCertificateSet()Output only.MysqlSslConfig.BuilderclearClientKey()Input only.MysqlSslConfig.BuilderclearClientKeySet()Output only.MysqlSslConfig.BuilderclearField(com.google.protobuf.Descriptors.FieldDescriptor field)MysqlSslConfig.BuilderclearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)MysqlSslConfig.Builderclone()StringgetCaCertificate()Input only.com.google.protobuf.ByteStringgetCaCertificateBytes()Input only.booleangetCaCertificateSet()Output only.StringgetClientCertificate()Input only.com.google.protobuf.ByteStringgetClientCertificateBytes()Input only.booleangetClientCertificateSet()Output only.StringgetClientKey()Input only.com.google.protobuf.ByteStringgetClientKeyBytes()Input only.booleangetClientKeySet()Output only.MysqlSslConfiggetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()MysqlSslConfig.BuildermergeFrom(MysqlSslConfig other)MysqlSslConfig.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)MysqlSslConfig.BuildermergeFrom(com.google.protobuf.Message other)MysqlSslConfig.BuildermergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)MysqlSslConfig.BuildersetCaCertificate(String value)Input only.MysqlSslConfig.BuildersetCaCertificateBytes(com.google.protobuf.ByteString value)Input only.MysqlSslConfig.BuildersetCaCertificateSet(boolean value)Output only.MysqlSslConfig.BuildersetClientCertificate(String value)Input only.MysqlSslConfig.BuildersetClientCertificateBytes(com.google.protobuf.ByteString value)Input only.MysqlSslConfig.BuildersetClientCertificateSet(boolean value)Output only.MysqlSslConfig.BuildersetClientKey(String value)Input only.MysqlSslConfig.BuildersetClientKeyBytes(com.google.protobuf.ByteString value)Input only.MysqlSslConfig.BuildersetClientKeySet(boolean value)Output only.MysqlSslConfig.BuildersetField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value)MysqlSslConfig.BuildersetRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value)MysqlSslConfig.BuildersetUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)-
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<MysqlSslConfig.Builder>
-
clear
public MysqlSslConfig.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<MysqlSslConfig.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<MysqlSslConfig.Builder>
-
getDefaultInstanceForType
public MysqlSslConfig getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public MysqlSslConfig build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public MysqlSslConfig buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
setField
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
clearField
public MysqlSslConfig.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field)
- Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
clearOneof
public MysqlSslConfig.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof)
- Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
setRepeatedField
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
addRepeatedField
public MysqlSslConfig.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<MysqlSslConfig.Builder>
-
mergeFrom
public MysqlSslConfig.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MysqlSslConfig.Builder>
-
mergeFrom
public MysqlSslConfig.Builder mergeFrom(MysqlSslConfig other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
mergeFrom
public MysqlSslConfig.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<MysqlSslConfig.Builder>- Throws:
IOException
-
getClientKey
public String getClientKey()
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getClientKeyin interfaceMysqlSslConfigOrBuilder- Returns:
- The clientKey.
-
getClientKeyBytes
public com.google.protobuf.ByteString getClientKeyBytes()
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getClientKeyBytesin interfaceMysqlSslConfigOrBuilder- Returns:
- The bytes for clientKey.
-
setClientKey
public MysqlSslConfig.Builder setClientKey(String value)
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The clientKey to set.- Returns:
- This builder for chaining.
-
clearClientKey
public MysqlSslConfig.Builder clearClientKey()
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- This builder for chaining.
-
setClientKeyBytes
public MysqlSslConfig.Builder setClientKeyBytes(com.google.protobuf.ByteString value)
Input only. PEM-encoded private key associated with the Client Certificate. If this field is used then the 'client_certificate' and the 'ca_certificate' fields are mandatory.
string client_key = 1 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The bytes for clientKey to set.- Returns:
- This builder for chaining.
-
getClientKeySet
public boolean getClientKeySet()
Output only. Indicates whether the client_key field is set.
bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClientKeySetin interfaceMysqlSslConfigOrBuilder- Returns:
- The clientKeySet.
-
setClientKeySet
public MysqlSslConfig.Builder setClientKeySet(boolean value)
Output only. Indicates whether the client_key field is set.
bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The clientKeySet to set.- Returns:
- This builder for chaining.
-
clearClientKeySet
public MysqlSslConfig.Builder clearClientKeySet()
Output only. Indicates whether the client_key field is set.
bool client_key_set = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getClientCertificate
public String getClientCertificate()
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getClientCertificatein interfaceMysqlSslConfigOrBuilder- Returns:
- The clientCertificate.
-
getClientCertificateBytes
public com.google.protobuf.ByteString getClientCertificateBytes()
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getClientCertificateBytesin interfaceMysqlSslConfigOrBuilder- Returns:
- The bytes for clientCertificate.
-
setClientCertificate
public MysqlSslConfig.Builder setClientCertificate(String value)
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The clientCertificate to set.- Returns:
- This builder for chaining.
-
clearClientCertificate
public MysqlSslConfig.Builder clearClientCertificate()
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- This builder for chaining.
-
setClientCertificateBytes
public MysqlSslConfig.Builder setClientCertificateBytes(com.google.protobuf.ByteString value)
Input only. PEM-encoded certificate that will be used by the replica to authenticate against the source database server. If this field is used then the 'client_key' and the 'ca_certificate' fields are mandatory.
string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The bytes for clientCertificate to set.- Returns:
- This builder for chaining.
-
getClientCertificateSet
public boolean getClientCertificateSet()
Output only. Indicates whether the client_certificate field is set.
bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getClientCertificateSetin interfaceMysqlSslConfigOrBuilder- Returns:
- The clientCertificateSet.
-
setClientCertificateSet
public MysqlSslConfig.Builder setClientCertificateSet(boolean value)
Output only. Indicates whether the client_certificate field is set.
bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The clientCertificateSet to set.- Returns:
- This builder for chaining.
-
clearClientCertificateSet
public MysqlSslConfig.Builder clearClientCertificateSet()
Output only. Indicates whether the client_certificate field is set.
bool client_certificate_set = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
getCaCertificate
public String getCaCertificate()
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getCaCertificatein interfaceMysqlSslConfigOrBuilder- Returns:
- The caCertificate.
-
getCaCertificateBytes
public com.google.protobuf.ByteString getCaCertificateBytes()
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];- Specified by:
getCaCertificateBytesin interfaceMysqlSslConfigOrBuilder- Returns:
- The bytes for caCertificate.
-
setCaCertificate
public MysqlSslConfig.Builder setCaCertificate(String value)
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The caCertificate to set.- Returns:
- This builder for chaining.
-
clearCaCertificate
public MysqlSslConfig.Builder clearCaCertificate()
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];- Returns:
- This builder for chaining.
-
setCaCertificateBytes
public MysqlSslConfig.Builder setCaCertificateBytes(com.google.protobuf.ByteString value)
Input only. PEM-encoded certificate of the CA that signed the source database server's certificate.
string ca_certificate = 5 [(.google.api.field_behavior) = INPUT_ONLY];- Parameters:
value- The bytes for caCertificate to set.- Returns:
- This builder for chaining.
-
getCaCertificateSet
public boolean getCaCertificateSet()
Output only. Indicates whether the ca_certificate field is set.
bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Specified by:
getCaCertificateSetin interfaceMysqlSslConfigOrBuilder- Returns:
- The caCertificateSet.
-
setCaCertificateSet
public MysqlSslConfig.Builder setCaCertificateSet(boolean value)
Output only. Indicates whether the ca_certificate field is set.
bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Parameters:
value- The caCertificateSet to set.- Returns:
- This builder for chaining.
-
clearCaCertificateSet
public MysqlSslConfig.Builder clearCaCertificateSet()
Output only. Indicates whether the ca_certificate field is set.
bool ca_certificate_set = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];- Returns:
- This builder for chaining.
-
setUnknownFields
public final MysqlSslConfig.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
mergeUnknownFields
public final MysqlSslConfig.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields)
- Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
-
-