public final class MessageResponse extends GeneratedMessageV3 implements MessageResponseOrBuilder
Response containing a list of messages. Upon delivering a MessageResponse to
the client, the server:
- Updates the stream's delivery cursor to one greater than the cursor of the
last message in the list.
- Subtracts the total number of bytes and messages from the tokens available
to the server.
Protobuf type google.cloud.pubsublite.v1.MessageResponse
Static Fields
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
Field Value
Static Methods
getDefaultInstance()
public static MessageResponse getDefaultInstance()
Returns
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Returns
newBuilder()
public static MessageResponse.Builder newBuilder()
Returns
newBuilder(MessageResponse prototype)
public static MessageResponse.Builder newBuilder(MessageResponse prototype)
Parameter
Returns
public static MessageResponse parseDelimitedFrom(InputStream input)
Parameter
Returns
Exceptions
public static MessageResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(byte[] data)
public static MessageResponse parseFrom(byte[] data)
Parameter
Name | Description |
data | byte[]
|
Returns
Exceptions
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteString data)
public static MessageResponse parseFrom(ByteString data)
Parameter
Returns
Exceptions
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MessageResponse parseFrom(CodedInputStream input)
Parameter
Returns
Exceptions
public static MessageResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
public static MessageResponse parseFrom(InputStream input)
Parameter
Returns
Exceptions
public static MessageResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parseFrom(ByteBuffer data)
public static MessageResponse parseFrom(ByteBuffer data)
Parameter
Returns
Exceptions
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Exceptions
parser()
public static Parser<MessageResponse> parser()
Returns
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter
Returns
Overrides
getDefaultInstanceForType()
public MessageResponse getDefaultInstanceForType()
Returns
getMessages(int index)
public SequencedMessage getMessages(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter
Returns
getMessagesCount()
public int getMessagesCount()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Returns
getMessagesList()
public List<SequencedMessage> getMessagesList()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Returns
getMessagesOrBuilder(int index)
public SequencedMessageOrBuilder getMessagesOrBuilder(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter
Returns
getMessagesOrBuilderList()
public List<? extends SequencedMessageOrBuilder> getMessagesOrBuilderList()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Returns
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> | |
getParserForType()
public Parser<MessageResponse> getParserForType()
Returns
Overrides
getSerializedSize()
public int getSerializedSize()
Returns
Overrides
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Returns
Overrides
hashCode()
Returns
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
newBuilderForType()
public MessageResponse.Builder newBuilderForType()
Returns
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessageResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
Returns
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
Returns
Overrides
toBuilder()
public MessageResponse.Builder toBuilder()
Returns
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Parameter
Overrides
Exceptions