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.v1.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.v1.RagRetrievalConfig.Filter filter = 3 [(.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

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.v1.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.v1.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.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
RagRetrievalConfig.FilterOrBuilder

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.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
Type Description
boolean

Whether the filter 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.v1.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

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.v1.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.v1.RagRetrievalConfig.Filter filter = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
Name Description
builderForValue RagRetrievalConfig.Filter.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