Class: Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1p2beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- lib/google/apis/videointelligence_v1p2beta1/classes.rb,
lib/google/apis/videointelligence_v1p2beta1/representations.rb,
lib/google/apis/videointelligence_v1p2beta1/representations.rb
Overview
Video segment.
Instance Attribute Summary collapse
-
#end_time_offset ⇒ String
Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive).
-
#start_time_offset ⇒ String
Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1VideoSegment
constructor
A new instance of GoogleCloudVideointelligenceV1p2beta1VideoSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1VideoSegment
Returns a new instance of GoogleCloudVideointelligenceV1p2beta1VideoSegment.
5004 5005 5006 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5004 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time_offset ⇒ String
Time-offset, relative to the beginning of the video, corresponding to the end
of the segment (inclusive).
Corresponds to the JSON property endTimeOffset
4996 4997 4998 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 4996 def end_time_offset @end_time_offset end |
#start_time_offset ⇒ String
Time-offset, relative to the beginning of the video, corresponding to the
start of the segment (inclusive).
Corresponds to the JSON property startTimeOffset
5002 5003 5004 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5002 def start_time_offset @start_time_offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
5009 5010 5011 5012 |
# File 'lib/google/apis/videointelligence_v1p2beta1/classes.rb', line 5009 def update!(**args) @end_time_offset = args[:end_time_offset] if args.key?(:end_time_offset) @start_time_offset = args[:start_time_offset] if args.key?(:start_time_offset) end |