public static enum Extensions.RetrySemantic extends java.lang.Enum<Extensions.RetrySemantic> implements com.google.protobuf.ProtocolMessageEnum
A hint so you can decide a little more in the abstract "can this be retried?""Protobuf enum
RetrySemantic| Enum Constant and Description |
|---|
NotRetryable
Never retry this message without telling the user.
|
Retryable
You can retry this without surfacing an error to the user.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
NotRetryable_VALUE
Never retry this message without telling the user.
|
static int |
Retryable_VALUE
You can retry this without surfacing an error to the user.
|
| Modifier and Type | Method and Description |
|---|---|
static Extensions.RetrySemantic |
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<Extensions.RetrySemantic> |
internalGetValueMap() |
static Extensions.RetrySemantic |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static Extensions.RetrySemantic |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static Extensions.RetrySemantic |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static Extensions.RetrySemantic[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final Extensions.RetrySemantic NotRetryable
Never retry this message without telling the user. (you should infer this as the default)
NotRetryable = 0;public static final Extensions.RetrySemantic Retryable
You can retry this without surfacing an error to the user.
Retryable = 1;public static final Extensions.RetrySemantic UNRECOGNIZED
public static final int NotRetryable_VALUE
Never retry this message without telling the user. (you should infer this as the default)
NotRetryable = 0;public static final int Retryable_VALUE
You can retry this without surfacing an error to the user.
Retryable = 1;public static Extensions.RetrySemantic[] values()
for (Extensions.RetrySemantic c : Extensions.RetrySemantic.values()) System.out.println(c);
public static Extensions.RetrySemantic 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()
getNumber in interface com.google.protobuf.Internal.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static Extensions.RetrySemantic valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static Extensions.RetrySemantic forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<Extensions.RetrySemantic> internalGetValueMap()
public final com.google.protobuf.Descriptors.EnumValueDescriptor getValueDescriptor()
getValueDescriptor in interface com.google.protobuf.ProtocolMessageEnumpublic final com.google.protobuf.Descriptors.EnumDescriptor getDescriptorForType()
getDescriptorForType in interface com.google.protobuf.ProtocolMessageEnumpublic static final com.google.protobuf.Descriptors.EnumDescriptor getDescriptor()
public static Extensions.RetrySemantic valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)