public final class Duration
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Compute Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Duration() |
| Modifier and Type | Method and Description |
|---|---|
Duration |
clone() |
java.lang.Integer |
getNanos()
Span of time that's a fraction of a second at nanosecond resolution.
|
java.lang.Long |
getSeconds()
Span of time at a resolution of a second.
|
Duration |
set(java.lang.String fieldName,
java.lang.Object value) |
Duration |
setNanos(java.lang.Integer nanos)
Span of time that's a fraction of a second at nanosecond resolution.
|
Duration |
setSeconds(java.lang.Long seconds)
Span of time at a resolution of a second.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Integer getNanos()
null for nonepublic Duration setNanos(java.lang.Integer nanos)
nanos - nanos or null for nonepublic java.lang.Long getSeconds()
null for nonepublic Duration setSeconds(java.lang.Long seconds)
seconds - seconds or null for nonepublic Duration set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Duration clone()
clone in class com.google.api.client.json.GenericJson