Send feedback
  
   
 
  
    
      Class RagContexts.Builder (3.79.0) 
  
  
  
   
  
    
  
  
    
    
    
    
    
  Version latestkeyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  RagContexts . Builder   extends   GeneratedMessageV3 . Builder<RagContexts . Builder >  implements   RagContextsOrBuilder  
   Relevant contexts for one query.
 Protobuf type google.cloud.aiplatform.v1.RagContexts
    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
   
  getDescriptor() 
  
    
public   static   final   Descriptors . Descriptor   getDescriptor ()  
  
  Methods
   
  addAllContexts(Iterable<? extends RagContexts.Context> values) 
  
    
public   RagContexts . Builder   addAllContexts ( Iterable <?   extends   RagContexts . Context >  values )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    
      
        Parameter  
      
        Name Description  
      
        valuesIterable <? extends com.google.cloud.aiplatform.v1.RagContexts.Context > 
     
  
  
  addContexts(RagContexts.Context value) 
  
    
public   RagContexts . Builder   addContexts ( RagContexts . Context   value )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
addContexts(RagContexts.Context.Builder builderForValue) 
  
    
public   RagContexts . Builder   addContexts ( RagContexts . Context . Builder   builderForValue )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
addContexts(int index, RagContexts.Context value) 
  
    
public   RagContexts . Builder   addContexts ( int   index ,   RagContexts . Context   value )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
addContexts(int index, RagContexts.Context.Builder builderForValue) 
  
    
public   RagContexts . Builder   addContexts ( int   index ,   RagContexts . Context . Builder   builderForValue )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
addContextsBuilder() 
  
    
public   RagContexts . Context . Builder   addContextsBuilder ()  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
addContextsBuilder(int index) 
  
    
public   RagContexts . Context . Builder   addContextsBuilder ( int   index )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   RagContexts . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   RagContexts   build ()  
  
  buildPartial() 
  
    
public   RagContexts   buildPartial ()  
  
  clear() 
  
    
public   RagContexts . Builder   clear ()  
  
  Overrides 
  
  clearContexts() 
  
    
public   RagContexts . Builder   clearContexts ()  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   RagContexts . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   RagContexts . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   RagContexts . Builder   clone ()  
  
  Overrides 
  
  getContexts(int index) 
  
    
public   RagContexts . Context   getContexts ( int   index )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getContextsBuilder(int index) 
  
    
public   RagContexts . Context . Builder   getContextsBuilder ( int   index )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getContextsBuilderList() 
  
    
public   List<RagContexts . Context . Builder >  getContextsBuilderList ()  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
getContextsCount() 
  
    
public   int   getContextsCount ()  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getContextsList() 
  
    
public   List<RagContexts . Context >  getContextsList ()  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
getContextsOrBuilder(int index) 
  
    
public   RagContexts . ContextOrBuilder   getContextsOrBuilder ( int   index )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getContextsOrBuilderList() 
  
    
public   List <?   extends   RagContexts . ContextOrBuilder >  getContextsOrBuilderList ()  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.aiplatform.v1.RagContexts.ContextOrBuilder > 
     
  
  getDefaultInstanceForType() 
  
    
public   RagContexts   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(RagContexts other) 
  
    
public   RagContexts . Builder   mergeFrom ( RagContexts   other )  
  
  
  mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   RagContexts . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   RagContexts . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   RagContexts . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  removeContexts(int index) 
  
    
public   RagContexts . Builder   removeContexts ( int   index )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  setContexts(int index, RagContexts.Context value) 
  
    
public   RagContexts . Builder   setContexts ( int   index ,   RagContexts . Context   value )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
setContexts(int index, RagContexts.Context.Builder builderForValue) 
  
    
public   RagContexts . Builder   setContexts ( int   index ,   RagContexts . Context . Builder   builderForValue )  
   All its contexts.
 repeated .google.cloud.aiplatform.v1.RagContexts.Context contexts = 1;
setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   RagContexts . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   RagContexts . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   RagContexts . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
    
    
      
       
         
  
  
    
    Send feedback
  
   
 
       
    
    
  
  
 
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License , and code samples are licensed under the Apache 2.0 License . For details, see the Google Developers Site Policies . Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2025-10-29 UTC.
 
 
  
  
    
    
    
      
  
  
    Need to tell us more?
  
   
 
     
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-29 UTC."],[],[]]