Struct google_api_proto::google::api::cloudquotas::v1::QuotaConfig
source · pub struct QuotaConfig {
pub preferred_value: i64,
pub state_detail: String,
pub granted_value: Option<i64>,
pub trace_id: String,
pub annotations: BTreeMap<String, String>,
pub request_origin: i32,
}
Expand description
The preferred quota configuration.
Fields§
§preferred_value: i64
Required. The preferred value. Must be greater than or equal to -1. If set to -1, it means the value is “unlimited”.
state_detail: String
Output only. Optional details about the state of this quota preference.
granted_value: Option<i64>
Output only. Granted quota value.
trace_id: String
Output only. The trace id that the Google Cloud uses to provision the requested quota. This trace id may be used by the client to contact Cloud support to track the state of a quota preference request. The trace id is only produced for increase requests and is unique for each request. The quota decrease requests do not have a trace id.
annotations: BTreeMap<String, String>
Optional. The annotations map for clients to store small amounts of arbitrary data. Do not put PII or other sensitive information here. See https://google.aip.dev/128#annotations
request_origin: i32
Output only. The origin of the quota preference request.
Implementations§
source§impl QuotaConfig
impl QuotaConfig
sourcepub fn request_origin(&self) -> Origin
pub fn request_origin(&self) -> Origin
Returns the enum value of request_origin
, or the default if the field is set to an invalid enum value.
sourcepub fn set_request_origin(&mut self, value: Origin)
pub fn set_request_origin(&mut self, value: Origin)
Sets request_origin
to the provided enum value.
Trait Implementations§
source§impl Clone for QuotaConfig
impl Clone for QuotaConfig
source§fn clone(&self) -> QuotaConfig
fn clone(&self) -> QuotaConfig
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for QuotaConfig
impl Debug for QuotaConfig
source§impl Default for QuotaConfig
impl Default for QuotaConfig
source§impl Message for QuotaConfig
impl Message for QuotaConfig
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 QuotaConfig
impl PartialEq for QuotaConfig
source§fn eq(&self, other: &QuotaConfig) -> bool
fn eq(&self, other: &QuotaConfig) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for QuotaConfig
Auto Trait Implementations§
impl Freeze for QuotaConfig
impl RefUnwindSafe for QuotaConfig
impl Send for QuotaConfig
impl Sync for QuotaConfig
impl Unpin for QuotaConfig
impl UnwindSafe for QuotaConfig
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