class Google::Apis::CloudsearchV1::Metadata

Metadata of a matched search result.

Attributes

create_time[RW]

The creation time for this document or object in the search result. Corresponds to the JSON property `createTime` @return [String]

display_options[RW]

Options that specify how to display a structured data search result. Corresponds to the JSON property `displayOptions` @return [Google::Apis::CloudsearchV1::ResultDisplayMetadata]

fields[RW]

Indexed fields in structured data, returned as a generic named property. Corresponds to the JSON property `fields` @return [Array<Google::Apis::CloudsearchV1::NamedProperty>]

mime_type[RW]

Mime type of the search result. Corresponds to the JSON property `mimeType` @return [String]

object_type[RW]

Object type of the search result. Corresponds to the JSON property `objectType` @return [String]

owner[RW]

Object to represent a person. Corresponds to the JSON property `owner` @return [Google::Apis::CloudsearchV1::Person]

source[RW]

Defines sources for the suggest/search APIs. Corresponds to the JSON property `source` @return [Google::Apis::CloudsearchV1::Source]

update_time[RW]

The last modified date for the object in the search result. If not set in the item, the value returned here is empty. When `updateTime` is used for calculating freshness and is not set, this value defaults to 2 years from the current time. Corresponds to the JSON property `updateTime` @return [String]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 2417
def initialize(**args)
   update!(**args)
end

Public Instance Methods

update!(**args) click to toggle source

Update properties of this object

# File lib/google/apis/cloudsearch_v1/classes.rb, line 2422
def update!(**args)
  @create_time = args[:create_time] if args.key?(:create_time)
  @display_options = args[:display_options] if args.key?(:display_options)
  @fields = args[:fields] if args.key?(:fields)
  @mime_type = args[:mime_type] if args.key?(:mime_type)
  @object_type = args[:object_type] if args.key?(:object_type)
  @owner = args[:owner] if args.key?(:owner)
  @source = args[:source] if args.key?(:source)
  @update_time = args[:update_time] if args.key?(:update_time)
end