# Stackdriver Error Reporting V1beta1 Client - Class GetGroupRequest (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 GetGroupRequest.

A request to return an individual group.

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

## Namespace

Google \\ Cloud \\ ErrorReporting \\ V1beta1

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ group_name` | `string` Required. The group resource name. Written as either `projects/{projectID}/groups/{group_id}` or `projects/{projectID}/locations/{location}/groups/{group_id}`. Call \[groupStats.list\] \[google.devtools.clouderrorreporting.v1beta1.ErrorStatsService.ListGroupStats\] to return a list of groups belonging to this project. Examples: `projects/my-project-123/groups/my-group`, `projects/my-project-123/locations/global/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. |

### getGroupName

Required. The group resource name. Written as either
`projects/{projectID}/groups/{group_id}` or
`projects/{projectID}/locations/{location}/groups/{group_id}`. Call
[groupStats.list](https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.Client.ErrorStatsServiceClient#_Google_Cloud_ErrorReporting_V1beta1_Client_ErrorStatsServiceClient__listGroupStats__)
to return a list of groups belonging to this project.

Examples: `projects/my-project-123/groups/my-group`,
`projects/my-project-123/locations/global/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` |   |

### setGroupName

Required. The group resource name. Written as either
`projects/{projectID}/groups/{group_id}` or
`projects/{projectID}/locations/{location}/groups/{group_id}`. Call
[groupStats.list](https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.Client.ErrorStatsServiceClient#_Google_Cloud_ErrorReporting_V1beta1_Client_ErrorStatsServiceClient__listGroupStats__)
to return a list of groups belonging to this project.

Examples: `projects/my-project-123/groups/my-group`,
`projects/my-project-123/locations/global/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` |   |

### static::build

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `groupName` | `string` Required. The group resource name. Written as either `projects/{projectID}/groups/{group_id}` or `projects/{projectID}/locations/{location}/groups/{group_id}`. Call [groupStats.list](https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.Client.ErrorStatsServiceClient#_Google_Cloud_ErrorReporting_V1beta1_Client_ErrorStatsServiceClient__listGroupStats__) to return a list of groups belonging to this project. Examples: `projects/my-project-123/groups/my-group`, `projects/my-project-123/locations/global/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. Please see ErrorGroupServiceClient::errorGroupName() for help formatting this field. |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/php/docs/reference/cloud-error-reporting/latest/V1beta1.GetGroupRequest` |   |