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.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()
Returns
Methods
addRepeatedField(Descriptors.FieldDescriptor field, Object value)
public NluSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
Overrides
build()
public NluSettings build()
Returns
buildPartial()
public NluSettings buildPartial()
Returns
clear()
public NluSettings.Builder clear()
Returns
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.
float classification_threshold = 3;
Returns
clearField(Descriptors.FieldDescriptor field)
public NluSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Returns
Overrides
clearModelTrainingMode()
public NluSettings.Builder clearModelTrainingMode()
Indicates NLU model training mode.
.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode model_training_mode = 4;
Returns
clearModelType()
public NluSettings.Builder clearModelType()
Indicates the type of NLU model.
.google.cloud.dialogflow.cx.v3.NluSettings.ModelType model_type = 1;
Returns
clearOneof(Descriptors.OneofDescriptor oneof)
public NluSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Returns
Overrides
clone()
public NluSettings.Builder clone()
Returns
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.
float classification_threshold = 3;
Returns
Type |
Description |
float |
The classificationThreshold.
|
getDefaultInstanceForType()
public NluSettings getDefaultInstanceForType()
Returns
getDescriptorForType()
public Descriptors.Descriptor getDescriptorForType()
Returns
Overrides
getModelTrainingMode()
public NluSettings.ModelTrainingMode getModelTrainingMode()
Indicates NLU model training mode.
.google.cloud.dialogflow.cx.v3.NluSettings.ModelTrainingMode model_training_mode = 4;
Returns
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;
Returns
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()
Returns
Overrides
isInitialized()
public final boolean isInitialized()
Returns
Overrides
mergeFrom(NluSettings other)
public NluSettings.Builder mergeFrom(NluSettings other)
Parameter
Returns
public NluSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Returns
Overrides
Exceptions
mergeFrom(Message other)
public NluSettings.Builder mergeFrom(Message other)
Parameter
Returns
Overrides
mergeUnknownFields(UnknownFieldSet unknownFields)
public final NluSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
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.
float classification_threshold = 3;
Parameter
Name |
Description |
value |
float
The classificationThreshold to set.
|
Returns
setField(Descriptors.FieldDescriptor field, Object value)
public NluSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Returns
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;
Parameter
Returns
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 |
value |
int
The enum numeric value on the wire for modelTrainingMode to set.
|
Returns
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;
Parameter
Returns
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 |
value |
int
The enum numeric value on the wire for modelType to set.
|
Returns
setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
public NluSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Returns
Overrides
setUnknownFields(UnknownFieldSet unknownFields)
public final NluSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Returns
Overrides