2222 *
2323 *
2424 * <pre>
25- * Represents civil time in one of a few possible ways:
25+ * Represents civil time (or occasionally physical time).
26+ * This type can represent a civil time in one of a few possible ways:
2627 * * When utc_offset is set and time_zone is unset: a civil time on a calendar
2728 * day with a particular offset from UTC.
2829 * * When time_zone is set and utc_offset is unset: a civil time on a calendar
3233 * The date is relative to the Proleptic Gregorian Calendar.
3334 * If year is 0, the DateTime is considered not to have a specific year. month
3435 * and day must have valid, non-zero values.
36+ * This type may also be used to represent a physical time if all the date and
37+ * time fields are set and either case of the `time_offset` oneof is set.
38+ * Consider using `Timestamp` message for physical time instead. If your use
39+ * case also would like to store the user's timezone, that can be done in
40+ * another field.
3541 * This type is more flexible than some applications may want. Make sure to
3642 * document and validate your application's limitations.
3743 * </pre>
@@ -235,6 +241,7 @@ public TimeOffsetCase getTimeOffsetCase() {
235241 *
236242 * @return The year.
237243 */
244+ @ java .lang .Override
238245 public int getYear () {
239246 return year_ ;
240247 }
@@ -252,6 +259,7 @@ public int getYear() {
252259 *
253260 * @return The month.
254261 */
262+ @ java .lang .Override
255263 public int getMonth () {
256264 return month_ ;
257265 }
@@ -270,6 +278,7 @@ public int getMonth() {
270278 *
271279 * @return The day.
272280 */
281+ @ java .lang .Override
273282 public int getDay () {
274283 return day_ ;
275284 }
@@ -289,6 +298,7 @@ public int getDay() {
289298 *
290299 * @return The hours.
291300 */
301+ @ java .lang .Override
292302 public int getHours () {
293303 return hours_ ;
294304 }
@@ -306,6 +316,7 @@ public int getHours() {
306316 *
307317 * @return The minutes.
308318 */
319+ @ java .lang .Override
309320 public int getMinutes () {
310321 return minutes_ ;
311322 }
@@ -324,6 +335,7 @@ public int getMinutes() {
324335 *
325336 * @return The seconds.
326337 */
338+ @ java .lang .Override
327339 public int getSeconds () {
328340 return seconds_ ;
329341 }
@@ -342,6 +354,7 @@ public int getSeconds() {
342354 *
343355 * @return The nanos.
344356 */
357+ @ java .lang .Override
345358 public int getNanos () {
346359 return nanos_ ;
347360 }
@@ -360,6 +373,7 @@ public int getNanos() {
360373 *
361374 * @return Whether the utcOffset field is set.
362375 */
376+ @ java .lang .Override
363377 public boolean hasUtcOffset () {
364378 return timeOffsetCase_ == 8 ;
365379 }
@@ -376,6 +390,7 @@ public boolean hasUtcOffset() {
376390 *
377391 * @return The utcOffset.
378392 */
393+ @ java .lang .Override
379394 public com .google .protobuf .Duration getUtcOffset () {
380395 if (timeOffsetCase_ == 8 ) {
381396 return (com .google .protobuf .Duration ) timeOffset_ ;
@@ -393,6 +408,7 @@ public com.google.protobuf.Duration getUtcOffset() {
393408 *
394409 * <code>.google.protobuf.Duration utc_offset = 8;</code>
395410 */
411+ @ java .lang .Override
396412 public com .google .protobuf .DurationOrBuilder getUtcOffsetOrBuilder () {
397413 if (timeOffsetCase_ == 8 ) {
398414 return (com .google .protobuf .Duration ) timeOffset_ ;
@@ -412,6 +428,7 @@ public com.google.protobuf.DurationOrBuilder getUtcOffsetOrBuilder() {
412428 *
413429 * @return Whether the timeZone field is set.
414430 */
431+ @ java .lang .Override
415432 public boolean hasTimeZone () {
416433 return timeOffsetCase_ == 9 ;
417434 }
@@ -426,6 +443,7 @@ public boolean hasTimeZone() {
426443 *
427444 * @return The timeZone.
428445 */
446+ @ java .lang .Override
429447 public com .google .type .TimeZone getTimeZone () {
430448 if (timeOffsetCase_ == 9 ) {
431449 return (com .google .type .TimeZone ) timeOffset_ ;
@@ -441,6 +459,7 @@ public com.google.type.TimeZone getTimeZone() {
441459 *
442460 * <code>.google.type.TimeZone time_zone = 9;</code>
443461 */
462+ @ java .lang .Override
444463 public com .google .type .TimeZoneOrBuilder getTimeZoneOrBuilder () {
445464 if (timeOffsetCase_ == 9 ) {
446465 return (com .google .type .TimeZone ) timeOffset_ ;
@@ -702,7 +721,8 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
702721 *
703722 *
704723 * <pre>
705- * Represents civil time in one of a few possible ways:
724+ * Represents civil time (or occasionally physical time).
725+ * This type can represent a civil time in one of a few possible ways:
706726 * * When utc_offset is set and time_zone is unset: a civil time on a calendar
707727 * day with a particular offset from UTC.
708728 * * When time_zone is set and utc_offset is unset: a civil time on a calendar
@@ -712,6 +732,11 @@ protected Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.Build
712732 * The date is relative to the Proleptic Gregorian Calendar.
713733 * If year is 0, the DateTime is considered not to have a specific year. month
714734 * and day must have valid, non-zero values.
735+ * This type may also be used to represent a physical time if all the date and
736+ * time fields are set and either case of the `time_offset` oneof is set.
737+ * Consider using `Timestamp` message for physical time instead. If your use
738+ * case also would like to store the user's timezone, that can be done in
739+ * another field.
715740 * This type is more flexible than some applications may want. Make sure to
716741 * document and validate your application's limitations.
717742 * </pre>
@@ -956,6 +981,7 @@ public Builder clearTimeOffset() {
956981 *
957982 * @return The year.
958983 */
984+ @ java .lang .Override
959985 public int getYear () {
960986 return year_ ;
961987 }
@@ -1009,6 +1035,7 @@ public Builder clearYear() {
10091035 *
10101036 * @return The month.
10111037 */
1038+ @ java .lang .Override
10121039 public int getMonth () {
10131040 return month_ ;
10141041 }
@@ -1061,6 +1088,7 @@ public Builder clearMonth() {
10611088 *
10621089 * @return The day.
10631090 */
1091+ @ java .lang .Override
10641092 public int getDay () {
10651093 return day_ ;
10661094 }
@@ -1116,6 +1144,7 @@ public Builder clearDay() {
11161144 *
11171145 * @return The hours.
11181146 */
1147+ @ java .lang .Override
11191148 public int getHours () {
11201149 return hours_ ;
11211150 }
@@ -1171,6 +1200,7 @@ public Builder clearHours() {
11711200 *
11721201 * @return The minutes.
11731202 */
1203+ @ java .lang .Override
11741204 public int getMinutes () {
11751205 return minutes_ ;
11761206 }
@@ -1223,6 +1253,7 @@ public Builder clearMinutes() {
12231253 *
12241254 * @return The seconds.
12251255 */
1256+ @ java .lang .Override
12261257 public int getSeconds () {
12271258 return seconds_ ;
12281259 }
@@ -1277,6 +1308,7 @@ public Builder clearSeconds() {
12771308 *
12781309 * @return The nanos.
12791310 */
1311+ @ java .lang .Override
12801312 public int getNanos () {
12811313 return nanos_ ;
12821314 }
@@ -1336,6 +1368,7 @@ public Builder clearNanos() {
13361368 *
13371369 * @return Whether the utcOffset field is set.
13381370 */
1371+ @ java .lang .Override
13391372 public boolean hasUtcOffset () {
13401373 return timeOffsetCase_ == 8 ;
13411374 }
@@ -1352,6 +1385,7 @@ public boolean hasUtcOffset() {
13521385 *
13531386 * @return The utcOffset.
13541387 */
1388+ @ java .lang .Override
13551389 public com .google .protobuf .Duration getUtcOffset () {
13561390 if (utcOffsetBuilder_ == null ) {
13571391 if (timeOffsetCase_ == 8 ) {
@@ -1494,6 +1528,7 @@ public com.google.protobuf.Duration.Builder getUtcOffsetBuilder() {
14941528 *
14951529 * <code>.google.protobuf.Duration utc_offset = 8;</code>
14961530 */
1531+ @ java .lang .Override
14971532 public com .google .protobuf .DurationOrBuilder getUtcOffsetOrBuilder () {
14981533 if ((timeOffsetCase_ == 8 ) && (utcOffsetBuilder_ != null )) {
14991534 return utcOffsetBuilder_ .getMessageOrBuilder ();
@@ -1554,6 +1589,7 @@ public com.google.protobuf.DurationOrBuilder getUtcOffsetOrBuilder() {
15541589 *
15551590 * @return Whether the timeZone field is set.
15561591 */
1592+ @ java .lang .Override
15571593 public boolean hasTimeZone () {
15581594 return timeOffsetCase_ == 9 ;
15591595 }
@@ -1568,6 +1604,7 @@ public boolean hasTimeZone() {
15681604 *
15691605 * @return The timeZone.
15701606 */
1607+ @ java .lang .Override
15711608 public com .google .type .TimeZone getTimeZone () {
15721609 if (timeZoneBuilder_ == null ) {
15731610 if (timeOffsetCase_ == 9 ) {
@@ -1697,6 +1734,7 @@ public com.google.type.TimeZone.Builder getTimeZoneBuilder() {
16971734 *
16981735 * <code>.google.type.TimeZone time_zone = 9;</code>
16991736 */
1737+ @ java .lang .Override
17001738 public com .google .type .TimeZoneOrBuilder getTimeZoneOrBuilder () {
17011739 if ((timeOffsetCase_ == 9 ) && (timeZoneBuilder_ != null )) {
17021740 return timeZoneBuilder_ .getMessageOrBuilder ();
0 commit comments