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.



6471
6472
6473
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6471

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)


6439
6440
6441
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6439

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)


6444
6445
6446
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6444

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



6449
6450
6451
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6449

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)


6454
6455
6456
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6454

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)


6459
6460
6461
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6459

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)


6464
6465
6466
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6464

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)


6469
6470
6471
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6469

def project_number
  @project_number
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



6476
6477
6478
6479
6480
6481
6482
6483
6484
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 6476

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