# Eventarc V1 API - Class Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat (v2.8.0)

2.8.0 (latest) 2.7.1 2.6.0 2.5.0 2.4.1 2.3.0 2.2.0 2.1.0 2.0.1 1.3.0 1.2.0 1.1.0 1.0.1 0.10.0 0.9.2 0.8.0 0.7.0 0.6.0 0.5.0 0.4.0 0.3.0 0.2.1 0.1.4 Reference documentation and code samples for the Eventarc V1 API class Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat.

Represents the format of message data.

## Inherits

- Object

## Extended By

- Google::Protobuf::MessageExts::ClassMethods

## Includes

- Google::Protobuf::MessageExts

## Methods

### #avro

    def avro() -> ::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::AvroFormat

**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::AvroFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-AvroFormat)) --- Optional. Avro format.


  Note: The following fields are mutually exclusive: `avro`, `protobuf`, `json`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #avro=

    def avro=(value) -> ::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::AvroFormat

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::AvroFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-AvroFormat)) --- Optional. Avro format.


  Note: The following fields are mutually exclusive: `avro`, `protobuf`, `json`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::AvroFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-AvroFormat)) --- Optional. Avro format.


  Note: The following fields are mutually exclusive: `avro`, `protobuf`, `json`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #json

    def json() -> ::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::JsonFormat

**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::JsonFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-JsonFormat)) --- Optional. JSON format.


  Note: The following fields are mutually exclusive: `json`, `protobuf`, `avro`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #json=

    def json=(value) -> ::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::JsonFormat

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::JsonFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-JsonFormat)) --- Optional. JSON format.


  Note: The following fields are mutually exclusive: `json`, `protobuf`, `avro`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::JsonFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-JsonFormat)) --- Optional. JSON format.


  Note: The following fields are mutually exclusive: `json`, `protobuf`, `avro`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #protobuf

    def protobuf() -> ::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::ProtobufFormat

**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::ProtobufFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-ProtobufFormat)) --- Optional. Protobuf format.


  Note: The following fields are mutually exclusive: `protobuf`, `avro`, `json`. If a field in that set is populated, all other fields in the set will automatically be cleared.

### #protobuf=

    def protobuf=(value) -> ::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::ProtobufFormat

**Parameter**

- **value** ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::ProtobufFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-ProtobufFormat)) --- Optional. Protobuf format.


  Note: The following fields are mutually exclusive: `protobuf`, `avro`, `json`. If a field in that set is populated, all other fields in the set will automatically be cleared.
**Returns**

- ([::Google::Cloud::Eventarc::V1::Pipeline::MessagePayloadFormat::ProtobufFormat](https://docs.cloud.google.com/ruby/docs/reference/google-cloud-eventarc-v1/latest/Google-Cloud-Eventarc-V1-Pipeline-MessagePayloadFormat-ProtobufFormat)) --- Optional. Protobuf format.


  Note: The following fields are mutually exclusive: `protobuf`, `avro`, `json`. If a field in that set is populated, all other fields in the set will automatically be cleared.