Class CommitCursorRequest.Builder (1.11.1)

public static final class CommitCursorRequest.Builder extends GeneratedMessageV3.Builder<CommitCursorRequest.Builder> implements CommitCursorRequestOrBuilder

Request for CommitCursor.

Protobuf type google.cloud.pubsublite.v1.CommitCursorRequest

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public CommitCursorRequest build()
Returns
TypeDescription
CommitCursorRequest

buildPartial()

public CommitCursorRequest buildPartial()
Returns
TypeDescription
CommitCursorRequest

clear()

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

clearCursor()

public CommitCursorRequest.Builder clearCursor()

The new value for the committed cursor.

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

Returns
TypeDescription
CommitCursorRequest.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartition()

public CommitCursorRequest.Builder clearPartition()

The partition for which to update the cursor. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Returns
TypeDescription
CommitCursorRequest.Builder

This builder for chaining.

clearSubscription()

public CommitCursorRequest.Builder clearSubscription()

The subscription for which to update the cursor.

string subscription = 1;

Returns
TypeDescription
CommitCursorRequest.Builder

This builder for chaining.

clone()

public CommitCursorRequest.Builder clone()
Returns
TypeDescription
CommitCursorRequest.Builder
Overrides

getCursor()

public Cursor getCursor()

The new value for the committed cursor.

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

Returns
TypeDescription
Cursor

The cursor.

getCursorBuilder()

public Cursor.Builder getCursorBuilder()

The new value for the committed cursor.

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

Returns
TypeDescription
Cursor.Builder

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

The new value for the committed cursor.

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

Returns
TypeDescription
CursorOrBuilder

getDefaultInstanceForType()

public CommitCursorRequest getDefaultInstanceForType()
Returns
TypeDescription
CommitCursorRequest

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPartition()

public long getPartition()

The partition for which to update the cursor. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Returns
TypeDescription
long

The partition.

getSubscription()

public String getSubscription()

The subscription for which to update the cursor.

string subscription = 1;

Returns
TypeDescription
String

The subscription.

getSubscriptionBytes()

public ByteString getSubscriptionBytes()

The subscription for which to update the cursor.

string subscription = 1;

Returns
TypeDescription
ByteString

The bytes for subscription.

hasCursor()

public boolean hasCursor()

The new value for the committed cursor.

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

Returns
TypeDescription
boolean

Whether the cursor 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 CommitCursorRequest.Builder mergeCursor(Cursor value)

The new value for the committed cursor.

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

Parameter
NameDescription
valueCursor
Returns
TypeDescription
CommitCursorRequest.Builder

mergeFrom(CommitCursorRequest other)

public CommitCursorRequest.Builder mergeFrom(CommitCursorRequest other)
Parameter
NameDescription
otherCommitCursorRequest
Returns
TypeDescription
CommitCursorRequest.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setCursor(Cursor value)

public CommitCursorRequest.Builder setCursor(Cursor value)

The new value for the committed cursor.

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

Parameter
NameDescription
valueCursor
Returns
TypeDescription
CommitCursorRequest.Builder

setCursor(Cursor.Builder builderForValue)

public CommitCursorRequest.Builder setCursor(Cursor.Builder builderForValue)

The new value for the committed cursor.

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

Parameter
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
CommitCursorRequest.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPartition(long value)

public CommitCursorRequest.Builder setPartition(long value)

The partition for which to update the cursor. Partitions are zero indexed, so partition must be in the range [0, topic.num_partitions).

int64 partition = 2;

Parameter
NameDescription
valuelong

The partition to set.

Returns
TypeDescription
CommitCursorRequest.Builder

This builder for chaining.

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

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

setSubscription(String value)

public CommitCursorRequest.Builder setSubscription(String value)

The subscription for which to update the cursor.

string subscription = 1;

Parameter
NameDescription
valueString

The subscription to set.

Returns
TypeDescription
CommitCursorRequest.Builder

This builder for chaining.

setSubscriptionBytes(ByteString value)

public CommitCursorRequest.Builder setSubscriptionBytes(ByteString value)

The subscription for which to update the cursor.

string subscription = 1;

Parameter
NameDescription
valueByteString

The bytes for subscription to set.

Returns
TypeDescription
CommitCursorRequest.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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