public static final class NluSettings.Builder extends GeneratedMessageV3.Builder<NluSettings.Builder> implements NluSettingsOrBuilder
Settings related to NLU.
Protobuf type google.cloud.dialogflow.cx.v3beta1.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()
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.
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.v3beta1.NluSettings.ModelTrainingMode model_training_mode = 4;
clearModelType()
public NluSettings.Builder clearModelType()
Indicates the type of NLU model.
.google.cloud.dialogflow.cx.v3beta1.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.
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.v3beta1.NluSettings.ModelTrainingMode model_training_mode = 4;
getModelTrainingModeValue()
public int getModelTrainingModeValue()
Indicates NLU model training mode.
.google.cloud.dialogflow.cx.v3beta1.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.v3beta1.NluSettings.ModelType model_type = 1;
getModelTypeValue()
public int getModelTypeValue()
Indicates the type of NLU model.
.google.cloud.dialogflow.cx.v3beta1.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 |
other |
Message
|
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.
float classification_threshold = 3;
Parameter |
Name |
Description |
value |
float
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.v3beta1.NluSettings.ModelTrainingMode model_training_mode = 4;
setModelTrainingModeValue(int value)
public NluSettings.Builder setModelTrainingModeValue(int value)
Indicates NLU model training mode.
.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode model_training_mode = 4;
Parameter |
Name |
Description |
value |
int
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.v3beta1.NluSettings.ModelType model_type = 1;
setModelTypeValue(int value)
public NluSettings.Builder setModelTypeValue(int value)
Indicates the type of NLU model.
.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType model_type = 1;
Parameter |
Name |
Description |
value |
int
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