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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > SeekRequestImplements
SeekRequestOrBuilderStatic Fields
CURSOR_FIELD_NUMBER
public static final int CURSOR_FIELD_NUMBER
Type | Description |
int |
NAMED_TARGET_FIELD_NUMBER
public static final int NAMED_TARGET_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static SeekRequest getDefaultInstance()
Type | Description |
SeekRequest |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static SeekRequest.Builder newBuilder()
Type | Description |
SeekRequest.Builder |
newBuilder(SeekRequest prototype)
public static SeekRequest.Builder newBuilder(SeekRequest prototype)
Name | Description |
prototype | SeekRequest |
Type | Description |
SeekRequest.Builder |
parseDelimitedFrom(InputStream input)
public static SeekRequest parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
SeekRequest |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SeekRequest |
Type | Description |
IOException |
parseFrom(byte[] data)
public static SeekRequest parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
SeekRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SeekRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static SeekRequest parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
SeekRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SeekRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static SeekRequest parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
SeekRequest |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SeekRequest |
Type | Description |
IOException |
parseFrom(InputStream input)
public static SeekRequest parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
SeekRequest |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SeekRequest |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static SeekRequest parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
SeekRequest |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static SeekRequest parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SeekRequest |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<SeekRequest> parser()
Type | Description |
Parser<SeekRequest> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getCursor()
public Cursor getCursor()
A target corresponding to the cursor, pointing to anywhere in the topic partition.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
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;
Type | Description |
CursorOrBuilder |
getDefaultInstanceForType()
public SeekRequest getDefaultInstanceForType()
Type | Description |
SeekRequest |
getNamedTarget()
public SeekRequest.NamedTarget getNamedTarget()
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
Type | Description |
SeekRequest.NamedTarget | The namedTarget. |
getNamedTargetValue()
public int getNamedTargetValue()
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
Type | Description |
int | The enum numeric value on the wire for namedTarget. |
getParserForType()
public Parser<SeekRequest> getParserForType()
Type | Description |
Parser<SeekRequest> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getTargetCase()
public SeekRequest.TargetCase getTargetCase()
Type | Description |
SeekRequest.TargetCase |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasCursor()
public boolean hasCursor()
A target corresponding to the cursor, pointing to anywhere in the topic partition.
.google.cloud.pubsublite.v1.Cursor cursor = 2;
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;
Type | Description |
boolean | Whether the namedTarget field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public SeekRequest.Builder newBuilderForType()
Type | Description |
SeekRequest.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected SeekRequest.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
SeekRequest.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public SeekRequest.Builder toBuilder()
Type | Description |
SeekRequest.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |