public static final class WidgetConfig.UiSettings.ModelConfigInfo.Builder extends GeneratedMessage.Builder<WidgetConfig.UiSettings.ModelConfigInfo.Builder> implements WidgetConfig.UiSettings.ModelConfigInfoOrBuilder 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.
Protobuf type
google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > WidgetConfig.UiSettings.ModelConfigInfo.BuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllResolvedModels(Iterable<? extends WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel> values)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder addAllResolvedModels(Iterable<? extends WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel> values)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel> |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
addResolvedModels(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel value)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder addResolvedModels(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel value)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
addResolvedModels(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder builderForValue)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder addResolvedModels(WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder builderForValue)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
addResolvedModels(int index, WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel value)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder addResolvedModels(int index, WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel value)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
addResolvedModels(int index, WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder builderForValue)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder addResolvedModels(int index, WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder builderForValue)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
addResolvedModelsBuilder()
public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder addResolvedModelsBuilder()Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder |
|
addResolvedModelsBuilder(int index)
public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder addResolvedModelsBuilder(int index)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder |
|
build()
public WidgetConfig.UiSettings.ModelConfigInfo build()| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo |
|
buildPartial()
public WidgetConfig.UiSettings.ModelConfigInfo buildPartial()| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo |
|
clear()
public WidgetConfig.UiSettings.ModelConfigInfo.Builder clear()| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
clearAutoModelId()
public WidgetConfig.UiSettings.ModelConfigInfo.Builder clearAutoModelId() 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.
string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
This builder for chaining. |
clearDefaultModelId()
public WidgetConfig.UiSettings.ModelConfigInfo.Builder clearDefaultModelId() 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.
string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
This builder for chaining. |
clearResolvedModels()
public WidgetConfig.UiSettings.ModelConfigInfo.Builder clearResolvedModels()Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
getAutoModelId()
public String getAutoModelId() 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.
string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The autoModelId. |
getAutoModelIdBytes()
public ByteString getAutoModelIdBytes() 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.
string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for autoModelId. |
getDefaultInstanceForType()
public WidgetConfig.UiSettings.ModelConfigInfo getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo |
|
getDefaultModelId()
public String getDefaultModelId() 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.
string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
String |
The defaultModelId. |
getDefaultModelIdBytes()
public ByteString getDefaultModelIdBytes() 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.
string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for defaultModelId. |
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getResolvedModels(int index)
public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel getResolvedModels(int index)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel |
|
getResolvedModelsBuilder(int index)
public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder getResolvedModelsBuilder(int index)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder |
|
getResolvedModelsBuilderList()
public List<WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder> getResolvedModelsBuilderList()Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getResolvedModelsCount()
public int getResolvedModelsCount()Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
int |
|
getResolvedModelsList()
public List<WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel> getResolvedModelsList()Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<ResolvedModel> |
|
getResolvedModelsOrBuilder(int index)
public WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModelOrBuilder getResolvedModelsOrBuilder(int index)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModelOrBuilder |
|
getResolvedModelsOrBuilderList()
public List<? extends WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModelOrBuilder> getResolvedModelsOrBuilderList()Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModelOrBuilder> |
|
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(WidgetConfig.UiSettings.ModelConfigInfo other)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder mergeFrom(WidgetConfig.UiSettings.ModelConfigInfo other)| Parameter | |
|---|---|
| Name | Description |
other |
WidgetConfig.UiSettings.ModelConfigInfo |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
removeResolvedModels(int index)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder removeResolvedModels(int index)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
setAutoModelId(String value)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder setAutoModelId(String value) 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.
string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe autoModelId to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
This builder for chaining. |
setAutoModelIdBytes(ByteString value)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder setAutoModelIdBytes(ByteString value) 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.
string auto_model_id = 3 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for autoModelId to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
This builder for chaining. |
setDefaultModelId(String value)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder setDefaultModelId(String value) 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.
string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe defaultModelId to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
This builder for chaining. |
setDefaultModelIdBytes(ByteString value)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder setDefaultModelIdBytes(ByteString value) 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.
string default_model_id = 2 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for defaultModelId to set. |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
This builder for chaining. |
setResolvedModels(int index, WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel value)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder setResolvedModels(int index, WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel value)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|
setResolvedModels(int index, WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder builderForValue)
public WidgetConfig.UiSettings.ModelConfigInfo.Builder setResolvedModels(int index, WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder builderForValue)Output only. The list of models that are available to the end-user in the model selector, in the order in which they should be displayed.
repeated .google.cloud.discoveryengine.v1.WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel resolved_models = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
WidgetConfig.UiSettings.ModelConfigInfo.ResolvedModel.Builder |
| Returns | |
|---|---|
| Type | Description |
WidgetConfig.UiSettings.ModelConfigInfo.Builder |
|