# Class MessagePayloadFormat (1.21.0)

1.21.0 (latest) 1.20.0 1.19.0 1.18.0 1.17.0 1.16.0 1.15.3 1.14.0 1.13.2 1.12.0 1.11.5 1.10.0 1.9.2 1.8.1 1.7.0 1.6.3 1.5.1 1.4.2 1.3.0 1.2.1 1.1.0 1.0.2 0.2.4 0.1.0

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

Represents the format of message data.

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** |
| `protobuf` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.Pipeline.MessagePayloadFormat.ProtobufFormat` Optional. Protobuf format. This field is a member of `oneof`_ `kind`. |
| `avro` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.Pipeline.MessagePayloadFormat.AvroFormat` Optional. Avro format. This field is a member of `oneof`_ `kind`. |
| `json` | `https://docs.cloud.google.com/python/docs/reference/eventarc/latest/google.cloud.eventarc_v1.types.Pipeline.MessagePayloadFormat.JsonFormat` Optional. JSON format. This field is a member of `oneof`_ `kind`. |

## Classes

### AvroFormat

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

The format of an AVRO message payload.

### JsonFormat

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

The format of a JSON message payload.

### ProtobufFormat

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

The format of a Protobuf message payload.