Class: Google::Apis::DatalabelingV1beta1::GoogleCloudDatalabelingV1beta1VideoThumbnail

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

Container of information of a video thumbnail.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDatalabelingV1beta1VideoThumbnail

Returns a new instance of GoogleCloudDatalabelingV1beta1VideoThumbnail.



4622
4623
4624
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4622

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

Instance Attribute Details

#thumbnailString

A byte string of the video frame. Corresponds to the JSON property thumbnail NOTE: Values are automatically base64 encoded/decoded in the client library.

Returns:

  • (String)


4614
4615
4616
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4614

def thumbnail
  @thumbnail
end

#time_offsetString

Time offset relative to the beginning of the video, corresponding to the video frame where the thumbnail has been extracted from. Corresponds to the JSON property timeOffset

Returns:

  • (String)


4620
4621
4622
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4620

def time_offset
  @time_offset
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



4627
4628
4629
4630
# File 'lib/google/apis/datalabeling_v1beta1/classes.rb', line 4627

def update!(**args)
  @thumbnail = args[:thumbnail] if args.key?(:thumbnail)
  @time_offset = args[:time_offset] if args.key?(:time_offset)
end