public sealed class PublishEventsRequest : IMessage<PublishEventsRequest>, IEquatable<PublishEventsRequest>, IDeepCloneable<PublishEventsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Eventarc Publishing v1 API class PublishEventsRequest.
The request message for the PublishEvents method.
Implements
IMessage<PublishEventsRequest>, IEquatable<PublishEventsRequest>, IDeepCloneable<PublishEventsRequest>, IBufferMessage, IMessageNamespace
Google.Cloud.Eventarc.Publishing.V1Assembly
Google.Cloud.Eventarc.Publishing.V1.dll
Constructors
PublishEventsRequest()
public PublishEventsRequest()
PublishEventsRequest(PublishEventsRequest)
public PublishEventsRequest(PublishEventsRequest other)
Parameter | |
---|---|
Name | Description |
other | PublishEventsRequest |
Properties
Channel
public string Channel { get; set; }
The full name of the channel to publish to. For example:
projects/{project}/locations/{location}/channels/{channel-id}
.
Property Value | |
---|---|
Type | Description |
String |
Events
public RepeatedField<Any> Events { get; }
The CloudEvents v1.0 events to publish. No other types are allowed.
If this field is set, then the text_events
fields must not be set.
Property Value | |
---|---|
Type | Description |
RepeatedField<Any> |
TextEvents
public RepeatedField<string> TextEvents { get; }
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 events
fields must not be set.
Property Value | |
---|---|
Type | Description |
RepeatedField<String> |