public class Sheets.Spreadsheets.Values.Get extends SheetsRequest<ValueRange>
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Modifier | Constructor and Description |
|---|---|
protected |
Get(String spreadsheetId,
String range)
Returns a range of values from a spreadsheet.
|
| Modifier and Type | Method and Description |
|---|---|
com.google.api.client.http.HttpRequest |
buildHttpRequestUsingHead() |
com.google.api.client.http.HttpResponse |
executeUsingHead() |
String |
getDateTimeRenderOption()
How dates, times, and durations should be represented in the output.
|
String |
getMajorDimension()
The major dimension that results should use.
|
String |
getRange()
The [A1 notation or R1C1
notation](https://developers.google.com/workspace/sheets/api/guides/concepts#cell) of the range to
retrieve values from.
|
String |
getSpreadsheetId()
The ID of the spreadsheet to retrieve data from.
|
String |
getValueRenderOption()
How values should be represented in the output.
|
Sheets.Spreadsheets.Values.Get |
set(String parameterName,
Object value) |
Sheets.Spreadsheets.Values.Get |
set$Xgafv(String $Xgafv)
V1 error format.
|
Sheets.Spreadsheets.Values.Get |
setAccessToken(String accessToken)
OAuth access token.
|
Sheets.Spreadsheets.Values.Get |
setAlt(String alt)
Data format for response.
|
Sheets.Spreadsheets.Values.Get |
setCallback(String callback)
JSONP
|
Sheets.Spreadsheets.Values.Get |
setDateTimeRenderOption(String dateTimeRenderOption)
How dates, times, and durations should be represented in the output.
|
Sheets.Spreadsheets.Values.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Sheets.Spreadsheets.Values.Get |
setKey(String key)
API key.
|
Sheets.Spreadsheets.Values.Get |
setMajorDimension(String majorDimension)
The major dimension that results should use.
|
Sheets.Spreadsheets.Values.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Sheets.Spreadsheets.Values.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Sheets.Spreadsheets.Values.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Sheets.Spreadsheets.Values.Get |
setRange(String range)
The [A1 notation or R1C1
notation](https://developers.google.com/workspace/sheets/api/guides/concepts#cell) of the
range to retrieve values from.
|
Sheets.Spreadsheets.Values.Get |
setSpreadsheetId(String spreadsheetId)
The ID of the spreadsheet to retrieve data from.
|
Sheets.Spreadsheets.Values.Get |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Sheets.Spreadsheets.Values.Get |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Sheets.Spreadsheets.Values.Get |
setValueRenderOption(String valueRenderOption)
How values should be represented in the output.
|
get$Xgafv, getAbstractGoogleClient, getAccessToken, getAlt, getCallback, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUploadProtocol, getUploadType, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getReturnRawInputSteam, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue, setReturnRawInputStreamclone, entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys, toStringclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllprotected Get(String spreadsheetId, String range)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Sheets.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
spreadsheetId - The ID of the spreadsheet to retrieve data from.range - The [A1 notation or R1C1
notation](https://developers.google.com/workspace/sheets/api/guides/concepts#cell) of the
range to retrieve values from.public com.google.api.client.http.HttpResponse executeUsingHead()
throws IOException
executeUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ValueRange>IOExceptionpublic com.google.api.client.http.HttpRequest buildHttpRequestUsingHead()
throws IOException
buildHttpRequestUsingHead in class com.google.api.client.googleapis.services.AbstractGoogleClientRequest<ValueRange>IOExceptionpublic Sheets.Spreadsheets.Values.Get set$Xgafv(String $Xgafv)
SheetsRequestset$Xgafv in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setAccessToken(String accessToken)
SheetsRequestsetAccessToken in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setAlt(String alt)
SheetsRequestsetAlt in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setCallback(String callback)
SheetsRequestsetCallback in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setFields(String fields)
SheetsRequestsetFields in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setKey(String key)
SheetsRequestsetKey in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setOauthToken(String oauthToken)
SheetsRequestsetOauthToken in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setPrettyPrint(Boolean prettyPrint)
SheetsRequestsetPrettyPrint in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setQuotaUser(String quotaUser)
SheetsRequestsetQuotaUser in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setUploadType(String uploadType)
SheetsRequestsetUploadType in class SheetsRequest<ValueRange>public Sheets.Spreadsheets.Values.Get setUploadProtocol(String uploadProtocol)
SheetsRequestsetUploadProtocol in class SheetsRequest<ValueRange>public String getSpreadsheetId()
public Sheets.Spreadsheets.Values.Get setSpreadsheetId(String spreadsheetId)
public String getRange()
public Sheets.Spreadsheets.Values.Get setRange(String range)
public String getDateTimeRenderOption()
public Sheets.Spreadsheets.Values.Get setDateTimeRenderOption(String dateTimeRenderOption)
public String getMajorDimension()
public Sheets.Spreadsheets.Values.Get setMajorDimension(String majorDimension)
public String getValueRenderOption()
public Sheets.Spreadsheets.Values.Get setValueRenderOption(String valueRenderOption)
public Sheets.Spreadsheets.Values.Get set(String parameterName, Object value)
set in class SheetsRequest<ValueRange>Copyright © 2011–2025 Google. All rights reserved.