Struct google_api_proto::google::cloud::dialogflow::cx::v3::NluSettings
source · pub struct NluSettings {
pub model_type: i32,
pub classification_threshold: f32,
pub model_training_mode: i32,
}
Expand description
Settings related to NLU.
Fields§
§model_type: i32
Indicates the type of NLU model.
classification_threshold: f32
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.
model_training_mode: i32
Indicates NLU model training mode.
Implementations§
source§impl NluSettings
impl NluSettings
sourcepub fn model_type(&self) -> ModelType
pub fn model_type(&self) -> ModelType
Returns the enum value of model_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_model_type(&mut self, value: ModelType)
pub fn set_model_type(&mut self, value: ModelType)
Sets model_type
to the provided enum value.
sourcepub fn model_training_mode(&self) -> ModelTrainingMode
pub fn model_training_mode(&self) -> ModelTrainingMode
Returns the enum value of model_training_mode
, or the default if the field is set to an invalid enum value.
sourcepub fn set_model_training_mode(&mut self, value: ModelTrainingMode)
pub fn set_model_training_mode(&mut self, value: ModelTrainingMode)
Sets model_training_mode
to the provided enum value.
Trait Implementations§
source§impl Clone for NluSettings
impl Clone for NluSettings
source§fn clone(&self) -> NluSettings
fn clone(&self) -> NluSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NluSettings
impl Debug for NluSettings
source§impl Default for NluSettings
impl Default for NluSettings
source§impl Message for NluSettings
impl Message for NluSettings
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moresource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.source§impl PartialEq for NluSettings
impl PartialEq for NluSettings
source§fn eq(&self, other: &NluSettings) -> bool
fn eq(&self, other: &NluSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl Copy for NluSettings
impl StructuralPartialEq for NluSettings
Auto Trait Implementations§
impl Freeze for NluSettings
impl RefUnwindSafe for NluSettings
impl Send for NluSettings
impl Sync for NluSettings
impl Unpin for NluSettings
impl UnwindSafe for NluSettings
Blanket Implementations§
source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
source§impl<T> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request