Send feedback
Class MessageResponse.Builder (1.6.1)
Stay organized with collections
Save and categorize content based on your preferences.
Version 1.6.1 keyboard_arrow_down
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
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
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]