public final class PullResponse extends GeneratedMessage implements PullResponseOrBuilder
google.pubsub.v1.PullResponse
Response for the `Pull` method.
| Modifier and Type | Class and Description |
|---|---|
static class |
PullResponse.Builder
Protobuf type
google.pubsub.v1.PullResponse |
GeneratedMessage.ExtendableBuilder<MessageType extends GeneratedMessage.ExtendableMessage,BuilderType extends GeneratedMessage.ExtendableBuilder>, GeneratedMessage.ExtendableMessage<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.ExtendableMessageOrBuilder<MessageType extends GeneratedMessage.ExtendableMessage>, GeneratedMessage.FieldAccessorTable, GeneratedMessage.GeneratedExtension<ContainingType extends Message,Type>| Modifier and Type | Field and Description |
|---|---|
static int |
RECEIVED_MESSAGES_FIELD_NUMBER |
| Modifier and Type | Method and Description |
|---|---|
static PullResponse |
getDefaultInstance() |
PullResponse |
getDefaultInstanceForType()
Get an instance of the type with no fields set.
|
static Descriptors.Descriptor |
getDescriptor() |
Parser<PullResponse> |
getParserForType()
Gets the parser for a message of the same type as this message.
|
ReceivedMessage |
getReceivedMessages(int index)
Received Pub/Sub messages.
|
int |
getReceivedMessagesCount()
Received Pub/Sub messages.
|
java.util.List<ReceivedMessage> |
getReceivedMessagesList()
Received Pub/Sub messages.
|
ReceivedMessageOrBuilder |
getReceivedMessagesOrBuilder(int index)
Received Pub/Sub messages.
|
java.util.List<? extends ReceivedMessageOrBuilder> |
getReceivedMessagesOrBuilderList()
Received Pub/Sub messages.
|
int |
getSerializedSize()
Get the number of bytes required to encode this message.
|
UnknownFieldSet |
getUnknownFields()
Get the
UnknownFieldSet for this message. |
boolean |
isInitialized()
Returns true if all required fields in the message and all embedded
messages are set, false otherwise.
|
static PullResponse.Builder |
newBuilder() |
static PullResponse.Builder |
newBuilder(PullResponse prototype) |
PullResponse.Builder |
newBuilderForType()
Constructs a new builder for a message of the same type as this message.
|
static PullResponse |
parseDelimitedFrom(java.io.InputStream input) |
static PullResponse |
parseDelimitedFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static PullResponse |
parseFrom(byte[] data) |
static PullResponse |
parseFrom(byte[] data,
ExtensionRegistryLite extensionRegistry) |
static PullResponse |
parseFrom(ByteString data) |
static PullResponse |
parseFrom(ByteString data,
ExtensionRegistryLite extensionRegistry) |
static PullResponse |
parseFrom(CodedInputStream input) |
static PullResponse |
parseFrom(CodedInputStream input,
ExtensionRegistryLite extensionRegistry) |
static PullResponse |
parseFrom(java.io.InputStream input) |
static PullResponse |
parseFrom(java.io.InputStream input,
ExtensionRegistryLite extensionRegistry) |
static Parser<PullResponse> |
parser() |
PullResponse.Builder |
toBuilder()
Constructs a builder initialized with the current message.
|
void |
writeTo(CodedOutputStream output)
Serializes the message and writes it to
output. |
getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof, newFileScopedGeneratedExtension, newFileScopedGeneratedExtension, newMessageScopedGeneratedExtension, newMessageScopedGeneratedExtensionequals, findInitializationErrors, getInitializationErrorString, hashCode, toStringtoByteArray, toByteString, writeDelimitedTo, writeTofindInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneoftoByteArray, toByteString, writeDelimitedTo, writeTopublic static final int RECEIVED_MESSAGES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
MessageOrBuilderUnknownFieldSet for this message.getUnknownFields in interface MessageOrBuildergetUnknownFields in class GeneratedMessagepublic static final Descriptors.Descriptor getDescriptor()
public java.util.List<ReceivedMessage> getReceivedMessagesList()
Received Pub/Sub messages. The Pub/Sub system will return zero messages if there are no more available in the backlog. The Pub/Sub system may return fewer than the `maxMessages` requested even if there are more messages available in the backlog.
getReceivedMessagesList in interface PullResponseOrBuilderpublic java.util.List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()
Received Pub/Sub messages. The Pub/Sub system will return zero messages if there are no more available in the backlog. The Pub/Sub system may return fewer than the `maxMessages` requested even if there are more messages available in the backlog.
getReceivedMessagesOrBuilderList in interface PullResponseOrBuilderpublic int getReceivedMessagesCount()
Received Pub/Sub messages. The Pub/Sub system will return zero messages if there are no more available in the backlog. The Pub/Sub system may return fewer than the `maxMessages` requested even if there are more messages available in the backlog.
getReceivedMessagesCount in interface PullResponseOrBuilderpublic ReceivedMessage getReceivedMessages(int index)
Received Pub/Sub messages. The Pub/Sub system will return zero messages if there are no more available in the backlog. The Pub/Sub system may return fewer than the `maxMessages` requested even if there are more messages available in the backlog.
getReceivedMessages in interface PullResponseOrBuilderpublic ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)
Received Pub/Sub messages. The Pub/Sub system will return zero messages if there are no more available in the backlog. The Pub/Sub system may return fewer than the `maxMessages` requested even if there are more messages available in the backlog.
getReceivedMessagesOrBuilder in interface PullResponseOrBuilderpublic final boolean isInitialized()
MessageLiteOrBuilderisInitialized in interface MessageLiteOrBuilderisInitialized in class GeneratedMessagepublic void writeTo(CodedOutputStream output) throws java.io.IOException
MessageLiteoutput. This does not
flush or close the stream.writeTo in interface MessageLitewriteTo in class GeneratedMessagejava.io.IOExceptionpublic int getSerializedSize()
MessageLitegetSerializedSize in interface MessageLitegetSerializedSize in class GeneratedMessagepublic static PullResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PullResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PullResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PullResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferExceptionpublic static PullResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PullResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PullResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PullResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic static PullResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOExceptionpublic static PullResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOExceptionpublic PullResponse.Builder newBuilderForType()
MessageLitenewBuilderForType in interface MessagenewBuilderForType in interface MessageLitepublic static PullResponse.Builder newBuilder()
public static PullResponse.Builder newBuilder(PullResponse prototype)
public PullResponse.Builder toBuilder()
MessageLitetoBuilder in interface MessagetoBuilder in interface MessageLitepublic static PullResponse getDefaultInstance()
public static Parser<PullResponse> parser()
public Parser<PullResponse> getParserForType()
MessageLitegetParserForType in interface MessagegetParserForType in interface MessageLitegetParserForType in class GeneratedMessagepublic PullResponse getDefaultInstanceForType()
MessageLiteOrBuildergetDefaultInstance() method of generated message classes in that
this method is an abstract method of the MessageLite interface
whereas getDefaultInstance() is a static method of a specific
class. They return the same thing.getDefaultInstanceForType in interface MessageLiteOrBuildergetDefaultInstanceForType in interface MessageOrBuilder