class Google::Apis::CloudsearchV1::Interaction

Represents an interaction between a user and an item.

Attributes

interaction_time[RW]

The time when the user acted on the item. If multiple actions of the same type exist for a single user, only the most recent action is recorded. Corresponds to the JSON property `interactionTime` @return [String]

principal[RW]

Reference to a user, group, or domain. Corresponds to the JSON property `principal` @return [Google::Apis::CloudsearchV1::Principal]

type[RW]

Corresponds to the JSON property `type` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 1748
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 1753
def update!(**args)
  @interaction_time = args[:interaction_time] if args.key?(:interaction_time)
  @principal = args[:principal] if args.key?(:principal)
  @type = args[:type] if args.key?(:type)
end