Class 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 type google.cloud.datastream.v1.MysqlSslConfig
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • clear

        public MysqlSslConfig.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • getDefaultInstanceForType

        public MysqlSslConfig getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public MysqlSslConfig build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public MysqlSslConfig buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • clone

        public MysqlSslConfig.Builder clone()
        Specified by:
        clone in interface com.google.protobuf.Message.Builder
        Specified by:
        clone in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clone in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • setField

        public MysqlSslConfig.Builder setField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                               Object value)
        Specified by:
        setField in interface com.google.protobuf.Message.Builder
        Overrides:
        setField in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • clearField

        public MysqlSslConfig.Builder clearField​(com.google.protobuf.Descriptors.FieldDescriptor field)
        Specified by:
        clearField in interface com.google.protobuf.Message.Builder
        Overrides:
        clearField in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • clearOneof

        public MysqlSslConfig.Builder clearOneof​(com.google.protobuf.Descriptors.OneofDescriptor oneof)
        Specified by:
        clearOneof in interface com.google.protobuf.Message.Builder
        Overrides:
        clearOneof in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • setRepeatedField

        public MysqlSslConfig.Builder setRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       int index,
                                                       Object value)
        Specified by:
        setRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        setRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • addRepeatedField

        public MysqlSslConfig.Builder addRepeatedField​(com.google.protobuf.Descriptors.FieldDescriptor field,
                                                       Object value)
        Specified by:
        addRepeatedField in interface com.google.protobuf.Message.Builder
        Overrides:
        addRepeatedField in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • mergeFrom

        public MysqlSslConfig.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<MysqlSslConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getClientKey in interface MysqlSslConfigOrBuilder
        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:
        getClientKeyBytes in interface MysqlSslConfigOrBuilder
        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:
        getClientKeySet in interface MysqlSslConfigOrBuilder
        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:
        getClientCertificate in interface MysqlSslConfigOrBuilder
        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:
        getClientCertificateBytes in interface MysqlSslConfigOrBuilder
        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:
        getClientCertificateSet in interface MysqlSslConfigOrBuilder
        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:
        getCaCertificate in interface MysqlSslConfigOrBuilder
        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:
        getCaCertificateBytes in interface MysqlSslConfigOrBuilder
        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:
        getCaCertificateSet in interface MysqlSslConfigOrBuilder
        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:
        setUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        setUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>
      • mergeUnknownFields

        public final MysqlSslConfig.Builder mergeUnknownFields​(com.google.protobuf.UnknownFieldSet unknownFields)
        Specified by:
        mergeUnknownFields in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeUnknownFields in class com.google.protobuf.GeneratedMessageV3.Builder<MysqlSslConfig.Builder>