Class VertexRagStore.RagResource.Builder

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

public static final class VertexRagStore.RagResource.Builder extends com.google.protobuf.GeneratedMessage.Builder<VertexRagStore.RagResource.Builder> implements VertexRagStore.RagResourceOrBuilder
 The definition of the Rag resource.
 
Protobuf type google.cloud.aiplatform.v1.VertexRagStore.RagResource
  • 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<VertexRagStore.RagResource.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<VertexRagStore.RagResource.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<VertexRagStore.RagResource.Builder>
    • getDefaultInstanceForType

      public VertexRagStore.RagResource 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

      public VertexRagStore.RagResource buildPartial()
      Specified by:
      buildPartial in interface com.google.protobuf.Message.Builder
      Specified by:
      buildPartial in interface com.google.protobuf.MessageLite.Builder
    • mergeFrom

      public VertexRagStore.RagResource.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<VertexRagStore.RagResource.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<VertexRagStore.RagResource.Builder>
    • mergeFrom

      public VertexRagStore.RagResource.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<VertexRagStore.RagResource.Builder>
      Throws:
      IOException
    • getRagCorpus

      public String getRagCorpus()
       Optional. RagCorpora resource name.
       Format:
       `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
       
      string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getRagCorpus in interface VertexRagStore.RagResourceOrBuilder
      Returns:
      The ragCorpus.
    • getRagCorpusBytes

      public com.google.protobuf.ByteString getRagCorpusBytes()
       Optional. RagCorpora resource name.
       Format:
       `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
       
      string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Specified by:
      getRagCorpusBytes in interface VertexRagStore.RagResourceOrBuilder
      Returns:
      The bytes for ragCorpus.
    • setRagCorpus

      public VertexRagStore.RagResource.Builder setRagCorpus(String value)
       Optional. RagCorpora resource name.
       Format:
       `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
       
      string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The ragCorpus to set.
      Returns:
      This builder for chaining.
    • clearRagCorpus

      public VertexRagStore.RagResource.Builder clearRagCorpus()
       Optional. RagCorpora resource name.
       Format:
       `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
       
      string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Returns:
      This builder for chaining.
    • setRagCorpusBytes

      public VertexRagStore.RagResource.Builder setRagCorpusBytes(com.google.protobuf.ByteString value)
       Optional. RagCorpora resource name.
       Format:
       `projects/{project}/locations/{location}/ragCorpora/{rag_corpus}`
       
      string rag_corpus = 1 [(.google.api.field_behavior) = OPTIONAL, (.google.api.resource_reference) = { ... }
      Parameters:
      value - The bytes for ragCorpus to set.
      Returns:
      This builder for chaining.
    • getRagFileIdsList

      public com.google.protobuf.ProtocolStringList getRagFileIdsList()
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagFileIdsList in interface VertexRagStore.RagResourceOrBuilder
      Returns:
      A list containing the ragFileIds.
    • getRagFileIdsCount

      public int getRagFileIdsCount()
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagFileIdsCount in interface VertexRagStore.RagResourceOrBuilder
      Returns:
      The count of ragFileIds.
    • getRagFileIds

      public String getRagFileIds(int index)
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagFileIds in interface VertexRagStore.RagResourceOrBuilder
      Parameters:
      index - The index of the element to return.
      Returns:
      The ragFileIds at the given index.
    • getRagFileIdsBytes

      public com.google.protobuf.ByteString getRagFileIdsBytes(int index)
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Specified by:
      getRagFileIdsBytes in interface VertexRagStore.RagResourceOrBuilder
      Parameters:
      index - The index of the value to return.
      Returns:
      The bytes of the ragFileIds at the given index.
    • setRagFileIds

      public VertexRagStore.RagResource.Builder setRagFileIds(int index, String value)
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      index - The index to set the value at.
      value - The ragFileIds to set.
      Returns:
      This builder for chaining.
    • addRagFileIds

      public VertexRagStore.RagResource.Builder addRagFileIds(String value)
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The ragFileIds to add.
      Returns:
      This builder for chaining.
    • addAllRagFileIds

      public VertexRagStore.RagResource.Builder addAllRagFileIds(Iterable<String> values)
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      values - The ragFileIds to add.
      Returns:
      This builder for chaining.
    • clearRagFileIds

      public VertexRagStore.RagResource.Builder clearRagFileIds()
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Returns:
      This builder for chaining.
    • addRagFileIdsBytes

      public VertexRagStore.RagResource.Builder addRagFileIdsBytes(com.google.protobuf.ByteString value)
       Optional. rag_file_id. The files should be in the same rag_corpus set in
       rag_corpus field.
       
      repeated string rag_file_ids = 2 [(.google.api.field_behavior) = OPTIONAL];
      Parameters:
      value - The bytes of the ragFileIds to add.
      Returns:
      This builder for chaining.