Class: Google::Apis::CloudsearchV1::CoActivity

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

Metadata about a co-activity session.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ CoActivity

Returns a new instance of CoActivity.



6407
6408
6409
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6407

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

Instance Attribute Details

#activity_titleString

The title of the activity in this co-activity session. For example, this might be the title of the video being co-watched, or the name of the round of a game being co-played. Corresponds to the JSON property activityTitle

Returns:

  • (String)


6375
6376
6377
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6375

def activity_title
  @activity_title
end

#add_on_idString

The add-on id of the current add-on being used for co-activity. Corresponds to the JSON property addOnId

Returns:

  • (String)


6380
6381
6382
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6380

def add_on_id
  @add_on_id
end

#add_on_starting_stateGoogle::Apis::CloudsearchV1::AddOnStartingState

Starting state properties for add-on co-activity. Corresponds to the JSON property addOnStartingState



6385
6386
6387
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6385

def add_on_starting_state
  @add_on_starting_state
end

#co_activity_appString

Identifies the app handling this co-activity. Corresponds to the JSON property coActivityApp

Returns:

  • (String)


6390
6391
6392
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6390

def co_activity_app
  @co_activity_app
end

#initiator_device_idString

The resource name of the device that initiated the co-activity. Corresponds to the JSON property initiatorDeviceId

Returns:

  • (String)


6395
6396
6397
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6395

def initiator_device_id
  @initiator_device_id
end

#presentation_device_idString

The resource name of the device that is presenting the add-on. Corresponds to the JSON property presentationDeviceId

Returns:

  • (String)


6400
6401
6402
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6400

def presentation_device_id
  @presentation_device_id
end

#project_numberFixnum

The project number of the add-on to determine version. Corresponds to the JSON property projectNumber

Returns:

  • (Fixnum)


6405
6406
6407
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6405

def project_number
  @project_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6412
6413
6414
6415
6416
6417
6418
6419
6420
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6412

def update!(**args)
  @activity_title = args[:activity_title] if args.key?(:activity_title)
  @add_on_id = args[:add_on_id] if args.key?(:add_on_id)
  @add_on_starting_state = args[:add_on_starting_state] if args.key?(:add_on_starting_state)
  @co_activity_app = args[:co_activity_app] if args.key?(:co_activity_app)
  @initiator_device_id = args[:initiator_device_id] if args.key?(:initiator_device_id)
  @presentation_device_id = args[:presentation_device_id] if args.key?(:presentation_device_id)
  @project_number = args[:project_number] if args.key?(:project_number)
end