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
IMessagePublishEventsRequest, IEquatablePublishEventsRequest, IDeepCloneablePublishEventsRequest, 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 |
RepeatedFieldAny |
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 |
RepeatedFieldstring |