Class UserEvent
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite
-
- com.google.protobuf.AbstractMessage
-
- com.google.protobuf.GeneratedMessageV3
-
- com.google.cloud.recommendationengine.v1beta1.UserEvent
-
- All Implemented Interfaces:
UserEventOrBuilder
,com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,Serializable
public final class UserEvent extends com.google.protobuf.GeneratedMessageV3 implements UserEventOrBuilder
UserEvent captures all metadata information recommendation engine needs to know about how end users interact with customers' website.
Protobuf typegoogle.cloud.recommendationengine.v1beta1.UserEvent
- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
UserEvent.Builder
UserEvent captures all metadata information recommendation engine needs to know about how end users interact with customers' website.static class
UserEvent.EventSource
User event source.-
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 int
EVENT_DETAIL_FIELD_NUMBER
static int
EVENT_SOURCE_FIELD_NUMBER
static int
EVENT_TIME_FIELD_NUMBER
static int
EVENT_TYPE_FIELD_NUMBER
static int
PRODUCT_EVENT_DETAIL_FIELD_NUMBER
static int
USER_INFO_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object obj)
static UserEvent
getDefaultInstance()
UserEvent
getDefaultInstanceForType()
static com.google.protobuf.Descriptors.Descriptor
getDescriptor()
EventDetail
getEventDetail()
Optional.EventDetailOrBuilder
getEventDetailOrBuilder()
Optional.UserEvent.EventSource
getEventSource()
Optional.int
getEventSourceValue()
Optional.com.google.protobuf.Timestamp
getEventTime()
Optional.com.google.protobuf.TimestampOrBuilder
getEventTimeOrBuilder()
Optional.String
getEventType()
Required.com.google.protobuf.ByteString
getEventTypeBytes()
Required.com.google.protobuf.Parser<UserEvent>
getParserForType()
ProductEventDetail
getProductEventDetail()
Optional.ProductEventDetailOrBuilder
getProductEventDetailOrBuilder()
Optional.int
getSerializedSize()
UserInfo
getUserInfo()
Required.UserInfoOrBuilder
getUserInfoOrBuilder()
Required.boolean
hasEventDetail()
Optional.boolean
hasEventTime()
Optional.int
hashCode()
boolean
hasProductEventDetail()
Optional.boolean
hasUserInfo()
Required.protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable
internalGetFieldAccessorTable()
boolean
isInitialized()
static UserEvent.Builder
newBuilder()
static UserEvent.Builder
newBuilder(UserEvent prototype)
UserEvent.Builder
newBuilderForType()
protected UserEvent.Builder
newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
protected Object
newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
static UserEvent
parseDelimitedFrom(InputStream input)
static UserEvent
parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UserEvent
parseFrom(byte[] data)
static UserEvent
parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UserEvent
parseFrom(com.google.protobuf.ByteString data)
static UserEvent
parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UserEvent
parseFrom(com.google.protobuf.CodedInputStream input)
static UserEvent
parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UserEvent
parseFrom(InputStream input)
static UserEvent
parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static UserEvent
parseFrom(ByteBuffer data)
static UserEvent
parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)
static com.google.protobuf.Parser<UserEvent>
parser()
UserEvent.Builder
toBuilder()
void
writeTo(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
-
EVENT_TYPE_FIELD_NUMBER
public static final int EVENT_TYPE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
USER_INFO_FIELD_NUMBER
public static final int USER_INFO_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_DETAIL_FIELD_NUMBER
public static final int EVENT_DETAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PRODUCT_EVENT_DETAIL_FIELD_NUMBER
public static final int PRODUCT_EVENT_DETAIL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_TIME_FIELD_NUMBER
public static final int EVENT_TIME_FIELD_NUMBER
- See Also:
- Constant Field Values
-
EVENT_SOURCE_FIELD_NUMBER
public static final int EVENT_SOURCE_FIELD_NUMBER
- See Also:
- Constant Field Values
-
-
Method Detail
-
newInstance
protected Object newInstance(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
- Overrides:
newInstance
in classcom.google.protobuf.GeneratedMessageV3
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
-
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessageV3
-
getEventType
public String getEventType()
Required. User event type. Allowed values are: * `add-to-cart` Products being added to cart. * `add-to-list` Items being added to a list (shopping list, favorites etc). * `category-page-view` Special pages such as sale or promotion pages viewed. * `checkout-start` User starting a checkout process. * `detail-page-view` Products detail page viewed. * `home-page-view` Homepage viewed. * `page-visit` Generic page visits not included in the event types above. * `purchase-complete` User finishing a purchase. * `refund` Purchased items being refunded or returned. * `remove-from-cart` Products being removed from cart. * `remove-from-list` Items being removed from a list. * `search` Product search. * `shopping-cart-page-view` User viewing a shopping cart. * `impression` List of items displayed. Used by Google Tag Manager.
string event_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getEventType
in interfaceUserEventOrBuilder
- Returns:
- The eventType.
-
getEventTypeBytes
public com.google.protobuf.ByteString getEventTypeBytes()
Required. User event type. Allowed values are: * `add-to-cart` Products being added to cart. * `add-to-list` Items being added to a list (shopping list, favorites etc). * `category-page-view` Special pages such as sale or promotion pages viewed. * `checkout-start` User starting a checkout process. * `detail-page-view` Products detail page viewed. * `home-page-view` Homepage viewed. * `page-visit` Generic page visits not included in the event types above. * `purchase-complete` User finishing a purchase. * `refund` Purchased items being refunded or returned. * `remove-from-cart` Products being removed from cart. * `remove-from-list` Items being removed from a list. * `search` Product search. * `shopping-cart-page-view` User viewing a shopping cart. * `impression` List of items displayed. Used by Google Tag Manager.
string event_type = 1 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getEventTypeBytes
in interfaceUserEventOrBuilder
- Returns:
- The bytes for eventType.
-
hasUserInfo
public boolean hasUserInfo()
Required. User information.
.google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
hasUserInfo
in interfaceUserEventOrBuilder
- Returns:
- Whether the userInfo field is set.
-
getUserInfo
public UserInfo getUserInfo()
Required. User information.
.google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUserInfo
in interfaceUserEventOrBuilder
- Returns:
- The userInfo.
-
getUserInfoOrBuilder
public UserInfoOrBuilder getUserInfoOrBuilder()
Required. User information.
.google.cloud.recommendationengine.v1beta1.UserInfo user_info = 2 [(.google.api.field_behavior) = REQUIRED];
- Specified by:
getUserInfoOrBuilder
in interfaceUserEventOrBuilder
-
hasEventDetail
public boolean hasEventDetail()
Optional. User event detailed information common across different recommendation types.
.google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasEventDetail
in interfaceUserEventOrBuilder
- Returns:
- Whether the eventDetail field is set.
-
getEventDetail
public EventDetail getEventDetail()
Optional. User event detailed information common across different recommendation types.
.google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventDetail
in interfaceUserEventOrBuilder
- Returns:
- The eventDetail.
-
getEventDetailOrBuilder
public EventDetailOrBuilder getEventDetailOrBuilder()
Optional. User event detailed information common across different recommendation types.
.google.cloud.recommendationengine.v1beta1.EventDetail event_detail = 3 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventDetailOrBuilder
in interfaceUserEventOrBuilder
-
hasProductEventDetail
public boolean hasProductEventDetail()
Optional. Retail product specific user event metadata. This field is required for the following event types: * `add-to-cart` * `add-to-list` * `category-page-view` * `checkout-start` * `detail-page-view` * `purchase-complete` * `refund` * `remove-from-cart` * `remove-from-list` * `search` This field is optional for the following event types: * `page-visit` * `shopping-cart-page-view` - note that 'product_event_detail' should be set for this unless the shopping cart is empty. This field is not allowed for the following event types: * `home-page-view`
.google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasProductEventDetail
in interfaceUserEventOrBuilder
- Returns:
- Whether the productEventDetail field is set.
-
getProductEventDetail
public ProductEventDetail getProductEventDetail()
Optional. Retail product specific user event metadata. This field is required for the following event types: * `add-to-cart` * `add-to-list` * `category-page-view` * `checkout-start` * `detail-page-view` * `purchase-complete` * `refund` * `remove-from-cart` * `remove-from-list` * `search` This field is optional for the following event types: * `page-visit` * `shopping-cart-page-view` - note that 'product_event_detail' should be set for this unless the shopping cart is empty. This field is not allowed for the following event types: * `home-page-view`
.google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getProductEventDetail
in interfaceUserEventOrBuilder
- Returns:
- The productEventDetail.
-
getProductEventDetailOrBuilder
public ProductEventDetailOrBuilder getProductEventDetailOrBuilder()
Optional. Retail product specific user event metadata. This field is required for the following event types: * `add-to-cart` * `add-to-list` * `category-page-view` * `checkout-start` * `detail-page-view` * `purchase-complete` * `refund` * `remove-from-cart` * `remove-from-list` * `search` This field is optional for the following event types: * `page-visit` * `shopping-cart-page-view` - note that 'product_event_detail' should be set for this unless the shopping cart is empty. This field is not allowed for the following event types: * `home-page-view`
.google.cloud.recommendationengine.v1beta1.ProductEventDetail product_event_detail = 4 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getProductEventDetailOrBuilder
in interfaceUserEventOrBuilder
-
hasEventTime
public boolean hasEventTime()
Optional. Only required for ImportUserEvents method. Timestamp of user event created.
.google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
hasEventTime
in interfaceUserEventOrBuilder
- Returns:
- Whether the eventTime field is set.
-
getEventTime
public com.google.protobuf.Timestamp getEventTime()
Optional. Only required for ImportUserEvents method. Timestamp of user event created.
.google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventTime
in interfaceUserEventOrBuilder
- Returns:
- The eventTime.
-
getEventTimeOrBuilder
public com.google.protobuf.TimestampOrBuilder getEventTimeOrBuilder()
Optional. Only required for ImportUserEvents method. Timestamp of user event created.
.google.protobuf.Timestamp event_time = 5 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventTimeOrBuilder
in interfaceUserEventOrBuilder
-
getEventSourceValue
public int getEventSourceValue()
Optional. This field should *not* be set when using JavaScript pixel or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventSourceValue
in interfaceUserEventOrBuilder
- Returns:
- The enum numeric value on the wire for eventSource.
-
getEventSource
public UserEvent.EventSource getEventSource()
Optional. This field should *not* be set when using JavaScript pixel or the Recommendations AI Tag. Defaults to `EVENT_SOURCE_UNSPECIFIED`.
.google.cloud.recommendationengine.v1beta1.UserEvent.EventSource event_source = 6 [(.google.api.field_behavior) = OPTIONAL];
- Specified by:
getEventSource
in interfaceUserEventOrBuilder
- Returns:
- The eventSource.
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessageV3
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws IOException
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessageV3
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessageV3
-
equals
public boolean equals(Object obj)
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static UserEvent parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserEvent parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserEvent parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserEvent parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserEvent parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserEvent parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static UserEvent parseFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static UserEvent parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static UserEvent parseDelimitedFrom(InputStream input) throws IOException
- Throws:
IOException
-
parseDelimitedFrom
public static UserEvent parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
parseFrom
public static UserEvent parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
- Throws:
IOException
-
parseFrom
public static UserEvent parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
- Throws:
IOException
-
newBuilderForType
public UserEvent.Builder newBuilderForType()
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
public static UserEvent.Builder newBuilder()
-
newBuilder
public static UserEvent.Builder newBuilder(UserEvent prototype)
-
toBuilder
public UserEvent.Builder toBuilder()
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected UserEvent.Builder newBuilderForType(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
- Specified by:
newBuilderForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstance
public static UserEvent getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<UserEvent> parser()
-
getParserForType
public com.google.protobuf.Parser<UserEvent> getParserForType()
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessageV3
-
getDefaultInstanceForType
public UserEvent getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-
-