public final class Goal extends 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-api-java-client/wiki/Json
Upgrade warning: starting with version 1.12 getResponseHeaders() is removed, instead use
JsonHttpRequest.getLastResponseHeaders()
| 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.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Goal() |
| Modifier and Type | Method and Description |
|---|---|
String |
getAccountId()
Account ID to which this goal belongs.
|
Boolean |
getActive()
Determines whether this goal is active.
|
DateTime |
getCreated()
Time this goal was created.
|
Goal.EventDetails |
getEventDetails()
Details for the goal of the type EVENT.
|
String |
getId()
Goal ID.
|
String |
getInternalWebPropertyId()
Internal ID for the web property to which this goal belongs.
|
String |
getKind()
Resource type for an Analytics goal.
|
String |
getName()
Goal name.
|
Goal.ParentLink |
getParentLink()
Parent link for a goal.
|
String |
getProfileId()
Profile ID to which this goal belongs.
|
String |
getSelfLink()
Link for this goal.
|
String |
getType()
Goal type.
|
DateTime |
getUpdated()
Time this goal was last modified.
|
Goal.UrlDestinationDetails |
getUrlDestinationDetails()
Details for the goal of the type URL_DESTINATION.
|
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.
|
String |
getWebPropertyId()
Web property ID to which this goal belongs.
|
Goal |
setAccountId(String accountId)
Account ID to which this goal belongs.
|
Goal |
setActive(Boolean active)
Determines whether this goal is active.
|
Goal |
setCreated(DateTime created)
Time this goal was created.
|
Goal |
setEventDetails(Goal.EventDetails eventDetails)
Details for the goal of the type EVENT.
|
Goal |
setId(String id)
Goal ID.
|
Goal |
setInternalWebPropertyId(String internalWebPropertyId)
Internal ID for the web property to which this goal belongs.
|
Goal |
setKind(String kind)
Resource type for an Analytics goal.
|
Goal |
setName(String name)
Goal name.
|
Goal |
setParentLink(Goal.ParentLink parentLink)
Parent link for a goal.
|
Goal |
setProfileId(String profileId)
Profile ID to which this goal belongs.
|
Goal |
setSelfLink(String selfLink)
Link for this goal.
|
Goal |
setType(String type)
Goal type.
|
Goal |
setUpdated(DateTime updated)
Time this goal was last modified.
|
Goal |
setUrlDestinationDetails(Goal.UrlDestinationDetails urlDestinationDetails)
Details for the goal of the type URL_DESTINATION.
|
Goal |
setValue(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(String webPropertyId)
Web property ID to which this goal belongs.
|
clone, getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, set, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic String getAccountId()
null.public Goal setAccountId(String accountId)
null.public Boolean getActive()
null.public Goal setActive(Boolean active)
null.public DateTime getCreated()
null.public Goal setCreated(DateTime created)
null.public Goal.EventDetails getEventDetails()
null.public Goal setEventDetails(Goal.EventDetails eventDetails)
null.public String getId()
null.public String getInternalWebPropertyId()
null.public Goal setInternalWebPropertyId(String internalWebPropertyId)
null.public String getKind()
null.public Goal setKind(String kind)
null.public String getName()
null.public Goal.ParentLink getParentLink()
null.public Goal setParentLink(Goal.ParentLink parentLink)
null.public String getProfileId()
null.public Goal setProfileId(String profileId)
null.public String getSelfLink()
null.public String getType()
null.public Goal setType(String type)
null.public DateTime getUpdated()
null.public Goal setUpdated(DateTime updated)
null.public Goal.UrlDestinationDetails getUrlDestinationDetails()
null.public Goal setUrlDestinationDetails(Goal.UrlDestinationDetails urlDestinationDetails)
null.public Float getValue()
null.public Goal.VisitNumPagesDetails getVisitNumPagesDetails()
null.public Goal setVisitNumPagesDetails(Goal.VisitNumPagesDetails visitNumPagesDetails)
null.public Goal.VisitTimeOnSiteDetails getVisitTimeOnSiteDetails()
null.public Goal setVisitTimeOnSiteDetails(Goal.VisitTimeOnSiteDetails visitTimeOnSiteDetails)
null.public String getWebPropertyId()
null.