Class EnumValue (3.15.8)

public sealed class EnumValue : object, IMessage<EnumValue>, IEquatable<EnumValue>, IDeepCloneable<EnumValue>, IBufferMessage, IMessage

Enum value definition.

Inheritance

Object > EnumValue

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

EnumValue()

public EnumValue()

EnumValue(EnumValue)

public EnumValue(EnumValue other)
Parameter
NameDescription
otherEnumValue

Fields

NameFieldNumber

public const int NameFieldNumber = null

Field number for the "name" field.

Field Value
TypeDescription
Int32

NumberFieldNumber

public const int NumberFieldNumber = null

Field number for the "number" field.

Field Value
TypeDescription
Int32

OptionsFieldNumber

public const int OptionsFieldNumber = null

Field number for the "options" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
MessageDescriptor

Name

public string Name { get; set; }

Enum value name.

Property Value
TypeDescription
String

Number

public int Number { get; set; }

Enum value number.

Property Value
TypeDescription
Int32

Options

public RepeatedField<Option> Options { get; }

Protocol buffer options.

Property Value
TypeDescription
RepeatedField<Option>

Parser

public static MessageParser<EnumValue> Parser { get; }
Property Value
TypeDescription
MessageParser<EnumValue>

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public EnumValue Clone()
Returns
TypeDescription
EnumValue

Equals(EnumValue)

public bool Equals(EnumValue other)
Parameter
NameDescription
otherEnumValue
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
NameDescription
otherObject
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream

MergeFrom(EnumValue)

public void MergeFrom(EnumValue other)
Parameter
NameDescription
otherEnumValue

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
NameDescription
inputParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
NameDescription
outputWriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor