Struct google_api_proto::google::cloud::dialogflow::v2beta1::NotificationConfig
source · pub struct NotificationConfig {
pub topic: String,
pub message_format: i32,
}
Expand description
Defines notification behavior.
Fields§
§topic: String
Name of the Pub/Sub topic to publish conversation events like [CONVERSATION_STARTED][google.cloud.dialogflow.v2beta1.ConversationEvent.Type.CONVERSATION_STARTED] as serialized [ConversationEvent][google.cloud.dialogflow.v2beta1.ConversationEvent] protos.
For telephony integration to receive notification, make sure either this
topic is in the same project as the conversation or you grant
service-<Conversation Project Number>@gcp-sa-dialogflow.iam.gserviceaccount.com
the Dialogflow Service Agent
role in the topic project.
For chat integration to receive notification, make sure API caller has been
granted the Dialogflow Service Agent
role for the topic.
Format: projects/<Project ID>/locations/<Location ID>/topics/<Topic ID>
.
message_format: i32
Format of message.
Implementations§
source§impl NotificationConfig
impl NotificationConfig
sourcepub fn message_format(&self) -> MessageFormat
pub fn message_format(&self) -> MessageFormat
Returns the enum value of message_format
, or the default if the field is set to an invalid enum value.
sourcepub fn set_message_format(&mut self, value: MessageFormat)
pub fn set_message_format(&mut self, value: MessageFormat)
Sets message_format
to the provided enum value.
Trait Implementations§
source§impl Clone for NotificationConfig
impl Clone for NotificationConfig
source§fn clone(&self) -> NotificationConfig
fn clone(&self) -> NotificationConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NotificationConfig
impl Debug for NotificationConfig
source§impl Default for NotificationConfig
impl Default for NotificationConfig
source§impl Message for NotificationConfig
impl Message for NotificationConfig
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 NotificationConfig
impl PartialEq for NotificationConfig
source§fn eq(&self, other: &NotificationConfig) -> bool
fn eq(&self, other: &NotificationConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotificationConfig
Auto Trait Implementations§
impl Freeze for NotificationConfig
impl RefUnwindSafe for NotificationConfig
impl Send for NotificationConfig
impl Sync for NotificationConfig
impl Unpin for NotificationConfig
impl UnwindSafe for NotificationConfig
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