public final class SeekRequest extends GeneratedMessageV3 implements SeekRequestOrBuilder
Request to update the stream's delivery cursor based on the given target.
Resets the server available tokens to 0. SeekRequests past head result in
stream breakage.
SeekRequests may not be sent while another SeekRequest is outstanding (i.e.,
has not received a SeekResponse) on the same stream.
Protobuf type google.cloud.pubsublite.v1.SeekRequest
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
CURSOR_FIELD_NUMBER
public static final int CURSOR_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
NAMED_TARGET_FIELD_NUMBER
public static final int NAMED_TARGET_FIELD_NUMBER
Field Value |
Type |
Description |
int |
|
Static Methods
getDefaultInstance()
public static SeekRequest getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static SeekRequest.Builder newBuilder()
newBuilder(SeekRequest prototype)
public static SeekRequest.Builder newBuilder(SeekRequest prototype)
public static SeekRequest parseDelimitedFrom(InputStream input)
public static SeekRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static SeekRequest parseFrom(byte[] data)
Parameter |
Name |
Description |
data |
byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static SeekRequest parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(CodedInputStream input)
public static SeekRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(InputStream input)
public static SeekRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static SeekRequest parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<SeekRequest> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
Name |
Description |
obj |
Object
|
Overrides
getCursor()
public Cursor getCursor()
A target corresponding to the cursor, pointing to anywhere in the
topic partition.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Returns |
Type |
Description |
Cursor |
The cursor.
|
getCursorOrBuilder()
public CursorOrBuilder getCursorOrBuilder()
A target corresponding to the cursor, pointing to anywhere in the
topic partition.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
getDefaultInstanceForType()
public SeekRequest getDefaultInstanceForType()
getNamedTarget()
public SeekRequest.NamedTarget getNamedTarget()
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
getNamedTargetValue()
public int getNamedTargetValue()
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
Returns |
Type |
Description |
int |
The enum numeric value on the wire for namedTarget.
|
getParserForType()
public Parser<SeekRequest> getParserForType()
Overrides
getSerializedSize()
public int getSerializedSize()
Returns |
Type |
Description |
int |
|
Overrides
getTargetCase()
public SeekRequest.TargetCase getTargetCase()
hasCursor()
public boolean hasCursor()
A target corresponding to the cursor, pointing to anywhere in the
topic partition.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
Returns |
Type |
Description |
boolean |
Whether the cursor field is set.
|
hasNamedTarget()
public boolean hasNamedTarget()
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
Returns |
Type |
Description |
boolean |
Whether the namedTarget field is set.
|
hashCode()
Returns |
Type |
Description |
int |
|
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public SeekRequest.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SeekRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Returns |
Type |
Description |
Object |
|
Overrides
toBuilder()
public SeekRequest.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides