Class Cursor.Builder (1.6.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public Cursor build()
Returns
TypeDescription
Cursor

buildPartial()

public Cursor buildPartial()
Returns
TypeDescription
Cursor

clear()

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

clearField(Descriptors.FieldDescriptor field)

public Cursor.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
Cursor.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

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

getDefaultInstanceForType()

public Cursor getDefaultInstanceForType()
Returns
TypeDescription
Cursor

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
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
TypeDescription
long

The offset.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Cursor other)

public Cursor.Builder mergeFrom(Cursor other)
Parameter
NameDescription
otherCursor
Returns
TypeDescription
Cursor.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

public Cursor.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valuelong

The offset to set.

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

setUnknownFields(UnknownFieldSet unknownFields)

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