Package com.google.cloud.compute.v1
Enum HttpRedirectAction.RedirectResponseCode
- java.lang.Object
-
- java.lang.Enum<HttpRedirectAction.RedirectResponseCode>
-
- com.google.cloud.compute.v1.HttpRedirectAction.RedirectResponseCode
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite
,com.google.protobuf.ProtocolMessageEnum
,Serializable
,Comparable<HttpRedirectAction.RedirectResponseCode>
- Enclosing class:
- HttpRedirectAction
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 enumgoogle.cloud.compute.v1.HttpRedirectAction.RedirectResponseCode
-
-
Enum Constant Summary
Enum Constants Enum Constant 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
-
Field Summary
Fields Modifier and Type Field 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.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method 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(int value)
Deprecated.static HttpRedirectAction.RedirectResponseCode
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Returns the enum constant of this type with the specified name.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.
-
-
-
Enum Constant Detail
-
UNDEFINED_REDIRECT_RESPONSE_CODE
public static final HttpRedirectAction.RedirectResponseCode UNDEFINED_REDIRECT_RESPONSE_CODE
A value indicating that the enum field is not set.
UNDEFINED_REDIRECT_RESPONSE_CODE = 0;
-
FOUND
public static final HttpRedirectAction.RedirectResponseCode FOUND
Http Status Code 302 - Found.
FOUND = 67084130;
-
MOVED_PERMANENTLY_DEFAULT
public static final HttpRedirectAction.RedirectResponseCode MOVED_PERMANENTLY_DEFAULT
Http Status Code 301 - Moved Permanently.
MOVED_PERMANENTLY_DEFAULT = 386698449;
-
PERMANENT_REDIRECT
public static final HttpRedirectAction.RedirectResponseCode PERMANENT_REDIRECT
Http Status Code 308 - Permanent Redirect maintaining HTTP method.
PERMANENT_REDIRECT = 382006381;
-
SEE_OTHER
public static final HttpRedirectAction.RedirectResponseCode SEE_OTHER
Http Status Code 303 - See Other.
SEE_OTHER = 445380580;
-
TEMPORARY_REDIRECT
public static final HttpRedirectAction.RedirectResponseCode TEMPORARY_REDIRECT
Http Status Code 307 - Temporary Redirect maintaining HTTP method.
TEMPORARY_REDIRECT = 489550378;
-
UNRECOGNIZED
public static final HttpRedirectAction.RedirectResponseCode UNRECOGNIZED
-
-
Field Detail
-
UNDEFINED_REDIRECT_RESPONSE_CODE_VALUE
public static final int UNDEFINED_REDIRECT_RESPONSE_CODE_VALUE
A value indicating that the enum field is not set.
UNDEFINED_REDIRECT_RESPONSE_CODE = 0;
- See Also:
- Constant Field Values
-
FOUND_VALUE
public static final int FOUND_VALUE
Http Status Code 302 - Found.
FOUND = 67084130;
- See Also:
- Constant Field Values
-
MOVED_PERMANENTLY_DEFAULT_VALUE
public static final int MOVED_PERMANENTLY_DEFAULT_VALUE
Http Status Code 301 - Moved Permanently.
MOVED_PERMANENTLY_DEFAULT = 386698449;
- See Also:
- Constant Field Values
-
PERMANENT_REDIRECT_VALUE
public static final int PERMANENT_REDIRECT_VALUE
Http Status Code 308 - Permanent Redirect maintaining HTTP method.
PERMANENT_REDIRECT = 382006381;
- See Also:
- Constant Field Values
-
SEE_OTHER_VALUE
public static final int SEE_OTHER_VALUE
Http Status Code 303 - See Other.
SEE_OTHER = 445380580;
- See Also:
- Constant Field Values
-
TEMPORARY_REDIRECT_VALUE
public static final int TEMPORARY_REDIRECT_VALUE
Http Status Code 307 - Temporary Redirect maintaining HTTP method.
TEMPORARY_REDIRECT = 489550378;
- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static HttpRedirectAction.RedirectResponseCode[] 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 (HttpRedirectAction.RedirectResponseCode c : HttpRedirectAction.RedirectResponseCode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static HttpRedirectAction.RedirectResponseCode 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:
getNumber
in interfacecom.google.protobuf.Internal.EnumLite
- Specified by:
getNumber
in interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static HttpRedirectAction.RedirectResponseCode 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 HttpRedirectAction.RedirectResponseCode 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<HttpRedirectAction.RedirectResponseCode> internalGetValueMap()
-
getValueDescriptor
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
- Specified by:
getValueDescriptor
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
- Specified by:
getDescriptorForType
in interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static HttpRedirectAction.RedirectResponseCode 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
-
-