public final class GoogleCloudDiscoveryengineV1UserEvent
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 Discovery Engine API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
GoogleCloudDiscoveryengineV1UserEvent() |
| Modifier and Type | Method and Description |
|---|---|
GoogleCloudDiscoveryengineV1UserEvent |
clone() |
Map<String,GoogleCloudDiscoveryengineV1CustomAttribute> |
getAttributes()
Extra user event features to include in the recommendation model.
|
String |
getAttributionToken()
Token to attribute an API response to user action(s) to trigger the event.
|
GoogleCloudDiscoveryengineV1CompletionInfo |
getCompletionInfo()
CompletionService.CompleteQuery details related to the event.
|
String |
getConversionType()
Optional.
|
String |
getDataStore()
The DataStore resource full name, of the form `projects/{project}/locations/{location}/collecti
ons/{collection_id}/dataStores/{data_store_id}`.
|
Boolean |
getDirectUserRequest()
Should set to true if the request is made directly from the end user, in which case the
UserEvent.user_info.user_agent can be populated from the HTTP request.
|
List<GoogleCloudDiscoveryengineV1DocumentInfo> |
getDocuments()
List of Documents associated with this user event.
|
String |
getEngine()
The Engine resource name, in the form of
`projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
|
String |
getEntity()
Optional.
|
String |
getEventTime()
Only required for UserEventService.ImportUserEvents method.
|
String |
getEventType()
Required.
|
String |
getFilter()
Optional.
|
GoogleCloudDiscoveryengineV1MediaInfo |
getMediaInfo()
Media-specific info.
|
GoogleCloudDiscoveryengineV1PageInfo |
getPageInfo()
Page metadata such as categories and other critical information for certain event types such as
`view-category-page`.
|
GoogleCloudDiscoveryengineV1PanelInfo |
getPanel()
Panel metadata associated with this user event.
|
List<GoogleCloudDiscoveryengineV1PanelInfo> |
getPanels()
Optional.
|
List<String> |
getPromotionIds()
The promotion IDs if this is an event associated with promotions.
|
GoogleCloudDiscoveryengineV1SearchInfo |
getSearchInfo()
SearchService.Search details related to the event.
|
String |
getSessionId()
A unique identifier for tracking a visitor session with a length limit of 128 bytes.
|
List<String> |
getTagIds()
A list of identifiers for the independent experiment groups this user event belongs to.
|
GoogleCloudDiscoveryengineV1TransactionInfo |
getTransactionInfo()
The transaction metadata (if any) associated with this user event.
|
GoogleCloudDiscoveryengineV1UserInfo |
getUserInfo()
Information about the end user.
|
String |
getUserPseudoId()
Required.
|
GoogleCloudDiscoveryengineV1UserEvent |
set(String fieldName,
Object value) |
GoogleCloudDiscoveryengineV1UserEvent |
setAttributes(Map<String,GoogleCloudDiscoveryengineV1CustomAttribute> attributes)
Extra user event features to include in the recommendation model.
|
GoogleCloudDiscoveryengineV1UserEvent |
setAttributionToken(String attributionToken)
Token to attribute an API response to user action(s) to trigger the event.
|
GoogleCloudDiscoveryengineV1UserEvent |
setCompletionInfo(GoogleCloudDiscoveryengineV1CompletionInfo completionInfo)
CompletionService.CompleteQuery details related to the event.
|
GoogleCloudDiscoveryengineV1UserEvent |
setConversionType(String conversionType)
Optional.
|
GoogleCloudDiscoveryengineV1UserEvent |
setDataStore(String dataStore)
The DataStore resource full name, of the form `projects/{project}/locations/{location}/collecti
ons/{collection_id}/dataStores/{data_store_id}`.
|
GoogleCloudDiscoveryengineV1UserEvent |
setDirectUserRequest(Boolean directUserRequest)
Should set to true if the request is made directly from the end user, in which case the
UserEvent.user_info.user_agent can be populated from the HTTP request.
|
GoogleCloudDiscoveryengineV1UserEvent |
setDocuments(List<GoogleCloudDiscoveryengineV1DocumentInfo> documents)
List of Documents associated with this user event.
|
GoogleCloudDiscoveryengineV1UserEvent |
setEngine(String engine)
The Engine resource name, in the form of
`projects/{project}/locations/{location}/collections/{collection_id}/engines/{engine_id}`.
|
GoogleCloudDiscoveryengineV1UserEvent |
setEntity(String entity)
Optional.
|
GoogleCloudDiscoveryengineV1UserEvent |
setEventTime(String eventTime)
Only required for UserEventService.ImportUserEvents method.
|
GoogleCloudDiscoveryengineV1UserEvent |
setEventType(String eventType)
Required.
|
GoogleCloudDiscoveryengineV1UserEvent |
setFilter(String filter)
Optional.
|
GoogleCloudDiscoveryengineV1UserEvent |
setMediaInfo(GoogleCloudDiscoveryengineV1MediaInfo mediaInfo)
Media-specific info.
|
GoogleCloudDiscoveryengineV1UserEvent |
setPageInfo(GoogleCloudDiscoveryengineV1PageInfo pageInfo)
Page metadata such as categories and other critical information for certain event types such as
`view-category-page`.
|
GoogleCloudDiscoveryengineV1UserEvent |
setPanel(GoogleCloudDiscoveryengineV1PanelInfo panel)
Panel metadata associated with this user event.
|
GoogleCloudDiscoveryengineV1UserEvent |
setPanels(List<GoogleCloudDiscoveryengineV1PanelInfo> panels)
Optional.
|
GoogleCloudDiscoveryengineV1UserEvent |
setPromotionIds(List<String> promotionIds)
The promotion IDs if this is an event associated with promotions.
|
GoogleCloudDiscoveryengineV1UserEvent |
setSearchInfo(GoogleCloudDiscoveryengineV1SearchInfo searchInfo)
SearchService.Search details related to the event.
|
GoogleCloudDiscoveryengineV1UserEvent |
setSessionId(String sessionId)
A unique identifier for tracking a visitor session with a length limit of 128 bytes.
|
GoogleCloudDiscoveryengineV1UserEvent |
setTagIds(List<String> tagIds)
A list of identifiers for the independent experiment groups this user event belongs to.
|
GoogleCloudDiscoveryengineV1UserEvent |
setTransactionInfo(GoogleCloudDiscoveryengineV1TransactionInfo transactionInfo)
The transaction metadata (if any) associated with this user event.
|
GoogleCloudDiscoveryengineV1UserEvent |
setUserInfo(GoogleCloudDiscoveryengineV1UserInfo userInfo)
Information about the end user.
|
GoogleCloudDiscoveryengineV1UserEvent |
setUserPseudoId(String userPseudoId)
Required.
|
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 GoogleCloudDiscoveryengineV1UserEvent()
public Map<String,GoogleCloudDiscoveryengineV1CustomAttribute> getAttributes()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setAttributes(Map<String,GoogleCloudDiscoveryengineV1CustomAttribute> attributes)
attributes - attributes or null for nonepublic String getAttributionToken()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setAttributionToken(String attributionToken)
attributionToken - attributionToken or null for nonepublic GoogleCloudDiscoveryengineV1CompletionInfo getCompletionInfo()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setCompletionInfo(GoogleCloudDiscoveryengineV1CompletionInfo completionInfo)
completionInfo - completionInfo or null for nonepublic String getConversionType()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setConversionType(String conversionType)
conversionType - conversionType or null for nonepublic String getDataStore()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setDataStore(String dataStore)
dataStore - dataStore or null for nonepublic Boolean getDirectUserRequest()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setDirectUserRequest(Boolean directUserRequest)
directUserRequest - directUserRequest or null for nonepublic List<GoogleCloudDiscoveryengineV1DocumentInfo> getDocuments()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setDocuments(List<GoogleCloudDiscoveryengineV1DocumentInfo> documents)
documents - documents or null for nonepublic String getEngine()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setEngine(String engine)
engine - engine or null for nonepublic String getEntity()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setEntity(String entity)
entity - entity or null for nonepublic String getEventTime()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setEventTime(String eventTime)
eventTime - eventTime or null for nonepublic String getEventType()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setEventType(String eventType)
eventType - eventType or null for nonepublic String getFilter()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setFilter(String filter)
filter - filter or null for nonepublic GoogleCloudDiscoveryengineV1MediaInfo getMediaInfo()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setMediaInfo(GoogleCloudDiscoveryengineV1MediaInfo mediaInfo)
mediaInfo - mediaInfo or null for nonepublic GoogleCloudDiscoveryengineV1PageInfo getPageInfo()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setPageInfo(GoogleCloudDiscoveryengineV1PageInfo pageInfo)
pageInfo - pageInfo or null for nonepublic GoogleCloudDiscoveryengineV1PanelInfo getPanel()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setPanel(GoogleCloudDiscoveryengineV1PanelInfo panel)
panel - panel or null for nonepublic List<GoogleCloudDiscoveryengineV1PanelInfo> getPanels()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setPanels(List<GoogleCloudDiscoveryengineV1PanelInfo> panels)
panels - panels or null for nonepublic List<String> getPromotionIds()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setPromotionIds(List<String> promotionIds)
promotionIds - promotionIds or null for nonepublic GoogleCloudDiscoveryengineV1SearchInfo getSearchInfo()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setSearchInfo(GoogleCloudDiscoveryengineV1SearchInfo searchInfo)
searchInfo - searchInfo or null for nonepublic String getSessionId()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setSessionId(String sessionId)
sessionId - sessionId or null for nonepublic List<String> getTagIds()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setTagIds(List<String> tagIds)
tagIds - tagIds or null for nonepublic GoogleCloudDiscoveryengineV1TransactionInfo getTransactionInfo()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setTransactionInfo(GoogleCloudDiscoveryengineV1TransactionInfo transactionInfo)
transactionInfo - transactionInfo or null for nonepublic GoogleCloudDiscoveryengineV1UserInfo getUserInfo()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setUserInfo(GoogleCloudDiscoveryengineV1UserInfo userInfo)
userInfo - userInfo or null for nonepublic String getUserPseudoId()
null for nonepublic GoogleCloudDiscoveryengineV1UserEvent setUserPseudoId(String userPseudoId)
userPseudoId - userPseudoId or null for nonepublic GoogleCloudDiscoveryengineV1UserEvent set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic GoogleCloudDiscoveryengineV1UserEvent clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.