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 enum
google.cloud.compute.v1.HttpRedirectAction.RedirectResponseCode-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionHttp Status Code 302 - Found.Http Status Code 301 - Moved Permanently.Http Status Code 308 - Permanent Redirect maintaining HTTP method.Http Status Code 303 - See Other.Http Status Code 307 - Temporary Redirect maintaining HTTP method.A value indicating that the enum field is not set. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intHttp Status Code 302 - Found.static final intHttp Status Code 301 - Moved Permanently.static final intHttp Status Code 308 - Permanent Redirect maintaining HTTP method.static final intHttp Status Code 303 - See Other.static final intHttp Status Code 307 - Temporary Redirect maintaining HTTP method.static final intA value indicating that the enum field is not set. -
Method Summary
Modifier and TypeMethodDescriptionforNumber(int value) static com.google.protobuf.Descriptors.EnumDescriptorfinal com.google.protobuf.Descriptors.EnumDescriptorfinal intfinal com.google.protobuf.Descriptors.EnumValueDescriptorstatic com.google.protobuf.Internal.EnumLiteMap<HttpRedirectAction.RedirectResponseCode>valueOf(int value) Deprecated.valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) Returns the enum constant of this type with the specified name.Returns the enum constant of this type with the specified name.values()Returns an array containing the constants of this enum type, in the order they are declared.
-
Enum Constant Details
-
UNDEFINED_REDIRECT_RESPONSE_CODE
A value indicating that the enum field is not set.
UNDEFINED_REDIRECT_RESPONSE_CODE = 0; -
FOUND
Http Status Code 302 - Found.
FOUND = 67084130; -
MOVED_PERMANENTLY_DEFAULT
Http Status Code 301 - Moved Permanently.
MOVED_PERMANENTLY_DEFAULT = 386698449; -
PERMANENT_REDIRECT
Http Status Code 308 - Permanent Redirect maintaining HTTP method.
PERMANENT_REDIRECT = 382006381; -
SEE_OTHER
Http Status Code 303 - See Other.
SEE_OTHER = 445380580; -
TEMPORARY_REDIRECT
Http Status Code 307 - Temporary Redirect maintaining HTTP method.
TEMPORARY_REDIRECT = 489550378; -
UNRECOGNIZED
-
-
Field Details
-
UNDEFINED_REDIRECT_RESPONSE_CODE_VALUE
public static final int UNDEFINED_REDIRECT_RESPONSE_CODE_VALUEA value indicating that the enum field is not set.
UNDEFINED_REDIRECT_RESPONSE_CODE = 0;- See Also:
-
FOUND_VALUE
public static final int FOUND_VALUEHttp Status Code 302 - Found.
FOUND = 67084130;- See Also:
-
MOVED_PERMANENTLY_DEFAULT_VALUE
public static final int MOVED_PERMANENTLY_DEFAULT_VALUEHttp Status Code 301 - Moved Permanently.
MOVED_PERMANENTLY_DEFAULT = 386698449;- See Also:
-
PERMANENT_REDIRECT_VALUE
public static final int PERMANENT_REDIRECT_VALUEHttp Status Code 308 - Permanent Redirect maintaining HTTP method.
PERMANENT_REDIRECT = 382006381;- See Also:
-
SEE_OTHER_VALUE
public static final int SEE_OTHER_VALUEHttp Status Code 303 - See Other.
SEE_OTHER = 445380580;- See Also:
-
TEMPORARY_REDIRECT_VALUE
public static final int TEMPORARY_REDIRECT_VALUEHttp Status Code 307 - Temporary Redirect maintaining HTTP method.
TEMPORARY_REDIRECT = 489550378;- See Also:
-
-
Method Details
-
values
Returns an array containing the constants of this enum type, in the order they are declared.- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
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.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
- 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:
getValueDescriptorin interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptorForType
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.ProtocolMessageEnum
-
getDescriptor
public static 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
-