class Google::Apis::PubsubV1beta1a::PublishRequest
Request for the Publish method.
Attributes
message[RW]
A message data and its labels. Corresponds to the JSON property `message` @return [Google::Apis::PubsubV1beta1a::PubsubMessage]
topic[RW]
The message in the request will be published on this topic. Corresponds to the JSON property `topic` @return [String]
Public Class Methods
new(**args)
click to toggle source
# File lib/google/apis/pubsub_v1beta1a/classes.rb, line 290 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 295 def update!(**args) @message = args[:message] if args.key?(:message) @topic = args[:topic] if args.key?(:topic) end