public class Analytics.Management.CustomMetrics.Insert extends AnalyticsRequest<CustomMetric>
com.google.api.client.util.GenericData.Flags
Modifier | Constructor and Description |
---|---|
protected |
Analytics.Management.CustomMetrics.Insert(java.lang.String accountId,
java.lang.String webPropertyId,
CustomMetric content)
Create a new custom metric.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getAccountId()
Account ID for the custom metric to create.
|
java.lang.String |
getWebPropertyId()
Web property ID for the custom dimension to create.
|
Analytics.Management.CustomMetrics.Insert |
set(java.lang.String parameterName,
java.lang.Object value) |
Analytics.Management.CustomMetrics.Insert |
setAccountId(java.lang.String accountId)
Account ID for the custom metric to create.
|
Analytics.Management.CustomMetrics.Insert |
setAlt(java.lang.String alt)
Data format for the response.
|
Analytics.Management.CustomMetrics.Insert |
setFields(java.lang.String fields)
Selector specifying which fields to include in a partial response.
|
Analytics.Management.CustomMetrics.Insert |
setKey(java.lang.String key)
API key.
|
Analytics.Management.CustomMetrics.Insert |
setOauthToken(java.lang.String oauthToken)
OAuth 2.0 token for the current user.
|
Analytics.Management.CustomMetrics.Insert |
setPrettyPrint(java.lang.Boolean prettyPrint)
Returns response with indentations and line breaks.
|
Analytics.Management.CustomMetrics.Insert |
setQuotaUser(java.lang.String quotaUser)
Available to use for quota purposes for server-side applications.
|
Analytics.Management.CustomMetrics.Insert |
setUserIp(java.lang.String userIp)
IP address of the site where the request originates.
|
Analytics.Management.CustomMetrics.Insert |
setWebPropertyId(java.lang.String webPropertyId)
Web property ID for the custom dimension to create.
|
getAbstractGoogleClient, getAlt, getFields, getKey, getOauthToken, getPrettyPrint, getQuotaUser, getUserIp, setDisableGZipContent, setRequestHeaders
getJsonContent, newExceptionOnError, queue
buildHttpRequest, buildHttpRequestUrl, buildHttpRequestUsingHead, checkRequiredParameter, execute, executeAndDownloadTo, executeAsInputStream, executeMedia, executeMediaAndDownloadTo, executeMediaAsInputStream, executeUnparsed, executeUsingHead, getDisableGZipContent, getHttpContent, getLastResponseHeaders, getLastStatusCode, getLastStatusMessage, getMediaHttpDownloader, getMediaHttpUploader, getRequestHeaders, getRequestMethod, getResponseClass, getUriTemplate, initializeMediaDownload, initializeMediaUpload, queue
clone, entrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeys
protected Analytics.Management.CustomMetrics.Insert(java.lang.String accountId, java.lang.String webPropertyId, 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 create.webPropertyId
- Web property ID for the custom dimension to create.content
- the CustomMetric
public Analytics.Management.CustomMetrics.Insert setAlt(java.lang.String alt)
AnalyticsRequest
setAlt
in class AnalyticsRequest<CustomMetric>
public Analytics.Management.CustomMetrics.Insert setFields(java.lang.String fields)
AnalyticsRequest
setFields
in class AnalyticsRequest<CustomMetric>
public Analytics.Management.CustomMetrics.Insert setKey(java.lang.String key)
AnalyticsRequest
setKey
in class AnalyticsRequest<CustomMetric>
public Analytics.Management.CustomMetrics.Insert setOauthToken(java.lang.String oauthToken)
AnalyticsRequest
setOauthToken
in class AnalyticsRequest<CustomMetric>
public Analytics.Management.CustomMetrics.Insert setPrettyPrint(java.lang.Boolean prettyPrint)
AnalyticsRequest
setPrettyPrint
in class AnalyticsRequest<CustomMetric>
public Analytics.Management.CustomMetrics.Insert setQuotaUser(java.lang.String quotaUser)
AnalyticsRequest
setQuotaUser
in class AnalyticsRequest<CustomMetric>
public Analytics.Management.CustomMetrics.Insert setUserIp(java.lang.String userIp)
AnalyticsRequest
setUserIp
in class AnalyticsRequest<CustomMetric>
public java.lang.String getAccountId()
public Analytics.Management.CustomMetrics.Insert setAccountId(java.lang.String accountId)
public java.lang.String getWebPropertyId()
public Analytics.Management.CustomMetrics.Insert setWebPropertyId(java.lang.String webPropertyId)
public Analytics.Management.CustomMetrics.Insert set(java.lang.String parameterName, java.lang.Object value)
set
in class AnalyticsRequest<CustomMetric>