NAME
Google::Cloud::Eventarc::Publishing::V1::CloudEvent - Compiled Protocol Buffers messages for google/cloud/eventarc/publishing/v1/cloud_event.proto
SYNOPSIS
use Google::Cloud::Eventarc::Publishing::V1::CloudEvent;
my $msg = Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEvent->new({
id => $id,
source => $source,
spec_version => $spec_version,
type => $type,
});
# Read or update a field
my $val = $msg->id();
# Binary wire-format roundtrip
my $bytes = $msg->serialize();
my $decoded = Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEvent->parse($bytes);
# Canonical ProtoJSON
my $json = $msg->to_json();
DESCRIPTION
Auto-generated Protobuf message classes compiled from google/cloud/eventarc/publishing/v1/cloud_event.proto. All message classes inherit from Protobuf::Message and support new(), serialize(), parse(), to_json(), from_json(), to_text(), and to_perl().
MESSAGES
Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEvent
CloudEvent represents a vendor-neutral specification for defining the format of event data.
Inherits from Protobuf::Message.
Accessors
$msg->id()/$msg->id($value)Type:
StringRequired. Identifies the event. Producers MUST ensure that source + id is unique for each distinct event.
$msg->source()/$msg->source($value)Type:
StringRequired. Identifies the context in which an event happened. URI-reference
$msg->spec_version()/$msg->spec_version($value)Type:
StringRequired. The version of the CloudEvents specification which the event uses.
$msg->type()/$msg->type($value)Type:
StringRequired. This attribute contains a value describing the type of event related to the originating occurrence.
$msg->attributes()/$msg->attributes($value)Type:
Message(Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEvent::AttributesEntry)Optional. Used for Optional & Extension Attributes
$msg->binary_data()/$msg->binary_data($value)Type:
BytesOptional. Binary data.
$msg->text_data()/$msg->text_data($value)Type:
StringOptional. Text data.
$msg->proto_data()/$msg->proto_data($value)Type:
Message(Google::Protobuf::Any::Any)Optional. Proto data.
NOTE: The `protoData` field only functions as expected when the payload is specifically a `CloudEvent` message type, and can't be used for arbitrary protocol buffer messages. For any other protocol buffer type, you must serialize your proto message into bytes, and use the `binaryData` field instead.
SEE ALSO
Protobuf, Protobuf::Message, Google::Cloud::Eventarc::Publishing::V1::CloudEvent::Types, https://protobuf.dev/
LICENSE AND COPYRIGHT
Copyright (C) 2026 Google LLC
This program is released under the Apache 2.0 license.