]>
git.proxmox.com Git - ceph.git/blob - ceph/src/jaegertracing/jaeger-client-cpp/src/jaegertracing/thrift-gen/aggregation_validator_types.cpp
2 * Autogenerated by Thrift Compiler (0.11.0)
4 * DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
7 #include "aggregation_validator_types.h"
12 #include <thrift/TToString.h>
14 namespace jaegertracing
{ namespace thrift
{
17 ValidateTraceResponse::~ValidateTraceResponse() throw() {
21 void ValidateTraceResponse::__set_ok(const bool val
) {
25 void ValidateTraceResponse::__set_traceCount(const int64_t val
) {
26 this->traceCount
= val
;
28 std::ostream
& operator<<(std::ostream
& out
, const ValidateTraceResponse
& obj
)
35 uint32_t ValidateTraceResponse::read(::apache::thrift::protocol::TProtocol
* iprot
) {
37 ::apache::thrift::protocol::TInputRecursionTracker
tracker(*iprot
);
40 ::apache::thrift::protocol::TType ftype
;
43 xfer
+= iprot
->readStructBegin(fname
);
45 using ::apache::thrift::protocol::TProtocolException
;
47 bool isset_ok
= false;
48 bool isset_traceCount
= false;
52 xfer
+= iprot
->readFieldBegin(fname
, ftype
, fid
);
53 if (ftype
== ::apache::thrift::protocol::T_STOP
) {
59 if (ftype
== ::apache::thrift::protocol::T_BOOL
) {
60 xfer
+= iprot
->readBool(this->ok
);
63 xfer
+= iprot
->skip(ftype
);
67 if (ftype
== ::apache::thrift::protocol::T_I64
) {
68 xfer
+= iprot
->readI64(this->traceCount
);
69 isset_traceCount
= true;
71 xfer
+= iprot
->skip(ftype
);
75 xfer
+= iprot
->skip(ftype
);
78 xfer
+= iprot
->readFieldEnd();
81 xfer
+= iprot
->readStructEnd();
84 throw TProtocolException(TProtocolException::INVALID_DATA
);
85 if (!isset_traceCount
)
86 throw TProtocolException(TProtocolException::INVALID_DATA
);
90 uint32_t ValidateTraceResponse::write(::apache::thrift::protocol::TProtocol
* oprot
) const {
92 ::apache::thrift::protocol::TOutputRecursionTracker
tracker(*oprot
);
93 xfer
+= oprot
->writeStructBegin("ValidateTraceResponse");
95 xfer
+= oprot
->writeFieldBegin("ok", ::apache::thrift::protocol::T_BOOL
, 1);
96 xfer
+= oprot
->writeBool(this->ok
);
97 xfer
+= oprot
->writeFieldEnd();
99 xfer
+= oprot
->writeFieldBegin("traceCount", ::apache::thrift::protocol::T_I64
, 2);
100 xfer
+= oprot
->writeI64(this->traceCount
);
101 xfer
+= oprot
->writeFieldEnd();
103 xfer
+= oprot
->writeFieldStop();
104 xfer
+= oprot
->writeStructEnd();
108 void swap(ValidateTraceResponse
&a
, ValidateTraceResponse
&b
) {
111 swap(a
.traceCount
, b
.traceCount
);
114 ValidateTraceResponse::ValidateTraceResponse(const ValidateTraceResponse
& other0
) {
116 traceCount
= other0
.traceCount
;
118 ValidateTraceResponse
& ValidateTraceResponse::operator=(const ValidateTraceResponse
& other1
) {
120 traceCount
= other1
.traceCount
;
123 void ValidateTraceResponse::printTo(std::ostream
& out
) const {
124 using ::apache::thrift::to_string
;
125 out
<< "ValidateTraceResponse(";
126 out
<< "ok=" << to_string(ok
);
127 out
<< ", " << "traceCount=" << to_string(traceCount
);