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
Inherited Members
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetType()
System.Object.MemberwiseClone()
Assembly: Google.Api.CommonProtos.dll
Syntax
public sealed class TimeOfDay : IMessage<TimeOfDay>, IMessage, IEquatable<TimeOfDay>, IDeepCloneable<TimeOfDay>
Constructors
TimeOfDay()
Declaration
TimeOfDay(TimeOfDay)
Declaration
public TimeOfDay(TimeOfDay other)
Parameters
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
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
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
Clone()
Declaration
Returns
Implements
Equals(TimeOfDay)
Declaration
public bool Equals(TimeOfDay other)
Parameters
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()
Declaration
public void MergeFrom(CodedInputStream input)
Parameters
Implements
MergeFrom(TimeOfDay)
Declaration
public void MergeFrom(TimeOfDay other)
Parameters
Implements
ToString()
Declaration
public override string ToString()
Returns
Type |
Description |
System.String |
|
Overrides
System.Object.ToString()
WriteTo(CodedOutputStream)
Declaration
public void WriteTo(CodedOutputStream output)
Parameters
Implements
Explicit Interface Implementations
IMessage.Descriptor
Declaration
MessageDescriptor IMessage.Descriptor { get; }
Returns
Implements