# Google Cloud Network Management V1 Client - Class GoogleServiceInfo (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 GoogleServiceInfo.

For display only. Details of a Google Service sending packets to a
VPC network. Although the source IP might be a publicly routable address,
some Google Services use special routes within Google production
infrastructure to reach Compute Engine Instances.

<https://cloud.google.com/vpc/docs/routes#special_return_paths>

Generated from protobuf message `google.cloud.networkmanagement.v1.GoogleServiceInfo`

## 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. |
| `↳ google_service_type` | `int` Recognized type of a Google Service. |

### getSourceIp

Source IP address.

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

### setSourceIp

Source IP address.

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

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

### getGoogleServiceType

Recognized type of a Google Service.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [GoogleServiceType](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.GoogleServiceInfo.GoogleServiceType). |

### setGoogleServiceType

Recognized type of a Google Service.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [GoogleServiceType](https://docs.cloud.google.com/php/docs/reference/cloud-network-management/latest/V1.GoogleServiceInfo.GoogleServiceType). |

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