target.apidocs.com.google.api.services.sheets.v4.model.DimensionRange.html Maven / Gradle / Ivy
DimensionRange (Google Sheets API v4-rev20240312-2.0.0)
com.google.api.services.sheets.v4.model
Class DimensionRange
- 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.DimensionRange
-
public final class DimensionRange
extends com.google.api.client.json.GenericJson
A range along a single dimension on a sheet. All indexes are zero-based. Indexes are half open:
the start index is inclusive and the end index is exclusive. Missing indexes indicate the range
is unbounded on that side.
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
DimensionRange()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
DimensionRange
clone()
String
getDimension()
The dimension of the span.
Integer
getEndIndex()
The end (exclusive) of the span, or not set if unbounded.
Integer
getSheetId()
The sheet this span is on.
Integer
getStartIndex()
The start (inclusive) of the span, or not set if unbounded.
DimensionRange
set(String fieldName,
Object value)
DimensionRange
setDimension(String dimension)
The dimension of the span.
DimensionRange
setEndIndex(Integer endIndex)
The end (exclusive) of the span, or not set if unbounded.
DimensionRange
setSheetId(Integer sheetId)
The sheet this span is on.
DimensionRange
setStartIndex(Integer startIndex)
The start (inclusive) of the span, or not set if unbounded.
-
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
-
getDimension
public String getDimension()
The dimension of the span.
- Returns:
- value or
null
for none
-
setDimension
public DimensionRange setDimension(String dimension)
The dimension of the span.
- Parameters:
dimension
- dimension or null
for none
-
getEndIndex
public Integer getEndIndex()
The end (exclusive) of the span, or not set if unbounded.
- Returns:
- value or
null
for none
-
setEndIndex
public DimensionRange setEndIndex(Integer endIndex)
The end (exclusive) of the span, or not set if unbounded.
- Parameters:
endIndex
- endIndex or null
for none
-
getSheetId
public Integer getSheetId()
The sheet this span is on.
- Returns:
- value or
null
for none
-
setSheetId
public DimensionRange setSheetId(Integer sheetId)
The sheet this span is on.
- Parameters:
sheetId
- sheetId or null
for none
-
getStartIndex
public Integer getStartIndex()
The start (inclusive) of the span, or not set if unbounded.
- Returns:
- value or
null
for none
-
setStartIndex
public DimensionRange setStartIndex(Integer startIndex)
The start (inclusive) of the span, or not set if unbounded.
- Parameters:
startIndex
- startIndex or null
for none
-
set
public DimensionRange set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public DimensionRange clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.