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
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 ReservedRange : IMessage<DescriptorProto.Types.ReservedRange>, IMessage, IEquatable<DescriptorProto.Types.ReservedRange>, IDeepCloneable<DescriptorProto.Types.ReservedRange>
Constructors
ReservedRange()
Declaration
ReservedRange(DescriptorProto.Types.ReservedRange)
Declaration
public ReservedRange(DescriptorProto.Types.ReservedRange other)
Parameters
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
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 |
|
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
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
ClearStart()
Clears the value of the "start" field
Declaration
Clone()
Declaration
public DescriptorProto.Types.ReservedRange Clone()
Returns
Implements
Equals(DescriptorProto.Types.ReservedRange)
Declaration
public bool Equals(DescriptorProto.Types.ReservedRange 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.ReservedRange)
Declaration
public void MergeFrom(DescriptorProto.Types.ReservedRange 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