Package com.google.protobuf
Enum Class DescriptorProtos.MethodOptions.IdempotencyLevel
java.lang.Object
java.lang.Enum<DescriptorProtos.MethodOptions.IdempotencyLevel>
com.google.protobuf.DescriptorProtos.MethodOptions.IdempotencyLevel
- All Implemented Interfaces:
Internal.EnumLite
,Serializable
,Comparable<DescriptorProtos.MethodOptions.IdempotencyLevel>
,Constable
- Enclosing class:
DescriptorProtos.MethodOptions
public static enum DescriptorProtos.MethodOptions.IdempotencyLevel
extends Enum<DescriptorProtos.MethodOptions.IdempotencyLevel>
implements Internal.EnumLite
Is this method side-effect-free (or safe in HTTP parlance), or idempotent, or neither? HTTP based RPC implementation may choose GET verb for safe methods, and PUT verb for idempotent methods instead of the default POST.Protobuf enum
google.protobuf.MethodOptions.IdempotencyLevel
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionprivate static final class
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantsEnum ConstantDescriptionIDEMPOTENCY_UNKNOWN = 0;
idempotent, but may have side effectsimplies idempotent -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
IDEMPOTENCY_UNKNOWN = 0;
static final int
idempotent, but may have side effectsprivate static final Internal.EnumLiteMap
<DescriptorProtos.MethodOptions.IdempotencyLevel> static final int
implies idempotentprivate final int
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionforNumber
(int value) final int
static Internal.EnumVerifier
valueOf
(int value) Deprecated.Returns the enum constant of this class with the specified name.values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IDEMPOTENCY_UNKNOWN
IDEMPOTENCY_UNKNOWN = 0;
-
NO_SIDE_EFFECTS
implies idempotent
NO_SIDE_EFFECTS = 1;
-
IDEMPOTENT
idempotent, but may have side effects
IDEMPOTENT = 2;
-
-
Field Details
-
IDEMPOTENCY_UNKNOWN_VALUE
public static final int IDEMPOTENCY_UNKNOWN_VALUEIDEMPOTENCY_UNKNOWN = 0;
- See Also:
-
NO_SIDE_EFFECTS_VALUE
public static final int NO_SIDE_EFFECTS_VALUEimplies idempotent
NO_SIDE_EFFECTS = 1;
- See Also:
-
IDEMPOTENT_VALUE
public static final int IDEMPOTENT_VALUEidempotent, but may have side effects
IDEMPOTENT = 2;
- See Also:
-
internalValueMap
private static final Internal.EnumLiteMap<DescriptorProtos.MethodOptions.IdempotencyLevel> internalValueMap -
value
private final int value
-
-
Constructor Details
-
IdempotencyLevel
private IdempotencyLevel(int value)
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
getNumber
public final int getNumber()- Specified by:
getNumber
in interfaceInternal.EnumLite
-
valueOf
Deprecated.Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException
- if the argument is null
-
forNumber
-
internalGetValueMap
public static Internal.EnumLiteMap<DescriptorProtos.MethodOptions.IdempotencyLevel> internalGetValueMap() -
internalGetVerifier
-