Class NluSettings.Builder (0.14.5)

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
TypeDescription
Descriptor

Methods

addRepeatedField(Descriptors.FieldDescriptor field, Object value)

public NluSettings.Builder addRepeatedField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
NluSettings.Builder
Overrides

build()

public NluSettings build()
Returns
TypeDescription
NluSettings

buildPartial()

public NluSettings buildPartial()
Returns
TypeDescription
NluSettings

clear()

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

This builder for chaining.

clearField(Descriptors.FieldDescriptor field)

public NluSettings.Builder clearField(Descriptors.FieldDescriptor field)
Parameter
NameDescription
fieldFieldDescriptor
Returns
TypeDescription
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
TypeDescription
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
TypeDescription
NluSettings.Builder

This builder for chaining.

clearOneof(Descriptors.OneofDescriptor oneof)

public NluSettings.Builder clearOneof(Descriptors.OneofDescriptor oneof)
Parameter
NameDescription
oneofOneofDescriptor
Returns
TypeDescription
NluSettings.Builder
Overrides

clone()

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

The classificationThreshold.

getDefaultInstanceForType()

public NluSettings getDefaultInstanceForType()
Returns
TypeDescription
NluSettings

getDescriptorForType()

public Descriptors.Descriptor getDescriptorForType()
Returns
TypeDescription
Descriptor
Overrides

getModelTrainingMode()

public NluSettings.ModelTrainingMode getModelTrainingMode()

Indicates NLU model training mode.

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

Returns
TypeDescription
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
TypeDescription
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
TypeDescription
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
TypeDescription
int

The enum numeric value on the wire for modelType.

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

mergeFrom(NluSettings other)

public NluSettings.Builder mergeFrom(NluSettings other)
Parameter
NameDescription
otherNluSettings
Returns
TypeDescription
NluSettings.Builder

mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public NluSettings.Builder mergeFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
NluSettings.Builder
Overrides Exceptions
TypeDescription
IOException

mergeFrom(Message other)

public NluSettings.Builder mergeFrom(Message other)
Parameter
NameDescription
otherMessage
Returns
TypeDescription
NluSettings.Builder
Overrides

mergeUnknownFields(UnknownFieldSet unknownFields)

public final NluSettings.Builder mergeUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
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
NameDescription
valuefloat

The classificationThreshold to set.

Returns
TypeDescription
NluSettings.Builder

This builder for chaining.

setField(Descriptors.FieldDescriptor field, Object value)

public NluSettings.Builder setField(Descriptors.FieldDescriptor field, Object value)
Parameters
NameDescription
fieldFieldDescriptor
valueObject
Returns
TypeDescription
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
NameDescription
valueNluSettings.ModelTrainingMode

The modelTrainingMode to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for modelTrainingMode to set.

Returns
TypeDescription
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
NameDescription
valueNluSettings.ModelType

The modelType to set.

Returns
TypeDescription
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
NameDescription
valueint

The enum numeric value on the wire for modelType to set.

Returns
TypeDescription
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
NameDescription
fieldFieldDescriptor
indexint
valueObject
Returns
TypeDescription
NluSettings.Builder
Overrides

setUnknownFields(UnknownFieldSet unknownFields)

public final NluSettings.Builder setUnknownFields(UnknownFieldSet unknownFields)
Parameter
NameDescription
unknownFieldsUnknownFieldSet
Returns
TypeDescription
NluSettings.Builder
Overrides