public static final class Retrieval.Builder extends GeneratedMessage.Builder<Retrieval.Builder> implements RetrievalOrBuilderDefines a retrieval tool that model can call to access external knowledge.
Protobuf type google.cloud.vertexai.v1.Retrieval
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > Retrieval.BuilderImplements
RetrievalOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public Retrieval build()| Returns | |
|---|---|
| Type | Description |
Retrieval |
|
buildPartial()
public Retrieval buildPartial()| Returns | |
|---|---|
| Type | Description |
Retrieval |
|
clear()
public Retrieval.Builder clear()| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
clearDisableAttribution() (deprecated)
public Retrieval.Builder clearDisableAttribution()Deprecated. google.cloud.vertexai.v1.Retrieval.disable_attribution is deprecated. See google/cloud/vertexai/v1/tool.proto;l=426
Optional. Deprecated. This option is no longer supported.
bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
This builder for chaining. |
clearSource()
public Retrieval.Builder clearSource()| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
clearVertexAiSearch()
public Retrieval.Builder clearVertexAiSearch()Set to use data source powered by Vertex AI Search.
.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
clearVertexRagStore()
public Retrieval.Builder clearVertexRagStore()Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
.google.cloud.vertexai.v1.VertexRagStore vertex_rag_store = 4;
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
getDefaultInstanceForType()
public Retrieval getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
Retrieval |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getDisableAttribution() (deprecated)
public boolean getDisableAttribution()Deprecated. google.cloud.vertexai.v1.Retrieval.disable_attribution is deprecated. See google/cloud/vertexai/v1/tool.proto;l=426
Optional. Deprecated. This option is no longer supported.
bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
The disableAttribution. |
getSourceCase()
public Retrieval.SourceCase getSourceCase()| Returns | |
|---|---|
| Type | Description |
Retrieval.SourceCase |
|
getVertexAiSearch()
public VertexAISearch getVertexAiSearch()Set to use data source powered by Vertex AI Search.
.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;
| Returns | |
|---|---|
| Type | Description |
VertexAISearch |
The vertexAiSearch. |
getVertexAiSearchBuilder()
public VertexAISearch.Builder getVertexAiSearchBuilder()Set to use data source powered by Vertex AI Search.
.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;
| Returns | |
|---|---|
| Type | Description |
VertexAISearch.Builder |
|
getVertexAiSearchOrBuilder()
public VertexAISearchOrBuilder getVertexAiSearchOrBuilder()Set to use data source powered by Vertex AI Search.
.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;
| Returns | |
|---|---|
| Type | Description |
VertexAISearchOrBuilder |
|
getVertexRagStore()
public VertexRagStore getVertexRagStore()Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
.google.cloud.vertexai.v1.VertexRagStore vertex_rag_store = 4;
| Returns | |
|---|---|
| Type | Description |
VertexRagStore |
The vertexRagStore. |
getVertexRagStoreBuilder()
public VertexRagStore.Builder getVertexRagStoreBuilder()Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
.google.cloud.vertexai.v1.VertexRagStore vertex_rag_store = 4;
| Returns | |
|---|---|
| Type | Description |
VertexRagStore.Builder |
|
getVertexRagStoreOrBuilder()
public VertexRagStoreOrBuilder getVertexRagStoreOrBuilder()Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
.google.cloud.vertexai.v1.VertexRagStore vertex_rag_store = 4;
| Returns | |
|---|---|
| Type | Description |
VertexRagStoreOrBuilder |
|
hasVertexAiSearch()
public boolean hasVertexAiSearch()Set to use data source powered by Vertex AI Search.
.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vertexAiSearch field is set. |
hasVertexRagStore()
public boolean hasVertexRagStore()Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
.google.cloud.vertexai.v1.VertexRagStore vertex_rag_store = 4;
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the vertexRagStore field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(Retrieval other)
public Retrieval.Builder mergeFrom(Retrieval other)| Parameter | |
|---|---|
| Name | Description |
other |
Retrieval |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public Retrieval.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public Retrieval.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
mergeVertexAiSearch(VertexAISearch value)
public Retrieval.Builder mergeVertexAiSearch(VertexAISearch value)Set to use data source powered by Vertex AI Search.
.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
VertexAISearch |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
mergeVertexRagStore(VertexRagStore value)
public Retrieval.Builder mergeVertexRagStore(VertexRagStore value)Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
.google.cloud.vertexai.v1.VertexRagStore vertex_rag_store = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
VertexRagStore |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
setDisableAttribution(boolean value) (deprecated)
public Retrieval.Builder setDisableAttribution(boolean value)Deprecated. google.cloud.vertexai.v1.Retrieval.disable_attribution is deprecated. See google/cloud/vertexai/v1/tool.proto;l=426
Optional. Deprecated. This option is no longer supported.
bool disable_attribution = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
booleanThe disableAttribution to set. |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
This builder for chaining. |
setVertexAiSearch(VertexAISearch value)
public Retrieval.Builder setVertexAiSearch(VertexAISearch value)Set to use data source powered by Vertex AI Search.
.google.cloud.vertexai.v1.VertexAISearch vertex_ai_search = 2;
| Parameter | |
|---|---|
| Name | Description |
value |
VertexAISearch |
| Returns | |
|---|---|
| Type | Description |
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.vertexai.v1.VertexAISearch vertex_ai_search = 2;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
VertexAISearch.Builder |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
setVertexRagStore(VertexRagStore value)
public Retrieval.Builder setVertexRagStore(VertexRagStore value)Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
.google.cloud.vertexai.v1.VertexRagStore vertex_rag_store = 4;
| Parameter | |
|---|---|
| Name | Description |
value |
VertexRagStore |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|
setVertexRagStore(VertexRagStore.Builder builderForValue)
public Retrieval.Builder setVertexRagStore(VertexRagStore.Builder builderForValue)Set to use data source powered by Vertex RAG store. User data is uploaded via the VertexRagDataService.
.google.cloud.vertexai.v1.VertexRagStore vertex_rag_store = 4;
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
VertexRagStore.Builder |
| Returns | |
|---|---|
| Type | Description |
Retrieval.Builder |
|