Package com.google.type
Class TimeOfDay.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<TimeOfDay,TimeOfDay.Builder>
com.google.protobuf.GeneratedMessageLite.Builder<TimeOfDay,TimeOfDay.Builder>
com.google.type.TimeOfDay.Builder
- All Implemented Interfaces:
com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,TimeOfDayOrBuilder,Cloneable
- Enclosing class:
TimeOfDay
public static final class TimeOfDay.Builder
extends com.google.protobuf.GeneratedMessageLite.Builder<TimeOfDay,TimeOfDay.Builder>
implements TimeOfDayOrBuilder
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`.Protobuf type
google.type.TimeOfDay-
Field Summary
Fields inherited from class com.google.protobuf.GeneratedMessageLite.Builder
instance -
Method Summary
Modifier and TypeMethodDescriptionHours of a day in 24 hour format.Minutes of an hour.Fractions of seconds, in nanoseconds.Seconds of a minute.intgetHours()Hours of a day in 24 hour format.intMinutes of an hour.intgetNanos()Fractions of seconds, in nanoseconds.intSeconds of a minute.setHours(int value) Hours of a day in 24 hour format.setMinutes(int value) Minutes of an hour.setNanos(int value) Fractions of seconds, in nanoseconds.setSeconds(int value) Seconds of a minute.Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder
build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFromMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLiteOrBuilder
getDefaultInstanceForType, isInitialized
-
Method Details
-
getHours
public int getHours()Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
int32 hours = 1 [json_name = "hours"];- Specified by:
getHoursin interfaceTimeOfDayOrBuilder- Returns:
- The hours.
-
setHours
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
int32 hours = 1 [json_name = "hours"];- Parameters:
value- The hours to set.- Returns:
- This builder for chaining.
-
clearHours
Hours of a day in 24 hour format. Must be greater than or equal to 0 and typically must be less than or equal to 23. An API may choose to allow the value "24:00:00" for scenarios like business closing time.
int32 hours = 1 [json_name = "hours"];- Returns:
- This builder for chaining.
-
getMinutes
public int getMinutes()Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
int32 minutes = 2 [json_name = "minutes"];- Specified by:
getMinutesin interfaceTimeOfDayOrBuilder- Returns:
- The minutes.
-
setMinutes
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
int32 minutes = 2 [json_name = "minutes"];- Parameters:
value- The minutes to set.- Returns:
- This builder for chaining.
-
clearMinutes
Minutes of an hour. Must be greater than or equal to 0 and less than or equal to 59.
int32 minutes = 2 [json_name = "minutes"];- Returns:
- This builder for chaining.
-
getSeconds
public int getSeconds()Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
int32 seconds = 3 [json_name = "seconds"];- Specified by:
getSecondsin interfaceTimeOfDayOrBuilder- Returns:
- The seconds.
-
setSeconds
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
int32 seconds = 3 [json_name = "seconds"];- Parameters:
value- The seconds to set.- Returns:
- This builder for chaining.
-
clearSeconds
Seconds of a minute. Must be greater than or equal to 0 and typically must be less than or equal to 59. An API may allow the value 60 if it allows leap-seconds.
int32 seconds = 3 [json_name = "seconds"];- Returns:
- This builder for chaining.
-
getNanos
public int getNanos()Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
int32 nanos = 4 [json_name = "nanos"];- Specified by:
getNanosin interfaceTimeOfDayOrBuilder- Returns:
- The nanos.
-
setNanos
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
int32 nanos = 4 [json_name = "nanos"];- Parameters:
value- The nanos to set.- Returns:
- This builder for chaining.
-
clearNanos
Fractions of seconds, in nanoseconds. Must be greater than or equal to 0 and less than or equal to 999,999,999.
int32 nanos = 4 [json_name = "nanos"];- Returns:
- This builder for chaining.
-