Class RagEmbeddingModelConfig.HybridSearchConfig.Builder (3.55.0)

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

Config for hybrid search.

Protobuf type google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.HybridSearchConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RagEmbeddingModelConfig.HybridSearchConfig build()
Returns
Type Description
RagEmbeddingModelConfig.HybridSearchConfig

buildPartial()

public RagEmbeddingModelConfig.HybridSearchConfig buildPartial()
Returns
Type Description
RagEmbeddingModelConfig.HybridSearchConfig

clear()

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

clearDenseEmbeddingModelPredictionEndpoint()

public RagEmbeddingModelConfig.HybridSearchConfig.Builder clearDenseEmbeddingModelPredictionEndpoint()

Required. The Vertex AI Prediction Endpoint that hosts the embedding model for dense embedding generations.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint dense_embedding_model_prediction_endpoint = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagEmbeddingModelConfig.HybridSearchConfig.Builder

clearField(Descriptors.FieldDescriptor field)

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

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearSparseEmbeddingConfig()

public RagEmbeddingModelConfig.HybridSearchConfig.Builder clearSparseEmbeddingConfig()

Optional. The configuration for sparse embedding generation. This field is optional the default behavior depends on the vector database choice on the RagCorpus.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig sparse_embedding_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagEmbeddingModelConfig.HybridSearchConfig.Builder

clone()

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

getDefaultInstanceForType()

public RagEmbeddingModelConfig.HybridSearchConfig getDefaultInstanceForType()
Returns
Type Description
RagEmbeddingModelConfig.HybridSearchConfig

getDenseEmbeddingModelPredictionEndpoint()

public RagEmbeddingModelConfig.VertexPredictionEndpoint getDenseEmbeddingModelPredictionEndpoint()

Required. The Vertex AI Prediction Endpoint that hosts the embedding model for dense embedding generations.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint dense_embedding_model_prediction_endpoint = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagEmbeddingModelConfig.VertexPredictionEndpoint

The denseEmbeddingModelPredictionEndpoint.

getDenseEmbeddingModelPredictionEndpointBuilder()

public RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder getDenseEmbeddingModelPredictionEndpointBuilder()

Required. The Vertex AI Prediction Endpoint that hosts the embedding model for dense embedding generations.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint dense_embedding_model_prediction_endpoint = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder

getDenseEmbeddingModelPredictionEndpointOrBuilder()

public RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder getDenseEmbeddingModelPredictionEndpointOrBuilder()

Required. The Vertex AI Prediction Endpoint that hosts the embedding model for dense embedding generations.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint dense_embedding_model_prediction_endpoint = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
RagEmbeddingModelConfig.VertexPredictionEndpointOrBuilder

getDescriptorForType()

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

getSparseEmbeddingConfig()

public RagEmbeddingModelConfig.SparseEmbeddingConfig getSparseEmbeddingConfig()

Optional. The configuration for sparse embedding generation. This field is optional the default behavior depends on the vector database choice on the RagCorpus.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig sparse_embedding_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig

The sparseEmbeddingConfig.

getSparseEmbeddingConfigBuilder()

public RagEmbeddingModelConfig.SparseEmbeddingConfig.Builder getSparseEmbeddingConfigBuilder()

Optional. The configuration for sparse embedding generation. This field is optional the default behavior depends on the vector database choice on the RagCorpus.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig sparse_embedding_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfig.Builder

getSparseEmbeddingConfigOrBuilder()

public RagEmbeddingModelConfig.SparseEmbeddingConfigOrBuilder getSparseEmbeddingConfigOrBuilder()

Optional. The configuration for sparse embedding generation. This field is optional the default behavior depends on the vector database choice on the RagCorpus.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig sparse_embedding_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagEmbeddingModelConfig.SparseEmbeddingConfigOrBuilder

hasDenseEmbeddingModelPredictionEndpoint()

public boolean hasDenseEmbeddingModelPredictionEndpoint()

Required. The Vertex AI Prediction Endpoint that hosts the embedding model for dense embedding generations.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint dense_embedding_model_prediction_endpoint = 2 [(.google.api.field_behavior) = REQUIRED];

Returns
Type Description
boolean

Whether the denseEmbeddingModelPredictionEndpoint field is set.

hasSparseEmbeddingConfig()

public boolean hasSparseEmbeddingConfig()

Optional. The configuration for sparse embedding generation. This field is optional the default behavior depends on the vector database choice on the RagCorpus.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig sparse_embedding_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the sparseEmbeddingConfig field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeDenseEmbeddingModelPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint value)

public RagEmbeddingModelConfig.HybridSearchConfig.Builder mergeDenseEmbeddingModelPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint value)

Required. The Vertex AI Prediction Endpoint that hosts the embedding model for dense embedding generations.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint dense_embedding_model_prediction_endpoint = 2 [(.google.api.field_behavior) = REQUIRED];

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

mergeFrom(RagEmbeddingModelConfig.HybridSearchConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeSparseEmbeddingConfig(RagEmbeddingModelConfig.SparseEmbeddingConfig value)

public RagEmbeddingModelConfig.HybridSearchConfig.Builder mergeSparseEmbeddingConfig(RagEmbeddingModelConfig.SparseEmbeddingConfig value)

Optional. The configuration for sparse embedding generation. This field is optional the default behavior depends on the vector database choice on the RagCorpus.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig sparse_embedding_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RagEmbeddingModelConfig.SparseEmbeddingConfig
Returns
Type Description
RagEmbeddingModelConfig.HybridSearchConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setDenseEmbeddingModelPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint value)

public RagEmbeddingModelConfig.HybridSearchConfig.Builder setDenseEmbeddingModelPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint value)

Required. The Vertex AI Prediction Endpoint that hosts the embedding model for dense embedding generations.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint dense_embedding_model_prediction_endpoint = 2 [(.google.api.field_behavior) = REQUIRED];

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

setDenseEmbeddingModelPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder builderForValue)

public RagEmbeddingModelConfig.HybridSearchConfig.Builder setDenseEmbeddingModelPredictionEndpoint(RagEmbeddingModelConfig.VertexPredictionEndpoint.Builder builderForValue)

Required. The Vertex AI Prediction Endpoint that hosts the embedding model for dense embedding generations.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.VertexPredictionEndpoint dense_embedding_model_prediction_endpoint = 2 [(.google.api.field_behavior) = REQUIRED];

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

setField(Descriptors.FieldDescriptor field, Object value)

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

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

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

setSparseEmbeddingConfig(RagEmbeddingModelConfig.SparseEmbeddingConfig value)

public RagEmbeddingModelConfig.HybridSearchConfig.Builder setSparseEmbeddingConfig(RagEmbeddingModelConfig.SparseEmbeddingConfig value)

Optional. The configuration for sparse embedding generation. This field is optional the default behavior depends on the vector database choice on the RagCorpus.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig sparse_embedding_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RagEmbeddingModelConfig.SparseEmbeddingConfig
Returns
Type Description
RagEmbeddingModelConfig.HybridSearchConfig.Builder

setSparseEmbeddingConfig(RagEmbeddingModelConfig.SparseEmbeddingConfig.Builder builderForValue)

public RagEmbeddingModelConfig.HybridSearchConfig.Builder setSparseEmbeddingConfig(RagEmbeddingModelConfig.SparseEmbeddingConfig.Builder builderForValue)

Optional. The configuration for sparse embedding generation. This field is optional the default behavior depends on the vector database choice on the RagCorpus.

.google.cloud.aiplatform.v1beta1.RagEmbeddingModelConfig.SparseEmbeddingConfig sparse_embedding_config = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RagEmbeddingModelConfig.SparseEmbeddingConfig.Builder
Returns
Type Description
RagEmbeddingModelConfig.HybridSearchConfig.Builder

setUnknownFields(UnknownFieldSet unknownFields)

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