public Builder mergeFrom(com.google.type.TimeOfDay other) { if (other == com.google.type.TimeOfDay.getDefaultInstance()) return this; if (other.getHours() != 0) { setHours(other.getHours()); } if (other.getMinutes() != 0) { setMinutes(other.getMinutes()); } if (other.getSeconds() != 0) { setSeconds(other.getSeconds()); } if (other.getNanos() != 0) { setNanos(other.getNanos()); } onChanged(); return this; }
/** * <pre> * 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. * </pre> * * <code>int32 hours = 1;</code> */ public Builder setHours(int value) { hours_ = value; onChanged(); return this; } /**
/** * <pre> * 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. * </pre> * * <code>int32 seconds = 3;</code> */ public Builder setSeconds(int value) { seconds_ = value; onChanged(); return this; } /**
/** * <pre> * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * </pre> * * <code>int32 nanos = 4;</code> */ public Builder setNanos(int value) { nanos_ = value; onChanged(); return this; } /**
/** * <pre> * 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. * </pre> * * <code>int32 hours = 1;</code> */ public Builder clearHours() { hours_ = 0; onChanged(); return this; }
/** * <pre> * Fractions of seconds in nanoseconds. Must be from 0 to 999,999,999. * </pre> * * <code>int32 nanos = 4;</code> */ public Builder clearNanos() { nanos_ = 0; onChanged(); return this; } public final Builder setUnknownFields(
/** * <pre> * Minutes of hour of day. Must be from 0 to 59. * </pre> * * <code>int32 minutes = 2;</code> */ public Builder setMinutes(int value) { minutes_ = value; onChanged(); return this; } /**
/** * <pre> * 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. * </pre> * * <code>int32 seconds = 3;</code> */ public Builder clearSeconds() { seconds_ = 0; onChanged(); return this; }
/** * <pre> * Minutes of hour of day. Must be from 0 to 59. * </pre> * * <code>int32 minutes = 2;</code> */ public Builder clearMinutes() { minutes_ = 0; onChanged(); return this; }