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.



1898
1899
1900
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1898

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)


1830
1831
1832
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1830

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



1835
1836
1837
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1835

def debug_info
  @debug_info
end

#document_idString

Document id. Corresponds to the JSON property documentId

Returns:

  • (String)


1840
1841
1842
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1840

def document_id
  @document_id
end

#drive_document_metadataGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentDriveDocumentMetadata

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



1845
1846
1847
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1845

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)


1851
1852
1853
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1851

def generic_url
  @generic_url
end

#justificationGoogle::Apis::CloudsearchV1::EnterpriseTopazSidekickCommonDocumentJustification

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



1856
1857
1858
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1856

def justification
  @justification
end

#mime_typeString

MIME type Corresponds to the JSON property mimeType

Returns:

  • (String)


1861
1862
1863
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1861

def mime_type
  @mime_type
end

#provenanceString

Document provenance. Corresponds to the JSON property provenance

Returns:

  • (String)


1866
1867
1868
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1866

def provenance
  @provenance
end

#reasonString

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

Returns:

  • (String)


1871
1872
1873
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1871

def reason
  @reason
end

#snippetString

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

Returns:

  • (String)


1876
1877
1878
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1876

def snippet
  @snippet
end

#thumbnail_urlString

Thumbnail URL. Corresponds to the JSON property thumbnailUrl

Returns:

  • (String)


1881
1882
1883
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1881

def thumbnail_url
  @thumbnail_url
end

#titleString

Title of the document. Corresponds to the JSON property title

Returns:

  • (String)


1886
1887
1888
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1886

def title
  @title
end

#typeString

Type of the document. Corresponds to the JSON property type

Returns:

  • (String)


1891
1892
1893
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 1891

def type
  @type
end

#urlString

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

Returns:

  • (String)


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

def url
  @url
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



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

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