Class RagEmbeddingModelConfig.Builder (3.48.0)

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

Config for the embedding model to use for RAG.

Protobuf type google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

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

clearField(Descriptors.FieldDescriptor field)

public RagEmbeddingModelConfig.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
RagEmbeddingModelConfig.Builder
Overrides

clearModelConfig()

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

clearOneof(Descriptors.OneofDescriptor oneof)

public RagEmbeddingModelConfig.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
RagEmbeddingModelConfig.Builder
Overrides

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.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Returns
Type Description
RagEmbeddingModelConfig.Builder

clone()

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

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.

.google.cloud.aiplatform.v1beta1.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.

.google.cloud.aiplatform.v1beta1.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.

.google.cloud.aiplatform.v1beta1.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.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

Returns
Type Description
boolean

Whether the vertexPredictionEndpoint field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.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

mergeUnknownFields(UnknownFieldSet unknownFields)

public final RagEmbeddingModelConfig.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
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.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setUnknownFields(UnknownFieldSet unknownFields)

public final RagEmbeddingModelConfig.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
RagEmbeddingModelConfig.Builder
Overrides

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.

.google.cloud.aiplatform.v1beta1.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.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint vertex_prediction_endpoint = 1;

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