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
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
Constructor and Description |
---|
ProtectedRange() |
Modifier and Type | Method and Description |
---|---|
ProtectedRange |
clone() |
String |
getDescription()
The description of this protected range.
|
Editors |
getEditors()
The users and groups with edit access to the protected range.
|
String |
getNamedRangeId()
The named range this protected range is backed by, if any.
|
Integer |
getProtectedRangeId()
The ID of the protected range.
|
GridRange |
getRange()
The range that is being protected.
|
Boolean |
getRequestingUserCanEdit()
True if the user who requested this protected range can edit the protected area.
|
List<GridRange> |
getUnprotectedRanges()
The list of unprotected ranges within a protected sheet.
|
Boolean |
getWarningOnly()
True if this protected range will show a warning when editing.
|
ProtectedRange |
set(String fieldName,
Object value) |
ProtectedRange |
setDescription(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(String namedRangeId)
The named range this protected range is backed by, if any.
|
ProtectedRange |
setProtectedRangeId(Integer protectedRangeId)
The ID of the protected range.
|
ProtectedRange |
setRange(GridRange range)
The range that is being protected.
|
ProtectedRange |
setRequestingUserCanEdit(Boolean requestingUserCanEdit)
True if the user who requested this protected range can edit the protected area.
|
ProtectedRange |
setUnprotectedRanges(List<GridRange> unprotectedRanges)
The list of unprotected ranges within a protected sheet.
|
ProtectedRange |
setWarningOnly(Boolean warningOnly)
True if this protected range will show a warning when editing.
|
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 String getDescription()
null
for nonepublic ProtectedRange setDescription(String description)
description
- description or null
for nonepublic Editors getEditors()
null
for nonepublic ProtectedRange setEditors(Editors editors)
editors
- editors or null
for nonepublic String getNamedRangeId()
null
for nonepublic ProtectedRange setNamedRangeId(String namedRangeId)
namedRangeId
- namedRangeId or null
for nonepublic Integer getProtectedRangeId()
null
for nonepublic ProtectedRange setProtectedRangeId(Integer protectedRangeId)
protectedRangeId
- protectedRangeId or null
for nonepublic GridRange getRange()
null
for nonepublic ProtectedRange setRange(GridRange range)
range
- range or null
for nonepublic Boolean getRequestingUserCanEdit()
null
for nonepublic ProtectedRange setRequestingUserCanEdit(Boolean requestingUserCanEdit)
requestingUserCanEdit
- requestingUserCanEdit or null
for nonepublic List<GridRange> getUnprotectedRanges()
null
for nonepublic ProtectedRange setUnprotectedRanges(List<GridRange> unprotectedRanges)
unprotectedRanges
- unprotectedRanges or null
for nonepublic Boolean getWarningOnly()
null
for nonepublic ProtectedRange setWarningOnly(Boolean warningOnly)
warningOnly
- warningOnly or null
for nonepublic ProtectedRange set(String fieldName, Object value)
set
in class com.google.api.client.json.GenericJson
public ProtectedRange clone()
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.