Class Range
Range represents a set of integer values, used to match fields of a calendar
time in StructuredCalendarSpec. If end < start, then end is interpreted as
equal to start. This means you can use a Range with start set to a value, and
end and step unset (defaulting to 0) to represent a single value.
Implements
Google.Protobuf.IBufferMessage
Assembly: Temporalio.dll
Syntax
public sealed class Range : Google.Protobuf.IMessage<Range>, Google.Protobuf.IBufferMessage
Constructors
Range()
Declaration
Range(Range)
Declaration
public Range(Range other)
Parameters
Type |
Name |
Description |
Range |
other |
|
Fields
EndFieldNumber
Field number for the "end" field.
Declaration
public const int EndFieldNumber = null
Field Value
StartFieldNumber
Field number for the "start" field.
Declaration
public const int StartFieldNumber = null
Field Value
StepFieldNumber
Field number for the "step" field.
Declaration
public const int StepFieldNumber = null
Field Value
Properties
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
End
End of range (inclusive).
Declaration
public int End { get; set; }
Property Value
Parser
Declaration
public static Google.Protobuf.MessageParser<Range> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<Range> |
|
Start
Start of range (inclusive).
Declaration
public int Start { get; set; }
Property Value
Step
Step (optional, default 1).
Declaration
public int Step { get; set; }
Property Value
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Clone()
Declaration
Returns
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Equals(Range)
Declaration
public bool Equals(Range other)
Parameters
Type |
Name |
Description |
Range |
other |
|
Returns
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Declaration
public void MergeFrom(Google.Protobuf.CodedInputStream input)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedInputStream |
input |
|
MergeFrom(Range)
Declaration
public void MergeFrom(Range other)
Parameters
Type |
Name |
Description |
Range |
other |
|
ToString()
Declaration
public override string ToString()
Returns
WriteTo(Google.Protobuf.CodedOutputStream)
Declaration
public void WriteTo(Google.Protobuf.CodedOutputStream output)
Parameters
Type |
Name |
Description |
Google.Protobuf.CodedOutputStream |
output |
|
Implements
Google.Protobuf.IBufferMessage