Class: Google::Apis::CloudsearchV1::YoutubeMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::YoutubeMetadata
- Includes:
- Google::Apis::Core::Hashable, Google::Apis::Core::JsonObjectSupport
- Defined in:
- lib/google/apis/cloudsearch_v1/classes.rb,
lib/google/apis/cloudsearch_v1/representations.rb,
lib/google/apis/cloudsearch_v1/representations.rb
Overview
Annotation metadata for YouTube artifact.
Instance Attribute Summary collapse
-
#id ⇒ String
YouTube resource ID of the artifact.
-
#should_not_render ⇒ Boolean
(also: #should_not_render?)
If this field is set to true, server should still contact external backends to get metadata for search but clients should not render this chip.
-
#start_time ⇒ Fixnum
YouTube query parameter for timestamp.
Instance Method Summary collapse
-
#initialize(**args) ⇒ YoutubeMetadata
constructor
A new instance of YoutubeMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ YoutubeMetadata
Returns a new instance of YoutubeMetadata.
22243 22244 22245 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22243 def initialize(**args) update!(**args) end |
Instance Attribute Details
#id ⇒ String
YouTube resource ID of the artifact.
Corresponds to the JSON property id
22227 22228 22229 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22227 def id @id end |
#should_not_render ⇒ Boolean Also known as: should_not_render?
If this field is set to true, server should still contact external backends to
get metadata for search but clients should not render this chip.
Corresponds to the JSON property shouldNotRender
22233 22234 22235 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22233 def should_not_render @should_not_render end |
#start_time ⇒ Fixnum
YouTube query parameter for timestamp. YouTube specific flag that allows users
to embed time token when sharing a link. This property contains parsed time
token in seconds.
Corresponds to the JSON property startTime
22241 22242 22243 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22241 def start_time @start_time end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
22248 22249 22250 22251 22252 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 22248 def update!(**args) @id = args[:id] if args.key?(:id) @should_not_render = args[:should_not_render] if args.key?(:should_not_render) @start_time = args[:start_time] if args.key?(:start_time) end |