public sealed class PublishRequest : IMessage<PublishRequest>, IEquatable<PublishRequest>, IDeepCloneable<PublishRequest>, IBufferMessage, IMessage
Reference documentation and code samples for the Eventarc Publishing v1 API class PublishRequest.
The request message for the Publish method.
Implements
IMessagePublishRequest, IEquatablePublishRequest, IDeepCloneablePublishRequest, IBufferMessage, IMessageNamespace
Google.Cloud.Eventarc.Publishing.V1Assembly
Google.Cloud.Eventarc.Publishing.V1.dll
Constructors
PublishRequest()
public PublishRequest()
PublishRequest(PublishRequest)
public PublishRequest(PublishRequest other)
Parameter | |
---|---|
Name | Description |
other |
PublishRequest |
Properties
AvroMessage
public ByteString AvroMessage { get; set; }
The Avro format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/avro-format.md
Property Value | |
---|---|
Type | Description |
ByteString |
FormatCase
public PublishRequest.FormatOneofCase FormatCase { get; }
Property Value | |
---|---|
Type | Description |
PublishRequestFormatOneofCase |
HasAvroMessage
public bool HasAvroMessage { get; }
Gets whether the "avro_message" field is set
Property Value | |
---|---|
Type | Description |
bool |
HasJsonMessage
public bool HasJsonMessage { get; }
Gets whether the "json_message" field is set
Property Value | |
---|---|
Type | Description |
bool |
JsonMessage
public string JsonMessage { get; set; }
The JSON format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/json-format.md
Property Value | |
---|---|
Type | Description |
string |
MessageBus
public string MessageBus { get; set; }
Required. The full name of the message bus to publish events to. Format:
projects/{project}/locations/{location}/messageBuses/{messageBus}
.
Property Value | |
---|---|
Type | Description |
string |
ProtoMessage
public CloudEvent ProtoMessage { get; set; }
The Protobuf format of the CloudEvent being published. Specification can be found here: https://github.com/cloudevents/spec/blob/v1.0.2/cloudevents/formats/protobuf-format.md
Property Value | |
---|---|
Type | Description |
CloudEvent |