target.apidocs.com.google.api.services.sheets.v4.model.ExtendedValue.html Maven / Gradle / Ivy
ExtendedValue (Google Sheets API v4-rev20240312-2.0.0)
com.google.api.services.sheets.v4.model
Class ExtendedValue
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sheets.v4.model.ExtendedValue
-
public final class ExtendedValue
extends com.google.api.client.json.GenericJson
The kinds of value that a cell in a spreadsheet can have.
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 Google Sheets API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
ExtendedValue()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ExtendedValue
clone()
Boolean
getBoolValue()
Represents a boolean value.
ErrorValue
getErrorValue()
Represents an error.
String
getFormulaValue()
Represents a formula.
Double
getNumberValue()
Represents a double value.
String
getStringValue()
Represents a string value.
ExtendedValue
set(String fieldName,
Object value)
ExtendedValue
setBoolValue(Boolean boolValue)
Represents a boolean value.
ExtendedValue
setErrorValue(ErrorValue errorValue)
Represents an error.
ExtendedValue
setFormulaValue(String formulaValue)
Represents a formula.
ExtendedValue
setNumberValue(Double numberValue)
Represents a double value.
ExtendedValue
setStringValue(String stringValue)
Represents a string value.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getBoolValue
public Boolean getBoolValue()
Represents a boolean value.
- Returns:
- value or
null
for none
-
setBoolValue
public ExtendedValue setBoolValue(Boolean boolValue)
Represents a boolean value.
- Parameters:
boolValue
- boolValue or null
for none
-
getErrorValue
public ErrorValue getErrorValue()
Represents an error. This field is read-only.
- Returns:
- value or
null
for none
-
setErrorValue
public ExtendedValue setErrorValue(ErrorValue errorValue)
Represents an error. This field is read-only.
- Parameters:
errorValue
- errorValue or null
for none
-
getFormulaValue
public String getFormulaValue()
Represents a formula.
- Returns:
- value or
null
for none
-
setFormulaValue
public ExtendedValue setFormulaValue(String formulaValue)
Represents a formula.
- Parameters:
formulaValue
- formulaValue or null
for none
-
getNumberValue
public Double getNumberValue()
Represents a double value. Note: Dates, Times and DateTimes are represented as doubles in
SERIAL_NUMBER format.
- Returns:
- value or
null
for none
-
setNumberValue
public ExtendedValue setNumberValue(Double numberValue)
Represents a double value. Note: Dates, Times and DateTimes are represented as doubles in
SERIAL_NUMBER format.
- Parameters:
numberValue
- numberValue or null
for none
-
getStringValue
public String getStringValue()
Represents a string value. Leading single quotes are not included. For example, if the user
typed `'123` into the UI, this would be represented as a `stringValue` of `"123"`.
- Returns:
- value or
null
for none
-
setStringValue
public ExtendedValue setStringValue(String stringValue)
Represents a string value. Leading single quotes are not included. For example, if the user
typed `'123` into the UI, this would be represented as a `stringValue` of `"123"`.
- Parameters:
stringValue
- stringValue or null
for none
-
set
public ExtendedValue set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ExtendedValue clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.