Class: Google::Apis::VideointelligenceV1p3beta1::GoogleCloudVideointelligenceV1p2beta1VideoSegment

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

Overview

Video segment.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1p2beta1VideoSegment

Returns a new instance of GoogleCloudVideointelligenceV1p2beta1VideoSegment.



4531
4532
4533
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4531

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

Instance Attribute Details

#end_time_offsetString

Time-offset, relative to the beginning of the video, corresponding to the end of the segment (inclusive). Corresponds to the JSON property endTimeOffset

Returns:

  • (String)


4523
4524
4525
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4523

def end_time_offset
  @end_time_offset
end

#start_time_offsetString

Time-offset, relative to the beginning of the video, corresponding to the start of the segment (inclusive). Corresponds to the JSON property startTimeOffset

Returns:

  • (String)


4529
4530
4531
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4529

def start_time_offset
  @start_time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4536
4537
4538
4539
# File 'lib/google/apis/videointelligence_v1p3beta1/classes.rb', line 4536

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