public class Fitness.Users.DataSources.Datasets.Get extends FitnessRequest<Dataset>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Get(String userId,
String dataSourceId,
String datasetId)
Returns a dataset containing all data points whose start and end times overlap with the
specified range of the dataset minimum start time and maximum end time.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getDatasetId()
Dataset identifier that is a composite of the minimum data point start time and maximum data point
end time represented as nanoseconds from the epoch.
|
String |
getDataSourceId()
The data stream ID of the data source that created the dataset.
|
Integer |
getLimit()
If specified, no more than this many data points will be included in the dataset.
|
String |
getPageToken()
The continuation token, which is used to page through large datasets.
|
String |
getUserId()
Retrieve a dataset for the person identified.
|
Fitness.Users.DataSources.Datasets.Get |
set(String parameterName,
Object value) |
Fitness.Users.DataSources.Datasets.Get |
set$Xgafv(String $Xgafv)
V1 error format.
|
Fitness.Users.DataSources.Datasets.Get |
setAccessToken(String accessToken)
OAuth access token.
|
Fitness.Users.DataSources.Datasets.Get |
setAlt(String alt)
Data format for response.
|
Fitness.Users.DataSources.Datasets.Get |
setCallback(String callback)
JSONP
|
Fitness.Users.DataSources.Datasets.Get |
setDatasetId(String datasetId)
Dataset identifier that is a composite of the minimum data point start time and maximum
data point end time represented as nanoseconds from the epoch.
|
Fitness.Users.DataSources.Datasets.Get |
setDataSourceId(String dataSourceId)
The data stream ID of the data source that created the dataset.
|
Fitness.Users.DataSources.Datasets.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Fitness.Users.DataSources.Datasets.Get |
setKey(String key)
API key.
|
Fitness.Users.DataSources.Datasets.Get |
setLimit(Integer limit)
If specified, no more than this many data points will be included in the dataset.
|
Fitness.Users.DataSources.Datasets.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Fitness.Users.DataSources.Datasets.Get |
setPageToken(String pageToken)
The continuation token, which is used to page through large datasets.
|
Fitness.Users.DataSources.Datasets.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Fitness.Users.DataSources.Datasets.Get |
setQuotaUser(String quotaUser)
Available to use for quota purposes for server-side applications.
|
Fitness.Users.DataSources.Datasets.Get |
setUploadProtocol(String uploadProtocol)
Upload protocol for media (e.g.
|
Fitness.Users.DataSources.Datasets.Get |
setUploadType(String uploadType)
Legacy upload protocol for media (e.g.
|
Fitness.Users.DataSources.Datasets.Get |
setUserId(String userId)
Retrieve a dataset for the person identified.
|
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 userId, String dataSourceId, String datasetId)
AbstractGoogleClientRequest.execute() method to invoke the remote operation. Fitness.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest) must be
called to initialize this instance immediately after invoking the constructor.
userId - Retrieve a dataset for the person identified. Use me to indicate the authenticated user. Only me is
supported at this time.dataSourceId - The data stream ID of the data source that created the dataset.datasetId - Dataset identifier that is a composite of the minimum data point start time and maximum data point
end time represented as nanoseconds from the epoch. The ID is formatted like: "startTime-
endTime" where startTime and endTime are 64 bit integers.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<Dataset>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<Dataset>IOExceptionpublic Fitness.Users.DataSources.Datasets.Get set$Xgafv(String $Xgafv)
FitnessRequestset$Xgafv in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setAccessToken(String accessToken)
FitnessRequestsetAccessToken in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setAlt(String alt)
FitnessRequestsetAlt in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setCallback(String callback)
FitnessRequestsetCallback in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setFields(String fields)
FitnessRequestsetFields in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setKey(String key)
FitnessRequestsetKey in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setOauthToken(String oauthToken)
FitnessRequestsetOauthToken in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setPrettyPrint(Boolean prettyPrint)
FitnessRequestsetPrettyPrint in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setQuotaUser(String quotaUser)
FitnessRequestsetQuotaUser in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setUploadType(String uploadType)
FitnessRequestsetUploadType in class FitnessRequest<Dataset>public Fitness.Users.DataSources.Datasets.Get setUploadProtocol(String uploadProtocol)
FitnessRequestsetUploadProtocol in class FitnessRequest<Dataset>public String getUserId()
public Fitness.Users.DataSources.Datasets.Get setUserId(String userId)
public String getDataSourceId()
public Fitness.Users.DataSources.Datasets.Get setDataSourceId(String dataSourceId)
public String getDatasetId()
public Fitness.Users.DataSources.Datasets.Get setDatasetId(String datasetId)
public Integer getLimit()
public Fitness.Users.DataSources.Datasets.Get setLimit(Integer limit)
public String getPageToken()
public Fitness.Users.DataSources.Datasets.Get setPageToken(String pageToken)
public Fitness.Users.DataSources.Datasets.Get set(String parameterName, Object value)
set in class FitnessRequest<Dataset>Copyright © 2011–2021 Google. All rights reserved.