Enum google_api_proto::google::cloud::dialogflow::cx::v3beta1::webhook::generic_web_service::ServiceAgentAuth
source · #[repr(i32)]pub enum ServiceAgentAuth {
Unspecified = 0,
None = 1,
IdToken = 2,
AccessToken = 3,
}
Expand description
Indicate the auth token type generated from the Diglogflow service agent.
Variants§
Unspecified = 0
Service agent auth type unspecified. Default to ID_TOKEN.
None = 1
No token used.
IdToken = 2
Use ID
token
generated from service agent. This can be used to access Cloud Function
and Cloud Run after you grant Invoker role to
service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com
.
AccessToken = 3
Use access
token
generated from service agent. This can be used to access other Google
Cloud APIs after you grant required roles to
service-<PROJECT-NUMBER>@gcp-sa-dialogflow.iam.gserviceaccount.com
.
Implementations§
source§impl ServiceAgentAuth
impl ServiceAgentAuth
sourcepub fn as_str_name(&self) -> &'static str
pub fn as_str_name(&self) -> &'static str
String value of the enum field names used in the ProtoBuf definition.
The values are not transformed in any way and thus are considered stable (if the ProtoBuf definition does not change) and safe for programmatic use.
sourcepub fn from_str_name(value: &str) -> Option<Self>
pub fn from_str_name(value: &str) -> Option<Self>
Creates an enum from field names used in the ProtoBuf definition.
Trait Implementations§
source§impl Clone for ServiceAgentAuth
impl Clone for ServiceAgentAuth
source§fn clone(&self) -> ServiceAgentAuth
fn clone(&self) -> ServiceAgentAuth
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for ServiceAgentAuth
impl Debug for ServiceAgentAuth
source§impl Default for ServiceAgentAuth
impl Default for ServiceAgentAuth
source§fn default() -> ServiceAgentAuth
fn default() -> ServiceAgentAuth
source§impl From<ServiceAgentAuth> for i32
impl From<ServiceAgentAuth> for i32
source§fn from(value: ServiceAgentAuth) -> i32
fn from(value: ServiceAgentAuth) -> i32
source§impl Hash for ServiceAgentAuth
impl Hash for ServiceAgentAuth
source§impl Ord for ServiceAgentAuth
impl Ord for ServiceAgentAuth
source§fn cmp(&self, other: &ServiceAgentAuth) -> Ordering
fn cmp(&self, other: &ServiceAgentAuth) -> Ordering
1.21.0 · source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
source§impl PartialEq for ServiceAgentAuth
impl PartialEq for ServiceAgentAuth
source§fn eq(&self, other: &ServiceAgentAuth) -> bool
fn eq(&self, other: &ServiceAgentAuth) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for ServiceAgentAuth
impl PartialOrd for ServiceAgentAuth
source§fn partial_cmp(&self, other: &ServiceAgentAuth) -> Option<Ordering>
fn partial_cmp(&self, other: &ServiceAgentAuth) -> Option<Ordering>
1.0.0 · source§fn le(&self, other: &Rhs) -> bool
fn le(&self, other: &Rhs) -> bool
self
and other
) and is used by the <=
operator. Read moresource§impl TryFrom<i32> for ServiceAgentAuth
impl TryFrom<i32> for ServiceAgentAuth
§type Error = UnknownEnumValue
type Error = UnknownEnumValue
source§fn try_from(value: i32) -> Result<ServiceAgentAuth, UnknownEnumValue>
fn try_from(value: i32) -> Result<ServiceAgentAuth, UnknownEnumValue>
impl Copy for ServiceAgentAuth
impl Eq for ServiceAgentAuth
impl StructuralPartialEq for ServiceAgentAuth
Auto Trait Implementations§
impl Freeze for ServiceAgentAuth
impl RefUnwindSafe for ServiceAgentAuth
impl Send for ServiceAgentAuth
impl Sync for ServiceAgentAuth
impl Unpin for ServiceAgentAuth
impl UnwindSafe for ServiceAgentAuth
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<Q, K> Comparable<K> for Q
impl<Q, K> Comparable<K> for Q
source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key
and return true
if they are equal.§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