public final class ContextValue
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 Cloud Spanner 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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ContextValue() |
Modifier and Type | Method and Description |
---|---|
ContextValue |
clone() |
LocalizedString |
getLabel()
The label for the context value.
|
String |
getSeverity()
The severity of this context.
|
String |
getUnit()
The unit of the context value.
|
Float |
getValue()
The value for the context.
|
ContextValue |
set(String fieldName,
Object value) |
ContextValue |
setLabel(LocalizedString label)
The label for the context value.
|
ContextValue |
setSeverity(String severity)
The severity of this context.
|
ContextValue |
setUnit(String unit)
The unit of the context value.
|
ContextValue |
setValue(Float value)
The value for the context.
|
getFactory, setFactory, toPrettyString, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public LocalizedString getLabel()
null
for nonepublic ContextValue setLabel(LocalizedString label)
label
- label or null
for nonepublic String getSeverity()
null
for nonepublic ContextValue setSeverity(String severity)
severity
- severity or null
for nonepublic String getUnit()
null
for nonepublic ContextValue setUnit(String unit)
unit
- unit or null
for nonepublic Float getValue()
null
for nonepublic ContextValue setValue(Float value)
value
- value or null
for nonepublic ContextValue set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ContextValue clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2025 Google. All rights reserved.