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>
IBufferMessage
IMessage
Inherited Members

Constructors

DurationValue()

public DurationValue()

DurationValue(DurationValue)

public DurationValue(DurationValue other)

Parameters

other DurationValue

Fields

DurationComponentsFieldNumber

Field number for the "duration_components" field.

public const int DurationComponentsFieldNumber = 1

Field Value

int

Iso8601DurationFormatFieldNumber

Field number for the "iso8601_duration_format" field.

public const int Iso8601DurationFormatFieldNumber = 2

Field Value

int

Properties

Descriptor

public static MessageDescriptor Descriptor { get; }

Property Value

MessageDescriptor

DurationComponents

public DurationComponents DurationComponents { get; set; }

Property Value

DurationComponents

DurationFormatCase

public DurationValue.DurationFormatOneofCase DurationFormatCase { get; }

Property Value

DurationValue.DurationFormatOneofCase

HasIso8601DurationFormat

Gets whether the "iso8601_duration_format" field is set

public bool HasIso8601DurationFormat { get; }

Property Value

bool

Iso8601DurationFormat

public string Iso8601DurationFormat { get; set; }

Property Value

string

Parser

public static MessageParser<DurationValue> Parser { get; }

Property Value

MessageParser<DurationValue>

Methods

CalculateSize()

public int CalculateSize()

Returns

int

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

DurationValue

Equals(DurationValue)

public bool Equals(DurationValue other)

Parameters

other DurationValue

Returns

bool

Equals(object)

public override bool Equals(object other)

Parameters

other object

Returns

bool

GetHashCode()

public override int GetHashCode()

Returns

int

MergeFrom(DurationValue)

public void MergeFrom(DurationValue other)

Parameters

other DurationValue

MergeFrom(CodedInputStream)

public void MergeFrom(CodedInputStream input)

Parameters

input CodedInputStream

ToString()

public override string ToString()

Returns

string

WriteTo(CodedOutputStream)

public void WriteTo(CodedOutputStream output)

Parameters

output CodedOutputStream