target.apidocs.com.google.api.services.sheets.v4.model.UpdateConditionalFormatRuleRequest.html Maven / Gradle / Ivy
UpdateConditionalFormatRuleRequest (Google Sheets API v4-rev20240312-2.0.0)
com.google.api.services.sheets.v4.model
Class UpdateConditionalFormatRuleRequest
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sheets.v4.model.UpdateConditionalFormatRuleRequest
-
public final class UpdateConditionalFormatRuleRequest
extends com.google.api.client.json.GenericJson
Updates a conditional format rule at the given index, or moves a conditional format rule to
another index.
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
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
UpdateConditionalFormatRuleRequest()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
UpdateConditionalFormatRuleRequest
clone()
Integer
getIndex()
The zero-based index of the rule that should be replaced or moved.
Integer
getNewIndex()
The zero-based new index the rule should end up at.
ConditionalFormatRule
getRule()
The rule that should replace the rule at the given index.
Integer
getSheetId()
The sheet of the rule to move.
UpdateConditionalFormatRuleRequest
set(String fieldName,
Object value)
UpdateConditionalFormatRuleRequest
setIndex(Integer index)
The zero-based index of the rule that should be replaced or moved.
UpdateConditionalFormatRuleRequest
setNewIndex(Integer newIndex)
The zero-based new index the rule should end up at.
UpdateConditionalFormatRuleRequest
setRule(ConditionalFormatRule rule)
The rule that should replace the rule at the given index.
UpdateConditionalFormatRuleRequest
setSheetId(Integer sheetId)
The sheet of the rule to move.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getIndex
public Integer getIndex()
The zero-based index of the rule that should be replaced or moved.
- Returns:
- value or
null
for none
-
setIndex
public UpdateConditionalFormatRuleRequest setIndex(Integer index)
The zero-based index of the rule that should be replaced or moved.
- Parameters:
index
- index or null
for none
-
getNewIndex
public Integer getNewIndex()
The zero-based new index the rule should end up at.
- Returns:
- value or
null
for none
-
setNewIndex
public UpdateConditionalFormatRuleRequest setNewIndex(Integer newIndex)
The zero-based new index the rule should end up at.
- Parameters:
newIndex
- newIndex or null
for none
-
getRule
public ConditionalFormatRule getRule()
The rule that should replace the rule at the given index.
- Returns:
- value or
null
for none
-
setRule
public UpdateConditionalFormatRuleRequest setRule(ConditionalFormatRule rule)
The rule that should replace the rule at the given index.
- Parameters:
rule
- rule or null
for none
-
getSheetId
public Integer getSheetId()
The sheet of the rule to move. Required if new_index is set, unused otherwise.
- Returns:
- value or
null
for none
-
setSheetId
public UpdateConditionalFormatRuleRequest setSheetId(Integer sheetId)
The sheet of the rule to move. Required if new_index is set, unused otherwise.
- Parameters:
sheetId
- sheetId or null
for none
-
set
public UpdateConditionalFormatRuleRequest set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public UpdateConditionalFormatRuleRequest clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.