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, newMessageScopedGeneratedExtension
equals, findInitializationErrors, getInitializationErrorString, hashCode, toString
toByteArray, toByteString, writeDelimitedTo, writeTo
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, hasField, hasOneof
toByteArray, toByteString, writeDelimitedTo, writeTo
public static final int RECEIVED_MESSAGES_FIELD_NUMBER
public final UnknownFieldSet getUnknownFields()
MessageOrBuilder
UnknownFieldSet
for this message.getUnknownFields
in interface MessageOrBuilder
getUnknownFields
in class GeneratedMessage
public 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 PullResponseOrBuilder
public 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 PullResponseOrBuilder
public 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 PullResponseOrBuilder
public 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 PullResponseOrBuilder
public 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 PullResponseOrBuilder
public final boolean isInitialized()
MessageLiteOrBuilder
isInitialized
in interface MessageLiteOrBuilder
isInitialized
in class GeneratedMessage
public void writeTo(CodedOutputStream output) throws java.io.IOException
MessageLite
output
. This does not
flush or close the stream.writeTo
in interface MessageLite
writeTo
in class GeneratedMessage
java.io.IOException
public int getSerializedSize()
MessageLite
getSerializedSize
in interface MessageLite
getSerializedSize
in class GeneratedMessage
public static PullResponse parseFrom(ByteString data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PullResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PullResponse parseFrom(byte[] data) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PullResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry) throws InvalidProtocolBufferException
InvalidProtocolBufferException
public static PullResponse parseFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static PullResponse parseFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static PullResponse parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
java.io.IOException
public static PullResponse parseDelimitedFrom(java.io.InputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public static PullResponse parseFrom(CodedInputStream input) throws java.io.IOException
java.io.IOException
public static PullResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) throws java.io.IOException
java.io.IOException
public PullResponse.Builder newBuilderForType()
MessageLite
newBuilderForType
in interface Message
newBuilderForType
in interface MessageLite
public static PullResponse.Builder newBuilder()
public static PullResponse.Builder newBuilder(PullResponse prototype)
public PullResponse.Builder toBuilder()
MessageLite
toBuilder
in interface Message
toBuilder
in interface MessageLite
public static PullResponse getDefaultInstance()
public static Parser<PullResponse> parser()
public Parser<PullResponse> getParserForType()
MessageLite
getParserForType
in interface Message
getParserForType
in interface MessageLite
getParserForType
in class GeneratedMessage
public PullResponse getDefaultInstanceForType()
MessageLiteOrBuilder
getDefaultInstance()
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 MessageLiteOrBuilder
getDefaultInstanceForType
in interface MessageOrBuilder