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
Inheritance
Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessageV3.Builder > SeekRequest.BuilderImplements
SeekRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SeekRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SeekRequest.Builder |
build()
public SeekRequest build()
Type | Description |
SeekRequest |
buildPartial()
public SeekRequest buildPartial()
Type | Description |
SeekRequest |
clear()
public SeekRequest.Builder clear()
Type | Description |
SeekRequest.Builder |
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;
Type | Description |
SeekRequest.Builder |
clearField(Descriptors.FieldDescriptor field)
public SeekRequest.Builder clearField(Descriptors.FieldDescriptor field)
Name | Description |
field | FieldDescriptor |
Type | Description |
SeekRequest.Builder |
clearNamedTarget()
public SeekRequest.Builder clearNamedTarget()
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
Type | Description |
SeekRequest.Builder | This builder for chaining. |
clearOneof(Descriptors.OneofDescriptor oneof)
public SeekRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Name | Description |
oneof | OneofDescriptor |
Type | Description |
SeekRequest.Builder |
clearTarget()
public SeekRequest.Builder clearTarget()
Type | Description |
SeekRequest.Builder |
clone()
public SeekRequest.Builder clone()
Type | Description |
SeekRequest.Builder |
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. |
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;
Type | Description |
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;
Type | Description |
CursorOrBuilder |
getDefaultInstanceForType()
public SeekRequest getDefaultInstanceForType()
Type | Description |
SeekRequest |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Type | Description |
Descriptor |
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. |
getTargetCase()
public SeekRequest.TargetCase getTargetCase()
Type | Description |
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;
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. |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
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;
Name | Description |
value | Cursor |
Type | Description |
SeekRequest.Builder |
mergeFrom(SeekRequest other)
public SeekRequest.Builder mergeFrom(SeekRequest other)
Name | Description |
other | SeekRequest |
Type | Description |
SeekRequest.Builder |
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public SeekRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
SeekRequest.Builder |
Type | Description |
IOException |
mergeFrom(Message other)
public SeekRequest.Builder mergeFrom(Message other)
Name | Description |
other | Message |
Type | Description |
SeekRequest.Builder |
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SeekRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SeekRequest.Builder |
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;
Name | Description |
value | Cursor |
Type | Description |
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;
Name | Description |
builderForValue | Cursor.Builder |
Type | Description |
SeekRequest.Builder |
setField(Descriptors.FieldDescriptor field, Object value)
public SeekRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Name | Description |
field | FieldDescriptor |
value | Object |
Type | Description |
SeekRequest.Builder |
setNamedTarget(SeekRequest.NamedTarget value)
public SeekRequest.Builder setNamedTarget(SeekRequest.NamedTarget value)
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
Name | Description |
value | SeekRequest.NamedTarget The namedTarget to set. |
Type | Description |
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;
Name | Description |
value | int The enum numeric value on the wire for namedTarget to set. |
Type | Description |
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)
Name | Description |
field | FieldDescriptor |
index | int |
value | Object |
Type | Description |
SeekRequest.Builder |
setUnknownFields(UnknownFieldSet unknownFields)
public final SeekRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Name | Description |
unknownFields | UnknownFieldSet |
Type | Description |
SeekRequest.Builder |