Class StreamingPullResponse (1.127.3)

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()

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmation

The acknowledgeConfirmation.

getAcknowledgeConfirmationOrBuilder()

public StreamingPullResponse.AcknowledgeConfirmationOrBuilder getAcknowledgeConfirmationOrBuilder()

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.AcknowledgeConfirmationOrBuilder

getDefaultInstanceForType()

public StreamingPullResponse getDefaultInstanceForType()
Returns
TypeDescription
StreamingPullResponse

getModifyAckDeadlineConfirmation()

public StreamingPullResponse.ModifyAckDeadlineConfirmation getModifyAckDeadlineConfirmation()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.ModifyAckDeadlineConfirmation

The modifyAckDeadlineConfirmation.

getModifyAckDeadlineConfirmationOrBuilder()

public StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder getModifyAckDeadlineConfirmationOrBuilder()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.ModifyAckDeadlineConfirmationOrBuilder

getParserForType()

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

getReceivedMessages(int index)

public ReceivedMessage getReceivedMessages(int index)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReceivedMessage

getReceivedMessagesCount()

public int getReceivedMessagesCount()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
int

getReceivedMessagesList()

public List<ReceivedMessage> getReceivedMessagesList()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
List<ReceivedMessage>

getReceivedMessagesOrBuilder(int index)

public ReceivedMessageOrBuilder getReceivedMessagesOrBuilder(int index)

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
indexint
Returns
TypeDescription
ReceivedMessageOrBuilder

getReceivedMessagesOrBuilderList()

public List<? extends ReceivedMessageOrBuilder> getReceivedMessagesOrBuilderList()

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

repeated .google.pubsub.v1.ReceivedMessage received_messages = 1 [(.google.api.field_behavior) = OPTIONAL];

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

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

getSubscriptionProperties()

public StreamingPullResponse.SubscriptionProperties getSubscriptionProperties()

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.SubscriptionProperties

The subscriptionProperties.

getSubscriptionPropertiesOrBuilder()

public StreamingPullResponse.SubscriptionPropertiesOrBuilder getSubscriptionPropertiesOrBuilder()

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
StreamingPullResponse.SubscriptionPropertiesOrBuilder

hasAcknowledgeConfirmation()

public boolean hasAcknowledgeConfirmation()

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

.google.pubsub.v1.StreamingPullResponse.AcknowledgeConfirmation acknowledge_confirmation = 5 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the acknowledgeConfirmation field is set.

hasModifyAckDeadlineConfirmation()

public boolean hasModifyAckDeadlineConfirmation()

Optional. 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 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

Whether the modifyAckDeadlineConfirmation field is set.

hasSubscriptionProperties()

public boolean hasSubscriptionProperties()

Optional. Properties associated with this subscription.

.google.pubsub.v1.StreamingPullResponse.SubscriptionProperties subscription_properties = 4 [(.google.api.field_behavior) = OPTIONAL];

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