Package com.google.cloud.alloydb.v1beta
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 Summary
Enum ConstantsEnum ConstantDescriptionSSL connections are optional.SSL connections are required.Deprecated.Deprecated.SSL mode is not specified.Deprecated. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intSSL connections are optional.static final intSSL connections are required.static final intDeprecated.static final intDeprecated.static final intSSL mode is not specified.static final intDeprecated. -
Method Summary
Modifier and TypeMethodDescriptionstatic SslConfig.SslModeforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<SslConfig.SslMode>static SslConfig.SslModevalueOf(int value) Deprecated.static SslConfig.SslModevalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static SslConfig.SslModeReturns the enum constant of this type with the specified name.static SslConfig.SslMode[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
SSL_MODE_UNSPECIFIED
SSL mode is not specified. Defaults to ENCRYPTED_ONLY.
SSL_MODE_UNSPECIFIED = 0; -
SSL_MODE_ALLOW
Deprecated.SSL connections are optional. CA verification not enforced.
SSL_MODE_ALLOW = 1 [deprecated = true]; -
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.SSL connections are required. CA verification enforced. Clients must have certificates signed by a Cluster CA, for example, using GenerateClientCertificate.
SSL_MODE_VERIFY_CA = 3 [deprecated = true]; -
ALLOW_UNENCRYPTED_AND_ENCRYPTED
SSL connections are optional. CA verification not enforced.
ALLOW_UNENCRYPTED_AND_ENCRYPTED = 4; -
ENCRYPTED_ONLY
SSL connections are required. CA verification not enforced.
ENCRYPTED_ONLY = 5; -
UNRECOGNIZED
-
-
Field Details
-
SSL_MODE_UNSPECIFIED_VALUE
public static final int SSL_MODE_UNSPECIFIED_VALUESSL mode is not specified. Defaults to ENCRYPTED_ONLY.
SSL_MODE_UNSPECIFIED = 0;- See Also:
-
SSL_MODE_ALLOW_VALUE
Deprecated.SSL connections are optional. CA verification not enforced.
SSL_MODE_ALLOW = 1 [deprecated = true];- See Also:
-
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:
-
SSL_MODE_VERIFY_CA_VALUE
Deprecated.SSL connections are required. CA verification enforced. Clients must have certificates signed by a Cluster CA, for example, using GenerateClientCertificate.
SSL_MODE_VERIFY_CA = 3 [deprecated = true];- See Also:
-
ALLOW_UNENCRYPTED_AND_ENCRYPTED_VALUE
public static final int ALLOW_UNENCRYPTED_AND_ENCRYPTED_VALUESSL connections are optional. CA verification not enforced.
ALLOW_UNENCRYPTED_AND_ENCRYPTED = 4;- See Also:
-
ENCRYPTED_ONLY_VALUE
public static final int ENCRYPTED_ONLY_VALUESSL connections are required. CA verification not enforced.
ENCRYPTED_ONLY = 5;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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 nameNullPointerException- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
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 nameNullPointerException- if the argument is null
-
forNumber
- Parameters:
value- The numeric wire value of the corresponding enum entry.- Returns:
- The enum associated with the given numeric wire value.
-
internalGetValueMap
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()- Specified by:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static com.google.protobuf.Descriptors.EnumDescriptor getDescriptor() -
valueOf
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 nameNullPointerException- if the argument is null
-