target.apidocs.com.google.api.services.sheets.v4.model.ConditionValue.html Maven / Gradle / Ivy
ConditionValue (Google Sheets API v4-rev20230526-2.0.0)
com.google.api.services.sheets.v4.model
Class ConditionValue
- 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.ConditionValue
-
public final class ConditionValue
extends com.google.api.client.json.GenericJson
The value of the condition.
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
ConditionValue()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
ConditionValue
clone()
String
getRelativeDate()
A relative date (based on the current date).
String
getUserEnteredValue()
A value the condition is based on.
ConditionValue
set(String fieldName,
Object value)
ConditionValue
setRelativeDate(String relativeDate)
A relative date (based on the current date).
ConditionValue
setUserEnteredValue(String userEnteredValue)
A value the condition is based on.
-
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
-
getRelativeDate
public String getRelativeDate()
A relative date (based on the current date). Valid only if the type is DATE_BEFORE, DATE_AFTER,
DATE_ON_OR_BEFORE or DATE_ON_OR_AFTER. Relative dates are not supported in data validation.
They are supported only in conditional formatting and conditional filters.
- Returns:
- value or
null
for none
-
setRelativeDate
public ConditionValue setRelativeDate(String relativeDate)
A relative date (based on the current date). Valid only if the type is DATE_BEFORE, DATE_AFTER,
DATE_ON_OR_BEFORE or DATE_ON_OR_AFTER. Relative dates are not supported in data validation.
They are supported only in conditional formatting and conditional filters.
- Parameters:
relativeDate
- relativeDate or null
for none
-
getUserEnteredValue
public String getUserEnteredValue()
A value the condition is based on. The value is parsed as if the user typed into a cell.
Formulas are supported (and must begin with an `=` or a '+').
- Returns:
- value or
null
for none
-
setUserEnteredValue
public ConditionValue setUserEnteredValue(String userEnteredValue)
A value the condition is based on. The value is parsed as if the user typed into a cell.
Formulas are supported (and must begin with an `=` or a '+').
- Parameters:
userEnteredValue
- userEnteredValue or null
for none
-
set
public ConditionValue set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public ConditionValue clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.