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.



18575
18576
18577
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18575

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)


18568
18569
18570
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18568

def device_id
  @device_id
end

#typeString

The type of event. Corresponds to the JSON property type

Returns:

  • (String)


18573
18574
18575
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18573

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18580
18581
18582
18583
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18580

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