Class: Google::Apis::PubsubV1beta1a::PublishBatchRequest

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

Request for the PublishBatch method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ PublishBatchRequest

Returns a new instance of PublishBatchRequest.



245
246
247
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 245

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

Instance Attribute Details

#messagesArray<Google::Apis::PubsubV1beta1a::PubsubMessage>

The messages to publish. Corresponds to the JSON property messages



238
239
240
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 238

def messages
  @messages
end

#topicString

The messages in the request will be published on this topic. Corresponds to the JSON property topic

Returns:

  • (String)


243
244
245
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 243

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



250
251
252
253
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 250

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