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

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

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

## Namespace

Google \\ Cloud \\ ServiceDirectory \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ endpoint` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Endpoint` Required. The updated endpoint. |
| `↳ update_mask` | `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/FieldMask` Required. List of fields to be updated in this request. |

### getEndpoint

Required. The updated endpoint.

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

### hasEndpoint

### clearEndpoint

### setEndpoint

Required. The updated endpoint.

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

| **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** |
| `endpoint` | `https://docs.cloud.google.com/php/docs/reference/cloud-service-directory/latest/V1.Endpoint` Required. The updated endpoint. |
| `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.UpdateEndpointRequest` |   |