Struct gapi_grpc::google::cloud::dialogflow::v2::Environment[][src]

pub struct Environment {
    pub name: String,
    pub description: String,
    pub agent_version: String,
    pub state: i32,
    pub update_time: Option<Timestamp>,
    pub text_to_speech_settings: Option<TextToSpeechSettings>,
    pub fulfillment: Option<Fulfillment>,
}

You can create multiple versions of your agent and publish them to separate environments.

When you edit an agent, you are editing the draft agent. At any point, you can save the draft agent as an agent version, which is an immutable snapshot of your agent.

When you save the draft agent, it is published to the default environment. When you create agent versions, you can publish them to custom environments. You can create a variety of custom environments for:

For more information, see the versions and environments guide.

Fields

name: String

Output only. The unique identifier of this agent environment. Supported formats:

description: String

Optional. The developer-provided description for this environment. The maximum length is 500 characters. If exceeded, the request is rejected.

agent_version: String

Optional. The agent version loaded into this environment. Supported formats:

state: i32

Output only. The state of this environment. This field is read-only, i.e., it cannot be set by create and update methods.

update_time: Option<Timestamp>

Output only. The last update time of this environment. This field is read-only, i.e., it cannot be set by create and update methods.

text_to_speech_settings: Option<TextToSpeechSettings>

Optional. Text to speech settings for this environment.

fulfillment: Option<Fulfillment>

Optional. The fulfillment settings to use for this environment.

Implementations

impl Environment[src]

pub fn state(&self) -> State[src]

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

pub fn set_state(&mut self, value: State)[src]

Sets state to the provided enum value.

Trait Implementations

impl Clone for Environment[src]

impl Debug for Environment[src]

impl Default for Environment[src]

impl Message for Environment[src]

impl PartialEq<Environment> for Environment[src]

impl StructuralPartialEq for Environment[src]

Auto Trait Implementations

impl RefUnwindSafe for Environment

impl Send for Environment

impl Sync for Environment

impl Unpin for Environment

impl UnwindSafe for Environment

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> 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>, 
[src]

impl<T> WithSubscriber for T[src]