public sealed class PublishChannelConnectionEventsRequest : IMessage<PublishChannelConnectionEventsRequest>, IEquatable<PublishChannelConnectionEventsRequest>, IDeepCloneable<PublishChannelConnectionEventsRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Eventarc Publishing v1 API class PublishChannelConnectionEventsRequest.
The request message for the PublishChannelConnectionEvents method.
The channel_connection that the events are published from. For example:
projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe \u003ccode\u003ePublishChannelConnectionEventsRequest\u003c/code\u003e class is part of the Eventarc Publishing v1 API, specifically for publishing events via a channel connection.\u003c/p\u003e\n"],["\u003cp\u003eThis class serves as the request message for the \u003ccode\u003ePublishChannelConnectionEvents\u003c/code\u003e method.\u003c/p\u003e\n"],["\u003cp\u003eIt supports two methods for specifying events to publish: \u003ccode\u003eEvents\u003c/code\u003e, which takes a collection of CloudEvents v1.0 events, and \u003ccode\u003eTextEvents\u003c/code\u003e, which takes a collection of CloudEvents v1.0 formatted in JSON.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eChannelConnection\u003c/code\u003e property specifies the source of the published events in a specific format.\u003c/p\u003e\n"],["\u003cp\u003eThe class inherits from \u003ccode\u003eobject\u003c/code\u003e and implements interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Eventarc Publishing v1 API - Class PublishChannelConnectionEventsRequest (2.0.0-beta07)\n\nVersion latestkeyboard_arrow_down\n\n- [2.0.0-beta07 (latest)](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.PublishChannelConnectionEventsRequest)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/2.0.0-beta06/Google.Cloud.Eventarc.Publishing.V1.PublishChannelConnectionEventsRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/1.0.0-beta02/Google.Cloud.Eventarc.Publishing.V1.PublishChannelConnectionEventsRequest) \n\n public sealed class PublishChannelConnectionEventsRequest : IMessage\u003cPublishChannelConnectionEventsRequest\u003e, IEquatable\u003cPublishChannelConnectionEventsRequest\u003e, IDeepCloneable\u003cPublishChannelConnectionEventsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Eventarc Publishing v1 API class PublishChannelConnectionEventsRequest.\n\nThe request message for the PublishChannelConnectionEvents method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PublishChannelConnectionEventsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PublishChannelConnectionEventsRequest](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.PublishChannelConnectionEventsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PublishChannelConnectionEventsRequest](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.PublishChannelConnectionEventsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PublishChannelConnectionEventsRequest](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.PublishChannelConnectionEventsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.Eventarc.Publishing.V1](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.Eventarc.Publishing.V1.dll\n\nConstructors\n------------\n\n### PublishChannelConnectionEventsRequest()\n\n public PublishChannelConnectionEventsRequest()\n\n### PublishChannelConnectionEventsRequest(PublishChannelConnectionEventsRequest)\n\n public PublishChannelConnectionEventsRequest(PublishChannelConnectionEventsRequest other)\n\nProperties\n----------\n\n### ChannelConnection\n\n public string ChannelConnection { get; set; }\n\nThe channel_connection that the events are published from. For example:\n`projects/{partner_project_id}/locations/{location}/channelConnections/{channel_connection_id}`.\n\n### Events\n\n public RepeatedField\u003cAny\u003e Events { get; }\n\nThe CloudEvents v1.0 events to publish. No other types are allowed.\nIf this field is set, then the `text_events` fields must not be set.\n\n### TextEvents\n\n public RepeatedField\u003cstring\u003e TextEvents { get; }\n\nThe text representation of events to publish.\nCloudEvent v1.0 in JSON format is the only allowed type. Refer to\n\u003chttps://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md\u003e\nfor specification.\nIf this field is set, then the `events` fields must not be set."]]