Class: Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment
- Inherits:
-
Object
- Object
- Google::Apis::VideointelligenceV1beta2::GoogleCloudVideointelligenceV1beta1VideoSegment
- Includes:
- Core::Hashable, Core::JsonObjectSupport
- Defined in:
- generated/google/apis/videointelligence_v1beta2/classes.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb,
generated/google/apis/videointelligence_v1beta2/representations.rb
Overview
Video segment.
Instance Attribute Summary collapse
-
#end_time_offset ⇒ Fixnum
End offset in microseconds (inclusive).
-
#start_time_offset ⇒ Fixnum
Start offset in microseconds (inclusive).
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1VideoSegment
constructor
A new instance of GoogleCloudVideointelligenceV1beta1VideoSegment.
-
#update!(**args) ⇒ Object
Update properties of this object.
Methods included from Core::JsonObjectSupport
Methods included from Core::Hashable
Constructor Details
#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1VideoSegment
Returns a new instance of GoogleCloudVideointelligenceV1beta1VideoSegment
696 697 698 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 696 def initialize(**args) update!(**args) end |
Instance Attribute Details
#end_time_offset ⇒ Fixnum
End offset in microseconds (inclusive). Unset means 0.
Corresponds to the JSON property endTimeOffset
689 690 691 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 689 def end_time_offset @end_time_offset end |
#start_time_offset ⇒ Fixnum
Start offset in microseconds (inclusive). Unset means 0.
Corresponds to the JSON property startTimeOffset
694 695 696 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 694 def start_time_offset @start_time_offset end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
701 702 703 704 |
# File 'generated/google/apis/videointelligence_v1beta2/classes.rb', line 701 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 |