Class EnumValueDescriptorProto
Describes a value within an enum.
Inheritance
System.Object
EnumValueDescriptorProto
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 EnumValueDescriptorProto : IMessage<EnumValueDescriptorProto>, IMessage, IEquatable<EnumValueDescriptorProto>, IDeepCloneable<EnumValueDescriptorProto>
Constructors
EnumValueDescriptorProto()
Declaration
public EnumValueDescriptorProto()
EnumValueDescriptorProto(EnumValueDescriptorProto)
Declaration
public EnumValueDescriptorProto(EnumValueDescriptorProto other)
Parameters
Fields
NameFieldNumber
Field number for the "name" field.
Declaration
public const int NameFieldNumber = 1
Field Value
| Type |
Description |
| System.Int32 |
|
NumberFieldNumber
Field number for the "number" field.
Declaration
public const int NumberFieldNumber = 2
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 |
|
Properties
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
HasName
Gets whether the "name" field is set
Declaration
public bool HasName { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
HasNumber
Gets whether the "number" field is set
Declaration
public bool HasNumber { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
HasOptions
Gets whether the options field is set
Declaration
public bool HasOptions { get; }
Property Value
| Type |
Description |
| System.Boolean |
|
Name
Declaration
public string Name { get; set; }
Property Value
| Type |
Description |
| System.String |
|
Number
Declaration
public int Number { get; set; }
Property Value
| Type |
Description |
| System.Int32 |
|
Options
Declaration
public EnumValueOptions Options { get; set; }
Property Value
Parser
Declaration
public static MessageParser<EnumValueDescriptorProto> Parser { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
| Type |
Description |
| System.Int32 |
|
Implements
ClearName()
Clears the value of the "name" field
Declaration
ClearNumber()
Clears the value of the "number" field
Declaration
public void ClearNumber()
ClearOptions()
Clears the value of the options field
Declaration
public void ClearOptions()
Clone()
Declaration
public EnumValueDescriptorProto Clone()
Returns
Implements
Equals(EnumValueDescriptorProto)
Declaration
public bool Equals(EnumValueDescriptorProto other)
Parameters
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(EnumValueDescriptorProto)
Declaration
public void MergeFrom(EnumValueDescriptorProto other)
Parameters
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