Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField
- Inherits:
-
Object
- Object
- Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField
- 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 field that maps to a UI Component.
Instance Attribute Summary collapse
-
#device_visibility ⇒ Array<String>
The field visibility on different types of devices.
-
#display_template ⇒ String
The template to customize how the field is displayed.
-
#field ⇒ String
Required.
Instance Method Summary collapse
-
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField
constructor
A new instance of GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField.
-
#update!(**args) ⇒ Object
Update properties of this object.
Constructor Details
#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField
Returns a new instance of GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField.
7381 7382 7383 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7381 def initialize(**args) update!(**args) end |
Instance Attribute Details
#device_visibility ⇒ Array<String>
The field visibility on different types of devices.
Corresponds to the JSON property deviceVisibility
7368 7369 7370 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7368 def device_visibility @device_visibility end |
#display_template ⇒ String
The template to customize how the field is displayed. An example value would
be a string that looks like: "Price: value
".
Corresponds to the JSON property displayTemplate
7374 7375 7376 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7374 def display_template @display_template end |
#field ⇒ String
Required. Registered field name. The format is field.abc
.
Corresponds to the JSON property field
7379 7380 7381 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7379 def field @field end |
Instance Method Details
#update!(**args) ⇒ Object
Update properties of this object
7386 7387 7388 7389 7390 |
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 7386 def update!(**args) @device_visibility = args[:device_visibility] if args.key?(:device_visibility) @display_template = args[:display_template] if args.key?(:display_template) @field = args[:field] if args.key?(:field) end |