Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField

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 field that maps to a UI Component.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField

Returns a new instance of GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField.



5298
5299
5300
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5298

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

Instance Attribute Details

#device_visibilityArray<String>

The field visibility on different types of devices. Corresponds to the JSON property deviceVisibility

Returns:

  • (Array<String>)


5285
5286
5287
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5285

def device_visibility
  @device_visibility
end

#display_templateString

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

Returns:

  • (String)


5291
5292
5293
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5291

def display_template
  @display_template
end

#fieldString

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

Returns:

  • (String)


5296
5297
5298
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5296

def field
  @field
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



5303
5304
5305
5306
5307
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 5303

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