Class: Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig

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

UI component configuration for data store.

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(**args) ⇒ GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig

Returns a new instance of GoogleCloudDiscoveryengineV1alphaWidgetConfigDataStoreUiConfig.



9229
9230
9231
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9229

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

Instance Attribute Details

#facet_fieldArray<Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigFacetField>

Facet fields that store the mapping of fields to end user widget appearance. Corresponds to the JSON property facetField



9202
9203
9204
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9202

def facet_field
  @facet_field
end

#fields_ui_components_mapHash<String,Google::Apis::DiscoveryengineV1alpha::GoogleCloudDiscoveryengineV1alphaWidgetConfigUiComponentField>

The key is the UI component. Mock. Currently supported title, thumbnail, url, custom1, custom2, custom3. The value is the name of the field along with its device visibility. The 3 custom fields are optional and can be added or removed. title, thumbnail, url are required UI components that cannot be removed. Corresponds to the JSON property fieldsUiComponentsMap



9211
9212
9213
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9211

def fields_ui_components_map
  @fields_ui_components_map
end

#idString

Output only. the identifier of the data store, used for widget service. For now it refers to data_store_id, in the future we will migrate the field to encrypted data store name UUID. Corresponds to the JSON property id

Returns:

  • (String)


9218
9219
9220
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9218

def id
  @id
end

#nameString

The name of the data store. It should be data store resource name Format: projects/project_number/locations/location/collections/collection_id/ dataStores/data_store_id`. For APIs under WidgetService, such as LookUpWidgetConfig, the project number and location part is erased in this field. Corresponds to the JSON propertyname`

Returns:

  • (String)


9227
9228
9229
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9227

def name
  @name
end

Instance Method Details

#update!(**args) ⇒ Object

Update properties of this object



9234
9235
9236
9237
9238
9239
# File 'lib/google/apis/discoveryengine_v1alpha/classes.rb', line 9234

def update!(**args)
  @facet_field = args[:facet_field] if args.key?(:facet_field)
  @fields_ui_components_map = args[:fields_ui_components_map] if args.key?(:fields_ui_components_map)
  @id = args[:id] if args.key?(:id)
  @name = args[:name] if args.key?(:name)
end