Class: Google::Apis::PubsubV1beta1a::PullResponse

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PullResponse

Returns a new instance of PullResponse.



489
490
491
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 489

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#ack_idString

This ID must be used to acknowledge the received event or message. Corresponds to the JSON property ackId

Returns:

  • (String)


482
483
484
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 482

def ack_id
  @ack_id
end

#pubsub_eventGoogle::Apis::PubsubV1beta1a::PubsubEvent

An event indicating a received message or truncation event. Corresponds to the JSON property pubsubEvent



487
488
489
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 487

def pubsub_event
  @pubsub_event
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



494
495
496
497
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 494

def update!(**args)
  @ack_id = args[:ack_id] if args.key?(:ack_id)
  @pubsub_event = args[:pubsub_event] if args.key?(:pubsub_event)
end