Send feedback
Class TimeOfDay (2.10.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version 2.10.0 keyboard_arrow_down
public sealed class TimeOfDay : IMessage<TimeOfDay>, IEquatable<TimeOfDay>, IDeepCloneable<TimeOfDay>, IBufferMessage, IMessage
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()
TimeOfDay(TimeOfDay)
public TimeOfDay(TimeOfDay other)
Fields
HoursFieldNumber
public const int HoursFieldNumber = 1
Field number for the "hours" field.
Field Value
Type
Description
int
MinutesFieldNumber
public const int MinutesFieldNumber = 2
Field number for the "minutes" field.
Field Value
Type
Description
int
NanosFieldNumber
public const int NanosFieldNumber = 4
Field number for the "nanos" field.
Field Value
Type
Description
int
SecondsFieldNumber
public const int SecondsFieldNumber = 3
Field number for the "seconds" field.
Field Value
Type
Description
int
Properties
Descriptor
public static MessageDescriptor Descriptor { get; }
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
Type
Description
int
Minutes
public int Minutes { get; set; }
Minutes of hour of day. Must be from 0 to 59.
Property Value
Type
Description
int
Nanos
public int Nanos { get; set; }
Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
Property Value
Type
Description
int
Parser
public static MessageParser<TimeOfDay> Parser { get; }
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
Type
Description
int
Methods
CalculateSize()
public int CalculateSize()
Returns
Type
Description
int
Clone()
Equals(TimeOfDay)
public bool Equals(TimeOfDay other)
Returns
Type
Description
bool
Equals(object)
public override bool Equals(object other)
Parameter
Name
Description
other
object
Returns
Type
Description
bool
Overrides
GetHashCode()
public override int GetHashCode()
Returns
Type
Description
int
Overrides
public void MergeFrom(CodedInputStream input)
MergeFrom(TimeOfDay)
public void MergeFrom(TimeOfDay other)
ToString()
public override string ToString()
Returns
Type
Description
string
Overrides
WriteTo(CodedOutputStream)
public void WriteTo(CodedOutputStream output)
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2024-11-19 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2024-11-19 UTC."],[],[]]