[][src]Struct gcp_client::google::cloud::dialogflow::v2::Agent

pub struct Agent {
    pub parent: String,
    pub display_name: String,
    pub default_language_code: String,
    pub supported_language_codes: Vec<String>,
    pub time_zone: String,
    pub description: String,
    pub avatar_uri: String,
    pub enable_logging: bool,
    pub match_mode: i32,
    pub classification_threshold: f32,
    pub api_version: i32,
    pub tier: i32,
}

Represents a conversational agent.

Fields

parent: String

Required. The project of this agent. Format: projects/<Project ID>.

display_name: String

Required. The name of this agent.

default_language_code: String

Required. The default language of the agent as a language tag. See Language Support for a list of the currently supported language codes. This field cannot be set by the Update method.

supported_language_codes: Vec<String>

Optional. The list of all languages supported by this agent (except for the default_language_code).

time_zone: String

Required. The time zone of this agent from the time zone database, e.g., America/New_York, Europe/Paris.

description: String

Optional. The description of this agent. The maximum length is 500 characters. If exceeded, the request is rejected.

avatar_uri: String

Optional. The URI of the agent's avatar. Avatars are used throughout the Dialogflow console and in the self-hosted Web Demo integration.

enable_logging: bool

Optional. Determines whether this agent should log conversation queries.

match_mode: i32

Optional. Determines how intents are detected from user queries.

classification_threshold: f32

Optional. 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 fallback intent will be triggered or, if there are no fallback intents defined, no intent 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.

api_version: i32

Optional. API version displayed in Dialogflow console. If not specified, V2 API is assumed. Clients are free to query different service endpoints for different API versions. However, bots connectors and webhook calls will follow the specified API version.

tier: i32

Optional. The agent tier. If not specified, TIER_STANDARD is assumed.

Implementations

impl Agent[src]

pub fn match_mode(&self) -> MatchMode[src]

Returns the enum value of match_mode, or the default if the field is set to an invalid enum value.

pub fn set_match_mode(&mut self, value: MatchMode)[src]

Sets match_mode to the provided enum value.

pub fn api_version(&self) -> ApiVersion[src]

Returns the enum value of api_version, or the default if the field is set to an invalid enum value.

pub fn set_api_version(&mut self, value: ApiVersion)[src]

Sets api_version to the provided enum value.

pub fn tier(&self) -> Tier[src]

Returns the enum value of tier, or the default if the field is set to an invalid enum value.

pub fn set_tier(&mut self, value: Tier)[src]

Sets tier to the provided enum value.

Trait Implementations

impl Clone for Agent[src]

impl Debug for Agent[src]

impl Default for Agent[src]

impl Message for Agent[src]

impl PartialEq<Agent> for Agent[src]

impl StructuralPartialEq for Agent[src]

Auto Trait Implementations

impl RefUnwindSafe for Agent

impl Send for Agent

impl Sync for Agent

impl Unpin for Agent

impl UnwindSafe for Agent

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 

impl<T> WithSubscriber for T[src]