# Google Cloud Service Health V1 Client - Class GetEventRequest (0.5.0)

0.5.0 (latest) 0.4.3 0.3.1 0.2.3 0.1.8 Reference documentation and code samples for the Google Cloud Service Health V1 Client class GetEventRequest.

Gets information about a specific event.

Generated from protobuf message `google.cloud.servicehealth.v1.GetEventRequest`

## Namespace

Google \\ Cloud \\ ServiceHealth \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Required. Unique name of the event in this scope including project and location using the form `projects/{project_id}/locations/{location}/events/{event_id}`. `project_id` - Project ID of the project that contains the event. `location` - The location to get the service health events from. `event_id` - Event ID to retrieve. |

### getName

Required. Unique name of the event in this scope including project
and location using the form
`projects/{project_id}/locations/{location}/events/{event_id}`.

`project_id` - Project ID of the project that contains the event.   

`location` - The location to get the service health events from.   

`event_id` - Event ID to retrieve.

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

### setName

Required. Unique name of the event in this scope including project
and location using the form
`projects/{project_id}/locations/{location}/events/{event_id}`.

`project_id` - Project ID of the project that contains the event.   

`location` - The location to get the service health events from.   

`event_id` - Event ID to retrieve.

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

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

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `name` | `string` Required. Unique name of the event in this scope including project and location using the form `projects/{project_id}/locations/{location}/events/{event_id}`. `project_id` - Project ID of the project that contains the event. `location` - The location to get the service health events from. `event_id` - Event ID to retrieve. Please see ServiceHealthClient::eventName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-servicehealth/latest/V1.GetEventRequest` |   |