Class: Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserEventInlineSource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/retail_v2alpha/classes.rb,
lib/google/apis/retail_v2alpha/representations.rb,
lib/google/apis/retail_v2alpha/representations.rb

Overview

The inline source for the input config for ImportUserEvents method.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudRetailV2alphaUserEventInlineSource

Returns a new instance of GoogleCloudRetailV2alphaUserEventInlineSource.



8626
8627
8628
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 8626

def initialize(**args)
   update!(**args)
end

Instance Attribute Details

#user_eventsArray<Google::Apis::RetailV2alpha::GoogleCloudRetailV2alphaUserEvent>

Required. A list of user events to import. Recommended max of 10k items. Corresponds to the JSON property userEvents



8624
8625
8626
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 8624

def user_events
  @user_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



8631
8632
8633
# File 'lib/google/apis/retail_v2alpha/classes.rb', line 8631

def update!(**args)
  @user_events = args[:user_events] if args.key?(:user_events)
end