public sealed class EnumReservedRange : object, IMessage<EnumDescriptorProto.Types.EnumReservedRange>, IEquatable<EnumDescriptorProto.Types.EnumReservedRange>, IDeepCloneable<EnumDescriptorProto.Types.EnumReservedRange>, IBufferMessage, IMessage
Range of reserved numeric values. Reserved values may not be used by
entries in the same enum. Reserved ranges may not overlap.
Note that this is distinct from DescriptorProto.ReservedRange in that it
is inclusive such that it can appropriately represent the entire int32
domain.
Inheritance
Object >
EnumDescriptorProto.Types.EnumReservedRange
Namespace
Google.Protobuf.Reflection
Assembly
Google.Protobuf.dll
Constructors
EnumReservedRange()
public EnumReservedRange()
EnumReservedRange(EnumDescriptorProto.Types.EnumReservedRange)
public EnumReservedRange(EnumDescriptorProto.Types.EnumReservedRange other)
Fields
EndFieldNumber
public const int EndFieldNumber = null
Field number for the "end" field.
Field Value |
---|
Type | Description |
Int32 | |
StartFieldNumber
public const int StartFieldNumber = null
Field number for the "start" field.
Field Value |
---|
Type | Description |
Int32 | |
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
End
public int End { get; set; }
Property Value |
---|
Type | Description |
Int32 | |
HasEnd
public bool HasEnd { get; }
Gets whether the "end" field is set
Property Value |
---|
Type | Description |
Boolean | |
HasStart
public bool HasStart { get; }
Gets whether the "start" field is set
Property Value |
---|
Type | Description |
Boolean | |
Parser
public static MessageParser<EnumDescriptorProto.Types.EnumReservedRange> Parser { get; }
Start
public int Start { get; set; }
Property Value |
---|
Type | Description |
Int32 | |
Methods
CalculateSize()
public int CalculateSize()
Returns |
---|
Type | Description |
Int32 | |
ClearEnd()
Clears the value of the "end" field
ClearStart()
Clears the value of the "start" field
Clone()
public EnumDescriptorProto.Types.EnumReservedRange Clone()
Equals(EnumDescriptorProto.Types.EnumReservedRange)
public bool Equals(EnumDescriptorProto.Types.EnumReservedRange other)
Equals(Object)
public override bool Equals(object other)
Parameter |
---|
Name | Description |
other | Object
|
GetHashCode()
public override int GetHashCode()
Returns |
---|
Type | Description |
Int32 | |
public void MergeFrom(CodedInputStream input)
MergeFrom(EnumDescriptorProto.Types.EnumReservedRange)
public void MergeFrom(EnumDescriptorProto.Types.EnumReservedRange other)
ToString()
public override string ToString()
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Explicit Interface Implementations
IBufferMessage.InternalMergeFrom(ref ParseContext)
void IBufferMessage.InternalMergeFrom(ref ParseContext input)
IBufferMessage.InternalWriteTo(ref WriteContext)
void IBufferMessage.InternalWriteTo(ref WriteContext output)
IMessage.Descriptor
MessageDescriptor IMessage.Descriptor { get; }