Class PartitionCursor.Builder (1.12.1)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public PartitionCursor build()
Returns
TypeDescription
PartitionCursor

buildPartial()

public PartitionCursor buildPartial()
Returns
TypeDescription
PartitionCursor

clear()

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

clearCursor()

public PartitionCursor.Builder clearCursor()

The value of the cursor.

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

Returns
TypeDescription
PartitionCursor.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearPartition()

public PartitionCursor.Builder clearPartition()

The partition this is for.

int64 partition = 1;

Returns
TypeDescription
PartitionCursor.Builder

This builder for chaining.

clone()

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

getCursor()

public Cursor getCursor()

The value of the cursor.

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

Returns
TypeDescription
Cursor

The cursor.

getCursorBuilder()

public Cursor.Builder getCursorBuilder()

The value of the cursor.

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

Returns
TypeDescription
Cursor.Builder

getCursorOrBuilder()

public CursorOrBuilder getCursorOrBuilder()

The value of the cursor.

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

Returns
TypeDescription
CursorOrBuilder

getDefaultInstanceForType()

public PartitionCursor getDefaultInstanceForType()
Returns
TypeDescription
PartitionCursor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getPartition()

public long getPartition()

The partition this is for.

int64 partition = 1;

Returns
TypeDescription
long

The partition.

hasCursor()

public boolean hasCursor()

The value of the cursor.

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

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 PartitionCursor.Builder mergeCursor(Cursor value)

The value of the cursor.

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

Parameter
NameDescription
valueCursor
Returns
TypeDescription
PartitionCursor.Builder

mergeFrom(PartitionCursor other)

public PartitionCursor.Builder mergeFrom(PartitionCursor other)
Parameter
NameDescription
otherPartitionCursor
Returns
TypeDescription
PartitionCursor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final PartitionCursor.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
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
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
PartitionCursor.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

setPartition(long value)

public PartitionCursor.Builder setPartition(long value)

The partition this is for.

int64 partition = 1;

Parameter
NameDescription
valuelong

The partition to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
PartitionCursor.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

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