Class DescriptorProto.Types.ReservedRange

public sealed class ReservedRange : object, IMessage<DescriptorProto.Types.ReservedRange>, IEquatable<DescriptorProto.Types.ReservedRange>, IDeepCloneable<DescriptorProto.Types.ReservedRange>, IBufferMessage, IMessage

Range of reserved tag numbers. Reserved tag numbers may not be used by fields or extension ranges in the same message. Reserved ranges may not overlap.

Inheritance

Object > DescriptorProto.Types.ReservedRange

Namespace

Google.Protobuf.Reflection

Assembly

Google.Protobuf.dll

Constructors

ReservedRange()

public ReservedRange()

ReservedRange(DescriptorProto.Types.ReservedRange)

public ReservedRange(DescriptorProto.Types.ReservedRange other)
Parameter
TypeNameDescription
DescriptorProto.Types.ReservedRangeother

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; }

Exclusive.

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<DescriptorProto.Types.ReservedRange> Parser { get; }
Property Value
TypeDescription
MessageParser<DescriptorProto.Types.ReservedRange>

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 DescriptorProto.Types.ReservedRange Clone()
Returns
TypeDescription
DescriptorProto.Types.ReservedRange

Equals(DescriptorProto.Types.ReservedRange)

public bool Equals(DescriptorProto.Types.ReservedRange other)
Parameter
TypeNameDescription
DescriptorProto.Types.ReservedRangeother
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
TypeNameDescription
Objectother
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)
Parameter
TypeNameDescription
CodedInputStreaminput

MergeFrom(DescriptorProto.Types.ReservedRange)

public void MergeFrom(DescriptorProto.Types.ReservedRange other)
Parameter
TypeNameDescription
DescriptorProto.Types.ReservedRangeother

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)
Parameter
TypeNameDescription
CodedOutputStreamoutput

Explicit Interface Implementations

IBufferMessage.InternalMergeFrom(ref ParseContext)

void IBufferMessage.InternalMergeFrom(ref ParseContext input)
Parameter
TypeNameDescription
ParseContextinput

IBufferMessage.InternalWriteTo(ref WriteContext)

void IBufferMessage.InternalWriteTo(ref WriteContext output)
Parameter
TypeNameDescription
WriteContextoutput

IMessage.Descriptor

MessageDescriptor IMessage.Descriptor { get; }
Returns
TypeDescription
MessageDescriptor

Implements

IEquatable<>