# Class PublishRequest (0.10.1)

0.10.1 (latest) 0.10.0 0.9.0 0.8.0 0.7.0 0.6.19 0.5.0 0.4.2 0.3.1 0.2.1 0.1.1

    PublishRequest(mapping=None, *, ignore_unknown_fields=False, **kwargs)

The request message for the Publish method.

This message has `oneof`_ fields (mutually exclusive fields).
For each oneof, at most one member field can be set at the same time.
Setting any member of the oneof automatically clears all other
members.

.. _oneof: <https://proto-plus-python.readthedocs.io/en/stable/fields.html#oneofs-mutually-exclusive-fields>

| ## Attributes ||
|---|---|
| **Name** | **Description** |
| `message_bus` | `str` Required. The full name of the message bus to publish events to. Format: `projects/{project}/locations/{location}/messageBuses/{messageBus}`. |
| `proto_message` | `https://docs.cloud.google.com/python/docs/reference/eventarcpublishing/latest/google.cloud.eventarc_publishing_v1.types.CloudEvent` The Protobuf format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md This field is a member of `oneof`_ `format`. |
| `json_message` | `str` The JSON format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md This field is a member of `oneof`_ `format`. |
| `avro_message` | `bytes` The Avro format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md This field is a member of `oneof`_ `format`. |