Package com.google.appengine.v1.firewall
Enum FirewallRule.Action
- java.lang.Object
-
- java.lang.Enum<FirewallRule.Action>
-
- com.google.appengine.v1.firewall.FirewallRule.Action
-
- All Implemented Interfaces:
com.google.protobuf.Internal.EnumLite,com.google.protobuf.ProtocolMessageEnum,Serializable,Comparable<FirewallRule.Action>
- Enclosing class:
- FirewallRule
public static enum FirewallRule.Action extends Enum<FirewallRule.Action> implements com.google.protobuf.ProtocolMessageEnum
Available actions to take on matching requests.
Protobuf enumgoogle.appengine.v1.FirewallRule.Action
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALLOWMatching requests are allowed.DENYMatching requests are denied.UNRECOGNIZEDUNSPECIFIED_ACTIONUNSPECIFIED_ACTION = 0;
-
Field Summary
Fields Modifier and Type Field Description static intALLOW_VALUEMatching requests are allowed.static intDENY_VALUEMatching requests are denied.static intUNSPECIFIED_ACTION_VALUEUNSPECIFIED_ACTION = 0;
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static FirewallRule.ActionforNumber(int value)static com.google.protobuf.Descriptors.EnumDescriptorgetDescriptor()com.google.protobuf.Descriptors.EnumDescriptorgetDescriptorForType()intgetNumber()com.google.protobuf.Descriptors.EnumValueDescriptorgetValueDescriptor()static com.google.protobuf.Internal.EnumLiteMap<FirewallRule.Action>internalGetValueMap()static FirewallRule.ActionvalueOf(int value)Deprecated.static FirewallRule.ActionvalueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)Returns the enum constant of this type with the specified name.static FirewallRule.ActionvalueOf(String name)Returns the enum constant of this type with the specified name.static FirewallRule.Action[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
UNSPECIFIED_ACTION
public static final FirewallRule.Action UNSPECIFIED_ACTION
UNSPECIFIED_ACTION = 0;
-
ALLOW
public static final FirewallRule.Action ALLOW
Matching requests are allowed.
ALLOW = 1;
-
DENY
public static final FirewallRule.Action DENY
Matching requests are denied.
DENY = 2;
-
UNRECOGNIZED
public static final FirewallRule.Action UNRECOGNIZED
-
-
Field Detail
-
UNSPECIFIED_ACTION_VALUE
public static final int UNSPECIFIED_ACTION_VALUE
UNSPECIFIED_ACTION = 0;- See Also:
- Constant Field Values
-
ALLOW_VALUE
public static final int ALLOW_VALUE
Matching requests are allowed.
ALLOW = 1;- See Also:
- Constant Field Values
-
DENY_VALUE
public static final int DENY_VALUE
Matching requests are denied.
DENY = 2;- See Also:
- Constant Field Values
-
-
Method Detail
-
values
public static FirewallRule.Action[] 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 (FirewallRule.Action c : FirewallRule.Action.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static FirewallRule.Action 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:
getNumberin interfacecom.google.protobuf.Internal.EnumLite- Specified by:
getNumberin interfacecom.google.protobuf.ProtocolMessageEnum
-
valueOf
@Deprecated public static FirewallRule.Action 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 FirewallRule.Action 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<FirewallRule.Action> 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 final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
-
valueOf
public static FirewallRule.Action 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
-
-