class Google::Apis::CloudsearchV1::ObjectOptions

The options for an object.

Attributes

display_options[RW]

The display options for an object. Corresponds to the JSON property `displayOptions` @return [Google::Apis::CloudsearchV1::ObjectDisplayOptions]

freshness_options[RW]

Indicates which freshness property to use when adjusting search ranking for an item. Fresher, more recent dates indicate higher quality. Use the freshness option property that best works with your data. For fileshare documents, last modified time is most relevant. For calendar event data, the time when the event occurs is a more relevant freshness indicator. In this way, calendar events that occur closer to the time of the search query are considered higher quality and ranked accordingly. Corresponds to the JSON property `freshnessOptions` @return [Google::Apis::CloudsearchV1::FreshnessOptions]

Public Class Methods

new(**args) click to toggle source
# File lib/google/apis/cloudsearch_v1/classes.rb, line 2643
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 2648
def update!(**args)
  @display_options = args[:display_options] if args.key?(:display_options)
  @freshness_options = args[:freshness_options] if args.key?(:freshness_options)
end