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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

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_idString

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

Returns:

  • (String)


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

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



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