target.apidocs.com.google.api.services.sheets.v4.model.BooleanCondition.html Maven / Gradle / Ivy
BooleanCondition (Google Sheets API v4-rev20230526-2.0.0)
com.google.api.services.sheets.v4.model
Class BooleanCondition
- 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.BooleanCondition
-
public final class BooleanCondition
extends com.google.api.client.json.GenericJson
A condition that can evaluate to true or false. BooleanConditions are used by conditional
formatting, data validation, and the criteria in filters.
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
BooleanCondition()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
BooleanCondition
clone()
String
getType()
The type of condition.
List<ConditionValue>
getValues()
The values of the condition.
BooleanCondition
set(String fieldName,
Object value)
BooleanCondition
setType(String type)
The type of condition.
BooleanCondition
setValues(List<ConditionValue> values)
The values of the condition.
-
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
-
getType
public String getType()
The type of condition.
- Returns:
- value or
null
for none
-
setType
public BooleanCondition setType(String type)
The type of condition.
- Parameters:
type
- type or null
for none
-
getValues
public List<ConditionValue> getValues()
The values of the condition. The number of supported values depends on the condition type. Some
support zero values, others one or two values, and ConditionType.ONE_OF_LIST supports an
arbitrary number of values.
- Returns:
- value or
null
for none
-
setValues
public BooleanCondition setValues(List<ConditionValue> values)
The values of the condition. The number of supported values depends on the condition type. Some
support zero values, others one or two values, and ConditionType.ONE_OF_LIST supports an
arbitrary number of values.
- Parameters:
values
- values or null
for none
-
set
public BooleanCondition set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public BooleanCondition clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2023 Google. All rights reserved.