# Google Cloud Eventarc V1 Client - Class Provider (2.3.1)

2.3.1 (latest) 2.3.0 2.2.1 2.1.5 2.0.1 1.3.5 1.2.2 1.1.1 1.0.5 Reference documentation and code samples for the Google Cloud Eventarc V1 Client class Provider.

A representation of the Provider resource.

Generated from protobuf message `google.cloud.eventarc.v1.Provider`

## Namespace

Google \\ Cloud \\ Eventarc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` Output only. In `projects/{project}/locations/{location}/providers/{provider_id}` format. |
| `↳ display_name` | `string` Output only. Human friendly name for the Provider. For example "Cloud Storage". |
| `↳ event_types` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.EventType>` Output only. Event types for this provider. |

### getName

Output only. In
`projects/{project}/locations/{location}/providers/{provider_id}` format.

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

### setName

Output only. In
`projects/{project}/locations/{location}/providers/{provider_id}` format.

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

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

### getDisplayName

Output only. Human friendly name for the Provider. For example "Cloud
Storage".

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

### setDisplayName

Output only. Human friendly name for the Provider. For example "Cloud
Storage".

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

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

### getEventTypes

Output only. Event types for this provider.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.EventType>` |   |

### setEventTypes

Output only. Event types for this provider.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.EventType>` |

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