Class: Google::Apis::CloudsearchV1::SessionEvent

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

Overview

A session event is something that happens to the streaming session in a conference.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ SessionEvent

Returns a new instance of SessionEvent.



17966
17967
17968
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17966

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

Instance Attribute Details

#device_idString

The initiator of the latest event of the streaming session. It will be set for all user events (type is 100-199) and unset for all server events(type is 200-299). Corresponds to the JSON property deviceId

Returns:

  • (String)


17959
17960
17961
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17959

def device_id
  @device_id
end

#typeString

The type of event. Corresponds to the JSON property type

Returns:

  • (String)


17964
17965
17966
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17964

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



17971
17972
17973
17974
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 17971

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