Package com.google.cloud.aiplatform.v1
Class VertexRagStore.Builder
java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<VertexRagStore.Builder>
com.google.cloud.aiplatform.v1.VertexRagStore.Builder
- All Implemented Interfaces:
VertexRagStoreOrBuilder,com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,Cloneable
- Enclosing class:
- VertexRagStore
public static final class VertexRagStore.Builder
extends com.google.protobuf.GeneratedMessage.Builder<VertexRagStore.Builder>
implements VertexRagStoreOrBuilder
Retrieve from Vertex RAG Store for grounding.Protobuf type
google.cloud.aiplatform.v1.VertexRagStore-
Method Summary
Modifier and TypeMethodDescriptionaddAllRagResources(Iterable<? extends VertexRagStore.RagResource> values) Optional.addRagResources(int index, VertexRagStore.RagResource value) Optional.addRagResources(int index, VertexRagStore.RagResource.Builder builderForValue) Optional.Optional.addRagResources(VertexRagStore.RagResource.Builder builderForValue) Optional.Optional.addRagResourcesBuilder(int index) Optional.build()clear()Optional.Optional.Deprecated.google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated.Deprecated.google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated.static final com.google.protobuf.Descriptors.Descriptorcom.google.protobuf.Descriptors.DescriptorgetRagResources(int index) Optional.getRagResourcesBuilder(int index) Optional.Optional.intOptional.Optional.getRagResourcesOrBuilder(int index) Optional.List<? extends VertexRagStore.RagResourceOrBuilder>Optional.Optional.Optional.Optional.intDeprecated.google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated.doubleDeprecated.google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated.booleanOptional.booleanDeprecated.google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated.booleanDeprecated.google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated.protected com.google.protobuf.GeneratedMessage.FieldAccessorTablefinal booleanmergeFrom(VertexRagStore other) mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) mergeFrom(com.google.protobuf.Message other) Optional.removeRagResources(int index) Optional.setRagResources(int index, VertexRagStore.RagResource value) Optional.setRagResources(int index, VertexRagStore.RagResource.Builder builderForValue) Optional.Optional.setRagRetrievalConfig(RagRetrievalConfig.Builder builderForValue) Optional.setSimilarityTopK(int value) Deprecated.google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated.setVectorDistanceThreshold(double value) Deprecated.google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated.Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toStringMethods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageExceptionMethods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface com.google.protobuf.Message.Builder
mergeDelimitedFrom, mergeDelimitedFromMethods inherited from interface com.google.protobuf.MessageLite.Builder
mergeFromMethods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage.Builder<VertexRagStore.Builder>
-
clear
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<VertexRagStore.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<VertexRagStore.Builder>
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VertexRagStore.Builder>
-
mergeFrom
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<VertexRagStore.Builder>
-
mergeFrom
public VertexRagStore.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<VertexRagStore.Builder>- Throws:
IOException
-
getRagResourcesList
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagResourcesListin interfaceVertexRagStoreOrBuilder
-
getRagResourcesCount
public int getRagResourcesCount()Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagResourcesCountin interfaceVertexRagStoreOrBuilder
-
getRagResources
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagResourcesin interfaceVertexRagStoreOrBuilder
-
setRagResources
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
setRagResources
public VertexRagStore.Builder setRagResources(int index, VertexRagStore.RagResource.Builder builderForValue) Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addRagResources
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addRagResources
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addRagResources
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addRagResources
public VertexRagStore.Builder addRagResources(int index, VertexRagStore.RagResource.Builder builderForValue) Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addAllRagResources
public VertexRagStore.Builder addAllRagResources(Iterable<? extends VertexRagStore.RagResource> values) Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
clearRagResources
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
removeRagResources
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getRagResourcesBuilder
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getRagResourcesOrBuilder
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagResourcesOrBuilderin interfaceVertexRagStoreOrBuilder
-
getRagResourcesOrBuilderList
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagResourcesOrBuilderListin interfaceVertexRagStoreOrBuilder
-
addRagResourcesBuilder
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
addRagResourcesBuilder
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
getRagResourcesBuilderList
Optional. The representation of the rag source. It can be used to specify corpus only or ragfiles. Currently only support one corpus or multiple files from one corpus. In the future we may open up multiple corpora support.
repeated .google.cloud.aiplatform.v1.VertexRagStore.RagResource rag_resources = 4 [(.google.api.field_behavior) = OPTIONAL]; -
hasSimilarityTopK
Deprecated.google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See google/cloud/aiplatform/v1/tool.proto;l=494Optional. Number of top k results to return from the selected corpora.
optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasSimilarityTopKin interfaceVertexRagStoreOrBuilder- Returns:
- Whether the similarityTopK field is set.
-
getSimilarityTopK
Deprecated.google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See google/cloud/aiplatform/v1/tool.proto;l=494Optional. Number of top k results to return from the selected corpora.
optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getSimilarityTopKin interfaceVertexRagStoreOrBuilder- Returns:
- The similarityTopK.
-
setSimilarityTopK
Deprecated.google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See google/cloud/aiplatform/v1/tool.proto;l=494Optional. Number of top k results to return from the selected corpora.
optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The similarityTopK to set.- Returns:
- This builder for chaining.
-
clearSimilarityTopK
Deprecated.google.cloud.aiplatform.v1.VertexRagStore.similarity_top_k is deprecated. See google/cloud/aiplatform/v1/tool.proto;l=494Optional. Number of top k results to return from the selected corpora.
optional int32 similarity_top_k = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasVectorDistanceThreshold
Deprecated.google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. See google/cloud/aiplatform/v1/tool.proto;l=499Optional. Only return results with vector distance smaller than the threshold.
optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
hasVectorDistanceThresholdin interfaceVertexRagStoreOrBuilder- Returns:
- Whether the vectorDistanceThreshold field is set.
-
getVectorDistanceThreshold
Deprecated.google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. See google/cloud/aiplatform/v1/tool.proto;l=499Optional. Only return results with vector distance smaller than the threshold.
optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Specified by:
getVectorDistanceThresholdin interfaceVertexRagStoreOrBuilder- Returns:
- The vectorDistanceThreshold.
-
setVectorDistanceThreshold
Deprecated.google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. See google/cloud/aiplatform/v1/tool.proto;l=499Optional. Only return results with vector distance smaller than the threshold.
optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Parameters:
value- The vectorDistanceThreshold to set.- Returns:
- This builder for chaining.
-
clearVectorDistanceThreshold
Deprecated.google.cloud.aiplatform.v1.VertexRagStore.vector_distance_threshold is deprecated. See google/cloud/aiplatform/v1/tool.proto;l=499Optional. Only return results with vector distance smaller than the threshold.
optional double vector_distance_threshold = 3 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];- Returns:
- This builder for chaining.
-
hasRagRetrievalConfig
public boolean hasRagRetrievalConfig()Optional. The retrieval config for the Rag query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
hasRagRetrievalConfigin interfaceVertexRagStoreOrBuilder- Returns:
- Whether the ragRetrievalConfig field is set.
-
getRagRetrievalConfig
Optional. The retrieval config for the Rag query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagRetrievalConfigin interfaceVertexRagStoreOrBuilder- Returns:
- The ragRetrievalConfig.
-
setRagRetrievalConfig
Optional. The retrieval config for the Rag query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
setRagRetrievalConfig
Optional. The retrieval config for the Rag query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
mergeRagRetrievalConfig
Optional. The retrieval config for the Rag query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
clearRagRetrievalConfig
Optional. The retrieval config for the Rag query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getRagRetrievalConfigBuilder
Optional. The retrieval config for the Rag query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL]; -
getRagRetrievalConfigOrBuilder
Optional. The retrieval config for the Rag query.
.google.cloud.aiplatform.v1.RagRetrievalConfig rag_retrieval_config = 6 [(.google.api.field_behavior) = OPTIONAL];- Specified by:
getRagRetrievalConfigOrBuilderin interfaceVertexRagStoreOrBuilder
-