Class: Google::Apis::VideointelligenceV1beta1::GoogleCloudVideointelligenceV1beta1VideoSegment

Inherits:
Object
  • Object
show all
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

Instance Method Summary collapse

Methods included from Core::JsonObjectSupport

#to_json

Methods included from Core::Hashable

process_value, #to_h

Constructor Details

#initialize(**args) ⇒ GoogleCloudVideointelligenceV1beta1VideoSegment

Returns a new instance of GoogleCloudVideointelligenceV1beta1VideoSegment



820
821
822
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 820

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

Instance Attribute Details

#end_time_offsetFixnum

End offset in microseconds (inclusive). Unset means 0. Corresponds to the JSON property endTimeOffset

Returns:

  • (Fixnum)


813
814
815
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 813

def end_time_offset
  @end_time_offset
end

#start_time_offsetFixnum

Start offset in microseconds (inclusive). Unset means 0. Corresponds to the JSON property startTimeOffset

Returns:

  • (Fixnum)


818
819
820
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 818

def start_time_offset
  @start_time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



825
826
827
828
# File 'generated/google/apis/videointelligence_v1beta1/classes.rb', line 825

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