public static final class RagQuery.Builder extends GeneratedMessage.Builder<RagQuery.Builder> implements RagQueryOrBuilderA query to retrieve relevant contexts.
Protobuf type google.cloud.aiplatform.v1.RagQuery
Inheritance
java.lang.Object > AbstractMessageLite.Builder<MessageType,BuilderType> > AbstractMessage.Builder<BuilderType> > GeneratedMessage.Builder > RagQuery.BuilderImplements
RagQueryOrBuilderStatic Methods
getDescriptor()
public static final Descriptors.Descriptor getDescriptor()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
Methods
build()
public RagQuery build()| Returns | |
|---|---|
| Type | Description |
RagQuery |
|
buildPartial()
public RagQuery buildPartial()| Returns | |
|---|---|
| Type | Description |
RagQuery |
|
clear()
public RagQuery.Builder clear()| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
clearQuery()
public RagQuery.Builder clearQuery()| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
clearRagRetrievalConfig()
public RagQuery.Builder clearRagRetrievalConfig()Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
clearText()
public RagQuery.Builder clearText()Optional. The query in text format to get relevant contexts.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
This builder for chaining. |
getDefaultInstanceForType()
public RagQuery getDefaultInstanceForType()| Returns | |
|---|---|
| Type | Description |
RagQuery |
|
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()| Returns | |
|---|---|
| Type | Description |
Descriptor |
|
getQueryCase()
public RagQuery.QueryCase getQueryCase()| Returns | |
|---|---|
| Type | Description |
RagQuery.QueryCase |
|
getRagRetrievalConfig()
public RagRetrievalConfig getRagRetrievalConfig()Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RagRetrievalConfig |
The ragRetrievalConfig. |
getRagRetrievalConfigBuilder()
public RagRetrievalConfig.Builder getRagRetrievalConfigBuilder()Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RagRetrievalConfig.Builder |
|
getRagRetrievalConfigOrBuilder()
public RagRetrievalConfigOrBuilder getRagRetrievalConfigOrBuilder()Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
RagRetrievalConfigOrBuilder |
|
getText()
public String getText()Optional. The query in text format to get relevant contexts.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
String |
The text. |
getTextBytes()
public ByteString getTextBytes()Optional. The query in text format to get relevant contexts.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
ByteString |
The bytes for text. |
hasRagRetrievalConfig()
public boolean hasRagRetrievalConfig()Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the ragRetrievalConfig field is set. |
hasText()
public boolean hasText()Optional. The query in text format to get relevant contexts.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Returns | |
|---|---|
| Type | Description |
boolean |
Whether the text field is set. |
internalGetFieldAccessorTable()
protected GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()| Returns | |
|---|---|
| Type | Description |
FieldAccessorTable |
|
isInitialized()
public final boolean isInitialized()| Returns | |
|---|---|
| Type | Description |
boolean |
|
mergeFrom(RagQuery other)
public RagQuery.Builder mergeFrom(RagQuery other)| Parameter | |
|---|---|
| Name | Description |
other |
RagQuery |
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
public RagQuery.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)| Parameters | |
|---|---|
| Name | Description |
input |
CodedInputStream |
extensionRegistry |
ExtensionRegistryLite |
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
| Exceptions | |
|---|---|
| Type | Description |
IOException |
|
mergeFrom(Message other)
public RagQuery.Builder mergeFrom(Message other)| Parameter | |
|---|---|
| Name | Description |
other |
Message |
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
mergeRagRetrievalConfig(RagRetrievalConfig value)
public RagQuery.Builder mergeRagRetrievalConfig(RagRetrievalConfig value)Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RagRetrievalConfig |
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
setRagRetrievalConfig(RagRetrievalConfig value)
public RagQuery.Builder setRagRetrievalConfig(RagRetrievalConfig value)Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
RagRetrievalConfig |
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
setRagRetrievalConfig(RagRetrievalConfig.Builder builderForValue)
public RagQuery.Builder setRagRetrievalConfig(RagRetrievalConfig.Builder builderForValue)Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
builderForValue |
RagRetrievalConfig.Builder |
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
|
setText(String value)
public RagQuery.Builder setText(String value)Optional. The query in text format to get relevant contexts.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
StringThe text to set. |
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
This builder for chaining. |
setTextBytes(ByteString value)
public RagQuery.Builder setTextBytes(ByteString value)Optional. The query in text format to get relevant contexts.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
| Parameter | |
|---|---|
| Name | Description |
value |
ByteStringThe bytes for text to set. |
| Returns | |
|---|---|
| Type | Description |
RagQuery.Builder |
This builder for chaining. |