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