Class UninterpretedOption.Types.NamePart
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], ["qux", false] } represents
"foo.(bar.baz).qux".
Inheritance
System.Object
UninterpretedOption.Types.NamePart
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Protobuf.dll
Syntax
public sealed class NamePart : IMessage<UninterpretedOption.Types.NamePart>, IMessage, IEquatable<UninterpretedOption.Types.NamePart>, IDeepCloneable<UninterpretedOption.Types.NamePart>
Constructors
NamePart()
Declaration
NamePart(UninterpretedOption.Types.NamePart)
Declaration
public NamePart(UninterpretedOption.Types.NamePart other)
Parameters
Fields
IsExtensionFieldNumber
Field number for the "is_extension" field.
Declaration
public const int IsExtensionFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
NamePart_FieldNumber
Field number for the "name_part" field.
Declaration
public const int NamePart_FieldNumber = 1
Field Value
Type |
Description |
System.Int32 |
|
Properties
Descriptor
Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
HasIsExtension
Gets whether the "is_extension" field is set
Declaration
public bool HasIsExtension { get; }
Property Value
Type |
Description |
System.Boolean |
|
HasNamePart_
Gets whether the "name_part" field is set
Declaration
public bool HasNamePart_ { get; }
Property Value
Type |
Description |
System.Boolean |
|
IsExtension
Declaration
public bool IsExtension { get; set; }
Property Value
Type |
Description |
System.Boolean |
|
NamePart_
Declaration
public string NamePart_ { get; set; }
Property Value
Type |
Description |
System.String |
|
Parser
Declaration
public static MessageParser<UninterpretedOption.Types.NamePart> Parser { get; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
ClearIsExtension()
Clears the value of the "is_extension" field
Declaration
public void ClearIsExtension()
ClearNamePart_()
Clears the value of the "name_part" field
Declaration
public void ClearNamePart_()
Clone()
Declaration
public UninterpretedOption.Types.NamePart Clone()
Returns
Implements
Equals(UninterpretedOption.Types.NamePart)
Declaration
public bool Equals(UninterpretedOption.Types.NamePart other)
Parameters
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()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(UninterpretedOption.Types.NamePart)
Declaration
public void MergeFrom(UninterpretedOption.Types.NamePart other)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements
Extension Methods