Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1TimeSegment

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

Overview

A time period inside of an example that has a time dimension (e.g. video).

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1TimeSegment

Returns a new instance of GoogleCloudDatalabelingV1beta1TimeSegment.



4403
4404
4405
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4403

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

Instance Attribute Details

#end_time_offsetString

End of the time segment (exclusive), represented as the duration since the example start. Corresponds to the JSON property endTimeOffset

Returns:

  • (String)


4395
4396
4397
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4395

def end_time_offset
  @end_time_offset
end

#start_time_offsetString

Start of the time segment (inclusive), represented as the duration since the example start. Corresponds to the JSON property startTimeOffset

Returns:

  • (String)


4401
4402
4403
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4401

def start_time_offset
  @start_time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4408
4409
4410
4411
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4408

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