Enum SslConfig.SslMode

  • All Implemented Interfaces:
    com.google.protobuf.Internal.EnumLite, com.google.protobuf.ProtocolMessageEnum, Serializable, Comparable<SslConfig.SslMode>
    Enclosing class:
    SslConfig

    public static enum SslConfig.SslMode
    extends Enum<SslConfig.SslMode>
    implements com.google.protobuf.ProtocolMessageEnum
     SSL mode options.
     
    Protobuf enum google.cloud.alloydb.v1beta.SslConfig.SslMode
    • Enum Constant Detail

      • SSL_MODE_UNSPECIFIED

        public static final SslConfig.SslMode SSL_MODE_UNSPECIFIED
         SSL mode not specified. Defaults to ENCRYPTED_ONLY.
         
        SSL_MODE_UNSPECIFIED = 0;
      • SSL_MODE_ALLOW

        @Deprecated
        public static final SslConfig.SslMode SSL_MODE_ALLOW
        Deprecated.
         SSL connections are optional. CA verification not enforced.
         
        SSL_MODE_ALLOW = 1 [deprecated = true];
      • SSL_MODE_REQUIRE

        @Deprecated
        public static final SslConfig.SslMode SSL_MODE_REQUIRE
        Deprecated.
         SSL connections are required. CA verification not enforced.
         Clients may use locally self-signed certificates (default psql client
         behavior).
         
        SSL_MODE_REQUIRE = 2 [deprecated = true];
      • SSL_MODE_VERIFY_CA

        @Deprecated
        public static final SslConfig.SslMode SSL_MODE_VERIFY_CA
        Deprecated.
         SSL connections are required. CA verification enforced.
         Clients must have certificates signed by a Cluster CA, e.g. via
         GenerateClientCertificate.
         
        SSL_MODE_VERIFY_CA = 3 [deprecated = true];
      • ALLOW_UNENCRYPTED_AND_ENCRYPTED

        public static final SslConfig.SslMode ALLOW_UNENCRYPTED_AND_ENCRYPTED
         SSL connections are optional. CA verification not enforced.
         
        ALLOW_UNENCRYPTED_AND_ENCRYPTED = 4;
      • ENCRYPTED_ONLY

        public static final SslConfig.SslMode ENCRYPTED_ONLY
         SSL connections are required. CA verification not enforced.
         
        ENCRYPTED_ONLY = 5;
    • Field Detail

      • SSL_MODE_UNSPECIFIED_VALUE

        public static final int SSL_MODE_UNSPECIFIED_VALUE
         SSL mode not specified. Defaults to ENCRYPTED_ONLY.
         
        SSL_MODE_UNSPECIFIED = 0;
        See Also:
        Constant Field Values
      • SSL_MODE_ALLOW_VALUE

        @Deprecated
        public static final int SSL_MODE_ALLOW_VALUE
        Deprecated.
         SSL connections are optional. CA verification not enforced.
         
        SSL_MODE_ALLOW = 1 [deprecated = true];
        See Also:
        Constant Field Values
      • SSL_MODE_REQUIRE_VALUE

        @Deprecated
        public static final int SSL_MODE_REQUIRE_VALUE
        Deprecated.
         SSL connections are required. CA verification not enforced.
         Clients may use locally self-signed certificates (default psql client
         behavior).
         
        SSL_MODE_REQUIRE = 2 [deprecated = true];
        See Also:
        Constant Field Values
      • SSL_MODE_VERIFY_CA_VALUE

        @Deprecated
        public static final int SSL_MODE_VERIFY_CA_VALUE
        Deprecated.
         SSL connections are required. CA verification enforced.
         Clients must have certificates signed by a Cluster CA, e.g. via
         GenerateClientCertificate.
         
        SSL_MODE_VERIFY_CA = 3 [deprecated = true];
        See Also:
        Constant Field Values
      • ALLOW_UNENCRYPTED_AND_ENCRYPTED_VALUE

        public static final int ALLOW_UNENCRYPTED_AND_ENCRYPTED_VALUE
         SSL connections are optional. CA verification not enforced.
         
        ALLOW_UNENCRYPTED_AND_ENCRYPTED = 4;
        See Also:
        Constant Field Values
      • ENCRYPTED_ONLY_VALUE

        public static final int ENCRYPTED_ONLY_VALUE
         SSL connections are required. CA verification not enforced.
         
        ENCRYPTED_ONLY = 5;
        See Also:
        Constant Field Values
    • Method Detail

      • values

        public static SslConfig.SslMode[] values()
        Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:
        for (SslConfig.SslMode c : SslConfig.SslMode.values())
            System.out.println(c);
        
        Returns:
        an array containing the constants of this enum type, in the order they are declared
      • valueOf

        public static SslConfig.SslMode valueOf​(String name)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        name - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • getNumber

        public final int getNumber()
        Specified by:
        getNumber in interface com.google.protobuf.Internal.EnumLite
        Specified by:
        getNumber in interface com.google.protobuf.ProtocolMessageEnum
      • valueOf

        @Deprecated
        public static SslConfig.SslMode valueOf​(int value)
        Deprecated.
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        value - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null
      • forNumber

        public static SslConfig.SslMode forNumber​(int value)
        Parameters:
        value - The numeric wire value of the corresponding enum entry.
        Returns:
        The enum associated with the given numeric wire value.
      • internalGetValueMap

        public static com.google.protobuf.Internal.EnumLiteMap<SslConfig.SslMode> internalGetValueMap()
      • getValueDescriptor

        public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
        Specified by:
        getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptorForType

        public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnum
      • getDescriptor

        public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
      • valueOf

        public static SslConfig.SslMode valueOf​(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
        Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)
        Parameters:
        desc - the name of the enum constant to be returned.
        Returns:
        the enum constant with the specified name
        Throws:
        IllegalArgumentException - if this enum type has no constant with the specified name
        NullPointerException - if the argument is null