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

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/drive_v3/classes.rb,
lib/google/apis/drive_v3/representations.rb,
lib/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

Constructor Details

#initialize(**args) ⇒ ContentHints

Returns a new instance of ContentHints.



1807
1808
1809
# File 'lib/google/apis/drive_v3/classes.rb', line 1807

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 128 KB in length and may contain HTML elements. For more information, see Manage file metadata. Corresponds to the JSON property indexableText

Returns:

  • (String)


1799
1800
1801
# File 'lib/google/apis/drive_v3/classes.rb', line 1799

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



1805
1806
1807
# File 'lib/google/apis/drive_v3/classes.rb', line 1805

def thumbnail
  @thumbnail
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1812
1813
1814
1815
# File 'lib/google/apis/drive_v3/classes.rb', line 1812

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