Class: Google::Apis::CloudsearchV1::GoogleDocsMetadata

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

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

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleDocsMetadata

Returns a new instance of GoogleDocsMetadata.



9380
9381
9382
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9380

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

Instance Attribute Details

#acl_infoGoogle::Apis::CloudsearchV1::AclInfo

Next tag: 4 Corresponds to the JSON property aclInfo



9338
9339
9340
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9338

def acl_info
  @acl_info
end

#document_typeString

The conceptual type (presentation, document, etc.) of this document. Corresponds to the JSON property documentType

Returns:

  • (String)


9343
9344
9345
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9343

def document_type
  @document_type
end

#file_extensionString

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

Returns:

  • (String)


9349
9350
9351
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9349

def file_extension
  @file_extension
end

#last_content_modified_timestampFixnum

The last time this document was modified, in seconds since epoch. Only counts content modifications. Corresponds to the JSON property lastContentModifiedTimestamp

Returns:

  • (Fixnum)


9355
9356
9357
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9355

def last_content_modified_timestamp
  @last_content_modified_timestamp
end

#num_subscribersFixnum

Contains number of subscribers for the document. Corresponds to the JSON property numSubscribers

Returns:

  • (Fixnum)


9360
9361
9362
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9360

def num_subscribers
  @num_subscribers
end

#num_viewersFixnum

Size of untruncated viewers list. Corresponds to the JSON property numViewers

Returns:

  • (Fixnum)


9365
9366
9367
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9365

def num_viewers
  @num_viewers
end

#result_infoGoogle::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



9373
9374
9375
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9373

def result_info
  @result_info
end

#type_infoGoogle::Apis::CloudsearchV1::TypeInfo

Next tag: 2 Corresponds to the JSON property typeInfo



9378
9379
9380
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9378

def type_info
  @type_info
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9385
9386
9387
9388
9389
9390
9391
9392
9393
9394
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 9385

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