Enum ServiceConfig.SecurityLevel
- java.lang.Object
-
- java.lang.Enum<ServiceConfig.SecurityLevel>
-
- com.google.cloud.functions.v2alpha.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.v2alpha.ServiceConfig.SecurityLevel
-
-
Enum Constant Summary
Enum Constants Enum Constant Description SECURE_ALWAYSRequests for a URL that match this handler that do not use HTTPS are automatically redirected to the HTTPS URL with the same path.SECURE_OPTIONALBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects.SECURITY_LEVEL_UNSPECIFIEDUnspecified.UNRECOGNIZED
-
Field Summary
Fields Modifier and Type Field Description static intSECURE_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.static intSECURE_OPTIONAL_VALUEBoth HTTP and HTTPS requests with URLs that match the handler succeed without redirects.static intSECURITY_LEVEL_UNSPECIFIED_VALUEUnspecified.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static ServiceConfig.SecurityLevelforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<ServiceConfig.SecurityLevel>internalGetValueMap()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.SecurityLevelvalueOf(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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein 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
-
-