Class: Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1MediaInfo
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1::GoogleCloudDiscoveryengineV1MediaInfo
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/discoveryengine_v1/classes.rb,
lib/google/apis/discoveryengine_v1/representations.rb,
lib/google/apis/discoveryengine_v1/representations.rb
Overview
Media-specific user event information.
Instance Attribute Summary collapse
-
#media_progress_duration ⇒ String
The media progress time in seconds, if applicable.
-
#media_progress_percentage ⇒ Float
Media progress should be computed using only the media_progress_duration relative to the media total length.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1MediaInfo
constructor
A new instance of GoogleCloudDiscoveryengineV1MediaInfo.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1MediaInfo
Returns a new instance of GoogleCloudDiscoveryengineV1MediaInfo.
5492 5493 5494 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5492 def initialize(**args) update!(**args) end |
Instance Attribute Details
#media_progress_duration ⇒ String
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
5482 5483 5484 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5482 def media_progress_duration @media_progress_duration end |
#media_progress_percentage ⇒ Float
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
5490 5491 5492 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5490 def media_progress_percentage @media_progress_percentage end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5497 5498 5499 5500 |
# File 'lib/google/apis/discoveryengine_v1/classes.rb', line 5497 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 |