Table of Contents

Class CloudEvent.Types.CloudEventAttributeValue

Namespace
Microsoft.AutoGen.Contracts
Assembly
Microsoft.AutoGen.Core.Grpc.dll
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
IBufferMessage
IMessage
Inherited Members

Constructors

CloudEventAttributeValue()

public CloudEventAttributeValue()

CloudEventAttributeValue(CloudEventAttributeValue)

public CloudEventAttributeValue(CloudEvent.Types.CloudEventAttributeValue other)

Parameters

other CloudEvent.Types.CloudEventAttributeValue

Fields

CeBooleanFieldNumber

Field number for the "ce_boolean" field.

public const int CeBooleanFieldNumber = 1

Field Value

int

CeBytesFieldNumber

Field number for the "ce_bytes" field.

public const int CeBytesFieldNumber = 4

Field Value

int

CeIntegerFieldNumber

Field number for the "ce_integer" field.

public const int CeIntegerFieldNumber = 2

Field Value

int

CeStringFieldNumber

Field number for the "ce_string" field.

public const int CeStringFieldNumber = 3

Field Value

int

CeTimestampFieldNumber

Field number for the "ce_timestamp" field.

public const int CeTimestampFieldNumber = 7

Field Value

int

CeUriFieldNumber

Field number for the "ce_uri" field.

public const int CeUriFieldNumber = 5

Field Value

int

CeUriRefFieldNumber

Field number for the "ce_uri_ref" field.

public const int CeUriRefFieldNumber = 6

Field Value

int

Properties

AttrCase

public CloudEvent.Types.CloudEventAttributeValue.AttrOneofCase AttrCase { get; }

Property Value

CloudEvent.Types.CloudEventAttributeValue.AttrOneofCase

CeBoolean

public bool CeBoolean { get; set; }

Property Value

bool

CeBytes

public ByteString CeBytes { get; set; }

Property Value

ByteString

CeInteger

public int CeInteger { get; set; }

Property Value

int

CeString

public string CeString { get; set; }

Property Value

string

CeTimestamp

public Timestamp CeTimestamp { get; set; }

Property Value

Timestamp

CeUri

public string CeUri { get; set; }

Property Value

string

CeUriRef

public string CeUriRef { get; set; }

Property Value

string

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

HasCeBoolean

Gets whether the "ce_boolean" field is set

public bool HasCeBoolean { get; }

Property Value

bool

HasCeBytes

Gets whether the "ce_bytes" field is set

public bool HasCeBytes { get; }

Property Value

bool

HasCeInteger

Gets whether the "ce_integer" field is set

public bool HasCeInteger { get; }

Property Value

bool

HasCeString

Gets whether the "ce_string" field is set

public bool HasCeString { get; }

Property Value

bool

HasCeUri

Gets whether the "ce_uri" field is set

public bool HasCeUri { get; }

Property Value

bool

HasCeUriRef

Gets whether the "ce_uri_ref" field is set

public bool HasCeUriRef { get; }

Property Value

bool

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.CloudEventAttributeValue

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object)

Determines whether the specified object is equal to the current object.

public override bool Equals(object other)

Parameters

other object

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

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

other CloudEvent.Types.CloudEventAttributeValue

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 CodedOutputStream

Coded output stream to write the data to. Must not be null.