Show / Hide Table of Contents

Class TimeOfDay

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
System.Object
TimeOfDay
Implements
IMessage<TimeOfDay>
IMessage
System.IEquatable<TimeOfDay>
IDeepCloneable<TimeOfDay>
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: Google.Type
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class TimeOfDay : IMessage<TimeOfDay>, IMessage, IEquatable<TimeOfDay>, IDeepCloneable<TimeOfDay>

Constructors

TimeOfDay()

Declaration
public TimeOfDay()

TimeOfDay(TimeOfDay)

Declaration
public TimeOfDay(TimeOfDay other)
Parameters
Type Name Description
TimeOfDay other

Fields

HoursFieldNumber

Field number for the "hours" field.

Declaration
public const int HoursFieldNumber = 1
Field Value
Type Description
System.Int32

MinutesFieldNumber

Field number for the "minutes" field.

Declaration
public const int MinutesFieldNumber = 2
Field Value
Type Description
System.Int32

NanosFieldNumber

Field number for the "nanos" field.

Declaration
public const int NanosFieldNumber = 4
Field Value
Type Description
System.Int32

SecondsFieldNumber

Field number for the "seconds" field.

Declaration
public const int SecondsFieldNumber = 3
Field Value
Type Description
System.Int32

Properties

Descriptor

Declaration
public static MessageDescriptor Descriptor { get; }
Property Value
Type Description
MessageDescriptor

Hours

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.

Declaration
public int Hours { get; set; }
Property Value
Type Description
System.Int32

Minutes

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

Declaration
public int Minutes { get; set; }
Property Value
Type Description
System.Int32

Nanos

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

Declaration
public int Nanos { get; set; }
Property Value
Type Description
System.Int32

Parser

Declaration
public static MessageParser<TimeOfDay> Parser { get; }
Property Value
Type Description
MessageParser<TimeOfDay>

Seconds

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.

Declaration
public int Seconds { get; set; }
Property Value
Type Description
System.Int32

Methods

CalculateSize()

Declaration
public int CalculateSize()
Returns
Type Description
System.Int32
Implements
IMessage.CalculateSize()

Clone()

Declaration
public TimeOfDay Clone()
Returns
Type Description
TimeOfDay
Implements
IDeepCloneable<T>.Clone()

Equals(TimeOfDay)

Declaration
public bool Equals(TimeOfDay other)
Parameters
Type Name Description
TimeOfDay other
Returns
Type Description
System.Boolean
Implements
System.IEquatable<T>.Equals(T)

Equals(Object)

Declaration
public override bool Equals(object other)
Parameters
Type Name Description
System.Object other
Returns
Type Description
System.Boolean
Overrides
System.Object.Equals(System.Object)

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
System.Int32
Overrides
System.Object.GetHashCode()

MergeFrom(CodedInputStream)

Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Type Name Description
CodedInputStream input
Implements
IMessage.MergeFrom(CodedInputStream)

MergeFrom(TimeOfDay)

Declaration
public void MergeFrom(TimeOfDay other)
Parameters
Type Name Description
TimeOfDay other
Implements
IMessage<T>.MergeFrom(T)

ToString()

Declaration
public override string ToString()
Returns
Type Description
System.String
Overrides
System.Object.ToString()

WriteTo(CodedOutputStream)

Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Type Name Description
CodedOutputStream output
Implements
IMessage.WriteTo(CodedOutputStream)

Explicit Interface Implementations

IMessage.Descriptor

Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Type Description
MessageDescriptor
Implements
IMessage.Descriptor
Back to top