Class MessagePublishResponse.CursorRange.Builder (1.13.6)

public static final class MessagePublishResponse.CursorRange.Builder extends GeneratedMessageV3.Builder<MessagePublishResponse.CursorRange.Builder> implements MessagePublishResponse.CursorRangeOrBuilder

Cursors for a subrange of published messages.

Protobuf type google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MessagePublishResponse.CursorRange build()
Returns
Type Description
MessagePublishResponse.CursorRange

buildPartial()

public MessagePublishResponse.CursorRange buildPartial()
Returns
Type Description
MessagePublishResponse.CursorRange

clear()

public MessagePublishResponse.CursorRange.Builder clear()
Returns
Type Description
MessagePublishResponse.CursorRange.Builder
Overrides

clearEndIndex()

public MessagePublishResponse.CursorRange.Builder clearEndIndex()

Index of the last message in this range. Exclusive.

int32 end_index = 3;

Returns
Type Description
MessagePublishResponse.CursorRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartCursor()

public MessagePublishResponse.CursorRange.Builder clearStartCursor()

The cursor of the message at the start index. The cursors for remaining messages up to the end index (exclusive) are sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
Type Description
MessagePublishResponse.CursorRange.Builder

clearStartIndex()

public MessagePublishResponse.CursorRange.Builder clearStartIndex()

Index of the message in the published batch that corresponds to the start cursor. Inclusive.

int32 start_index = 2;

Returns
Type Description
MessagePublishResponse.CursorRange.Builder

This builder for chaining.

clone()

public MessagePublishResponse.CursorRange.Builder clone()
Returns
Type Description
MessagePublishResponse.CursorRange.Builder
Overrides

getDefaultInstanceForType()

public MessagePublishResponse.CursorRange getDefaultInstanceForType()
Returns
Type Description
MessagePublishResponse.CursorRange

getDescriptorForType()

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

getEndIndex()

public int getEndIndex()

Index of the last message in this range. Exclusive.

int32 end_index = 3;

Returns
Type Description
int

The endIndex.

getStartCursor()

public Cursor getStartCursor()

The cursor of the message at the start index. The cursors for remaining messages up to the end index (exclusive) are sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
Type Description
Cursor

The startCursor.

getStartCursorBuilder()

public Cursor.Builder getStartCursorBuilder()

The cursor of the message at the start index. The cursors for remaining messages up to the end index (exclusive) are sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
Type Description
Cursor.Builder

getStartCursorOrBuilder()

public CursorOrBuilder getStartCursorOrBuilder()

The cursor of the message at the start index. The cursors for remaining messages up to the end index (exclusive) are sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
Type Description
CursorOrBuilder

getStartIndex()

public int getStartIndex()

Index of the message in the published batch that corresponds to the start cursor. Inclusive.

int32 start_index = 2;

Returns
Type Description
int

The startIndex.

hasStartCursor()

public boolean hasStartCursor()

The cursor of the message at the start index. The cursors for remaining messages up to the end index (exclusive) are sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Returns
Type Description
boolean

Whether the startCursor field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(MessagePublishResponse.CursorRange other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartCursor(Cursor value)

public MessagePublishResponse.CursorRange.Builder mergeStartCursor(Cursor value)

The cursor of the message at the start index. The cursors for remaining messages up to the end index (exclusive) are sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Parameter
Name Description
value Cursor
Returns
Type Description
MessagePublishResponse.CursorRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setEndIndex(int value)

public MessagePublishResponse.CursorRange.Builder setEndIndex(int value)

Index of the last message in this range. Exclusive.

int32 end_index = 3;

Parameter
Name Description
value int

The endIndex to set.

Returns
Type Description
MessagePublishResponse.CursorRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartCursor(Cursor value)

public MessagePublishResponse.CursorRange.Builder setStartCursor(Cursor value)

The cursor of the message at the start index. The cursors for remaining messages up to the end index (exclusive) are sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Parameter
Name Description
value Cursor
Returns
Type Description
MessagePublishResponse.CursorRange.Builder

setStartCursor(Cursor.Builder builderForValue)

public MessagePublishResponse.CursorRange.Builder setStartCursor(Cursor.Builder builderForValue)

The cursor of the message at the start index. The cursors for remaining messages up to the end index (exclusive) are sequential.

.google.cloud.pubsublite.v1.Cursor start_cursor = 1;

Parameter
Name Description
builderForValue Cursor.Builder
Returns
Type Description
MessagePublishResponse.CursorRange.Builder

setStartIndex(int value)

public MessagePublishResponse.CursorRange.Builder setStartIndex(int value)

Index of the message in the published batch that corresponds to the start cursor. Inclusive.

int32 start_index = 2;

Parameter
Name Description
value int

The startIndex to set.

Returns
Type Description
MessagePublishResponse.CursorRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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