Enum ServiceConfig.SecurityLevel
- java.lang.Object
-
- java.lang.Enum<ServiceConfig.SecurityLevel>
-
- com.google.cloud.functions.v2beta.ServiceConfig.SecurityLevel
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<ServiceConfig.SecurityLevel>
- Enclosing class:
- ServiceConfig
public static enum ServiceConfig.SecurityLevel extends Enum<ServiceConfig.SecurityLevel> implements com.google.protobuf.ProtocolMessageEnum
Available security level settings. This enforces security protocol on function URL. Security level is only configurable for 1st Gen functions, If unspecified, SECURE_OPTIONAL will be used. 2nd Gen functions are SECURE_ALWAYS ONLY.
Protobuf enumgoogle.cloud.functions.v2beta.ServiceConfig.SecurityLevel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SECURE_ALWAYS
Requests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path.SECURE_OPTIONAL
Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects.SECURITY_LEVEL_UNSPECIFIED
Unspecified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static int
SECURE_ALWAYS_VALUE
Requests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path.static int
SECURE_OPTIONAL_VALUE
Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects.static int
SECURITY_LEVEL_UNSPECIFIED_VALUE
Unspecified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ServiceConfig.SecurityLevel
forNumber(int value)
static com.google.protobuf.Descriptors.EnumDescriptor
getDescriptor()
com.google.protobuf.Descriptors.EnumDescriptor
getDescriptorForType()
int
getNumber()
com.google.protobuf.Descriptors.EnumValueDescriptor
getValueDescriptor()
static com.google.protobuf.Internal.EnumLiteMap<ServiceConfig.SecurityLevel>
internalGetValueMap()
static ServiceConfig.SecurityLevel
valueOf(int value)
Deprecated.static ServiceConfig.SecurityLevel
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.static ServiceConfig.SecurityLevel
valueOf(String name)
Returns the enum constant of this type with the specified name.static ServiceConfig.SecurityLevel[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
SECURITY_LEVEL_UNSPECIFIED
public static final ServiceConfig.SecurityLevel SECURITY_LEVEL_UNSPECIFIED
Unspecified.
SECURITY_LEVEL_UNSPECIFIED = 0;
-
SECURE_ALWAYS
public static final ServiceConfig.SecurityLevel SECURE_ALWAYS
Requests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
SECURE_ALWAYS = 1;
-
SECURE_OPTIONAL
public static final ServiceConfig.SecurityLevel SECURE_OPTIONAL
Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
SECURE_OPTIONAL = 2;
-
UNRECOGNIZED
public static final ServiceConfig.SecurityLevel UNRECOGNIZED
-
-
Field Detail
-
SECURITY_LEVEL_UNSPECIFIED_VALUE
public static final int SECURITY_LEVEL_UNSPECIFIED_VALUE
Unspecified.
SECURITY_LEVEL_UNSPECIFIED = 0;
- See Also:
- Constant Field Values
-
SECURE_ALWAYS_VALUE
public static final int SECURE_ALWAYS_VALUE
Requests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path. Query parameters are reserved for the redirect.
SECURE_ALWAYS = 1;
- See Also:
- Constant Field Values
-
SECURE_OPTIONAL_VALUE
public static final int SECURE_OPTIONAL_VALUE
Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects. The application can examine the request to determine which protocol was used and respond accordingly.
SECURE_OPTIONAL = 2;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static ServiceConfig.SecurityLevel[] 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 (ServiceConfig.SecurityLevel c : ServiceConfig.SecurityLevel.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ServiceConfig.SecurityLevel 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 nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()
- Specified by:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static ServiceConfig.SecurityLevel 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 nameNullPointerException
- if the argument is null
-
forNumber
public static ServiceConfig.SecurityLevel 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<ServiceConfig.SecurityLevel> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static ServiceConfig.SecurityLevel 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 nameNullPointerException
- if the argument is null
-
-