public static enum SeekInfo.SeekBehavior extends Enum<SeekInfo.SeekBehavior> implements com.google.protobuf.ProtocolMessageEnum
If BLOCK_UNTIL_READY is specified, the reply will block until the requested blocks are available, if FAIL_IF_NOT_READY is specified, the reply will return an error indicating that the block is not found. To request that all blocks be returned indefinitely as they are created, behavior should be set to BLOCK_UNTIL_READY and the stop should be set to specified with a number of MAX_UINT64Protobuf enum
orderer.SeekInfo.SeekBehavior
Enum Constant and Description |
---|
BLOCK_UNTIL_READY
BLOCK_UNTIL_READY = 0; |
FAIL_IF_NOT_READY
FAIL_IF_NOT_READY = 1; |
UNRECOGNIZED |
Modifier and Type | Field and Description |
---|---|
static int |
BLOCK_UNTIL_READY_VALUE
BLOCK_UNTIL_READY = 0; |
static int |
FAIL_IF_NOT_READY_VALUE
FAIL_IF_NOT_READY = 1; |
Modifier and Type | Method and Description |
---|---|
static SeekInfo.SeekBehavior |
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<SeekInfo.SeekBehavior> |
internalGetValueMap() |
static SeekInfo.SeekBehavior |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SeekInfo.SeekBehavior |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SeekInfo.SeekBehavior |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SeekInfo.SeekBehavior[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SeekInfo.SeekBehavior BLOCK_UNTIL_READY
BLOCK_UNTIL_READY = 0;
public static final SeekInfo.SeekBehavior FAIL_IF_NOT_READY
FAIL_IF_NOT_READY = 1;
public static final SeekInfo.SeekBehavior UNRECOGNIZED
public static final int BLOCK_UNTIL_READY_VALUE
BLOCK_UNTIL_READY = 0;
public static final int FAIL_IF_NOT_READY_VALUE
FAIL_IF_NOT_READY = 1;
public static SeekInfo.SeekBehavior[] values()
for (SeekInfo.SeekBehavior c : SeekInfo.SeekBehavior.values()) System.out.println(c);
public static SeekInfo.SeekBehavior 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 SeekInfo.SeekBehavior valueOf(int value)
forNumber(int)
instead.value
- The numeric wire value of the corresponding enum entry.public static SeekInfo.SeekBehavior forNumber(int value)
value
- The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SeekInfo.SeekBehavior> 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 SeekInfo.SeekBehavior valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2022. All rights reserved.