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