Class: Google::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocument

Inherits:
Object
  • Object
show all
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

Representation of a document. NEXT_TAG: 15

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ EnterpriseTopazSidekickCommonDocument

Returns a new instance of EnterpriseTopazSidekickCommonDocument.



1896
1897
1898
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1896

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

Instance Attribute Details

#access_typeString

Access type, i.e., whether the user has access to the document or not. Corresponds to the JSON property accessType

Returns:

  • (String)


1828
1829
1830
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1828

def access_type
  @access_type
end

#debug_infoGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDebugInfo

Container of debugging information in all object levels. Extend as needed. Corresponds to the JSON property debugInfo



1833
1834
1835
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1833

def debug_info
  @debug_info
end

#document_idString

Document id. Corresponds to the JSON property documentId

Returns:

  • (String)


1838
1839
1840
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1838

def document_id
  @document_id
end

#drive_document_metadataGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata

Meta data for drive documents. Corresponds to the JSON property driveDocumentMetadata



1843
1844
1845
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1843

def 
  @drive_document_metadata
end

#generic_urlString

Generic Drive-based url in the format of drive.google.com/open to be used for deeplink Corresponds to the JSON property genericUrl

Returns:

  • (String)


1849
1850
1851
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1849

def generic_url
  @generic_url
end

#justificationGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentJustification

Justification of why we are reporting the document. Corresponds to the JSON property justification



1854
1855
1856
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1854

def justification
  @justification
end

#mime_typeString

MIME type Corresponds to the JSON property mimeType

Returns:

  • (String)


1859
1860
1861
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1859

def mime_type
  @mime_type
end

#provenanceString

Document provenance. Corresponds to the JSON property provenance

Returns:

  • (String)


1864
1865
1866
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1864

def provenance
  @provenance
end

#reasonString

Justification of why this document is being returned. Corresponds to the JSON property reason

Returns:

  • (String)


1869
1870
1871
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1869

def reason
  @reason
end

#snippetString

A sampling of the text from the document. Corresponds to the JSON property snippet

Returns:

  • (String)


1874
1875
1876
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1874

def snippet
  @snippet
end

#thumbnail_urlString

Thumbnail URL. Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)


1879
1880
1881
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1879

def thumbnail_url
  @thumbnail_url
end

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


1884
1885
1886
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1884

def title
  @title
end

#typeString

Type of the document. Corresponds to the JSON property type

Returns:

  • (String)


1889
1890
1891
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1889

def type
  @type
end

#urlString

Absolute URL of the document. Corresponds to the JSON property url

Returns:

  • (String)


1894
1895
1896
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1894

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



1901
1902
1903
1904
1905
1906
1907
1908
1909
1910
1911
1912
1913
1914
1915
1916
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1901

def update!(**args)
  @access_type = args[:access_type] if args.key?(:access_type)
  @debug_info = args[:debug_info] if args.key?(:debug_info)
  @document_id = args[:document_id] if args.key?(:document_id)
  @drive_document_metadata = args[:drive_document_metadata] if args.key?(:drive_document_metadata)
  @generic_url = args[:generic_url] if args.key?(:generic_url)
  @justification = args[:justification] if args.key?(:justification)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @provenance = args[:provenance] if args.key?(:provenance)
  @reason = args[:reason] if args.key?(:reason)
  @snippet = args[:snippet] if args.key?(:snippet)
  @thumbnail_url = args[:thumbnail_url] if args.key?(:thumbnail_url)
  @title = args[:title] if args.key?(:title)
  @type = args[:type] if args.key?(:type)
  @url = args[:url] if args.key?(:url)
end