Reference documentation and code samples for the Eventarc Publishing V1 API class Google::Cloud::Eventarc::Publishing::V1::CloudEvent.
CloudEvent represents a vendor-neutral specification for defining the format of event data.
Inherits
- Object
Extended By
- Google::Protobuf::MessageExts::ClassMethods
Includes
- Google::Protobuf::MessageExts
Methods
#attributes
def attributes() -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEventAttributeValue}
- (::Google::Protobuf::Map{::String => ::Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEventAttributeValue}) — Optional. Used for Optional & Extension Attributes
#attributes=
def attributes=(value) -> ::Google::Protobuf::Map{::String => ::Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEventAttributeValue}
- value (::Google::Protobuf::Map{::String => ::Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEventAttributeValue}) — Optional. Used for Optional & Extension Attributes
- (::Google::Protobuf::Map{::String => ::Google::Cloud::Eventarc::Publishing::V1::CloudEvent::CloudEventAttributeValue}) — Optional. Used for Optional & Extension Attributes
#binary_data
def binary_data() -> ::String
-
(::String) — Optional. Binary data.
Note: The following fields are mutually exclusive:
binary_data
,text_data
,proto_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#binary_data=
def binary_data=(value) -> ::String
-
value (::String) — Optional. Binary data.
Note: The following fields are mutually exclusive:
binary_data
,text_data
,proto_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. Binary data.
Note: The following fields are mutually exclusive:
binary_data
,text_data
,proto_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#id
def id() -> ::String
- (::String) — Required. Identifies the event. Producers MUST ensure that source + id is unique for each distinct event.
#id=
def id=(value) -> ::String
- value (::String) — Required. Identifies the event. Producers MUST ensure that source + id is unique for each distinct event.
- (::String) — Required. Identifies the event. Producers MUST ensure that source + id is unique for each distinct event.
#proto_data
def proto_data() -> ::Google::Protobuf::Any
-
(::Google::Protobuf::Any) — Optional. Proto data.
Note: The following fields are mutually exclusive:
proto_data
,binary_data
,text_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#proto_data=
def proto_data=(value) -> ::Google::Protobuf::Any
-
value (::Google::Protobuf::Any) — Optional. Proto data.
Note: The following fields are mutually exclusive:
proto_data
,binary_data
,text_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::Google::Protobuf::Any) — Optional. Proto data.
Note: The following fields are mutually exclusive:
proto_data
,binary_data
,text_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#source
def source() -> ::String
- (::String) — Required. Identifies the context in which an event happened. URI-reference
#source=
def source=(value) -> ::String
- value (::String) — Required. Identifies the context in which an event happened. URI-reference
- (::String) — Required. Identifies the context in which an event happened. URI-reference
#spec_version
def spec_version() -> ::String
- (::String) — Required. The version of the CloudEvents specification which the event uses.
#spec_version=
def spec_version=(value) -> ::String
- value (::String) — Required. The version of the CloudEvents specification which the event uses.
- (::String) — Required. The version of the CloudEvents specification which the event uses.
#text_data
def text_data() -> ::String
-
(::String) — Optional. Text data.
Note: The following fields are mutually exclusive:
text_data
,binary_data
,proto_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#text_data=
def text_data=(value) -> ::String
-
value (::String) — Optional. Text data.
Note: The following fields are mutually exclusive:
text_data
,binary_data
,proto_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
-
(::String) — Optional. Text data.
Note: The following fields are mutually exclusive:
text_data
,binary_data
,proto_data
. If a field in that set is populated, all other fields in the set will automatically be cleared.
#type
def type() -> ::String
- (::String) — Required. This attribute contains a value describing the type of event related to the originating occurrence.
#type=
def type=(value) -> ::String
- value (::String) — Required. This attribute contains a value describing the type of event related to the originating occurrence.
- (::String) — Required. This attribute contains a value describing the type of event related to the originating occurrence.