Class: Google::Apis::PubsubV1beta1a::PullResponse
- Inherits:
-
Object
- Object
- Google::Apis::PubsubV1beta1a::PullResponse
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/pubsub_v1beta1a/classes.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb,
generated/google/apis/pubsub_v1beta1a/representations.rb
Overview
Either a PubsubMessage
or a truncation event. One of these two
must be populated.
Instance Attribute Summary collapse
-
#ack_id ⇒ String
This ID must be used to acknowledge the received event or message.
-
#pubsub_event ⇒ Google::Apis::PubsubV1beta1a::PubsubEvent
An event indicating a received message or truncation event.
Instance Method Summary collapse
-
#initialize(**args) ⇒ PullResponse
constructor
A new instance of PullResponse.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ PullResponse
Returns a new instance of PullResponse
501 502 503 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 501 def initialize(**args) update!(**args) end |
Instance Attribute Details
#ack_id ⇒ String
This ID must be used to acknowledge the received event or message.
Corresponds to the JSON property ackId
494 495 496 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 494 def ack_id @ack_id end |
#pubsub_event ⇒ Google::Apis::PubsubV1beta1a::PubsubEvent
An event indicating a received message or truncation event.
Corresponds to the JSON property pubsubEvent
499 500 501 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 499 def pubsub_event @pubsub_event end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
506 507 508 509 |
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 506 def update!(**args) @ack_id = args[:ack_id] if args.key?(:ack_id) @pubsub_event = args[:pubsub_event] if args.key?(:pubsub_event) end |