Class: Google::Apis::CloudsearchV1::ResultDisplayField

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

Display Fields for Search Results

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ ResultDisplayField

Returns a new instance of ResultDisplayField.



3728
3729
3730
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3728

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

Instance Attribute Details

#labelString

The display label for the property. Corresponds to the JSON property label

Returns:

  • (String)


3714
3715
3716
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3714

def label
  @label
end

#operator_nameString

The operator name of the property. Corresponds to the JSON property operatorName

Returns:

  • (String)


3719
3720
3721
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3719

def operator_name
  @operator_name
end

#propertyGoogle::Apis::CloudsearchV1::NamedProperty

A typed name-value pair for structured data. The type of the value should be the same as the registered type for the name property in the object definition of objectType. Corresponds to the JSON property property



3726
3727
3728
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3726

def property
  @property
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



3733
3734
3735
3736
3737
# File 'lib/google/apis/cloudsearch_v1/classes.rb', line 3733

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