Class StreamingPullResponse (1.123.7)

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

Static Fields

ACKNOWLEDGE_CONFIRMATION_FIELD_NUMBER

public static final int ACKNOWLEDGE_CONFIRMATION_FIELD_NUMBER
Field Value
TypeDescription
int

MODIFY_ACK_DEADLINE_CONFIRMATION_FIELD_NUMBER

public static final int MODIFY_ACK_DEADLINE_CONFIRMATION_FIELD_NUMBER
Field Value
TypeDescription
int

RECEIVED_MESSAGES_FIELD_NUMBER

public static final int RECEIVED_MESSAGES_FIELD_NUMBER
Field Value
TypeDescription
int

SUBSCRIPTION_PROPERTIES_FIELD_NUMBER

public static final int SUBSCRIPTION_PROPERTIES_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static StreamingPullResponse getDefaultInstance()
Returns
TypeDescription
StreamingPullResponse

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static StreamingPullResponse.Builder newBuilder()
Returns
TypeDescription
StreamingPullResponse.Builder

newBuilder(StreamingPullResponse prototype)

public static StreamingPullResponse.Builder newBuilder(StreamingPullResponse prototype)
Parameter
NameDescription
prototypeStreamingPullResponse
Returns
TypeDescription
StreamingPullResponse.Builder

parseDelimitedFrom(InputStream input)

public static StreamingPullResponse parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingPullResponse parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static StreamingPullResponse parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static StreamingPullResponse parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static StreamingPullResponse parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static StreamingPullResponse parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static StreamingPullResponse parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingPullResponse parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static StreamingPullResponse parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static StreamingPullResponse parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static StreamingPullResponse parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static StreamingPullResponse parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
StreamingPullResponse
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<StreamingPullResponse> parser()
Returns
TypeDescription
Parser<StreamingPullResponse>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAcknowledgeConfirmation()

public StreamingPullResponse.AcknowledgeConfirmation getAcknowledgeConfirmation()

This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation

The acknowledgeConfirmation.

getAcknowledgeConfirmationOrBuilder()

public StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder()

This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmationOrBuilder

getDefaultInstanceForType()

public StreamingPullResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamingPullResponse

getModifyAckDeadlineConfirmation()

public StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation()

This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3;

Returns
TypeDescription
StreamingPullResponse.ModifyAckDeadlineConfirmation

The modifyAckDeadlineConfirmation.

getModifyAckDeadlineConfirmationOrBuilder()

public StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder()

This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3;

Returns
TypeDescription
StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder

getParserForType()

public Parser<StreamingPullResponse> getParserForType()
Returns
TypeDescription
Parser<StreamingPullResponse>
Overrides

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;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReceivedMessage

getReceivedMessagesCount()

public int getReceivedMessagesCount()

Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
int

getReceivedMessagesList()

public List<ReceivedMessage> getReceivedMessagesList()

Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
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;

Parameter
NameDescription
indexint
Returns
TypeDescription
ReceivedMessageOrBuilder

getReceivedMessagesOrBuilderList()

public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()

Received Pub/Sub messages. This will not be empty.

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1;

Returns
TypeDescription
List<? extends com.google.pubsub.v1.ReceivedMessageOrBuilder>

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubscriptionProperties()

public StreamingPullResponse.SubscriptionProperties getSubscriptionProperties()

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Returns
TypeDescription
StreamingPullResponse.SubscriptionProperties

The subscriptionProperties.

getSubscriptionPropertiesOrBuilder()

public StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder()

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Returns
TypeDescription
StreamingPullResponse.SubscriptionPropertiesOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

hasAcknowledgeConfirmation()

public boolean hasAcknowledgeConfirmation()

This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5;

Returns
TypeDescription
boolean

Whether the acknowledgeConfirmation field is set.

hasModifyAckDeadlineConfirmation()

public boolean hasModifyAckDeadlineConfirmation()

This field will only be set if enable_exactly_once_delivery is set to true.

.google.pubsub.v1.StreamingPullResponse.ModifyAckDeadlineConfirmation modify_ack_deadline_confirmation = 3;

Returns
TypeDescription
boolean

Whether the modifyAckDeadlineConfirmation field is set.

hasSubscriptionProperties()

public boolean hasSubscriptionProperties()

Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4;

Returns
TypeDescription
boolean

Whether the subscriptionProperties field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public StreamingPullResponse.Builder newBuilderForType()
Returns
TypeDescription
StreamingPullResponse.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected StreamingPullResponse.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
StreamingPullResponse.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public StreamingPullResponse.Builder toBuilder()
Returns
TypeDescription
StreamingPullResponse.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException