public static enum DescriptorProtos.MethodOptions.IdempotencyLevel extends java.lang.Enum<DescriptorProtos.MethodOptions.IdempotencyLevel> implements ProtocolMessageEnum
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
Enum Constant and Description |
---|
IDEMPOTENCY_UNKNOWN
IDEMPOTENCY_UNKNOWN = 0; |
IDEMPOTENT
idempotent, but may have side effects
|
NO_SIDE_EFFECTS
implies idempotent
|
Modifier and Type | Field and Description |
---|---|
static int |
IDEMPOTENCY_UNKNOWN_VALUE
IDEMPOTENCY_UNKNOWN = 0; |
static int |
IDEMPOTENT_VALUE
idempotent, but may have side effects
|
static int |
NO_SIDE_EFFECTS_VALUE
implies idempotent
|
Modifier and Type | Method and Description |
---|---|
static DescriptorProtos.MethodOptions.IdempotencyLevel |
forNumber(int value) |
static Descriptors.EnumDescriptor |
getDescriptor() |
Descriptors.EnumDescriptor |
getDescriptorForType()
Return the enum type's descriptor, which contains information about each defined value, etc.
|
int |
getNumber()
Return the value's numeric value as defined in the .proto file.
|
Descriptors.EnumValueDescriptor |
getValueDescriptor()
Return the value's descriptor, which contains information such as value name, number, and type.
|
static Internal.EnumLiteMap<DescriptorProtos.MethodOptions.IdempotencyLevel> |
internalGetValueMap() |
static DescriptorProtos.MethodOptions.IdempotencyLevel |
valueOf(Descriptors.EnumValueDescriptor desc) |
static DescriptorProtos.MethodOptions.IdempotencyLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DescriptorProtos.MethodOptions.IdempotencyLevel |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static DescriptorProtos.MethodOptions.IdempotencyLevel[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final DescriptorProtos.MethodOptions.IdempotencyLevel IDEMPOTENCY_UNKNOWN
IDEMPOTENCY_UNKNOWN = 0;
public static final DescriptorProtos.MethodOptions.IdempotencyLevel NO_SIDE_EFFECTS
implies idempotent
NO_SIDE_EFFECTS = 1;
public static final DescriptorProtos.MethodOptions.IdempotencyLevel IDEMPOTENT
idempotent, but may have side effects
IDEMPOTENT = 2;
public static final int IDEMPOTENCY_UNKNOWN_VALUE
IDEMPOTENCY_UNKNOWN = 0;
public static final int NO_SIDE_EFFECTS_VALUE
implies idempotent
NO_SIDE_EFFECTS = 1;
public static final int IDEMPOTENT_VALUE
idempotent, but may have side effects
IDEMPOTENT = 2;
public static DescriptorProtos.MethodOptions.IdempotencyLevel[] values()
for (DescriptorProtos.MethodOptions.IdempotencyLevel c : DescriptorProtos.MethodOptions.IdempotencyLevel.values()) System.out.println(c);
public static DescriptorProtos.MethodOptions.IdempotencyLevel valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic final int getNumber()
ProtocolMessageEnum
getNumber
in interface Internal.EnumLite
getNumber
in interface ProtocolMessageEnum
@Deprecated public static DescriptorProtos.MethodOptions.IdempotencyLevel valueOf(int value)
forNumber(int)
instead.public static DescriptorProtos.MethodOptions.IdempotencyLevel forNumber(int value)
public static Internal.EnumLiteMap<DescriptorProtos.MethodOptions.IdempotencyLevel> internalGetValueMap()
public final Descriptors.EnumValueDescriptor getValueDescriptor()
ProtocolMessageEnum
getValueDescriptor
in interface ProtocolMessageEnum
public final Descriptors.EnumDescriptor getDescriptorForType()
ProtocolMessageEnum
getDescriptorForType
in interface ProtocolMessageEnum
public static final Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.MethodOptions.IdempotencyLevel valueOf(Descriptors.EnumValueDescriptor desc)
Copyright © 2014–2024 The Apache Software Foundation. All rights reserved.