Class Cursor.Builder (1.13.5)

public static final class Cursor.Builder extends GeneratedMessageV3.Builder<Cursor.Builder> implements CursorOrBuilder

A cursor that describes the position of a message within a topic partition.

Protobuf type google.cloud.pubsublite.v1.Cursor

Implements

CursorOrBuilder

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Cursor build()
Returns
Type Description
Cursor

buildPartial()

public Cursor buildPartial()
Returns
Type Description
Cursor

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearOffset()

public Cursor.Builder clearOffset()

The offset of a message within a topic partition. Must be greater than or equal 0.

int64 offset = 1;

Returns
Type Description
Cursor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Cursor getDefaultInstanceForType()
Returns
Type Description
Cursor

getDescriptorForType()

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

getOffset()

public long getOffset()

The offset of a message within a topic partition. Must be greater than or equal 0.

int64 offset = 1;

Returns
Type Description
long

The offset.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Cursor other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setOffset(long value)

public Cursor.Builder setOffset(long value)

The offset of a message within a topic partition. Must be greater than or equal 0.

int64 offset = 1;

Parameter
Name Description
value long

The offset to set.

Returns
Type Description
Cursor.Builder

This builder for chaining.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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