Google Cloud Eventarc V1 Client - Class MessagePayloadFormat (2.1.3)

Reference documentation and code samples for the Google Cloud Eventarc V1 Client class MessagePayloadFormat.

Represents the format of message data.

Generated from protobuf message google.cloud.eventarc.v1.Pipeline.MessagePayloadFormat

Namespace

Google \ Cloud \ Eventarc \ V1 \ Pipeline

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ protobuf MessagePayloadFormat\ProtobufFormat

Optional. Protobuf format.

↳ avro MessagePayloadFormat\AvroFormat

Optional. Avro format.

↳ json MessagePayloadFormat\JsonFormat

Optional. JSON format.

getProtobuf

Optional. Protobuf format.

Returns
Type Description
MessagePayloadFormat\ProtobufFormat|null

hasProtobuf

setProtobuf

Optional. Protobuf format.

Parameter
Name Description
var MessagePayloadFormat\ProtobufFormat
Returns
Type Description
$this

getAvro

Optional. Avro format.

Returns
Type Description
MessagePayloadFormat\AvroFormat|null

hasAvro

setAvro

Optional. Avro format.

Parameter
Name Description
var MessagePayloadFormat\AvroFormat
Returns
Type Description
$this

getJson

Optional. JSON format.

Returns
Type Description
MessagePayloadFormat\JsonFormat|null

hasJson

setJson

Optional. JSON format.

Parameter
Name Description
var MessagePayloadFormat\JsonFormat
Returns
Type Description
$this

getKind

Returns
Type Description
string