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
AbstractMap.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, toString
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
clear, containsKey, containsValue, isEmpty, keySet, size, values
finalize, getClass, notify, notifyAll, wait, wait, wait
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
public 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 com.google.api.client.json.GenericJson
public DataValidationRule clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.