Class: Google::Apis::DiscoveryengineV1beta::GoogleCloudDiscoveryengineV1betaMediaInfo

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1beta/classes.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb,
lib/google/apis/discoveryengine_v1beta/representations.rb

Overview

Media-specific user event information.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1betaMediaInfo

Returns a new instance of GoogleCloudDiscoveryengineV1betaMediaInfo.



1594
1595
1596
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1594

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

Instance Attribute Details

#media_progress_durationString

The media progress time in seconds, if applicable. For example, if the end user has finished 90 seconds of a playback video, then MediaInfo. media_progress_duration.seconds should be set to 90. Corresponds to the JSON property mediaProgressDuration

Returns:

  • (String)


1584
1585
1586
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1584

def media_progress_duration
  @media_progress_duration
end

#media_progress_percentageFloat

Media progress should be computed using only the media_progress_duration relative to the media total length. This value must be between [0, 1.0] inclusive. If this is not a playback or the progress cannot be computed (e.g. ongoing livestream), this field should be unset. Corresponds to the JSON property mediaProgressPercentage

Returns:

  • (Float)


1592
1593
1594
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1592

def media_progress_percentage
  @media_progress_percentage
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1599
1600
1601
1602
# File 'lib/google/apis/discoveryengine_v1beta/classes.rb', line 1599

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