Class WidgetConfig.UiSettings.ModelConfigInfo (0.99.0)

public static final class WidgetConfig.UiSettings.ModelConfigInfo extends GeneratedMessage 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

Object > AbstractMessageLite<MessageType,BuilderType> > AbstractMessage > GeneratedMessage > WidgetConfig.UiSettings.ModelConfigInfo

Static Fields

AUTO_MODEL_ID_FIELD_NUMBER

public static final int AUTO_MODEL_ID_FIELD_NUMBER
Field Value
Type Description
int

DEFAULT_MODEL_ID_FIELD_NUMBER

public static final int DEFAULT_MODEL_ID_FIELD_NUMBER
Field Value
Type Description
int

RESOLVED_MODELS_FIELD_NUMBER

public static final int RESOLVED_MODELS_FIELD_NUMBER
Field Value
Type Description
int

Static Methods

getDefaultInstance()

public static WidgetConfig.UiSettings.ModelConfigInfo getDefaultInstance()
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo

getDescriptor()

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

newBuilder()

public static WidgetConfig.UiSettings.ModelConfigInfo.Builder newBuilder()
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.Builder

newBuilder(WidgetConfig.UiSettings.ModelConfigInfo prototype)

public static WidgetConfig.UiSettings.ModelConfigInfo.Builder newBuilder(WidgetConfig.UiSettings.ModelConfigInfo prototype)
Parameter
Name Description
prototype WidgetConfig.UiSettings.ModelConfigInfo
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.Builder

parseDelimitedFrom(InputStream input)

public static WidgetConfig.UiSettings.ModelConfigInfo parseDelimitedFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UiSettings.ModelConfigInfo parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
IOException

parseFrom(byte[] data)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(byte[] data)
Parameter
Name Description
data byte[]
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data byte[]
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(ByteString data)
Parameter
Name Description
data ByteString
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteString
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(CodedInputStream input)
Parameter
Name Description
input CodedInputStream
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(InputStream input)
Parameter
Name Description
input InputStream
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input InputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
IOException

parseFrom(ByteBuffer data)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(ByteBuffer data)
Parameter
Name Description
data ByteBuffer
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static WidgetConfig.UiSettings.ModelConfigInfo parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
data ByteBuffer
extensionRegistry ExtensionRegistryLite
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo
Exceptions
Type Description
InvalidProtocolBufferException

parser()

public static Parser<WidgetConfig.UiSettings.ModelConfigInfo> parser()
Returns
Type Description
Parser<ModelConfigInfo>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
Name Description
obj Object
Returns
Type Description
boolean
Overrides

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.

getParserForType()

public Parser<WidgetConfig.UiSettings.ModelConfigInfo> getParserForType()
Returns
Type Description
Parser<ModelConfigInfo>
Overrides

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

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>

getSerializedSize()

public int getSerializedSize()
Returns
Type Description
int
Overrides

hashCode()

public int hashCode()
Returns
Type Description
int
Overrides

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

newBuilderForType()

public WidgetConfig.UiSettings.ModelConfigInfo.Builder newBuilderForType()
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.Builder

newBuilderForType(AbstractMessage.BuilderParent parent)

protected WidgetConfig.UiSettings.ModelConfigInfo.Builder newBuilderForType(AbstractMessage.BuilderParent parent)
Parameter
Name Description
parent BuilderParent
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.Builder
Overrides

toBuilder()

public WidgetConfig.UiSettings.ModelConfigInfo.Builder toBuilder()
Returns
Type Description
WidgetConfig.UiSettings.ModelConfigInfo.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
Name Description
output CodedOutputStream
Overrides
Exceptions
Type Description
IOException