Class MessagePublishResponse.Builder (1.14.4)

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

Response to a MessagePublishRequest.

Protobuf type google.cloud.pubsublite.v1.MessagePublishResponse

Static Methods

getDescriptor()

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

Methods

addAllCursorRanges(Iterable<? extends MessagePublishResponse.CursorRange> values)

public MessagePublishResponse.Builder addAllCursorRanges(Iterable<? extends MessagePublishResponse.CursorRange> values)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameter
Name Description
values Iterable<? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange>
Returns
Type Description
MessagePublishResponse.Builder

addCursorRanges(MessagePublishResponse.CursorRange value)

public MessagePublishResponse.Builder addCursorRanges(MessagePublishResponse.CursorRange value)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

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

addCursorRanges(MessagePublishResponse.CursorRange.Builder builderForValue)

public MessagePublishResponse.Builder addCursorRanges(MessagePublishResponse.CursorRange.Builder builderForValue)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

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

addCursorRanges(int index, MessagePublishResponse.CursorRange value)

public MessagePublishResponse.Builder addCursorRanges(int index, MessagePublishResponse.CursorRange value)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameters
Name Description
index int
value MessagePublishResponse.CursorRange
Returns
Type Description
MessagePublishResponse.Builder

addCursorRanges(int index, MessagePublishResponse.CursorRange.Builder builderForValue)

public MessagePublishResponse.Builder addCursorRanges(int index, MessagePublishResponse.CursorRange.Builder builderForValue)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameters
Name Description
index int
builderForValue MessagePublishResponse.CursorRange.Builder
Returns
Type Description
MessagePublishResponse.Builder

addCursorRangesBuilder()

public MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
Type Description
MessagePublishResponse.CursorRange.Builder

addCursorRangesBuilder(int index)

public MessagePublishResponse.CursorRange.Builder addCursorRangesBuilder(int index)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameter
Name Description
index int
Returns
Type Description
MessagePublishResponse.CursorRange.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MessagePublishResponse build()
Returns
Type Description
MessagePublishResponse

buildPartial()

public MessagePublishResponse buildPartial()
Returns
Type Description
MessagePublishResponse

clear()

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

clearCursorRanges()

public MessagePublishResponse.Builder clearCursorRanges()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
Type Description
MessagePublishResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearStartCursor()

public MessagePublishResponse.Builder clearStartCursor()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Returns
Type Description
MessagePublishResponse.Builder

clone()

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

getCursorRanges(int index)

public MessagePublishResponse.CursorRange getCursorRanges(int index)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameter
Name Description
index int
Returns
Type Description
MessagePublishResponse.CursorRange

getCursorRangesBuilder(int index)

public MessagePublishResponse.CursorRange.Builder getCursorRangesBuilder(int index)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameter
Name Description
index int
Returns
Type Description
MessagePublishResponse.CursorRange.Builder

getCursorRangesBuilderList()

public List<MessagePublishResponse.CursorRange.Builder> getCursorRangesBuilderList()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
Type Description
List<Builder>

getCursorRangesCount()

public int getCursorRangesCount()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
Type Description
int

getCursorRangesList()

public List<MessagePublishResponse.CursorRange> getCursorRangesList()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
Type Description
List<CursorRange>

getCursorRangesOrBuilder(int index)

public MessagePublishResponse.CursorRangeOrBuilder getCursorRangesOrBuilder(int index)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameter
Name Description
index int
Returns
Type Description
MessagePublishResponse.CursorRangeOrBuilder

getCursorRangesOrBuilderList()

public List<? extends MessagePublishResponse.CursorRangeOrBuilder> getCursorRangesOrBuilderList()

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Returns
Type Description
List<? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>

getDefaultInstanceForType()

public MessagePublishResponse getDefaultInstanceForType()
Returns
Type Description
MessagePublishResponse

getDescriptorForType()

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

getStartCursor()

public Cursor getStartCursor()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Returns
Type Description
Cursor

The startCursor.

getStartCursorBuilder()

public Cursor.Builder getStartCursorBuilder()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Returns
Type Description
Cursor.Builder

getStartCursorOrBuilder()

public CursorOrBuilder getStartCursorOrBuilder()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Returns
Type Description
CursorOrBuilder

hasStartCursor()

public boolean hasStartCursor()

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be 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 other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeStartCursor(Cursor value)

public MessagePublishResponse.Builder mergeStartCursor(Cursor value)

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Parameter
Name Description
value Cursor
Returns
Type Description
MessagePublishResponse.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

removeCursorRanges(int index)

public MessagePublishResponse.Builder removeCursorRanges(int index)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameter
Name Description
index int
Returns
Type Description
MessagePublishResponse.Builder

setCursorRanges(int index, MessagePublishResponse.CursorRange value)

public MessagePublishResponse.Builder setCursorRanges(int index, MessagePublishResponse.CursorRange value)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameters
Name Description
index int
value MessagePublishResponse.CursorRange
Returns
Type Description
MessagePublishResponse.Builder

setCursorRanges(int index, MessagePublishResponse.CursorRange.Builder builderForValue)

public MessagePublishResponse.Builder setCursorRanges(int index, MessagePublishResponse.CursorRange.Builder builderForValue)

Cursors for messages published in the batch. There will exist multiple ranges when cursors are not contiguous within the batch.

The cursor ranges may not account for all messages in the batch when publish idempotency is enabled. A missing range indicates that cursors could not be determined for messages within the range, as they were deduplicated and the necessary data was not available at publish time. These messages will have offsets when received by a subscriber.

repeated .google.cloud.pubsublite.v1.MessagePublishResponse.CursorRange cursor_ranges = 2;

Parameters
Name Description
index int
builderForValue MessagePublishResponse.CursorRange.Builder
Returns
Type Description
MessagePublishResponse.Builder

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setStartCursor(Cursor value)

public MessagePublishResponse.Builder setStartCursor(Cursor value)

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

Parameter
Name Description
value Cursor
Returns
Type Description
MessagePublishResponse.Builder

setStartCursor(Cursor.Builder builderForValue)

public MessagePublishResponse.Builder setStartCursor(Cursor.Builder builderForValue)

The cursor of the first published message in the batch. The cursors for any remaining messages in the batch are guaranteed to be sequential.

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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