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.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()
Returns
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>
|
Returns
addMessages(SequencedMessage value)
public MessageResponse.Builder addMessages(SequencedMessage value)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter
Returns
addMessages(SequencedMessage.Builder builderForValue)
public MessageResponse.Builder addMessages(SequencedMessage.Builder builderForValue)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter
Returns
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;
Parameters
Returns
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;
Parameters
Returns
addMessagesBuilder()
public SequencedMessage.Builder addMessagesBuilder()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Returns
addMessagesBuilder(int index)
public SequencedMessage.Builder addMessagesBuilder(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public MessageResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public MessageResponse build()
Returns
buildPartial()
public MessageResponse buildPartial()
Returns
clear()
public MessageResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public MessageResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearMessages()
public MessageResponse.Builder clearMessages()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public MessageResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public MessageResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public MessageResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getMessages(int index)
public SequencedMessage getMessages(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter
Returns
getMessagesBuilder(int index)
public SequencedMessage.Builder getMessagesBuilder(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter
Returns
getMessagesBuilderList()
public List<SequencedMessage.Builder> getMessagesBuilderList()
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
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> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(MessageResponse other)
public MessageResponse.Builder mergeFrom(MessageResponse other)
Parameter
Returns
public MessageResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public MessageResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final MessageResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeMessages(int index)
public MessageResponse.Builder removeMessages(int index)
Messages from the topic partition.
repeated .google.cloud.pubsublite.v1.SequencedMessage messages = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public MessageResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameters
Returns
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;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public MessageResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final MessageResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides