Package com.google.cloud.functions.v2
Enum ServiceConfig.SecurityLevel
java.lang.Object
java.lang.Enum<ServiceConfig.SecurityLevel>
com.google.cloud.functions.v2.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 enum
google.cloud.functions.v2.ServiceConfig.SecurityLevel-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path.Both HTTP and HTTPS requests with URLs that match the handler succeed without redirects.Unspecified. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path.static final intBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects.static final intUnspecified. -
Method Summary
Modifier and TypeMethodDescriptionstatic ServiceConfig.SecurityLevelforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<ServiceConfig.SecurityLevel>static ServiceConfig.SecurityLevelvalueOf(int value) Deprecated.static ServiceConfig.SecurityLevelvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.static ServiceConfig.SecurityLevelReturns 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 Details
-
SECURITY_LEVEL_UNSPECIFIED
Unspecified.
SECURITY_LEVEL_UNSPECIFIED = 0; -
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
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
-
-
Field Details
-
SECURITY_LEVEL_UNSPECIFIED_VALUE
public static final int SECURITY_LEVEL_UNSPECIFIED_VALUEUnspecified.
SECURITY_LEVEL_UNSPECIFIED = 0;- See Also:
-
SECURE_ALWAYS_VALUE
public static final int SECURE_ALWAYS_VALUERequests 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:
-
SECURE_OPTIONAL_VALUE
public static final int SECURE_OPTIONAL_VALUEBoth 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:
-
-
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
public static com.google.protobuf.Internal.EnumLiteMap<ServiceConfig.SecurityLevel> 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
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
-