Class SslConfig.Builder

  • All Implemented Interfaces:
    SslConfigOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
    Enclosing class:
    SslConfig

    public static final class SslConfig.Builder
    extends com.google.protobuf.GeneratedMessageV3.Builder<SslConfig.Builder>
    implements SslConfigOrBuilder
     SSL configuration information.
     
    Protobuf type google.cloud.clouddms.v1.SslConfig
    • 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<SslConfig.Builder>
      • clear

        public SslConfig.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<SslConfig.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<SslConfig.Builder>
      • getDefaultInstanceForType

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

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

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

        public SslConfig.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<SslConfig.Builder>
      • setField

        public SslConfig.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<SslConfig.Builder>
      • clearField

        public SslConfig.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<SslConfig.Builder>
      • clearOneof

        public SslConfig.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<SslConfig.Builder>
      • setRepeatedField

        public SslConfig.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<SslConfig.Builder>
      • addRepeatedField

        public SslConfig.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<SslConfig.Builder>
      • mergeFrom

        public SslConfig.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<SslConfig.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3.Builder<SslConfig.Builder>
      • mergeFrom

        public SslConfig.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<SslConfig.Builder>
        Throws:
        IOException
      • getTypeValue

        public int getTypeValue()
         Output only. The ssl config type according to 'client_key',
         'client_certificate' and 'ca_certificate'.
         
        .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getTypeValue in interface SslConfigOrBuilder
        Returns:
        The enum numeric value on the wire for type.
      • setTypeValue

        public SslConfig.Builder setTypeValue​(int value)
         Output only. The ssl config type according to 'client_key',
         'client_certificate' and 'ca_certificate'.
         
        .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The enum numeric value on the wire for type to set.
        Returns:
        This builder for chaining.
      • getType

        public SslConfig.SslType getType()
         Output only. The ssl config type according to 'client_key',
         'client_certificate' and 'ca_certificate'.
         
        .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Specified by:
        getType in interface SslConfigOrBuilder
        Returns:
        The type.
      • setType

        public SslConfig.Builder setType​(SslConfig.SslType value)
         Output only. The ssl config type according to 'client_key',
         'client_certificate' and 'ca_certificate'.
         
        .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Parameters:
        value - The type to set.
        Returns:
        This builder for chaining.
      • clearType

        public SslConfig.Builder clearType()
         Output only. The ssl config type according to 'client_key',
         'client_certificate' and 'ca_certificate'.
         
        .google.cloud.clouddms.v1.SslConfig.SslType type = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
        Returns:
        This builder for chaining.
      • getClientKey

        public String getClientKey()
         Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
         associated with the Client Certificate. If this field is used then the
         'client_certificate' field is mandatory.
         
        string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getClientKey in interface SslConfigOrBuilder
        Returns:
        The clientKey.
      • getClientKeyBytes

        public com.google.protobuf.ByteString getClientKeyBytes()
         Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
         associated with the Client Certificate. If this field is used then the
         'client_certificate' field is mandatory.
         
        string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getClientKeyBytes in interface SslConfigOrBuilder
        Returns:
        The bytes for clientKey.
      • setClientKey

        public SslConfig.Builder setClientKey​(String value)
         Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
         associated with the Client Certificate. If this field is used then the
         'client_certificate' field is mandatory.
         
        string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The clientKey to set.
        Returns:
        This builder for chaining.
      • clearClientKey

        public SslConfig.Builder clearClientKey()
         Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
         associated with the Client Certificate. If this field is used then the
         'client_certificate' field is mandatory.
         
        string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
        Returns:
        This builder for chaining.
      • setClientKeyBytes

        public SslConfig.Builder setClientKeyBytes​(com.google.protobuf.ByteString value)
         Input only. The unencrypted PKCS#1 or PKCS#8 PEM-encoded private key
         associated with the Client Certificate. If this field is used then the
         'client_certificate' field is mandatory.
         
        string client_key = 2 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The bytes for clientKey to set.
        Returns:
        This builder for chaining.
      • getClientCertificate

        public String getClientCertificate()
         Input only. The x509 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' field is mandatory.
         
        string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getClientCertificate in interface SslConfigOrBuilder
        Returns:
        The clientCertificate.
      • getClientCertificateBytes

        public com.google.protobuf.ByteString getClientCertificateBytes()
         Input only. The x509 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' field is mandatory.
         
        string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
        Specified by:
        getClientCertificateBytes in interface SslConfigOrBuilder
        Returns:
        The bytes for clientCertificate.
      • setClientCertificate

        public SslConfig.Builder setClientCertificate​(String value)
         Input only. The x509 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' field is mandatory.
         
        string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The clientCertificate to set.
        Returns:
        This builder for chaining.
      • clearClientCertificate

        public SslConfig.Builder clearClientCertificate()
         Input only. The x509 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' field is mandatory.
         
        string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
        Returns:
        This builder for chaining.
      • setClientCertificateBytes

        public SslConfig.Builder setClientCertificateBytes​(com.google.protobuf.ByteString value)
         Input only. The x509 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' field is mandatory.
         
        string client_certificate = 3 [(.google.api.field_behavior) = INPUT_ONLY];
        Parameters:
        value - The bytes for clientCertificate to set.
        Returns:
        This builder for chaining.
      • getCaCertificate

        public String getCaCertificate()
         Required. Input only. The x509 PEM-encoded certificate of the CA that
         signed the source database server's certificate. The replica will use this
         certificate to verify it's connecting to the right host.
         
        string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCaCertificate in interface SslConfigOrBuilder
        Returns:
        The caCertificate.
      • getCaCertificateBytes

        public com.google.protobuf.ByteString getCaCertificateBytes()
         Required. Input only. The x509 PEM-encoded certificate of the CA that
         signed the source database server's certificate. The replica will use this
         certificate to verify it's connecting to the right host.
         
        string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Specified by:
        getCaCertificateBytes in interface SslConfigOrBuilder
        Returns:
        The bytes for caCertificate.
      • setCaCertificate

        public SslConfig.Builder setCaCertificate​(String value)
         Required. Input only. The x509 PEM-encoded certificate of the CA that
         signed the source database server's certificate. The replica will use this
         certificate to verify it's connecting to the right host.
         
        string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The caCertificate to set.
        Returns:
        This builder for chaining.
      • clearCaCertificate

        public SslConfig.Builder clearCaCertificate()
         Required. Input only. The x509 PEM-encoded certificate of the CA that
         signed the source database server's certificate. The replica will use this
         certificate to verify it's connecting to the right host.
         
        string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Returns:
        This builder for chaining.
      • setCaCertificateBytes

        public SslConfig.Builder setCaCertificateBytes​(com.google.protobuf.ByteString value)
         Required. Input only. The x509 PEM-encoded certificate of the CA that
         signed the source database server's certificate. The replica will use this
         certificate to verify it's connecting to the right host.
         
        string ca_certificate = 4 [(.google.api.field_behavior) = INPUT_ONLY, (.google.api.field_behavior) = REQUIRED];
        Parameters:
        value - The bytes for caCertificate to set.
        Returns:
        This builder for chaining.
      • setUnknownFields

        public final SslConfig.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<SslConfig.Builder>
      • mergeUnknownFields

        public final SslConfig.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<SslConfig.Builder>