Class MessagePublishResponse.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
com.google.cloud.pubsublite.proto.MessagePublishResponse.Builder
- All Implemented Interfaces:
MessagePublishResponseOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- MessagePublishResponse
public static final class MessagePublishResponse.Builder
extends com.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
implements MessagePublishResponseOrBuilder
Response to a MessagePublishRequest.Protobuf type
google.cloud.pubsublite.v1.MessagePublishResponse-
Method Summary
Modifier and TypeMethodDescriptionaddAllCursorRanges(Iterable<? extends MessagePublishResponse.CursorRange> values) Cursors for messages published in the batch.addCursorRanges(int index, MessagePublishResponse.CursorRange value) Cursors for messages published in the batch.addCursorRanges(int index, MessagePublishResponse.CursorRange.Builder builderForValue) Cursors for messages published in the batch.Cursors for messages published in the batch.addCursorRanges(MessagePublishResponse.CursorRange.Builder builderForValue) Cursors for messages published in the batch.Cursors for messages published in the batch.addCursorRangesBuilder(int index) Cursors for messages published in the batch.addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) build()clear()Cursors for messages published in the batch.clearField(com.google.protobuf.Descriptors.FieldDescriptor field) clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) The cursor of the first published message in the batch.clone()getCursorRanges(int index) Cursors for messages published in the batch.getCursorRangesBuilder(int index) Cursors for messages published in the batch.Cursors for messages published in the batch.intCursors for messages published in the batch.Cursors for messages published in the batch.getCursorRangesOrBuilder(int index) Cursors for messages published in the batch.List<? extends MessagePublishResponse.CursorRangeOrBuilder>Cursors for messages published in the batch.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorThe cursor of the first published message in the batch.The cursor of the first published message in the batch.The cursor of the first published message in the batch.booleanThe cursor of the first published message in the batch.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTablefinal booleanmergeFrom(MessagePublishResponse other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) mergeStartCursor(Cursor value) The cursor of the first published message in the batch.mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) removeCursorRanges(int index) Cursors for messages published in the batch.setCursorRanges(int index, MessagePublishResponse.CursorRange value) Cursors for messages published in the batch.setCursorRanges(int index, MessagePublishResponse.CursorRange.Builder builderForValue) Cursors for messages published in the batch.setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) setStartCursor(Cursor value) The cursor of the first published message in the batch.setStartCursor(Cursor.Builder builderForValue) The cursor of the first published message in the batch.setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) Methods inherited from class com.google.protobuf.GeneratedMessageV3.Builder
getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
clone
- Specified by:
clonein interfacecom.google.protobuf.Message.Builder- Specified by:
clonein interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clonein classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
setField
public MessagePublishResponse.Builder setField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
setFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
clearField
public MessagePublishResponse.Builder clearField(com.google.protobuf.Descriptors.FieldDescriptor field) - Specified by:
clearFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
clearFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
clearOneof
public MessagePublishResponse.Builder clearOneof(com.google.protobuf.Descriptors.OneofDescriptor oneof) - Specified by:
clearOneofin interfacecom.google.protobuf.Message.Builder- Overrides:
clearOneofin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
setRepeatedField
public MessagePublishResponse.Builder setRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, int index, Object value) - Specified by:
setRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
setRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
addRepeatedField
public MessagePublishResponse.Builder addRepeatedField(com.google.protobuf.Descriptors.FieldDescriptor field, Object value) - Specified by:
addRepeatedFieldin interfacecom.google.protobuf.Message.Builder- Overrides:
addRepeatedFieldin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MessagePublishResponse.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
mergeFrom
public MessagePublishResponse.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<MessagePublishResponse.Builder>- Throws:
IOException
-
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;- Specified by:
hasStartCursorin interfaceMessagePublishResponseOrBuilder- Returns:
- Whether the startCursor field is set.
-
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;- Specified by:
getStartCursorin interfaceMessagePublishResponseOrBuilder- Returns:
- The startCursor.
-
setStartCursor
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; -
setStartCursor
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; -
mergeStartCursor
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; -
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; -
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; -
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;- Specified by:
getStartCursorOrBuilderin interfaceMessagePublishResponseOrBuilder
-
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;- Specified by:
getCursorRangesListin interfaceMessagePublishResponseOrBuilder
-
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;- Specified by:
getCursorRangesCountin interfaceMessagePublishResponseOrBuilder
-
getCursorRanges
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;- Specified by:
getCursorRangesin interfaceMessagePublishResponseOrBuilder
-
setCursorRanges
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; -
setCursorRanges
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; -
addCursorRanges
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; -
addCursorRanges
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; -
addCursorRanges
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; -
addCursorRanges
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; -
addAllCursorRanges
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; -
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; -
removeCursorRanges
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; -
getCursorRangesBuilder
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; -
getCursorRangesOrBuilder
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;- Specified by:
getCursorRangesOrBuilderin interfaceMessagePublishResponseOrBuilder
-
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;- Specified by:
getCursorRangesOrBuilderListin interfaceMessagePublishResponseOrBuilder
-
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; -
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; -
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; -
setUnknownFields
public final MessagePublishResponse.Builder setUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
setUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
setUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-
mergeUnknownFields
public final MessagePublishResponse.Builder mergeUnknownFields(com.google.protobuf.UnknownFieldSet unknownFields) - Specified by:
mergeUnknownFieldsin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeUnknownFieldsin classcom.google.protobuf.GeneratedMessageV3.Builder<MessagePublishResponse.Builder>
-