]> git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/jaeger-client-cpp/src/jaegertracing/thrift-gen/zipkincore_types.h
buildsys: switch source download to quincy
[ceph.git] / ceph / src / jaegertracing / jaeger-client-cpp / src / jaegertracing / thrift-gen / zipkincore_types.h
1 /**
2 * Autogenerated by Thrift Compiler (0.11.0)
3 *
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
5 * @generated
6 */
7 #ifndef zipkincore_TYPES_H
8 #define zipkincore_TYPES_H
9
10 #include <iosfwd>
11
12 #include <thrift/Thrift.h>
13 #include <thrift/TApplicationException.h>
14 #include <thrift/TBase.h>
15 #include <thrift/protocol/TProtocol.h>
16 #include <thrift/transport/TTransport.h>
17
18
19
20
21 namespace twitter { namespace zipkin { namespace thrift {
22
23 struct AnnotationType {
24 enum type {
25 BOOL = 0,
26 BYTES = 1,
27 I16 = 2,
28 I32 = 3,
29 I64 = 4,
30 DOUBLE = 5,
31 STRING = 6
32 };
33 };
34
35 extern const std::map<int, const char*> _AnnotationType_VALUES_TO_NAMES;
36
37 std::ostream& operator<<(std::ostream& out, const AnnotationType::type& val);
38
39 class Endpoint;
40
41 class Annotation;
42
43 class BinaryAnnotation;
44
45 class Span;
46
47 class Response;
48
49 typedef struct _Endpoint__isset {
50 _Endpoint__isset() : ipv4(false), port(false), service_name(false), ipv6(false) {}
51 bool ipv4 :1;
52 bool port :1;
53 bool service_name :1;
54 bool ipv6 :1;
55 } _Endpoint__isset;
56
57 class Endpoint : public virtual ::apache::thrift::TBase {
58 public:
59
60 Endpoint(const Endpoint&);
61 Endpoint& operator=(const Endpoint&);
62 Endpoint() : ipv4(0), port(0), service_name(), ipv6() {
63 }
64
65 virtual ~Endpoint() throw();
66 int32_t ipv4;
67 int16_t port;
68 std::string service_name;
69 std::string ipv6;
70
71 _Endpoint__isset __isset;
72
73 void __set_ipv4(const int32_t val);
74
75 void __set_port(const int16_t val);
76
77 void __set_service_name(const std::string& val);
78
79 void __set_ipv6(const std::string& val);
80
81 bool operator == (const Endpoint & rhs) const
82 {
83 if (!(ipv4 == rhs.ipv4))
84 return false;
85 if (!(port == rhs.port))
86 return false;
87 if (!(service_name == rhs.service_name))
88 return false;
89 if (__isset.ipv6 != rhs.__isset.ipv6)
90 return false;
91 else if (__isset.ipv6 && !(ipv6 == rhs.ipv6))
92 return false;
93 return true;
94 }
95 bool operator != (const Endpoint &rhs) const {
96 return !(*this == rhs);
97 }
98
99 bool operator < (const Endpoint & ) const;
100
101 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
102 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
103
104 virtual void printTo(std::ostream& out) const;
105 };
106
107 void swap(Endpoint &a, Endpoint &b);
108
109 std::ostream& operator<<(std::ostream& out, const Endpoint& obj);
110
111 typedef struct _Annotation__isset {
112 _Annotation__isset() : timestamp(false), value(false), host(false) {}
113 bool timestamp :1;
114 bool value :1;
115 bool host :1;
116 } _Annotation__isset;
117
118 class Annotation : public virtual ::apache::thrift::TBase {
119 public:
120
121 Annotation(const Annotation&);
122 Annotation& operator=(const Annotation&);
123 Annotation() : timestamp(0), value() {
124 }
125
126 virtual ~Annotation() throw();
127 int64_t timestamp;
128 std::string value;
129 Endpoint host;
130
131 _Annotation__isset __isset;
132
133 void __set_timestamp(const int64_t val);
134
135 void __set_value(const std::string& val);
136
137 void __set_host(const Endpoint& val);
138
139 bool operator == (const Annotation & rhs) const
140 {
141 if (!(timestamp == rhs.timestamp))
142 return false;
143 if (!(value == rhs.value))
144 return false;
145 if (__isset.host != rhs.__isset.host)
146 return false;
147 else if (__isset.host && !(host == rhs.host))
148 return false;
149 return true;
150 }
151 bool operator != (const Annotation &rhs) const {
152 return !(*this == rhs);
153 }
154
155 bool operator < (const Annotation & ) const;
156
157 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
158 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
159
160 virtual void printTo(std::ostream& out) const;
161 };
162
163 void swap(Annotation &a, Annotation &b);
164
165 std::ostream& operator<<(std::ostream& out, const Annotation& obj);
166
167 typedef struct _BinaryAnnotation__isset {
168 _BinaryAnnotation__isset() : key(false), value(false), annotation_type(false), host(false) {}
169 bool key :1;
170 bool value :1;
171 bool annotation_type :1;
172 bool host :1;
173 } _BinaryAnnotation__isset;
174
175 class BinaryAnnotation : public virtual ::apache::thrift::TBase {
176 public:
177
178 BinaryAnnotation(const BinaryAnnotation&);
179 BinaryAnnotation& operator=(const BinaryAnnotation&);
180 BinaryAnnotation() : key(), value(), annotation_type((AnnotationType::type)0) {
181 }
182
183 virtual ~BinaryAnnotation() throw();
184 std::string key;
185 std::string value;
186 AnnotationType::type annotation_type;
187 Endpoint host;
188
189 _BinaryAnnotation__isset __isset;
190
191 void __set_key(const std::string& val);
192
193 void __set_value(const std::string& val);
194
195 void __set_annotation_type(const AnnotationType::type val);
196
197 void __set_host(const Endpoint& val);
198
199 bool operator == (const BinaryAnnotation & rhs) const
200 {
201 if (!(key == rhs.key))
202 return false;
203 if (!(value == rhs.value))
204 return false;
205 if (!(annotation_type == rhs.annotation_type))
206 return false;
207 if (__isset.host != rhs.__isset.host)
208 return false;
209 else if (__isset.host && !(host == rhs.host))
210 return false;
211 return true;
212 }
213 bool operator != (const BinaryAnnotation &rhs) const {
214 return !(*this == rhs);
215 }
216
217 bool operator < (const BinaryAnnotation & ) const;
218
219 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
220 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
221
222 virtual void printTo(std::ostream& out) const;
223 };
224
225 void swap(BinaryAnnotation &a, BinaryAnnotation &b);
226
227 std::ostream& operator<<(std::ostream& out, const BinaryAnnotation& obj);
228
229 typedef struct _Span__isset {
230 _Span__isset() : trace_id(false), name(false), id(false), parent_id(false), annotations(false), binary_annotations(false), debug(true), timestamp(false), duration(false), trace_id_high(false) {}
231 bool trace_id :1;
232 bool name :1;
233 bool id :1;
234 bool parent_id :1;
235 bool annotations :1;
236 bool binary_annotations :1;
237 bool debug :1;
238 bool timestamp :1;
239 bool duration :1;
240 bool trace_id_high :1;
241 } _Span__isset;
242
243 class Span : public virtual ::apache::thrift::TBase {
244 public:
245
246 Span(const Span&);
247 Span& operator=(const Span&);
248 Span() : trace_id(0), name(), id(0), parent_id(0), debug(false), timestamp(0), duration(0), trace_id_high(0) {
249 }
250
251 virtual ~Span() throw();
252 int64_t trace_id;
253 std::string name;
254 int64_t id;
255 int64_t parent_id;
256 std::vector<Annotation> annotations;
257 std::vector<BinaryAnnotation> binary_annotations;
258 bool debug;
259 int64_t timestamp;
260 int64_t duration;
261 int64_t trace_id_high;
262
263 _Span__isset __isset;
264
265 void __set_trace_id(const int64_t val);
266
267 void __set_name(const std::string& val);
268
269 void __set_id(const int64_t val);
270
271 void __set_parent_id(const int64_t val);
272
273 void __set_annotations(const std::vector<Annotation> & val);
274
275 void __set_binary_annotations(const std::vector<BinaryAnnotation> & val);
276
277 void __set_debug(const bool val);
278
279 void __set_timestamp(const int64_t val);
280
281 void __set_duration(const int64_t val);
282
283 void __set_trace_id_high(const int64_t val);
284
285 bool operator == (const Span & rhs) const
286 {
287 if (!(trace_id == rhs.trace_id))
288 return false;
289 if (!(name == rhs.name))
290 return false;
291 if (!(id == rhs.id))
292 return false;
293 if (__isset.parent_id != rhs.__isset.parent_id)
294 return false;
295 else if (__isset.parent_id && !(parent_id == rhs.parent_id))
296 return false;
297 if (!(annotations == rhs.annotations))
298 return false;
299 if (!(binary_annotations == rhs.binary_annotations))
300 return false;
301 if (__isset.debug != rhs.__isset.debug)
302 return false;
303 else if (__isset.debug && !(debug == rhs.debug))
304 return false;
305 if (__isset.timestamp != rhs.__isset.timestamp)
306 return false;
307 else if (__isset.timestamp && !(timestamp == rhs.timestamp))
308 return false;
309 if (__isset.duration != rhs.__isset.duration)
310 return false;
311 else if (__isset.duration && !(duration == rhs.duration))
312 return false;
313 if (__isset.trace_id_high != rhs.__isset.trace_id_high)
314 return false;
315 else if (__isset.trace_id_high && !(trace_id_high == rhs.trace_id_high))
316 return false;
317 return true;
318 }
319 bool operator != (const Span &rhs) const {
320 return !(*this == rhs);
321 }
322
323 bool operator < (const Span & ) const;
324
325 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
326 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
327
328 virtual void printTo(std::ostream& out) const;
329 };
330
331 void swap(Span &a, Span &b);
332
333 std::ostream& operator<<(std::ostream& out, const Span& obj);
334
335
336 class Response : public virtual ::apache::thrift::TBase {
337 public:
338
339 Response(const Response&);
340 Response& operator=(const Response&);
341 Response() : ok(0) {
342 }
343
344 virtual ~Response() throw();
345 bool ok;
346
347 void __set_ok(const bool val);
348
349 bool operator == (const Response & rhs) const
350 {
351 if (!(ok == rhs.ok))
352 return false;
353 return true;
354 }
355 bool operator != (const Response &rhs) const {
356 return !(*this == rhs);
357 }
358
359 bool operator < (const Response & ) const;
360
361 uint32_t read(::apache::thrift::protocol::TProtocol* iprot);
362 uint32_t write(::apache::thrift::protocol::TProtocol* oprot) const;
363
364 virtual void printTo(std::ostream& out) const;
365 };
366
367 void swap(Response &a, Response &b);
368
369 std::ostream& operator<<(std::ostream& out, const Response& obj);
370
371 }}} // namespace
372
373 #endif