public static enum HttpRedirectAction.RedirectResponseCode extends Enum<HttpRedirectAction.RedirectResponseCode> implements com.google.protobuf.ProtocolMessageEnum
The HTTP Status code to use for this RedirectAction. Supported values are: - MOVED_PERMANENTLY_DEFAULT, which is the default value and corresponds to 301. - FOUND, which corresponds to 302. - SEE_OTHER which corresponds to 303. - TEMPORARY_REDIRECT, which corresponds to 307. In this case, the request method is retained. - PERMANENT_REDIRECT, which corresponds to 308. In this case, the request method is retained.Protobuf enum
google.cloud.compute.v1.HttpRedirectAction.RedirectResponseCode| Enum Constant and Description |
|---|
FOUND
Http Status Code 302 - Found.
|
MOVED_PERMANENTLY_DEFAULT
Http Status Code 301 - Moved Permanently.
|
PERMANENT_REDIRECT
Http Status Code 308 - Permanent Redirect maintaining HTTP method.
|
SEE_OTHER
Http Status Code 303 - See Other.
|
TEMPORARY_REDIRECT
Http Status Code 307 - Temporary Redirect maintaining HTTP method.
|
UNDEFINED_REDIRECT_RESPONSE_CODE
A value indicating that the enum field is not set.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
FOUND_VALUE
Http Status Code 302 - Found.
|
static int |
MOVED_PERMANENTLY_DEFAULT_VALUE
Http Status Code 301 - Moved Permanently.
|
static int |
PERMANENT_REDIRECT_VALUE
Http Status Code 308 - Permanent Redirect maintaining HTTP method.
|
static int |
SEE_OTHER_VALUE
Http Status Code 303 - See Other.
|
static int |
TEMPORARY_REDIRECT_VALUE
Http Status Code 307 - Temporary Redirect maintaining HTTP method.
|
static int |
UNDEFINED_REDIRECT_RESPONSE_CODE_VALUE
A value indicating that the enum field is not set.
|
| Modifier and Type | Method and Description |
|---|---|
static HttpRedirectAction.RedirectResponseCode |
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<HttpRedirectAction.RedirectResponseCode> |
internalGetValueMap() |
static HttpRedirectAction.RedirectResponseCode |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static HttpRedirectAction.RedirectResponseCode |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static HttpRedirectAction.RedirectResponseCode |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static HttpRedirectAction.RedirectResponseCode[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final HttpRedirectAction.RedirectResponseCode UNDEFINED_REDIRECT_RESPONSE_CODE
A value indicating that the enum field is not set.
UNDEFINED_REDIRECT_RESPONSE_CODE = 0;public static final HttpRedirectAction.RedirectResponseCode FOUND
Http Status Code 302 - Found.
FOUND = 67084130;public static final HttpRedirectAction.RedirectResponseCode MOVED_PERMANENTLY_DEFAULT
Http Status Code 301 - Moved Permanently.
MOVED_PERMANENTLY_DEFAULT = 386698449;public static final HttpRedirectAction.RedirectResponseCode PERMANENT_REDIRECT
Http Status Code 308 - Permanent Redirect maintaining HTTP method.
PERMANENT_REDIRECT = 382006381;public static final HttpRedirectAction.RedirectResponseCode SEE_OTHER
Http Status Code 303 - See Other.
SEE_OTHER = 445380580;public static final HttpRedirectAction.RedirectResponseCode TEMPORARY_REDIRECT
Http Status Code 307 - Temporary Redirect maintaining HTTP method.
TEMPORARY_REDIRECT = 489550378;public static final HttpRedirectAction.RedirectResponseCode UNRECOGNIZED
public static final int UNDEFINED_REDIRECT_RESPONSE_CODE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_REDIRECT_RESPONSE_CODE = 0;public static final int FOUND_VALUE
Http Status Code 302 - Found.
FOUND = 67084130;public static final int MOVED_PERMANENTLY_DEFAULT_VALUE
Http Status Code 301 - Moved Permanently.
MOVED_PERMANENTLY_DEFAULT = 386698449;public static final int PERMANENT_REDIRECT_VALUE
Http Status Code 308 - Permanent Redirect maintaining HTTP method.
PERMANENT_REDIRECT = 382006381;public static final int SEE_OTHER_VALUE
Http Status Code 303 - See Other.
SEE_OTHER = 445380580;public static final int TEMPORARY_REDIRECT_VALUE
Http Status Code 307 - Temporary Redirect maintaining HTTP method.
TEMPORARY_REDIRECT = 489550378;public static HttpRedirectAction.RedirectResponseCode[] values()
for (HttpRedirectAction.RedirectResponseCode c : HttpRedirectAction.RedirectResponseCode.values()) System.out.println(c);
public static HttpRedirectAction.RedirectResponseCode 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 HttpRedirectAction.RedirectResponseCode valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static HttpRedirectAction.RedirectResponseCode forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<HttpRedirectAction.RedirectResponseCode> 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 HttpRedirectAction.RedirectResponseCode valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.