Class GenAiAdvancedFeaturesConfig.RagConfig.Builder (1.43.0)

public static final class GenAiAdvancedFeaturesConfig.RagConfig.Builder extends GeneratedMessage.Builder<GenAiAdvancedFeaturesConfig.RagConfig.Builder> implements GenAiAdvancedFeaturesConfig.RagConfigOrBuilder

Configuration for Retrieval Augmented Generation feature.

Protobuf type google.cloud.vertexai.v1.GenAiAdvancedFeaturesConfig.RagConfig

Static Methods

getDescriptor()

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

Methods

build()

public GenAiAdvancedFeaturesConfig.RagConfig build()
Returns
Type Description
GenAiAdvancedFeaturesConfig.RagConfig

buildPartial()

public GenAiAdvancedFeaturesConfig.RagConfig buildPartial()
Returns
Type Description
GenAiAdvancedFeaturesConfig.RagConfig

clear()

public GenAiAdvancedFeaturesConfig.RagConfig.Builder clear()
Returns
Type Description
GenAiAdvancedFeaturesConfig.RagConfig.Builder
Overrides

clearEnableRag()

public GenAiAdvancedFeaturesConfig.RagConfig.Builder clearEnableRag()

If true, enable Retrieval Augmented Generation in ChatCompletion request. Once enabled, the endpoint will be identified as GenAI endpoint and Arthedain router will be used.

bool enable_rag = 1;

Returns
Type Description
GenAiAdvancedFeaturesConfig.RagConfig.Builder

This builder for chaining.

getDefaultInstanceForType()

public GenAiAdvancedFeaturesConfig.RagConfig getDefaultInstanceForType()
Returns
Type Description
GenAiAdvancedFeaturesConfig.RagConfig

getDescriptorForType()

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

getEnableRag()

public boolean getEnableRag()

If true, enable Retrieval Augmented Generation in ChatCompletion request. Once enabled, the endpoint will be identified as GenAI endpoint and Arthedain router will be used.

bool enable_rag = 1;

Returns
Type Description
boolean

The enableRag.

internalGetFieldAccessorTable()

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

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(GenAiAdvancedFeaturesConfig.RagConfig other)

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

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

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

mergeFrom(Message other)

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

setEnableRag(boolean value)

public GenAiAdvancedFeaturesConfig.RagConfig.Builder setEnableRag(boolean value)

If true, enable Retrieval Augmented Generation in ChatCompletion request. Once enabled, the endpoint will be identified as GenAI endpoint and Arthedain router will be used.

bool enable_rag = 1;

Parameter
Name Description
value boolean

The enableRag to set.

Returns
Type Description
GenAiAdvancedFeaturesConfig.RagConfig.Builder

This builder for chaining.