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
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > MessageResponseImplements
MessageResponseOrBuilderStatic Fields
MESSAGES_FIELD_NUMBER
public static final int MESSAGES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static MessageResponse getDefaultInstance()
Type | Description |
MessageResponse |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static MessageResponse.Builder newBuilder()
Type | Description |
MessageResponse.Builder |
newBuilder(MessageResponse prototype)
public static MessageResponse.Builder newBuilder(MessageResponse prototype)
Name | Description |
prototype | MessageResponse |
Type | Description |
MessageResponse.Builder |
parseDelimitedFrom(InputStream input)
public static MessageResponse parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MessageResponse |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageResponse |
Type | Description |
IOException |
parseFrom(byte[] data)
public static MessageResponse parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
MessageResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static MessageResponse parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
MessageResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static MessageResponse parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
MessageResponse |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageResponse |
Type | Description |
IOException |
parseFrom(InputStream input)
public static MessageResponse parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
MessageResponse |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageResponse |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static MessageResponse parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
MessageResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static MessageResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
MessageResponse |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<MessageResponse> parser()
Type | Description |
Parser<MessageResponse> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public MessageResponse getDefaultInstanceForType()
Type | Description |
MessageResponse |
getMessages(int index)
public SequencedMessage getMessages(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Name | Description |
index | int |
Type | Description |
SequencedMessage |
getMessagesCount()
public int getMessagesCount()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Type | Description |
int |
getMessagesList()
public List<SequencedMessage> getMessagesList()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Type | Description |
List<SequencedMessage> |
getMessagesOrBuilder(int index)
public SequencedMessageOrBuilder getMessagesOrBuilder(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Name | Description |
index | int |
Type | Description |
SequencedMessageOrBuilder |
getMessagesOrBuilderList()
public List<? extends SequencedMessageOrBuilder> getMessagesOrBuilderList()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Type | Description |
List<? extends com.google.cloud.pubsublite.proto.SequencedMessageOrBuilder> |
getParserForType()
public Parser<MessageResponse> getParserForType()
Type | Description |
Parser<MessageResponse> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
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 MessageResponse.Builder newBuilderForType()
Type | Description |
MessageResponse.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected MessageResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
MessageResponse.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public MessageResponse.Builder toBuilder()
Type | Description |
MessageResponse.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |