Show / Hide Table of Contents

Class DescriptorProto.Types.ReservedRange

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
System.Object
DescriptorProto.Types.ReservedRange
Implements
IMessage<DescriptorProto.Types.ReservedRange>
IMessage
System.IEquatable<DescriptorProto.Types.ReservedRange>
IDeepCloneable<DescriptorProto.Types.ReservedRange>
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 ReservedRange : IMessage<DescriptorProto.Types.ReservedRange>, IMessage, IEquatable<DescriptorProto.Types.ReservedRange>, IDeepCloneable<DescriptorProto.Types.ReservedRange>

Constructors

ReservedRange()

Declaration
public ReservedRange()

ReservedRange(DescriptorProto.Types.ReservedRange)

Declaration
public ReservedRange(DescriptorProto.Types.ReservedRange other)
Parameters
Type Name Description
DescriptorProto.Types.ReservedRange 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

Exclusive.

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

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 DescriptorProto.Types.ReservedRange Clone()
Returns
Type Description
DescriptorProto.Types.ReservedRange
Implements
IDeepCloneable<T>.Clone()

Equals(DescriptorProto.Types.ReservedRange)

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

Declaration
public void MergeFrom(DescriptorProto.Types.ReservedRange other)
Parameters
Type Name Description
DescriptorProto.Types.ReservedRange 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