public static final class MessageResponse.Builder extends GeneratedMessageV3.Builder<MessageResponse.Builder> 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
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Methods
addAllMessages(Iterable<? extends SequencedMessage> values)
public MessageResponse.Builder addAllMessages(Iterable<? extends SequencedMessage> values)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.cloud.pubsublite.proto.SequencedMessage>
|
addMessages(SequencedMessage value)
public MessageResponse.Builder addMessages(SequencedMessage value)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
addMessages(SequencedMessage.Builder builderForValue)
public MessageResponse.Builder addMessages(SequencedMessage.Builder builderForValue)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
addMessages(int index, SequencedMessage value)
public MessageResponse.Builder addMessages(int index, SequencedMessage value)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
addMessages(int index, SequencedMessage.Builder builderForValue)
public MessageResponse.Builder addMessages(int index, SequencedMessage.Builder builderForValue)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
addMessagesBuilder()
public SequencedMessage.Builder addMessagesBuilder()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
addMessagesBuilder(int index)
public SequencedMessage.Builder addMessagesBuilder(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter |
Name |
Description |
index |
int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MessageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public MessageResponse build()
buildPartial()
public MessageResponse buildPartial()
clear()
public MessageResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public MessageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearMessages()
public MessageResponse.Builder clearMessages()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
clearOneof(Descriptors.OneofDescriptor oneof)
public MessageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Overrides
clone()
public MessageResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public MessageResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getMessages(int index)
public SequencedMessage getMessages(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter |
Name |
Description |
index |
int
|
getMessagesBuilder(int index)
public SequencedMessage.Builder getMessagesBuilder(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter |
Name |
Description |
index |
int
|
getMessagesBuilderList()
public List<SequencedMessage.Builder> getMessagesBuilderList()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
getMessagesCount()
public int getMessagesCount()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Returns |
Type |
Description |
int |
|
getMessagesList()
public List<SequencedMessage> getMessagesList()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
getMessagesOrBuilder(int index)
public SequencedMessageOrBuilder getMessagesOrBuilder(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter |
Name |
Description |
index |
int
|
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> |
|
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
mergeFrom(MessageResponse other)
public MessageResponse.Builder mergeFrom(MessageResponse other)
public MessageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public MessageResponse.Builder mergeFrom(Message other)
Parameter |
Name |
Description |
other |
Message
|
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MessageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Overrides
removeMessages(int index)
public MessageResponse.Builder removeMessages(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter |
Name |
Description |
index |
int
|
setField(Descriptors.FieldDescriptor field, Object value)
public MessageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Overrides
setMessages(int index, SequencedMessage value)
public MessageResponse.Builder setMessages(int index, SequencedMessage value)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
setMessages(int index, SequencedMessage.Builder builderForValue)
public MessageResponse.Builder setMessages(int index, SequencedMessage.Builder builderForValue)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MessageResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MessageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides