[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\ServiceControl;
|
---|
| 19 |
|
---|
| 20 | class V2LogEntry extends \Google\Model
|
---|
| 21 | {
|
---|
| 22 | protected $httpRequestType = V2HttpRequest::class;
|
---|
| 23 | protected $httpRequestDataType = '';
|
---|
| 24 | /**
|
---|
| 25 | * @var string
|
---|
| 26 | */
|
---|
| 27 | public $insertId;
|
---|
| 28 | /**
|
---|
| 29 | * @var string[]
|
---|
| 30 | */
|
---|
| 31 | public $labels;
|
---|
| 32 | /**
|
---|
| 33 | * @var string[]
|
---|
| 34 | */
|
---|
| 35 | public $monitoredResourceLabels;
|
---|
| 36 | /**
|
---|
| 37 | * @var string
|
---|
| 38 | */
|
---|
| 39 | public $name;
|
---|
| 40 | protected $operationType = V2LogEntryOperation::class;
|
---|
| 41 | protected $operationDataType = '';
|
---|
| 42 | /**
|
---|
| 43 | * @var array[]
|
---|
| 44 | */
|
---|
| 45 | public $protoPayload;
|
---|
| 46 | /**
|
---|
| 47 | * @var string
|
---|
| 48 | */
|
---|
| 49 | public $severity;
|
---|
| 50 | protected $sourceLocationType = V2LogEntrySourceLocation::class;
|
---|
| 51 | protected $sourceLocationDataType = '';
|
---|
| 52 | /**
|
---|
| 53 | * @var array[]
|
---|
| 54 | */
|
---|
| 55 | public $structPayload;
|
---|
| 56 | /**
|
---|
| 57 | * @var string
|
---|
| 58 | */
|
---|
| 59 | public $textPayload;
|
---|
| 60 | /**
|
---|
| 61 | * @var string
|
---|
| 62 | */
|
---|
| 63 | public $timestamp;
|
---|
| 64 | /**
|
---|
| 65 | * @var string
|
---|
| 66 | */
|
---|
| 67 | public $trace;
|
---|
| 68 |
|
---|
| 69 | /**
|
---|
| 70 | * @param V2HttpRequest
|
---|
| 71 | */
|
---|
| 72 | public function setHttpRequest(V2HttpRequest $httpRequest)
|
---|
| 73 | {
|
---|
| 74 | $this->httpRequest = $httpRequest;
|
---|
| 75 | }
|
---|
| 76 | /**
|
---|
| 77 | * @return V2HttpRequest
|
---|
| 78 | */
|
---|
| 79 | public function getHttpRequest()
|
---|
| 80 | {
|
---|
| 81 | return $this->httpRequest;
|
---|
| 82 | }
|
---|
| 83 | /**
|
---|
| 84 | * @param string
|
---|
| 85 | */
|
---|
| 86 | public function setInsertId($insertId)
|
---|
| 87 | {
|
---|
| 88 | $this->insertId = $insertId;
|
---|
| 89 | }
|
---|
| 90 | /**
|
---|
| 91 | * @return string
|
---|
| 92 | */
|
---|
| 93 | public function getInsertId()
|
---|
| 94 | {
|
---|
| 95 | return $this->insertId;
|
---|
| 96 | }
|
---|
| 97 | /**
|
---|
| 98 | * @param string[]
|
---|
| 99 | */
|
---|
| 100 | public function setLabels($labels)
|
---|
| 101 | {
|
---|
| 102 | $this->labels = $labels;
|
---|
| 103 | }
|
---|
| 104 | /**
|
---|
| 105 | * @return string[]
|
---|
| 106 | */
|
---|
| 107 | public function getLabels()
|
---|
| 108 | {
|
---|
| 109 | return $this->labels;
|
---|
| 110 | }
|
---|
| 111 | /**
|
---|
| 112 | * @param string[]
|
---|
| 113 | */
|
---|
| 114 | public function setMonitoredResourceLabels($monitoredResourceLabels)
|
---|
| 115 | {
|
---|
| 116 | $this->monitoredResourceLabels = $monitoredResourceLabels;
|
---|
| 117 | }
|
---|
| 118 | /**
|
---|
| 119 | * @return string[]
|
---|
| 120 | */
|
---|
| 121 | public function getMonitoredResourceLabels()
|
---|
| 122 | {
|
---|
| 123 | return $this->monitoredResourceLabels;
|
---|
| 124 | }
|
---|
| 125 | /**
|
---|
| 126 | * @param string
|
---|
| 127 | */
|
---|
| 128 | public function setName($name)
|
---|
| 129 | {
|
---|
| 130 | $this->name = $name;
|
---|
| 131 | }
|
---|
| 132 | /**
|
---|
| 133 | * @return string
|
---|
| 134 | */
|
---|
| 135 | public function getName()
|
---|
| 136 | {
|
---|
| 137 | return $this->name;
|
---|
| 138 | }
|
---|
| 139 | /**
|
---|
| 140 | * @param V2LogEntryOperation
|
---|
| 141 | */
|
---|
| 142 | public function setOperation(V2LogEntryOperation $operation)
|
---|
| 143 | {
|
---|
| 144 | $this->operation = $operation;
|
---|
| 145 | }
|
---|
| 146 | /**
|
---|
| 147 | * @return V2LogEntryOperation
|
---|
| 148 | */
|
---|
| 149 | public function getOperation()
|
---|
| 150 | {
|
---|
| 151 | return $this->operation;
|
---|
| 152 | }
|
---|
| 153 | /**
|
---|
| 154 | * @param array[]
|
---|
| 155 | */
|
---|
| 156 | public function setProtoPayload($protoPayload)
|
---|
| 157 | {
|
---|
| 158 | $this->protoPayload = $protoPayload;
|
---|
| 159 | }
|
---|
| 160 | /**
|
---|
| 161 | * @return array[]
|
---|
| 162 | */
|
---|
| 163 | public function getProtoPayload()
|
---|
| 164 | {
|
---|
| 165 | return $this->protoPayload;
|
---|
| 166 | }
|
---|
| 167 | /**
|
---|
| 168 | * @param string
|
---|
| 169 | */
|
---|
| 170 | public function setSeverity($severity)
|
---|
| 171 | {
|
---|
| 172 | $this->severity = $severity;
|
---|
| 173 | }
|
---|
| 174 | /**
|
---|
| 175 | * @return string
|
---|
| 176 | */
|
---|
| 177 | public function getSeverity()
|
---|
| 178 | {
|
---|
| 179 | return $this->severity;
|
---|
| 180 | }
|
---|
| 181 | /**
|
---|
| 182 | * @param V2LogEntrySourceLocation
|
---|
| 183 | */
|
---|
| 184 | public function setSourceLocation(V2LogEntrySourceLocation $sourceLocation)
|
---|
| 185 | {
|
---|
| 186 | $this->sourceLocation = $sourceLocation;
|
---|
| 187 | }
|
---|
| 188 | /**
|
---|
| 189 | * @return V2LogEntrySourceLocation
|
---|
| 190 | */
|
---|
| 191 | public function getSourceLocation()
|
---|
| 192 | {
|
---|
| 193 | return $this->sourceLocation;
|
---|
| 194 | }
|
---|
| 195 | /**
|
---|
| 196 | * @param array[]
|
---|
| 197 | */
|
---|
| 198 | public function setStructPayload($structPayload)
|
---|
| 199 | {
|
---|
| 200 | $this->structPayload = $structPayload;
|
---|
| 201 | }
|
---|
| 202 | /**
|
---|
| 203 | * @return array[]
|
---|
| 204 | */
|
---|
| 205 | public function getStructPayload()
|
---|
| 206 | {
|
---|
| 207 | return $this->structPayload;
|
---|
| 208 | }
|
---|
| 209 | /**
|
---|
| 210 | * @param string
|
---|
| 211 | */
|
---|
| 212 | public function setTextPayload($textPayload)
|
---|
| 213 | {
|
---|
| 214 | $this->textPayload = $textPayload;
|
---|
| 215 | }
|
---|
| 216 | /**
|
---|
| 217 | * @return string
|
---|
| 218 | */
|
---|
| 219 | public function getTextPayload()
|
---|
| 220 | {
|
---|
| 221 | return $this->textPayload;
|
---|
| 222 | }
|
---|
| 223 | /**
|
---|
| 224 | * @param string
|
---|
| 225 | */
|
---|
| 226 | public function setTimestamp($timestamp)
|
---|
| 227 | {
|
---|
| 228 | $this->timestamp = $timestamp;
|
---|
| 229 | }
|
---|
| 230 | /**
|
---|
| 231 | * @return string
|
---|
| 232 | */
|
---|
| 233 | public function getTimestamp()
|
---|
| 234 | {
|
---|
| 235 | return $this->timestamp;
|
---|
| 236 | }
|
---|
| 237 | /**
|
---|
| 238 | * @param string
|
---|
| 239 | */
|
---|
| 240 | public function setTrace($trace)
|
---|
| 241 | {
|
---|
| 242 | $this->trace = $trace;
|
---|
| 243 | }
|
---|
| 244 | /**
|
---|
| 245 | * @return string
|
---|
| 246 | */
|
---|
| 247 | public function getTrace()
|
---|
| 248 | {
|
---|
| 249 | return $this->trace;
|
---|
| 250 | }
|
---|
| 251 | }
|
---|
| 252 |
|
---|
| 253 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
| 254 | class_alias(V2LogEntry::class, 'Google_Service_ServiceControl_V2LogEntry');
|
---|