buildCloudEvent
buildCloudEvent<
TSchema>(schema,payload,options):CloudEvent
Build a CloudEvent protobuf message from a typed protobuf payload.
Type Parameters
Section titled “Type Parameters”TSchema
Section titled “TSchema”TSchema extends DescMessage
Parameters
Section titled “Parameters”schema
Section titled “schema”TSchema
payload
Section titled “payload”MessageShape<TSchema>
options
Section titled “options”Returns
Section titled “Returns”CloudEvent