# Google Cloud Eventarc V1 Client - Class EventType (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 EventType.

A representation of the event type resource.

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

## Namespace

Google \\ Cloud \\ Eventarc \\ V1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ type` | `string` Output only. The full name of the event type (for example, "google.cloud.storage.object.v1.finalized"). In the form of {provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be versioned and event schemas are guaranteed to remain backward compatible within one version. Note that event type versions and API versions do not need to match. |
| `↳ description` | `string` Output only. Human friendly description of what the event type is about. For example "Bucket created in Cloud Storage". |
| `↳ filtering_attributes` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-eventarc/latest/V1.FilteringAttribute>` Output only. Filtering attributes for the event type. |
| `↳ event_schema_uri` | `string` Output only. URI for the event schema. For example "<https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto>" |

### getType

Output only. The full name of the event type (for example,
"google.cloud.storage.object.v1.finalized"). In the form of
{provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
versioned and event schemas are guaranteed to remain backward compatible
within one version. Note that event type versions and API versions do not
need to match.

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

### setType

Output only. The full name of the event type (for example,
"google.cloud.storage.object.v1.finalized"). In the form of
{provider-specific-prefix}.{resource}.{version}.{verb}. Types MUST be
versioned and event schemas are guaranteed to remain backward compatible
within one version. Note that event type versions and API versions do not
need to match.

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

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

### getDescription

Output only. Human friendly description of what the event type is about.

For example "Bucket created in Cloud Storage".

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

### setDescription

Output only. Human friendly description of what the event type is about.

For example "Bucket created in Cloud Storage".

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

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

### getFilteringAttributes

Output only. Filtering attributes for the event type.

| **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.FilteringAttribute>` |   |

### setFilteringAttributes

Output only. Filtering attributes for the event type.

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

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

### getEventSchemaUri

Output only. URI for the event schema.

For example
"<https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto>"

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

### setEventSchemaUri

Output only. URI for the event schema.

For example
"<https://github.com/googleapis/google-cloudevents/blob/master/proto/google/events/cloud/storage/v1/events.proto>"

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

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