Package com.google.cloud.compute.v1
Interface DurationOrBuilder
-
- All Superinterfaces:
com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
- All Known Implementing Classes:
Duration
,Duration.Builder
public interface DurationOrBuilder extends com.google.protobuf.MessageOrBuilder
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method 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.-
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDefaultInstanceForType, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
-
-
-
Method Detail
-
hasNanos
boolean 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;
- Returns:
- Whether the nanos field is set.
-
getNanos
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;
- Returns:
- The nanos.
-
hasSeconds
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;
- Returns:
- Whether the seconds field is set.
-
getSeconds
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;
- Returns:
- The seconds.
-
-