class Google::Apis::CloudsearchV1::Metadata
Metadata
of a matched search result.
Attributes
The creation time for this document or object in the search result. Corresponds to the JSON property `createTime` @return [String]
Options that specify how to display a structured data search result. Corresponds to the JSON property `displayOptions` @return [Google::Apis::CloudsearchV1::ResultDisplayMetadata]
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 of the search result. Corresponds to the JSON property `mimeType` @return [String]
Object type of the search result. Corresponds to the JSON property `objectType` @return [String]
Object to represent a person. Corresponds to the JSON property `owner` @return [Google::Apis::CloudsearchV1::Person]
Defines sources for the suggest/search APIs. Corresponds to the JSON property `source` @return [Google::Apis::CloudsearchV1::Source]
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
# File lib/google/apis/cloudsearch_v1/classes.rb, line 2417 def initialize(**args) update!(**args) end
Public Instance Methods
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