Class NluSettings.Builder (0.19.0)

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

Static Methods

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
Type Description
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NluSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NluSettings.Builder
Overrides

build()

public NluSettings build()
Returns
Type Description
NluSettings

buildPartial()

public NluSettings buildPartial()
Returns
Type Description
NluSettings

clear()

public NluSettings.Builder clear()
Returns
Type Description
NluSettings.Builder
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
Type Description
NluSettings.Builder

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NluSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
Name Description
field FieldDescriptor
Returns
Type Description
NluSettings.Builder
Overrides

clearModelTrainingMode()

public NluSettings.Builder clearModelTrainingMode()

Indicates NLU model training mode.

.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode model_training_mode = 4;

Returns
Type Description
NluSettings.Builder

This builder for chaining.

clearModelType()

public NluSettings.Builder clearModelType()

Indicates the type of NLU model.

.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelType model_type = 1;

Returns
Type Description
NluSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NluSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
Name Description
oneof OneofDescriptor
Returns
Type Description
NluSettings.Builder
Overrides

clone()

public NluSettings.Builder clone()
Returns
Type Description
NluSettings.Builder
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
Type Description
NluSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
Type Description
Descriptor
Overrides

getModelTrainingMode()

public NluSettings.ModelTrainingMode getModelTrainingMode()

Indicates NLU model training mode.

.google.cloud.dialogflow.cx.v3beta1.NluSettings.ModelTrainingMode model_training_mode = 4;

Returns
Type Description
NluSettings.ModelTrainingMode

The modelTrainingMode.

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;

Returns
Type Description
NluSettings.ModelType

The modelType.

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()
Returns
Type Description
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
Type Description
boolean
Overrides

mergeFrom(NluSettings other)

public NluSettings.Builder mergeFrom(NluSettings other)
Parameter
Name Description
other NluSettings
Returns
Type Description
NluSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NluSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
Name Description
input CodedInputStream
extensionRegistry ExtensionRegistryLite
Returns
Type Description
NluSettings.Builder
Overrides Exceptions
Type Description
IOException

mergeFrom(Message other)

public NluSettings.Builder mergeFrom(Message other)
Parameter
Name Description
other Message
Returns
Type Description
NluSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NluSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NluSettings.Builder
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
Type Description
NluSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NluSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
Name Description
field FieldDescriptor
value Object
Returns
Type Description
NluSettings.Builder
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;

Parameter
Name Description
value NluSettings.ModelTrainingMode

The modelTrainingMode to set.

Returns
Type Description
NluSettings.Builder

This builder for chaining.

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.

Returns
Type Description
NluSettings.Builder

This builder for chaining.

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;

Parameter
Name Description
value NluSettings.ModelType

The modelType to set.

Returns
Type Description
NluSettings.Builder

This builder for chaining.

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.

Returns
Type Description
NluSettings.Builder

This builder for chaining.

setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)

public NluSettings.Builder setRepeatedField(Descriptors.FieldDescriptor field, int index, Object value)
Parameters
Name Description
field FieldDescriptor
index int
value Object
Returns
Type Description
NluSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NluSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
Name Description
unknownFields UnknownFieldSet
Returns
Type Description
NluSettings.Builder
Overrides