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 \ PipelineMethods
__construct
Constructor.
Parameters | |
---|---|
Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ protobuf |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\ProtobufFormat
Optional. Protobuf format. |
↳ avro |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\AvroFormat
Optional. Avro format. |
↳ json |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\JsonFormat
Optional. JSON format. |
getProtobuf
Optional. Protobuf format.
Returns | |
---|---|
Type | Description |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\ProtobufFormat|null |
hasProtobuf
setProtobuf
Optional. Protobuf format.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\ProtobufFormat
|
Returns | |
---|---|
Type | Description |
$this |
getAvro
Optional. Avro format.
Returns | |
---|---|
Type | Description |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\AvroFormat|null |
hasAvro
setAvro
Optional. Avro format.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\AvroFormat
|
Returns | |
---|---|
Type | Description |
$this |
getJson
Optional. JSON format.
Returns | |
---|---|
Type | Description |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\JsonFormat|null |
hasJson
setJson
Optional. JSON format.
Parameter | |
---|---|
Name | Description |
var |
Google\Cloud\Eventarc\V1\Pipeline\MessagePayloadFormat\JsonFormat
|
Returns | |
---|---|
Type | Description |
$this |
getKind
Returns | |
---|---|
Type | Description |
string |