Reference documentation and code samples for the Cloud Pub/Sub V1 API class Google::Cloud::PubSub::V1::PublishRequest.
Request for the Publish method.
Inherits
- Object
 
Extended By
- Google::Protobuf::MessageExts::ClassMethods
 
Includes
- Google::Protobuf::MessageExts
 
Methods
#messages
def messages() -> ::Array<::Google::Cloud::PubSub::V1::PubsubMessage> Returns 
 - (::Array<::Google::Cloud::PubSub::V1::PubsubMessage>) — Required. The messages to publish.
 
#messages=
def messages=(value) -> ::Array<::Google::Cloud::PubSub::V1::PubsubMessage> Parameter 
 - value (::Array<::Google::Cloud::PubSub::V1::PubsubMessage>) — Required. The messages to publish.
 
 Returns 
 - (::Array<::Google::Cloud::PubSub::V1::PubsubMessage>) — Required. The messages to publish.
 
#topic
def topic() -> ::String Returns 
 -  (::String) — Required. The messages in the request will be published on this topic. Format is 
projects/{project}/topics/{topic}. 
#topic=
def topic=(value) -> ::String Parameter 
 -  value (::String) — Required. The messages in the request will be published on this topic. Format is 
projects/{project}/topics/{topic}. 
 Returns 
 -  (::String) — Required. The messages in the request will be published on this topic. Format is 
projects/{project}/topics/{topic}.