Class DurationValue
- Namespace
- EsriPBuffer.Graph
- Assembly
- ESRI.Server.SOESupport.dll
A DurationValue represents a signed span of time.
It is related to TimeOnlyValue, TimestampOffsetValue, DateOnlyValue & datetime_value
in that the difference between 2 temporal instants is a DurationValue, and it can be
added / subtracted from a temporal instant.
public sealed class DurationValue : IMessage<DurationValue>, IEquatable<DurationValue>, IDeepCloneable<DurationValue>, IBufferMessage, IMessage
- Inheritance
-
DurationValue
- Implements
-
IMessage<DurationValue>IDeepCloneable<DurationValue>IBufferMessageIMessage
- Inherited Members
Constructors
DurationValue()
public DurationValue()
DurationValue(DurationValue)
public DurationValue(DurationValue other)
Parameters
otherDurationValue
Fields
DurationComponentsFieldNumber
Field number for the "duration_components" field.
public const int DurationComponentsFieldNumber = 1
Field Value
Iso8601DurationFormatFieldNumber
Field number for the "iso8601_duration_format" field.
public const int Iso8601DurationFormatFieldNumber = 2
Field Value
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
Property Value
- MessageDescriptor
DurationComponents
public DurationComponents DurationComponents { get; set; }
Property Value
DurationFormatCase
public DurationValue.DurationFormatOneofCase DurationFormatCase { get; }
Property Value
HasIso8601DurationFormat
Gets whether the "iso8601_duration_format" field is set
public bool HasIso8601DurationFormat { get; }
Property Value
Iso8601DurationFormat
public string Iso8601DurationFormat { get; set; }
Property Value
Parser
public static MessageParser<DurationValue> Parser { get; }
Property Value
- MessageParser<DurationValue>
Methods
CalculateSize()
public int CalculateSize()
Returns
ClearDurationFormat()
public void ClearDurationFormat()
ClearIso8601DurationFormat()
Clears the value of the oneof if it's currently set to "iso8601_duration_format"
public void ClearIso8601DurationFormat()
Clone()
public DurationValue Clone()
Returns
Equals(DurationValue)
public bool Equals(DurationValue other)
Parameters
otherDurationValue
Returns
Equals(object)
public override bool Equals(object other)
Parameters
otherobject
Returns
GetHashCode()
public override int GetHashCode()
Returns
MergeFrom(DurationValue)
public void MergeFrom(DurationValue other)
Parameters
otherDurationValue
MergeFrom(CodedInputStream)
public void MergeFrom(CodedInputStream input)
Parameters
inputCodedInputStream
ToString()
public override string ToString()
Returns
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Parameters
outputCodedOutputStream