public final class DataValidationRule
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 Google Sheets 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| Constructor and Description |
|---|
DataValidationRule() |
| Modifier and Type | Method and Description |
|---|---|
DataValidationRule |
clone() |
BooleanCondition |
getCondition()
The condition that data in the cell must match.
|
java.lang.String |
getInputMessage()
A message to show the user when adding data to the cell.
|
java.lang.Boolean |
getShowCustomUi()
True if the UI should be customized based on the kind of condition.
|
java.lang.Boolean |
getStrict()
True if invalid data should be rejected.
|
DataValidationRule |
set(java.lang.String fieldName,
java.lang.Object value) |
DataValidationRule |
setCondition(BooleanCondition condition)
The condition that data in the cell must match.
|
DataValidationRule |
setInputMessage(java.lang.String inputMessage)
A message to show the user when adding data to the cell.
|
DataValidationRule |
setShowCustomUi(java.lang.Boolean showCustomUi)
True if the UI should be customized based on the kind of condition.
|
DataValidationRule |
setStrict(java.lang.Boolean strict)
True if invalid data should be rejected.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic BooleanCondition getCondition()
null for nonepublic DataValidationRule setCondition(BooleanCondition condition)
condition - condition or null for nonepublic java.lang.String getInputMessage()
null for nonepublic DataValidationRule setInputMessage(java.lang.String inputMessage)
inputMessage - inputMessage or null for nonepublic java.lang.Boolean getShowCustomUi()
null for nonepublic DataValidationRule setShowCustomUi(java.lang.Boolean showCustomUi)
showCustomUi - showCustomUi or null for nonepublic java.lang.Boolean getStrict()
null for nonepublic DataValidationRule setStrict(java.lang.Boolean strict)
strict - strict or null for nonepublic DataValidationRule set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic DataValidationRule clone()
clone in class com.google.api.client.json.GenericJson