public class Analytics.Management.CustomMetrics.Update extends AnalyticsRequest<CustomMetric>
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>USER_AGENT_SUFFIX| Modifier | Constructor and Description |
|---|---|
protected |
Update(String accountId,
String webPropertyId,
String customMetricId,
CustomMetric content)
Updates an existing custom metric.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountId()
Account ID for the custom metric to update.
|
String |
getCustomMetricId()
Custom metric ID for the custom metric to update.
|
Boolean |
getIgnoreCustomDataSourceLinks()
Force the update and ignore any warnings related to the custom metric being linked to a custom data
source / data set.
|
String |
getWebPropertyId()
Web property ID for the custom metric to update.
|
boolean |
isIgnoreCustomDataSourceLinks()
Convenience method that returns only
Boolean.TRUE or Boolean.FALSE. |
Analytics.Management.CustomMetrics.Update |
set(String parameterName,
Object value) |
Analytics.Management.CustomMetrics.Update |
setAccountId(String accountId)
Account ID for the custom metric to update.
|
Analytics.Management.CustomMetrics.Update |
setAlt(String alt)
Data format for the response.
|
Analytics.Management.CustomMetrics.Update |
setCustomMetricId(String customMetricId)
Custom metric ID for the custom metric to update.
|
Analytics.Management.CustomMetrics.Update |
setFields(String fields)
Selector specifying which fields to include in a partial response.
|
Analytics.Management.CustomMetrics.Update |
setIgnoreCustomDataSourceLinks(Boolean ignoreCustomDataSourceLinks)
Force the update and ignore any warnings related to the custom metric being linked to a
custom data source / data set.
|
Analytics.Management.CustomMetrics.Update |
setKey(String key)
API key.
|
Analytics.Management.CustomMetrics.Update |
setOauthToken(String oauthToken)
OAuth 2.0 token for the current user.
|
Analytics.Management.CustomMetrics.Update |
setPrettyPrint(Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Analytics.Management.CustomMetrics.Update |
setQuotaUser(String quotaUser)
An opaque string that represents a user for quota purposes.
|
Analytics.Management.CustomMetrics.Update |
setUserIp(String userIp)
Deprecated.
|
Analytics.Management.CustomMetrics.Update |
setWebPropertyId(String webPropertyId)
Web property ID for the custom metric to update.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeadersgetJsonContent, newExceptionOnError, queuebuildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, 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 Update(String accountId, String webPropertyId, String customMetricId, CustomMetric content)
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 update.webPropertyId - Web property ID for the custom metric to update.customMetricId - Custom metric ID for the custom metric to update.content - the CustomMetricpublic Analytics.Management.CustomMetrics.Update setAlt(String alt)
AnalyticsRequestsetAlt in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Update setFields(String fields)
AnalyticsRequestsetFields in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Update setKey(String key)
AnalyticsRequestsetKey in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Update setOauthToken(String oauthToken)
AnalyticsRequestsetOauthToken in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Update setPrettyPrint(Boolean prettyPrint)
AnalyticsRequestsetPrettyPrint in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Update setQuotaUser(String quotaUser)
AnalyticsRequestsetQuotaUser in class AnalyticsRequest<CustomMetric>public Analytics.Management.CustomMetrics.Update setUserIp(String userIp)
AnalyticsRequestsetUserIp in class AnalyticsRequest<CustomMetric>public String getAccountId()
public Analytics.Management.CustomMetrics.Update setAccountId(String accountId)
public String getWebPropertyId()
public Analytics.Management.CustomMetrics.Update setWebPropertyId(String webPropertyId)
public String getCustomMetricId()
public Analytics.Management.CustomMetrics.Update setCustomMetricId(String customMetricId)
public Boolean getIgnoreCustomDataSourceLinks()
public Analytics.Management.CustomMetrics.Update setIgnoreCustomDataSourceLinks(Boolean ignoreCustomDataSourceLinks)
public boolean isIgnoreCustomDataSourceLinks()
Boolean.TRUE or Boolean.FALSE.
Boolean properties can have four possible values:
null, Data.NULL_BOOLEAN, Boolean.TRUE
or Boolean.FALSE.
This method returns Boolean.TRUE if the default of the property is Boolean.TRUE
and it is null or Data.NULL_BOOLEAN.
Boolean.FALSE is returned if the default of the property is Boolean.FALSE and
it is null or Data.NULL_BOOLEAN.
Force the update and ignore any warnings related to the custom metric being linked to a custom data source / data set.
public Analytics.Management.CustomMetrics.Update set(String parameterName, Object value)
set in class AnalyticsRequest<CustomMetric>Copyright © 2011–2022 Google. All rights reserved.