Class IntervalSpec
IntervalSpec matches times that can be expressed as:
epoch + n * interval + phase
where n is an integer.
phase defaults to zero if missing. interval is required.
Both interval and phase must be non-negative and are truncated to the nearest
second before any calculations.
For example, an interval of 1 hour with phase of zero would match every hour,
on the hour. The same interval but a phase of 19 minutes would match every
xx:19:00. An interval of 28 days with phase zero would match
2022-02-17T00:00:00Z (among other times). The same interval with a phase of 3
days, 5 hours, and 23 minutes would match 2022-02-20T05:23:00Z instead.
Implements
Google.Protobuf.IBufferMessage
Assembly: Temporalio.dll
Syntax
public sealed class IntervalSpec : Google.Protobuf.IMessage<IntervalSpec>, Google.Protobuf.IBufferMessage
Constructors
IntervalSpec()
Declaration
IntervalSpec(IntervalSpec)
Declaration
public IntervalSpec(IntervalSpec other)
Parameters
Fields
IntervalFieldNumber
Field number for the "interval" field.
Declaration
public const int IntervalFieldNumber = null
Field Value
PhaseFieldNumber
Field number for the "phase" field.
Declaration
public const int PhaseFieldNumber = null
Field Value
Properties
Descriptor
Declaration
public static Google.Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
Type |
Description |
Google.Protobuf.Reflection.MessageDescriptor |
|
Interval
Declaration
public Google.Protobuf.WellKnownTypes.Duration Interval { get; set; }
Property Value
Type |
Description |
Google.Protobuf.WellKnownTypes.Duration |
|
Parser
Declaration
public static Google.Protobuf.MessageParser<IntervalSpec> Parser { get; }
Property Value
Type |
Description |
Google.Protobuf.MessageParser<IntervalSpec> |
|
Phase
Declaration
public Google.Protobuf.WellKnownTypes.Duration Phase { get; set; }
Property Value
Type |
Description |
Google.Protobuf.WellKnownTypes.Duration |
|
Methods
CalculateSize()
Declaration
public int CalculateSize()
Returns
Clone()
Declaration
public IntervalSpec Clone()
Returns
Equals(Object)
Declaration
public override bool Equals(object other)
Parameters
Type |
Name |
Description |
Object |
other |
|
Returns
Equals(IntervalSpec)
Declaration
public bool Equals(IntervalSpec other)
Parameters
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(IntervalSpec)
Declaration
public void MergeFrom(IntervalSpec other)
Parameters
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