Class EventDetail
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
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
@Generated
public final class EventDetail
extends com.google.protobuf.GeneratedMessage
implements EventDetailOrBuilder
User event details shared by all recommendation types.Protobuf type
google.cloud.recommendationengine.v1beta1.EventDetail- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classUser event details shared by all recommendation types.Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParentNested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intstatic final intstatic final intstatic final intstatic final intstatic final intFields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, loggedPre22TypeNames, unknownFieldsFields inherited from class com.google.protobuf.AbstractMessage
memoizedSizeFields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode -
Method Summary
Modifier and TypeMethodDescriptionbooleanstatic EventDetailstatic final com.google.protobuf.Descriptors.DescriptorOptional.Optional.getExperimentIds(int index) Optional.com.google.protobuf.ByteStringgetExperimentIdsBytes(int index) Optional.intOptional.com.google.protobuf.ProtocolStringListOptional.Optional.com.google.protobuf.ByteStringOptional.com.google.protobuf.Parser<EventDetail>Optional.com.google.protobuf.ByteStringOptional.Optional.com.google.protobuf.ByteStringOptional.intgetUri()Optional.com.google.protobuf.ByteStringOptional.booleanOptional.inthashCode()protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanstatic EventDetail.Builderstatic EventDetail.BuildernewBuilder(EventDetail prototype) protected EventDetail.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) 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()voidwriteTo(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeExtensionsImmutable, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTagMethods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeToMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
URI_FIELD_NUMBER
public static final int URI_FIELD_NUMBER- See Also:
-
REFERRER_URI_FIELD_NUMBER
public static final int REFERRER_URI_FIELD_NUMBER- See Also:
-
PAGE_VIEW_ID_FIELD_NUMBER
public static final int PAGE_VIEW_ID_FIELD_NUMBER- See Also:
-
EXPERIMENT_IDS_FIELD_NUMBER
public static final int EXPERIMENT_IDS_FIELD_NUMBER- See Also:
-
RECOMMENDATION_TOKEN_FIELD_NUMBER
public static final int RECOMMENDATION_TOKEN_FIELD_NUMBER- See Also:
-
EVENT_ATTRIBUTES_FIELD_NUMBER
public static final int EVENT_ATTRIBUTES_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
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
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
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
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
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
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
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.GeneratedMessage
-
writeTo
- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
- 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
- Throws:
IOException
-
parseFrom
public static EventDetail parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static EventDetail parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static EventDetail parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected EventDetail.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-