Google Cloud Network Management V1 Client - Class EndpointInfo (1.5.0)

Reference documentation and code samples for the Google Cloud Network Management V1 Client class EndpointInfo.

For display only. The specification of the endpoints for the test.

EndpointInfo is derived from source and destination Endpoint and validated by the backend data plane model.

Generated from protobuf message google.cloud.networkmanagement.v1.EndpointInfo

Namespace

Google \ Cloud \ NetworkManagement \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ source_ip string

Source IP address.

↳ destination_ip string

Destination IP address.

↳ protocol string

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

↳ source_port int

Source port. Only valid when protocol is TCP or UDP.

↳ destination_port int

Destination port. Only valid when protocol is TCP or UDP.

↳ source_network_uri string

URI of the network where this packet originates from.

↳ destination_network_uri string

URI of the network where this packet is sent to.

↳ source_agent_uri string

URI of the source telemetry agent this packet originates from.

getSourceIp

Source IP address.

Returns
TypeDescription
string

setSourceIp

Source IP address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDestinationIp

Destination IP address.

Returns
TypeDescription
string

setDestinationIp

Destination IP address.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getProtocol

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

Returns
TypeDescription
string

setProtocol

IP protocol in string format, for example: "TCP", "UDP", "ICMP".

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourcePort

Source port. Only valid when protocol is TCP or UDP.

Returns
TypeDescription
int

setSourcePort

Source port. Only valid when protocol is TCP or UDP.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getDestinationPort

Destination port. Only valid when protocol is TCP or UDP.

Returns
TypeDescription
int

setDestinationPort

Destination port. Only valid when protocol is TCP or UDP.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getSourceNetworkUri

URI of the network where this packet originates from.

Returns
TypeDescription
string

setSourceNetworkUri

URI of the network where this packet originates from.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getDestinationNetworkUri

URI of the network where this packet is sent to.

Returns
TypeDescription
string

setDestinationNetworkUri

URI of the network where this packet is sent to.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSourceAgentUri

URI of the source telemetry agent this packet originates from.

Returns
TypeDescription
string

setSourceAgentUri

URI of the source telemetry agent this packet originates from.

Parameter
NameDescription
var string
Returns
TypeDescription
$this