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 Details

  • Field Details

    • 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:
    • FOUND_VALUE

      public static final int FOUND_VALUE
       Http Status Code 302 - Found.
       
      FOUND = 67084130;
      See Also:
    • MOVED_PERMANENTLY_DEFAULT_VALUE

      public static final int MOVED_PERMANENTLY_DEFAULT_VALUE
       Http Status Code 301 - Moved Permanently.
       
      MOVED_PERMANENTLY_DEFAULT = 386698449;
      See Also:
    • PERMANENT_REDIRECT_VALUE

      public static final int PERMANENT_REDIRECT_VALUE
       Http Status Code 308 - Permanent Redirect maintaining HTTP method.
       
      PERMANENT_REDIRECT = 382006381;
      See Also:
    • SEE_OTHER_VALUE

      public static final int SEE_OTHER_VALUE
       Http Status Code 303 - See Other.
       
      SEE_OTHER = 445380580;
      See Also:
    • TEMPORARY_REDIRECT_VALUE

      public static final int TEMPORARY_REDIRECT_VALUE
       Http Status Code 307 - Temporary Redirect maintaining HTTP method.
       
      TEMPORARY_REDIRECT = 489550378;
      See Also:
  • Method Details

    • values

      public static HttpRedirectAction.RedirectResponseCode[] 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

      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 name
      NullPointerException - if the argument is null
    • getNumber

      public final int getNumber()
      Specified by:
      getNumber in interface com.google.protobuf.Internal.EnumLite
      Specified by:
      getNumber in interface com.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 name
      NullPointerException - 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 interface com.google.protobuf.ProtocolMessageEnum
    • getDescriptorForType

      public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.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 name
      NullPointerException - if the argument is null