Class SeekRequest.Builder (1.12.22)

public static final class SeekRequest.Builder extends GeneratedMessageV3.Builder<SeekRequest.Builder> 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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public SeekRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SeekRequest.Builder
Overrides

build()

public SeekRequest build()
Returns
TypeDescription
SeekRequest

buildPartial()

public SeekRequest buildPartial()
Returns
TypeDescription
SeekRequest

clear()

public SeekRequest.Builder clear()
Returns
TypeDescription
SeekRequest.Builder
Overrides

clearCursor()

public SeekRequest.Builder clearCursor()

A target corresponding to the cursor, pointing to anywhere in the topic partition.

.google.cloud.pubsublite.v1.Cursor cursor = 2;

Returns
TypeDescription
SeekRequest.Builder

clearField(Descriptors.FieldDescriptor field)

public SeekRequest.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
SeekRequest.Builder
Overrides

clearNamedTarget()

public SeekRequest.Builder clearNamedTarget()

A named target.

.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;

Returns
TypeDescription
SeekRequest.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public SeekRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
SeekRequest.Builder
Overrides

clearTarget()

public SeekRequest.Builder clearTarget()
Returns
TypeDescription
SeekRequest.Builder

clone()

public SeekRequest.Builder clone()
Returns
TypeDescription
SeekRequest.Builder
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
TypeDescription
Cursor

The cursor.

getCursorBuilder()

public Cursor.Builder getCursorBuilder()

A target corresponding to the cursor, pointing to anywhere in the topic partition.

.google.cloud.pubsublite.v1.Cursor cursor = 2;

Returns
TypeDescription
Cursor.Builder

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

A target corresponding to the cursor, pointing to anywhere in the topic partition.

.google.cloud.pubsublite.v1.Cursor cursor = 2;

Returns
TypeDescription
CursorOrBuilder

getDefaultInstanceForType()

public SeekRequest getDefaultInstanceForType()
Returns
TypeDescription
SeekRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getNamedTarget()

public SeekRequest.NamedTarget getNamedTarget()

A named target.

.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;

Returns
TypeDescription
SeekRequest.NamedTarget

The namedTarget.

getNamedTargetValue()

public int getNamedTargetValue()

A named target.

.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;

Returns
TypeDescription
int

The enum numeric value on the wire for namedTarget.

getTargetCase()

public SeekRequest.TargetCase getTargetCase()
Returns
TypeDescription
SeekRequest.TargetCase

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
TypeDescription
boolean

Whether the cursor field is set.

hasNamedTarget()

public boolean hasNamedTarget()

A named target.

.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;

Returns
TypeDescription
boolean

Whether the namedTarget field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeCursor(Cursor value)

public SeekRequest.Builder mergeCursor(Cursor value)

A target corresponding to the cursor, pointing to anywhere in the topic partition.

.google.cloud.pubsublite.v1.Cursor cursor = 2;

Parameter
NameDescription
valueCursor
Returns
TypeDescription
SeekRequest.Builder

mergeFrom(SeekRequest other)

public SeekRequest.Builder mergeFrom(SeekRequest other)
Parameter
NameDescription
otherSeekRequest
Returns
TypeDescription
SeekRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public SeekRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
SeekRequest.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public SeekRequest.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
SeekRequest.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final SeekRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SeekRequest.Builder
Overrides

setCursor(Cursor value)

public SeekRequest.Builder setCursor(Cursor value)

A target corresponding to the cursor, pointing to anywhere in the topic partition.

.google.cloud.pubsublite.v1.Cursor cursor = 2;

Parameter
NameDescription
valueCursor
Returns
TypeDescription
SeekRequest.Builder

setCursor(Cursor.Builder builderForValue)

public SeekRequest.Builder setCursor(Cursor.Builder builderForValue)

A target corresponding to the cursor, pointing to anywhere in the topic partition.

.google.cloud.pubsublite.v1.Cursor cursor = 2;

Parameter
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
SeekRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public SeekRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
SeekRequest.Builder
Overrides

setNamedTarget(SeekRequest.NamedTarget value)

public SeekRequest.Builder setNamedTarget(SeekRequest.NamedTarget value)

A named target.

.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;

Parameter
NameDescription
valueSeekRequest.NamedTarget

The namedTarget to set.

Returns
TypeDescription
SeekRequest.Builder

This builder for chaining.

setNamedTargetValue(int value)

public SeekRequest.Builder setNamedTargetValue(int value)

A named target.

.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;

Parameter
NameDescription
valueint

The enum numeric value on the wire for namedTarget to set.

Returns
TypeDescription
SeekRequest.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public SeekRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
SeekRequest.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final SeekRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
SeekRequest.Builder
Overrides