class Google::Apis::PubsubV1beta1a::PullResponse

Either a PubsubMessage or a truncation event. One of these two must be populated.

Attributes

ack_id[RW]

This ID must be used to acknowledge the received event or message. Corresponds to the JSON property `ackId` @return [String]

pubsub_event[RW]

An event indicating a received message or truncation event. Corresponds to the JSON property `pubsubEvent` @return [Google::Apis::PubsubV1beta1a::PubsubEvent]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsub_v1beta1a/classes.rb, line 489
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/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