Class Retrieval.Builder (3.41.0)

public static final class Retrieval.Builder extends GeneratedMessageV3.Builder<Retrieval.Builder> implements RetrievalOrBuilder

Defines a retrieval tool that model can call to access external knowledge.

Protobuf type google.cloud.aiplatform.v1.Retrieval

Implements

RetrievalOrBuilder

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public Retrieval.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Retrieval.Builder
Overrides

build()

public Retrieval build()
Returns
TypeDescription
Retrieval

buildPartial()

public Retrieval buildPartial()
Returns
TypeDescription
Retrieval

clear()

public Retrieval.Builder clear()
Returns
TypeDescription
Retrieval.Builder
Overrides

clearDisableAttribution()

public Retrieval.Builder clearDisableAttribution()

Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.

bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
Retrieval.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public Retrieval.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
Retrieval.Builder
Overrides

clearOneof(Descriptors.OneofDescriptor oneof)

public Retrieval.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
Retrieval.Builder
Overrides

clearSource()

public Retrieval.Builder clearSource()
Returns
TypeDescription
Retrieval.Builder

clearVertexAiSearch()

public Retrieval.Builder clearVertexAiSearch()

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;

Returns
TypeDescription
Retrieval.Builder

clone()

public Retrieval.Builder clone()
Returns
TypeDescription
Retrieval.Builder
Overrides

getDefaultInstanceForType()

public Retrieval getDefaultInstanceForType()
Returns
TypeDescription
Retrieval

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getDisableAttribution()

public boolean getDisableAttribution()

Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.

bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];

Returns
TypeDescription
boolean

The disableAttribution.

getSourceCase()

public Retrieval.SourceCase getSourceCase()
Returns
TypeDescription
Retrieval.SourceCase

getVertexAiSearch()

public VertexAISearch getVertexAiSearch()

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;

Returns
TypeDescription
VertexAISearch

The vertexAiSearch.

getVertexAiSearchBuilder()

public VertexAISearch.Builder getVertexAiSearchBuilder()

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;

Returns
TypeDescription
VertexAISearch.Builder

getVertexAiSearchOrBuilder()

public VertexAISearchOrBuilder getVertexAiSearchOrBuilder()

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;

Returns
TypeDescription
VertexAISearchOrBuilder

hasVertexAiSearch()

public boolean hasVertexAiSearch()

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;

Returns
TypeDescription
boolean

Whether the vertexAiSearch field is set.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(Retrieval other)

public Retrieval.Builder mergeFrom(Retrieval other)
Parameter
NameDescription
otherRetrieval
Returns
TypeDescription
Retrieval.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public Retrieval.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
Retrieval.Builder
Overrides
Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public Retrieval.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
Retrieval.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final Retrieval.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Retrieval.Builder
Overrides

mergeVertexAiSearch(VertexAISearch value)

public Retrieval.Builder mergeVertexAiSearch(VertexAISearch value)

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;

Parameter
NameDescription
valueVertexAISearch
Returns
TypeDescription
Retrieval.Builder

setDisableAttribution(boolean value)

public Retrieval.Builder setDisableAttribution(boolean value)

Optional. Disable using the result from this tool in detecting grounding attribution. This does not affect how the result is given to the model for generation.

bool disable_attribution = 3 [(.google.api.field_behavior) = OPTIONAL];

Parameter
NameDescription
valueboolean

The disableAttribution to set.

Returns
TypeDescription
Retrieval.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public Retrieval.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
Retrieval.Builder
Overrides

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

public Retrieval.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
Retrieval.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final Retrieval.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
Retrieval.Builder
Overrides

setVertexAiSearch(VertexAISearch value)

public Retrieval.Builder setVertexAiSearch(VertexAISearch value)

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;

Parameter
NameDescription
valueVertexAISearch
Returns
TypeDescription
Retrieval.Builder

setVertexAiSearch(VertexAISearch.Builder builderForValue)

public Retrieval.Builder setVertexAiSearch(VertexAISearch.Builder builderForValue)

Set to use data source powered by Vertex AI Search.

.google.cloud.aiplatform.v1.VertexAISearch vertex_ai_search = 2;

Parameter
NameDescription
builderForValueVertexAISearch.Builder
Returns
TypeDescription
Retrieval.Builder