public static final class AsyncRetrieveContextsRequest.Builder extends GeneratedMessage.Builder<AsyncRetrieveContextsRequest.Builder> implements AsyncRetrieveContextsRequestOrBuilderRequest message for VertexRagService.AsyncRetrieveContexts.
Protobuf type google.cloud.aiplatform.v1.AsyncRetrieveContextsRequest
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > AsyncRetrieveContextsRequest.BuilderImplements
AsyncRetrieveContextsRequestOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
addAllTools(Iterable<? extends Tool> values)
public AsyncRetrieveContextsRequest.Builder addAllTools(Iterable<? extends Tool> values)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
values |
Iterable<? extends com.google.cloud.aiplatform.v1.Tool> |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
addTools(Tool value)
public AsyncRetrieveContextsRequest.Builder addTools(Tool value)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
Tool |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
addTools(Tool.Builder builderForValue)
public AsyncRetrieveContextsRequest.Builder addTools(Tool.Builder builderForValue)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
Tool.Builder |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
addTools(int index, Tool value)
public AsyncRetrieveContextsRequest.Builder addTools(int index, Tool value)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Tool |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
addTools(int index, Tool.Builder builderForValue)
public AsyncRetrieveContextsRequest.Builder addTools(int index, Tool.Builder builderForValue)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Tool.Builder |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
addToolsBuilder()
public Tool.Builder addToolsBuilder()Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
Tool.Builder |
|
addToolsBuilder(int index)
public Tool.Builder addToolsBuilder(int index)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Tool.Builder |
|
build()
public AsyncRetrieveContextsRequest build()| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest |
|
buildPartial()
public AsyncRetrieveContextsRequest buildPartial()| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest |
|
clear()
public AsyncRetrieveContextsRequest.Builder clear()| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
clearParent()
public AsyncRetrieveContextsRequest.Builder clearParent() Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
This builder for chaining. |
clearQuery()
public AsyncRetrieveContextsRequest.Builder clearQuery()Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
clearTools()
public AsyncRetrieveContextsRequest.Builder clearTools()Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
getDefaultInstanceForType()
public AsyncRetrieveContextsRequest getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getParent()
public String getParent() Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
String |
The parent. |
getParentBytes()
public ByteString getParentBytes() Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for parent. |
getQuery()
public RagQuery getQuery()Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RagQuery |
The query. |
getQueryBuilder()
public RagQuery.Builder getQueryBuilder()Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
getQueryOrBuilder()
public RagQueryOrBuilder getQueryOrBuilder()Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
RagQueryOrBuilder |
|
getTools(int index)
public Tool getTools(int index)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Tool |
|
getToolsBuilder(int index)
public Tool.Builder getToolsBuilder(int index)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
Tool.Builder |
|
getToolsBuilderList()
public List<Tool.Builder> getToolsBuilderList()Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Builder> |
|
getToolsCount()
public int getToolsCount()Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
int |
|
getToolsList()
public List<Tool> getToolsList()Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<Tool> |
|
getToolsOrBuilder(int index)
public ToolOrBuilder getToolsOrBuilder(int index)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
ToolOrBuilder |
|
getToolsOrBuilderList()
public List<? extends ToolOrBuilder> getToolsOrBuilderList()Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
List<? extends com.google.cloud.aiplatform.v1.ToolOrBuilder> |
|
hasQuery()
public boolean hasQuery()Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the query field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(AsyncRetrieveContextsRequest other)
public AsyncRetrieveContextsRequest.Builder mergeFrom(AsyncRetrieveContextsRequest other)| Parameter | |
|---|---|
| Name | Description |
other |
AsyncRetrieveContextsRequest |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public AsyncRetrieveContextsRequest.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public AsyncRetrieveContextsRequest.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
mergeQuery(RagQuery value)
public AsyncRetrieveContextsRequest.Builder mergeQuery(RagQuery value)Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
RagQuery |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
removeTools(int index)
public AsyncRetrieveContextsRequest.Builder removeTools(int index)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
index |
int |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
setParent(String value)
public AsyncRetrieveContextsRequest.Builder setParent(String value) Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe parent to set. |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
This builder for chaining. |
setParentBytes(ByteString value)
public AsyncRetrieveContextsRequest.Builder setParentBytes(ByteString value) Required. The resource name of the Location from which to retrieve
RagContexts. The users must have permission to make a call in the project.
Format:
projects/{project}/locations/{location}.
string parent = 1 [(.google.api.field_behavior) = REQUIRED, (.google.api.resource_reference) = { ... }
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for parent to set. |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
This builder for chaining. |
setQuery(RagQuery value)
public AsyncRetrieveContextsRequest.Builder setQuery(RagQuery value)Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
value |
RagQuery |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
setQuery(RagQuery.Builder builderForValue)
public AsyncRetrieveContextsRequest.Builder setQuery(RagQuery.Builder builderForValue)Required. Single RAG retrieve query.
.google.cloud.aiplatform.v1.RagQuery query = 2 [(.google.api.field_behavior) = REQUIRED];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RagQuery.Builder |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
setTools(int index, Tool value)
public AsyncRetrieveContextsRequest.Builder setTools(int index, Tool value)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
value |
Tool |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|
setTools(int index, Tool.Builder builderForValue)
public AsyncRetrieveContextsRequest.Builder setTools(int index, Tool.Builder builderForValue)Optional. The tools to use for AskContexts.
repeated .google.cloud.aiplatform.v1.Tool tools = 3 [(.google.api.field_behavior) = OPTIONAL];
| Parameters | |
|---|---|
| Name | Description |
index |
int |
builderForValue |
Tool.Builder |
| Returns | |
|---|---|
| Type | Description |
AsyncRetrieveContextsRequest.Builder |
|