Class IntentBatch.Builder (4.28.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 4.28.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  IntentBatch . Builder   extends   GeneratedMessageV3 . Builder<IntentBatch . Builder >  implements   IntentBatchOrBuilder  
   This message is a wrapper around a collection of intents.
 Protobuf type google.cloud.dialogflow.v2beta1.IntentBatch
    Inherited Members 
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
    
      com.google.protobuf.GeneratedMessageV3.Builder.getUnknownFieldSetBuilder() 
    
    
    
    
    
    
    
    
    
    
    
    
      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
   
  addAllIntents(Iterable<? extends Intent> values) 
  
    
public   IntentBatch . Builder   addAllIntents ( Iterable <?   extends   Intent >  values )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameter  
      
        Name Description  
      
        valuesIterable <? extends com.google.cloud.dialogflow.v2beta1.Intent > 
     
  
  
  addIntents(Intent value) 
  
    
public   IntentBatch . Builder   addIntents ( Intent   value )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueIntent  
     
  
  
  addIntents(Intent.Builder builderForValue) 
  
    
public   IntentBatch . Builder   addIntents ( Intent . Builder   builderForValue )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
addIntents(int index, Intent value) 
  
    
public   IntentBatch . Builder   addIntents ( int   index ,   Intent   value )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameters  
      
        Name Description  
      
        indexint  
      
        valueIntent  
     
  
  
  addIntents(int index, Intent.Builder builderForValue) 
  
    
public   IntentBatch . Builder   addIntents ( int   index ,   Intent . Builder   builderForValue )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
addIntentsBuilder() 
  
    
public   Intent . Builder   addIntentsBuilder ()  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
addIntentsBuilder(int index) 
  
    
public   Intent . Builder   addIntentsBuilder ( int   index )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   IntentBatch . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   IntentBatch   build ()  
  
  buildPartial() 
  
    
public   IntentBatch   buildPartial ()  
  
  clear() 
  
    
public   IntentBatch . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   IntentBatch . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearIntents() 
  
    
public   IntentBatch . Builder   clearIntents ()  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   IntentBatch . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   IntentBatch . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   IntentBatch   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getIntents(int index) 
  
    
public   Intent   getIntents ( int   index )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
    
      
        Returns  
      
        Type Description  
      
        Intent  
     
  
  getIntentsBuilder(int index) 
  
    
public   Intent . Builder   getIntentsBuilder ( int   index )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getIntentsBuilderList() 
  
    
public   List<Intent . Builder >  getIntentsBuilderList ()  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
getIntentsCount() 
  
    
public   int   getIntentsCount ()  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Returns  
      
        Type Description  
      
        int  
     
  
  getIntentsList() 
  
    
public   List<Intent>   getIntentsList ()  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
getIntentsOrBuilder(int index) 
  
    
public   IntentOrBuilder   getIntentsOrBuilder ( int   index )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  getIntentsOrBuilderList() 
  
    
public   List <?   extends   IntentOrBuilder >  getIntentsOrBuilderList ()  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Returns  
      
        Type Description  
      
        List <? extends com.google.cloud.dialogflow.v2beta1.IntentOrBuilder > 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(IntentBatch other) 
  
    
public   IntentBatch . Builder   mergeFrom ( IntentBatch   other )  
  
  
  
    
public   IntentBatch . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   IntentBatch . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   IntentBatch . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  removeIntents(int index) 
  
    
public   IntentBatch . Builder   removeIntents ( int   index )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameter  
      
        Name Description  
      
        indexint  
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   IntentBatch . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setIntents(int index, Intent value) 
  
    
public   IntentBatch . Builder   setIntents ( int   index ,   Intent   value )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
    
      
        Parameters  
      
        Name Description  
      
        indexint  
      
        valueIntent  
     
  
  
  setIntents(int index, Intent.Builder builderForValue) 
  
    
public   IntentBatch . Builder   setIntents ( int   index ,   Intent . Builder   builderForValue )  
   A collection of intents.
 repeated .google.cloud.dialogflow.v2beta1.Intent intents = 1;
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   IntentBatch . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   IntentBatch . 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-29 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-29 UTC."],[],[]]