Cloud Pub/Sub V1 API - Class Google::Cloud::PubSub::V1::PublishRequest (v0.20.0)

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

#messages=

def messages=(value) -> ::Array<::Google::Cloud::PubSub::V1::PubsubMessage>
Parameter
Returns

#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}.