Class RetrieveContextsRequest.VertexRagStore.Builder

java.lang.Object
com.google.protobuf.AbstractMessageLite.Builder
com.google.protobuf.AbstractMessage.Builder<BuilderT>
com.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.Builder>
com.google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.Builder
All Implemented Interfaces:
RetrieveContextsRequest.VertexRagStoreOrBuilder, com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Cloneable
Enclosing class:
RetrieveContextsRequest.VertexRagStore

public static final class RetrieveContextsRequest.VertexRagStore.Builder extends com.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.Builder> implements RetrieveContextsRequest.VertexRagStoreOrBuilder
 The data source for Vertex RagStore.
 
Protobuf type google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore
  • Method Details

    • getDescriptor

      public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
    • internalGetFieldAccessorTable

      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
      Specified by:
      internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.Builder>
    • clear

      Specified by:
      clear in interface com.google.protobuf.Message.Builder
      Specified by:
      clear in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      clear in class com.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.Builder>
    • getDescriptorForType

      public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
      Specified by:
      getDescriptorForType in interface com.google.protobuf.Message.Builder
      Specified by:
      getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
      Overrides:
      getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.Builder>
    • getDefaultInstanceForType

      public RetrieveContextsRequest.VertexRagStore getDefaultInstanceForType()
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
      Specified by:
      getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
    • build

      Specified by:
      build in interface com.google.protobuf.Message.Builder
      Specified by:
      build in interface com.google.protobuf.MessageLite.Builder
    • buildPartial

      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public RetrieveContextsRequest.VertexRagStore.Builder mergeFrom(com.google.protobuf.Message other)
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RetrieveContextsRequest.VertexRagStore.Builder>
    • mergeFrom

    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage.Builder<RetrieveContextsRequest.VertexRagStore.Builder>
    • mergeFrom

      public RetrieveContextsRequest.VertexRagStore.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Specified by:
      mergeFrom in interface com.google.protobuf.Message.Builder
      Specified by:
      mergeFrom in interface com.google.protobuf.MessageLite.Builder
      Overrides:
      mergeFrom in class com.google.protobuf.AbstractMessage.Builder<RetrieveContextsRequest.VertexRagStore.Builder>
      Throws:
      IOException
    • getRagCorporaList

      @Deprecated public com.google.protobuf.ProtocolStringList getRagCorporaList()
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagCorporaList in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
      Returns:
      A list containing the ragCorpora.
    • getRagCorporaCount

      @Deprecated public int getRagCorporaCount()
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagCorporaCount in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
      Returns:
      The count of ragCorpora.
    • getRagCorpora

      @Deprecated public String getRagCorpora(int index)
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagCorpora in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ragCorpora at the given index.
    • getRagCorporaBytes

      @Deprecated public com.google.protobuf.ByteString getRagCorporaBytes(int index)
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagCorporaBytes in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ragCorpora at the given index.
    • setRagCorpora

      @Deprecated public RetrieveContextsRequest.VertexRagStore.Builder setRagCorpora(int index, String value)
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The ragCorpora to set.
      Returns:
      This builder for chaining.
    • addRagCorpora

      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The ragCorpora to add.
      Returns:
      This builder for chaining.
    • addAllRagCorpora

      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The ragCorpora to add.
      Returns:
      This builder for chaining.
    • clearRagCorpora

      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addRagCorporaBytes

      @Deprecated public RetrieveContextsRequest.VertexRagStore.Builder addRagCorporaBytes(com.google.protobuf.ByteString value)
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.rag_corpora is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=153
       Optional. Deprecated. Please use rag_resources to specify the data
       source.
       
      repeated string rag_corpora = 1 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the ragCorpora to add.
      Returns:
      This builder for chaining.
    • 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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagResourcesList in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
    • 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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagResourcesCount in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
    • getRagResources

      public RetrieveContextsRequest.VertexRagStore.RagResource getRagResources(int index)
       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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagResources in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
    • 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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
    • 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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addAllRagResources

       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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
    • removeRagResources

      public RetrieveContextsRequest.VertexRagStore.Builder removeRagResources(int index)
       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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getRagResourcesBuilder

      public RetrieveContextsRequest.VertexRagStore.RagResource.Builder getRagResourcesBuilder(int index)
       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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
    • getRagResourcesOrBuilder

      public RetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder getRagResourcesOrBuilder(int index)
       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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagResourcesOrBuilder in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
    • getRagResourcesOrBuilderList

      public List<? extends RetrieveContextsRequest.VertexRagStore.RagResourceOrBuilder> 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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagResourcesOrBuilderList in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
    • 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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
    • addRagResourcesBuilder

      public RetrieveContextsRequest.VertexRagStore.RagResource.Builder addRagResourcesBuilder(int index)
       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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.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.v1beta1.RetrieveContextsRequest.VertexRagStore.RagResource rag_resources = 3 [(.google.api.field_behavior) = OPTIONAL];
    • hasVectorDistanceThreshold

      @Deprecated public boolean hasVectorDistanceThreshold()
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=165
       Optional. Only return contexts with vector distance smaller than the
       threshold.
       
      optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      hasVectorDistanceThreshold in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
      Returns:
      Whether the vectorDistanceThreshold field is set.
    • getVectorDistanceThreshold

      @Deprecated public double getVectorDistanceThreshold()
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=165
       Optional. Only return contexts with vector distance smaller than the
       threshold.
       
      optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getVectorDistanceThreshold in interface RetrieveContextsRequest.VertexRagStoreOrBuilder
      Returns:
      The vectorDistanceThreshold.
    • setVectorDistanceThreshold

      @Deprecated public RetrieveContextsRequest.VertexRagStore.Builder setVectorDistanceThreshold(double value)
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=165
       Optional. Only return contexts with vector distance smaller than the
       threshold.
       
      optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The vectorDistanceThreshold to set.
      Returns:
      This builder for chaining.
    • clearVectorDistanceThreshold

      @Deprecated public RetrieveContextsRequest.VertexRagStore.Builder clearVectorDistanceThreshold()
      Deprecated.
      google.cloud.aiplatform.v1beta1.RetrieveContextsRequest.VertexRagStore.vector_distance_threshold is deprecated. See google/cloud/aiplatform/v1beta1/vertex_rag_service.proto;l=165
       Optional. Only return contexts with vector distance smaller than the
       threshold.
       
      optional double vector_distance_threshold = 2 [deprecated = true, (.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.