Class CloudEvent
public sealed class CloudEvent : IMessage<CloudEvent>, IEquatable<CloudEvent>, IDeepCloneable<CloudEvent>, IBufferMessage, IMessage
- Inheritance
-
Cloud
Event
- Implements
-
IMessage<Cloud
Event >IDeepCloneable <CloudEvent >IBufferMessage IMessage
- Inherited Members
- Extension Methods
Constructors
CloudEvent()
CloudEvent(CloudEvent)
Parameters
other
CloudEvent
Fields
AttributesFieldNumber
Field number for the "attributes" field.
Field Value
BinaryDataFieldNumber
Field number for the "binary_data" field.
Field Value
IdFieldNumber
Field number for the "id" field.
Field Value
ProtoDataFieldNumber
Field number for the "proto_data" field.
Field Value
SourceFieldNumber
Field number for the "source" field.
Field Value
SpecVersionFieldNumber
Field number for the "spec_version" field.
Field Value
TextDataFieldNumber
Field number for the "text_data" field.
Field Value
TypeFieldNumber
Field number for the "type" field.
Field Value
Properties
Attributes
Optional & Extension Attributes
Property Value
- Map
Field <string, CloudEvent .Types.CloudEvent >Attribute Value
BinaryData
Property Value
- Byte
String
DataCase
Property Value
Descriptor
Property Value
- Message
Descriptor
HasBinaryData
Gets whether the "binary_data" field is set
Property Value
HasTextData
Gets whether the "text_data" field is set
Property Value
Id
Required Attributes
Property Value
Parser
Property Value
- Message
Parser <CloudEvent >
ProtoData
Property Value
- Any
Source
URI-reference
Property Value
SpecVersion
Property Value
TextData
Property Value
Type
Property Value
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearBinaryData()
Clears the value of the oneof if it's currently set to "binary_data"
ClearData()
ClearTextData()
Clears the value of the oneof if it's currently set to "text_data"
Clone()
Creates a deep clone of this object.
Returns
- Cloud
Event A deep clone of this object.
Equals(CloudEvent)
Indicates whether the current object is equal to another object of the same type.
Parameters
other
CloudEvent An object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
Parameters
other
object
Returns
GetHashCode()
Serves as the default hash function.
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
Parameters
input
CodedInput Stream
Remarks
See the user guide for precise merge semantics.
MergeFrom(CloudEvent)
Merges the given message into this one.
Parameters
other
CloudEvent
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
Parameters
output
CodedOutput Stream Coded output stream to write the data to. Must not be null.