public static enum SeekRequest.NamedTarget extends Enum<SeekRequest.NamedTarget> implements com.google.protobuf.ProtocolMessageEnum
A special target in the partition that takes no other parameters.Protobuf enum
google.cloud.pubsublite.v1.SeekRequest.NamedTarget| Enum Constant and Description |
|---|
COMMITTED_CURSOR
A target corresponding to the committed cursor for the given subscription
and topic partition.
|
HEAD
A target corresponding to the most recently published message in the
partition.
|
NAMED_TARGET_UNSPECIFIED
Default value.
|
UNRECOGNIZED |
| Modifier and Type | Field and Description |
|---|---|
static int |
COMMITTED_CURSOR_VALUE
A target corresponding to the committed cursor for the given subscription
and topic partition.
|
static int |
HEAD_VALUE
A target corresponding to the most recently published message in the
partition.
|
static int |
NAMED_TARGET_UNSPECIFIED_VALUE
Default value.
|
| Modifier and Type | Method and Description |
|---|---|
static SeekRequest.NamedTarget |
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<SeekRequest.NamedTarget> |
internalGetValueMap() |
static SeekRequest.NamedTarget |
valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc) |
static SeekRequest.NamedTarget |
valueOf(int value)
Deprecated.
Use
forNumber(int) instead. |
static SeekRequest.NamedTarget |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static SeekRequest.NamedTarget[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final SeekRequest.NamedTarget NAMED_TARGET_UNSPECIFIED
Default value. This value is unused.
NAMED_TARGET_UNSPECIFIED = 0;public static final SeekRequest.NamedTarget HEAD
A target corresponding to the most recently published message in the partition.
HEAD = 1;public static final SeekRequest.NamedTarget COMMITTED_CURSOR
A target corresponding to the committed cursor for the given subscription and topic partition.
COMMITTED_CURSOR = 2;public static final SeekRequest.NamedTarget UNRECOGNIZED
public static final int NAMED_TARGET_UNSPECIFIED_VALUE
Default value. This value is unused.
NAMED_TARGET_UNSPECIFIED = 0;public static final int HEAD_VALUE
A target corresponding to the most recently published message in the partition.
HEAD = 1;public static final int COMMITTED_CURSOR_VALUE
A target corresponding to the committed cursor for the given subscription and topic partition.
COMMITTED_CURSOR = 2;public static SeekRequest.NamedTarget[] values()
for (SeekRequest.NamedTarget c : SeekRequest.NamedTarget.values()) System.out.println(c);
public static SeekRequest.NamedTarget 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.EnumLitegetNumber in interface com.google.protobuf.ProtocolMessageEnum@Deprecated public static SeekRequest.NamedTarget valueOf(int value)
forNumber(int) instead.value - The numeric wire value of the corresponding enum entry.public static SeekRequest.NamedTarget forNumber(int value)
value - The numeric wire value of the corresponding enum entry.public static com.google.protobuf.Internal.EnumLiteMap<SeekRequest.NamedTarget> 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 SeekRequest.NamedTarget valueOf(com.google.protobuf.Descriptors.EnumValueDescriptor desc)
Copyright © 2023 Google LLC. All rights reserved.