Struct googapis::google::cloud::networkmanagement::v1beta1::Endpoint [−][src]
pub struct Endpoint {
pub ip_address: String,
pub port: i32,
pub instance: String,
pub gke_master_cluster: String,
pub cloud_sql_instance: String,
pub network: String,
pub network_type: i32,
pub project_id: String,
}
Expand description
Source or destination of the Connectivity Test.
Fields
ip_address: String
The IP address of the endpoint, which can be an external or internal IP. An IPv6 address is only allowed when the test’s destination is a global load balancer VIP.
port: i32
The IP protocol port of the endpoint. Only applicable when protocol is TCP or UDP.
instance: String
A Compute Engine instance URI.
gke_master_cluster: String
A cluster URI for Google Kubernetes Engine master.
cloud_sql_instance: String
A Cloud SQL instance URI.
network: String
A Compute Engine network URI.
network_type: i32
Type of the network where the endpoint is located. Applicable only to source endpoint, as destination network type can be inferred from the source.
project_id: String
Project ID where the endpoint is located. The Project ID can be derived from the URI if you provide a VM instance or network URI. The following are two cases where you must provide the project ID:
- Only the IP address is specified, and the IP address is within a GCP project.
- When you are using Shared VPC and the IP address that you provide is from the service project. In this case, the network that the IP address resides in is defined in the host project.
Implementations
Returns the enum value of network_type
, or the default if the field is set to an invalid enum value.
Sets network_type
to the provided enum value.
Trait Implementations
fn merge_field<B>(
&mut self,
tag: u32,
wire_type: WireType,
buf: &mut B,
ctx: DecodeContext
) -> Result<(), DecodeError> where
B: Buf,
Returns the encoded length of the message without a length delimiter.
Encodes the message to a buffer. Read more
Encodes the message to a newly allocated buffer.
Encodes the message with a length-delimiter to a buffer. Read more
Encodes the message with a length-delimiter to a newly allocated buffer.
Decodes an instance of the message from a buffer. Read more
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError> where
Self: Default,
B: Buf,
Decodes a length-delimited instance of the message from the buffer.
Decodes an instance of the message from a buffer, and merges it into self
. Read more
Decodes a length-delimited instance of the message from buffer, and
merges it into self
. Read more
Auto Trait Implementations
impl RefUnwindSafe for Endpoint
impl UnwindSafe for Endpoint
Blanket Implementations
Mutably borrows from an owned value. Read more
Wrap the input message T
in a tonic::Request
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more