Class Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder (2.55.0)

public static final class Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder extends GeneratedMessageV3.Builder<Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder> implements Model.ModelFeaturesConfig.LlmEmbeddingConfigOrBuilder

Config that turns on usage of llm embeddings as features to the model. Embeddings leverage unstructured text fields like description and title.

Protobuf type google.cloud.retail.v2alpha.Model.ModelFeaturesConfig.LlmEmbeddingConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

build()

public Model.ModelFeaturesConfig.LlmEmbeddingConfig build()
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig

buildPartial()

public Model.ModelFeaturesConfig.LlmEmbeddingConfig buildPartial()
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig

clear()

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder clear()
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

clearField(Descriptors.FieldDescriptor field)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

clearLlmEmbeddingVersion()

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder clearLlmEmbeddingVersion()

Optional. The LLM embedding version to use. Currently only v0 is supported. If not specified, feature will not be turned on.

string llm_embedding_version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

clone()

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder clone()
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

getDefaultInstanceForType()

public Model.ModelFeaturesConfig.LlmEmbeddingConfig getDefaultInstanceForType()
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig

getDescriptorForType()

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

getLlmEmbeddingVersion()

public String getLlmEmbeddingVersion()

Optional. The LLM embedding version to use. Currently only v0 is supported. If not specified, feature will not be turned on.

string llm_embedding_version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
String

The llmEmbeddingVersion.

getLlmEmbeddingVersionBytes()

public ByteString getLlmEmbeddingVersionBytes()

Optional. The LLM embedding version to use. Currently only v0 is supported. If not specified, feature will not be turned on.

string llm_embedding_version = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
ByteString

The bytes for llmEmbeddingVersion.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(Model.ModelFeaturesConfig.LlmEmbeddingConfig other)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder mergeFrom(Model.ModelFeaturesConfig.LlmEmbeddingConfig other)
Parameter
Name Description
other Model.ModelFeaturesConfig.LlmEmbeddingConfig
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides
Exceptions
Type Description
IOException

mergeFrom(Message other)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

setField(Descriptors.FieldDescriptor field, Object value)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

setLlmEmbeddingVersion(String value)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder setLlmEmbeddingVersion(String value)

Optional. The LLM embedding version to use. Currently only v0 is supported. If not specified, feature will not be turned on.

string llm_embedding_version = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value String

The llmEmbeddingVersion to set.

Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder

This builder for chaining.

setLlmEmbeddingVersionBytes(ByteString value)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder setLlmEmbeddingVersionBytes(ByteString value)

Optional. The LLM embedding version to use. Currently only v0 is supported. If not specified, feature will not be turned on.

string llm_embedding_version = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value ByteString

The bytes for llmEmbeddingVersion to set.

Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
Model.ModelFeaturesConfig.LlmEmbeddingConfig.Builder
Overrides