Class EnumDescriptorProto.Types.EnumReservedRange (3.15.8)

Stay organized with collections Save and categorize content based on your preferences.
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)
Parameter
NameDescription
otherEnumDescriptorProto.Types.EnumReservedRange

Fields

EndFieldNumber

public const int EndFieldNumber = null

Field number for the "end" field.

Field Value
TypeDescription
Int32

StartFieldNumber

public const int StartFieldNumber = null

Field number for the "start" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

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

End

public int End { get; set; }

Inclusive.

Property Value
TypeDescription
Int32

HasEnd

public bool HasEnd { get; }

Gets whether the "end" field is set

Property Value
TypeDescription
Boolean

HasStart

public bool HasStart { get; }

Gets whether the "start" field is set

Property Value
TypeDescription
Boolean

Parser

public static MessageParser<EnumDescriptorProto.Types.EnumReservedRange> Parser { get; }
Property Value
TypeDescription
MessageParser<EnumDescriptorProto.Types.EnumReservedRange>

Start

public int Start { get; set; }

Inclusive.

Property Value
TypeDescription
Int32

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

ClearEnd()

public void ClearEnd()

Clears the value of the "end" field

ClearStart()

public void ClearStart()

Clears the value of the "start" field

Clone()

public EnumDescriptorProto.Types.EnumReservedRange Clone()
Returns
TypeDescription
EnumDescriptorProto.Types.EnumReservedRange

Equals(EnumDescriptorProto.Types.EnumReservedRange)

public bool Equals(EnumDescriptorProto.Types.EnumReservedRange other)
Parameter
NameDescription
otherEnumDescriptorProto.Types.EnumReservedRange
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(EnumDescriptorProto.Types.EnumReservedRange)

public void MergeFrom(EnumDescriptorProto.Types.EnumReservedRange other)
Parameter
NameDescription
otherEnumDescriptorProto.Types.EnumReservedRange

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