public final class DataValidationRule extends 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 Google Sheets API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
DataValidationRule() |
| Modifier and Type | Method and Description |
|---|---|
DataValidationRule |
clone() |
BooleanCondition |
getCondition()
The condition that data in the cell must match.
|
String |
getInputMessage()
A message to show the user when adding data to the cell.
|
Boolean |
getShowCustomUi()
True if the UI should be customized based on the kind of condition.
|
Boolean |
getStrict()
True if invalid data should be rejected.
|
DataValidationRule |
set(String fieldName,
Object value) |
DataValidationRule |
setCondition(BooleanCondition condition)
The condition that data in the cell must match.
|
DataValidationRule |
setInputMessage(String inputMessage)
A message to show the user when adding data to the cell.
|
DataValidationRule |
setShowCustomUi(Boolean showCustomUi)
True if the UI should be customized based on the kind of condition.
|
DataValidationRule |
setStrict(Boolean strict)
True if invalid data should be rejected.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic BooleanCondition getCondition()
null for nonepublic DataValidationRule setCondition(BooleanCondition condition)
condition - condition or null for nonepublic String getInputMessage()
null for nonepublic DataValidationRule setInputMessage(String inputMessage)
inputMessage - inputMessage or null for nonepublic Boolean getShowCustomUi()
null for nonepublic DataValidationRule setShowCustomUi(Boolean showCustomUi)
showCustomUi - showCustomUi or null for nonepublic Boolean getStrict()
null for nonepublic DataValidationRule setStrict(Boolean strict)
strict - strict or null for nonepublic DataValidationRule set(String fieldName, Object value)
set in class GenericJsonpublic DataValidationRule clone()
clone in class GenericJsonCopyright © 2011–2021 Google. All rights reserved.