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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public SeekRequest.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public SeekRequest build()
buildPartial()
public SeekRequest buildPartial()
clear()
public SeekRequest.Builder clear()
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;
clearField(Descriptors.FieldDescriptor field)
public SeekRequest.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearNamedTarget()
public SeekRequest.Builder clearNamedTarget()
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public SeekRequest.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clearTarget()
public SeekRequest.Builder clearTarget()
clone()
public SeekRequest.Builder clone()
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.
|
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;
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()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
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.
|
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.
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
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 |
---|
Name | Description |
value | Cursor
|
mergeFrom(SeekRequest other)
public SeekRequest.Builder mergeFrom(SeekRequest other)
public SeekRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public SeekRequest.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final SeekRequest.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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 |
---|
Name | Description |
value | Cursor
|
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;
setField(Descriptors.FieldDescriptor field, Object value)
public SeekRequest.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setNamedTarget(SeekRequest.NamedTarget value)
public SeekRequest.Builder setNamedTarget(SeekRequest.NamedTarget value)
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
setNamedTargetValue(int value)
public SeekRequest.Builder setNamedTargetValue(int value)
A named target.
.google.cloud.pubsublite.v1.SeekRequest.NamedTarget named_target = 1;
Parameter |
---|
Name | Description |
value | int
The enum numeric value on the wire for namedTarget to set.
|
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public SeekRequest.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final SeekRequest.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides