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: https://developers.google.com/api-client-library/java/google-http-java-client/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.
|
GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Goal() |
| Modifier and Type | Method and Description |
|---|---|
Goal |
clone() |
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()
View (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 |
set(String fieldName,
Object value) |
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)
View (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.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAccountId()
null for nonepublic Goal setAccountId(String accountId)
accountId - accountId or null for nonepublic Boolean getActive()
null for nonepublic Goal setActive(Boolean active)
active - active or null for nonepublic DateTime getCreated()
null for nonepublic Goal setCreated(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 String getId()
null for nonepublic String getInternalWebPropertyId()
null for nonepublic Goal setInternalWebPropertyId(String internalWebPropertyId)
internalWebPropertyId - internalWebPropertyId or null for nonepublic String getKind()
null for nonepublic Goal setKind(String kind)
kind - kind or null for nonepublic String getName()
null for nonepublic Goal.ParentLink getParentLink()
null for nonepublic Goal setParentLink(Goal.ParentLink parentLink)
parentLink - parentLink or null for nonepublic String getProfileId()
null for nonepublic Goal setProfileId(String profileId)
profileId - profileId or null for nonepublic String getSelfLink()
null for nonepublic Goal setSelfLink(String selfLink)
selfLink - selfLink or null for nonepublic String getType()
null for nonepublic Goal setType(String type)
type - type or null for nonepublic DateTime getUpdated()
null for nonepublic Goal setUpdated(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 Float getValue()
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 String getWebPropertyId()
null for nonepublic Goal setWebPropertyId(String webPropertyId)
webPropertyId - webPropertyId or null for nonepublic Goal set(String fieldName, Object value)
set in class GenericJsonpublic Goal clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.