Class EnumDescriptorProto.Types.EnumReservedRange (3.15.8)

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
Name Description
other EnumDescriptorProto.Types.EnumReservedRange

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; }
Property Value
Type Description
MessageDescriptor

End

public int End { get; set; }

Inclusive.

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; }
Property Value
Type Description
MessageParser<EnumDescriptorProto.Types.EnumReservedRange>

Start

public int Start { get; set; }

Inclusive.

Property Value
Type Description
Int32

Methods

CalculateSize()

public int CalculateSize()
Returns
Type Description
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
Type Description
EnumDescriptorProto.Types.EnumReservedRange

Equals(EnumDescriptorProto.Types.EnumReservedRange)

public bool Equals(EnumDescriptorProto.Types.EnumReservedRange other)
Parameter
Name Description
other EnumDescriptorProto.Types.EnumReservedRange
Returns
Type Description
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
Name Description
other Object
Returns
Type Description
Boolean

GetHashCode()

public override int GetHashCode()
Returns
Type Description
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream

MergeFrom(EnumDescriptorProto.Types.EnumReservedRange)

public void MergeFrom(EnumDescriptorProto.Types.EnumReservedRange other)
Parameter
Name Description
other EnumDescriptorProto.Types.EnumReservedRange

ToString()

public override string ToString()
Returns
Type Description
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
Name Description
input ParseContext

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
Name Description
output WriteContext

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor