[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Eventarc Publishing V1 Client - Class CloudEvent (1.1.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.1.6 (latest)](/php/docs/reference/cloud-eventarc-publishing/latest/V1.CloudEvent)\n- [1.1.5](/php/docs/reference/cloud-eventarc-publishing/1.1.5/V1.CloudEvent)\n- [1.0.0](/php/docs/reference/cloud-eventarc-publishing/1.0.0/V1.CloudEvent)\n- [0.6.4](/php/docs/reference/cloud-eventarc-publishing/0.6.4/V1.CloudEvent)\n- [0.5.1](/php/docs/reference/cloud-eventarc-publishing/0.5.1/V1.CloudEvent)\n- [0.4.1](/php/docs/reference/cloud-eventarc-publishing/0.4.1/V1.CloudEvent)\n- [0.3.4](/php/docs/reference/cloud-eventarc-publishing/0.3.4/V1.CloudEvent) \nReference documentation and code samples for the Google Cloud Eventarc Publishing V1 Client class CloudEvent.\n\nCloudEvent represents a vendor-neutral specification for defining the format\nof event data.\n\nGenerated from protobuf message `google.cloud.eventarc.publishing.v1.CloudEvent`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Eventarc \\\\ Publishing \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getId\n\nRequired. Identifies the event. Producers MUST ensure that source + id is\nunique for each distinct event.\n\n### setId\n\nRequired. Identifies the event. Producers MUST ensure that source + id is\nunique for each distinct event.\n\n### getSource\n\nRequired. Identifies the context in which an event happened.\n\nURI-reference\n\n### setSource\n\nRequired. Identifies the context in which an event happened.\n\nURI-reference\n\n### getSpecVersion\n\nRequired. The version of the CloudEvents specification which the event\nuses.\n\n### setSpecVersion\n\nRequired. The version of the CloudEvents specification which the event\nuses.\n\n### getType\n\nRequired. This attribute contains a value describing the type of event\nrelated to the originating occurrence.\n\n### setType\n\nRequired. This attribute contains a value describing the type of event\nrelated to the originating occurrence.\n\n### getAttributes\n\nOptional. Used for Optional \\& Extension Attributes\n\n### setAttributes\n\nOptional. Used for Optional \\& Extension Attributes\n\n### getBinaryData\n\nOptional. Binary data.\n\n### hasBinaryData\n\n### setBinaryData\n\nOptional. Binary data.\n\n### getTextData\n\nOptional. Text data.\n\n### hasTextData\n\n### setTextData\n\nOptional. Text data.\n\n### getProtoData\n\nOptional. Proto data.\n\n### hasProtoData\n\n### setProtoData\n\nOptional. Proto data.\n\n### getData"]]