Enum google_api_proto::google::cloud::compute::v1::network_endpoint_group::NetworkEndpointType
source · #[repr(i32)]pub enum NetworkEndpointType {
UndefinedNetworkEndpointType = 0,
GceVmIp = 401_880_793,
GceVmIpPort = 501_838_375,
InternetFqdnPort = 404_154_477,
InternetIpPort = 477_719_963,
NonGcpPrivateIpPort = 336_447_968,
PrivateServiceConnect = 48_134_724,
Serverless = 270_492_508,
}
Expand description
Type of network endpoints in this network endpoint group. Can be one of GCE_VM_IP, GCE_VM_IP_PORT, NON_GCP_PRIVATE_IP_PORT, INTERNET_FQDN_PORT, INTERNET_IP_PORT, SERVERLESS, PRIVATE_SERVICE_CONNECT, GCE_VM_IP_PORTMAP.
Variants§
UndefinedNetworkEndpointType = 0
A value indicating that the enum field is not set.
GceVmIp = 401_880_793
The network endpoint is represented by an IP address.
GceVmIpPort = 501_838_375
The network endpoint is represented by IP address and port pair.
InternetFqdnPort = 404_154_477
The network endpoint is represented by fully qualified domain name and port.
InternetIpPort = 477_719_963
The network endpoint is represented by an internet IP address and port.
NonGcpPrivateIpPort = 336_447_968
The network endpoint is represented by an IP address and port. The endpoint belongs to a VM or pod running in a customer’s on-premises.
PrivateServiceConnect = 48_134_724
The network endpoint is either public Google APIs or services exposed by other GCP Project with a Service Attachment. The connection is set up by private service connect
Serverless = 270_492_508
The network endpoint is handled by specified serverless infrastructure.
Implementations§
source§impl NetworkEndpointType
impl NetworkEndpointType
sourcepub fn from_i32(value: i32) -> Option<NetworkEndpointType>
👎Deprecated: Use the TryFrom<i32> implementation instead
pub fn from_i32(value: i32) -> Option<NetworkEndpointType>
Converts an i32
to a NetworkEndpointType
, or None
if value
is not a valid variant.
source§impl NetworkEndpointType
impl NetworkEndpointType
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 NetworkEndpointType
impl Clone for NetworkEndpointType
source§fn clone(&self) -> NetworkEndpointType
fn clone(&self) -> NetworkEndpointType
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for NetworkEndpointType
impl Debug for NetworkEndpointType
source§impl Default for NetworkEndpointType
impl Default for NetworkEndpointType
source§fn default() -> NetworkEndpointType
fn default() -> NetworkEndpointType
source§impl From<NetworkEndpointType> for i32
impl From<NetworkEndpointType> for i32
source§fn from(value: NetworkEndpointType) -> i32
fn from(value: NetworkEndpointType) -> i32
source§impl Hash for NetworkEndpointType
impl Hash for NetworkEndpointType
source§impl Ord for NetworkEndpointType
impl Ord for NetworkEndpointType
source§fn cmp(&self, other: &NetworkEndpointType) -> Ordering
fn cmp(&self, other: &NetworkEndpointType) -> 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 NetworkEndpointType
impl PartialEq for NetworkEndpointType
source§fn eq(&self, other: &NetworkEndpointType) -> bool
fn eq(&self, other: &NetworkEndpointType) -> bool
self
and other
values to be equal, and is used
by ==
.source§impl PartialOrd for NetworkEndpointType
impl PartialOrd for NetworkEndpointType
source§fn partial_cmp(&self, other: &NetworkEndpointType) -> Option<Ordering>
fn partial_cmp(&self, other: &NetworkEndpointType) -> 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 NetworkEndpointType
impl TryFrom<i32> for NetworkEndpointType
§type Error = DecodeError
type Error = DecodeError
source§fn try_from(value: i32) -> Result<NetworkEndpointType, DecodeError>
fn try_from(value: i32) -> Result<NetworkEndpointType, DecodeError>
impl Copy for NetworkEndpointType
impl Eq for NetworkEndpointType
impl StructuralPartialEq for NetworkEndpointType
Auto Trait Implementations§
impl Freeze for NetworkEndpointType
impl RefUnwindSafe for NetworkEndpointType
impl Send for NetworkEndpointType
impl Sync for NetworkEndpointType
impl Unpin for NetworkEndpointType
impl UnwindSafe for NetworkEndpointType
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