Class DescriptorProto.Types.ExtensionRange
Inheritance
System.Object
DescriptorProto.Types.ExtensionRange
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 ExtensionRange : IMessage<DescriptorProto.Types.ExtensionRange>, IMessage, IEquatable<DescriptorProto.Types.ExtensionRange>, IDeepCloneable<DescriptorProto.Types.ExtensionRange>
Constructors
ExtensionRange()
Declaration
ExtensionRange(DescriptorProto.Types.ExtensionRange)
Declaration
public ExtensionRange(DescriptorProto.Types.ExtensionRange other)
Parameters
Fields
EndFieldNumber
Field number for the "end" field.
Declaration
public const int EndFieldNumber = 2
Field Value
Type |
Description |
System.Int32 |
|
OptionsFieldNumber
Field number for the "options" field.
Declaration
public const int OptionsFieldNumber = 3
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
End
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 |
|
HasOptions
Gets whether the options field is set
Declaration
public bool HasOptions { 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 |
|
Options
Declaration
public ExtensionRangeOptions Options { get; set; }
Property Value
Parser
Declaration
public static MessageParser<DescriptorProto.Types.ExtensionRange> Parser { get; }
Property Value
Start
Declaration
public int Start { get; set; }
Property Value
Type |
Description |
System.Int32 |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Type |
Description |
System.Int32 |
|
Implements
ClearEnd()
Clears the value of the "end" field
Declaration
ClearOptions()
Clears the value of the options field
Declaration
public void ClearOptions()
ClearStart()
Clears the value of the "start" field
Declaration
Clone()
Declaration
public DescriptorProto.Types.ExtensionRange Clone()
Returns
Implements
Equals(DescriptorProto.Types.ExtensionRange)
Declaration
public bool Equals(DescriptorProto.Types.ExtensionRange 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(DescriptorProto.Types.ExtensionRange)
Declaration
public void MergeFrom(DescriptorProto.Types.ExtensionRange 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