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.



18737
18738
18739
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18737

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)


18730
18731
18732
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18730

def device_id
  @device_id
end

#typeString

The type of event. Corresponds to the JSON property type

Returns:

  • (String)


18735
18736
18737
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18735

def type
  @type
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



18742
18743
18744
18745
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 18742

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