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)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
values |
Iterable<? extends com.google.pubsub.v1.ReceivedMessage>
|
addReceivedMessages(ReceivedMessage value)
public PullResponse.Builder addReceivedMessages(ReceivedMessage value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
addReceivedMessages(ReceivedMessage.Builder builderForValue)
public PullResponse.Builder addReceivedMessages(ReceivedMessage.Builder builderForValue)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
addReceivedMessages(int index, ReceivedMessage value)
public PullResponse.Builder addReceivedMessages(int index, ReceivedMessage value)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
addReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
public PullResponse.Builder addReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
addReceivedMessagesBuilder()
public ReceivedMessage.Builder addReceivedMessagesBuilder()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
addReceivedMessagesBuilder(int index)
public ReceivedMessage.Builder addReceivedMessagesBuilder(int index)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
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()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
clone()
public PullResponse.Builder clone()
Overrides
getDefaultInstanceForType()
public PullResponse getDefaultInstanceForType()
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Overrides
getReceivedMessages(int index)
public ReceivedMessage getReceivedMessages(int index)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getReceivedMessagesBuilder(int index)
public ReceivedMessage.Builder getReceivedMessagesBuilder(int index)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getReceivedMessagesBuilderList()
public List<ReceivedMessage.Builder> getReceivedMessagesBuilderList()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getReceivedMessagesCount()
public int getReceivedMessagesCount()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
|
getReceivedMessagesList()
public List<ReceivedMessage> getReceivedMessagesList()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
getReceivedMessagesOrBuilder(int index)
public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
index |
int
|
getReceivedMessagesOrBuilderList()
public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
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)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
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)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
setReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
public PullResponse.Builder setReceivedMessages(int index, ReceivedMessage.Builder builderForValue)
Optional. 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 [(.google.api.field_behavior) = OPTIONAL];
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