public static final class RagQuery.Builder extends GeneratedMessageV3.Builder<RagQuery.Builder> implements RagQueryOrBuilder
A query to retrieve relevant contexts.
Protobuf type google.cloud.aiplatform.v1beta1.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 clearRanking()
Optional. Configurations for hybrid search results ranking.
.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagQuery.Builder clearSimilarityTopK()
Optional. The number of contexts to retrieve.
int32 similarity_top_k = 2 [(.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 RagQuery.Ranking getRanking()
Optional. Configurations for hybrid search results ranking.
.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagQuery.Ranking.Builder getRankingBuilder()
Optional. Configurations for hybrid search results ranking.
.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagQuery.RankingOrBuilder getRankingOrBuilder()
Optional. Configurations for hybrid search results ranking.
.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public int getSimilarityTopK()
Optional. The number of contexts to retrieve.
int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
int |
The similarityTopK.
|
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 hasRanking()
Optional. Configurations for hybrid search results ranking.
.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
Returns |
Type |
Description |
boolean |
Whether the ranking 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 mergeRanking(RagQuery.Ranking value)
Optional. Configurations for hybrid search results ranking.
.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.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 setRanking(RagQuery.Ranking value)
Optional. Configurations for hybrid search results ranking.
.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagQuery.Builder setRanking(RagQuery.Ranking.Builder builderForValue)
Optional. Configurations for hybrid search results ranking.
.google.cloud.aiplatform.v1beta1.RagQuery.Ranking ranking = 4 [(.google.api.field_behavior) = OPTIONAL];
public RagQuery.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Overrides
public RagQuery.Builder setSimilarityTopK(int value)
Optional. The number of contexts to retrieve.
int32 similarity_top_k = 2 [(.google.api.field_behavior) = OPTIONAL];
Parameter |
Name |
Description |
value |
int
The similarityTopK to set.
|
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