Class MessagePublishResponse.Builder (1.12.0)

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
TypeDescription
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
NameDescription
valuesIterable<? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRange>
Returns
TypeDescription
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
NameDescription
valueMessagePublishResponse.CursorRange
Returns
TypeDescription
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
NameDescription
builderForValueMessagePublishResponse.CursorRange.Builder
Returns
TypeDescription
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
NameDescription
indexint
valueMessagePublishResponse.CursorRange
Returns
TypeDescription
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
NameDescription
indexint
builderForValueMessagePublishResponse.CursorRange.Builder
Returns
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
MessagePublishResponse.CursorRange.Builder

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public MessagePublishResponse build()
Returns
TypeDescription
MessagePublishResponse

buildPartial()

public MessagePublishResponse buildPartial()
Returns
TypeDescription
MessagePublishResponse

clear()

public MessagePublishResponse.Builder clear()
Returns
TypeDescription
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
TypeDescription
MessagePublishResponse.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clone()

public MessagePublishResponse.Builder clone()
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
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
NameDescription
indexint
Returns
TypeDescription
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
TypeDescription
List<? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder>

getDefaultInstanceForType()

public MessagePublishResponse getDefaultInstanceForType()
Returns
TypeDescription
MessagePublishResponse

getDescriptorForType()

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

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

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