public static enum DescriptorProtos.MethodOptions.IdempotencyLevel extends Enum<DescriptorProtos.MethodOptions.IdempotencyLevel> implements com.google.protobuf.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 com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptor() |
com.google.protobuf.Descriptors.EnumDescriptor |
getDescriptorForType() |
int |
getNumber() |
com.google.protobuf.Descriptors.EnumValueDescriptor |
getValueDescriptor() |
static com.google.protobuf.Internal.EnumLiteMap<DescriptorProtos.MethodOptions.IdempotencyLevel> |
internalGetValueMap() |
static DescriptorProtos.MethodOptions.IdempotencyLevel |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static DescriptorProtos.MethodOptions.IdempotencyLevel |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static DescriptorProtos.MethodOptions.IdempotencyLevel |
valueOf(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(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic final int getNumber()
getNumber
in interface com.google.protobuf.Internal.EnumLite
getNumber
in interface com.google.protobuf.ProtocolMessageEnum
@Deprecated public static DescriptorProtos.MethodOptions.IdempotencyLevel valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static DescriptorProtos.MethodOptions.IdempotencyLevel forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<DescriptorProtos.MethodOptions.IdempotencyLevel> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor
in interface com.google.protobuf.ProtocolMessageEnum
public final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType
in interface com.google.protobuf.ProtocolMessageEnum
public static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static DescriptorProtos.MethodOptions.IdempotencyLevel valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2008–2022. All rights reserved.