public final class MessagePublishResponse extends GeneratedMessageV3 implements MessagePublishResponseOrBuilder
Response to a MessagePublishRequest.
Protobuf type google.cloud.pubsublite.v1.MessagePublishResponse
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MessagePublishResponseImplements
MessagePublishResponseOrBuilderStatic Fields
CURSOR_RANGES_FIELD_NUMBER
public static final int CURSOR_RANGES_FIELD_NUMBER
Type | Description |
int |
START_CURSOR_FIELD_NUMBER
public static final int START_CURSOR_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MessagePublishResponse getDefaultInstance()
Type | Description |
MessagePublishResponse |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static MessagePublishResponse.Builder newBuilder()
Type | Description |
MessagePublishResponse.Builder |
newBuilder(MessagePublishResponse prototype)
public static MessagePublishResponse.Builder newBuilder(MessagePublishResponse prototype)
Name | Description |
prototype | MessagePublishResponse |
Type | Description |
MessagePublishResponse.Builder |
parseDelimitedFrom(InputStream input)
public static MessagePublishResponse parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MessagePublishResponse |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishResponse |
Type | Description |
IOException |
parseFrom(byte[] data)
public static MessagePublishResponse parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
MessagePublishResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MessagePublishResponse parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
MessagePublishResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MessagePublishResponse parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
MessagePublishResponse |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishResponse |
Type | Description |
IOException |
parseFrom(InputStream input)
public static MessagePublishResponse parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MessagePublishResponse |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessagePublishResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishResponse |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MessagePublishResponse parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
MessagePublishResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessagePublishResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessagePublishResponse |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MessagePublishResponse> parser()
Type | Description |
Parser<MessagePublishResponse> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
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;
Name | Description |
index | int |
Type | Description |
MessagePublishResponse.CursorRange |
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;
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;
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;
Name | Description |
index | int |
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;
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.MessagePublishResponse.CursorRangeOrBuilder> |
getDefaultInstanceForType()
public MessagePublishResponse getDefaultInstanceForType()
Type | Description |
MessagePublishResponse |
getParserForType()
public Parser<MessagePublishResponse> getParserForType()
Type | Description |
Parser<MessagePublishResponse> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
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;
Type | Description |
Cursor | The startCursor. |
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;
Type | Description |
CursorOrBuilder |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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;
Type | Description |
boolean | Whether the startCursor field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public MessagePublishResponse.Builder newBuilderForType()
Type | Description |
MessagePublishResponse.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessagePublishResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
MessagePublishResponse.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public MessagePublishResponse.Builder toBuilder()
Type | Description |
MessagePublishResponse.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |