Class GenerateGroundedContentResponse.Builder (0.70.0) 
  
      
     
  
  
  
   
  
    
  
  
    
    
    
  Version 0.70.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  GenerateGroundedContentResponse . Builder   extends   GeneratedMessageV3 . Builder<GenerateGroundedContentResponse . Builder >  implements   GenerateGroundedContentResponseOrBuilder  
   
   Response for the GenerateGroundedContent method.
 Protobuf type google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse
 
  
  
  
    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
   
   
  addAllCandidates(Iterable<? extends GenerateGroundedContentResponse.Candidate> values) 
  
    
public   GenerateGroundedContentResponse . Builder   addAllCandidates ( Iterable <?   extends   GenerateGroundedContentResponse . Candidate >  values )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        values 
        Iterable <? extends com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate > 
       
     
  
  
   
  addCandidates(GenerateGroundedContentResponse.Candidate value) 
  
    
public   GenerateGroundedContentResponse . Builder   addCandidates ( GenerateGroundedContentResponse . Candidate   value )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
  
   
  addCandidates(GenerateGroundedContentResponse.Candidate.Builder builderForValue) 
  
    
public   GenerateGroundedContentResponse . Builder   addCandidates ( GenerateGroundedContentResponse . Candidate . Builder   builderForValue )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
  
   
  addCandidates(int index, GenerateGroundedContentResponse.Candidate value) 
  
    
public   GenerateGroundedContentResponse . Builder   addCandidates ( int   index ,   GenerateGroundedContentResponse . Candidate   value )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
  
   
  addCandidates(int index, GenerateGroundedContentResponse.Candidate.Builder builderForValue) 
  
    
public   GenerateGroundedContentResponse . Builder   addCandidates ( int   index ,   GenerateGroundedContentResponse . Candidate . Builder   builderForValue )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
  
   
  addCandidatesBuilder() 
  
    
public   GenerateGroundedContentResponse . Candidate . Builder   addCandidatesBuilder ()  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
   
  addCandidatesBuilder(int index) 
  
    
public   GenerateGroundedContentResponse . Candidate . Builder   addCandidatesBuilder ( int   index )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   GenerateGroundedContentResponse . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  build() 
  
    
public   GenerateGroundedContentResponse   build ()  
   
  
   
  buildPartial() 
  
    
public   GenerateGroundedContentResponse   buildPartial ()  
   
  
   
  clear() 
  
    
public   GenerateGroundedContentResponse . Builder   clear ()  
   
  
  Overrides 
  
   
  clearCandidates() 
  
    
public   GenerateGroundedContentResponse . Builder   clearCandidates ()  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
   
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   GenerateGroundedContentResponse . Builder   clearField ( Descriptors . FieldDescriptor   field )  
   
  
  
  Overrides 
  
   
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   GenerateGroundedContentResponse . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
   
  
  
  Overrides 
  
   
  clone() 
  
    
public   GenerateGroundedContentResponse . Builder   clone ()  
   
  
  Overrides 
  
   
  getCandidates(int index) 
  
    
public   GenerateGroundedContentResponse . Candidate   getCandidates ( int   index )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  getCandidatesBuilder(int index) 
  
    
public   GenerateGroundedContentResponse . Candidate . Builder   getCandidatesBuilder ( int   index )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  getCandidatesBuilderList() 
  
    
public   List<GenerateGroundedContentResponse . Candidate . Builder >  getCandidatesBuilderList ()  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
   
  getCandidatesCount() 
  
    
public   int   getCandidatesCount ()  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        int  
         
       
     
  
   
  getCandidatesList() 
  
    
public   List<GenerateGroundedContentResponse . Candidate >  getCandidatesList ()  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
   
  getCandidatesOrBuilder(int index) 
  
    
public   GenerateGroundedContentResponse . CandidateOrBuilder   getCandidatesOrBuilder ( int   index )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  getCandidatesOrBuilderList() 
  
    
public   List <?   extends   GenerateGroundedContentResponse . CandidateOrBuilder >  getCandidatesOrBuilderList ()  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
    
      
        Returns  
       
      
        Type  
        Description  
       
      
        List <? extends com.google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.CandidateOrBuilder > 
         
       
     
  
   
  getDefaultInstanceForType() 
  
    
public   GenerateGroundedContentResponse   getDefaultInstanceForType ()  
   
  
   
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
   
  
  Overrides 
  
   
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
   
  
  Overrides 
  
   
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
   
  
  Overrides 
  
   
  mergeFrom(GenerateGroundedContentResponse other) 
  
    
public   GenerateGroundedContentResponse . Builder   mergeFrom ( GenerateGroundedContentResponse   other )  
   
  
  
   
  mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry) 
  
    
public   GenerateGroundedContentResponse . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
   
  
  
  Overrides 
  
  
   
  mergeFrom(Message other) 
  
    
public   GenerateGroundedContentResponse . Builder   mergeFrom ( Message   other )  
   
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        other 
        Message  
       
     
  
  
  Overrides 
  
   
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   GenerateGroundedContentResponse . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
   
  removeCandidates(int index) 
  
    
public   GenerateGroundedContentResponse . Builder   removeCandidates ( int   index )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
    
      
        Parameter  
       
      
        Name  
        Description  
       
      
        index 
        int  
       
     
  
  
   
  setCandidates(int index, GenerateGroundedContentResponse.Candidate value) 
  
    
public   GenerateGroundedContentResponse . Builder   setCandidates ( int   index ,   GenerateGroundedContentResponse . Candidate   value )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
  
   
  setCandidates(int index, GenerateGroundedContentResponse.Candidate.Builder builderForValue) 
  
    
public   GenerateGroundedContentResponse . Builder   setCandidates ( int   index ,   GenerateGroundedContentResponse . Candidate . Builder   builderForValue )  
   
   Generated candidates.
 
 repeated .google.cloud.discoveryengine.v1beta.GenerateGroundedContentResponse.Candidate candidates = 1;
 
 
  
  
   
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   GenerateGroundedContentResponse . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
   
  
  
  Overrides 
  
   
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   GenerateGroundedContentResponse . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
   
  
  
  Overrides 
  
   
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   GenerateGroundedContentResponse . Builder   setUnknownFields ( UnknownFieldSet   unknownFields )  
   
  
  
  Overrides 
  
 
     
    
  
  
  
     
  
 
  
    
    
      
       
    
    
  
  
 
  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-30 UTC.
 
 
  
  
  
    
      [[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-10-30 UTC."],[],[]]