# Google Cloud Service Directory V1 Client - Class ResolveServiceResponse (2.2.0)

2.2.0 (latest) 2.1.2 2.0.6 1.3.6 1.2.1 1.1.2 1.0.5 Reference documentation and code samples for the Google Cloud Service Directory V1 Client class ResolveServiceResponse.

The response message for
[LookupService.ResolveService](https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Client.LookupServiceClient#_Google_Cloud_ServiceDirectory_V1_Client_LookupServiceClient__resolveService__).

Generated from protobuf message `google.cloud.servicedirectory.v1.ResolveServiceResponse`

## Namespace

Google \\ Cloud \\ ServiceDirectory \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ service` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Service` |

### getService

Generated from protobuf field `.google.cloud.servicedirectory.v1.Service service = 1;`

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Service|null` |   |

### hasService

### clearService

### setService

Generated from protobuf field `.google.cloud.servicedirectory.v1.Service service = 1;`

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Service` |

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