Class: Google::Apis::CloudsearchV1::GoogleDocsMetadata
- Inherits:
-
Object
- Object
- Google::Apis::CloudsearchV1::GoogleDocsMetadata
- 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
The corpus specific metadata for office-type documents, from Google Docs and other sources. This message is passed to the scorer and beyond. Next tag: 9
Instance Attribute Summary collapse
-
#acl_info ⇒ Google::Apis::CloudsearchV1::AclInfo
Next tag: 4 Corresponds to the JSON property
aclInfo
. -
#document_type ⇒ String
The conceptual type (presentation, document, etc.) of this document.
-
#file_extension ⇒ String
The file extension of the document.
-
#last_content_modified_timestamp ⇒ Fixnum
The last time this document was modified, in seconds since epoch.
-
#num_subscribers ⇒ Fixnum
Contains number of subscribers for the document.
-
#num_viewers ⇒ Fixnum
Size of untruncated viewers list.
-
#result_info ⇒ Google::Apis::CloudsearchV1::GoogleDocsResultInfo
A message containing information about a specific result.
-
#type_info ⇒ Google::Apis::CloudsearchV1::TypeInfo
Next tag: 2 Corresponds to the JSON property
typeInfo
.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleDocsMetadata
constructor
A new instance of GoogleDocsMetadata.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleDocsMetadata
Returns a new instance of GoogleDocsMetadata.
10636 10637 10638 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10636 def initialize(**args) update!(**args) end |
Instance Attribute Details
#acl_info ⇒ Google::Apis::CloudsearchV1::AclInfo
Next tag: 4
Corresponds to the JSON property aclInfo
10594 10595 10596 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10594 def acl_info @acl_info end |
#document_type ⇒ String
The conceptual type (presentation, document, etc.) of this document.
Corresponds to the JSON property documentType
10599 10600 10601 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10599 def document_type @document_type end |
#file_extension ⇒ String
The file extension of the document. NOTE: As of October 2018 this field is not
backfilled for old documents.
Corresponds to the JSON property fileExtension
10605 10606 10607 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10605 def file_extension @file_extension end |
#last_content_modified_timestamp ⇒ Fixnum
The last time this document was modified, in seconds since epoch. Only counts
content modifications.
Corresponds to the JSON property lastContentModifiedTimestamp
10611 10612 10613 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10611 def @last_content_modified_timestamp end |
#num_subscribers ⇒ Fixnum
Contains number of subscribers for the document.
Corresponds to the JSON property numSubscribers
10616 10617 10618 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10616 def num_subscribers @num_subscribers end |
#num_viewers ⇒ Fixnum
Size of untruncated viewers list.
Corresponds to the JSON property numViewers
10621 10622 10623 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10621 def num_viewers @num_viewers end |
#result_info ⇒ Google::Apis::CloudsearchV1::GoogleDocsResultInfo
A message containing information about a specific result. This information is
passed to the scorer and beyond; in particular, GWS relies on it to format the
result in the UI. Split from GoogleDocsMetadata in case we later want to reuse
the message.
Corresponds to the JSON property resultInfo
10629 10630 10631 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10629 def result_info @result_info end |
#type_info ⇒ Google::Apis::CloudsearchV1::TypeInfo
Next tag: 2
Corresponds to the JSON property typeInfo
10634 10635 10636 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10634 def type_info @type_info end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
10641 10642 10643 10644 10645 10646 10647 10648 10649 10650 |
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 10641 def update!(**args) @acl_info = args[:acl_info] if args.key?(:acl_info) @document_type = args[:document_type] if args.key?(:document_type) @file_extension = args[:file_extension] if args.key?(:file_extension) @last_content_modified_timestamp = args[:last_content_modified_timestamp] if args.key?(:last_content_modified_timestamp) @num_subscribers = args[:num_subscribers] if args.key?(:num_subscribers) @num_viewers = args[:num_viewers] if args.key?(:num_viewers) @result_info = args[:result_info] if args.key?(:result_info) @type_info = args[:type_info] if args.key?(:type_info) end |