Struct google_api_proto::google::cloud::compute::v1::NotificationEndpointGrpcSettings
source · pub struct NotificationEndpointGrpcSettings {
pub authority: Option<String>,
pub endpoint: Option<String>,
pub payload_name: Option<String>,
pub resend_interval: Option<Duration>,
pub retry_duration_sec: Option<u32>,
}
Expand description
Represents a gRPC setting that describes one gRPC notification endpoint and the retry duration attempting to send notification to this endpoint.
Fields§
Optional. If specified, this field is used to set the authority header by the sender of notifications. See https://tools.ietf.org/html/rfc7540#section-8.1.2.3
endpoint: Option<String>
Endpoint to which gRPC notifications are sent. This must be a valid gRPCLB DNS name.
payload_name: Option<String>
Optional. If specified, this field is used to populate the “name” field in gRPC requests.
resend_interval: Option<Duration>
Optional. This field is used to configure how often to send a full update of all non-healthy backends. If unspecified, full updates are not sent. If specified, must be in the range between 600 seconds to 3600 seconds. Nanos are disallowed. Can only be set for regional notification endpoints.
retry_duration_sec: Option<u32>
How much time (in seconds) is spent attempting notification retries until a successful response is received. Default is 30s. Limit is 20m (1200s). Must be a positive number.
Implementations§
source§impl NotificationEndpointGrpcSettings
impl NotificationEndpointGrpcSettings
sourcepub fn retry_duration_sec(&self) -> u32
pub fn retry_duration_sec(&self) -> u32
Returns the value of retry_duration_sec
, or the default value if retry_duration_sec
is unset.
sourcepub fn endpoint(&self) -> &str
pub fn endpoint(&self) -> &str
Returns the value of endpoint
, or the default value if endpoint
is unset.
sourcepub fn payload_name(&self) -> &str
pub fn payload_name(&self) -> &str
Returns the value of payload_name
, or the default value if payload_name
is unset.
Returns the value of authority
, or the default value if authority
is unset.
Trait Implementations§
source§impl Clone for NotificationEndpointGrpcSettings
impl Clone for NotificationEndpointGrpcSettings
source§fn clone(&self) -> NotificationEndpointGrpcSettings
fn clone(&self) -> NotificationEndpointGrpcSettings
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Message for NotificationEndpointGrpcSettings
impl Message for NotificationEndpointGrpcSettings
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 NotificationEndpointGrpcSettings
impl PartialEq for NotificationEndpointGrpcSettings
source§fn eq(&self, other: &NotificationEndpointGrpcSettings) -> bool
fn eq(&self, other: &NotificationEndpointGrpcSettings) -> bool
self
and other
values to be equal, and is used
by ==
.impl StructuralPartialEq for NotificationEndpointGrpcSettings
Auto Trait Implementations§
impl Freeze for NotificationEndpointGrpcSettings
impl RefUnwindSafe for NotificationEndpointGrpcSettings
impl Send for NotificationEndpointGrpcSettings
impl Sync for NotificationEndpointGrpcSettings
impl Unpin for NotificationEndpointGrpcSettings
impl UnwindSafe for NotificationEndpointGrpcSettings
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