Class PartitionCursor.Builder (1.14.4)

public static final class PartitionCursor.Builder extends GeneratedMessageV3.Builder<PartitionCursor.Builder> implements PartitionCursorOrBuilder

A pair of a Cursor and the partition it is for.

Protobuf type google.cloud.pubsublite.v1.PartitionCursor

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public PartitionCursor.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PartitionCursor.Builder
Overrides

build()

public PartitionCursor build()
Returns
Type Description
PartitionCursor

buildPartial()

public PartitionCursor buildPartial()
Returns
Type Description
PartitionCursor

clear()

public PartitionCursor.Builder clear()
Returns
Type Description
PartitionCursor.Builder
Overrides

clearCursor()

public PartitionCursor.Builder clearCursor()

The value of the cursor.

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

Returns
Type Description
PartitionCursor.Builder

clearField(Descriptors.FieldDescriptor field)

public PartitionCursor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
PartitionCursor.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public PartitionCursor.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
PartitionCursor.Builder
Overrides

clearPartition()

public PartitionCursor.Builder clearPartition()

The partition this is for.

int64 partition = 1;

Returns
Type Description
PartitionCursor.Builder

This builder for chaining.

clone()

public PartitionCursor.Builder clone()
Returns
Type Description
PartitionCursor.Builder
Overrides

getCursor()

public Cursor getCursor()

The value of the cursor.

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

Returns
Type Description
Cursor

The cursor.

getCursorBuilder()

public Cursor.Builder getCursorBuilder()

The value of the cursor.

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

Returns
Type Description
Cursor.Builder

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

The value of the cursor.

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

Returns
Type Description
CursorOrBuilder

getDefaultInstanceForType()

public PartitionCursor getDefaultInstanceForType()
Returns
Type Description
PartitionCursor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getPartition()

public long getPartition()

The partition this is for.

int64 partition = 1;

Returns
Type Description
long

The partition.

hasCursor()

public boolean hasCursor()

The value of the cursor.

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

Returns
Type Description
boolean

Whether the cursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeCursor(Cursor value)

public PartitionCursor.Builder mergeCursor(Cursor value)

The value of the cursor.

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

Parameter
Name Description
value Cursor
Returns
Type Description
PartitionCursor.Builder

mergeFrom(PartitionCursor other)

public PartitionCursor.Builder mergeFrom(PartitionCursor other)
Parameter
Name Description
other PartitionCursor
Returns
Type Description
PartitionCursor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public PartitionCursor.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
PartitionCursor.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public PartitionCursor.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
PartitionCursor.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PartitionCursor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PartitionCursor.Builder
Overrides

setCursor(Cursor value)

public PartitionCursor.Builder setCursor(Cursor value)

The value of the cursor.

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

Parameter
Name Description
value Cursor
Returns
Type Description
PartitionCursor.Builder

setCursor(Cursor.Builder builderForValue)

public PartitionCursor.Builder setCursor(Cursor.Builder builderForValue)

The value of the cursor.

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

Parameter
Name Description
builderForValue Cursor.Builder
Returns
Type Description
PartitionCursor.Builder

setField(Descriptors.FieldDescriptor field, Object value)

public PartitionCursor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
PartitionCursor.Builder
Overrides

setPartition(long value)

public PartitionCursor.Builder setPartition(long value)

The partition this is for.

int64 partition = 1;

Parameter
Name Description
value long

The partition to set.

Returns
Type Description
PartitionCursor.Builder

This builder for chaining.

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

public PartitionCursor.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
PartitionCursor.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final PartitionCursor.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
PartitionCursor.Builder
Overrides