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.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
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, or if no messages could be returned
before the request timeout. 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>
|
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, or if no messages could be returned
before the request timeout. 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;
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, or if no messages could be returned
before the request timeout. 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;
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, or if no messages could be returned
before the request timeout. 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;
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, or if no messages could be returned
before the request timeout. 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;
addReceivedMessagesBuilder()
public ReceivedMessage.Builder addReceivedMessagesBuilder()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog, or if no messages could be returned
before the request timeout. 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;
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, or if no messages could be returned
before the request timeout. 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 |
index | int
|
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public PullResponse.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Overrides
build()
public PullResponse build()
buildPartial()
public PullResponse buildPartial()
clear()
public PullResponse.Builder clear()
Overrides
clearField(Descriptors.FieldDescriptor field)
public PullResponse.Builder clearField(Descriptors.FieldDescriptor field)
Overrides
clearOneof(Descriptors.OneofDescriptor oneof)
public PullResponse.Builder clearOneof(Descriptors.OneofDescriptor oneof)
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, or if no messages could be returned
before the request timeout. 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;
clone()
public PullResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public PullResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
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, or if no messages could be returned
before the request timeout. 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 |
index | int
|
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, or if no messages could be returned
before the request timeout. 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 |
index | int
|
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, or if no messages could be returned
before the request timeout. 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;
getReceivedMessagesCount()
public int getReceivedMessagesCount()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog, or if no messages could be returned
before the request timeout. 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 |
int | |
getReceivedMessagesList()
public List<ReceivedMessage> getReceivedMessagesList()
Received Pub/Sub messages. The list will be empty if there are no more
messages available in the backlog, or if no messages could be returned
before the request timeout. 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;
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, or if no messages could be returned
before the request timeout. 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 |
index | int
|
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, or if no messages could be returned
before the request timeout. 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()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
public PullResponse.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Overrides
mergeFrom(Message other)
public PullResponse.Builder mergeFrom(Message other)
Parameter |
---|
Name | Description |
other | Message
|
Overrides
mergeFrom(PullResponse other)
public PullResponse.Builder mergeFrom(PullResponse other)
mergeUnknownFields(UnknownFieldSet unknownFields)
public final PullResponse.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
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, or if no messages could be returned
before the request timeout. 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 |
index | int
|
setField(Descriptors.FieldDescriptor field, Object value)
public PullResponse.Builder setField(Descriptors.FieldDescriptor field, Object value)
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, or if no messages could be returned
before the request timeout. 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;
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, or if no messages could be returned
before the request timeout. 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;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public PullResponse.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final PullResponse.Builder setUnknownFields(UnknownFieldSet unknownFields)
Overrides