Class Enum
Inheritance
System.Object
Enum
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Protobuf.dll
Syntax
public sealed class Enum : IMessage<Enum>, IMessage, IEquatable<Enum>, IDeepCloneable<Enum>
Constructors
Enum()
Declaration
Enum(Enum)
Declaration
Parameters
Type |
Name |
Description |
Enum |
other |
|
Fields
EnumvalueFieldNumber
Field number for the "enumvalue" field.
Declaration
public const int EnumvalueFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
OptionsFieldNumber
Field number for the "options" field.
Declaration
public const int OptionsFieldNumber = 3
Field Value
Type |
Description |
System.Int32 |
|
SourceContextFieldNumber
Field number for the "source_context" field.
Declaration
public const int SourceContextFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
SyntaxFieldNumber
Field number for the "syntax" field.
Declaration
public const int SyntaxFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
Properties
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Enumvalue
Declaration
public RepeatedField<EnumValue> Enumvalue { get; }
Property Value
Name
Declaration
public string Name { get; set; }
Property Value
Type |
Description |
System.String |
|
Options
Declaration
public RepeatedField<Option> Options { get; }
Property Value
Parser
Declaration
public static MessageParser<Enum> Parser { get; }
Property Value
SourceContext
Declaration
public SourceContext SourceContext { get; set; }
Property Value
Syntax
Declaration
public Syntax Syntax { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
Clone()
Declaration
Returns
Implements
Equals(Enum)
Declaration
public bool Equals(Enum other)
Parameters
Type |
Name |
Description |
Enum |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Implements
System.IEquatable<T>.Equals(T)
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
System.Object |
other |
|
Returns
Type |
Description |
System.Boolean |
|
Overrides
System.Object.Equals(System.Object)
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Type |
Description |
System.Int32 |
|
Overrides
System.Object.GetHashCode()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(Enum)
Declaration
public void MergeFrom(Enum other)
Parameters
Type |
Name |
Description |
Enum |
other |
|
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements
Extension Methods