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\CloudTrace;
|
---|
19 |
|
---|
20 | class Span extends \Google\Model
|
---|
21 | {
|
---|
22 | protected $attributesType = Attributes::class;
|
---|
23 | protected $attributesDataType = '';
|
---|
24 | /**
|
---|
25 | * @var int
|
---|
26 | */
|
---|
27 | public $childSpanCount;
|
---|
28 | protected $displayNameType = TruncatableString::class;
|
---|
29 | protected $displayNameDataType = '';
|
---|
30 | /**
|
---|
31 | * @var string
|
---|
32 | */
|
---|
33 | public $endTime;
|
---|
34 | protected $linksType = Links::class;
|
---|
35 | protected $linksDataType = '';
|
---|
36 | /**
|
---|
37 | * @var string
|
---|
38 | */
|
---|
39 | public $name;
|
---|
40 | /**
|
---|
41 | * @var string
|
---|
42 | */
|
---|
43 | public $parentSpanId;
|
---|
44 | /**
|
---|
45 | * @var bool
|
---|
46 | */
|
---|
47 | public $sameProcessAsParentSpan;
|
---|
48 | /**
|
---|
49 | * @var string
|
---|
50 | */
|
---|
51 | public $spanId;
|
---|
52 | /**
|
---|
53 | * @var string
|
---|
54 | */
|
---|
55 | public $spanKind;
|
---|
56 | protected $stackTraceType = StackTrace::class;
|
---|
57 | protected $stackTraceDataType = '';
|
---|
58 | /**
|
---|
59 | * @var string
|
---|
60 | */
|
---|
61 | public $startTime;
|
---|
62 | protected $statusType = Status::class;
|
---|
63 | protected $statusDataType = '';
|
---|
64 | protected $timeEventsType = TimeEvents::class;
|
---|
65 | protected $timeEventsDataType = '';
|
---|
66 |
|
---|
67 | /**
|
---|
68 | * @param Attributes
|
---|
69 | */
|
---|
70 | public function setAttributes(Attributes $attributes)
|
---|
71 | {
|
---|
72 | $this->attributes = $attributes;
|
---|
73 | }
|
---|
74 | /**
|
---|
75 | * @return Attributes
|
---|
76 | */
|
---|
77 | public function getAttributes()
|
---|
78 | {
|
---|
79 | return $this->attributes;
|
---|
80 | }
|
---|
81 | /**
|
---|
82 | * @param int
|
---|
83 | */
|
---|
84 | public function setChildSpanCount($childSpanCount)
|
---|
85 | {
|
---|
86 | $this->childSpanCount = $childSpanCount;
|
---|
87 | }
|
---|
88 | /**
|
---|
89 | * @return int
|
---|
90 | */
|
---|
91 | public function getChildSpanCount()
|
---|
92 | {
|
---|
93 | return $this->childSpanCount;
|
---|
94 | }
|
---|
95 | /**
|
---|
96 | * @param TruncatableString
|
---|
97 | */
|
---|
98 | public function setDisplayName(TruncatableString $displayName)
|
---|
99 | {
|
---|
100 | $this->displayName = $displayName;
|
---|
101 | }
|
---|
102 | /**
|
---|
103 | * @return TruncatableString
|
---|
104 | */
|
---|
105 | public function getDisplayName()
|
---|
106 | {
|
---|
107 | return $this->displayName;
|
---|
108 | }
|
---|
109 | /**
|
---|
110 | * @param string
|
---|
111 | */
|
---|
112 | public function setEndTime($endTime)
|
---|
113 | {
|
---|
114 | $this->endTime = $endTime;
|
---|
115 | }
|
---|
116 | /**
|
---|
117 | * @return string
|
---|
118 | */
|
---|
119 | public function getEndTime()
|
---|
120 | {
|
---|
121 | return $this->endTime;
|
---|
122 | }
|
---|
123 | /**
|
---|
124 | * @param Links
|
---|
125 | */
|
---|
126 | public function setLinks(Links $links)
|
---|
127 | {
|
---|
128 | $this->links = $links;
|
---|
129 | }
|
---|
130 | /**
|
---|
131 | * @return Links
|
---|
132 | */
|
---|
133 | public function getLinks()
|
---|
134 | {
|
---|
135 | return $this->links;
|
---|
136 | }
|
---|
137 | /**
|
---|
138 | * @param string
|
---|
139 | */
|
---|
140 | public function setName($name)
|
---|
141 | {
|
---|
142 | $this->name = $name;
|
---|
143 | }
|
---|
144 | /**
|
---|
145 | * @return string
|
---|
146 | */
|
---|
147 | public function getName()
|
---|
148 | {
|
---|
149 | return $this->name;
|
---|
150 | }
|
---|
151 | /**
|
---|
152 | * @param string
|
---|
153 | */
|
---|
154 | public function setParentSpanId($parentSpanId)
|
---|
155 | {
|
---|
156 | $this->parentSpanId = $parentSpanId;
|
---|
157 | }
|
---|
158 | /**
|
---|
159 | * @return string
|
---|
160 | */
|
---|
161 | public function getParentSpanId()
|
---|
162 | {
|
---|
163 | return $this->parentSpanId;
|
---|
164 | }
|
---|
165 | /**
|
---|
166 | * @param bool
|
---|
167 | */
|
---|
168 | public function setSameProcessAsParentSpan($sameProcessAsParentSpan)
|
---|
169 | {
|
---|
170 | $this->sameProcessAsParentSpan = $sameProcessAsParentSpan;
|
---|
171 | }
|
---|
172 | /**
|
---|
173 | * @return bool
|
---|
174 | */
|
---|
175 | public function getSameProcessAsParentSpan()
|
---|
176 | {
|
---|
177 | return $this->sameProcessAsParentSpan;
|
---|
178 | }
|
---|
179 | /**
|
---|
180 | * @param string
|
---|
181 | */
|
---|
182 | public function setSpanId($spanId)
|
---|
183 | {
|
---|
184 | $this->spanId = $spanId;
|
---|
185 | }
|
---|
186 | /**
|
---|
187 | * @return string
|
---|
188 | */
|
---|
189 | public function getSpanId()
|
---|
190 | {
|
---|
191 | return $this->spanId;
|
---|
192 | }
|
---|
193 | /**
|
---|
194 | * @param string
|
---|
195 | */
|
---|
196 | public function setSpanKind($spanKind)
|
---|
197 | {
|
---|
198 | $this->spanKind = $spanKind;
|
---|
199 | }
|
---|
200 | /**
|
---|
201 | * @return string
|
---|
202 | */
|
---|
203 | public function getSpanKind()
|
---|
204 | {
|
---|
205 | return $this->spanKind;
|
---|
206 | }
|
---|
207 | /**
|
---|
208 | * @param StackTrace
|
---|
209 | */
|
---|
210 | public function setStackTrace(StackTrace $stackTrace)
|
---|
211 | {
|
---|
212 | $this->stackTrace = $stackTrace;
|
---|
213 | }
|
---|
214 | /**
|
---|
215 | * @return StackTrace
|
---|
216 | */
|
---|
217 | public function getStackTrace()
|
---|
218 | {
|
---|
219 | return $this->stackTrace;
|
---|
220 | }
|
---|
221 | /**
|
---|
222 | * @param string
|
---|
223 | */
|
---|
224 | public function setStartTime($startTime)
|
---|
225 | {
|
---|
226 | $this->startTime = $startTime;
|
---|
227 | }
|
---|
228 | /**
|
---|
229 | * @return string
|
---|
230 | */
|
---|
231 | public function getStartTime()
|
---|
232 | {
|
---|
233 | return $this->startTime;
|
---|
234 | }
|
---|
235 | /**
|
---|
236 | * @param Status
|
---|
237 | */
|
---|
238 | public function setStatus(Status $status)
|
---|
239 | {
|
---|
240 | $this->status = $status;
|
---|
241 | }
|
---|
242 | /**
|
---|
243 | * @return Status
|
---|
244 | */
|
---|
245 | public function getStatus()
|
---|
246 | {
|
---|
247 | return $this->status;
|
---|
248 | }
|
---|
249 | /**
|
---|
250 | * @param TimeEvents
|
---|
251 | */
|
---|
252 | public function setTimeEvents(TimeEvents $timeEvents)
|
---|
253 | {
|
---|
254 | $this->timeEvents = $timeEvents;
|
---|
255 | }
|
---|
256 | /**
|
---|
257 | * @return TimeEvents
|
---|
258 | */
|
---|
259 | public function getTimeEvents()
|
---|
260 | {
|
---|
261 | return $this->timeEvents;
|
---|
262 | }
|
---|
263 | }
|
---|
264 |
|
---|
265 | // Adding a class alias for backwards compatibility with the previous class name.
|
---|
266 | class_alias(Span::class, 'Google_Service_CloudTrace_Span');
|
---|