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

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

This should not be used to lookup endpoints at runtime. Instead, use
the `resolve` method.

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

## Namespace

Google \\ Cloud \\ ServiceDirectory \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. The name of the endpoint to get. |

### getName

Required. The name of the endpoint to get.

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

### setName

Required. The name of the endpoint to get.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. The name of the endpoint to get. Please see RegistrationServiceClient::endpointName() for help formatting this field. |

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