Class EventDetail
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.recommendationengine.v1beta1.EventDetail
-
- All Implemented Interfaces:
EventDetailOrBuilder,com.google.protobuf.Message,com.google.protobuf.MessageLite,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Serializable
public final class EventDetail extends com.google.protobuf.GeneratedMessageV3 implements EventDetailOrBuilder
User event details shared by all recommendation types.
Protobuf typegoogle.cloud.recommendationengine.v1beta1.EventDetail- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classEventDetail.BuilderUser event details shared by all recommendation types.-
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessageV3
com.google.protobuf.GeneratedMessageV3.BuilderParent, com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessageV3.ExtendableBuilder<MessageT,BuilderT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessageV3.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessageV3.FieldAccessorTable, com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intEVENT_ATTRIBUTES_FIELD_NUMBERstatic intEXPERIMENT_IDS_FIELD_NUMBERstatic intPAGE_VIEW_ID_FIELD_NUMBERstatic intRECOMMENDATION_TOKEN_FIELD_NUMBERstatic intREFERRER_URI_FIELD_NUMBERstatic intURI_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object obj)static EventDetailgetDefaultInstance()EventDetailgetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()FeatureMapgetEventAttributes()Optional.FeatureMapOrBuildergetEventAttributesOrBuilder()Optional.StringgetExperimentIds(int index)Optional.com.google.protobuf.ByteStringgetExperimentIdsBytes(int index)Optional.intgetExperimentIdsCount()Optional.com.google.protobuf.ProtocolStringListgetExperimentIdsList()Optional.StringgetPageViewId()Optional.com.google.protobuf.ByteStringgetPageViewIdBytes()Optional.com.google.protobuf.Parser<EventDetail>getParserForType()StringgetRecommendationToken()Optional.com.google.protobuf.ByteStringgetRecommendationTokenBytes()Optional.StringgetReferrerUri()Optional.com.google.protobuf.ByteStringgetReferrerUriBytes()Optional.intgetSerializedSize()StringgetUri()Optional.com.google.protobuf.ByteStringgetUriBytes()Optional.booleanhasEventAttributes()Optional.inthashCode()protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static EventDetail.BuildernewBuilder()static EventDetail.BuildernewBuilder(EventDetail prototype)EventDetail.BuildernewBuilderForType()protected EventDetail.BuildernewBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)protected ObjectnewInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)static EventDetailparseDelimitedFrom(InputStream input)static EventDetailparseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventDetailparseFrom(byte[] data)static EventDetailparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventDetailparseFrom(com.google.protobuf.ByteString data)static EventDetailparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventDetailparseFrom(com.google.protobuf.CodedInputStream input)static EventDetailparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventDetailparseFrom(InputStream input)static EventDetailparseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static EventDetailparseFrom(ByteBuffer data)static EventDetailparseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<EventDetail>parser()EventDetail.BuildertoBuilder()voidwriteTo(com.google.protobuf.CodedOutputStream output)-
Methods inherited from class com.google.protobuf.GeneratedMessageV3
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, mergeFromAndMakeImmutableInternal, mutableCopy, mutableCopy, mutableCopy, mutableCopy, mutableCopy, newBooleanList, newBuilderForType, newDoubleList, newFloatList, newIntList, newLongList, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
-
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashBoolean, hashEnum, hashEnumList, hashFields, hashLong, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
-
-
-
Field Detail
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
REFERRER_URI_FIELD_NUMBER
public static final int REFERRER_URI_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PAGE_VIEW_ID_FIELD_NUMBER
public static final int PAGE_VIEW_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EXPERIMENT_IDS_FIELD_NUMBER
public static final int EXPERIMENT_IDS_FIELD_NUMBER
- See Also:
- Constant Field Values
-
RECOMMENDATION_TOKEN_FIELD_NUMBER
public static final int RECOMMENDATION_TOKEN_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_ATTRIBUTES_FIELD_NUMBER
public static final int EVENT_ATTRIBUTES_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstancein classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessageV3
-
getUri
public String getUri()
Optional. Complete url (window.location.href) of the user's current page. When using the JavaScript pixel, this value is filled in automatically. Maximum length 5KB.
string uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUriin interfaceEventDetailOrBuilder- Returns:
- The uri.
-
getUriBytes
public com.google.protobuf.ByteString getUriBytes()
Optional. Complete url (window.location.href) of the user's current page. When using the JavaScript pixel, this value is filled in automatically. Maximum length 5KB.
string uri = 1 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getUriBytesin interfaceEventDetailOrBuilder- Returns:
- The bytes for uri.
-
getReferrerUri
public String getReferrerUri()
Optional. The referrer url of the current page. When using the JavaScript pixel, this value is filled in automatically.
string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReferrerUriin interfaceEventDetailOrBuilder- Returns:
- The referrerUri.
-
getReferrerUriBytes
public com.google.protobuf.ByteString getReferrerUriBytes()
Optional. The referrer url of the current page. When using the JavaScript pixel, this value is filled in automatically.
string referrer_uri = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getReferrerUriBytesin interfaceEventDetailOrBuilder- Returns:
- The bytes for referrerUri.
-
getPageViewId
public String getPageViewId()
Optional. A unique id of a web page view. This should be kept the same for all user events triggered from the same pageview. For example, an item detail page view could trigger multiple events as the user is browsing the page. The `pageViewId` property should be kept the same for all these events so that they can be grouped together properly. This `pageViewId` will be automatically generated if using the JavaScript pixel.
string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageViewIdin interfaceEventDetailOrBuilder- Returns:
- The pageViewId.
-
getPageViewIdBytes
public com.google.protobuf.ByteString getPageViewIdBytes()
Optional. A unique id of a web page view. This should be kept the same for all user events triggered from the same pageview. For example, an item detail page view could trigger multiple events as the user is browsing the page. The `pageViewId` property should be kept the same for all these events so that they can be grouped together properly. This `pageViewId` will be automatically generated if using the JavaScript pixel.
string page_view_id = 2 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getPageViewIdBytesin interfaceEventDetailOrBuilder- Returns:
- The bytes for pageViewId.
-
getExperimentIdsList
public com.google.protobuf.ProtocolStringList getExperimentIdsList()
Optional. A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups (e.g. using Recommendation Engine system, using different recommendation models).
repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExperimentIdsListin interfaceEventDetailOrBuilder- Returns:
- A list containing the experimentIds.
-
getExperimentIdsCount
public int getExperimentIdsCount()
Optional. A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups (e.g. using Recommendation Engine system, using different recommendation models).
repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExperimentIdsCountin interfaceEventDetailOrBuilder- Returns:
- The count of experimentIds.
-
getExperimentIds
public String getExperimentIds(int index)
Optional. A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups (e.g. using Recommendation Engine system, using different recommendation models).
repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExperimentIdsin interfaceEventDetailOrBuilder- Parameters:
index- The index of the element to return.- Returns:
- The experimentIds at the given index.
-
getExperimentIdsBytes
public com.google.protobuf.ByteString getExperimentIdsBytes(int index)
Optional. A list of identifiers for the independent experiment groups this user event belongs to. This is used to distinguish between user events associated with different experiment setups (e.g. using Recommendation Engine system, using different recommendation models).
repeated string experiment_ids = 3 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getExperimentIdsBytesin interfaceEventDetailOrBuilder- Parameters:
index- The index of the value to return.- Returns:
- The bytes of the experimentIds at the given index.
-
getRecommendationToken
public String getRecommendationToken()
Optional. Recommendation token included in the recommendation prediction response. This field enables accurate attribution of recommendation model performance. This token enables us to accurately attribute page view or purchase back to the event and the particular predict response containing this clicked/purchased item. If user clicks on product K in the recommendation results, pass the `PredictResponse.recommendationToken` property as a url parameter to product K's page. When recording events on product K's page, log the PredictResponse.recommendation_token to this field. Optional, but highly encouraged for user events that are the result of a recommendation prediction query.
string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRecommendationTokenin interfaceEventDetailOrBuilder- Returns:
- The recommendationToken.
-
getRecommendationTokenBytes
public com.google.protobuf.ByteString getRecommendationTokenBytes()
Optional. Recommendation token included in the recommendation prediction response. This field enables accurate attribution of recommendation model performance. This token enables us to accurately attribute page view or purchase back to the event and the particular predict response containing this clicked/purchased item. If user clicks on product K in the recommendation results, pass the `PredictResponse.recommendationToken` property as a url parameter to product K's page. When recording events on product K's page, log the PredictResponse.recommendation_token to this field. Optional, but highly encouraged for user events that are the result of a recommendation prediction query.
string recommendation_token = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRecommendationTokenBytesin interfaceEventDetailOrBuilder- Returns:
- The bytes for recommendationToken.
-
hasEventAttributes
public boolean hasEventAttributes()
Optional. Extra user event features to include in the recommendation model. For product recommendation, an example of extra user information is traffic_channel, i.e. how user arrives at the site. Users can arrive at the site by coming to the site directly, or coming through Google search, and etc.
.google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasEventAttributesin interfaceEventDetailOrBuilder- Returns:
- Whether the eventAttributes field is set.
-
getEventAttributes
public FeatureMap getEventAttributes()
Optional. Extra user event features to include in the recommendation model. For product recommendation, an example of extra user information is traffic_channel, i.e. how user arrives at the site. Users can arrive at the site by coming to the site directly, or coming through Google search, and etc.
.google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventAttributesin interfaceEventDetailOrBuilder- Returns:
- The eventAttributes.
-
getEventAttributesOrBuilder
public FeatureMapOrBuilder getEventAttributesOrBuilder()
Optional. Extra user event features to include in the recommendation model. For product recommendation, an example of extra user information is traffic_channel, i.e. how user arrives at the site. Users can arrive at the site by coming to the site directly, or coming through Google search, and etc.
.google.cloud.recommendationengine.v1beta1.FeatureMap event_attributes = 5 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getEventAttributesOrBuilderin interfaceEventDetailOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessageV3- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static EventDetail parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventDetail parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventDetail parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventDetail parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventDetail parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventDetail parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static EventDetail parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EventDetail parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EventDetail parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static EventDetail parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static EventDetail parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static EventDetail parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public EventDetail.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static EventDetail.Builder newBuilder()
-
newBuilder
public static EventDetail.Builder newBuilder(EventDetail prototype)
-
toBuilder
public EventDetail.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EventDetail.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static EventDetail getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<EventDetail> parser()
-
getParserForType
public com.google.protobuf.Parser<EventDetail> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public EventDetail getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-