1<?php
2/*
3 * Copyright 2014 Google Inc.
4 *
5 * Licensed under the Apache License, Version 2.0 (the "License"); you may not
6 * use this file except in compliance with the License. You may obtain a copy of
7 * the License at
8 *
9 * http://www.apache.org/licenses/LICENSE-2.0
10 *
11 * Unless required by applicable law or agreed to in writing, software
12 * distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
13 * WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
14 * License for the specific language governing permissions and limitations under
15 * the License.
16 */
17
18namespace Google\Service\Clouderrorreporting;
19
20class ErrorGroupStats extends \Google\Collection
21{
22  protected $collection_key = 'timedCounts';
23  protected $affectedServicesType = ServiceContext::class;
24  protected $affectedServicesDataType = 'array';
25  /**
26   * @var string
27   */
28  public $affectedUsersCount;
29  /**
30   * @var string
31   */
32  public $count;
33  /**
34   * @var string
35   */
36  public $firstSeenTime;
37  protected $groupType = ErrorGroup::class;
38  protected $groupDataType = '';
39  /**
40   * @var string
41   */
42  public $lastSeenTime;
43  /**
44   * @var int
45   */
46  public $numAffectedServices;
47  protected $representativeType = ErrorEvent::class;
48  protected $representativeDataType = '';
49  protected $timedCountsType = TimedCount::class;
50  protected $timedCountsDataType = 'array';
51
52  /**
53   * @param ServiceContext[]
54   */
55  public function setAffectedServices($affectedServices)
56  {
57    $this->affectedServices = $affectedServices;
58  }
59  /**
60   * @return ServiceContext[]
61   */
62  public function getAffectedServices()
63  {
64    return $this->affectedServices;
65  }
66  /**
67   * @param string
68   */
69  public function setAffectedUsersCount($affectedUsersCount)
70  {
71    $this->affectedUsersCount = $affectedUsersCount;
72  }
73  /**
74   * @return string
75   */
76  public function getAffectedUsersCount()
77  {
78    return $this->affectedUsersCount;
79  }
80  /**
81   * @param string
82   */
83  public function setCount($count)
84  {
85    $this->count = $count;
86  }
87  /**
88   * @return string
89   */
90  public function getCount()
91  {
92    return $this->count;
93  }
94  /**
95   * @param string
96   */
97  public function setFirstSeenTime($firstSeenTime)
98  {
99    $this->firstSeenTime = $firstSeenTime;
100  }
101  /**
102   * @return string
103   */
104  public function getFirstSeenTime()
105  {
106    return $this->firstSeenTime;
107  }
108  /**
109   * @param ErrorGroup
110   */
111  public function setGroup(ErrorGroup $group)
112  {
113    $this->group = $group;
114  }
115  /**
116   * @return ErrorGroup
117   */
118  public function getGroup()
119  {
120    return $this->group;
121  }
122  /**
123   * @param string
124   */
125  public function setLastSeenTime($lastSeenTime)
126  {
127    $this->lastSeenTime = $lastSeenTime;
128  }
129  /**
130   * @return string
131   */
132  public function getLastSeenTime()
133  {
134    return $this->lastSeenTime;
135  }
136  /**
137   * @param int
138   */
139  public function setNumAffectedServices($numAffectedServices)
140  {
141    $this->numAffectedServices = $numAffectedServices;
142  }
143  /**
144   * @return int
145   */
146  public function getNumAffectedServices()
147  {
148    return $this->numAffectedServices;
149  }
150  /**
151   * @param ErrorEvent
152   */
153  public function setRepresentative(ErrorEvent $representative)
154  {
155    $this->representative = $representative;
156  }
157  /**
158   * @return ErrorEvent
159   */
160  public function getRepresentative()
161  {
162    return $this->representative;
163  }
164  /**
165   * @param TimedCount[]
166   */
167  public function setTimedCounts($timedCounts)
168  {
169    $this->timedCounts = $timedCounts;
170  }
171  /**
172   * @return TimedCount[]
173   */
174  public function getTimedCounts()
175  {
176    return $this->timedCounts;
177  }
178}
179
180// Adding a class alias for backwards compatibility with the previous class name.
181class_alias(ErrorGroupStats::class, 'Google_Service_Clouderrorreporting_ErrorGroupStats');
182