Class CloudEvent.Types.CloudEventAttributeValue
public sealed class CloudEvent.Types.CloudEventAttributeValue : IMessage<CloudEvent.Types.CloudEventAttributeValue>, IEquatable<CloudEvent.Types.CloudEventAttributeValue>, IDeepCloneable<CloudEvent.Types.CloudEventAttributeValue>, IBufferMessage, IMessage
- Inheritance
-
CloudEvent.Types.CloudEventAttributeValue
- Implements
-
IBufferMessageIMessage
- Inherited Members
Constructors
CloudEventAttributeValue()
public CloudEventAttributeValue()
CloudEventAttributeValue(CloudEventAttributeValue)
public CloudEventAttributeValue(CloudEvent.Types.CloudEventAttributeValue other)
Parameters
Fields
CeBooleanFieldNumber
Field number for the "ce_boolean" field.
public const int CeBooleanFieldNumber = 1
Field Value
CeBytesFieldNumber
Field number for the "ce_bytes" field.
public const int CeBytesFieldNumber = 4
Field Value
CeIntegerFieldNumber
Field number for the "ce_integer" field.
public const int CeIntegerFieldNumber = 2
Field Value
CeStringFieldNumber
Field number for the "ce_string" field.
public const int CeStringFieldNumber = 3
Field Value
CeTimestampFieldNumber
Field number for the "ce_timestamp" field.
public const int CeTimestampFieldNumber = 7
Field Value
CeUriFieldNumber
Field number for the "ce_uri" field.
public const int CeUriFieldNumber = 5
Field Value
CeUriRefFieldNumber
Field number for the "ce_uri_ref" field.
public const int CeUriRefFieldNumber = 6
Field Value
Properties
AttrCase
public CloudEvent.Types.CloudEventAttributeValue.AttrOneofCase AttrCase { get; }
Property Value
CeBoolean
public bool CeBoolean { get; set; }
Property Value
CeBytes
public ByteString CeBytes { get; set; }
Property Value
- ByteString
CeInteger
public int CeInteger { get; set; }
Property Value
CeString
public string CeString { get; set; }
Property Value
CeTimestamp
public Timestamp CeTimestamp { get; set; }
Property Value
- Timestamp
CeUri
public string CeUri { get; set; }
Property Value
CeUriRef
public string CeUriRef { get; set; }
Property Value
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
HasCeBoolean
Gets whether the "ce_boolean" field is set
public bool HasCeBoolean { get; }
Property Value
HasCeBytes
Gets whether the "ce_bytes" field is set
public bool HasCeBytes { get; }
Property Value
HasCeInteger
Gets whether the "ce_integer" field is set
public bool HasCeInteger { get; }
Property Value
HasCeString
Gets whether the "ce_string" field is set
public bool HasCeString { get; }
Property Value
HasCeUri
Gets whether the "ce_uri" field is set
public bool HasCeUri { get; }
Property Value
HasCeUriRef
Gets whether the "ce_uri_ref" field is set
public bool HasCeUriRef { get; }
Property Value
Parser
public static MessageParser<CloudEvent.Types.CloudEventAttributeValue> Parser { get; }
Property Value
- MessageParser<CloudEvent.Types.CloudEventAttributeValue>
Methods
CalculateSize()
Calculates the size of this message in Protocol Buffer wire format, in bytes.
public int CalculateSize()
Returns
- int
The number of bytes required to write this message to a coded output stream.
ClearAttr()
public void ClearAttr()
ClearCeBoolean()
Clears the value of the oneof if it's currently set to "ce_boolean"
public void ClearCeBoolean()
ClearCeBytes()
Clears the value of the oneof if it's currently set to "ce_bytes"
public void ClearCeBytes()
ClearCeInteger()
Clears the value of the oneof if it's currently set to "ce_integer"
public void ClearCeInteger()
ClearCeString()
Clears the value of the oneof if it's currently set to "ce_string"
public void ClearCeString()
ClearCeUri()
Clears the value of the oneof if it's currently set to "ce_uri"
public void ClearCeUri()
ClearCeUriRef()
Clears the value of the oneof if it's currently set to "ce_uri_ref"
public void ClearCeUriRef()
Clone()
Creates a deep clone of this object.
public CloudEvent.Types.CloudEventAttributeValue Clone()
Returns
- CloudEvent.Types.CloudEventAttributeValue
A deep clone of this object.
Equals(CloudEventAttributeValue)
Indicates whether the current object is equal to another object of the same type.
public bool Equals(CloudEvent.Types.CloudEventAttributeValue other)
Parameters
other
CloudEvent.Types.CloudEventAttributeValueAn object to compare with this object.
Returns
Equals(object)
Determines whether the specified object is equal to the current object.
public override bool Equals(object other)
Parameters
other
object
Returns
GetHashCode()
Serves as the default hash function.
public override int GetHashCode()
Returns
- int
A hash code for the current object.
MergeFrom(CodedInputStream)
Merges the data from the specified coded input stream with the current message.
public void MergeFrom(CodedInputStream input)
Parameters
input
CodedInputStream
Remarks
See the user guide for precise merge semantics.
MergeFrom(CloudEventAttributeValue)
Merges the given message into this one.
public void MergeFrom(CloudEvent.Types.CloudEventAttributeValue other)
Parameters
Remarks
See the user guide for precise merge semantics.
ToString()
Returns a string that represents the current object.
public override string ToString()
Returns
- string
A string that represents the current object.
WriteTo(CodedOutputStream)
Writes the data to the given coded output stream.
public void WriteTo(CodedOutputStream output)
Parameters
output
CodedOutputStreamCoded output stream to write the data to. Must not be null.