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