Class: Google::Apis::DriveV3::File::ContentHints

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

Overview

Additional information about the content of the file. These fields are never populated in responses.

Defined Under Namespace

Classes: Thumbnail

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) ⇒ ContentHints

Returns a new instance of ContentHints.



1622
1623
1624
# File 'generated/google/apis/drive_v3/classes.rb', line 1622

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

Instance Attribute Details

#indexable_textString

Text to be indexed for the file to improve fullText queries. This is limited to 128KB in length and may contain HTML elements. Corresponds to the JSON property indexableText

Returns:

  • (String)


1614
1615
1616
# File 'generated/google/apis/drive_v3/classes.rb', line 1614

def indexable_text
  @indexable_text
end

#thumbnailGoogle::Apis::DriveV3::File::ContentHints::Thumbnail

A thumbnail for the file. This will only be used if Google Drive cannot generate a standard thumbnail. Corresponds to the JSON property thumbnail



1620
1621
1622
# File 'generated/google/apis/drive_v3/classes.rb', line 1620

def thumbnail
  @thumbnail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1627
1628
1629
1630
# File 'generated/google/apis/drive_v3/classes.rb', line 1627

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