Class MessagePublishResponse.CursorRange.Builder (1.10.0)

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MessagePublishResponse.CursorRange build()
Returns
TypeDescription
MessagePublishResponse.CursorRange

buildPartial()

public MessagePublishResponse.CursorRange buildPartial()
Returns
TypeDescription
MessagePublishResponse.CursorRange

clear()

public MessagePublishResponse.CursorRange.Builder clear()
Returns
TypeDescription
MessagePublishResponse.CursorRange.Builder
Overrides

clearEndIndex()

public MessagePublishResponse.CursorRange.Builder clearEndIndex()

Index of the last message in this range. Exclusive.

int32 end_index = 3;

Returns
TypeDescription
MessagePublishResponse.CursorRange.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

public MessagePublishResponse.CursorRange.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
MessagePublishResponse.CursorRange.Builder

This builder for chaining.

clone()

public MessagePublishResponse.CursorRange.Builder clone()
Returns
TypeDescription
MessagePublishResponse.CursorRange.Builder
Overrides

getDefaultInstanceForType()

public MessagePublishResponse.CursorRange getDefaultInstanceForType()
Returns
TypeDescription
MessagePublishResponse.CursorRange

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getEndIndex()

public int getEndIndex()

Index of the last message in this range. Exclusive.

int32 end_index = 3;

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
boolean

Whether the startCursor field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(MessagePublishResponse.CursorRange other)

public MessagePublishResponse.CursorRange.Builder mergeFrom(MessagePublishResponse.CursorRange other)
Parameter
NameDescription
otherMessagePublishResponse.CursorRange
Returns
TypeDescription
MessagePublishResponse.CursorRange.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public MessagePublishResponse.CursorRange.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
MessagePublishResponse.CursorRange.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

public final MessagePublishResponse.CursorRange.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valueint

The endIndex to set.

Returns
TypeDescription
MessagePublishResponse.CursorRange.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public MessagePublishResponse.CursorRange.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
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
NameDescription
valueCursor
Returns
TypeDescription
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
NameDescription
builderForValueCursor.Builder
Returns
TypeDescription
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
NameDescription
valueint

The startIndex to set.

Returns
TypeDescription
MessagePublishResponse.CursorRange.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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