Class TimeOfDay

public sealed class TimeOfDay : Protobuf.IMessage<TimeOfDay>, Protobuf.IBufferMessage

Represents a time of day. The date and time zone are either not significant or are specified elsewhere. An API may choose to allow leap seconds. Related types are [google.type.Date][google.type.Date] and google.protobuf.Timestamp.

Inheritance

Object > TimeOfDay

Namespace

Google.Type

Assembly

Google.Api.CommonProtos.dll

Constructors

TimeOfDay()

public TimeOfDay()

TimeOfDay(TimeOfDay)

public TimeOfDay(TimeOfDay other)
Parameter
TypeNameDescription
TimeOfDayother

Fields

HoursFieldNumber

public const int HoursFieldNumber = 1

Field number for the "hours" field.

Field Value
TypeDescription
Int32

MinutesFieldNumber

public const int MinutesFieldNumber = 2

Field number for the "minutes" field.

Field Value
TypeDescription
Int32

NanosFieldNumber

public const int NanosFieldNumber = 4

Field number for the "nanos" field.

Field Value
TypeDescription
Int32

SecondsFieldNumber

public const int SecondsFieldNumber = 3

Field number for the "seconds" field.

Field Value
TypeDescription
Int32

Properties

Descriptor

public static Protobuf.Reflection.MessageDescriptor Descriptor { get; }
Property Value
TypeDescription
Protobuf.Reflection.MessageDescriptor

Hours

public int Hours { get; set; }

Hours of day in 24 hour format. Should be from 0 to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.

Property Value
TypeDescription
Int32

Minutes

public int Minutes { get; set; }

Minutes of hour of day. Must be from 0 to 59.

Property Value
TypeDescription
Int32

Nanos

public int Nanos { get; set; }

Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.

Property Value
TypeDescription
Int32

Parser

public static Protobuf.MessageParser<TimeOfDay> Parser { get; }
Property Value
TypeDescription
Protobuf.MessageParser<TimeOfDay>

Seconds

public int Seconds { get; set; }

Seconds of minutes of the time. Must normally be from 0 to 59. An API may allow the value 60 if it allows leap-seconds.

Property Value
TypeDescription
Int32

Methods

CalculateSize()

public int CalculateSize()
Returns
TypeDescription
Int32

Clone()

public TimeOfDay Clone()
Returns
TypeDescription
TimeOfDay

Equals(TimeOfDay)

public bool Equals(TimeOfDay other)
Parameter
TypeNameDescription
TimeOfDayother
Returns
TypeDescription
Boolean

Equals(Object)

public override bool Equals(object other)
Parameter
TypeNameDescription
Objectother
Returns
TypeDescription
Boolean

GetHashCode()

public override int GetHashCode()
Returns
TypeDescription
Int32

MergeFrom(Protobuf.CodedInputStream)

public void MergeFrom(Protobuf.CodedInputStream input)
Parameter
TypeNameDescription
Protobuf.CodedInputStreaminput

MergeFrom(TimeOfDay)

public void MergeFrom(TimeOfDay other)
Parameter
TypeNameDescription
TimeOfDayother

ToString()

public override string ToString()
Returns
TypeDescription
String

WriteTo(Protobuf.CodedOutputStream)

public void WriteTo(Protobuf.CodedOutputStream output)
Parameter
TypeNameDescription
Protobuf.CodedOutputStreamoutput

Implements