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 LogEntry extends \Google\Model
21{
22  protected $httpRequestType = HttpRequest::class;
23  protected $httpRequestDataType = '';
24  /**
25   * @var string
26   */
27  public $insertId;
28  /**
29   * @var array[]
30   */
31  public $jsonPayload;
32  /**
33   * @var string[]
34   */
35  public $labels;
36  /**
37   * @var string
38   */
39  public $logName;
40  protected $metadataType = MonitoredResourceMetadata::class;
41  protected $metadataDataType = '';
42  protected $operationType = LogEntryOperation::class;
43  protected $operationDataType = '';
44  /**
45   * @var array[]
46   */
47  public $protoPayload;
48  /**
49   * @var string
50   */
51  public $receiveTimestamp;
52  protected $resourceType = MonitoredResource::class;
53  protected $resourceDataType = '';
54  /**
55   * @var string
56   */
57  public $severity;
58  protected $sourceLocationType = LogEntrySourceLocation::class;
59  protected $sourceLocationDataType = '';
60  /**
61   * @var string
62   */
63  public $spanId;
64  protected $splitType = LogSplit::class;
65  protected $splitDataType = '';
66  /**
67   * @var string
68   */
69  public $textPayload;
70  /**
71   * @var string
72   */
73  public $timestamp;
74  /**
75   * @var string
76   */
77  public $trace;
78  /**
79   * @var bool
80   */
81  public $traceSampled;
82
83  /**
84   * @param HttpRequest
85   */
86  public function setHttpRequest(HttpRequest $httpRequest)
87  {
88    $this->httpRequest = $httpRequest;
89  }
90  /**
91   * @return HttpRequest
92   */
93  public function getHttpRequest()
94  {
95    return $this->httpRequest;
96  }
97  /**
98   * @param string
99   */
100  public function setInsertId($insertId)
101  {
102    $this->insertId = $insertId;
103  }
104  /**
105   * @return string
106   */
107  public function getInsertId()
108  {
109    return $this->insertId;
110  }
111  /**
112   * @param array[]
113   */
114  public function setJsonPayload($jsonPayload)
115  {
116    $this->jsonPayload = $jsonPayload;
117  }
118  /**
119   * @return array[]
120   */
121  public function getJsonPayload()
122  {
123    return $this->jsonPayload;
124  }
125  /**
126   * @param string[]
127   */
128  public function setLabels($labels)
129  {
130    $this->labels = $labels;
131  }
132  /**
133   * @return string[]
134   */
135  public function getLabels()
136  {
137    return $this->labels;
138  }
139  /**
140   * @param string
141   */
142  public function setLogName($logName)
143  {
144    $this->logName = $logName;
145  }
146  /**
147   * @return string
148   */
149  public function getLogName()
150  {
151    return $this->logName;
152  }
153  /**
154   * @param MonitoredResourceMetadata
155   */
156  public function setMetadata(MonitoredResourceMetadata $metadata)
157  {
158    $this->metadata = $metadata;
159  }
160  /**
161   * @return MonitoredResourceMetadata
162   */
163  public function getMetadata()
164  {
165    return $this->metadata;
166  }
167  /**
168   * @param LogEntryOperation
169   */
170  public function setOperation(LogEntryOperation $operation)
171  {
172    $this->operation = $operation;
173  }
174  /**
175   * @return LogEntryOperation
176   */
177  public function getOperation()
178  {
179    return $this->operation;
180  }
181  /**
182   * @param array[]
183   */
184  public function setProtoPayload($protoPayload)
185  {
186    $this->protoPayload = $protoPayload;
187  }
188  /**
189   * @return array[]
190   */
191  public function getProtoPayload()
192  {
193    return $this->protoPayload;
194  }
195  /**
196   * @param string
197   */
198  public function setReceiveTimestamp($receiveTimestamp)
199  {
200    $this->receiveTimestamp = $receiveTimestamp;
201  }
202  /**
203   * @return string
204   */
205  public function getReceiveTimestamp()
206  {
207    return $this->receiveTimestamp;
208  }
209  /**
210   * @param MonitoredResource
211   */
212  public function setResource(MonitoredResource $resource)
213  {
214    $this->resource = $resource;
215  }
216  /**
217   * @return MonitoredResource
218   */
219  public function getResource()
220  {
221    return $this->resource;
222  }
223  /**
224   * @param string
225   */
226  public function setSeverity($severity)
227  {
228    $this->severity = $severity;
229  }
230  /**
231   * @return string
232   */
233  public function getSeverity()
234  {
235    return $this->severity;
236  }
237  /**
238   * @param LogEntrySourceLocation
239   */
240  public function setSourceLocation(LogEntrySourceLocation $sourceLocation)
241  {
242    $this->sourceLocation = $sourceLocation;
243  }
244  /**
245   * @return LogEntrySourceLocation
246   */
247  public function getSourceLocation()
248  {
249    return $this->sourceLocation;
250  }
251  /**
252   * @param string
253   */
254  public function setSpanId($spanId)
255  {
256    $this->spanId = $spanId;
257  }
258  /**
259   * @return string
260   */
261  public function getSpanId()
262  {
263    return $this->spanId;
264  }
265  /**
266   * @param LogSplit
267   */
268  public function setSplit(LogSplit $split)
269  {
270    $this->split = $split;
271  }
272  /**
273   * @return LogSplit
274   */
275  public function getSplit()
276  {
277    return $this->split;
278  }
279  /**
280   * @param string
281   */
282  public function setTextPayload($textPayload)
283  {
284    $this->textPayload = $textPayload;
285  }
286  /**
287   * @return string
288   */
289  public function getTextPayload()
290  {
291    return $this->textPayload;
292  }
293  /**
294   * @param string
295   */
296  public function setTimestamp($timestamp)
297  {
298    $this->timestamp = $timestamp;
299  }
300  /**
301   * @return string
302   */
303  public function getTimestamp()
304  {
305    return $this->timestamp;
306  }
307  /**
308   * @param string
309   */
310  public function setTrace($trace)
311  {
312    $this->trace = $trace;
313  }
314  /**
315   * @return string
316   */
317  public function getTrace()
318  {
319    return $this->trace;
320  }
321  /**
322   * @param bool
323   */
324  public function setTraceSampled($traceSampled)
325  {
326    $this->traceSampled = $traceSampled;
327  }
328  /**
329   * @return bool
330   */
331  public function getTraceSampled()
332  {
333    return $this->traceSampled;
334  }
335}
336
337// Adding a class alias for backwards compatibility with the previous class name.
338class_alias(LogEntry::class, 'Google_Service_Logging_LogEntry');
339