public interface DurationOrBuilder
extends com.google.protobuf.MessageOrBuilder
| Modifier and Type | Method and Description |
|---|---|
int |
getNanos()
Span of time that's a fraction of a second at nanosecond resolution.
|
long |
getSeconds()
Span of time at a resolution of a second.
|
boolean |
hasNanos()
Span of time that's a fraction of a second at nanosecond resolution.
|
boolean |
hasSeconds()
Span of time at a resolution of a second.
|
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneofboolean hasNanos()
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive.
optional int32 nanos = 104586303;int getNanos()
Span of time that's a fraction of a second at nanosecond resolution. Durations less than one second are represented with a 0 `seconds` field and a positive `nanos` field. Must be from 0 to 999,999,999 inclusive.
optional int32 nanos = 104586303;boolean hasSeconds()
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
optional int64 seconds = 359484031;long getSeconds()
Span of time at a resolution of a second. Must be from 0 to 315,576,000,000 inclusive. Note: these bounds are computed from: 60 sec/min * 60 min/hr * 24 hr/day * 365.25 days/year * 10000 years
optional int64 seconds = 359484031;Copyright © 2023 Google LLC. All rights reserved.