public final class Value
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 Apps Script 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 |
---|
Value() |
Modifier and Type | Method and Description |
---|---|
Value |
clone() |
byte[] |
decodeBytesValue()
Represents raw byte values.
|
Value |
encodeBytesValue(byte[] bytesValue)
Represents raw byte values.
|
Boolean |
getBoolValue()
Represents a boolean value.
|
String |
getBytesValue()
Represents raw byte values.
|
Long |
getDateValue()
Represents a date in ms since the epoch.
|
ListValue |
getListValue()
Represents a repeated `Value`.
|
String |
getNullValue()
Represents a null value.
|
Double |
getNumberValue()
Represents a double value.
|
Map<String,Object> |
getProtoValue()
Represents a structured proto value.
|
String |
getStringValue()
Represents a string value.
|
Struct |
getStructValue()
Represents a structured value.
|
Value |
set(String fieldName,
Object value) |
Value |
setBoolValue(Boolean boolValue)
Represents a boolean value.
|
Value |
setBytesValue(String bytesValue)
Represents raw byte values.
|
Value |
setDateValue(Long dateValue)
Represents a date in ms since the epoch.
|
Value |
setListValue(ListValue listValue)
Represents a repeated `Value`.
|
Value |
setNullValue(String nullValue)
Represents a null value.
|
Value |
setNumberValue(Double numberValue)
Represents a double value.
|
Value |
setProtoValue(Map<String,Object> protoValue)
Represents a structured proto value.
|
Value |
setStringValue(String stringValue)
Represents a string value.
|
Value |
setStructValue(Struct structValue)
Represents a structured value.
|
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 Boolean getBoolValue()
null
for nonepublic Value setBoolValue(Boolean boolValue)
boolValue
- boolValue or null
for nonepublic String getBytesValue()
null
for nonedecodeBytesValue()
public byte[] decodeBytesValue()
null
for nonegetBytesValue()
public Value setBytesValue(String bytesValue)
bytesValue
- bytesValue or null
for none#encodeBytesValue()
public Value encodeBytesValue(byte[] bytesValue)
The value is encoded Base64 or {@code null} for none.
public Long getDateValue()
null
for nonepublic Value setDateValue(Long dateValue)
dateValue
- dateValue or null
for nonepublic ListValue getListValue()
null
for nonepublic Value setListValue(ListValue listValue)
listValue
- listValue or null
for nonepublic String getNullValue()
null
for nonepublic Value setNullValue(String nullValue)
nullValue
- nullValue or null
for nonepublic Double getNumberValue()
null
for nonepublic Value setNumberValue(Double numberValue)
numberValue
- numberValue or null
for nonepublic Map<String,Object> getProtoValue()
null
for nonepublic Value setProtoValue(Map<String,Object> protoValue)
protoValue
- protoValue or null
for nonepublic String getStringValue()
null
for nonepublic Value setStringValue(String stringValue)
stringValue
- stringValue or null
for nonepublic Struct getStructValue()
null
for nonepublic Value setStructValue(Struct structValue)
structValue
- structValue or null
for nonepublic Value set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public Value clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.