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.



16017
16018
16019
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16017

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)


16010
16011
16012
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16010

def device_id
  @device_id
end

#typeString

The type of event. Corresponds to the JSON property type

Returns:

  • (String)


16015
16016
16017
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16015

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



16022
16023
16024
16025
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 16022

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