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.v2beta.ServiceConfig.SecurityLevel| Enum Constant and 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 |
| Modifier and Type | Field and 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.
|
| Modifier and Type | Method and 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(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static ServiceConfig.SecurityLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
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.
|
public static final ServiceConfig.SecurityLevel SECURITY_LEVEL_UNSPECIFIED
Unspecified.
SECURITY_LEVEL_UNSPECIFIED = 0;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;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;public static final ServiceConfig.SecurityLevel UNRECOGNIZED
public static final int SECURITY_LEVEL_UNSPECIFIED_VALUE
Unspecified.
SECURITY_LEVEL_UNSPECIFIED = 0;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;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;public static ServiceConfig.SecurityLevel[] values()
for (ServiceConfig.SecurityLevel c : ServiceConfig.SecurityLevel.values()) System.out.println(c);
public static ServiceConfig.SecurityLevel valueOf(String name)
name - the name of the enum constant to be returned.IllegalArgumentException - if this enum type has no constant with the specified nameNullPointerException - if the argument is nullpublic final int getNumber()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static ServiceConfig.SecurityLevel valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static ServiceConfig.SecurityLevel forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<ServiceConfig.SecurityLevel> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static ServiceConfig.SecurityLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.