public final class PullResponse extends GeneratedMessageV3 implements PullResponseOrBuilder
Response for the Pull
method.
Protobuf type google.pubsub.v1.PullResponse
Inherited Members
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT)
com.google.protobuf.GeneratedMessageV3.<ListT>makeMutableCopy(ListT,int)
com.google.protobuf.GeneratedMessageV3.<T>emptyList(java.lang.Class<T>)
com.google.protobuf.GeneratedMessageV3.internalGetMapFieldReflection(int)
Static Fields
RECEIVED_MESSAGES_FIELD_NUMBER
public static final int RECEIVED_MESSAGES_FIELD_NUMBER
Field Value |
---|
Type | Description |
int | |
Static Methods
getDefaultInstance()
public static PullResponse getDefaultInstance()
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
newBuilder()
public static PullResponse.Builder newBuilder()
newBuilder(PullResponse prototype)
public static PullResponse.Builder newBuilder(PullResponse prototype)
public static PullResponse parseDelimitedFrom(InputStream input)
public static PullResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(byte[] data)
public static PullResponse parseFrom(byte[] data)
Parameter |
---|
Name | Description |
data | byte[]
|
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static PullResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteString data)
public static PullResponse parseFrom(ByteString data)
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PullResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static PullResponse parseFrom(CodedInputStream input)
public static PullResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static PullResponse parseFrom(InputStream input)
public static PullResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
parseFrom(ByteBuffer data)
public static PullResponse parseFrom(ByteBuffer data)
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static PullResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
parser()
public static Parser<PullResponse> parser()
Methods
equals(Object obj)
public boolean equals(Object obj)
Parameter |
---|
Name | Description |
obj | Object
|
Overrides
getDefaultInstanceForType()
public PullResponse getDefaultInstanceForType()
getParserForType()
public Parser<PullResponse> getParserForType()
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
|
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> | |
getSerializedSize()
public int getSerializedSize()
Returns |
---|
Type | Description |
int | |
Overrides
hashCode()
Returns |
---|
Type | Description |
int | |
Overrides
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Overrides
isInitialized()
public final boolean isInitialized()
Overrides
newBuilderForType()
public PullResponse.Builder newBuilderForType()
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected PullResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Overrides
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Overrides
toBuilder()
public PullResponse.Builder toBuilder()
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Overrides