class Google::Apis::PubsubV1::PublishRequest

Request for the Publish method.

Attributes

messages[RW]

Required. The messages to publish. Corresponds to the JSON property `messages` @return [Array<Google::Apis::PubsubV1::Message>]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/pubsub_v1/classes.rb, line 722
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_v1/classes.rb, line 727
def update!(**args)
  @messages = args[:messages] if args.key?(:messages)
end