Discovery Engine V1 API - Class Google::Cloud::DiscoveryEngine::V1::WidgetConfig::UiSettings::ModelConfigInfo (v2.14.0)

Reference documentation and code samples for the Discovery Engine V1 API class Google::Cloud::DiscoveryEngine::V1::WidgetConfig::UiSettings::ModelConfigInfo.

The resolved, server-side view of model selector configuration for the end-user. The backend computes this per-request by applying, in order: Mendel flag evaluation, regional availability rules based on the engine's location, and admin-panel overrides from model_configs.

The backend is the single source of truth for this configuration; clients should render resolved_models directly in the model selector dropdown, in the order provided, without applying their own filtering, ordering, or localization.

Inherits

  • Object

Extended By

  • Google::Protobuf::MessageExts::ClassMethods

Includes

  • Google::Protobuf::MessageExts

Methods

#auto_model_id

def auto_model_id() -> ::String
Returns
  • (::String) — Output only. The model_id a client must send when the end-user picks the "Auto" entry (the empty model_id).

    Populated only for surfaces known to have no true "Auto" mode, where leaving the model unset would fall back to a platform default rather than a backend-chosen model. Empty on every other surface, where "Auto" is resolved server-side, and when none of the surface's ranked models is available. When set, it is always one of the non-empty model_ids present in resolved_models.

#default_model_id

def default_model_id() -> ::String
Returns
  • (::String) — Output only. The model_id of the model that should be selected by default in the model selector when the end-user has not made an explicit choice. The value is always one of the model_ids present in resolved_models.

#resolved_models

def resolved_models() -> ::Array<::Google::Cloud::DiscoveryEngine::V1::WidgetConfig::UiSettings::ModelConfigInfo::ResolvedModel>
Returns