# Google Cloud Service Directory V1 Client - Class UpdateServiceRequest (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 UpdateServiceRequest.

The request message for
[RegistrationService.UpdateService](https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Client.RegistrationServiceClient#_Google_Cloud_ServiceDirectory_V1_Client_RegistrationServiceClient__updateService__).

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

## 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` Required. The updated service. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. List of fields to be updated in this request. |

### getService

Required. The updated service.

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

### hasService

### clearService

### setService

Required. The updated service.

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

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

### getUpdateMask

Required. List of fields to be updated in this request.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask|null` |   |

### hasUpdateMask

### clearUpdateMask

### setUpdateMask

Required. List of fields to be updated in this request.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` |

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

### static::build

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `service` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Service` Required. The updated service. |
| `updateMask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. List of fields to be updated in this request. |

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