public sealed class DescriptorProto.Types.ExtensionRange : IMessage<DescriptorProto.Types.ExtensionRange>, IEquatable<DescriptorProto.Types.ExtensionRange>, IDeepCloneable<DescriptorProto.Types.ExtensionRange>, IBufferMessage, IMessage
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThis document provides detailed information about the \u003ccode\u003eDescriptorProto.Types.ExtensionRange\u003c/code\u003e class, which is part of the \u003ccode\u003eGoogle.Protobuf.Reflection\u003c/code\u003e namespace in the Google.Protobuf.dll assembly.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eExtensionRange\u003c/code\u003e class implements several interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, allowing for message-related operations, equality checks, deep cloning, and buffered message handling.\u003c/p\u003e\n"],["\u003cp\u003eThe class defines properties such as \u003ccode\u003eStart\u003c/code\u003e, \u003ccode\u003eEnd\u003c/code\u003e, \u003ccode\u003eHasStart\u003c/code\u003e, \u003ccode\u003eHasEnd\u003c/code\u003e, \u003ccode\u003eOptions\u003c/code\u003e, \u003ccode\u003eDescriptor\u003c/code\u003e, and \u003ccode\u003eParser\u003c/code\u003e, which provide access to the start and end of the range, the field options, and message parsing functionality, as well as if the start and end fields are set.\u003c/p\u003e\n"],["\u003cp\u003eKey methods of \u003ccode\u003eExtensionRange\u003c/code\u003e include \u003ccode\u003eCalculateSize\u003c/code\u003e, \u003ccode\u003eClearEnd\u003c/code\u003e, \u003ccode\u003eClearStart\u003c/code\u003e, \u003ccode\u003eClone\u003c/code\u003e, \u003ccode\u003eEquals\u003c/code\u003e, \u003ccode\u003eGetHashCode\u003c/code\u003e, \u003ccode\u003eMergeFrom\u003c/code\u003e, \u003ccode\u003eToString\u003c/code\u003e, and \u003ccode\u003eWriteTo\u003c/code\u003e, offering various operations like size calculation, field clearing, cloning, comparison, hash code generation, merging, and serialization.\u003c/p\u003e\n"],["\u003cp\u003eThis class has various versions available, with the latest being version 3.27.1, and it has \u003ccode\u003eStart\u003c/code\u003e, \u003ccode\u003eEnd\u003c/code\u003e, and \u003ccode\u003eOptions\u003c/code\u003e as its main fields, each with an associated field number.\u003c/p\u003e\n"]]],[],null,["# Class DescriptorProto.Types.ExtensionRange (3.27.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.27.1 (latest)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange)\n- [3.23.0](/dotnet/docs/reference/Google.Protobuf/3.23.0/Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange)\n- [3.15.8](/dotnet/docs/reference/Google.Protobuf/3.15.8/Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange) \n\n public sealed class DescriptorProto.Types.ExtensionRange : IMessage\u003cDescriptorProto.Types.ExtensionRange\u003e, IEquatable\u003cDescriptorProto.Types.ExtensionRange\u003e, IDeepCloneable\u003cDescriptorProto.Types.ExtensionRange\u003e, IBufferMessage, IMessage\n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e DescriptorProto.Types.ExtensionRange \n\nImplements\n----------\n\n[IMessage](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1)[DescriptorProto](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto)[Types](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto.Types)[ExtensionRange](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[DescriptorProto](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto)[Types](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto.Types)[ExtensionRange](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), [IDeepCloneable](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1)[DescriptorProto](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto)[Types](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto.Types)[ExtensionRange](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.DescriptorProto.Types.ExtensionRange), [IBufferMessage](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage), [IMessage](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage) \n\nInherited Members\n-----------------\n\n[object.Equals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ReferenceEquals(object, object)](https://learn.microsoft.com/dotnet/api/system.object.referenceequals)\n\nNamespace\n---------\n\n[Google.Protobuf.Reflection](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection)\n\nAssembly\n--------\n\nGoogle.Protobuf.dll\n\nConstructors\n------------\n\n### ExtensionRange()\n\n public ExtensionRange()\n\n### ExtensionRange(ExtensionRange)\n\n public ExtensionRange(DescriptorProto.Types.ExtensionRange other)\n\nFields\n------\n\n### EndFieldNumber\n\n public const int EndFieldNumber = 2\n\nField number for the \"end\" field.\n\n### OptionsFieldNumber\n\n public const int OptionsFieldNumber = 3\n\nField number for the \"options\" field.\n\n### StartFieldNumber\n\n public const int StartFieldNumber = 1\n\nField number for the \"start\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### End\n\n public int End { get; set; }\n\nExclusive.\n\n### HasEnd\n\n public bool HasEnd { get; }\n\nGets whether the \"end\" field is set\n\n### HasStart\n\n public bool HasStart { get; }\n\nGets whether the \"start\" field is set\n\n### Options\n\n public ExtensionRangeOptions Options { get; set; }\n\n### Parser\n\n public static MessageParser\u003cDescriptorProto.Types.ExtensionRange\u003e Parser { get; }\n\n### Start\n\n public int Start { get; set; }\n\nInclusive.\n\nMethods\n-------\n\n### CalculateSize()\n\n public int CalculateSize()\n\nCalculates the size of this message in Protocol Buffer wire format, in bytes.\n\n### ClearEnd()\n\n public void ClearEnd()\n\nClears the value of the \"end\" field\n\n### ClearStart()\n\n public void ClearStart()\n\nClears the value of the \"start\" field\n\n### Clone()\n\n public DescriptorProto.Types.ExtensionRange Clone()\n\nCreates a deep clone of this object.\n\n### Equals(ExtensionRange)\n\n public bool Equals(DescriptorProto.Types.ExtensionRange other)\n\n### Equals(object)\n\n public override bool Equals(object other)\n\n**Overrides** \n[object.Equals(object)](https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object))\n\n### GetHashCode()\n\n public override int GetHashCode()\n\n**Overrides** \n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode)\n\n### MergeFrom(CodedInputStream)\n\n public void MergeFrom(CodedInputStream input)\n\nMerges the data from the specified coded input stream with the current message.\n\n**Remarks** \nSee the user guide for precise merge semantics.\n\n### MergeFrom(ExtensionRange)\n\n public void MergeFrom(DescriptorProto.Types.ExtensionRange other)\n\nMerges the given message into this one.\n\n**Remarks** \nSee the user guide for precise merge semantics.\n\n### ToString()\n\n public override string ToString()\n\n**Overrides** \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\n### WriteTo(CodedOutputStream)\n\n public void WriteTo(CodedOutputStream output)\n\nWrites the data to the given coded output stream.\n\nExtension Methods\n-----------------\n\n[MessageExtensions.IsInitialized(IMessage)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_IsInitialized_Google_Protobuf_IMessage_) \n[MessageExtensions.MergeDelimitedFrom(IMessage, Stream)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_MergeDelimitedFrom_Google_Protobuf_IMessage_System_IO_Stream_) \n[MessageExtensions.MergeFrom(IMessage, ByteString)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_MergeFrom_Google_Protobuf_IMessage_Google_Protobuf_ByteString_) \n[MessageExtensions.MergeFrom(IMessage, ReadOnlySequence\\\u003cbyte\\\u003e)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_MergeFrom_Google_Protobuf_IMessage_System_Buffers_ReadOnlySequence_System_Byte__) \n[MessageExtensions.MergeFrom(IMessage, byte\\[\\])](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_MergeFrom_Google_Protobuf_IMessage_System_Byte___) \n[MessageExtensions.MergeFrom(IMessage, byte\\[\\], int, int)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_MergeFrom_Google_Protobuf_IMessage_System_Byte___System_Int32_System_Int32_) \n[MessageExtensions.MergeFrom(IMessage, Stream)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_MergeFrom_Google_Protobuf_IMessage_System_IO_Stream_) \n[MessageExtensions.MergeFrom(IMessage, ReadOnlySpan\\\u003cbyte\\\u003e)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_MergeFrom_Google_Protobuf_IMessage_System_ReadOnlySpan_System_Byte__) \n[MessageExtensions.ToByteArray(IMessage)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_ToByteArray_Google_Protobuf_IMessage_) \n[MessageExtensions.ToByteString(IMessage)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_ToByteString_Google_Protobuf_IMessage_) \n[MessageExtensions.WriteDelimitedTo(IMessage, Stream)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_WriteDelimitedTo_Google_Protobuf_IMessage_System_IO_Stream_) \n[MessageExtensions.WriteTo(IMessage, IBufferWriter\\\u003cbyte\\\u003e)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_WriteTo_Google_Protobuf_IMessage_System_Buffers_IBufferWriter_System_Byte__) \n[MessageExtensions.WriteTo(IMessage, Stream)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_WriteTo_Google_Protobuf_IMessage_System_IO_Stream_) \n[MessageExtensions.WriteTo(IMessage, Span\\\u003cbyte\\\u003e)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.MessageExtensions#Google_Protobuf_MessageExtensions_WriteTo_Google_Protobuf_IMessage_System_Span_System_Byte__)"]]