Class NluSettings.Builder (0.87.0) 
  
  
  
   
  
    
  
  
    
    
    
    
  Version 0.87.0keyboard_arrow_down  
  
 
    
    
    
    
      
  
  
  
    
public   static   final   class  NluSettings . Builder   extends   GeneratedMessageV3 . Builder<NluSettings . Builder >  implements   NluSettingsOrBuilder  
   Settings related to NLU.
 Protobuf type google.cloud.dialogflow.cx.v3.NluSettings
    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
   
  addRepeatedField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   NluSettings . Builder   addRepeatedField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  build() 
  
    
public   NluSettings   build ()  
  
  buildPartial() 
  
    
public   NluSettings   buildPartial ()  
  
  clear() 
  
    
public   NluSettings . Builder   clear ()  
  
  Overrides 
  
  clearClassificationThreshold() 
  
    
public   NluSettings . Builder   clearClassificationThreshold ()  
   To filter out false positive results and still get variety in matched
 natural language inputs for your agent, you can tune the machine learning
 classification threshold. If the returned score value is less than the
 threshold value, then a no-match event will be triggered. The score values
 range from 0.0 (completely uncertain) to 1.0 (completely certain). If set
 to 0.0, the default of 0.3 is used. You can set a separate classification
 threshold for the flow in each language enabled for the agent.
 float classification_threshold = 3;
clearField(Descriptors.FieldDescriptor field) 
  
    
public   NluSettings . Builder   clearField ( Descriptors . FieldDescriptor   field )  
  
  
  Overrides 
  
  clearModelTrainingMode() 
  
    
public   NluSettings . Builder   clearModelTrainingMode ()  
   Indicates NLU model training mode.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode model_training_mode = 4;
 
clearModelType() 
  
    
public   NluSettings . Builder   clearModelType ()  
   Indicates the type of NLU model.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelType model_type = 1;
clearOneof(Descriptors.OneofDescriptor oneof) 
  
    
public   NluSettings . Builder   clearOneof ( Descriptors . OneofDescriptor   oneof )  
  
  
  Overrides 
  
  clone() 
  
    
public   NluSettings . Builder   clone ()  
  
  Overrides 
  
  getClassificationThreshold() 
  
    
public   float   getClassificationThreshold ()  
   To filter out false positive results and still get variety in matched
 natural language inputs for your agent, you can tune the machine learning
 classification threshold. If the returned score value is less than the
 threshold value, then a no-match event will be triggered. The score values
 range from 0.0 (completely uncertain) to 1.0 (completely certain). If set
 to 0.0, the default of 0.3 is used. You can set a separate classification
 threshold for the flow in each language enabled for the agent.
 float classification_threshold = 3;
    
      
        Returns  
      
        Type Description  
      
        float The classificationThreshold.
 
     
  
  getDefaultInstanceForType() 
  
    
public   NluSettings   getDefaultInstanceForType ()  
  
  getDescriptorForType() 
  
    
public   Descriptors . Descriptor   getDescriptorForType ()  
  
  Overrides 
  
  getModelTrainingMode() 
  
    
public   NluSettings . ModelTrainingMode   getModelTrainingMode ()  
   Indicates NLU model training mode.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode model_training_mode = 4;
 
getModelTrainingModeValue() 
  
    
public   int   getModelTrainingModeValue ()  
   Indicates NLU model training mode.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode model_training_mode = 4;
 
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for modelTrainingMode.
 
     
  
  getModelType() 
  
    
public   NluSettings . ModelType   getModelType ()  
   Indicates the type of NLU model.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelType model_type = 1;
getModelTypeValue() 
  
    
public   int   getModelTypeValue ()  
   Indicates the type of NLU model.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelType model_type = 1;
    
      
        Returns  
      
        Type Description  
      
        int The enum numeric value on the wire for modelType.
 
     
  
  internalGetFieldAccessorTable() 
  
    
protected   GeneratedMessageV3 . FieldAccessorTable   internalGetFieldAccessorTable ()  
  
  Overrides 
  
  isInitialized() 
  
    
public   final   boolean   isInitialized ()  
  
  Overrides 
  
  mergeFrom(NluSettings other) 
  
    
public   NluSettings . Builder   mergeFrom ( NluSettings   other )  
  
  
  
    
public   NluSettings . Builder   mergeFrom ( CodedInputStream   input ,   ExtensionRegistryLite   extensionRegistry )  
  
  
  Overrides 
  
  
  mergeFrom(Message other) 
  
    
public   NluSettings . Builder   mergeFrom ( Message   other )  
  
    
      
        Parameter  
      
        Name Description  
      
        otherMessage  
     
  
  
  Overrides 
  
  mergeUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   NluSettings . Builder   mergeUnknownFields ( UnknownFieldSet   unknownFields )  
  
  
  Overrides 
  
  setClassificationThreshold(float value) 
  
    
public   NluSettings . Builder   setClassificationThreshold ( float   value )  
   To filter out false positive results and still get variety in matched
 natural language inputs for your agent, you can tune the machine learning
 classification threshold. If the returned score value is less than the
 threshold value, then a no-match event will be triggered. The score values
 range from 0.0 (completely uncertain) to 1.0 (completely certain). If set
 to 0.0, the default of 0.3 is used. You can set a separate classification
 threshold for the flow in each language enabled for the agent.
 float classification_threshold = 3;
    
      
        Parameter  
      
        Name Description  
      
        valuefloat The classificationThreshold to set.
 
     
  
  
  setField(Descriptors.FieldDescriptor field, Object value) 
  
    
public   NluSettings . Builder   setField ( Descriptors . FieldDescriptor   field ,   Object   value )  
  
  
  Overrides 
  
  setModelTrainingMode(NluSettings.ModelTrainingMode value) 
  
    
public   NluSettings . Builder   setModelTrainingMode ( NluSettings . ModelTrainingMode   value )  
   Indicates NLU model training mode.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode model_training_mode = 4;
 
setModelTrainingModeValue(int value) 
  
    
public   NluSettings . Builder   setModelTrainingModeValue ( int   value )  
   Indicates NLU model training mode.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode model_training_mode = 4;
 
    
      
        Parameter  
      
        Name Description  
      
        valueint The enum numeric value on the wire for modelTrainingMode to set.
 
     
  
  
  setModelType(NluSettings.ModelType value) 
  
    
public   NluSettings . Builder   setModelType ( NluSettings . ModelType   value )  
   Indicates the type of NLU model.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelType model_type = 1;
setModelTypeValue(int value) 
  
    
public   NluSettings . Builder   setModelTypeValue ( int   value )  
   Indicates the type of NLU model.
 .google.cloud.dialogflow.cx.v3.NluSettings.ModelType model_type = 1;
    
      
        Parameter  
      
        Name Description  
      
        valueint The enum numeric value on the wire for modelType to set.
 
     
  
  
  setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value) 
  
    
public   NluSettings . Builder   setRepeatedField ( Descriptors . FieldDescriptor   field ,   int   index ,   Object   value )  
  
  
  Overrides 
  
  setUnknownFields(UnknownFieldSet unknownFields) 
  
    
public   final   NluSettings . 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."],[],[]]