Class WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder (0.99.0)

public static final class WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder extends GeneratedMessage.Builder<WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder> implements WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModelOrBuilder

A single model that is resolved to be available to the end-user in the model selector, with all of its localized display metadata.

Protobuf type google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel

Inheritance

java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

build()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel build()
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel

buildPartial()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel buildPartial()
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel

clear()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clear()
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder
Overrides

clearAdminView()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearAdminView()

Output only. Admin-surface metadata; populated only for the Console admin Feature Control page (see AdminView). Unset for end-user surfaces.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

clearDescription()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearDescription()

Output only. Localized description text (e.g. State-of-the-art reasoning). Localized using the same locale as display_name.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

clearDisplayName()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearDisplayName()

Output only. Localized display name of the model (e.g. Gemini 3.1 Pro). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

clearFamily()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearFamily()

Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group.

Compared for equality only -- never parsed, and never shown to a user, so it is not localized.

string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

clearIcon()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearIcon()

Output only. GM3-compatible icon token associated with the model (e.g. rocket_launch, bolt, graph_5).

string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

clearIconUrl()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearIconUrl()

Output only. Absolute URL of a brand mark to render instead of icon, for models whose vendor logo is not a GM3 glyph.

icon stays populated as the fallback, so a client that does not render images, or that fails to fetch this one, shows the glyph instead of nothing.

string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

clearIsPreview()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearIsPreview()

Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.

bool is_preview = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

clearLabel()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearLabel()

Output only. Short label shown in the compact selector bar chip (e.g. 3.x Flash) as opposed to the full display_name (Gemini 3.x Flash). Falls back to display_name when the backend registry does not specify a distinct short label.

string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

clearModelId()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearModelId()

Output only. Unique identifier of the model (e.g. gemini-2.5-flash, gemini-3.1-pro-preview).

This is the same identifier that clients pass back to the assistant service to select this model. Virtual / "pseudo" models (e.g. gemini-fast) are also valid values here; they are resolved to the underlying concrete model on the backend.

string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

clearPromoted()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder clearPromoted()

Output only. Whether this model should be promoted in the GE chat homepage banner.

bool promoted = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

getAdminView()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView getAdminView()

Output only. Admin-surface metadata; populated only for the Console admin Feature Control page (see AdminView). Unset for end-user surfaces.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView

The adminView.

getAdminViewBuilder()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView.Builder getAdminViewBuilder()

Output only. Admin-surface metadata; populated only for the Console admin Feature Control page (see AdminView). Unset for end-user surfaces.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView.Builder

getAdminViewOrBuilder()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminViewOrBuilder getAdminViewOrBuilder()

Output only. Admin-surface metadata; populated only for the Console admin Feature Control page (see AdminView). Unset for end-user surfaces.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminViewOrBuilder

getDefaultInstanceForType()

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel getDefaultInstanceForType()
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel

getDescription()

public String getDescription()

Output only. Localized description text (e.g. State-of-the-art reasoning). Localized using the same locale as display_name.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The description.

getDescriptionBytes()

public ByteString getDescriptionBytes()

Output only. Localized description text (e.g. State-of-the-art reasoning). Localized using the same locale as display_name.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for description.

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getDisplayName()

public String getDisplayName()

Output only. Localized display name of the model (e.g. Gemini 3.1 Pro). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The displayName.

getDisplayNameBytes()

public ByteString getDisplayNameBytes()

Output only. Localized display name of the model (e.g. Gemini 3.1 Pro). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for displayName.

getFamily()

public String getFamily()

Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group.

Compared for equality only -- never parsed, and never shown to a user, so it is not localized.

string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The family.

getFamilyBytes()

public ByteString getFamilyBytes()

Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group.

Compared for equality only -- never parsed, and never shown to a user, so it is not localized.

string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for family.

getIcon()

public String getIcon()

Output only. GM3-compatible icon token associated with the model (e.g. rocket_launch, bolt, graph_5).

string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The icon.

getIconBytes()

public ByteString getIconBytes()

Output only. GM3-compatible icon token associated with the model (e.g. rocket_launch, bolt, graph_5).

string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for icon.

getIconUrl()

public String getIconUrl()

Output only. Absolute URL of a brand mark to render instead of icon, for models whose vendor logo is not a GM3 glyph.

icon stays populated as the fallback, so a client that does not render images, or that fails to fetch this one, shows the glyph instead of nothing.

string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The iconUrl.

getIconUrlBytes()

public ByteString getIconUrlBytes()

Output only. Absolute URL of a brand mark to render instead of icon, for models whose vendor logo is not a GM3 glyph.

icon stays populated as the fallback, so a client that does not render images, or that fails to fetch this one, shows the glyph instead of nothing.

string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for iconUrl.

getIsPreview()

public boolean getIsPreview()

Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.

bool is_preview = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The isPreview.

getLabel()

public String getLabel()

Output only. Short label shown in the compact selector bar chip (e.g. 3.x Flash) as opposed to the full display_name (Gemini 3.x Flash). Falls back to display_name when the backend registry does not specify a distinct short label.

string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The label.

getLabelBytes()

public ByteString getLabelBytes()

Output only. Short label shown in the compact selector bar chip (e.g. 3.x Flash) as opposed to the full display_name (Gemini 3.x Flash). Falls back to display_name when the backend registry does not specify a distinct short label.

string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for label.

getModelId()

public String getModelId()

Output only. Unique identifier of the model (e.g. gemini-2.5-flash, gemini-3.1-pro-preview).

This is the same identifier that clients pass back to the assistant service to select this model. Virtual / "pseudo" models (e.g. gemini-fast) are also valid values here; they are resolved to the underlying concrete model on the backend.

string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
String

The modelId.

getModelIdBytes()

public ByteString getModelIdBytes()

Output only. Unique identifier of the model (e.g. gemini-2.5-flash, gemini-3.1-pro-preview).

This is the same identifier that clients pass back to the assistant service to select this model. Virtual / "pseudo" models (e.g. gemini-fast) are also valid values here; they are resolved to the underlying concrete model on the backend.

string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
ByteString

The bytes for modelId.

getPromoted()

public boolean getPromoted()

Output only. Whether this model should be promoted in the GE chat homepage banner.

bool promoted = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

The promoted.

hasAdminView()

public boolean hasAdminView()

Output only. Admin-surface metadata; populated only for the Console admin Feature Control page (see AdminView). Unset for end-user surfaces.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Returns
Type Description
boolean

Whether the adminView field is set.

internalGetFieldAccessorTable()

protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeAdminView(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder mergeAdminView(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView value)

Output only. Admin-surface metadata; populated only for the Console admin Feature Control page (see AdminView). Unset for end-user surfaces.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

mergeFrom(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel other)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder mergeFrom(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel other)
Parameter
Name Description
other WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder
Overrides

setAdminView(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setAdminView(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView value)

Output only. Admin-surface metadata; populated only for the Console admin Feature Control page (see AdminView). Unset for end-user surfaces.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

setAdminView(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView.Builder builderForValue)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setAdminView(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView.Builder builderForValue)

Output only. Admin-surface metadata; populated only for the Console admin Feature Control page (see AdminView). Unset for end-user surfaces.

.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView admin_view = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
builderForValue WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.AdminView.Builder
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

setDescription(String value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setDescription(String value)

Output only. Localized description text (e.g. State-of-the-art reasoning). Localized using the same locale as display_name.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The description to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setDescriptionBytes(ByteString value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setDescriptionBytes(ByteString value)

Output only. Localized description text (e.g. State-of-the-art reasoning). Localized using the same locale as display_name.

string description = 4 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for description to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setDisplayName(String value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setDisplayName(String value)

Output only. Localized display name of the model (e.g. Gemini 3.1 Pro). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The displayName to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setDisplayNameBytes(ByteString value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setDisplayNameBytes(ByteString value)

Output only. Localized display name of the model (e.g. Gemini 3.1 Pro). Localized server-side based on the LookupWidgetConfigRequest.language_code and LookupWidgetConfigRequest.region_code of the request.

string display_name = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for displayName to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setFamily(String value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setFamily(String value)

Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group.

Compared for equality only -- never parsed, and never shown to a user, so it is not localized.

string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The family to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setFamilyBytes(ByteString value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setFamilyBytes(ByteString value)

Output only. Groups models that render together in the selector. Models sharing a value form one group; empty means the model belongs to no group.

Compared for equality only -- never parsed, and never shown to a user, so it is not localized.

string family = 10 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for family to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setIcon(String value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setIcon(String value)

Output only. GM3-compatible icon token associated with the model (e.g. rocket_launch, bolt, graph_5).

string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The icon to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setIconBytes(ByteString value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setIconBytes(ByteString value)

Output only. GM3-compatible icon token associated with the model (e.g. rocket_launch, bolt, graph_5).

string icon = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for icon to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setIconUrl(String value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setIconUrl(String value)

Output only. Absolute URL of a brand mark to render instead of icon, for models whose vendor logo is not a GM3 glyph.

icon stays populated as the fallback, so a client that does not render images, or that fails to fetch this one, shows the glyph instead of nothing.

string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The iconUrl to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setIconUrlBytes(ByteString value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setIconUrlBytes(ByteString value)

Output only. Absolute URL of a brand mark to render instead of icon, for models whose vendor logo is not a GM3 glyph.

icon stays populated as the fallback, so a client that does not render images, or that fails to fetch this one, shows the glyph instead of nothing.

string icon_url = 9 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for iconUrl to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setIsPreview(boolean value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setIsPreview(boolean value)

Output only. Whether the model is currently in preview. Clients should surface this via a "Preview" badge in the selector UI.

bool is_preview = 5 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The isPreview to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setLabel(String value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setLabel(String value)

Output only. Short label shown in the compact selector bar chip (e.g. 3.x Flash) as opposed to the full display_name (Gemini 3.x Flash). Falls back to display_name when the backend registry does not specify a distinct short label.

string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The label to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setLabelBytes(ByteString value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setLabelBytes(ByteString value)

Output only. Short label shown in the compact selector bar chip (e.g. 3.x Flash) as opposed to the full display_name (Gemini 3.x Flash). Falls back to display_name when the backend registry does not specify a distinct short label.

string label = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for label to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setModelId(String value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setModelId(String value)

Output only. Unique identifier of the model (e.g. gemini-2.5-flash, gemini-3.1-pro-preview).

This is the same identifier that clients pass back to the assistant service to select this model. Virtual / "pseudo" models (e.g. gemini-fast) are also valid values here; they are resolved to the underlying concrete model on the backend.

string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value String

The modelId to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setModelIdBytes(ByteString value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setModelIdBytes(ByteString value)

Output only. Unique identifier of the model (e.g. gemini-2.5-flash, gemini-3.1-pro-preview).

This is the same identifier that clients pass back to the assistant service to select this model. Virtual / "pseudo" models (e.g. gemini-fast) are also valid values here; they are resolved to the underlying concrete model on the backend.

string model_id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value ByteString

The bytes for modelId to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.

setPromoted(boolean value)

public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder setPromoted(boolean value)

Output only. Whether this model should be promoted in the GE chat homepage banner.

bool promoted = 8 [(.google.api.field_behavior) = OUTPUT_ONLY];

Parameter
Name Description
value boolean

The promoted to set.

Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder

This builder for chaining.