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

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ PublishBatchRequest

Returns a new instance of PublishBatchRequest



256
257
258
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 256

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

Instance Attribute Details

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

The messages to publish. Corresponds to the JSON property messages



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

def messages
  @messages
end

#topicString

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

Returns:

  • (String)


254
255
256
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 254

def topic
  @topic
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



261
262
263
264
# File 'generated/google/apis/pubsub_v1beta1a/classes.rb', line 261

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