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\Logging;
19
20class RequestLog extends \Google\Collection
21{
22  protected $collection_key = 'sourceReference';
23  /**
24   * @var string
25   */
26  public $appEngineRelease;
27  /**
28   * @var string
29   */
30  public $appId;
31  public $cost;
32  /**
33   * @var string
34   */
35  public $endTime;
36  /**
37   * @var bool
38   */
39  public $finished;
40  /**
41   * @var bool
42   */
43  public $first;
44  /**
45   * @var string
46   */
47  public $host;
48  /**
49   * @var string
50   */
51  public $httpVersion;
52  /**
53   * @var string
54   */
55  public $instanceId;
56  /**
57   * @var int
58   */
59  public $instanceIndex;
60  /**
61   * @var string
62   */
63  public $ip;
64  /**
65   * @var string
66   */
67  public $latency;
68  protected $lineType = LogLine::class;
69  protected $lineDataType = 'array';
70  /**
71   * @var string
72   */
73  public $megaCycles;
74  /**
75   * @var string
76   */
77  public $method;
78  /**
79   * @var string
80   */
81  public $moduleId;
82  /**
83   * @var string
84   */
85  public $nickname;
86  /**
87   * @var string
88   */
89  public $pendingTime;
90  /**
91   * @var string
92   */
93  public $referrer;
94  /**
95   * @var string
96   */
97  public $requestId;
98  /**
99   * @var string
100   */
101  public $resource;
102  /**
103   * @var string
104   */
105  public $responseSize;
106  protected $sourceReferenceType = SourceReference::class;
107  protected $sourceReferenceDataType = 'array';
108  /**
109   * @var string
110   */
111  public $startTime;
112  /**
113   * @var int
114   */
115  public $status;
116  /**
117   * @var string
118   */
119  public $taskName;
120  /**
121   * @var string
122   */
123  public $taskQueueName;
124  /**
125   * @var string
126   */
127  public $traceId;
128  /**
129   * @var bool
130   */
131  public $traceSampled;
132  /**
133   * @var string
134   */
135  public $urlMapEntry;
136  /**
137   * @var string
138   */
139  public $userAgent;
140  /**
141   * @var string
142   */
143  public $versionId;
144  /**
145   * @var bool
146   */
147  public $wasLoadingRequest;
148
149  /**
150   * @param string
151   */
152  public function setAppEngineRelease($appEngineRelease)
153  {
154    $this->appEngineRelease = $appEngineRelease;
155  }
156  /**
157   * @return string
158   */
159  public function getAppEngineRelease()
160  {
161    return $this->appEngineRelease;
162  }
163  /**
164   * @param string
165   */
166  public function setAppId($appId)
167  {
168    $this->appId = $appId;
169  }
170  /**
171   * @return string
172   */
173  public function getAppId()
174  {
175    return $this->appId;
176  }
177  public function setCost($cost)
178  {
179    $this->cost = $cost;
180  }
181  public function getCost()
182  {
183    return $this->cost;
184  }
185  /**
186   * @param string
187   */
188  public function setEndTime($endTime)
189  {
190    $this->endTime = $endTime;
191  }
192  /**
193   * @return string
194   */
195  public function getEndTime()
196  {
197    return $this->endTime;
198  }
199  /**
200   * @param bool
201   */
202  public function setFinished($finished)
203  {
204    $this->finished = $finished;
205  }
206  /**
207   * @return bool
208   */
209  public function getFinished()
210  {
211    return $this->finished;
212  }
213  /**
214   * @param bool
215   */
216  public function setFirst($first)
217  {
218    $this->first = $first;
219  }
220  /**
221   * @return bool
222   */
223  public function getFirst()
224  {
225    return $this->first;
226  }
227  /**
228   * @param string
229   */
230  public function setHost($host)
231  {
232    $this->host = $host;
233  }
234  /**
235   * @return string
236   */
237  public function getHost()
238  {
239    return $this->host;
240  }
241  /**
242   * @param string
243   */
244  public function setHttpVersion($httpVersion)
245  {
246    $this->httpVersion = $httpVersion;
247  }
248  /**
249   * @return string
250   */
251  public function getHttpVersion()
252  {
253    return $this->httpVersion;
254  }
255  /**
256   * @param string
257   */
258  public function setInstanceId($instanceId)
259  {
260    $this->instanceId = $instanceId;
261  }
262  /**
263   * @return string
264   */
265  public function getInstanceId()
266  {
267    return $this->instanceId;
268  }
269  /**
270   * @param int
271   */
272  public function setInstanceIndex($instanceIndex)
273  {
274    $this->instanceIndex = $instanceIndex;
275  }
276  /**
277   * @return int
278   */
279  public function getInstanceIndex()
280  {
281    return $this->instanceIndex;
282  }
283  /**
284   * @param string
285   */
286  public function setIp($ip)
287  {
288    $this->ip = $ip;
289  }
290  /**
291   * @return string
292   */
293  public function getIp()
294  {
295    return $this->ip;
296  }
297  /**
298   * @param string
299   */
300  public function setLatency($latency)
301  {
302    $this->latency = $latency;
303  }
304  /**
305   * @return string
306   */
307  public function getLatency()
308  {
309    return $this->latency;
310  }
311  /**
312   * @param LogLine[]
313   */
314  public function setLine($line)
315  {
316    $this->line = $line;
317  }
318  /**
319   * @return LogLine[]
320   */
321  public function getLine()
322  {
323    return $this->line;
324  }
325  /**
326   * @param string
327   */
328  public function setMegaCycles($megaCycles)
329  {
330    $this->megaCycles = $megaCycles;
331  }
332  /**
333   * @return string
334   */
335  public function getMegaCycles()
336  {
337    return $this->megaCycles;
338  }
339  /**
340   * @param string
341   */
342  public function setMethod($method)
343  {
344    $this->method = $method;
345  }
346  /**
347   * @return string
348   */
349  public function getMethod()
350  {
351    return $this->method;
352  }
353  /**
354   * @param string
355   */
356  public function setModuleId($moduleId)
357  {
358    $this->moduleId = $moduleId;
359  }
360  /**
361   * @return string
362   */
363  public function getModuleId()
364  {
365    return $this->moduleId;
366  }
367  /**
368   * @param string
369   */
370  public function setNickname($nickname)
371  {
372    $this->nickname = $nickname;
373  }
374  /**
375   * @return string
376   */
377  public function getNickname()
378  {
379    return $this->nickname;
380  }
381  /**
382   * @param string
383   */
384  public function setPendingTime($pendingTime)
385  {
386    $this->pendingTime = $pendingTime;
387  }
388  /**
389   * @return string
390   */
391  public function getPendingTime()
392  {
393    return $this->pendingTime;
394  }
395  /**
396   * @param string
397   */
398  public function setReferrer($referrer)
399  {
400    $this->referrer = $referrer;
401  }
402  /**
403   * @return string
404   */
405  public function getReferrer()
406  {
407    return $this->referrer;
408  }
409  /**
410   * @param string
411   */
412  public function setRequestId($requestId)
413  {
414    $this->requestId = $requestId;
415  }
416  /**
417   * @return string
418   */
419  public function getRequestId()
420  {
421    return $this->requestId;
422  }
423  /**
424   * @param string
425   */
426  public function setResource($resource)
427  {
428    $this->resource = $resource;
429  }
430  /**
431   * @return string
432   */
433  public function getResource()
434  {
435    return $this->resource;
436  }
437  /**
438   * @param string
439   */
440  public function setResponseSize($responseSize)
441  {
442    $this->responseSize = $responseSize;
443  }
444  /**
445   * @return string
446   */
447  public function getResponseSize()
448  {
449    return $this->responseSize;
450  }
451  /**
452   * @param SourceReference[]
453   */
454  public function setSourceReference($sourceReference)
455  {
456    $this->sourceReference = $sourceReference;
457  }
458  /**
459   * @return SourceReference[]
460   */
461  public function getSourceReference()
462  {
463    return $this->sourceReference;
464  }
465  /**
466   * @param string
467   */
468  public function setStartTime($startTime)
469  {
470    $this->startTime = $startTime;
471  }
472  /**
473   * @return string
474   */
475  public function getStartTime()
476  {
477    return $this->startTime;
478  }
479  /**
480   * @param int
481   */
482  public function setStatus($status)
483  {
484    $this->status = $status;
485  }
486  /**
487   * @return int
488   */
489  public function getStatus()
490  {
491    return $this->status;
492  }
493  /**
494   * @param string
495   */
496  public function setTaskName($taskName)
497  {
498    $this->taskName = $taskName;
499  }
500  /**
501   * @return string
502   */
503  public function getTaskName()
504  {
505    return $this->taskName;
506  }
507  /**
508   * @param string
509   */
510  public function setTaskQueueName($taskQueueName)
511  {
512    $this->taskQueueName = $taskQueueName;
513  }
514  /**
515   * @return string
516   */
517  public function getTaskQueueName()
518  {
519    return $this->taskQueueName;
520  }
521  /**
522   * @param string
523   */
524  public function setTraceId($traceId)
525  {
526    $this->traceId = $traceId;
527  }
528  /**
529   * @return string
530   */
531  public function getTraceId()
532  {
533    return $this->traceId;
534  }
535  /**
536   * @param bool
537   */
538  public function setTraceSampled($traceSampled)
539  {
540    $this->traceSampled = $traceSampled;
541  }
542  /**
543   * @return bool
544   */
545  public function getTraceSampled()
546  {
547    return $this->traceSampled;
548  }
549  /**
550   * @param string
551   */
552  public function setUrlMapEntry($urlMapEntry)
553  {
554    $this->urlMapEntry = $urlMapEntry;
555  }
556  /**
557   * @return string
558   */
559  public function getUrlMapEntry()
560  {
561    return $this->urlMapEntry;
562  }
563  /**
564   * @param string
565   */
566  public function setUserAgent($userAgent)
567  {
568    $this->userAgent = $userAgent;
569  }
570  /**
571   * @return string
572   */
573  public function getUserAgent()
574  {
575    return $this->userAgent;
576  }
577  /**
578   * @param string
579   */
580  public function setVersionId($versionId)
581  {
582    $this->versionId = $versionId;
583  }
584  /**
585   * @return string
586   */
587  public function getVersionId()
588  {
589    return $this->versionId;
590  }
591  /**
592   * @param bool
593   */
594  public function setWasLoadingRequest($wasLoadingRequest)
595  {
596    $this->wasLoadingRequest = $wasLoadingRequest;
597  }
598  /**
599   * @return bool
600   */
601  public function getWasLoadingRequest()
602  {
603    return $this->wasLoadingRequest;
604  }
605}
606
607// Adding a class alias for backwards compatibility with the previous class name.
608class_alias(RequestLog::class, 'Google_Service_Logging_RequestLog');
609