Eventarc Publishing v1 API - Class PublishEventsRequest (2.0.0-beta05)

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.

Inheritance

object > PublishEventsRequest

Namespace

Google.Cloud.Eventarc.Publishing.V1

Assembly

Google.Cloud.Eventarc.Publishing.V1.dll

Constructors

PublishEventsRequest()

public PublishEventsRequest()

PublishEventsRequest(PublishEventsRequest)

public PublishEventsRequest(PublishEventsRequest other)
Parameter
NameDescription
otherPublishEventsRequest

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
TypeDescription
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
TypeDescription
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
TypeDescription
RepeatedFieldstring