Class AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Builder (0.72.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.72.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   extends   GeneratedMessageV3 . Builder<AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder >  implements   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpecOrBuilder  
   Query classification specification.
 Protobuf type 
 google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec
    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
   
  addAllTypes(Iterable<? extends AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type> values) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   addAllTypes ( Iterable <?   extends   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Type >  values )  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Parameter  
      
        Name Description  
      
        valuesIterable <? extends com.google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type >The types to add.
 
     
  
  
  addAllTypesValue(Iterable<Integer> values) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   addAllTypesValue ( Iterable<Integer>   values )  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Parameter  
      
        Name Description  
      
        valuesIterable <Integer >The enum numeric values on the wire for types to add.
 
     
  
  
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  addTypes(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type value) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   addTypes ( AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Type   value )  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
addTypesValue(int value) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   addTypesValue ( int   value )  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Parameter  
      
        Name Description  
      
        valueint The enum numeric value on the wire for types to add.
 
     
  
  
  build() 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec   build ()  
  
  buildPartial() 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec   buildPartial ()  
  
  clear() 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   clear ()  
  
  Overrides 
  
  clearField(Descriptors.FieldDescriptor field) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clearTypes() 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   clearTypes ()  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
clone() 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   clone ()  
  
  Overrides 
  
  getDefaultInstanceForType() 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getTypes(int index) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Type   getTypes ( int   index )  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the element to return.
 
     
  
  
  getTypesCount() 
  
    
public   int   getTypesCount ()  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Returns  
      
        Type Description  
      
        int The count of types.
 
     
  
  getTypesList() 
  
    
public   List<AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Type >  getTypesList ()  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Returns  
      
        Type Description  
      
        List <Type >A list containing the types.
 
     
  
  getTypesValue(int index) 
  
    
public   int   getTypesValue ( int   index )  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Parameter  
      
        Name Description  
      
        indexint The index of the value to return.
 
     
  
  
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire of types at the given index.
 
     
  
  getTypesValueList() 
  
    
public   List<Integer>   getTypesValueList ()  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Returns  
      
        Type Description  
      
        List <Integer >A list containing the enum numeric values on the wire for types.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec other) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   mergeFrom ( AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec   other )  
  
  
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setTypes(int index, AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type value) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   setTypes ( int   index ,   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Type   value )  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
setTypesValue(int index, int value) 
  
    
public   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . Builder   setTypesValue ( int   index ,   int   value )  
   Enabled query classification types.
 
 repeated .google.cloud.discoveryengine.v1beta.AnswerQueryRequest.QueryUnderstandingSpec.QueryClassificationSpec.Type types = 1;
 
    
      
        Parameters  
      
        Name Description  
      
        indexint The index to set the value at.
 
      
        valueint The enum numeric value on the wire for types to set.
 
     
  
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   AnswerQueryRequest . QueryUnderstandingSpec . QueryClassificationSpec . 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."],[],[]]