public final class StreamingPullResponse extends GeneratedMessageV3 implements StreamingPullResponseOrBuilder
Response for the StreamingPull
method. This response is used to stream
messages from the server to the client.
Protobuf type google.pubsub.v1.StreamingPullResponse
Inheritance
Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessageV3 > StreamingPullResponseImplements
StreamingPullResponseOrBuilderStatic Fields
RECEIVED_MESSAGES_FIELD_NUMBER
public static final int RECEIVED_MESSAGES_FIELD_NUMBER
Type | Description |
int |
SUBSCRIPTION_PROPERTIES_FIELD_NUMBER
public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER
Type | Description |
int |
Static Methods
getDefaultInstance()
public static StreamingPullResponse getDefaultInstance()
Type | Description |
StreamingPullResponse |
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()
Type | Description |
Descriptor |
newBuilder()
public static StreamingPullResponse.Builder newBuilder()
Type | Description |
StreamingPullResponse.Builder |
newBuilder(StreamingPullResponse prototype)
public static StreamingPullResponse.Builder newBuilder(StreamingPullResponse prototype)
Name | Description |
prototype | StreamingPullResponse |
Type | Description |
StreamingPullResponse.Builder |
parseDelimitedFrom(InputStream input)
public static StreamingPullResponse parseDelimitedFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
StreamingPullResponse |
Type | Description |
IOException |
parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingPullResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StreamingPullResponse |
Type | Description |
IOException |
parseFrom(byte[] data)
public static StreamingPullResponse parseFrom(byte[] data)
Name | Description |
data | byte[] |
Type | Description |
StreamingPullResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
public static StreamingPullResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | byte[] |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StreamingPullResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data)
public static StreamingPullResponse parseFrom(ByteString data)
Name | Description |
data | ByteString |
Type | Description |
StreamingPullResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
public static StreamingPullResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteString |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StreamingPullResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(CodedInputStream input)
public static StreamingPullResponse parseFrom(CodedInputStream input)
Name | Description |
input | CodedInputStream |
Type | Description |
StreamingPullResponse |
Type | Description |
IOException |
parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingPullResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | CodedInputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StreamingPullResponse |
Type | Description |
IOException |
parseFrom(InputStream input)
public static StreamingPullResponse parseFrom(InputStream input)
Name | Description |
input | InputStream |
Type | Description |
StreamingPullResponse |
Type | Description |
IOException |
parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
public static StreamingPullResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Name | Description |
input | InputStream |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StreamingPullResponse |
Type | Description |
IOException |
parseFrom(ByteBuffer data)
public static StreamingPullResponse parseFrom(ByteBuffer data)
Name | Description |
data | ByteBuffer |
Type | Description |
StreamingPullResponse |
Type | Description |
InvalidProtocolBufferException |
parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
public static StreamingPullResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Name | Description |
data | ByteBuffer |
extensionRegistry | ExtensionRegistryLite |
Type | Description |
StreamingPullResponse |
Type | Description |
InvalidProtocolBufferException |
parser()
public static Parser<StreamingPullResponse> parser()
Type | Description |
Parser<StreamingPullResponse> |
Methods
equals(Object obj)
public boolean equals(Object obj)
Name | Description |
obj | Object |
Type | Description |
boolean |
getDefaultInstanceForType()
public StreamingPullResponse getDefaultInstanceForType()
Type | Description |
StreamingPullResponse |
getParserForType()
public Parser<StreamingPullResponse> getParserForType()
Type | Description |
Parser<StreamingPullResponse> |
getReceivedMessages(int index)
public ReceivedMessage getReceivedMessages(int index)
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Name | Description |
index | int |
Type | Description |
ReceivedMessage |
getReceivedMessagesCount()
public int getReceivedMessagesCount()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Type | Description |
int |
getReceivedMessagesList()
public List<ReceivedMessage> getReceivedMessagesList()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Type | Description |
List<ReceivedMessage> |
getReceivedMessagesOrBuilder(int index)
public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Name | Description |
index | int |
Type | Description |
ReceivedMessageOrBuilder |
getReceivedMessagesOrBuilderList()
public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()
Received Pub/Sub messages. This will not be empty.
repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;
Type | Description |
List<? extends com.google.pubsub.v1.ReceivedMessageOrBuilder> |
getSerializedSize()
public int getSerializedSize()
Type | Description |
int |
getSubscriptionProperties()
public StreamingPullResponse.SubscriptionProperties getSubscriptionProperties()
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
Type | Description |
StreamingPullResponse.SubscriptionProperties | The subscriptionProperties. |
getSubscriptionPropertiesOrBuilder()
public StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder()
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
Type | Description |
StreamingPullResponse.SubscriptionPropertiesOrBuilder |
getUnknownFields()
public final UnknownFieldSet getUnknownFields()
Type | Description |
UnknownFieldSet |
hasSubscriptionProperties()
public boolean hasSubscriptionProperties()
Properties associated with this subscription.
.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;
Type | Description |
boolean | Whether the subscriptionProperties field is set. |
hashCode()
public int hashCode()
Type | Description |
int |
internalGetFieldAccessorTable()
protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Type | Description |
FieldAccessorTable |
isInitialized()
public final boolean isInitialized()
Type | Description |
boolean |
newBuilderForType()
public StreamingPullResponse.Builder newBuilderForType()
Type | Description |
StreamingPullResponse.Builder |
newBuilderForType(GeneratedMessageV3.BuilderParent parent)
protected StreamingPullResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Name | Description |
parent | BuilderParent |
Type | Description |
StreamingPullResponse.Builder |
newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Name | Description |
unused | UnusedPrivateParameter |
Type | Description |
Object |
toBuilder()
public StreamingPullResponse.Builder toBuilder()
Type | Description |
StreamingPullResponse.Builder |
writeTo(CodedOutputStream output)
public void writeTo(CodedOutputStream output)
Name | Description |
output | CodedOutputStream |
Type | Description |
IOException |