Class Enum (3.15.8)

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

Enum type definition.

Inheritance

Object > Enum

Namespace

Google.Protobuf.WellKnownTypes

Assembly

Google.Protobuf.dll

Constructors

Enum()

public Enum()

Enum(Enum)

public Enum(Enum other)
Parameter
NameDescription
otherEnum

Fields

EnumvalueFieldNumber

public const int EnumvalueFieldNumber = null

Field number for the "enumvalue" field.

Field Value
TypeDescription
Int32

NameFieldNumber

public const int NameFieldNumber = null

Field number for the "name" field.

Field Value
TypeDescription
Int32

OptionsFieldNumber

public const int OptionsFieldNumber = null

Field number for the "options" field.

Field Value
TypeDescription
Int32

SourceContextFieldNumber

public const int SourceContextFieldNumber = null

Field number for the "source_context" field.

Field Value
TypeDescription
Int32

SyntaxFieldNumber

public const int SyntaxFieldNumber = null

Field number for the "syntax" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

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

Enumvalue

public RepeatedField<EnumValue> Enumvalue { get; }

Enum value definitions.

Property Value
TypeDescription
RepeatedField<EnumValue>

Name

public string Name { get; set; }

Enum type name.

Property Value
TypeDescription
String

Options

public RepeatedField<Option> Options { get; }

Protocol buffer options.

Property Value
TypeDescription
RepeatedField<Option>

Parser

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

SourceContext

public SourceContext SourceContext { get; set; }

The source context.

Property Value
TypeDescription
SourceContext

Syntax

public Syntax Syntax { get; set; }

The source syntax.

Property Value
TypeDescription
Syntax

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public Enum Clone()
Returns
TypeDescription
Enum

Equals(Enum)

public bool Equals(Enum other)
Parameter
NameDescription
otherEnum
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(Enum)

public void MergeFrom(Enum other)
Parameter
NameDescription
otherEnum

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