Class TimeOfDay.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder<MessageType,BuilderType>
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 Type
    Method
    Description
    Hours of day in 24 hour format.
    Minutes of hour of day.
    Fractions of seconds in nanoseconds.
    Seconds of minutes of the time.
    int
    Hours of day in 24 hour format.
    int
    Minutes of hour of day.
    int
    Fractions of seconds in nanoseconds.
    int
    Seconds of minutes of the time.
    setHours(int value)
    Hours of day in 24 hour format.
    setMinutes(int value)
    Minutes of hour of day.
    setNanos(int value)
    Fractions of seconds in nanoseconds.
    setSeconds(int value)
    Seconds of minutes of the time.

    Methods inherited from class com.google.protobuf.GeneratedMessageLite.Builder

    build, buildPartial, clear, clone, copyOnWrite, copyOnWriteInternal, getDefaultInstanceForType, internalMergeFrom, isInitialized, mergeFrom, mergeFrom, mergeFrom, mergeFrom

    Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder

    addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException

    Methods inherited from class java.lang.Object

    equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait

    Methods inherited from interface com.google.protobuf.MessageLiteOrBuilder

    getDefaultInstanceForType, isInitialized
  • Method Details

    • getHours

      public int getHours()
       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.
       
      int32 hours = 1 [json_name = "hours"];
      Specified by:
      getHours in interface TimeOfDayOrBuilder
      Returns:
      The hours.
    • setHours

      public TimeOfDay.Builder setHours(int value)
       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.
       
      int32 hours = 1 [json_name = "hours"];
      Parameters:
      value - The hours to set.
      Returns:
      This builder for chaining.
    • clearHours

      public TimeOfDay.Builder clearHours()
       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.
       
      int32 hours = 1 [json_name = "hours"];
      Returns:
      This builder for chaining.
    • getMinutes

      public int getMinutes()
       Minutes of hour of day. Must be from 0 to 59.
       
      int32 minutes = 2 [json_name = "minutes"];
      Specified by:
      getMinutes in interface TimeOfDayOrBuilder
      Returns:
      The minutes.
    • setMinutes

      public TimeOfDay.Builder setMinutes(int value)
       Minutes of hour of day. Must be from 0 to 59.
       
      int32 minutes = 2 [json_name = "minutes"];
      Parameters:
      value - The minutes to set.
      Returns:
      This builder for chaining.
    • clearMinutes

      public TimeOfDay.Builder clearMinutes()
       Minutes of hour of day. Must be from 0 to 59.
       
      int32 minutes = 2 [json_name = "minutes"];
      Returns:
      This builder for chaining.
    • getSeconds

      public int getSeconds()
       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.
       
      int32 seconds = 3 [json_name = "seconds"];
      Specified by:
      getSeconds in interface TimeOfDayOrBuilder
      Returns:
      The seconds.
    • setSeconds

      public TimeOfDay.Builder setSeconds(int value)
       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.
       
      int32 seconds = 3 [json_name = "seconds"];
      Parameters:
      value - The seconds to set.
      Returns:
      This builder for chaining.
    • clearSeconds

      public TimeOfDay.Builder clearSeconds()
       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.
       
      int32 seconds = 3 [json_name = "seconds"];
      Returns:
      This builder for chaining.
    • getNanos

      public int getNanos()
       Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
       
      int32 nanos = 4 [json_name = "nanos"];
      Specified by:
      getNanos in interface TimeOfDayOrBuilder
      Returns:
      The nanos.
    • setNanos

      public TimeOfDay.Builder setNanos(int value)
       Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
       
      int32 nanos = 4 [json_name = "nanos"];
      Parameters:
      value - The nanos to set.
      Returns:
      This builder for chaining.
    • clearNanos

      public TimeOfDay.Builder clearNanos()
       Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999.
       
      int32 nanos = 4 [json_name = "nanos"];
      Returns:
      This builder for chaining.