Show / Hide Table of Contents

Class EnumDescriptorProto.Types.EnumReservedRange

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
System.Object
EnumDescriptorProto.Types.EnumReservedRange
Implements
IMessage<EnumDescriptorProto.Types.EnumReservedRange>
IMessage
System.IEquatable<EnumDescriptorProto.Types.EnumReservedRange>
IDeepCloneable<EnumDescriptorProto.Types.EnumReservedRange>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Protobuf.Reflection
Assembly: Google.Protobuf.dll
Syntax
public sealed class EnumReservedRange : IMessage<EnumDescriptorProto.Types.EnumReservedRange>, IMessage, IEquatable<EnumDescriptorProto.Types.EnumReservedRange>, IDeepCloneable<EnumDescriptorProto.Types.EnumReservedRange>

Constructors

EnumReservedRange()

Declaration
public EnumReservedRange()

EnumReservedRange(EnumDescriptorProto.Types.EnumReservedRange)

Declaration
public EnumReservedRange(EnumDescriptorProto.Types.EnumReservedRange other)
Parameters
Type Name Description
EnumDescriptorProto.Types.EnumReservedRange other

Fields

EndFieldNumber

Field number for the "end" field.

Declaration
public const int EndFieldNumber = 2
Field Value
Type Description
System.Int32

StartFieldNumber

Field number for the "start" field.

Declaration
public const int StartFieldNumber = 1
Field Value
Type Description
System.Int32

Properties

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

End

Inclusive.

Declaration
public int End { get; set; }
Property Value
Type Description
System.Int32

HasEnd

Gets whether the "end" field is set

Declaration
public bool HasEnd { get; }
Property Value
Type Description
System.Boolean

HasStart

Gets whether the "start" field is set

Declaration
public bool HasStart { get; }
Property Value
Type Description
System.Boolean

Parser

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

Start

Inclusive.

Declaration
public int Start { get; set; }
Property Value
Type Description
System.Int32

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

ClearEnd()

Clears the value of the "end" field

Declaration
public void ClearEnd()

ClearStart()

Clears the value of the "start" field

Declaration
public void ClearStart()

Clone()

Declaration
public EnumDescriptorProto.Types.EnumReservedRange Clone()
Returns
Type Description
EnumDescriptorProto.Types.EnumReservedRange
Implements
IDeepCloneable<T>.Clone()

Equals(EnumDescriptorProto.Types.EnumReservedRange)

Declaration
public bool Equals(EnumDescriptorProto.Types.EnumReservedRange other)
Parameters
Type Name Description
EnumDescriptorProto.Types.EnumReservedRange other
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()

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(EnumDescriptorProto.Types.EnumReservedRange)

Declaration
public void MergeFrom(EnumDescriptorProto.Types.EnumReservedRange other)
Parameters
Type Name Description
EnumDescriptorProto.Types.EnumReservedRange other
Implements
IMessage<T>.MergeFrom(T)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

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

Extension Methods

MessageExtensions.MergeFrom(IMessage, Byte[])
MessageExtensions.MergeFrom(IMessage, Byte[], Int32, Int32)
MessageExtensions.MergeFrom(IMessage, ByteString)
MessageExtensions.MergeFrom(IMessage, Stream)
MessageExtensions.MergeDelimitedFrom(IMessage, Stream)
MessageExtensions.ToByteArray(IMessage)
MessageExtensions.WriteTo(IMessage, Stream)
MessageExtensions.WriteDelimitedTo(IMessage, Stream)
MessageExtensions.ToByteString(IMessage)
MessageExtensions.IsInitialized(IMessage)
Back to top