Class RagEmbeddingModelConfig.Builder (1.43.0)

public static final class RagEmbeddingModelConfig.Builder extends GeneratedMessage.Builder<RagEmbeddingModelConfig.Builder> implements RagEmbeddingModelConfigOrBuilder

Config for the embedding model to use for RAG.

Protobuf type google.cloud.vertexai.v1.RagEmbeddingModelConfig

Static Methods

getDescriptor()

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

Methods

build()

public RagEmbeddingModelConfig build()
Returns
Type Description
RagEmbeddingModelConfig

buildPartial()

public RagEmbeddingModelConfig buildPartial()
Returns
Type Description
RagEmbeddingModelConfig

clear()

public RagEmbeddingModelConfig.Builder clear()
Returns
Type Description
RagEmbeddingModelConfig.Builder
Overrides

clearModelConfig()

public RagEmbeddingModelConfig.Builder clearModelConfig()
Returns
Type Description
RagEmbeddingModelConfig.Builder

clearVertexPredictionEndpoint()

public RagEmbeddingModelConfig.Builder clearVertexPredictionEndpoint()

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

.google.cloud.vertexai.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Returns
Type Description
RagEmbeddingModelConfig.Builder

getDefaultInstanceForType()

public RagEmbeddingModelConfig getDefaultInstanceForType()
Returns
Type Description
RagEmbeddingModelConfig

getDescriptorForType()

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

getModelConfigCase()

public RagEmbeddingModelConfig.ModelConfigCase getModelConfigCase()
Returns
Type Description
RagEmbeddingModelConfig.ModelConfigCase

getVertexPredictionEndpoint()

public RagEmbeddingModelConfig.VertexPredictionEndpoint getVertexPredictionEndpoint()

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

.google.cloud.vertexai.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Returns
Type Description
RagEmbeddingModelConfig.VertexPredictionEndpoint

The vertexPredictionEndpoint.

getVertexPredictionEndpointBuilder()

public RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder getVertexPredictionEndpointBuilder()

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

.google.cloud.vertexai.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Returns
Type Description
RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder

getVertexPredictionEndpointOrBuilder()

public RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder getVertexPredictionEndpointOrBuilder()

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

.google.cloud.vertexai.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Returns
Type Description
RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder

hasVertexPredictionEndpoint()

public boolean hasVertexPredictionEndpoint()

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

.google.cloud.vertexai.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Returns
Type Description
boolean

Whether the vertexPredictionEndpoint field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(RagEmbeddingModelConfig other)

public RagEmbeddingModelConfig.Builder mergeFrom(RagEmbeddingModelConfig other)
Parameter
Name Description
other RagEmbeddingModelConfig
Returns
Type Description
RagEmbeddingModelConfig.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

public RagEmbeddingModelConfig.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
RagEmbeddingModelConfig.Builder
Overrides

mergeVertexPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint value)

public RagEmbeddingModelConfig.Builder mergeVertexPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint value)

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

.google.cloud.vertexai.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Parameter
Name Description
value RagEmbeddingModelConfig.VertexPredictionEndpoint
Returns
Type Description
RagEmbeddingModelConfig.Builder

setVertexPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint value)

public RagEmbeddingModelConfig.Builder setVertexPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint value)

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

.google.cloud.vertexai.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Parameter
Name Description
value RagEmbeddingModelConfig.VertexPredictionEndpoint
Returns
Type Description
RagEmbeddingModelConfig.Builder

setVertexPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder builderForValue)

public RagEmbeddingModelConfig.Builder setVertexPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder builderForValue)

The Vertex AI Prediction Endpoint that either refers to a publisher model or an endpoint that is hosting a 1P fine-tuned text embedding model. Endpoints hosting non-1P fine-tuned text embedding models are currently not supported. This is used for dense vector search.

.google.cloud.vertexai.v1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Parameter
Name Description
builderForValue RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder
Returns
Type Description
RagEmbeddingModelConfig.Builder