public sealed class UninterpretedOption.Types.NamePart : IMessage<UninterpretedOption.Types.NamePart>, IEquatable<UninterpretedOption.Types.NamePart>, IDeepCloneable<UninterpretedOption.Types.NamePart>, IBufferMessage, IMessage
The name of the uninterpreted option. Each string represents a segment in
a dot-separated name. is_extension is true iff a segment represents an
extension (denoted with parentheses in options specs in .proto files).
E.g.,{ ["foo", false], ["bar.baz", true], ["moo", false] } represents
"foo.(bar.baz).moo".
[[["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\u003e\u003ccode\u003eUninterpretedOption.Types.NamePart\u003c/code\u003e is a class representing a segment of a dot-separated name in an uninterpreted option, and it indicates if the segment is an extension.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eUninterpretedOption.Types.NamePart\u003c/code\u003e implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, enabling features such as deep cloning, buffer message handling, and equality checks.\u003c/p\u003e\n"],["\u003cp\u003eThis class includes properties like \u003ccode\u003eIsExtension\u003c/code\u003e and \u003ccode\u003eNamePart_\u003c/code\u003e, along with corresponding field numbers \u003ccode\u003eIsExtensionFieldNumber\u003c/code\u003e and \u003ccode\u003eNamePart_FieldNumber\u003c/code\u003e, to manage and access name segment data.\u003c/p\u003e\n"],["\u003cp\u003eIt provides methods for various operations, such as \u003ccode\u003eClone()\u003c/code\u003e for creating a deep copy, \u003ccode\u003eEquals()\u003c/code\u003e for comparisons, and \u003ccode\u003eMergeFrom()\u003c/code\u003e to merge data from other messages or streams.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eNamePart\u003c/code\u003e class has constructors that either initialize a blank NamePart or copy values from another \u003ccode\u003eNamePart\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# Class UninterpretedOption.Types.NamePart (3.27.1)\n\nVersion latestkeyboard_arrow_down\n\n- [3.27.1 (latest)](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart)\n- [3.23.0](/dotnet/docs/reference/Google.Protobuf/3.23.0/Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart)\n- [3.15.8](/dotnet/docs/reference/Google.Protobuf/3.15.8/Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart) \n\n public sealed class UninterpretedOption.Types.NamePart : IMessage\u003cUninterpretedOption.Types.NamePart\u003e, IEquatable\u003cUninterpretedOption.Types.NamePart\u003e, IDeepCloneable\u003cUninterpretedOption.Types.NamePart\u003e, IBufferMessage, IMessage\n\nThe name of the uninterpreted option. Each string represents a segment in\na dot-separated name. is_extension is true iff a segment represents an\nextension (denoted with parentheses in options specs in .proto files).\nE.g.,{ \\[\"foo\", false\\], \\[\"bar.baz\", true\\], \\[\"moo\", false\\] } represents\n\"foo.(bar.baz).moo\". \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e UninterpretedOption.Types.NamePart \n\nImplements\n----------\n\n[IMessage](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1)[UninterpretedOption](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption)[Types](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption.Types)[NamePart](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[UninterpretedOption](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption)[Types](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption.Types)[NamePart](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), [IDeepCloneable](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1)[UninterpretedOption](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption)[Types](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption.Types)[NamePart](/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Reflection.UninterpretedOption.Types.NamePart), [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### NamePart()\n\n public NamePart()\n\n### NamePart(NamePart)\n\n public NamePart(UninterpretedOption.Types.NamePart other)\n\nFields\n------\n\n### IsExtensionFieldNumber\n\n public const int IsExtensionFieldNumber = 2\n\nField number for the \"is_extension\" field.\n\n### NamePart_FieldNumber\n\n public const int NamePart_FieldNumber = 1\n\nField number for the \"name_part\" field.\n\nProperties\n----------\n\n### Descriptor\n\n public static MessageDescriptor Descriptor { get; }\n\n### HasIsExtension\n\n public bool HasIsExtension { get; }\n\nGets whether the \"is_extension\" field is set\n\n### HasNamePart_\n\n public bool HasNamePart_ { get; }\n\nGets whether the \"name_part\" field is set\n\n### IsExtension\n\n public bool IsExtension { get; set; }\n\n### NamePart_\n\n public string NamePart_ { get; set; }\n\n### Parser\n\n public static MessageParser\u003cUninterpretedOption.Types.NamePart\u003e Parser { get; }\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### ClearIsExtension()\n\n public void ClearIsExtension()\n\nClears the value of the \"is_extension\" field\n\n### ClearNamePart_()\n\n public void ClearNamePart_()\n\nClears the value of the \"name_part\" field\n\n### Clone()\n\n public UninterpretedOption.Types.NamePart Clone()\n\nCreates a deep clone of this object.\n\n### Equals(NamePart)\n\n public bool Equals(UninterpretedOption.Types.NamePart 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(NamePart)\n\n public void MergeFrom(UninterpretedOption.Types.NamePart 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__)"]]