Fork me on GitHub

source: git/external/ProMC/ProMCDescription.pb.cc@ 5babc8b

ImprovedOutputFile Timing dual_readout llp
Last change on this file since 5babc8b was 6b9b91f, checked in by pavel <pavel@…>, 11 years ago

add external/ProMC

  • Property mode set to 100644
File size: 14.7 KB
Line 
1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: ProMCDescription.proto
3
4#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5#include "ProMCDescription.pb.h"
6
7#include <algorithm>
8
9#include <google/protobuf/stubs/common.h>
10#include <google/protobuf/stubs/once.h>
11#include <google/protobuf/io/coded_stream.h>
12#include <google/protobuf/wire_format_lite_inl.h>
13#include <google/protobuf/descriptor.h>
14#include <google/protobuf/generated_message_reflection.h>
15#include <google/protobuf/reflection_ops.h>
16#include <google/protobuf/wire_format.h>
17// @@protoc_insertion_point(includes)
18
19namespace promc {
20
21namespace {
22
23const ::google::protobuf::Descriptor* ProMCDescription_descriptor_ = NULL;
24const ::google::protobuf::internal::GeneratedMessageReflection*
25 ProMCDescription_reflection_ = NULL;
26
27} // namespace
28
29
30void protobuf_AssignDesc_ProMCDescription_2eproto() {
31 protobuf_AddDesc_ProMCDescription_2eproto();
32 const ::google::protobuf::FileDescriptor* file =
33 ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
34 "ProMCDescription.proto");
35 GOOGLE_CHECK(file != NULL);
36 ProMCDescription_descriptor_ = file->message_type(0);
37 static const int ProMCDescription_offsets_[4] = {
38 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCDescription, version_),
39 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCDescription, events_),
40 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCDescription, description_),
41 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCDescription, timestamp_),
42 };
43 ProMCDescription_reflection_ =
44 new ::google::protobuf::internal::GeneratedMessageReflection(
45 ProMCDescription_descriptor_,
46 ProMCDescription::default_instance_,
47 ProMCDescription_offsets_,
48 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCDescription, _has_bits_[0]),
49 GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCDescription, _unknown_fields_),
50 -1,
51 ::google::protobuf::DescriptorPool::generated_pool(),
52 ::google::protobuf::MessageFactory::generated_factory(),
53 sizeof(ProMCDescription));
54}
55
56namespace {
57
58GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
59inline void protobuf_AssignDescriptorsOnce() {
60 ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
61 &protobuf_AssignDesc_ProMCDescription_2eproto);
62}
63
64void protobuf_RegisterTypes(const ::std::string&) {
65 protobuf_AssignDescriptorsOnce();
66 ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
67 ProMCDescription_descriptor_, &ProMCDescription::default_instance());
68}
69
70} // namespace
71
72void protobuf_ShutdownFile_ProMCDescription_2eproto() {
73 delete ProMCDescription::default_instance_;
74 delete ProMCDescription_reflection_;
75}
76
77void protobuf_AddDesc_ProMCDescription_2eproto() {
78 static bool already_here = false;
79 if (already_here) return;
80 already_here = true;
81 GOOGLE_PROTOBUF_VERIFY_VERSION;
82
83 ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
84 "\n\026ProMCDescription.proto\022\005promc\"[\n\020ProMC"
85 "Description\022\017\n\007version\030\001 \002(\004\022\016\n\006events\030\002"
86 " \002(\004\022\023\n\013description\030\003 \002(\t\022\021\n\ttimestamp\030\004"
87 " \002(\004B \n\010promc.ioB\024ProMCDescriptionFile", 158);
88 ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
89 "ProMCDescription.proto", &protobuf_RegisterTypes);
90 ProMCDescription::default_instance_ = new ProMCDescription();
91 ProMCDescription::default_instance_->InitAsDefaultInstance();
92 ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ProMCDescription_2eproto);
93}
94
95// Force AddDescriptors() to be called at static initialization time.
96struct StaticDescriptorInitializer_ProMCDescription_2eproto {
97 StaticDescriptorInitializer_ProMCDescription_2eproto() {
98 protobuf_AddDesc_ProMCDescription_2eproto();
99 }
100} static_descriptor_initializer_ProMCDescription_2eproto_;
101
102// ===================================================================
103
104#ifndef _MSC_VER
105const int ProMCDescription::kVersionFieldNumber;
106const int ProMCDescription::kEventsFieldNumber;
107const int ProMCDescription::kDescriptionFieldNumber;
108const int ProMCDescription::kTimestampFieldNumber;
109#endif // !_MSC_VER
110
111ProMCDescription::ProMCDescription()
112 : ::google::protobuf::Message() {
113 SharedCtor();
114}
115
116void ProMCDescription::InitAsDefaultInstance() {
117}
118
119ProMCDescription::ProMCDescription(const ProMCDescription& from)
120 : ::google::protobuf::Message() {
121 SharedCtor();
122 MergeFrom(from);
123}
124
125void ProMCDescription::SharedCtor() {
126 _cached_size_ = 0;
127 version_ = GOOGLE_ULONGLONG(0);
128 events_ = GOOGLE_ULONGLONG(0);
129 description_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
130 timestamp_ = GOOGLE_ULONGLONG(0);
131 ::memset(_has_bits_, 0, sizeof(_has_bits_));
132}
133
134ProMCDescription::~ProMCDescription() {
135 SharedDtor();
136}
137
138void ProMCDescription::SharedDtor() {
139 if (description_ != &::google::protobuf::internal::kEmptyString) {
140 delete description_;
141 }
142 if (this != default_instance_) {
143 }
144}
145
146void ProMCDescription::SetCachedSize(int size) const {
147 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
148 _cached_size_ = size;
149 GOOGLE_SAFE_CONCURRENT_WRITES_END();
150}
151const ::google::protobuf::Descriptor* ProMCDescription::descriptor() {
152 protobuf_AssignDescriptorsOnce();
153 return ProMCDescription_descriptor_;
154}
155
156const ProMCDescription& ProMCDescription::default_instance() {
157 if (default_instance_ == NULL) protobuf_AddDesc_ProMCDescription_2eproto();
158 return *default_instance_;
159}
160
161ProMCDescription* ProMCDescription::default_instance_ = NULL;
162
163ProMCDescription* ProMCDescription::New() const {
164 return new ProMCDescription;
165}
166
167void ProMCDescription::Clear() {
168 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
169 version_ = GOOGLE_ULONGLONG(0);
170 events_ = GOOGLE_ULONGLONG(0);
171 if (has_description()) {
172 if (description_ != &::google::protobuf::internal::kEmptyString) {
173 description_->clear();
174 }
175 }
176 timestamp_ = GOOGLE_ULONGLONG(0);
177 }
178 ::memset(_has_bits_, 0, sizeof(_has_bits_));
179 mutable_unknown_fields()->Clear();
180}
181
182bool ProMCDescription::MergePartialFromCodedStream(
183 ::google::protobuf::io::CodedInputStream* input) {
184#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
185 ::google::protobuf::uint32 tag;
186 while ((tag = input->ReadTag()) != 0) {
187 switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
188 // required uint64 version = 1;
189 case 1: {
190 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
191 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
192 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
193 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
194 input, &version_)));
195 set_has_version();
196 } else {
197 goto handle_uninterpreted;
198 }
199 if (input->ExpectTag(16)) goto parse_events;
200 break;
201 }
202
203 // required uint64 events = 2;
204 case 2: {
205 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
206 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
207 parse_events:
208 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
209 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
210 input, &events_)));
211 set_has_events();
212 } else {
213 goto handle_uninterpreted;
214 }
215 if (input->ExpectTag(26)) goto parse_description;
216 break;
217 }
218
219 // required string description = 3;
220 case 3: {
221 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
222 ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
223 parse_description:
224 DO_(::google::protobuf::internal::WireFormatLite::ReadString(
225 input, this->mutable_description()));
226 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
227 this->description().data(), this->description().length(),
228 ::google::protobuf::internal::WireFormat::PARSE);
229 } else {
230 goto handle_uninterpreted;
231 }
232 if (input->ExpectTag(32)) goto parse_timestamp;
233 break;
234 }
235
236 // required uint64 timestamp = 4;
237 case 4: {
238 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
239 ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
240 parse_timestamp:
241 DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
242 ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
243 input, &timestamp_)));
244 set_has_timestamp();
245 } else {
246 goto handle_uninterpreted;
247 }
248 if (input->ExpectAtEnd()) return true;
249 break;
250 }
251
252 default: {
253 handle_uninterpreted:
254 if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
255 ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
256 return true;
257 }
258 DO_(::google::protobuf::internal::WireFormat::SkipField(
259 input, tag, mutable_unknown_fields()));
260 break;
261 }
262 }
263 }
264 return true;
265#undef DO_
266}
267
268void ProMCDescription::SerializeWithCachedSizes(
269 ::google::protobuf::io::CodedOutputStream* output) const {
270 // required uint64 version = 1;
271 if (has_version()) {
272 ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->version(), output);
273 }
274
275 // required uint64 events = 2;
276 if (has_events()) {
277 ::google::protobuf::internal::WireFormatLite::WriteUInt64(2, this->events(), output);
278 }
279
280 // required string description = 3;
281 if (has_description()) {
282 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
283 this->description().data(), this->description().length(),
284 ::google::protobuf::internal::WireFormat::SERIALIZE);
285 ::google::protobuf::internal::WireFormatLite::WriteString(
286 3, this->description(), output);
287 }
288
289 // required uint64 timestamp = 4;
290 if (has_timestamp()) {
291 ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->timestamp(), output);
292 }
293
294 if (!unknown_fields().empty()) {
295 ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
296 unknown_fields(), output);
297 }
298}
299
300::google::protobuf::uint8* ProMCDescription::SerializeWithCachedSizesToArray(
301 ::google::protobuf::uint8* target) const {
302 // required uint64 version = 1;
303 if (has_version()) {
304 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->version(), target);
305 }
306
307 // required uint64 events = 2;
308 if (has_events()) {
309 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(2, this->events(), target);
310 }
311
312 // required string description = 3;
313 if (has_description()) {
314 ::google::protobuf::internal::WireFormat::VerifyUTF8String(
315 this->description().data(), this->description().length(),
316 ::google::protobuf::internal::WireFormat::SERIALIZE);
317 target =
318 ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
319 3, this->description(), target);
320 }
321
322 // required uint64 timestamp = 4;
323 if (has_timestamp()) {
324 target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->timestamp(), target);
325 }
326
327 if (!unknown_fields().empty()) {
328 target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
329 unknown_fields(), target);
330 }
331 return target;
332}
333
334int ProMCDescription::ByteSize() const {
335 int total_size = 0;
336
337 if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
338 // required uint64 version = 1;
339 if (has_version()) {
340 total_size += 1 +
341 ::google::protobuf::internal::WireFormatLite::UInt64Size(
342 this->version());
343 }
344
345 // required uint64 events = 2;
346 if (has_events()) {
347 total_size += 1 +
348 ::google::protobuf::internal::WireFormatLite::UInt64Size(
349 this->events());
350 }
351
352 // required string description = 3;
353 if (has_description()) {
354 total_size += 1 +
355 ::google::protobuf::internal::WireFormatLite::StringSize(
356 this->description());
357 }
358
359 // required uint64 timestamp = 4;
360 if (has_timestamp()) {
361 total_size += 1 +
362 ::google::protobuf::internal::WireFormatLite::UInt64Size(
363 this->timestamp());
364 }
365
366 }
367 if (!unknown_fields().empty()) {
368 total_size +=
369 ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
370 unknown_fields());
371 }
372 GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
373 _cached_size_ = total_size;
374 GOOGLE_SAFE_CONCURRENT_WRITES_END();
375 return total_size;
376}
377
378void ProMCDescription::MergeFrom(const ::google::protobuf::Message& from) {
379 GOOGLE_CHECK_NE(&from, this);
380 const ProMCDescription* source =
381 ::google::protobuf::internal::dynamic_cast_if_available<const ProMCDescription*>(
382 &from);
383 if (source == NULL) {
384 ::google::protobuf::internal::ReflectionOps::Merge(from, this);
385 } else {
386 MergeFrom(*source);
387 }
388}
389
390void ProMCDescription::MergeFrom(const ProMCDescription& from) {
391 GOOGLE_CHECK_NE(&from, this);
392 if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
393 if (from.has_version()) {
394 set_version(from.version());
395 }
396 if (from.has_events()) {
397 set_events(from.events());
398 }
399 if (from.has_description()) {
400 set_description(from.description());
401 }
402 if (from.has_timestamp()) {
403 set_timestamp(from.timestamp());
404 }
405 }
406 mutable_unknown_fields()->MergeFrom(from.unknown_fields());
407}
408
409void ProMCDescription::CopyFrom(const ::google::protobuf::Message& from) {
410 if (&from == this) return;
411 Clear();
412 MergeFrom(from);
413}
414
415void ProMCDescription::CopyFrom(const ProMCDescription& from) {
416 if (&from == this) return;
417 Clear();
418 MergeFrom(from);
419}
420
421bool ProMCDescription::IsInitialized() const {
422 if ((_has_bits_[0] & 0x0000000f) != 0x0000000f) return false;
423
424 return true;
425}
426
427void ProMCDescription::Swap(ProMCDescription* other) {
428 if (other != this) {
429 std::swap(version_, other->version_);
430 std::swap(events_, other->events_);
431 std::swap(description_, other->description_);
432 std::swap(timestamp_, other->timestamp_);
433 std::swap(_has_bits_[0], other->_has_bits_[0]);
434 _unknown_fields_.Swap(&other->_unknown_fields_);
435 std::swap(_cached_size_, other->_cached_size_);
436 }
437}
438
439::google::protobuf::Metadata ProMCDescription::GetMetadata() const {
440 protobuf_AssignDescriptorsOnce();
441 ::google::protobuf::Metadata metadata;
442 metadata.descriptor = ProMCDescription_descriptor_;
443 metadata.reflection = ProMCDescription_reflection_;
444 return metadata;
445}
446
447
448// @@protoc_insertion_point(namespace_scope)
449
450} // namespace promc
451
452// @@protoc_insertion_point(global_scope)
Note: See TracBrowser for help on using the repository browser.