public final class Goal
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Google Analytics API. For a detailed explanation see: http://code.google.com/p/google-http-java-client/wiki/JSON
| Modifier and Type | Class and Description |
|---|---|
static class |
Goal.EventDetails
Details for the goal of the type EVENT.
|
static class |
Goal.ParentLink
Parent link for a goal.
|
static class |
Goal.UrlDestinationDetails
Details for the goal of the type URL_DESTINATION.
|
static class |
Goal.VisitNumPagesDetails
Details for the goal of the type VISIT_NUM_PAGES.
|
static class |
Goal.VisitTimeOnSiteDetails
Details for the goal of the type VISIT_TIME_ON_SITE.
|
com.google.api.client.util.GenericData.Flags| Constructor and Description |
|---|
Goal() |
| Modifier and Type | Method and Description |
|---|---|
Goal |
clone() |
java.lang.String |
getAccountId()
Account ID to which this goal belongs.
|
java.lang.Boolean |
getActive()
Determines whether this goal is active.
|
com.google.api.client.util.DateTime |
getCreated()
Time this goal was created.
|
Goal.EventDetails |
getEventDetails()
Details for the goal of the type EVENT.
|
java.lang.String |
getId()
Goal ID.
|
java.lang.String |
getInternalWebPropertyId()
Internal ID for the web property to which this goal belongs.
|
java.lang.String |
getKind()
Resource type for an Analytics goal.
|
java.lang.String |
getName()
Goal name.
|
Goal.ParentLink |
getParentLink()
Parent link for a goal.
|
java.lang.String |
getProfileId()
View (Profile) ID to which this goal belongs.
|
java.lang.String |
getSelfLink()
Link for this goal.
|
java.lang.String |
getType()
Goal type.
|
com.google.api.client.util.DateTime |
getUpdated()
Time this goal was last modified.
|
Goal.UrlDestinationDetails |
getUrlDestinationDetails()
Details for the goal of the type URL_DESTINATION.
|
java.lang.Float |
getValue()
Goal value.
|
Goal.VisitNumPagesDetails |
getVisitNumPagesDetails()
Details for the goal of the type VISIT_NUM_PAGES.
|
Goal.VisitTimeOnSiteDetails |
getVisitTimeOnSiteDetails()
Details for the goal of the type VISIT_TIME_ON_SITE.
|
java.lang.String |
getWebPropertyId()
Web property ID to which this goal belongs.
|
Goal |
set(java.lang.String fieldName,
java.lang.Object value) |
Goal |
setAccountId(java.lang.String accountId)
Account ID to which this goal belongs.
|
Goal |
setActive(java.lang.Boolean active)
Determines whether this goal is active.
|
Goal |
setCreated(com.google.api.client.util.DateTime created)
Time this goal was created.
|
Goal |
setEventDetails(Goal.EventDetails eventDetails)
Details for the goal of the type EVENT.
|
Goal |
setId(java.lang.String id)
Goal ID.
|
Goal |
setInternalWebPropertyId(java.lang.String internalWebPropertyId)
Internal ID for the web property to which this goal belongs.
|
Goal |
setKind(java.lang.String kind)
Resource type for an Analytics goal.
|
Goal |
setName(java.lang.String name)
Goal name.
|
Goal |
setParentLink(Goal.ParentLink parentLink)
Parent link for a goal.
|
Goal |
setProfileId(java.lang.String profileId)
View (Profile) ID to which this goal belongs.
|
Goal |
setSelfLink(java.lang.String selfLink)
Link for this goal.
|
Goal |
setType(java.lang.String type)
Goal type.
|
Goal |
setUpdated(com.google.api.client.util.DateTime updated)
Time this goal was last modified.
|
Goal |
setUrlDestinationDetails(Goal.UrlDestinationDetails urlDestinationDetails)
Details for the goal of the type URL_DESTINATION.
|
Goal |
setValue(java.lang.Float value)
Goal value.
|
Goal |
setVisitNumPagesDetails(Goal.VisitNumPagesDetails visitNumPagesDetails)
Details for the goal of the type VISIT_NUM_PAGES.
|
Goal |
setVisitTimeOnSiteDetails(Goal.VisitTimeOnSiteDetails visitTimeOnSiteDetails)
Details for the goal of the type VISIT_TIME_ON_SITE.
|
Goal |
setWebPropertyId(java.lang.String webPropertyId)
Web property ID to which this goal belongs.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getAccountId()
null for nonepublic Goal setAccountId(java.lang.String accountId)
accountId - accountId or null for nonepublic java.lang.Boolean getActive()
null for nonepublic Goal setActive(java.lang.Boolean active)
active - active or null for nonepublic com.google.api.client.util.DateTime getCreated()
null for nonepublic Goal setCreated(com.google.api.client.util.DateTime created)
created - created or null for nonepublic Goal.EventDetails getEventDetails()
null for nonepublic Goal setEventDetails(Goal.EventDetails eventDetails)
eventDetails - eventDetails or null for nonepublic java.lang.String getId()
null for nonepublic Goal setId(java.lang.String id)
id - id or null for nonepublic java.lang.String getInternalWebPropertyId()
null for nonepublic Goal setInternalWebPropertyId(java.lang.String internalWebPropertyId)
internalWebPropertyId - internalWebPropertyId or null for nonepublic java.lang.String getKind()
null for nonepublic Goal setKind(java.lang.String kind)
kind - kind or null for nonepublic java.lang.String getName()
null for nonepublic Goal setName(java.lang.String name)
name - name or null for nonepublic Goal.ParentLink getParentLink()
null for nonepublic Goal setParentLink(Goal.ParentLink parentLink)
parentLink - parentLink or null for nonepublic java.lang.String getProfileId()
null for nonepublic Goal setProfileId(java.lang.String profileId)
profileId - profileId or null for nonepublic java.lang.String getSelfLink()
null for nonepublic Goal setSelfLink(java.lang.String selfLink)
selfLink - selfLink or null for nonepublic java.lang.String getType()
null for nonepublic Goal setType(java.lang.String type)
type - type or null for nonepublic com.google.api.client.util.DateTime getUpdated()
null for nonepublic Goal setUpdated(com.google.api.client.util.DateTime updated)
updated - updated or null for nonepublic Goal.UrlDestinationDetails getUrlDestinationDetails()
null for nonepublic Goal setUrlDestinationDetails(Goal.UrlDestinationDetails urlDestinationDetails)
urlDestinationDetails - urlDestinationDetails or null for nonepublic java.lang.Float getValue()
null for nonepublic Goal setValue(java.lang.Float value)
value - value or null for nonepublic Goal.VisitNumPagesDetails getVisitNumPagesDetails()
null for nonepublic Goal setVisitNumPagesDetails(Goal.VisitNumPagesDetails visitNumPagesDetails)
visitNumPagesDetails - visitNumPagesDetails or null for nonepublic Goal.VisitTimeOnSiteDetails getVisitTimeOnSiteDetails()
null for nonepublic Goal setVisitTimeOnSiteDetails(Goal.VisitTimeOnSiteDetails visitTimeOnSiteDetails)
visitTimeOnSiteDetails - visitTimeOnSiteDetails or null for nonepublic java.lang.String getWebPropertyId()
null for nonepublic Goal setWebPropertyId(java.lang.String webPropertyId)
webPropertyId - webPropertyId or null for nonepublic Goal set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic Goal clone()
clone in class com.google.api.client.json.GenericJson