Class EnumDescriptorProto
Inheritance
System.Object
EnumDescriptorProto
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 EnumDescriptorProto : IMessage<EnumDescriptorProto>, IMessage, IEquatable<EnumDescriptorProto>, IDeepCloneable<EnumDescriptorProto>
Constructors
EnumDescriptorProto()
Declaration
public EnumDescriptorProto()
EnumDescriptorProto(EnumDescriptorProto)
Declaration
public EnumDescriptorProto(EnumDescriptorProto other)
Parameters
Fields
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 |
|
ReservedNameFieldNumber
Field number for the "reserved_name" field.
Declaration
public const int ReservedNameFieldNumber = 5
Field Value
Type |
Description |
System.Int32 |
|
ReservedRangeFieldNumber
Field number for the "reserved_range" field.
Declaration
public const int ReservedRangeFieldNumber = 4
Field Value
Type |
Description |
System.Int32 |
|
ValueFieldNumber
Field number for the "value" field.
Declaration
public const int ValueFieldNumber = 2
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 |
|
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 |
|
Options
Declaration
public EnumOptions Options { get; set; }
Property Value
Parser
Declaration
public static MessageParser<EnumDescriptorProto> Parser { get; }
Property Value
ReservedName
Reserved enum value names, which may not be reused. A given name may only
be reserved once.
Declaration
public RepeatedField<string> ReservedName { get; }
Property Value
ReservedRange
Range of reserved numeric values. Reserved numeric values may not be used
by enum values in the same enum declaration. Reserved ranges may not
overlap.
Declaration
public RepeatedField<EnumDescriptorProto.Types.EnumReservedRange> ReservedRange { get; }
Property Value
Value
Declaration
public RepeatedField<EnumValueDescriptorProto> Value { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
ClearName()
Clears the value of the "name" field
Declaration
ClearOptions()
Clears the value of the options field
Declaration
public void ClearOptions()
Clone()
Declaration
public EnumDescriptorProto Clone()
Returns
Implements
Equals(EnumDescriptorProto)
Declaration
public bool Equals(EnumDescriptorProto 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(EnumDescriptorProto)
Declaration
public void MergeFrom(EnumDescriptorProto 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