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.
[[["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\u003ePublishEventsRequest\u003c/code\u003e class is part of the Eventarc Publishing v1 API, used for sending event data.\u003c/p\u003e\n"],["\u003cp\u003eIt implements several interfaces including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, providing functionalities for message handling and cloning.\u003c/p\u003e\n"],["\u003cp\u003eThe class offers two constructors, a default and one that accepts another \u003ccode\u003ePublishEventsRequest\u003c/code\u003e object for initialization.\u003c/p\u003e\n"],["\u003cp\u003eIt has properties for \u003ccode\u003eChannel\u003c/code\u003e, \u003ccode\u003eEvents\u003c/code\u003e, and \u003ccode\u003eTextEvents\u003c/code\u003e, where \u003ccode\u003eChannel\u003c/code\u003e specifies the target for publishing, \u003ccode\u003eEvents\u003c/code\u003e handles CloudEvents v1.0, and \u003ccode\u003eTextEvents\u003c/code\u003e handles CloudEvent v1.0 in JSON format, noting that \u003ccode\u003eEvents\u003c/code\u003e and \u003ccode\u003eTextEvents\u003c/code\u003e cannot both be set.\u003c/p\u003e\n"],["\u003cp\u003eThe latest version is 2.0.0-beta07, with previous versions including 2.0.0-beta06 and 1.0.0-beta02 also available.\u003c/p\u003e\n"]]],[],null,["# Eventarc Publishing v1 API - Class PublishEventsRequest (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.PublishEventsRequest)\n- [2.0.0-beta06](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/2.0.0-beta06/Google.Cloud.Eventarc.Publishing.V1.PublishEventsRequest)\n- [1.0.0-beta02](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/1.0.0-beta02/Google.Cloud.Eventarc.Publishing.V1.PublishEventsRequest) \n\n public sealed class PublishEventsRequest : IMessage\u003cPublishEventsRequest\u003e, IEquatable\u003cPublishEventsRequest\u003e, IDeepCloneable\u003cPublishEventsRequest\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the Eventarc Publishing v1 API class PublishEventsRequest.\n\nThe request message for the PublishEvents method. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e PublishEventsRequest \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[PublishEventsRequest](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.PublishEventsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[PublishEventsRequest](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.PublishEventsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[PublishEventsRequest](/dotnet/docs/reference/Google.Cloud.Eventarc.Publishing.V1/latest/Google.Cloud.Eventarc.Publishing.V1.PublishEventsRequest), [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### PublishEventsRequest()\n\n public PublishEventsRequest()\n\n### PublishEventsRequest(PublishEventsRequest)\n\n public PublishEventsRequest(PublishEventsRequest other)\n\nProperties\n----------\n\n### Channel\n\n public string Channel { get; set; }\n\nThe full name of the channel to publish to. For example:\n`projects/{project}/locations/{location}/channels/{channel-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."]]