Struct gapi_grpc::google::cloud::dialogflow::cx::v3::RestoreAgentRequest[][src]

pub struct RestoreAgentRequest {
    pub name: String,
    pub restore_option: i32,
    pub agent: Option<Agent>,
}

The request message for [Agents.RestoreAgent][google.cloud.dialogflow.cx.v3.Agents.RestoreAgent].

Fields

name: String

Required. The name of the agent to restore into. Format: projects/<Project ID>/locations/<Location ID>/agents/<Agent ID>.

restore_option: i32

Agent restore mode. If not specified, KEEP is assumed.

agent: Option<Agent>

Required. The agent to restore.

Implementations

impl RestoreAgentRequest[src]

pub fn restore_option(&self) -> RestoreOption[src]

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

pub fn set_restore_option(&mut self, value: RestoreOption)[src]

Sets restore_option to the provided enum value.

Trait Implementations

impl Clone for RestoreAgentRequest[src]

impl Debug for RestoreAgentRequest[src]

impl Default for RestoreAgentRequest[src]

impl Message for RestoreAgentRequest[src]

impl PartialEq<RestoreAgentRequest> for RestoreAgentRequest[src]

impl StructuralPartialEq for RestoreAgentRequest[src]

Auto Trait Implementations

impl RefUnwindSafe for RestoreAgentRequest

impl Send for RestoreAgentRequest

impl Sync for RestoreAgentRequest

impl Unpin for RestoreAgentRequest

impl UnwindSafe for RestoreAgentRequest

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]