Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField

Inherits:
Object
  • Object
show all
Includes:
Core::Hashable, Core::JsonObjectSupport
Defined in:
lib/google/apis/discoveryengine_v1alpha/classes.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb,
lib/google/apis/discoveryengine_v1alpha/representations.rb

Overview

Facet fields that store the mapping of fields to end user widget appearance.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField

Returns a new instance of GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField.



5267
5268
5269
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5267

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

Instance Attribute Details

#display_nameString

Optional. The field name that end users will see. Corresponds to the JSON property displayName

Returns:

  • (String)


5260
5261
5262
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5260

def display_name
  @display_name
end

#fieldString

Required. Registered field name. The format is field.abc. Corresponds to the JSON property field

Returns:

  • (String)


5265
5266
5267
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5265

def field
  @field
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5272
5273
5274
5275
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5272

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