Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1VideoSegment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1beta1/classes.rb,
generated/google/apis/videointelligence_v1beta1/representations.rb,
generated/google/apis/videointelligence_v1beta1/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) ⇒ GoogleCloudVideointelligenceV1VideoSegment
constructor
A new instance of GoogleCloudVideointelligenceV1VideoSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1VideoSegment
Returns a new instance of GoogleCloudVideointelligenceV1VideoSegment
392 393 394 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 392 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
384 385 386 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 384 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
390 391 392 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 390 def start_time_offset @start_time_offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
397 398 399 400 |
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 397 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 |