# Path: google/cloud/errorreporting_v1beta1/types/common.py
# class ResolutionStatus(proto.Enum):
# class ErrorGroup(proto.Message):
# class TrackingIssue(proto.Message):
# class ErrorEvent(proto.Message):
# class ServiceContext(proto.Message):
# class ErrorContext(proto.Message):
# class HttpRequestContext(proto.Message):
# class SourceLocation(proto.Message):
#     RESOLUTION_STATUS_UNSPECIFIED = 0
#     OPEN = 1
#     ACKNOWLEDGED = 2
#     RESOLVED = 3
#     MUTED = 4


import proto  # type: ignore
from google.cloud.errorreporting_v1beta1.types import common
from google.protobuf import duration_pb2  # type: ignore
from google.protobuf import timestamp_pb2  # type: ignore
        affected_services (Sequence[google.cloud.errorreporting_v1beta1.types.ServiceContext]):
            Service contexts with a non-zero error count for the given
            filter criteria. This list can be truncated if multiple
            services are affected. Refer to ``num_affected_services``
            for the total count.
        num_affected_services (int):
            The total number of services with a non-zero
            error count for the given filter criteria.
        representative (google.cloud.errorreporting_v1beta1.types.ErrorEvent):
            An arbitrary event that is chosen as
            representative for the whole group. The
            representative event is intended to be used as a
            quick preview for the whole group. Events in the
            group are usually sufficiently similar to each
            other such that showing an arbitrary
            representative provides insight into the
            characteristics of the group as a whole.
    """

    group = proto.Field(proto.MESSAGE, number=1, message=common.ErrorGroup,)
    count = proto.Field(proto.INT64, number=2,)
    affected_users_count = proto.Field(proto.INT64, number=3,)
    timed_counts = proto.RepeatedField(proto.MESSAGE, number=4, message="TimedCount",)
    first_seen_time = proto.Field(
        proto.MESSAGE, number=5, message=timestamp_pb2.Timestamp,
    )
    last_seen_time = proto.Field(
        proto.MESSAGE, number=6, message=timestamp_pb2.Timestamp,
    )
    affected_services = proto.RepeatedField(

# Path: google/cloud/errorreporting_v1beta1/types/common.py
# class ResolutionStatus(proto.Enum):
# class ErrorGroup(proto.Message):
# class TrackingIssue(proto.Message):
# class ErrorEvent(proto.Message):
# class ServiceContext(proto.Message):
# class ErrorContext(proto.Message):
# class HttpRequestContext(proto.Message):
# class SourceLocation(proto.Message):
#     RESOLUTION_STATUS_UNSPECIFIED = 0
#     OPEN = 1
#     ACKNOWLEDGED = 2
#     RESOLVED = 3
#     MUTED = 4


# Path: google/cloud/errorreporting_v1beta1/types/error_stats_service.py
import proto  # type: ignore
from google.cloud.errorreporting_v1beta1.types import common
from google.protobuf import duration_pb2  # type: ignore
from google.protobuf import timestamp_pb2  # type: ignore

        affected_services (Sequence[google.cloud.errorreporting_v1beta1.types.ServiceContext]):
            Service contexts with a non-zero error count for the given
            filter criteria. This list can be truncated if multiple
            services are affected. Refer to ``num_affected_services``
            for the total count.
        num_affected_services (int):
            The total number of services with a non-zero
            error count for the given filter criteria.
        representative (google.cloud.errorreporting_v1beta1.types.ErrorEvent):
            An arbitrary event that is chosen as
            representative for the whole group. The
            representative event is intended to be used as a
            quick preview for the whole group. Events in the
            group are usually sufficiently similar to each
            other such that showing an arbitrary
            representative provides insight into the
            characteristics of the group as a whole.
    """

    group = proto.Field(proto.MESSAGE, number=1, message=common.ErrorGroup,)
    count = proto.Field(proto.INT64, number=2,)
    affected_users_count = proto.Field(proto.INT64, number=3,)
    timed_counts = proto.RepeatedField(proto.MESSAGE, number=4, message="TimedCount",)
    first_seen_time = proto.Field(
        proto.MESSAGE, number=5, message=timestamp_pb2.Timestamp,
    )
    last_seen_time = proto.Field(
        proto.MESSAGE, number=6, message=timestamp_pb2.Timestamp,
    )
    affected_services = proto.RepeatedField(

        proto.MESSAGE, number=7, message=common.ServiceContext,