Class RagRetrievalConfig.Builder (3.56.0)

public static final class RagRetrievalConfig.Builder extends GeneratedMessageV3.Builder<RagRetrievalConfig.Builder> implements RagRetrievalConfigOrBuilder

Specifies the context retrieval config.

Protobuf type google.cloud.aiplatform.v1beta1.RagRetrievalConfig

Static Methods

getDescriptor()

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

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

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

build()

public RagRetrievalConfig build()
Returns
Type Description
RagRetrievalConfig

buildPartial()

public RagRetrievalConfig buildPartial()
Returns
Type Description
RagRetrievalConfig

clear()

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

clearField(Descriptors.FieldDescriptor field)

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

clearFilter()

public RagRetrievalConfig.Builder clearFilter()

Optional. Config for filters.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Builder

clearHybridSearch()

public RagRetrievalConfig.Builder clearHybridSearch()

Optional. Config for Hybrid Search.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Builder

clearOneof(Descriptors.OneofDescriptor oneof)

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

clearRanking()

public RagRetrievalConfig.Builder clearRanking()

Optional. Config for ranking and reranking.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Builder

clearTopK()

public RagRetrievalConfig.Builder clearTopK()

Optional. The number of contexts to retrieve.

int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Builder

This builder for chaining.

clone()

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

getDefaultInstanceForType()

public RagRetrievalConfig getDefaultInstanceForType()
Returns
Type Description
RagRetrievalConfig

getDescriptorForType()

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

getFilter()

public RagRetrievalConfig.Filter getFilter()

Optional. Config for filters.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Filter

The filter.

getFilterBuilder()

public RagRetrievalConfig.Filter.Builder getFilterBuilder()

Optional. Config for filters.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Filter.Builder

getFilterOrBuilder()

public RagRetrievalConfig.FilterOrBuilder getFilterOrBuilder()

Optional. Config for filters.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.FilterOrBuilder

getHybridSearch()

public RagRetrievalConfig.HybridSearch getHybridSearch()

Optional. Config for Hybrid Search.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.HybridSearch

The hybridSearch.

getHybridSearchBuilder()

public RagRetrievalConfig.HybridSearch.Builder getHybridSearchBuilder()

Optional. Config for Hybrid Search.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.HybridSearch.Builder

getHybridSearchOrBuilder()

public RagRetrievalConfig.HybridSearchOrBuilder getHybridSearchOrBuilder()

Optional. Config for Hybrid Search.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.HybridSearchOrBuilder

getRanking()

public RagRetrievalConfig.Ranking getRanking()

Optional. Config for ranking and reranking.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Ranking

The ranking.

getRankingBuilder()

public RagRetrievalConfig.Ranking.Builder getRankingBuilder()

Optional. Config for ranking and reranking.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.Ranking.Builder

getRankingOrBuilder()

public RagRetrievalConfig.RankingOrBuilder getRankingOrBuilder()

Optional. Config for ranking and reranking.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.RankingOrBuilder

getTopK()

public int getTopK()

Optional. The number of contexts to retrieve.

int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
int

The topK.

hasFilter()

public boolean hasFilter()

Optional. Config for filters.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the filter field is set.

hasHybridSearch()

public boolean hasHybridSearch()

Optional. Config for Hybrid Search.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the hybridSearch field is set.

hasRanking()

public boolean hasRanking()

Optional. Config for ranking and reranking.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the ranking field is set.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFilter(RagRetrievalConfig.Filter value)

public RagRetrievalConfig.Builder mergeFilter(RagRetrievalConfig.Filter value)

Optional. Config for filters.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RagRetrievalConfig.Filter
Returns
Type Description
RagRetrievalConfig.Builder

mergeFrom(RagRetrievalConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

mergeHybridSearch(RagRetrievalConfig.HybridSearch value)

public RagRetrievalConfig.Builder mergeHybridSearch(RagRetrievalConfig.HybridSearch value)

Optional. Config for Hybrid Search.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RagRetrievalConfig.HybridSearch
Returns
Type Description
RagRetrievalConfig.Builder

mergeRanking(RagRetrievalConfig.Ranking value)

public RagRetrievalConfig.Builder mergeRanking(RagRetrievalConfig.Ranking value)

Optional. Config for ranking and reranking.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RagRetrievalConfig.Ranking
Returns
Type Description
RagRetrievalConfig.Builder

mergeUnknownFields(UnknownFieldSet unknownFields)

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

setField(Descriptors.FieldDescriptor field, Object value)

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

setFilter(RagRetrievalConfig.Filter value)

public RagRetrievalConfig.Builder setFilter(RagRetrievalConfig.Filter value)

Optional. Config for filters.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RagRetrievalConfig.Filter
Returns
Type Description
RagRetrievalConfig.Builder

setFilter(RagRetrievalConfig.Filter.Builder builderForValue)

public RagRetrievalConfig.Builder setFilter(RagRetrievalConfig.Filter.Builder builderForValue)

Optional. Config for filters.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RagRetrievalConfig.Filter.Builder
Returns
Type Description
RagRetrievalConfig.Builder

setHybridSearch(RagRetrievalConfig.HybridSearch value)

public RagRetrievalConfig.Builder setHybridSearch(RagRetrievalConfig.HybridSearch value)

Optional. Config for Hybrid Search.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RagRetrievalConfig.HybridSearch
Returns
Type Description
RagRetrievalConfig.Builder

setHybridSearch(RagRetrievalConfig.HybridSearch.Builder builderForValue)

public RagRetrievalConfig.Builder setHybridSearch(RagRetrievalConfig.HybridSearch.Builder builderForValue)

Optional. Config for Hybrid Search.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.HybridSearch hybrid_search = 2 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RagRetrievalConfig.HybridSearch.Builder
Returns
Type Description
RagRetrievalConfig.Builder

setRanking(RagRetrievalConfig.Ranking value)

public RagRetrievalConfig.Builder setRanking(RagRetrievalConfig.Ranking value)

Optional. Config for ranking and reranking.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value RagRetrievalConfig.Ranking
Returns
Type Description
RagRetrievalConfig.Builder

setRanking(RagRetrievalConfig.Ranking.Builder builderForValue)

public RagRetrievalConfig.Builder setRanking(RagRetrievalConfig.Ranking.Builder builderForValue)

Optional. Config for ranking and reranking.

.google.cloud.aiplatform.v1beta1.RagRetrievalConfig.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RagRetrievalConfig.Ranking.Builder
Returns
Type Description
RagRetrievalConfig.Builder

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

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

setTopK(int value)

public RagRetrievalConfig.Builder setTopK(int value)

Optional. The number of contexts to retrieve.

int32 top_k = 1 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
value int

The topK to set.

Returns
Type Description
RagRetrievalConfig.Builder

This builder for chaining.

setUnknownFields(UnknownFieldSet unknownFields)

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