# Google Cloud Error Reporting v1beta1 API - Class ListGroupStatsRequest (3.0.0-beta06)

<button class="button button-with-icon cloud-select-dropdown__button " aria-haspopup="true">Version latest</button>

- [3.0.0-beta06 (latest)](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.ListGroupStatsRequest)
- [3.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/3.0.0-beta05/Google.Cloud.ErrorReporting.V1Beta1.ListGroupStatsRequest)
- [2.0.0-beta05](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/2.0.0-beta05/Google.Cloud.ErrorReporting.V1Beta1.ListGroupStatsRequest)

    public sealed class ListGroupStatsRequest : IMessage<ListGroupStatsRequest>, IEquatable<ListGroupStatsRequest>, IDeepCloneable<ListGroupStatsRequest>, IBufferMessage, IMessage, IPageRequest

Reference documentation and code samples for the Google Cloud Error Reporting v1beta1 API class ListGroupStatsRequest.

Specifies a set of `ErrorGroupStats` to return.

## Inheritance

[object](https://learn.microsoft.com/dotnet/api/system.object) \> ListGroupStatsRequest

## Implements

[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[ListGroupStatsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.ListGroupStatsRequest), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[ListGroupStatsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.ListGroupStatsRequest), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[ListGroupStatsRequest](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.ListGroupStatsRequest), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html), [IPageRequest](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.Grpc.IPageRequest.html)

## Inherited Members

[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) [object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) [object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)

## Namespace

[Google.Cloud.ErrorReporting.V1Beta1](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1)

## Assembly

Google.Cloud.ErrorReporting.V1Beta1.dll

## Constructors

### ListGroupStatsRequest()

    public ListGroupStatsRequest()

### ListGroupStatsRequest(ListGroupStatsRequest)

    public ListGroupStatsRequest(ListGroupStatsRequest other)

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `other` | `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.ListGroupStatsRequest` |

## Properties

### Alignment

    public TimedCountAlignment Alignment { get; set; }

Optional. The alignment of the timed counts to be returned.
Default is `ALIGNMENT_EQUAL_AT_END`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.TimedCountAlignment` |   |

### AlignmentTime

    public Timestamp AlignmentTime { get; set; }

Optional. Time where the timed counts shall be aligned if rounded
alignment is chosen. Default is 00:00 UTC.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Timestamp.html` |   |

### GroupId

    public RepeatedField<string> GroupId { get; }

Optional. List all \[ErrorGroupStats\]
\[google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats\] with these
IDs. 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).

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.Collections.RepeatedField-1.htmlhttps://learn.microsoft.com/dotnet/api/system.string` |   |

### Order

    public ErrorGroupOrder Order { get; set; }

Optional. The sort order in which the results are returned.
Default is `COUNT_DESC`.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.ErrorGroupOrder` |   |

### PageSize

    public int PageSize { get; set; }

Optional. The maximum number of results to return per response.
Default is 20.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.int32` |   |

### PageToken

    public string PageToken { get; set; }

Optional. A \[next_page_token\]
\[google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.next_page_token\]
provided by a previous response. To view additional results, pass this
token along with the identical query parameters as the first request.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ProjectName

    public string ProjectName { get; set; }

Required. The resource name of the Google Cloud Platform project. Written
as `projects/{projectID}` or `projects/{projectNumber}`, where
`{projectID}` and `{projectNumber}` can be found in the
[Google Cloud console](https://support.google.com/cloud/answer/6158840).
It may also include a location, such as
`projects/{projectID}/locations/{location}` where `{location}` is a cloud
region.

Examples: `projects/my-project-123`, `projects/5551234`,
`projects/my-project-123/locations/us-central1`,
`projects/5551234/locations/us-central1`.

For a list of supported locations, see [Supported
Regions](https://cloud.google.com/logging/docs/region-support). `global` is
the default when unspecified. Use `-` as a wildcard to request group stats
from all regions.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://learn.microsoft.com/dotnet/api/system.string` |   |

### ProjectNameAsProjectName

    public ProjectName ProjectNameAsProjectName { get; set; }

[ProjectName](https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html)-typed view over the [ProjectName](https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.ListGroupStatsRequest#Google_Cloud_ErrorReporting_V1Beta1_ListGroupStatsRequest_ProjectName) resource name property.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Api.Gax/latest/Google.Api.Gax.ResourceNames.ProjectName.html` |   |

### ServiceFilter

    public ServiceContextFilter ServiceFilter { get; set; }

Optional. List only \[ErrorGroupStats\]
\[google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats\] which belong
to a service context that matches the filter. Data for all service contexts
is returned if this field is not specified.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.ServiceContextFilter` |   |

### TimeRange

    public QueryTimeRange TimeRange { get; set; }

Optional. List data for the given time range.
If not set, a default time range is used. The field
\[time_range_begin\]
\[google.devtools.clouderrorreporting.v1beta1.ListGroupStatsResponse.time_range_begin\]
in the response will specify the beginning of this time range. Only
\[ErrorGroupStats\]
\[google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats\] with a
non-zero count in the given time range are returned, unless the request
contains an explicit \[group_id\]
\[google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id\]
list. If a \[group_id\]
\[google.devtools.clouderrorreporting.v1beta1.ListGroupStatsRequest.group_id\]
list is given, also \[ErrorGroupStats\]
\[google.devtools.clouderrorreporting.v1beta1.ErrorGroupStats\] with zero
occurrences are returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://docs.cloud.google.com/dotnet/docs/reference/Google.Cloud.ErrorReporting.V1Beta1/latest/Google.Cloud.ErrorReporting.V1Beta1.QueryTimeRange` |   |

### TimedCountDuration

    public Duration TimedCountDuration { get; set; }

Optional. The preferred duration for a single returned \[TimedCount\]
\[google.devtools.clouderrorreporting.v1beta1.TimedCount\]. If not set, no
timed counts are returned.

| **Property Value** ||
|---|---|
| **Type** | **Description** |
| `https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.WellKnownTypes.Duration.html` |   |