Class: Google::Apis::CloudsearchV1::DisplayedProperty

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

A reference to a top-level property within the object that should be displayed in search results. The values of the chosen properties is displayed in the search results along with the display label for that property if one is specified. If a display label is not specified, only the values is shown.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ DisplayedProperty

Returns a new instance of DisplayedProperty.



7686
7687
7688
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7686

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

Instance Attribute Details

#property_nameString

The name of the top-level property as defined in a property definition for the object. If the name is not a defined property in the schema, an error is given when attempting to update the schema. Corresponds to the JSON property propertyName

Returns:

  • (String)


7684
7685
7686
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7684

def property_name
  @property_name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



7691
7692
7693
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 7691

def update!(**args)
  @property_name = args[:property_name] if args.key?(:property_name)
end