Cloud PubSub V1 Client - Class StreamingPullResponse (2.3.0)

Reference documentation and code samples for the Cloud PubSub V1 Client class StreamingPullResponse.

Response for the StreamingPull method. This response is used to stream messages from the server to the client.

Generated from protobuf message google.pubsub.v1.StreamingPullResponse

Namespace

Google \ Cloud \ PubSub \ V1

Methods

__construct

Constructor.

Parameters
Name
Description
data
array

Optional. Data for populating the Message object.

↳ received_messages
array< Google\Cloud\PubSub\V1\ReceivedMessage >

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

↳ acknowledge_confirmation
Google\Cloud\PubSub\V1\StreamingPullResponse\AcknowledgeConfirmation

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

↳ modify_ack_deadline_confirmation
Google\Cloud\PubSub\V1\StreamingPullResponse\ModifyAckDeadlineConfirmation

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

↳ subscription_properties
Google\Cloud\PubSub\V1\StreamingPullResponse\SubscriptionProperties

Optional. Properties associated with this subscription.

getReceivedMessages

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

Returns
Type
Description

setReceivedMessages

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

Parameter
Name
Description
Returns
Type
Description
$this

getAcknowledgeConfirmation

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

hasAcknowledgeConfirmation

clearAcknowledgeConfirmation

setAcknowledgeConfirmation

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

Returns
Type
Description
$this

getModifyAckDeadlineConfirmation

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

hasModifyAckDeadlineConfirmation

clearModifyAckDeadlineConfirmation

setModifyAckDeadlineConfirmation

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

Returns
Type
Description
$this

getSubscriptionProperties

Optional. Properties associated with this subscription.

hasSubscriptionProperties

clearSubscriptionProperties

setSubscriptionProperties

Optional. Properties associated with this subscription.

Returns
Type
Description
$this
Design a Mobile Site
View Site in Mobile | Classic
Share by: