Class: Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEventInlineSource

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/recommendationengine_v1beta1/classes.rb,
lib/google/apis/recommendationengine_v1beta1/representations.rb,
lib/google/apis/recommendationengine_v1beta1/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) ⇒ GoogleCloudRecommendationengineV1beta1UserEventInlineSource

Returns a new instance of GoogleCloudRecommendationengineV1beta1UserEventInlineSource.



1725
1726
1727
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1725

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

Instance Attribute Details

#user_eventsArray<Google::Apis::RecommendationengineV1beta1::GoogleCloudRecommendationengineV1beta1UserEvent>

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



1723
1724
1725
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1723

def user_events
  @user_events
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1730
1731
1732
# File 'lib/google/apis/recommendationengine_v1beta1/classes.rb', line 1730

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