Struct google_api_proto::google::cloud::networkmanagement::v1beta1::RouteInfo
source · pub struct RouteInfo {Show 16 fields
pub route_type: i32,
pub next_hop_type: i32,
pub route_scope: i32,
pub display_name: String,
pub uri: String,
pub dest_ip_range: String,
pub next_hop: String,
pub network_uri: String,
pub priority: i32,
pub instance_tags: Vec<String>,
pub src_ip_range: String,
pub dest_port_ranges: Vec<String>,
pub src_port_ranges: Vec<String>,
pub protocols: Vec<String>,
pub ncc_hub_uri: Option<String>,
pub ncc_spoke_uri: Option<String>,
}
Expand description
For display only. Metadata associated with a Compute Engine route.
Fields§
§route_type: i32
Type of route.
next_hop_type: i32
Type of next hop.
route_scope: i32
Indicates where route is applicable.
display_name: String
Name of a route.
uri: String
URI of a route. Dynamic, peering static and peering dynamic routes do not have an URI. Advertised route from Google Cloud VPC to on-premises network also does not have an URI.
dest_ip_range: String
Destination IP range of the route.
next_hop: String
Next hop of the route.
network_uri: String
URI of a Compute Engine network. NETWORK routes only.
priority: i32
Priority of the route.
Instance tags of the route.
src_ip_range: String
Source IP address range of the route. Policy based routes only.
dest_port_ranges: Vec<String>
Destination port ranges of the route. Policy based routes only.
src_port_ranges: Vec<String>
Source port ranges of the route. Policy based routes only.
protocols: Vec<String>
Protocols of the route. Policy based routes only.
ncc_hub_uri: Option<String>
URI of a NCC Hub. NCC_HUB routes only.
ncc_spoke_uri: Option<String>
URI of a NCC Spoke. NCC_HUB routes only.
Implementations§
source§impl RouteInfo
impl RouteInfo
sourcepub fn route_type(&self) -> RouteType
pub fn route_type(&self) -> RouteType
Returns the enum value of route_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_route_type(&mut self, value: RouteType)
pub fn set_route_type(&mut self, value: RouteType)
Sets route_type
to the provided enum value.
sourcepub fn next_hop_type(&self) -> NextHopType
pub fn next_hop_type(&self) -> NextHopType
Returns the enum value of next_hop_type
, or the default if the field is set to an invalid enum value.
sourcepub fn set_next_hop_type(&mut self, value: NextHopType)
pub fn set_next_hop_type(&mut self, value: NextHopType)
Sets next_hop_type
to the provided enum value.
sourcepub fn route_scope(&self) -> RouteScope
pub fn route_scope(&self) -> RouteScope
Returns the enum value of route_scope
, or the default if the field is set to an invalid enum value.
sourcepub fn set_route_scope(&mut self, value: RouteScope)
pub fn set_route_scope(&mut self, value: RouteScope)
Sets route_scope
to the provided enum value.
sourcepub fn ncc_hub_uri(&self) -> &str
pub fn ncc_hub_uri(&self) -> &str
Returns the value of ncc_hub_uri
, or the default value if ncc_hub_uri
is unset.
sourcepub fn ncc_spoke_uri(&self) -> &str
pub fn ncc_spoke_uri(&self) -> &str
Returns the value of ncc_spoke_uri
, or the default value if ncc_spoke_uri
is unset.
Trait Implementations§
source§impl Message for RouteInfo
impl Message for RouteInfo
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 RouteInfo
impl PartialEq for RouteInfo
impl StructuralPartialEq for RouteInfo
Auto Trait Implementations§
impl Freeze for RouteInfo
impl RefUnwindSafe for RouteInfo
impl Send for RouteInfo
impl Sync for RouteInfo
impl Unpin for RouteInfo
impl UnwindSafe for RouteInfo
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