[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\Networkconnectivity;
|
---|
| 19 |
|
---|
| 20 | class LogEntry extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $httpRequestType = HttpRequest::class;
|
---|
| 23 | protected $httpRequestDataType = '';
|
---|
| 24 | public $insertId;
|
---|
| 25 | public $labels;
|
---|
| 26 | public $name;
|
---|
| 27 | protected $operationType = LogEntryOperation::class;
|
---|
| 28 | protected $operationDataType = '';
|
---|
| 29 | public $protoPayload;
|
---|
| 30 | public $severity;
|
---|
| 31 | protected $sourceLocationType = LogEntrySourceLocation::class;
|
---|
| 32 | protected $sourceLocationDataType = '';
|
---|
| 33 | public $structPayload;
|
---|
| 34 | public $textPayload;
|
---|
| 35 | public $timestamp;
|
---|
| 36 | public $trace;
|
---|
| 37 |
|
---|
| 38 | /**
|
---|
| 39 | * @param HttpRequest
|
---|
| 40 | */
|
---|
| 41 | public function setHttpRequest(HttpRequest $httpRequest)
|
---|
| 42 | {
|
---|
| 43 | $this->httpRequest = $httpRequest;
|
---|
| 44 | }
|
---|
| 45 | /**
|
---|
| 46 | * @return HttpRequest
|
---|
| 47 | */
|
---|
| 48 | public function getHttpRequest()
|
---|
| 49 | {
|
---|
| 50 | return $this->httpRequest;
|
---|
| 51 | }
|
---|
| 52 | public function setInsertId($insertId)
|
---|
| 53 | {
|
---|
| 54 | $this->insertId = $insertId;
|
---|
| 55 | }
|
---|
| 56 | public function getInsertId()
|
---|
| 57 | {
|
---|
| 58 | return $this->insertId;
|
---|
| 59 | }
|
---|
| 60 | public function setLabels($labels)
|
---|
| 61 | {
|
---|
| 62 | $this->labels = $labels;
|
---|
| 63 | }
|
---|
| 64 | public function getLabels()
|
---|
| 65 | {
|
---|
| 66 | return $this->labels;
|
---|
| 67 | }
|
---|
| 68 | public function setName($name)
|
---|
| 69 | {
|
---|
| 70 | $this->name = $name;
|
---|
| 71 | }
|
---|
| 72 | public function getName()
|
---|
| 73 | {
|
---|
| 74 | return $this->name;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @param LogEntryOperation
|
---|
| 78 | */
|
---|
| 79 | public function setOperation(LogEntryOperation $operation)
|
---|
| 80 | {
|
---|
| 81 | $this->operation = $operation;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @return LogEntryOperation
|
---|
| 85 | */
|
---|
| 86 | public function getOperation()
|
---|
| 87 | {
|
---|
| 88 | return $this->operation;
|
---|
| 89 | }
|
---|
| 90 | public function setProtoPayload($protoPayload)
|
---|
| 91 | {
|
---|
| 92 | $this->protoPayload = $protoPayload;
|
---|
| 93 | }
|
---|
| 94 | public function getProtoPayload()
|
---|
| 95 | {
|
---|
| 96 | return $this->protoPayload;
|
---|
| 97 | }
|
---|
| 98 | public function setSeverity($severity)
|
---|
| 99 | {
|
---|
| 100 | $this->severity = $severity;
|
---|
| 101 | }
|
---|
| 102 | public function getSeverity()
|
---|
| 103 | {
|
---|
| 104 | return $this->severity;
|
---|
| 105 | }
|
---|
| 106 | /**
|
---|
| 107 | * @param LogEntrySourceLocation
|
---|
| 108 | */
|
---|
| 109 | public function setSourceLocation(LogEntrySourceLocation $sourceLocation)
|
---|
| 110 | {
|
---|
| 111 | $this->sourceLocation = $sourceLocation;
|
---|
| 112 | }
|
---|
| 113 | /**
|
---|
| 114 | * @return LogEntrySourceLocation
|
---|
| 115 | */
|
---|
| 116 | public function getSourceLocation()
|
---|
| 117 | {
|
---|
| 118 | return $this->sourceLocation;
|
---|
| 119 | }
|
---|
| 120 | public function setStructPayload($structPayload)
|
---|
| 121 | {
|
---|
| 122 | $this->structPayload = $structPayload;
|
---|
| 123 | }
|
---|
| 124 | public function getStructPayload()
|
---|
| 125 | {
|
---|
| 126 | return $this->structPayload;
|
---|
| 127 | }
|
---|
| 128 | public function setTextPayload($textPayload)
|
---|
| 129 | {
|
---|
| 130 | $this->textPayload = $textPayload;
|
---|
| 131 | }
|
---|
| 132 | public function getTextPayload()
|
---|
| 133 | {
|
---|
| 134 | return $this->textPayload;
|
---|
| 135 | }
|
---|
| 136 | public function setTimestamp($timestamp)
|
---|
| 137 | {
|
---|
| 138 | $this->timestamp = $timestamp;
|
---|
| 139 | }
|
---|
| 140 | public function getTimestamp()
|
---|
| 141 | {
|
---|
| 142 | return $this->timestamp;
|
---|
| 143 | }
|
---|
| 144 | public function setTrace($trace)
|
---|
| 145 | {
|
---|
| 146 | $this->trace = $trace;
|
---|
| 147 | }
|
---|
| 148 | public function getTrace()
|
---|
| 149 | {
|
---|
| 150 | return $this->trace;
|
---|
| 151 | }
|
---|
| 152 | }
|
---|
| 153 |
|
---|
| 154 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 155 | class_alias(LogEntry::class, 'Google_Service_Networkconnectivity_LogEntry');
|
---|