public final class ProtectedRange
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 |
|---|
ProtectedRange() |
| Modifier and Type | Method and Description |
|---|---|
ProtectedRange |
clone() |
java.lang.String |
getDescription()
The description of this protected range.
|
Editors |
getEditors()
The users and groups with edit access to the protected range.
|
java.lang.String |
getNamedRangeId()
The named range this protected range is backed by, if any.
|
java.lang.Integer |
getProtectedRangeId()
The ID of the protected range.
|
GridRange |
getRange()
The range that is being protected.
|
java.lang.Boolean |
getRequestingUserCanEdit()
True if the user who requested this protected range can edit the protected area.
|
java.util.List<GridRange> |
getUnprotectedRanges()
The list of unprotected ranges within a protected sheet.
|
java.lang.Boolean |
getWarningOnly()
True if this protected range will show a warning when editing.
|
ProtectedRange |
set(java.lang.String fieldName,
java.lang.Object value) |
ProtectedRange |
setDescription(java.lang.String description)
The description of this protected range.
|
ProtectedRange |
setEditors(Editors editors)
The users and groups with edit access to the protected range.
|
ProtectedRange |
setNamedRangeId(java.lang.String namedRangeId)
The named range this protected range is backed by, if any.
|
ProtectedRange |
setProtectedRangeId(java.lang.Integer protectedRangeId)
The ID of the protected range.
|
ProtectedRange |
setRange(GridRange range)
The range that is being protected.
|
ProtectedRange |
setRequestingUserCanEdit(java.lang.Boolean requestingUserCanEdit)
True if the user who requested this protected range can edit the protected area.
|
ProtectedRange |
setUnprotectedRanges(java.util.List<GridRange> unprotectedRanges)
The list of unprotected ranges within a protected sheet.
|
ProtectedRange |
setWarningOnly(java.lang.Boolean warningOnly)
True if this protected range will show a warning when editing.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getDescription()
null for nonepublic ProtectedRange setDescription(java.lang.String description)
description - description or null for nonepublic Editors getEditors()
null for nonepublic ProtectedRange setEditors(Editors editors)
editors - editors or null for nonepublic java.lang.String getNamedRangeId()
null for nonepublic ProtectedRange setNamedRangeId(java.lang.String namedRangeId)
namedRangeId - namedRangeId or null for nonepublic java.lang.Integer getProtectedRangeId()
null for nonepublic ProtectedRange setProtectedRangeId(java.lang.Integer protectedRangeId)
protectedRangeId - protectedRangeId or null for nonepublic GridRange getRange()
null for nonepublic ProtectedRange setRange(GridRange range)
range - range or null for nonepublic java.lang.Boolean getRequestingUserCanEdit()
null for nonepublic ProtectedRange setRequestingUserCanEdit(java.lang.Boolean requestingUserCanEdit)
requestingUserCanEdit - requestingUserCanEdit or null for nonepublic java.util.List<GridRange> getUnprotectedRanges()
null for nonepublic ProtectedRange setUnprotectedRanges(java.util.List<GridRange> unprotectedRanges)
unprotectedRanges - unprotectedRanges or null for nonepublic java.lang.Boolean getWarningOnly()
null for nonepublic ProtectedRange setWarningOnly(java.lang.Boolean warningOnly)
warningOnly - warningOnly or null for nonepublic ProtectedRange set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic ProtectedRange clone()
clone in class com.google.api.client.json.GenericJson