public static enum HttpsTrigger.SecurityLevel extends Enum<HttpsTrigger.SecurityLevel> implements com.google.protobuf.ProtocolMessageEnum
Available security level settings. This controls the methods to enforce security (HTTPS) on a URL. If unspecified, SECURE_OPTIONAL will be used.Protobuf enum
google.cloud.functions.v1.HttpsTrigger.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 HttpsTrigger.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<HttpsTrigger.SecurityLevel> |
internalGetValueMap() |
static HttpsTrigger.SecurityLevel |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HttpsTrigger.SecurityLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HttpsTrigger.SecurityLevel |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpsTrigger.SecurityLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpsTrigger.SecurityLevel SECURITY_LEVEL_UNSPECIFIED
Unspecified.
SECURITY_LEVEL_UNSPECIFIED = 0;public static final HttpsTrigger.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 HttpsTrigger.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 HttpsTrigger.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 HttpsTrigger.SecurityLevel[] values()
for (HttpsTrigger.SecurityLevel c : HttpsTrigger.SecurityLevel.values()) System.out.println(c);
public static HttpsTrigger.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 HttpsTrigger.SecurityLevel valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static HttpsTrigger.SecurityLevel forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<HttpsTrigger.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 HttpsTrigger.SecurityLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2024 Google LLC. All rights reserved.