public final class TypedValue
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 Stackdriver Monitoring 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 |
|---|
TypedValue() |
| Modifier and Type | Method and Description |
|---|---|
TypedValue |
clone() |
java.lang.Boolean |
getBoolValue()
A Boolean value: true or false.
|
Distribution |
getDistributionValue()
A distribution value.
|
java.lang.Double |
getDoubleValue()
A 64-bit double-precision floating-point number.
|
java.lang.Long |
getInt64Value()
A 64-bit integer.
|
java.lang.String |
getStringValue()
A variable-length string value.
|
TypedValue |
set(java.lang.String fieldName,
java.lang.Object value) |
TypedValue |
setBoolValue(java.lang.Boolean boolValue)
A Boolean value: true or false.
|
TypedValue |
setDistributionValue(Distribution distributionValue)
A distribution value.
|
TypedValue |
setDoubleValue(java.lang.Double doubleValue)
A 64-bit double-precision floating-point number.
|
TypedValue |
setInt64Value(java.lang.Long int64Value)
A 64-bit integer.
|
TypedValue |
setStringValue(java.lang.String stringValue)
A variable-length string value.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.Boolean getBoolValue()
null for nonepublic TypedValue setBoolValue(java.lang.Boolean boolValue)
boolValue - boolValue or null for nonepublic Distribution getDistributionValue()
null for nonepublic TypedValue setDistributionValue(Distribution distributionValue)
distributionValue - distributionValue or null for nonepublic java.lang.Double getDoubleValue()
null for nonepublic TypedValue setDoubleValue(java.lang.Double doubleValue)
doubleValue - doubleValue or null for nonepublic java.lang.Long getInt64Value()
null for nonepublic TypedValue setInt64Value(java.lang.Long int64Value)
int64Value - int64Value or null for nonepublic java.lang.String getStringValue()
null for nonepublic TypedValue setStringValue(java.lang.String stringValue)
stringValue - stringValue or null for nonepublic TypedValue set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic TypedValue clone()
clone in class com.google.api.client.json.GenericJson