public static final class PullResponse.Builder extends GeneratedMessageV3.Builder<PullResponse.Builder> implements PullResponseOrBuilder
Response for the Pull
method.
Protobuf type google.pubsub.v1.PullResponse
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
addAllReceivedMessages(Iterable<? extends ReceivedMessage> values)
public PullResponse.Builder addAllReceivedMessages(Iterable<? extends ReceivedMessage> values)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameter
Name | Description |
values | Iterable<? extends com.google.pubsub.v1.ReceivedMessage>
|
Returns
addReceivedMessages(ReceivedMessage value)
public PullResponse.Builder addReceivedMessages(ReceivedMessage value)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameter
Returns
addReceivedMessages(ReceivedMessage.Builder builderForValue)
public PullResponse.Builder addReceivedMessages(ReceivedMessage.Builder builderForValue)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameter
Returns
addReceivedMessages(int index, ReceivedMessage value)
public PullResponse.Builder addReceivedMessages(int index, ReceivedMessage value)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameters
Returns
addReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
public PullResponse.Builder addReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameters
Returns
addReceivedMessagesBuilder()
public ReceivedMessage.Builder addReceivedMessagesBuilder()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
addReceivedMessagesBuilder(int index)
public ReceivedMessage.Builder addReceivedMessagesBuilder(int index)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameter
Returns
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PullResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public PullResponse build()
Returns
buildPartial()
public PullResponse buildPartial()
Returns
clear()
public PullResponse.Builder clear()
Returns
Overrides
clearField(Descriptors.FieldDescriptor field)
public PullResponse.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PullResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clearReceivedMessages()
public PullResponse.Builder clearReceivedMessages()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
clone()
public PullResponse.Builder clone()
Returns
Overrides
getDefaultInstanceForType()
public PullResponse getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getReceivedMessages(int index)
public ReceivedMessage getReceivedMessages(int index)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameter
Returns
getReceivedMessagesBuilder(int index)
public ReceivedMessage.Builder getReceivedMessagesBuilder(int index)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameter
Returns
getReceivedMessagesBuilderList()
public List<ReceivedMessage.Builder> getReceivedMessagesBuilderList()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
getReceivedMessagesCount()
public int getReceivedMessagesCount()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
getReceivedMessagesList()
public List<ReceivedMessage> getReceivedMessagesList()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
getReceivedMessagesOrBuilder(int index)
public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameter
Returns
getReceivedMessagesOrBuilderList()
public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Returns
Type | Description |
List<? extends com.google.pubsub.v1.ReceivedMessageOrBuilder> | |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
public PullResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public PullResponse.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeFrom(PullResponse other)
public PullResponse.Builder mergeFrom(PullResponse other)
Parameter
Returns
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PullResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides
removeReceivedMessages(int index)
public PullResponse.Builder removeReceivedMessages(int index)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameter
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public PullResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
setReceivedMessages(int index, ReceivedMessage value)
public PullResponse.Builder setReceivedMessages(int index, ReceivedMessage value)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameters
Returns
setReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
public PullResponse.Builder setReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog. For JSON, the response can be entirely
empty. The Pub/Sub system may return fewer than the maxMessages
requested
even if there are more messages available in the backlog.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Parameters
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PullResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PullResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides