Send feedback
Class RagQuery.Builder (3.57.0)
Stay organized with collections
Save and categorize content based on your preferences.
Version latest keyboard_arrow_down
public static final class RagQuery . Builder extends GeneratedMessageV3 . Builder<RagQuery . Builder > implements RagQueryOrBuilder
A query to retrieve relevant contexts.
Protobuf type google.cloud.aiplatform.v1.RagQuery
Inherited Members
com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder()
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.internalGetMutableMapFieldReflection(int)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownLengthDelimitedField(int,com.google.protobuf.ByteString)
com.google.protobuf.GeneratedMessageV3.Builder.mergeUnknownVarintField(int,int)
com.google.protobuf.GeneratedMessageV3.Builder.parseUnknownField(com.google.protobuf.CodedInputStream,com.google.protobuf.ExtensionRegistryLite,int)
com.google.protobuf.GeneratedMessageV3.Builder.setUnknownFieldSetBuilder(com.google.protobuf.UnknownFieldSet.Builder)
Static Methods
public static final Descriptors . Descriptor getDescriptor ()
Methods
public RagQuery . Builder addRepeatedField ( Descriptors . FieldDescriptor field , Object value )
Overrides
public RagQuery buildPartial ()
public RagQuery . Builder clear ()
Overrides
public RagQuery . Builder clearField ( Descriptors . FieldDescriptor field )
Overrides
public RagQuery . Builder clearOneof ( Descriptors . OneofDescriptor oneof )
Overrides
public RagQuery . Builder clearQuery ()
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];
clearText()
public RagQuery . Builder clearText ()
Optional. The query in text format to get relevant contexts.
string text = 1 [(.google.api.field_behavior) = OPTIONAL];
public RagQuery . Builder clone ()
Overrides
public RagQuery getDefaultInstanceForType ()
public Descriptors . Descriptor getDescriptorForType ()
Overrides
public RagQuery . QueryCase getQueryCase ()
public RagRetrievalConfig getRagRetrievalConfig ()
Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
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];
public RagRetrievalConfigOrBuilder getRagRetrievalConfigOrBuilder ()
Optional. The retrieval config for the query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];
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.
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()
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.
protected GeneratedMessageV3 . FieldAccessorTable internalGetFieldAccessorTable ()
Overrides
public final boolean isInitialized ()
Overrides
public RagQuery . Builder mergeFrom ( RagQuery other )
Parameter
Name
Description
other
RagQuery
public RagQuery . Builder mergeFrom ( CodedInputStream input , ExtensionRegistryLite extensionRegistry )
Overrides
public RagQuery . Builder mergeFrom ( Message other )
Parameter
Name
Description
other
Message
Overrides
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];
public final RagQuery . Builder mergeUnknownFields ( UnknownFieldSet unknownFields )
Overrides
public RagQuery . Builder setField ( Descriptors . FieldDescriptor field , Object value )
Overrides
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];
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];
public RagQuery . Builder setRepeatedField ( Descriptors . FieldDescriptor field , int index , Object value )
Overrides
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
String
The text to set.
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
ByteString
The bytes for text to set.
public final RagQuery . Builder setUnknownFields ( UnknownFieldSet unknownFields )
Overrides
Send feedback
Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
Last updated 2025-01-27 UTC.
Need to tell us more?
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-01-27 UTC."],[],[]]