# Google Cloud Network Management V1 Client - Class EndpointInfo (2.9.2)

2.9.2 (latest) 2.9.1 2.8.0 2.7.0 2.6.1 2.5.0 2.4.2 2.3.2 2.2.1 2.1.1 2.0.1 1.7.3 1.5.0 1.4.2 1.3.0 1.2.0 1.1.1 1.0.5 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** ||
|---|---|
| **Name** | **Description** |
| `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** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSourceIp

Source IP address.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDestinationIp

Destination IP address.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDestinationIp

Destination IP address.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getProtocol

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setProtocol

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSourcePort

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setSourcePort

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDestinationPort

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

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` |   |

### setDestinationPort

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

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSourceNetworkUri

URI of the network where this packet originates from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSourceNetworkUri

URI of the network where this packet originates from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getDestinationNetworkUri

URI of the network where this packet is sent to.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setDestinationNetworkUri

URI of the network where this packet is sent to.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getSourceAgentUri

URI of the source telemetry agent this packet originates from.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setSourceAgentUri

URI of the source telemetry agent this packet originates from.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |