public class Analytics.Management.CustomMetrics.Get extends AnalyticsRequest<CustomMetric>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Get(String accountId,
String webPropertyId,
String customMetricId)
Get a custom metric to which the user has access.
|
| Modifier and Type | Method and Description |
|---|---|
HttpRequest |
buildHttpRequestUsingHead() |
HttpResponse |
executeUsingHead() |
String |
getAccountId()
Account ID for the custom metric to retrieve.
|
String |
getCustomMetricId()
The ID of the custom metric to retrieve.
|
String |
getWebPropertyId()
Web property ID for the custom metric to retrieve.
|
Analytics.Management.CustomMetrics.Get |
set(String parameterName,
Object value) |
Analytics.Management.CustomMetrics.Get |
setAccountId(String accountId)
Account ID for the custom metric to retrieve.
|
Analytics.Management.CustomMetrics.Get |
setAlt(String alt)
Data format for the response.
|
Analytics.Management.CustomMetrics.Get |
setCustomMetricId(String customMetricId)
The ID of the custom metric to retrieve.
|
Analytics.Management.CustomMetrics.Get |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Analytics.Management.CustomMetrics.Get |
setKey(String key)
API key.
|
Analytics.Management.CustomMetrics.Get |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Analytics.Management.CustomMetrics.Get |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Analytics.Management.CustomMetrics.Get |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Analytics.Management.CustomMetrics.Get |
setUserIp(String userIp)
Deprecated.
|
Analytics.Management.CustomMetrics.Get |
setWebPropertyId(String webPropertyId)
Web property ID for the custom metric to retrieve.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, 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 accountId, String webPropertyId, String customMetricId)
AbstractGoogleClientRequest.execute() method to invoke the remote operation.
Analytics.initialize(com.google.api.client.googleapis.services.AbstractGoogleClientRequest)
must be called to initialize this instance immediately after invoking the constructor.
accountId - Account ID for the custom metric to retrieve.webPropertyId - Web property ID for the custom metric to retrieve.customMetricId - The ID of the custom metric to retrieve.public HttpResponse executeUsingHead() throws IOException
executeUsingHead in class AbstractGoogleClientRequest<CustomMetric>IOExceptionpublic HttpRequest buildHttpRequestUsingHead() throws IOException
buildHttpRequestUsingHead in class AbstractGoogleClientRequest<CustomMetric>IOExceptionpublic Analytics.Management.CustomMetrics.Get setAlt(String alt)
AnalyticsRequestsetAlt in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Get setFields(String fields)
AnalyticsRequestsetFields in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Get setKey(String key)
AnalyticsRequestsetKey in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Get setOauthToken(String oauthToken)
AnalyticsRequestsetOauthToken in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Get setPrettyPrint(Boolean prettyPrint)
AnalyticsRequestsetPrettyPrint in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Get setQuotaUser(String quotaUser)
AnalyticsRequestsetQuotaUser in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Get setUserIp(String userIp)
AnalyticsRequestsetUserIp in class AnalyticsRequest<CustomMetric>public String getAccountId()
public Analytics.Management.CustomMetrics.Get setAccountId(String accountId)
public String getWebPropertyId()
public Analytics.Management.CustomMetrics.Get setWebPropertyId(String webPropertyId)
public String getCustomMetricId()
public Analytics.Management.CustomMetrics.Get setCustomMetricId(String customMetricId)
public Analytics.Management.CustomMetrics.Get set(String parameterName, Object value)
set in class AnalyticsRequest<CustomMetric>Copyright © 2011–2022 Google. All rights reserved.