# Stackdriver Error Reporting V1beta1 Client - Class ErrorGroup (0.26.1)

0.26.1 (latest) 0.26.0 0.25.3 0.24.0 0.23.1 0.22.10 0.21.1 0.20.2 0.19.12

> [!WARNING]
> **Beta**
>
>
> This library is covered by the [Pre-GA Offerings Terms](https://docs.cloud.google.com/terms/service-terms#1)
> of the Terms of Service. Pre-GA libraries might have limited support,
> and changes to pre-GA libraries might not be compatible with other pre-GA versions.
> For more information, see the
> [launch stage descriptions](https://docs.cloud.google.com/products#product-launch-stages).

Reference documentation and code samples for the Stackdriver Error Reporting V1beta1 Client class ErrorGroup.

Description of a group of similar error events.

Generated from protobuf message `google.devtools.clouderrorreporting.v1beta1.ErrorGroup`

## Namespace

Google \\ Cloud \\ ErrorReporting \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ name` | `string` The group resource name. Written as `projects/{projectID}/groups/{group_id}` or `projects/{projectID}/locations/{location}/groups/{group_id}` Examples: `projects/my-project-123/groups/my-group`, `projects/my-project-123/locations/us-central1/groups/my-group` In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice). For a list of supported locations, see [Supported Regions](https://cloud.google.com/logging/docs/region-support). `global` is the default when unspecified. |
| `↳ group_id` | `string` An opaque identifier of the group. This field is assigned by the Error Reporting system and always populated. In the group resource name, the `group_id` is a unique identifier for a particular error group. The identifier is derived from key parts of the error-log content and is treated as Service Data. For information about how Service Data is handled, see [Google Cloud Privacy Notice](https://cloud.google.com/terms/cloud-privacy-notice). |
| `↳ tracking_issues` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.TrackingIssue>` Associated tracking issues. |
| `↳ resolution_status` | `int` Error group's resolution status. An unspecified resolution status will be interpreted as OPEN |

### getName

The group resource name.

Written as `projects/{projectID}/groups/{group_id}` or
`projects/{projectID}/locations/{location}/groups/{group_id}`
Examples: `projects/my-project-123/groups/my-group`,
`projects/my-project-123/locations/us-central1/groups/my-group`
In the group resource name, the `group_id` is a unique identifier for a
particular error group. The identifier is derived from key parts of the
error-log content and is treated as Service Data. For information about
how Service Data is handled, see [Google Cloud Privacy
Notice](https://cloud.google.com/terms/cloud-privacy-notice).
For a list of supported locations, see [Supported
Regions](https://cloud.google.com/logging/docs/region-support). `global` is
the default when unspecified.

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

### setName

The group resource name.

Written as `projects/{projectID}/groups/{group_id}` or
`projects/{projectID}/locations/{location}/groups/{group_id}`
Examples: `projects/my-project-123/groups/my-group`,
`projects/my-project-123/locations/us-central1/groups/my-group`
In the group resource name, the `group_id` is a unique identifier for a
particular error group. The identifier is derived from key parts of the
error-log content and is treated as Service Data. For information about
how Service Data is handled, see [Google Cloud Privacy
Notice](https://cloud.google.com/terms/cloud-privacy-notice).
For a list of supported locations, see [Supported
Regions](https://cloud.google.com/logging/docs/region-support). `global` is
the default when unspecified.

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

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

### getGroupId

An opaque identifier of the group. This field is assigned by the Error
Reporting system and always populated.

In the group resource name, the `group_id` is a unique identifier for a
particular error group. The identifier is derived from key parts of the
error-log content and is treated as Service Data. For information about
how Service Data is handled, see [Google Cloud Privacy
Notice](https://cloud.google.com/terms/cloud-privacy-notice).

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

### setGroupId

An opaque identifier of the group. This field is assigned by the Error
Reporting system and always populated.

In the group resource name, the `group_id` is a unique identifier for a
particular error group. The identifier is derived from key parts of the
error-log content and is treated as Service Data. For information about
how Service Data is handled, see [Google Cloud Privacy
Notice](https://cloud.google.com/terms/cloud-privacy-notice).

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

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

### getTrackingIssues

Associated tracking issues.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://protobuf.dev/reference/php/api-docs/Google/Protobuf/RepeatedField<https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.TrackingIssue>` |   |

### setTrackingIssues

Associated tracking issues.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.TrackingIssue>` |

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

### getResolutionStatus

Error group's resolution status.

An unspecified resolution status will be interpreted as OPEN

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `int` | Enum of type [ResolutionStatus](https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.ResolutionStatus). |

### setResolutionStatus

Error group's resolution status.

An unspecified resolution status will be interpreted as OPEN

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `int` Enum of type [ResolutionStatus](https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.ResolutionStatus). |

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