Index
Publisher
(interface)CloudEvent
(message)CloudEvent.CloudEventAttributeValue
(message)PublishChannelConnectionEventsRequest
(message)PublishChannelConnectionEventsResponse
(message)PublishEventsRequest
(message)PublishEventsResponse
(message)PublishRequest
(message)PublishResponse
(message)
Publisher
Eventarc processes events generated by an event provider and delivers them to a subscriber.
An event provider is a software-as-a-service (SaaS) system or product that can generate and deliver events through Eventarc.
A third-party event provider is an event provider from outside of Google.
A partner is a third-party event provider that is integrated with Eventarc.
A subscriber is a GCP customer interested in receiving events.
Channel is a first-class Eventarc resource that is created and managed by the subscriber in their GCP project. A Channel represents a subscriber's intent to receive events from an event provider. A Channel is associated with exactly one event provider.
ChannelConnection is a first-class Eventarc resource that is created and managed by the partner in their GCP project. A ChannelConnection represents a connection between a partner and a subscriber's Channel. A ChannelConnection has a one-to-one mapping with a Channel.
Publisher allows an event provider to publish events to Eventarc.
Publish |
---|
Publish events to a message bus.
|
PublishChannelConnectionEvents |
---|
Publish events to a ChannelConnection in a partner's project.
|
PublishEvents |
---|
Publish events to a subscriber's channel.
|
CloudEvent
CloudEvent represents a vendor-neutral specification for defining the format of event data.
Fields | |
---|---|
id |
Required. Identifies the event. Producers MUST ensure that source + id is unique for each distinct event. |
source |
Required. Identifies the context in which an event happened. URI-reference |
spec_ |
Required. The version of the CloudEvents specification which the event uses. |
type |
Required. This attribute contains a value describing the type of event related to the originating occurrence. |
attributes |
Optional. Used for Optional & Extension Attributes |
Union field data . The event payload. It should be encoded into a media format which is specified by the 'datacontenttype' attribute (e.g. application/json), and adheres to the dataschema format when those respective attributes are present. data can be only one of the following: |
|
binary_ |
Optional. Binary data. |
text_ |
Optional. Text data. |
proto_ |
Optional. Proto data. |
CloudEventAttributeValue
The following abstract data types are available for use in attributes.
Fields | |
---|---|
Union field attr . The value of the attribute. attr can be only one of the following: |
|
ce_ |
Boolean value. |
ce_ |
Integer value. |
ce_ |
String value. |
ce_ |
Bytes value. |
ce_ |
URI value. |
ce_ |
URI-reference value. |
ce_ |
Timestamp value. |
PublishChannelConnectionEventsRequest
The request message for the PublishChannelConnectionEvents method.
Fields | |
---|---|
channel_ |
The channel_connection that the events are published from. For example: |
events[] |
The CloudEvents v1.0 events to publish. No other types are allowed. If this field is set, then the |
text_ |
The text representation of events to publish. CloudEvent v1.0 in JSON format is the only allowed type. Refer to https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md for specification. If this field is set, then the |
PublishChannelConnectionEventsResponse
This type has no fields.
The response message for the PublishChannelConnectionEvents method.
PublishEventsRequest
The request message for the PublishEvents method.
Fields | |
---|---|
channel |
The full name of the channel to publish to. For example: |
events[] |
The CloudEvents v1.0 events to publish. No other types are allowed. If this field is set, then the |
text_ |
The text representation of events to publish. CloudEvent v1.0 in JSON format is the only allowed type. Refer to https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md for specification. If this field is set, then the |
PublishEventsResponse
This type has no fields.
The response message for the PublishEvents method.
PublishRequest
The request message for the Publish method.
Fields | |
---|---|
message_ |
Required. The full name of the message bus to publish events to. Format: |
Union field
|
|
proto_ |
The Protobuf format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md |
json_ |
The JSON format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md |
avro_ |
The Avro format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md |
PublishResponse
This type has no fields.
The response message for the Publish method.