[6b9b91f] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT!
|
---|
| 2 | // source: ProMCHeader.proto
|
---|
| 3 |
|
---|
| 4 | #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
|
---|
| 5 | #include "ProMCHeader.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 |
|
---|
| 19 | namespace promc {
|
---|
| 20 |
|
---|
| 21 | namespace {
|
---|
| 22 |
|
---|
| 23 | const ::google::protobuf::Descriptor* ProMCHeader_descriptor_ = NULL;
|
---|
| 24 | const ::google::protobuf::internal::GeneratedMessageReflection*
|
---|
| 25 | ProMCHeader_reflection_ = NULL;
|
---|
| 26 | const ::google::protobuf::Descriptor* ProMCHeader_ParticleData_descriptor_ = NULL;
|
---|
| 27 | const ::google::protobuf::internal::GeneratedMessageReflection*
|
---|
| 28 | ProMCHeader_ParticleData_reflection_ = NULL;
|
---|
| 29 | const ::google::protobuf::Descriptor* ProMCHeader_MetaInt_descriptor_ = NULL;
|
---|
| 30 | const ::google::protobuf::internal::GeneratedMessageReflection*
|
---|
| 31 | ProMCHeader_MetaInt_reflection_ = NULL;
|
---|
| 32 | const ::google::protobuf::Descriptor* ProMCHeader_MetaFloat_descriptor_ = NULL;
|
---|
| 33 | const ::google::protobuf::internal::GeneratedMessageReflection*
|
---|
| 34 | ProMCHeader_MetaFloat_reflection_ = NULL;
|
---|
| 35 |
|
---|
| 36 | } // namespace
|
---|
| 37 |
|
---|
| 38 |
|
---|
| 39 | void protobuf_AssignDesc_ProMCHeader_2eproto() {
|
---|
| 40 | protobuf_AddDesc_ProMCHeader_2eproto();
|
---|
| 41 | const ::google::protobuf::FileDescriptor* file =
|
---|
| 42 | ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
|
---|
| 43 | "ProMCHeader.proto");
|
---|
| 44 | GOOGLE_CHECK(file != NULL);
|
---|
| 45 | ProMCHeader_descriptor_ = file->message_type(0);
|
---|
| 46 | static const int ProMCHeader_offsets_[24] = {
|
---|
| 47 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, id1_),
|
---|
| 48 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, id2_),
|
---|
| 49 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, pdf_id1_),
|
---|
| 50 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, pdf_id2_),
|
---|
| 51 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, x1_),
|
---|
| 52 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, x2_),
|
---|
| 53 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, scalepdf_),
|
---|
| 54 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, pdf1_),
|
---|
| 55 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, pdf2_),
|
---|
| 56 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, ecm_),
|
---|
| 57 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, s_),
|
---|
| 58 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, name_),
|
---|
| 59 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, code_),
|
---|
| 60 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, cross_section_),
|
---|
| 61 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, cross_section_error_),
|
---|
| 62 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, momentumunit_),
|
---|
| 63 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, lengthunit_),
|
---|
| 64 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, namemomentumunit_),
|
---|
| 65 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, namelengthunit_),
|
---|
| 66 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, weight_),
|
---|
| 67 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, requested_events_),
|
---|
| 68 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, particledata_),
|
---|
| 69 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, metaint_),
|
---|
| 70 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, metafloat_),
|
---|
| 71 | };
|
---|
| 72 | ProMCHeader_reflection_ =
|
---|
| 73 | new ::google::protobuf::internal::GeneratedMessageReflection(
|
---|
| 74 | ProMCHeader_descriptor_,
|
---|
| 75 | ProMCHeader::default_instance_,
|
---|
| 76 | ProMCHeader_offsets_,
|
---|
| 77 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, _has_bits_[0]),
|
---|
| 78 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader, _unknown_fields_),
|
---|
| 79 | -1,
|
---|
| 80 | ::google::protobuf::DescriptorPool::generated_pool(),
|
---|
| 81 | ::google::protobuf::MessageFactory::generated_factory(),
|
---|
| 82 | sizeof(ProMCHeader));
|
---|
| 83 | ProMCHeader_ParticleData_descriptor_ = ProMCHeader_descriptor_->nested_type(0);
|
---|
| 84 | static const int ProMCHeader_ParticleData_offsets_[6] = {
|
---|
| 85 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_ParticleData, id_),
|
---|
| 86 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_ParticleData, mass_),
|
---|
| 87 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_ParticleData, name_),
|
---|
| 88 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_ParticleData, width_),
|
---|
| 89 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_ParticleData, lifetime_),
|
---|
| 90 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_ParticleData, charge_),
|
---|
| 91 | };
|
---|
| 92 | ProMCHeader_ParticleData_reflection_ =
|
---|
| 93 | new ::google::protobuf::internal::GeneratedMessageReflection(
|
---|
| 94 | ProMCHeader_ParticleData_descriptor_,
|
---|
| 95 | ProMCHeader_ParticleData::default_instance_,
|
---|
| 96 | ProMCHeader_ParticleData_offsets_,
|
---|
| 97 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_ParticleData, _has_bits_[0]),
|
---|
| 98 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_ParticleData, _unknown_fields_),
|
---|
| 99 | -1,
|
---|
| 100 | ::google::protobuf::DescriptorPool::generated_pool(),
|
---|
| 101 | ::google::protobuf::MessageFactory::generated_factory(),
|
---|
| 102 | sizeof(ProMCHeader_ParticleData));
|
---|
| 103 | ProMCHeader_MetaInt_descriptor_ = ProMCHeader_descriptor_->nested_type(1);
|
---|
| 104 | static const int ProMCHeader_MetaInt_offsets_[2] = {
|
---|
| 105 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_MetaInt, key_),
|
---|
| 106 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_MetaInt, value_),
|
---|
| 107 | };
|
---|
| 108 | ProMCHeader_MetaInt_reflection_ =
|
---|
| 109 | new ::google::protobuf::internal::GeneratedMessageReflection(
|
---|
| 110 | ProMCHeader_MetaInt_descriptor_,
|
---|
| 111 | ProMCHeader_MetaInt::default_instance_,
|
---|
| 112 | ProMCHeader_MetaInt_offsets_,
|
---|
| 113 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_MetaInt, _has_bits_[0]),
|
---|
| 114 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_MetaInt, _unknown_fields_),
|
---|
| 115 | -1,
|
---|
| 116 | ::google::protobuf::DescriptorPool::generated_pool(),
|
---|
| 117 | ::google::protobuf::MessageFactory::generated_factory(),
|
---|
| 118 | sizeof(ProMCHeader_MetaInt));
|
---|
| 119 | ProMCHeader_MetaFloat_descriptor_ = ProMCHeader_descriptor_->nested_type(2);
|
---|
| 120 | static const int ProMCHeader_MetaFloat_offsets_[2] = {
|
---|
| 121 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_MetaFloat, key_),
|
---|
| 122 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_MetaFloat, value_),
|
---|
| 123 | };
|
---|
| 124 | ProMCHeader_MetaFloat_reflection_ =
|
---|
| 125 | new ::google::protobuf::internal::GeneratedMessageReflection(
|
---|
| 126 | ProMCHeader_MetaFloat_descriptor_,
|
---|
| 127 | ProMCHeader_MetaFloat::default_instance_,
|
---|
| 128 | ProMCHeader_MetaFloat_offsets_,
|
---|
| 129 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_MetaFloat, _has_bits_[0]),
|
---|
| 130 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(ProMCHeader_MetaFloat, _unknown_fields_),
|
---|
| 131 | -1,
|
---|
| 132 | ::google::protobuf::DescriptorPool::generated_pool(),
|
---|
| 133 | ::google::protobuf::MessageFactory::generated_factory(),
|
---|
| 134 | sizeof(ProMCHeader_MetaFloat));
|
---|
| 135 | }
|
---|
| 136 |
|
---|
| 137 | namespace {
|
---|
| 138 |
|
---|
| 139 | GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
|
---|
| 140 | inline void protobuf_AssignDescriptorsOnce() {
|
---|
| 141 | ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
|
---|
| 142 | &protobuf_AssignDesc_ProMCHeader_2eproto);
|
---|
| 143 | }
|
---|
| 144 |
|
---|
| 145 | void protobuf_RegisterTypes(const ::std::string&) {
|
---|
| 146 | protobuf_AssignDescriptorsOnce();
|
---|
| 147 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
---|
| 148 | ProMCHeader_descriptor_, &ProMCHeader::default_instance());
|
---|
| 149 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
---|
| 150 | ProMCHeader_ParticleData_descriptor_, &ProMCHeader_ParticleData::default_instance());
|
---|
| 151 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
---|
| 152 | ProMCHeader_MetaInt_descriptor_, &ProMCHeader_MetaInt::default_instance());
|
---|
| 153 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
|
---|
| 154 | ProMCHeader_MetaFloat_descriptor_, &ProMCHeader_MetaFloat::default_instance());
|
---|
| 155 | }
|
---|
| 156 |
|
---|
| 157 | } // namespace
|
---|
| 158 |
|
---|
| 159 | void protobuf_ShutdownFile_ProMCHeader_2eproto() {
|
---|
| 160 | delete ProMCHeader::default_instance_;
|
---|
| 161 | delete ProMCHeader_reflection_;
|
---|
| 162 | delete ProMCHeader_ParticleData::default_instance_;
|
---|
| 163 | delete ProMCHeader_ParticleData_reflection_;
|
---|
| 164 | delete ProMCHeader_MetaInt::default_instance_;
|
---|
| 165 | delete ProMCHeader_MetaInt_reflection_;
|
---|
| 166 | delete ProMCHeader_MetaFloat::default_instance_;
|
---|
| 167 | delete ProMCHeader_MetaFloat_reflection_;
|
---|
| 168 | }
|
---|
| 169 |
|
---|
| 170 | void protobuf_AddDesc_ProMCHeader_2eproto() {
|
---|
| 171 | static bool already_here = false;
|
---|
| 172 | if (already_here) return;
|
---|
| 173 | already_here = true;
|
---|
| 174 | GOOGLE_PROTOBUF_VERIFY_VERSION;
|
---|
| 175 |
|
---|
| 176 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
|
---|
| 177 | "\n\021ProMCHeader.proto\022\005promc\"\313\005\n\013ProMCHead"
|
---|
| 178 | "er\022\013\n\003id1\030\001 \001(\005\022\013\n\003id2\030\002 \001(\005\022\017\n\007pdf_id1\030"
|
---|
| 179 | "\003 \001(\005\022\017\n\007pdf_id2\030\004 \001(\005\022\n\n\002x1\030\005 \001(\001\022\n\n\002x2"
|
---|
| 180 | "\030\006 \001(\001\022\020\n\010scalepdf\030\007 \001(\001\022\014\n\004pdf1\030\010 \001(\005\022\014"
|
---|
| 181 | "\n\004pdf2\030\t \001(\005\022\013\n\003eCM\030\n \001(\001\022\t\n\001s\030\013 \001(\001\022\014\n\004"
|
---|
| 182 | "name\030\014 \001(\t\022\014\n\004code\030\r \001(\005\022\025\n\rcross_sectio"
|
---|
| 183 | "n\030\016 \001(\001\022\033\n\023cross_section_error\030\017 \001(\001\022\024\n\014"
|
---|
| 184 | "MomentumUnit\030\020 \001(\005\022\022\n\nLengthUnit\030\021 \001(\005\022\030"
|
---|
| 185 | "\n\020NameMomentumUnit\030\022 \001(\t\022\026\n\016NameLengthUn"
|
---|
| 186 | "it\030\023 \001(\t\022\016\n\006weight\030\024 \001(\001\022\030\n\020requested_ev"
|
---|
| 187 | "ents\030\025 \001(\001\0225\n\014particleData\030\036 \003(\0132\037.promc"
|
---|
| 188 | ".ProMCHeader.ParticleData\022+\n\007metaInt\030\037 \003"
|
---|
| 189 | "(\0132\032.promc.ProMCHeader.MetaInt\022/\n\tmetaFl"
|
---|
| 190 | "oat\030 \003(\0132\034.promc.ProMCHeader.MetaFloat\032"
|
---|
| 191 | "g\n\014ParticleData\022\n\n\002id\030\001 \002(\021\022\014\n\004mass\030\002 \002("
|
---|
| 192 | "\001\022\014\n\004name\030\003 \002(\t\022\r\n\005width\030\004 \001(\002\022\020\n\010lifeti"
|
---|
| 193 | "me\030\005 \001(\002\022\016\n\006charge\030\006 \001(\021\032%\n\007MetaInt\022\013\n\003k"
|
---|
| 194 | "ey\030\001 \002(\t\022\r\n\005value\030\002 \002(\022\032\'\n\tMetaFloat\022\013\n\003"
|
---|
| 195 | "key\030\001 \002(\t\022\r\n\005value\030\002 \002(\001B\033\n\010promc.ioB\017Pr"
|
---|
| 196 | "oMCHeaderFile", 773);
|
---|
| 197 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
|
---|
| 198 | "ProMCHeader.proto", &protobuf_RegisterTypes);
|
---|
| 199 | ProMCHeader::default_instance_ = new ProMCHeader();
|
---|
| 200 | ProMCHeader_ParticleData::default_instance_ = new ProMCHeader_ParticleData();
|
---|
| 201 | ProMCHeader_MetaInt::default_instance_ = new ProMCHeader_MetaInt();
|
---|
| 202 | ProMCHeader_MetaFloat::default_instance_ = new ProMCHeader_MetaFloat();
|
---|
| 203 | ProMCHeader::default_instance_->InitAsDefaultInstance();
|
---|
| 204 | ProMCHeader_ParticleData::default_instance_->InitAsDefaultInstance();
|
---|
| 205 | ProMCHeader_MetaInt::default_instance_->InitAsDefaultInstance();
|
---|
| 206 | ProMCHeader_MetaFloat::default_instance_->InitAsDefaultInstance();
|
---|
| 207 | ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_ProMCHeader_2eproto);
|
---|
| 208 | }
|
---|
| 209 |
|
---|
| 210 | // Force AddDescriptors() to be called at static initialization time.
|
---|
| 211 | struct StaticDescriptorInitializer_ProMCHeader_2eproto {
|
---|
| 212 | StaticDescriptorInitializer_ProMCHeader_2eproto() {
|
---|
| 213 | protobuf_AddDesc_ProMCHeader_2eproto();
|
---|
| 214 | }
|
---|
| 215 | } static_descriptor_initializer_ProMCHeader_2eproto_;
|
---|
| 216 |
|
---|
| 217 | // ===================================================================
|
---|
| 218 |
|
---|
| 219 | #ifndef _MSC_VER
|
---|
| 220 | const int ProMCHeader_ParticleData::kIdFieldNumber;
|
---|
| 221 | const int ProMCHeader_ParticleData::kMassFieldNumber;
|
---|
| 222 | const int ProMCHeader_ParticleData::kNameFieldNumber;
|
---|
| 223 | const int ProMCHeader_ParticleData::kWidthFieldNumber;
|
---|
| 224 | const int ProMCHeader_ParticleData::kLifetimeFieldNumber;
|
---|
| 225 | const int ProMCHeader_ParticleData::kChargeFieldNumber;
|
---|
| 226 | #endif // !_MSC_VER
|
---|
| 227 |
|
---|
| 228 | ProMCHeader_ParticleData::ProMCHeader_ParticleData()
|
---|
| 229 | : ::google::protobuf::Message() {
|
---|
| 230 | SharedCtor();
|
---|
| 231 | }
|
---|
| 232 |
|
---|
| 233 | void ProMCHeader_ParticleData::InitAsDefaultInstance() {
|
---|
| 234 | }
|
---|
| 235 |
|
---|
| 236 | ProMCHeader_ParticleData::ProMCHeader_ParticleData(const ProMCHeader_ParticleData& from)
|
---|
| 237 | : ::google::protobuf::Message() {
|
---|
| 238 | SharedCtor();
|
---|
| 239 | MergeFrom(from);
|
---|
| 240 | }
|
---|
| 241 |
|
---|
| 242 | void ProMCHeader_ParticleData::SharedCtor() {
|
---|
| 243 | _cached_size_ = 0;
|
---|
| 244 | id_ = 0;
|
---|
| 245 | mass_ = 0;
|
---|
| 246 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
---|
| 247 | width_ = 0;
|
---|
| 248 | lifetime_ = 0;
|
---|
| 249 | charge_ = 0;
|
---|
| 250 | ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
---|
| 251 | }
|
---|
| 252 |
|
---|
| 253 | ProMCHeader_ParticleData::~ProMCHeader_ParticleData() {
|
---|
| 254 | SharedDtor();
|
---|
| 255 | }
|
---|
| 256 |
|
---|
| 257 | void ProMCHeader_ParticleData::SharedDtor() {
|
---|
| 258 | if (name_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 259 | delete name_;
|
---|
| 260 | }
|
---|
| 261 | if (this != default_instance_) {
|
---|
| 262 | }
|
---|
| 263 | }
|
---|
| 264 |
|
---|
| 265 | void ProMCHeader_ParticleData::SetCachedSize(int size) const {
|
---|
| 266 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
---|
| 267 | _cached_size_ = size;
|
---|
| 268 | GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
---|
| 269 | }
|
---|
| 270 | const ::google::protobuf::Descriptor* ProMCHeader_ParticleData::descriptor() {
|
---|
| 271 | protobuf_AssignDescriptorsOnce();
|
---|
| 272 | return ProMCHeader_ParticleData_descriptor_;
|
---|
| 273 | }
|
---|
| 274 |
|
---|
| 275 | const ProMCHeader_ParticleData& ProMCHeader_ParticleData::default_instance() {
|
---|
| 276 | if (default_instance_ == NULL) protobuf_AddDesc_ProMCHeader_2eproto();
|
---|
| 277 | return *default_instance_;
|
---|
| 278 | }
|
---|
| 279 |
|
---|
| 280 | ProMCHeader_ParticleData* ProMCHeader_ParticleData::default_instance_ = NULL;
|
---|
| 281 |
|
---|
| 282 | ProMCHeader_ParticleData* ProMCHeader_ParticleData::New() const {
|
---|
| 283 | return new ProMCHeader_ParticleData;
|
---|
| 284 | }
|
---|
| 285 |
|
---|
| 286 | void ProMCHeader_ParticleData::Clear() {
|
---|
| 287 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 288 | id_ = 0;
|
---|
| 289 | mass_ = 0;
|
---|
| 290 | if (has_name()) {
|
---|
| 291 | if (name_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 292 | name_->clear();
|
---|
| 293 | }
|
---|
| 294 | }
|
---|
| 295 | width_ = 0;
|
---|
| 296 | lifetime_ = 0;
|
---|
| 297 | charge_ = 0;
|
---|
| 298 | }
|
---|
| 299 | ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
---|
| 300 | mutable_unknown_fields()->Clear();
|
---|
| 301 | }
|
---|
| 302 |
|
---|
| 303 | bool ProMCHeader_ParticleData::MergePartialFromCodedStream(
|
---|
| 304 | ::google::protobuf::io::CodedInputStream* input) {
|
---|
| 305 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
|
---|
| 306 | ::google::protobuf::uint32 tag;
|
---|
| 307 | while ((tag = input->ReadTag()) != 0) {
|
---|
| 308 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
---|
| 309 | // required sint32 id = 1;
|
---|
| 310 | case 1: {
|
---|
| 311 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 312 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 313 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 314 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
|
---|
| 315 | input, &id_)));
|
---|
| 316 | set_has_id();
|
---|
| 317 | } else {
|
---|
| 318 | goto handle_uninterpreted;
|
---|
| 319 | }
|
---|
| 320 | if (input->ExpectTag(17)) goto parse_mass;
|
---|
| 321 | break;
|
---|
| 322 | }
|
---|
| 323 |
|
---|
| 324 | // required double mass = 2;
|
---|
| 325 | case 2: {
|
---|
| 326 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 327 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 328 | parse_mass:
|
---|
| 329 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 330 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 331 | input, &mass_)));
|
---|
| 332 | set_has_mass();
|
---|
| 333 | } else {
|
---|
| 334 | goto handle_uninterpreted;
|
---|
| 335 | }
|
---|
| 336 | if (input->ExpectTag(26)) goto parse_name;
|
---|
| 337 | break;
|
---|
| 338 | }
|
---|
| 339 |
|
---|
| 340 | // required string name = 3;
|
---|
| 341 | case 3: {
|
---|
| 342 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 343 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 344 | parse_name:
|
---|
| 345 | DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
---|
| 346 | input, this->mutable_name()));
|
---|
| 347 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 348 | this->name().data(), this->name().length(),
|
---|
| 349 | ::google::protobuf::internal::WireFormat::PARSE);
|
---|
| 350 | } else {
|
---|
| 351 | goto handle_uninterpreted;
|
---|
| 352 | }
|
---|
| 353 | if (input->ExpectTag(37)) goto parse_width;
|
---|
| 354 | break;
|
---|
| 355 | }
|
---|
| 356 |
|
---|
| 357 | // optional float width = 4;
|
---|
| 358 | case 4: {
|
---|
| 359 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 360 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
|
---|
| 361 | parse_width:
|
---|
| 362 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 363 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
---|
| 364 | input, &width_)));
|
---|
| 365 | set_has_width();
|
---|
| 366 | } else {
|
---|
| 367 | goto handle_uninterpreted;
|
---|
| 368 | }
|
---|
| 369 | if (input->ExpectTag(45)) goto parse_lifetime;
|
---|
| 370 | break;
|
---|
| 371 | }
|
---|
| 372 |
|
---|
| 373 | // optional float lifetime = 5;
|
---|
| 374 | case 5: {
|
---|
| 375 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 376 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED32) {
|
---|
| 377 | parse_lifetime:
|
---|
| 378 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 379 | float, ::google::protobuf::internal::WireFormatLite::TYPE_FLOAT>(
|
---|
| 380 | input, &lifetime_)));
|
---|
| 381 | set_has_lifetime();
|
---|
| 382 | } else {
|
---|
| 383 | goto handle_uninterpreted;
|
---|
| 384 | }
|
---|
| 385 | if (input->ExpectTag(48)) goto parse_charge;
|
---|
| 386 | break;
|
---|
| 387 | }
|
---|
| 388 |
|
---|
| 389 | // optional sint32 charge = 6;
|
---|
| 390 | case 6: {
|
---|
| 391 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 392 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 393 | parse_charge:
|
---|
| 394 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 395 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_SINT32>(
|
---|
| 396 | input, &charge_)));
|
---|
| 397 | set_has_charge();
|
---|
| 398 | } else {
|
---|
| 399 | goto handle_uninterpreted;
|
---|
| 400 | }
|
---|
| 401 | if (input->ExpectAtEnd()) return true;
|
---|
| 402 | break;
|
---|
| 403 | }
|
---|
| 404 |
|
---|
| 405 | default: {
|
---|
| 406 | handle_uninterpreted:
|
---|
| 407 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 408 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
---|
| 409 | return true;
|
---|
| 410 | }
|
---|
| 411 | DO_(::google::protobuf::internal::WireFormat::SkipField(
|
---|
| 412 | input, tag, mutable_unknown_fields()));
|
---|
| 413 | break;
|
---|
| 414 | }
|
---|
| 415 | }
|
---|
| 416 | }
|
---|
| 417 | return true;
|
---|
| 418 | #undef DO_
|
---|
| 419 | }
|
---|
| 420 |
|
---|
| 421 | void ProMCHeader_ParticleData::SerializeWithCachedSizes(
|
---|
| 422 | ::google::protobuf::io::CodedOutputStream* output) const {
|
---|
| 423 | // required sint32 id = 1;
|
---|
| 424 | if (has_id()) {
|
---|
| 425 | ::google::protobuf::internal::WireFormatLite::WriteSInt32(1, this->id(), output);
|
---|
| 426 | }
|
---|
| 427 |
|
---|
| 428 | // required double mass = 2;
|
---|
| 429 | if (has_mass()) {
|
---|
| 430 | ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->mass(), output);
|
---|
| 431 | }
|
---|
| 432 |
|
---|
| 433 | // required string name = 3;
|
---|
| 434 | if (has_name()) {
|
---|
| 435 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 436 | this->name().data(), this->name().length(),
|
---|
| 437 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 438 | ::google::protobuf::internal::WireFormatLite::WriteString(
|
---|
| 439 | 3, this->name(), output);
|
---|
| 440 | }
|
---|
| 441 |
|
---|
| 442 | // optional float width = 4;
|
---|
| 443 | if (has_width()) {
|
---|
| 444 | ::google::protobuf::internal::WireFormatLite::WriteFloat(4, this->width(), output);
|
---|
| 445 | }
|
---|
| 446 |
|
---|
| 447 | // optional float lifetime = 5;
|
---|
| 448 | if (has_lifetime()) {
|
---|
| 449 | ::google::protobuf::internal::WireFormatLite::WriteFloat(5, this->lifetime(), output);
|
---|
| 450 | }
|
---|
| 451 |
|
---|
| 452 | // optional sint32 charge = 6;
|
---|
| 453 | if (has_charge()) {
|
---|
| 454 | ::google::protobuf::internal::WireFormatLite::WriteSInt32(6, this->charge(), output);
|
---|
| 455 | }
|
---|
| 456 |
|
---|
| 457 | if (!unknown_fields().empty()) {
|
---|
| 458 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
---|
| 459 | unknown_fields(), output);
|
---|
| 460 | }
|
---|
| 461 | }
|
---|
| 462 |
|
---|
| 463 | ::google::protobuf::uint8* ProMCHeader_ParticleData::SerializeWithCachedSizesToArray(
|
---|
| 464 | ::google::protobuf::uint8* target) const {
|
---|
| 465 | // required sint32 id = 1;
|
---|
| 466 | if (has_id()) {
|
---|
| 467 | target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(1, this->id(), target);
|
---|
| 468 | }
|
---|
| 469 |
|
---|
| 470 | // required double mass = 2;
|
---|
| 471 | if (has_mass()) {
|
---|
| 472 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->mass(), target);
|
---|
| 473 | }
|
---|
| 474 |
|
---|
| 475 | // required string name = 3;
|
---|
| 476 | if (has_name()) {
|
---|
| 477 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 478 | this->name().data(), this->name().length(),
|
---|
| 479 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 480 | target =
|
---|
| 481 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
---|
| 482 | 3, this->name(), target);
|
---|
| 483 | }
|
---|
| 484 |
|
---|
| 485 | // optional float width = 4;
|
---|
| 486 | if (has_width()) {
|
---|
| 487 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(4, this->width(), target);
|
---|
| 488 | }
|
---|
| 489 |
|
---|
| 490 | // optional float lifetime = 5;
|
---|
| 491 | if (has_lifetime()) {
|
---|
| 492 | target = ::google::protobuf::internal::WireFormatLite::WriteFloatToArray(5, this->lifetime(), target);
|
---|
| 493 | }
|
---|
| 494 |
|
---|
| 495 | // optional sint32 charge = 6;
|
---|
| 496 | if (has_charge()) {
|
---|
| 497 | target = ::google::protobuf::internal::WireFormatLite::WriteSInt32ToArray(6, this->charge(), target);
|
---|
| 498 | }
|
---|
| 499 |
|
---|
| 500 | if (!unknown_fields().empty()) {
|
---|
| 501 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
---|
| 502 | unknown_fields(), target);
|
---|
| 503 | }
|
---|
| 504 | return target;
|
---|
| 505 | }
|
---|
| 506 |
|
---|
| 507 | int ProMCHeader_ParticleData::ByteSize() const {
|
---|
| 508 | int total_size = 0;
|
---|
| 509 |
|
---|
| 510 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 511 | // required sint32 id = 1;
|
---|
| 512 | if (has_id()) {
|
---|
| 513 | total_size += 1 +
|
---|
| 514 | ::google::protobuf::internal::WireFormatLite::SInt32Size(
|
---|
| 515 | this->id());
|
---|
| 516 | }
|
---|
| 517 |
|
---|
| 518 | // required double mass = 2;
|
---|
| 519 | if (has_mass()) {
|
---|
| 520 | total_size += 1 + 8;
|
---|
| 521 | }
|
---|
| 522 |
|
---|
| 523 | // required string name = 3;
|
---|
| 524 | if (has_name()) {
|
---|
| 525 | total_size += 1 +
|
---|
| 526 | ::google::protobuf::internal::WireFormatLite::StringSize(
|
---|
| 527 | this->name());
|
---|
| 528 | }
|
---|
| 529 |
|
---|
| 530 | // optional float width = 4;
|
---|
| 531 | if (has_width()) {
|
---|
| 532 | total_size += 1 + 4;
|
---|
| 533 | }
|
---|
| 534 |
|
---|
| 535 | // optional float lifetime = 5;
|
---|
| 536 | if (has_lifetime()) {
|
---|
| 537 | total_size += 1 + 4;
|
---|
| 538 | }
|
---|
| 539 |
|
---|
| 540 | // optional sint32 charge = 6;
|
---|
| 541 | if (has_charge()) {
|
---|
| 542 | total_size += 1 +
|
---|
| 543 | ::google::protobuf::internal::WireFormatLite::SInt32Size(
|
---|
| 544 | this->charge());
|
---|
| 545 | }
|
---|
| 546 |
|
---|
| 547 | }
|
---|
| 548 | if (!unknown_fields().empty()) {
|
---|
| 549 | total_size +=
|
---|
| 550 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
---|
| 551 | unknown_fields());
|
---|
| 552 | }
|
---|
| 553 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
---|
| 554 | _cached_size_ = total_size;
|
---|
| 555 | GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
---|
| 556 | return total_size;
|
---|
| 557 | }
|
---|
| 558 |
|
---|
| 559 | void ProMCHeader_ParticleData::MergeFrom(const ::google::protobuf::Message& from) {
|
---|
| 560 | GOOGLE_CHECK_NE(&from, this);
|
---|
| 561 | const ProMCHeader_ParticleData* source =
|
---|
| 562 | ::google::protobuf::internal::dynamic_cast_if_available<const ProMCHeader_ParticleData*>(
|
---|
| 563 | &from);
|
---|
| 564 | if (source == NULL) {
|
---|
| 565 | ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
---|
| 566 | } else {
|
---|
| 567 | MergeFrom(*source);
|
---|
| 568 | }
|
---|
| 569 | }
|
---|
| 570 |
|
---|
| 571 | void ProMCHeader_ParticleData::MergeFrom(const ProMCHeader_ParticleData& from) {
|
---|
| 572 | GOOGLE_CHECK_NE(&from, this);
|
---|
| 573 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 574 | if (from.has_id()) {
|
---|
| 575 | set_id(from.id());
|
---|
| 576 | }
|
---|
| 577 | if (from.has_mass()) {
|
---|
| 578 | set_mass(from.mass());
|
---|
| 579 | }
|
---|
| 580 | if (from.has_name()) {
|
---|
| 581 | set_name(from.name());
|
---|
| 582 | }
|
---|
| 583 | if (from.has_width()) {
|
---|
| 584 | set_width(from.width());
|
---|
| 585 | }
|
---|
| 586 | if (from.has_lifetime()) {
|
---|
| 587 | set_lifetime(from.lifetime());
|
---|
| 588 | }
|
---|
| 589 | if (from.has_charge()) {
|
---|
| 590 | set_charge(from.charge());
|
---|
| 591 | }
|
---|
| 592 | }
|
---|
| 593 | mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
---|
| 594 | }
|
---|
| 595 |
|
---|
| 596 | void ProMCHeader_ParticleData::CopyFrom(const ::google::protobuf::Message& from) {
|
---|
| 597 | if (&from == this) return;
|
---|
| 598 | Clear();
|
---|
| 599 | MergeFrom(from);
|
---|
| 600 | }
|
---|
| 601 |
|
---|
| 602 | void ProMCHeader_ParticleData::CopyFrom(const ProMCHeader_ParticleData& from) {
|
---|
| 603 | if (&from == this) return;
|
---|
| 604 | Clear();
|
---|
| 605 | MergeFrom(from);
|
---|
| 606 | }
|
---|
| 607 |
|
---|
| 608 | bool ProMCHeader_ParticleData::IsInitialized() const {
|
---|
| 609 | if ((_has_bits_[0] & 0x00000007) != 0x00000007) return false;
|
---|
| 610 |
|
---|
| 611 | return true;
|
---|
| 612 | }
|
---|
| 613 |
|
---|
| 614 | void ProMCHeader_ParticleData::Swap(ProMCHeader_ParticleData* other) {
|
---|
| 615 | if (other != this) {
|
---|
| 616 | std::swap(id_, other->id_);
|
---|
| 617 | std::swap(mass_, other->mass_);
|
---|
| 618 | std::swap(name_, other->name_);
|
---|
| 619 | std::swap(width_, other->width_);
|
---|
| 620 | std::swap(lifetime_, other->lifetime_);
|
---|
| 621 | std::swap(charge_, other->charge_);
|
---|
| 622 | std::swap(_has_bits_[0], other->_has_bits_[0]);
|
---|
| 623 | _unknown_fields_.Swap(&other->_unknown_fields_);
|
---|
| 624 | std::swap(_cached_size_, other->_cached_size_);
|
---|
| 625 | }
|
---|
| 626 | }
|
---|
| 627 |
|
---|
| 628 | ::google::protobuf::Metadata ProMCHeader_ParticleData::GetMetadata() const {
|
---|
| 629 | protobuf_AssignDescriptorsOnce();
|
---|
| 630 | ::google::protobuf::Metadata metadata;
|
---|
| 631 | metadata.descriptor = ProMCHeader_ParticleData_descriptor_;
|
---|
| 632 | metadata.reflection = ProMCHeader_ParticleData_reflection_;
|
---|
| 633 | return metadata;
|
---|
| 634 | }
|
---|
| 635 |
|
---|
| 636 |
|
---|
| 637 | // -------------------------------------------------------------------
|
---|
| 638 |
|
---|
| 639 | #ifndef _MSC_VER
|
---|
| 640 | const int ProMCHeader_MetaInt::kKeyFieldNumber;
|
---|
| 641 | const int ProMCHeader_MetaInt::kValueFieldNumber;
|
---|
| 642 | #endif // !_MSC_VER
|
---|
| 643 |
|
---|
| 644 | ProMCHeader_MetaInt::ProMCHeader_MetaInt()
|
---|
| 645 | : ::google::protobuf::Message() {
|
---|
| 646 | SharedCtor();
|
---|
| 647 | }
|
---|
| 648 |
|
---|
| 649 | void ProMCHeader_MetaInt::InitAsDefaultInstance() {
|
---|
| 650 | }
|
---|
| 651 |
|
---|
| 652 | ProMCHeader_MetaInt::ProMCHeader_MetaInt(const ProMCHeader_MetaInt& from)
|
---|
| 653 | : ::google::protobuf::Message() {
|
---|
| 654 | SharedCtor();
|
---|
| 655 | MergeFrom(from);
|
---|
| 656 | }
|
---|
| 657 |
|
---|
| 658 | void ProMCHeader_MetaInt::SharedCtor() {
|
---|
| 659 | _cached_size_ = 0;
|
---|
| 660 | key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
---|
| 661 | value_ = GOOGLE_LONGLONG(0);
|
---|
| 662 | ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
---|
| 663 | }
|
---|
| 664 |
|
---|
| 665 | ProMCHeader_MetaInt::~ProMCHeader_MetaInt() {
|
---|
| 666 | SharedDtor();
|
---|
| 667 | }
|
---|
| 668 |
|
---|
| 669 | void ProMCHeader_MetaInt::SharedDtor() {
|
---|
| 670 | if (key_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 671 | delete key_;
|
---|
| 672 | }
|
---|
| 673 | if (this != default_instance_) {
|
---|
| 674 | }
|
---|
| 675 | }
|
---|
| 676 |
|
---|
| 677 | void ProMCHeader_MetaInt::SetCachedSize(int size) const {
|
---|
| 678 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
---|
| 679 | _cached_size_ = size;
|
---|
| 680 | GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
---|
| 681 | }
|
---|
| 682 | const ::google::protobuf::Descriptor* ProMCHeader_MetaInt::descriptor() {
|
---|
| 683 | protobuf_AssignDescriptorsOnce();
|
---|
| 684 | return ProMCHeader_MetaInt_descriptor_;
|
---|
| 685 | }
|
---|
| 686 |
|
---|
| 687 | const ProMCHeader_MetaInt& ProMCHeader_MetaInt::default_instance() {
|
---|
| 688 | if (default_instance_ == NULL) protobuf_AddDesc_ProMCHeader_2eproto();
|
---|
| 689 | return *default_instance_;
|
---|
| 690 | }
|
---|
| 691 |
|
---|
| 692 | ProMCHeader_MetaInt* ProMCHeader_MetaInt::default_instance_ = NULL;
|
---|
| 693 |
|
---|
| 694 | ProMCHeader_MetaInt* ProMCHeader_MetaInt::New() const {
|
---|
| 695 | return new ProMCHeader_MetaInt;
|
---|
| 696 | }
|
---|
| 697 |
|
---|
| 698 | void ProMCHeader_MetaInt::Clear() {
|
---|
| 699 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 700 | if (has_key()) {
|
---|
| 701 | if (key_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 702 | key_->clear();
|
---|
| 703 | }
|
---|
| 704 | }
|
---|
| 705 | value_ = GOOGLE_LONGLONG(0);
|
---|
| 706 | }
|
---|
| 707 | ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
---|
| 708 | mutable_unknown_fields()->Clear();
|
---|
| 709 | }
|
---|
| 710 |
|
---|
| 711 | bool ProMCHeader_MetaInt::MergePartialFromCodedStream(
|
---|
| 712 | ::google::protobuf::io::CodedInputStream* input) {
|
---|
| 713 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
|
---|
| 714 | ::google::protobuf::uint32 tag;
|
---|
| 715 | while ((tag = input->ReadTag()) != 0) {
|
---|
| 716 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
---|
| 717 | // required string key = 1;
|
---|
| 718 | case 1: {
|
---|
| 719 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 720 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 721 | DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
---|
| 722 | input, this->mutable_key()));
|
---|
| 723 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 724 | this->key().data(), this->key().length(),
|
---|
| 725 | ::google::protobuf::internal::WireFormat::PARSE);
|
---|
| 726 | } else {
|
---|
| 727 | goto handle_uninterpreted;
|
---|
| 728 | }
|
---|
| 729 | if (input->ExpectTag(16)) goto parse_value;
|
---|
| 730 | break;
|
---|
| 731 | }
|
---|
| 732 |
|
---|
| 733 | // required sint64 value = 2;
|
---|
| 734 | case 2: {
|
---|
| 735 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 736 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 737 | parse_value:
|
---|
| 738 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 739 | ::google::protobuf::int64, ::google::protobuf::internal::WireFormatLite::TYPE_SINT64>(
|
---|
| 740 | input, &value_)));
|
---|
| 741 | set_has_value();
|
---|
| 742 | } else {
|
---|
| 743 | goto handle_uninterpreted;
|
---|
| 744 | }
|
---|
| 745 | if (input->ExpectAtEnd()) return true;
|
---|
| 746 | break;
|
---|
| 747 | }
|
---|
| 748 |
|
---|
| 749 | default: {
|
---|
| 750 | handle_uninterpreted:
|
---|
| 751 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 752 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
---|
| 753 | return true;
|
---|
| 754 | }
|
---|
| 755 | DO_(::google::protobuf::internal::WireFormat::SkipField(
|
---|
| 756 | input, tag, mutable_unknown_fields()));
|
---|
| 757 | break;
|
---|
| 758 | }
|
---|
| 759 | }
|
---|
| 760 | }
|
---|
| 761 | return true;
|
---|
| 762 | #undef DO_
|
---|
| 763 | }
|
---|
| 764 |
|
---|
| 765 | void ProMCHeader_MetaInt::SerializeWithCachedSizes(
|
---|
| 766 | ::google::protobuf::io::CodedOutputStream* output) const {
|
---|
| 767 | // required string key = 1;
|
---|
| 768 | if (has_key()) {
|
---|
| 769 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 770 | this->key().data(), this->key().length(),
|
---|
| 771 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 772 | ::google::protobuf::internal::WireFormatLite::WriteString(
|
---|
| 773 | 1, this->key(), output);
|
---|
| 774 | }
|
---|
| 775 |
|
---|
| 776 | // required sint64 value = 2;
|
---|
| 777 | if (has_value()) {
|
---|
| 778 | ::google::protobuf::internal::WireFormatLite::WriteSInt64(2, this->value(), output);
|
---|
| 779 | }
|
---|
| 780 |
|
---|
| 781 | if (!unknown_fields().empty()) {
|
---|
| 782 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
---|
| 783 | unknown_fields(), output);
|
---|
| 784 | }
|
---|
| 785 | }
|
---|
| 786 |
|
---|
| 787 | ::google::protobuf::uint8* ProMCHeader_MetaInt::SerializeWithCachedSizesToArray(
|
---|
| 788 | ::google::protobuf::uint8* target) const {
|
---|
| 789 | // required string key = 1;
|
---|
| 790 | if (has_key()) {
|
---|
| 791 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 792 | this->key().data(), this->key().length(),
|
---|
| 793 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 794 | target =
|
---|
| 795 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
---|
| 796 | 1, this->key(), target);
|
---|
| 797 | }
|
---|
| 798 |
|
---|
| 799 | // required sint64 value = 2;
|
---|
| 800 | if (has_value()) {
|
---|
| 801 | target = ::google::protobuf::internal::WireFormatLite::WriteSInt64ToArray(2, this->value(), target);
|
---|
| 802 | }
|
---|
| 803 |
|
---|
| 804 | if (!unknown_fields().empty()) {
|
---|
| 805 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
---|
| 806 | unknown_fields(), target);
|
---|
| 807 | }
|
---|
| 808 | return target;
|
---|
| 809 | }
|
---|
| 810 |
|
---|
| 811 | int ProMCHeader_MetaInt::ByteSize() const {
|
---|
| 812 | int total_size = 0;
|
---|
| 813 |
|
---|
| 814 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 815 | // required string key = 1;
|
---|
| 816 | if (has_key()) {
|
---|
| 817 | total_size += 1 +
|
---|
| 818 | ::google::protobuf::internal::WireFormatLite::StringSize(
|
---|
| 819 | this->key());
|
---|
| 820 | }
|
---|
| 821 |
|
---|
| 822 | // required sint64 value = 2;
|
---|
| 823 | if (has_value()) {
|
---|
| 824 | total_size += 1 +
|
---|
| 825 | ::google::protobuf::internal::WireFormatLite::SInt64Size(
|
---|
| 826 | this->value());
|
---|
| 827 | }
|
---|
| 828 |
|
---|
| 829 | }
|
---|
| 830 | if (!unknown_fields().empty()) {
|
---|
| 831 | total_size +=
|
---|
| 832 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
---|
| 833 | unknown_fields());
|
---|
| 834 | }
|
---|
| 835 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
---|
| 836 | _cached_size_ = total_size;
|
---|
| 837 | GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
---|
| 838 | return total_size;
|
---|
| 839 | }
|
---|
| 840 |
|
---|
| 841 | void ProMCHeader_MetaInt::MergeFrom(const ::google::protobuf::Message& from) {
|
---|
| 842 | GOOGLE_CHECK_NE(&from, this);
|
---|
| 843 | const ProMCHeader_MetaInt* source =
|
---|
| 844 | ::google::protobuf::internal::dynamic_cast_if_available<const ProMCHeader_MetaInt*>(
|
---|
| 845 | &from);
|
---|
| 846 | if (source == NULL) {
|
---|
| 847 | ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
---|
| 848 | } else {
|
---|
| 849 | MergeFrom(*source);
|
---|
| 850 | }
|
---|
| 851 | }
|
---|
| 852 |
|
---|
| 853 | void ProMCHeader_MetaInt::MergeFrom(const ProMCHeader_MetaInt& from) {
|
---|
| 854 | GOOGLE_CHECK_NE(&from, this);
|
---|
| 855 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 856 | if (from.has_key()) {
|
---|
| 857 | set_key(from.key());
|
---|
| 858 | }
|
---|
| 859 | if (from.has_value()) {
|
---|
| 860 | set_value(from.value());
|
---|
| 861 | }
|
---|
| 862 | }
|
---|
| 863 | mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
---|
| 864 | }
|
---|
| 865 |
|
---|
| 866 | void ProMCHeader_MetaInt::CopyFrom(const ::google::protobuf::Message& from) {
|
---|
| 867 | if (&from == this) return;
|
---|
| 868 | Clear();
|
---|
| 869 | MergeFrom(from);
|
---|
| 870 | }
|
---|
| 871 |
|
---|
| 872 | void ProMCHeader_MetaInt::CopyFrom(const ProMCHeader_MetaInt& from) {
|
---|
| 873 | if (&from == this) return;
|
---|
| 874 | Clear();
|
---|
| 875 | MergeFrom(from);
|
---|
| 876 | }
|
---|
| 877 |
|
---|
| 878 | bool ProMCHeader_MetaInt::IsInitialized() const {
|
---|
| 879 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
---|
| 880 |
|
---|
| 881 | return true;
|
---|
| 882 | }
|
---|
| 883 |
|
---|
| 884 | void ProMCHeader_MetaInt::Swap(ProMCHeader_MetaInt* other) {
|
---|
| 885 | if (other != this) {
|
---|
| 886 | std::swap(key_, other->key_);
|
---|
| 887 | std::swap(value_, other->value_);
|
---|
| 888 | std::swap(_has_bits_[0], other->_has_bits_[0]);
|
---|
| 889 | _unknown_fields_.Swap(&other->_unknown_fields_);
|
---|
| 890 | std::swap(_cached_size_, other->_cached_size_);
|
---|
| 891 | }
|
---|
| 892 | }
|
---|
| 893 |
|
---|
| 894 | ::google::protobuf::Metadata ProMCHeader_MetaInt::GetMetadata() const {
|
---|
| 895 | protobuf_AssignDescriptorsOnce();
|
---|
| 896 | ::google::protobuf::Metadata metadata;
|
---|
| 897 | metadata.descriptor = ProMCHeader_MetaInt_descriptor_;
|
---|
| 898 | metadata.reflection = ProMCHeader_MetaInt_reflection_;
|
---|
| 899 | return metadata;
|
---|
| 900 | }
|
---|
| 901 |
|
---|
| 902 |
|
---|
| 903 | // -------------------------------------------------------------------
|
---|
| 904 |
|
---|
| 905 | #ifndef _MSC_VER
|
---|
| 906 | const int ProMCHeader_MetaFloat::kKeyFieldNumber;
|
---|
| 907 | const int ProMCHeader_MetaFloat::kValueFieldNumber;
|
---|
| 908 | #endif // !_MSC_VER
|
---|
| 909 |
|
---|
| 910 | ProMCHeader_MetaFloat::ProMCHeader_MetaFloat()
|
---|
| 911 | : ::google::protobuf::Message() {
|
---|
| 912 | SharedCtor();
|
---|
| 913 | }
|
---|
| 914 |
|
---|
| 915 | void ProMCHeader_MetaFloat::InitAsDefaultInstance() {
|
---|
| 916 | }
|
---|
| 917 |
|
---|
| 918 | ProMCHeader_MetaFloat::ProMCHeader_MetaFloat(const ProMCHeader_MetaFloat& from)
|
---|
| 919 | : ::google::protobuf::Message() {
|
---|
| 920 | SharedCtor();
|
---|
| 921 | MergeFrom(from);
|
---|
| 922 | }
|
---|
| 923 |
|
---|
| 924 | void ProMCHeader_MetaFloat::SharedCtor() {
|
---|
| 925 | _cached_size_ = 0;
|
---|
| 926 | key_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
---|
| 927 | value_ = 0;
|
---|
| 928 | ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
---|
| 929 | }
|
---|
| 930 |
|
---|
| 931 | ProMCHeader_MetaFloat::~ProMCHeader_MetaFloat() {
|
---|
| 932 | SharedDtor();
|
---|
| 933 | }
|
---|
| 934 |
|
---|
| 935 | void ProMCHeader_MetaFloat::SharedDtor() {
|
---|
| 936 | if (key_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 937 | delete key_;
|
---|
| 938 | }
|
---|
| 939 | if (this != default_instance_) {
|
---|
| 940 | }
|
---|
| 941 | }
|
---|
| 942 |
|
---|
| 943 | void ProMCHeader_MetaFloat::SetCachedSize(int size) const {
|
---|
| 944 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
---|
| 945 | _cached_size_ = size;
|
---|
| 946 | GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
---|
| 947 | }
|
---|
| 948 | const ::google::protobuf::Descriptor* ProMCHeader_MetaFloat::descriptor() {
|
---|
| 949 | protobuf_AssignDescriptorsOnce();
|
---|
| 950 | return ProMCHeader_MetaFloat_descriptor_;
|
---|
| 951 | }
|
---|
| 952 |
|
---|
| 953 | const ProMCHeader_MetaFloat& ProMCHeader_MetaFloat::default_instance() {
|
---|
| 954 | if (default_instance_ == NULL) protobuf_AddDesc_ProMCHeader_2eproto();
|
---|
| 955 | return *default_instance_;
|
---|
| 956 | }
|
---|
| 957 |
|
---|
| 958 | ProMCHeader_MetaFloat* ProMCHeader_MetaFloat::default_instance_ = NULL;
|
---|
| 959 |
|
---|
| 960 | ProMCHeader_MetaFloat* ProMCHeader_MetaFloat::New() const {
|
---|
| 961 | return new ProMCHeader_MetaFloat;
|
---|
| 962 | }
|
---|
| 963 |
|
---|
| 964 | void ProMCHeader_MetaFloat::Clear() {
|
---|
| 965 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 966 | if (has_key()) {
|
---|
| 967 | if (key_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 968 | key_->clear();
|
---|
| 969 | }
|
---|
| 970 | }
|
---|
| 971 | value_ = 0;
|
---|
| 972 | }
|
---|
| 973 | ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
---|
| 974 | mutable_unknown_fields()->Clear();
|
---|
| 975 | }
|
---|
| 976 |
|
---|
| 977 | bool ProMCHeader_MetaFloat::MergePartialFromCodedStream(
|
---|
| 978 | ::google::protobuf::io::CodedInputStream* input) {
|
---|
| 979 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
|
---|
| 980 | ::google::protobuf::uint32 tag;
|
---|
| 981 | while ((tag = input->ReadTag()) != 0) {
|
---|
| 982 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
---|
| 983 | // required string key = 1;
|
---|
| 984 | case 1: {
|
---|
| 985 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 986 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 987 | DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
---|
| 988 | input, this->mutable_key()));
|
---|
| 989 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 990 | this->key().data(), this->key().length(),
|
---|
| 991 | ::google::protobuf::internal::WireFormat::PARSE);
|
---|
| 992 | } else {
|
---|
| 993 | goto handle_uninterpreted;
|
---|
| 994 | }
|
---|
| 995 | if (input->ExpectTag(17)) goto parse_value;
|
---|
| 996 | break;
|
---|
| 997 | }
|
---|
| 998 |
|
---|
| 999 | // required double value = 2;
|
---|
| 1000 | case 2: {
|
---|
| 1001 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1002 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1003 | parse_value:
|
---|
| 1004 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1005 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1006 | input, &value_)));
|
---|
| 1007 | set_has_value();
|
---|
| 1008 | } else {
|
---|
| 1009 | goto handle_uninterpreted;
|
---|
| 1010 | }
|
---|
| 1011 | if (input->ExpectAtEnd()) return true;
|
---|
| 1012 | break;
|
---|
| 1013 | }
|
---|
| 1014 |
|
---|
| 1015 | default: {
|
---|
| 1016 | handle_uninterpreted:
|
---|
| 1017 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1018 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
---|
| 1019 | return true;
|
---|
| 1020 | }
|
---|
| 1021 | DO_(::google::protobuf::internal::WireFormat::SkipField(
|
---|
| 1022 | input, tag, mutable_unknown_fields()));
|
---|
| 1023 | break;
|
---|
| 1024 | }
|
---|
| 1025 | }
|
---|
| 1026 | }
|
---|
| 1027 | return true;
|
---|
| 1028 | #undef DO_
|
---|
| 1029 | }
|
---|
| 1030 |
|
---|
| 1031 | void ProMCHeader_MetaFloat::SerializeWithCachedSizes(
|
---|
| 1032 | ::google::protobuf::io::CodedOutputStream* output) const {
|
---|
| 1033 | // required string key = 1;
|
---|
| 1034 | if (has_key()) {
|
---|
| 1035 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1036 | this->key().data(), this->key().length(),
|
---|
| 1037 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 1038 | ::google::protobuf::internal::WireFormatLite::WriteString(
|
---|
| 1039 | 1, this->key(), output);
|
---|
| 1040 | }
|
---|
| 1041 |
|
---|
| 1042 | // required double value = 2;
|
---|
| 1043 | if (has_value()) {
|
---|
| 1044 | ::google::protobuf::internal::WireFormatLite::WriteDouble(2, this->value(), output);
|
---|
| 1045 | }
|
---|
| 1046 |
|
---|
| 1047 | if (!unknown_fields().empty()) {
|
---|
| 1048 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
---|
| 1049 | unknown_fields(), output);
|
---|
| 1050 | }
|
---|
| 1051 | }
|
---|
| 1052 |
|
---|
| 1053 | ::google::protobuf::uint8* ProMCHeader_MetaFloat::SerializeWithCachedSizesToArray(
|
---|
| 1054 | ::google::protobuf::uint8* target) const {
|
---|
| 1055 | // required string key = 1;
|
---|
| 1056 | if (has_key()) {
|
---|
| 1057 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1058 | this->key().data(), this->key().length(),
|
---|
| 1059 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 1060 | target =
|
---|
| 1061 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
---|
| 1062 | 1, this->key(), target);
|
---|
| 1063 | }
|
---|
| 1064 |
|
---|
| 1065 | // required double value = 2;
|
---|
| 1066 | if (has_value()) {
|
---|
| 1067 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(2, this->value(), target);
|
---|
| 1068 | }
|
---|
| 1069 |
|
---|
| 1070 | if (!unknown_fields().empty()) {
|
---|
| 1071 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
---|
| 1072 | unknown_fields(), target);
|
---|
| 1073 | }
|
---|
| 1074 | return target;
|
---|
| 1075 | }
|
---|
| 1076 |
|
---|
| 1077 | int ProMCHeader_MetaFloat::ByteSize() const {
|
---|
| 1078 | int total_size = 0;
|
---|
| 1079 |
|
---|
| 1080 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 1081 | // required string key = 1;
|
---|
| 1082 | if (has_key()) {
|
---|
| 1083 | total_size += 1 +
|
---|
| 1084 | ::google::protobuf::internal::WireFormatLite::StringSize(
|
---|
| 1085 | this->key());
|
---|
| 1086 | }
|
---|
| 1087 |
|
---|
| 1088 | // required double value = 2;
|
---|
| 1089 | if (has_value()) {
|
---|
| 1090 | total_size += 1 + 8;
|
---|
| 1091 | }
|
---|
| 1092 |
|
---|
| 1093 | }
|
---|
| 1094 | if (!unknown_fields().empty()) {
|
---|
| 1095 | total_size +=
|
---|
| 1096 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
---|
| 1097 | unknown_fields());
|
---|
| 1098 | }
|
---|
| 1099 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
---|
| 1100 | _cached_size_ = total_size;
|
---|
| 1101 | GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
---|
| 1102 | return total_size;
|
---|
| 1103 | }
|
---|
| 1104 |
|
---|
| 1105 | void ProMCHeader_MetaFloat::MergeFrom(const ::google::protobuf::Message& from) {
|
---|
| 1106 | GOOGLE_CHECK_NE(&from, this);
|
---|
| 1107 | const ProMCHeader_MetaFloat* source =
|
---|
| 1108 | ::google::protobuf::internal::dynamic_cast_if_available<const ProMCHeader_MetaFloat*>(
|
---|
| 1109 | &from);
|
---|
| 1110 | if (source == NULL) {
|
---|
| 1111 | ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
---|
| 1112 | } else {
|
---|
| 1113 | MergeFrom(*source);
|
---|
| 1114 | }
|
---|
| 1115 | }
|
---|
| 1116 |
|
---|
| 1117 | void ProMCHeader_MetaFloat::MergeFrom(const ProMCHeader_MetaFloat& from) {
|
---|
| 1118 | GOOGLE_CHECK_NE(&from, this);
|
---|
| 1119 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 1120 | if (from.has_key()) {
|
---|
| 1121 | set_key(from.key());
|
---|
| 1122 | }
|
---|
| 1123 | if (from.has_value()) {
|
---|
| 1124 | set_value(from.value());
|
---|
| 1125 | }
|
---|
| 1126 | }
|
---|
| 1127 | mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
---|
| 1128 | }
|
---|
| 1129 |
|
---|
| 1130 | void ProMCHeader_MetaFloat::CopyFrom(const ::google::protobuf::Message& from) {
|
---|
| 1131 | if (&from == this) return;
|
---|
| 1132 | Clear();
|
---|
| 1133 | MergeFrom(from);
|
---|
| 1134 | }
|
---|
| 1135 |
|
---|
| 1136 | void ProMCHeader_MetaFloat::CopyFrom(const ProMCHeader_MetaFloat& from) {
|
---|
| 1137 | if (&from == this) return;
|
---|
| 1138 | Clear();
|
---|
| 1139 | MergeFrom(from);
|
---|
| 1140 | }
|
---|
| 1141 |
|
---|
| 1142 | bool ProMCHeader_MetaFloat::IsInitialized() const {
|
---|
| 1143 | if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
|
---|
| 1144 |
|
---|
| 1145 | return true;
|
---|
| 1146 | }
|
---|
| 1147 |
|
---|
| 1148 | void ProMCHeader_MetaFloat::Swap(ProMCHeader_MetaFloat* other) {
|
---|
| 1149 | if (other != this) {
|
---|
| 1150 | std::swap(key_, other->key_);
|
---|
| 1151 | std::swap(value_, other->value_);
|
---|
| 1152 | std::swap(_has_bits_[0], other->_has_bits_[0]);
|
---|
| 1153 | _unknown_fields_.Swap(&other->_unknown_fields_);
|
---|
| 1154 | std::swap(_cached_size_, other->_cached_size_);
|
---|
| 1155 | }
|
---|
| 1156 | }
|
---|
| 1157 |
|
---|
| 1158 | ::google::protobuf::Metadata ProMCHeader_MetaFloat::GetMetadata() const {
|
---|
| 1159 | protobuf_AssignDescriptorsOnce();
|
---|
| 1160 | ::google::protobuf::Metadata metadata;
|
---|
| 1161 | metadata.descriptor = ProMCHeader_MetaFloat_descriptor_;
|
---|
| 1162 | metadata.reflection = ProMCHeader_MetaFloat_reflection_;
|
---|
| 1163 | return metadata;
|
---|
| 1164 | }
|
---|
| 1165 |
|
---|
| 1166 |
|
---|
| 1167 | // -------------------------------------------------------------------
|
---|
| 1168 |
|
---|
| 1169 | #ifndef _MSC_VER
|
---|
| 1170 | const int ProMCHeader::kId1FieldNumber;
|
---|
| 1171 | const int ProMCHeader::kId2FieldNumber;
|
---|
| 1172 | const int ProMCHeader::kPdfId1FieldNumber;
|
---|
| 1173 | const int ProMCHeader::kPdfId2FieldNumber;
|
---|
| 1174 | const int ProMCHeader::kX1FieldNumber;
|
---|
| 1175 | const int ProMCHeader::kX2FieldNumber;
|
---|
| 1176 | const int ProMCHeader::kScalepdfFieldNumber;
|
---|
| 1177 | const int ProMCHeader::kPdf1FieldNumber;
|
---|
| 1178 | const int ProMCHeader::kPdf2FieldNumber;
|
---|
| 1179 | const int ProMCHeader::kECMFieldNumber;
|
---|
| 1180 | const int ProMCHeader::kSFieldNumber;
|
---|
| 1181 | const int ProMCHeader::kNameFieldNumber;
|
---|
| 1182 | const int ProMCHeader::kCodeFieldNumber;
|
---|
| 1183 | const int ProMCHeader::kCrossSectionFieldNumber;
|
---|
| 1184 | const int ProMCHeader::kCrossSectionErrorFieldNumber;
|
---|
| 1185 | const int ProMCHeader::kMomentumUnitFieldNumber;
|
---|
| 1186 | const int ProMCHeader::kLengthUnitFieldNumber;
|
---|
| 1187 | const int ProMCHeader::kNameMomentumUnitFieldNumber;
|
---|
| 1188 | const int ProMCHeader::kNameLengthUnitFieldNumber;
|
---|
| 1189 | const int ProMCHeader::kWeightFieldNumber;
|
---|
| 1190 | const int ProMCHeader::kRequestedEventsFieldNumber;
|
---|
| 1191 | const int ProMCHeader::kParticleDataFieldNumber;
|
---|
| 1192 | const int ProMCHeader::kMetaIntFieldNumber;
|
---|
| 1193 | const int ProMCHeader::kMetaFloatFieldNumber;
|
---|
| 1194 | #endif // !_MSC_VER
|
---|
| 1195 |
|
---|
| 1196 | ProMCHeader::ProMCHeader()
|
---|
| 1197 | : ::google::protobuf::Message() {
|
---|
| 1198 | SharedCtor();
|
---|
| 1199 | }
|
---|
| 1200 |
|
---|
| 1201 | void ProMCHeader::InitAsDefaultInstance() {
|
---|
| 1202 | }
|
---|
| 1203 |
|
---|
| 1204 | ProMCHeader::ProMCHeader(const ProMCHeader& from)
|
---|
| 1205 | : ::google::protobuf::Message() {
|
---|
| 1206 | SharedCtor();
|
---|
| 1207 | MergeFrom(from);
|
---|
| 1208 | }
|
---|
| 1209 |
|
---|
| 1210 | void ProMCHeader::SharedCtor() {
|
---|
| 1211 | _cached_size_ = 0;
|
---|
| 1212 | id1_ = 0;
|
---|
| 1213 | id2_ = 0;
|
---|
| 1214 | pdf_id1_ = 0;
|
---|
| 1215 | pdf_id2_ = 0;
|
---|
| 1216 | x1_ = 0;
|
---|
| 1217 | x2_ = 0;
|
---|
| 1218 | scalepdf_ = 0;
|
---|
| 1219 | pdf1_ = 0;
|
---|
| 1220 | pdf2_ = 0;
|
---|
| 1221 | ecm_ = 0;
|
---|
| 1222 | s_ = 0;
|
---|
| 1223 | name_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
---|
| 1224 | code_ = 0;
|
---|
| 1225 | cross_section_ = 0;
|
---|
| 1226 | cross_section_error_ = 0;
|
---|
| 1227 | momentumunit_ = 0;
|
---|
| 1228 | lengthunit_ = 0;
|
---|
| 1229 | namemomentumunit_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
---|
| 1230 | namelengthunit_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
|
---|
| 1231 | weight_ = 0;
|
---|
| 1232 | requested_events_ = 0;
|
---|
| 1233 | ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
---|
| 1234 | }
|
---|
| 1235 |
|
---|
| 1236 | ProMCHeader::~ProMCHeader() {
|
---|
| 1237 | SharedDtor();
|
---|
| 1238 | }
|
---|
| 1239 |
|
---|
| 1240 | void ProMCHeader::SharedDtor() {
|
---|
| 1241 | if (name_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 1242 | delete name_;
|
---|
| 1243 | }
|
---|
| 1244 | if (namemomentumunit_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 1245 | delete namemomentumunit_;
|
---|
| 1246 | }
|
---|
| 1247 | if (namelengthunit_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 1248 | delete namelengthunit_;
|
---|
| 1249 | }
|
---|
| 1250 | if (this != default_instance_) {
|
---|
| 1251 | }
|
---|
| 1252 | }
|
---|
| 1253 |
|
---|
| 1254 | void ProMCHeader::SetCachedSize(int size) const {
|
---|
| 1255 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
---|
| 1256 | _cached_size_ = size;
|
---|
| 1257 | GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
---|
| 1258 | }
|
---|
| 1259 | const ::google::protobuf::Descriptor* ProMCHeader::descriptor() {
|
---|
| 1260 | protobuf_AssignDescriptorsOnce();
|
---|
| 1261 | return ProMCHeader_descriptor_;
|
---|
| 1262 | }
|
---|
| 1263 |
|
---|
| 1264 | const ProMCHeader& ProMCHeader::default_instance() {
|
---|
| 1265 | if (default_instance_ == NULL) protobuf_AddDesc_ProMCHeader_2eproto();
|
---|
| 1266 | return *default_instance_;
|
---|
| 1267 | }
|
---|
| 1268 |
|
---|
| 1269 | ProMCHeader* ProMCHeader::default_instance_ = NULL;
|
---|
| 1270 |
|
---|
| 1271 | ProMCHeader* ProMCHeader::New() const {
|
---|
| 1272 | return new ProMCHeader;
|
---|
| 1273 | }
|
---|
| 1274 |
|
---|
| 1275 | void ProMCHeader::Clear() {
|
---|
| 1276 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 1277 | id1_ = 0;
|
---|
| 1278 | id2_ = 0;
|
---|
| 1279 | pdf_id1_ = 0;
|
---|
| 1280 | pdf_id2_ = 0;
|
---|
| 1281 | x1_ = 0;
|
---|
| 1282 | x2_ = 0;
|
---|
| 1283 | scalepdf_ = 0;
|
---|
| 1284 | pdf1_ = 0;
|
---|
| 1285 | }
|
---|
| 1286 | if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
---|
| 1287 | pdf2_ = 0;
|
---|
| 1288 | ecm_ = 0;
|
---|
| 1289 | s_ = 0;
|
---|
| 1290 | if (has_name()) {
|
---|
| 1291 | if (name_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 1292 | name_->clear();
|
---|
| 1293 | }
|
---|
| 1294 | }
|
---|
| 1295 | code_ = 0;
|
---|
| 1296 | cross_section_ = 0;
|
---|
| 1297 | cross_section_error_ = 0;
|
---|
| 1298 | momentumunit_ = 0;
|
---|
| 1299 | }
|
---|
| 1300 | if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
|
---|
| 1301 | lengthunit_ = 0;
|
---|
| 1302 | if (has_namemomentumunit()) {
|
---|
| 1303 | if (namemomentumunit_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 1304 | namemomentumunit_->clear();
|
---|
| 1305 | }
|
---|
| 1306 | }
|
---|
| 1307 | if (has_namelengthunit()) {
|
---|
| 1308 | if (namelengthunit_ != &::google::protobuf::internal::kEmptyString) {
|
---|
| 1309 | namelengthunit_->clear();
|
---|
| 1310 | }
|
---|
| 1311 | }
|
---|
| 1312 | weight_ = 0;
|
---|
| 1313 | requested_events_ = 0;
|
---|
| 1314 | }
|
---|
| 1315 | particledata_.Clear();
|
---|
| 1316 | metaint_.Clear();
|
---|
| 1317 | metafloat_.Clear();
|
---|
| 1318 | ::memset(_has_bits_, 0, sizeof(_has_bits_));
|
---|
| 1319 | mutable_unknown_fields()->Clear();
|
---|
| 1320 | }
|
---|
| 1321 |
|
---|
| 1322 | bool ProMCHeader::MergePartialFromCodedStream(
|
---|
| 1323 | ::google::protobuf::io::CodedInputStream* input) {
|
---|
| 1324 | #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
|
---|
| 1325 | ::google::protobuf::uint32 tag;
|
---|
| 1326 | while ((tag = input->ReadTag()) != 0) {
|
---|
| 1327 | switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
|
---|
| 1328 | // optional int32 id1 = 1;
|
---|
| 1329 | case 1: {
|
---|
| 1330 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1331 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1332 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1333 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1334 | input, &id1_)));
|
---|
| 1335 | set_has_id1();
|
---|
| 1336 | } else {
|
---|
| 1337 | goto handle_uninterpreted;
|
---|
| 1338 | }
|
---|
| 1339 | if (input->ExpectTag(16)) goto parse_id2;
|
---|
| 1340 | break;
|
---|
| 1341 | }
|
---|
| 1342 |
|
---|
| 1343 | // optional int32 id2 = 2;
|
---|
| 1344 | case 2: {
|
---|
| 1345 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1346 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1347 | parse_id2:
|
---|
| 1348 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1349 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1350 | input, &id2_)));
|
---|
| 1351 | set_has_id2();
|
---|
| 1352 | } else {
|
---|
| 1353 | goto handle_uninterpreted;
|
---|
| 1354 | }
|
---|
| 1355 | if (input->ExpectTag(24)) goto parse_pdf_id1;
|
---|
| 1356 | break;
|
---|
| 1357 | }
|
---|
| 1358 |
|
---|
| 1359 | // optional int32 pdf_id1 = 3;
|
---|
| 1360 | case 3: {
|
---|
| 1361 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1362 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1363 | parse_pdf_id1:
|
---|
| 1364 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1365 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1366 | input, &pdf_id1_)));
|
---|
| 1367 | set_has_pdf_id1();
|
---|
| 1368 | } else {
|
---|
| 1369 | goto handle_uninterpreted;
|
---|
| 1370 | }
|
---|
| 1371 | if (input->ExpectTag(32)) goto parse_pdf_id2;
|
---|
| 1372 | break;
|
---|
| 1373 | }
|
---|
| 1374 |
|
---|
| 1375 | // optional int32 pdf_id2 = 4;
|
---|
| 1376 | case 4: {
|
---|
| 1377 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1378 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1379 | parse_pdf_id2:
|
---|
| 1380 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1381 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1382 | input, &pdf_id2_)));
|
---|
| 1383 | set_has_pdf_id2();
|
---|
| 1384 | } else {
|
---|
| 1385 | goto handle_uninterpreted;
|
---|
| 1386 | }
|
---|
| 1387 | if (input->ExpectTag(41)) goto parse_x1;
|
---|
| 1388 | break;
|
---|
| 1389 | }
|
---|
| 1390 |
|
---|
| 1391 | // optional double x1 = 5;
|
---|
| 1392 | case 5: {
|
---|
| 1393 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1394 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1395 | parse_x1:
|
---|
| 1396 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1397 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1398 | input, &x1_)));
|
---|
| 1399 | set_has_x1();
|
---|
| 1400 | } else {
|
---|
| 1401 | goto handle_uninterpreted;
|
---|
| 1402 | }
|
---|
| 1403 | if (input->ExpectTag(49)) goto parse_x2;
|
---|
| 1404 | break;
|
---|
| 1405 | }
|
---|
| 1406 |
|
---|
| 1407 | // optional double x2 = 6;
|
---|
| 1408 | case 6: {
|
---|
| 1409 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1410 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1411 | parse_x2:
|
---|
| 1412 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1413 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1414 | input, &x2_)));
|
---|
| 1415 | set_has_x2();
|
---|
| 1416 | } else {
|
---|
| 1417 | goto handle_uninterpreted;
|
---|
| 1418 | }
|
---|
| 1419 | if (input->ExpectTag(57)) goto parse_scalepdf;
|
---|
| 1420 | break;
|
---|
| 1421 | }
|
---|
| 1422 |
|
---|
| 1423 | // optional double scalepdf = 7;
|
---|
| 1424 | case 7: {
|
---|
| 1425 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1426 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1427 | parse_scalepdf:
|
---|
| 1428 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1429 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1430 | input, &scalepdf_)));
|
---|
| 1431 | set_has_scalepdf();
|
---|
| 1432 | } else {
|
---|
| 1433 | goto handle_uninterpreted;
|
---|
| 1434 | }
|
---|
| 1435 | if (input->ExpectTag(64)) goto parse_pdf1;
|
---|
| 1436 | break;
|
---|
| 1437 | }
|
---|
| 1438 |
|
---|
| 1439 | // optional int32 pdf1 = 8;
|
---|
| 1440 | case 8: {
|
---|
| 1441 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1442 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1443 | parse_pdf1:
|
---|
| 1444 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1445 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1446 | input, &pdf1_)));
|
---|
| 1447 | set_has_pdf1();
|
---|
| 1448 | } else {
|
---|
| 1449 | goto handle_uninterpreted;
|
---|
| 1450 | }
|
---|
| 1451 | if (input->ExpectTag(72)) goto parse_pdf2;
|
---|
| 1452 | break;
|
---|
| 1453 | }
|
---|
| 1454 |
|
---|
| 1455 | // optional int32 pdf2 = 9;
|
---|
| 1456 | case 9: {
|
---|
| 1457 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1458 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1459 | parse_pdf2:
|
---|
| 1460 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1461 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1462 | input, &pdf2_)));
|
---|
| 1463 | set_has_pdf2();
|
---|
| 1464 | } else {
|
---|
| 1465 | goto handle_uninterpreted;
|
---|
| 1466 | }
|
---|
| 1467 | if (input->ExpectTag(81)) goto parse_eCM;
|
---|
| 1468 | break;
|
---|
| 1469 | }
|
---|
| 1470 |
|
---|
| 1471 | // optional double eCM = 10;
|
---|
| 1472 | case 10: {
|
---|
| 1473 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1474 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1475 | parse_eCM:
|
---|
| 1476 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1477 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1478 | input, &ecm_)));
|
---|
| 1479 | set_has_ecm();
|
---|
| 1480 | } else {
|
---|
| 1481 | goto handle_uninterpreted;
|
---|
| 1482 | }
|
---|
| 1483 | if (input->ExpectTag(89)) goto parse_s;
|
---|
| 1484 | break;
|
---|
| 1485 | }
|
---|
| 1486 |
|
---|
| 1487 | // optional double s = 11;
|
---|
| 1488 | case 11: {
|
---|
| 1489 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1490 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1491 | parse_s:
|
---|
| 1492 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1493 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1494 | input, &s_)));
|
---|
| 1495 | set_has_s();
|
---|
| 1496 | } else {
|
---|
| 1497 | goto handle_uninterpreted;
|
---|
| 1498 | }
|
---|
| 1499 | if (input->ExpectTag(98)) goto parse_name;
|
---|
| 1500 | break;
|
---|
| 1501 | }
|
---|
| 1502 |
|
---|
| 1503 | // optional string name = 12;
|
---|
| 1504 | case 12: {
|
---|
| 1505 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1506 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 1507 | parse_name:
|
---|
| 1508 | DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
---|
| 1509 | input, this->mutable_name()));
|
---|
| 1510 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1511 | this->name().data(), this->name().length(),
|
---|
| 1512 | ::google::protobuf::internal::WireFormat::PARSE);
|
---|
| 1513 | } else {
|
---|
| 1514 | goto handle_uninterpreted;
|
---|
| 1515 | }
|
---|
| 1516 | if (input->ExpectTag(104)) goto parse_code;
|
---|
| 1517 | break;
|
---|
| 1518 | }
|
---|
| 1519 |
|
---|
| 1520 | // optional int32 code = 13;
|
---|
| 1521 | case 13: {
|
---|
| 1522 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1523 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1524 | parse_code:
|
---|
| 1525 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1526 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1527 | input, &code_)));
|
---|
| 1528 | set_has_code();
|
---|
| 1529 | } else {
|
---|
| 1530 | goto handle_uninterpreted;
|
---|
| 1531 | }
|
---|
| 1532 | if (input->ExpectTag(113)) goto parse_cross_section;
|
---|
| 1533 | break;
|
---|
| 1534 | }
|
---|
| 1535 |
|
---|
| 1536 | // optional double cross_section = 14;
|
---|
| 1537 | case 14: {
|
---|
| 1538 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1539 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1540 | parse_cross_section:
|
---|
| 1541 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1542 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1543 | input, &cross_section_)));
|
---|
| 1544 | set_has_cross_section();
|
---|
| 1545 | } else {
|
---|
| 1546 | goto handle_uninterpreted;
|
---|
| 1547 | }
|
---|
| 1548 | if (input->ExpectTag(121)) goto parse_cross_section_error;
|
---|
| 1549 | break;
|
---|
| 1550 | }
|
---|
| 1551 |
|
---|
| 1552 | // optional double cross_section_error = 15;
|
---|
| 1553 | case 15: {
|
---|
| 1554 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1555 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1556 | parse_cross_section_error:
|
---|
| 1557 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1558 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1559 | input, &cross_section_error_)));
|
---|
| 1560 | set_has_cross_section_error();
|
---|
| 1561 | } else {
|
---|
| 1562 | goto handle_uninterpreted;
|
---|
| 1563 | }
|
---|
| 1564 | if (input->ExpectTag(128)) goto parse_MomentumUnit;
|
---|
| 1565 | break;
|
---|
| 1566 | }
|
---|
| 1567 |
|
---|
| 1568 | // optional int32 MomentumUnit = 16;
|
---|
| 1569 | case 16: {
|
---|
| 1570 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1571 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1572 | parse_MomentumUnit:
|
---|
| 1573 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1574 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1575 | input, &momentumunit_)));
|
---|
| 1576 | set_has_momentumunit();
|
---|
| 1577 | } else {
|
---|
| 1578 | goto handle_uninterpreted;
|
---|
| 1579 | }
|
---|
| 1580 | if (input->ExpectTag(136)) goto parse_LengthUnit;
|
---|
| 1581 | break;
|
---|
| 1582 | }
|
---|
| 1583 |
|
---|
| 1584 | // optional int32 LengthUnit = 17;
|
---|
| 1585 | case 17: {
|
---|
| 1586 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1587 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
|
---|
| 1588 | parse_LengthUnit:
|
---|
| 1589 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1590 | ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
|
---|
| 1591 | input, &lengthunit_)));
|
---|
| 1592 | set_has_lengthunit();
|
---|
| 1593 | } else {
|
---|
| 1594 | goto handle_uninterpreted;
|
---|
| 1595 | }
|
---|
| 1596 | if (input->ExpectTag(146)) goto parse_NameMomentumUnit;
|
---|
| 1597 | break;
|
---|
| 1598 | }
|
---|
| 1599 |
|
---|
| 1600 | // optional string NameMomentumUnit = 18;
|
---|
| 1601 | case 18: {
|
---|
| 1602 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1603 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 1604 | parse_NameMomentumUnit:
|
---|
| 1605 | DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
---|
| 1606 | input, this->mutable_namemomentumunit()));
|
---|
| 1607 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1608 | this->namemomentumunit().data(), this->namemomentumunit().length(),
|
---|
| 1609 | ::google::protobuf::internal::WireFormat::PARSE);
|
---|
| 1610 | } else {
|
---|
| 1611 | goto handle_uninterpreted;
|
---|
| 1612 | }
|
---|
| 1613 | if (input->ExpectTag(154)) goto parse_NameLengthUnit;
|
---|
| 1614 | break;
|
---|
| 1615 | }
|
---|
| 1616 |
|
---|
| 1617 | // optional string NameLengthUnit = 19;
|
---|
| 1618 | case 19: {
|
---|
| 1619 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1620 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 1621 | parse_NameLengthUnit:
|
---|
| 1622 | DO_(::google::protobuf::internal::WireFormatLite::ReadString(
|
---|
| 1623 | input, this->mutable_namelengthunit()));
|
---|
| 1624 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1625 | this->namelengthunit().data(), this->namelengthunit().length(),
|
---|
| 1626 | ::google::protobuf::internal::WireFormat::PARSE);
|
---|
| 1627 | } else {
|
---|
| 1628 | goto handle_uninterpreted;
|
---|
| 1629 | }
|
---|
| 1630 | if (input->ExpectTag(161)) goto parse_weight;
|
---|
| 1631 | break;
|
---|
| 1632 | }
|
---|
| 1633 |
|
---|
| 1634 | // optional double weight = 20;
|
---|
| 1635 | case 20: {
|
---|
| 1636 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1637 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1638 | parse_weight:
|
---|
| 1639 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1640 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1641 | input, &weight_)));
|
---|
| 1642 | set_has_weight();
|
---|
| 1643 | } else {
|
---|
| 1644 | goto handle_uninterpreted;
|
---|
| 1645 | }
|
---|
| 1646 | if (input->ExpectTag(169)) goto parse_requested_events;
|
---|
| 1647 | break;
|
---|
| 1648 | }
|
---|
| 1649 |
|
---|
| 1650 | // optional double requested_events = 21;
|
---|
| 1651 | case 21: {
|
---|
| 1652 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1653 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_FIXED64) {
|
---|
| 1654 | parse_requested_events:
|
---|
| 1655 | DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
|
---|
| 1656 | double, ::google::protobuf::internal::WireFormatLite::TYPE_DOUBLE>(
|
---|
| 1657 | input, &requested_events_)));
|
---|
| 1658 | set_has_requested_events();
|
---|
| 1659 | } else {
|
---|
| 1660 | goto handle_uninterpreted;
|
---|
| 1661 | }
|
---|
| 1662 | if (input->ExpectTag(242)) goto parse_particleData;
|
---|
| 1663 | break;
|
---|
| 1664 | }
|
---|
| 1665 |
|
---|
| 1666 | // repeated .promc.ProMCHeader.ParticleData particleData = 30;
|
---|
| 1667 | case 30: {
|
---|
| 1668 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1669 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 1670 | parse_particleData:
|
---|
| 1671 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
---|
| 1672 | input, add_particledata()));
|
---|
| 1673 | } else {
|
---|
| 1674 | goto handle_uninterpreted;
|
---|
| 1675 | }
|
---|
| 1676 | if (input->ExpectTag(242)) goto parse_particleData;
|
---|
| 1677 | if (input->ExpectTag(250)) goto parse_metaInt;
|
---|
| 1678 | break;
|
---|
| 1679 | }
|
---|
| 1680 |
|
---|
| 1681 | // repeated .promc.ProMCHeader.MetaInt metaInt = 31;
|
---|
| 1682 | case 31: {
|
---|
| 1683 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1684 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 1685 | parse_metaInt:
|
---|
| 1686 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
---|
| 1687 | input, add_metaint()));
|
---|
| 1688 | } else {
|
---|
| 1689 | goto handle_uninterpreted;
|
---|
| 1690 | }
|
---|
| 1691 | if (input->ExpectTag(250)) goto parse_metaInt;
|
---|
| 1692 | if (input->ExpectTag(258)) goto parse_metaFloat;
|
---|
| 1693 | break;
|
---|
| 1694 | }
|
---|
| 1695 |
|
---|
| 1696 | // repeated .promc.ProMCHeader.MetaFloat metaFloat = 32;
|
---|
| 1697 | case 32: {
|
---|
| 1698 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1699 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
|
---|
| 1700 | parse_metaFloat:
|
---|
| 1701 | DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
|
---|
| 1702 | input, add_metafloat()));
|
---|
| 1703 | } else {
|
---|
| 1704 | goto handle_uninterpreted;
|
---|
| 1705 | }
|
---|
| 1706 | if (input->ExpectTag(258)) goto parse_metaFloat;
|
---|
| 1707 | if (input->ExpectAtEnd()) return true;
|
---|
| 1708 | break;
|
---|
| 1709 | }
|
---|
| 1710 |
|
---|
| 1711 | default: {
|
---|
| 1712 | handle_uninterpreted:
|
---|
| 1713 | if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
|
---|
| 1714 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
|
---|
| 1715 | return true;
|
---|
| 1716 | }
|
---|
| 1717 | DO_(::google::protobuf::internal::WireFormat::SkipField(
|
---|
| 1718 | input, tag, mutable_unknown_fields()));
|
---|
| 1719 | break;
|
---|
| 1720 | }
|
---|
| 1721 | }
|
---|
| 1722 | }
|
---|
| 1723 | return true;
|
---|
| 1724 | #undef DO_
|
---|
| 1725 | }
|
---|
| 1726 |
|
---|
| 1727 | void ProMCHeader::SerializeWithCachedSizes(
|
---|
| 1728 | ::google::protobuf::io::CodedOutputStream* output) const {
|
---|
| 1729 | // optional int32 id1 = 1;
|
---|
| 1730 | if (has_id1()) {
|
---|
| 1731 | ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->id1(), output);
|
---|
| 1732 | }
|
---|
| 1733 |
|
---|
| 1734 | // optional int32 id2 = 2;
|
---|
| 1735 | if (has_id2()) {
|
---|
| 1736 | ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->id2(), output);
|
---|
| 1737 | }
|
---|
| 1738 |
|
---|
| 1739 | // optional int32 pdf_id1 = 3;
|
---|
| 1740 | if (has_pdf_id1()) {
|
---|
| 1741 | ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->pdf_id1(), output);
|
---|
| 1742 | }
|
---|
| 1743 |
|
---|
| 1744 | // optional int32 pdf_id2 = 4;
|
---|
| 1745 | if (has_pdf_id2()) {
|
---|
| 1746 | ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->pdf_id2(), output);
|
---|
| 1747 | }
|
---|
| 1748 |
|
---|
| 1749 | // optional double x1 = 5;
|
---|
| 1750 | if (has_x1()) {
|
---|
| 1751 | ::google::protobuf::internal::WireFormatLite::WriteDouble(5, this->x1(), output);
|
---|
| 1752 | }
|
---|
| 1753 |
|
---|
| 1754 | // optional double x2 = 6;
|
---|
| 1755 | if (has_x2()) {
|
---|
| 1756 | ::google::protobuf::internal::WireFormatLite::WriteDouble(6, this->x2(), output);
|
---|
| 1757 | }
|
---|
| 1758 |
|
---|
| 1759 | // optional double scalepdf = 7;
|
---|
| 1760 | if (has_scalepdf()) {
|
---|
| 1761 | ::google::protobuf::internal::WireFormatLite::WriteDouble(7, this->scalepdf(), output);
|
---|
| 1762 | }
|
---|
| 1763 |
|
---|
| 1764 | // optional int32 pdf1 = 8;
|
---|
| 1765 | if (has_pdf1()) {
|
---|
| 1766 | ::google::protobuf::internal::WireFormatLite::WriteInt32(8, this->pdf1(), output);
|
---|
| 1767 | }
|
---|
| 1768 |
|
---|
| 1769 | // optional int32 pdf2 = 9;
|
---|
| 1770 | if (has_pdf2()) {
|
---|
| 1771 | ::google::protobuf::internal::WireFormatLite::WriteInt32(9, this->pdf2(), output);
|
---|
| 1772 | }
|
---|
| 1773 |
|
---|
| 1774 | // optional double eCM = 10;
|
---|
| 1775 | if (has_ecm()) {
|
---|
| 1776 | ::google::protobuf::internal::WireFormatLite::WriteDouble(10, this->ecm(), output);
|
---|
| 1777 | }
|
---|
| 1778 |
|
---|
| 1779 | // optional double s = 11;
|
---|
| 1780 | if (has_s()) {
|
---|
| 1781 | ::google::protobuf::internal::WireFormatLite::WriteDouble(11, this->s(), output);
|
---|
| 1782 | }
|
---|
| 1783 |
|
---|
| 1784 | // optional string name = 12;
|
---|
| 1785 | if (has_name()) {
|
---|
| 1786 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1787 | this->name().data(), this->name().length(),
|
---|
| 1788 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 1789 | ::google::protobuf::internal::WireFormatLite::WriteString(
|
---|
| 1790 | 12, this->name(), output);
|
---|
| 1791 | }
|
---|
| 1792 |
|
---|
| 1793 | // optional int32 code = 13;
|
---|
| 1794 | if (has_code()) {
|
---|
| 1795 | ::google::protobuf::internal::WireFormatLite::WriteInt32(13, this->code(), output);
|
---|
| 1796 | }
|
---|
| 1797 |
|
---|
| 1798 | // optional double cross_section = 14;
|
---|
| 1799 | if (has_cross_section()) {
|
---|
| 1800 | ::google::protobuf::internal::WireFormatLite::WriteDouble(14, this->cross_section(), output);
|
---|
| 1801 | }
|
---|
| 1802 |
|
---|
| 1803 | // optional double cross_section_error = 15;
|
---|
| 1804 | if (has_cross_section_error()) {
|
---|
| 1805 | ::google::protobuf::internal::WireFormatLite::WriteDouble(15, this->cross_section_error(), output);
|
---|
| 1806 | }
|
---|
| 1807 |
|
---|
| 1808 | // optional int32 MomentumUnit = 16;
|
---|
| 1809 | if (has_momentumunit()) {
|
---|
| 1810 | ::google::protobuf::internal::WireFormatLite::WriteInt32(16, this->momentumunit(), output);
|
---|
| 1811 | }
|
---|
| 1812 |
|
---|
| 1813 | // optional int32 LengthUnit = 17;
|
---|
| 1814 | if (has_lengthunit()) {
|
---|
| 1815 | ::google::protobuf::internal::WireFormatLite::WriteInt32(17, this->lengthunit(), output);
|
---|
| 1816 | }
|
---|
| 1817 |
|
---|
| 1818 | // optional string NameMomentumUnit = 18;
|
---|
| 1819 | if (has_namemomentumunit()) {
|
---|
| 1820 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1821 | this->namemomentumunit().data(), this->namemomentumunit().length(),
|
---|
| 1822 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 1823 | ::google::protobuf::internal::WireFormatLite::WriteString(
|
---|
| 1824 | 18, this->namemomentumunit(), output);
|
---|
| 1825 | }
|
---|
| 1826 |
|
---|
| 1827 | // optional string NameLengthUnit = 19;
|
---|
| 1828 | if (has_namelengthunit()) {
|
---|
| 1829 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1830 | this->namelengthunit().data(), this->namelengthunit().length(),
|
---|
| 1831 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 1832 | ::google::protobuf::internal::WireFormatLite::WriteString(
|
---|
| 1833 | 19, this->namelengthunit(), output);
|
---|
| 1834 | }
|
---|
| 1835 |
|
---|
| 1836 | // optional double weight = 20;
|
---|
| 1837 | if (has_weight()) {
|
---|
| 1838 | ::google::protobuf::internal::WireFormatLite::WriteDouble(20, this->weight(), output);
|
---|
| 1839 | }
|
---|
| 1840 |
|
---|
| 1841 | // optional double requested_events = 21;
|
---|
| 1842 | if (has_requested_events()) {
|
---|
| 1843 | ::google::protobuf::internal::WireFormatLite::WriteDouble(21, this->requested_events(), output);
|
---|
| 1844 | }
|
---|
| 1845 |
|
---|
| 1846 | // repeated .promc.ProMCHeader.ParticleData particleData = 30;
|
---|
| 1847 | for (int i = 0; i < this->particledata_size(); i++) {
|
---|
| 1848 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
---|
| 1849 | 30, this->particledata(i), output);
|
---|
| 1850 | }
|
---|
| 1851 |
|
---|
| 1852 | // repeated .promc.ProMCHeader.MetaInt metaInt = 31;
|
---|
| 1853 | for (int i = 0; i < this->metaint_size(); i++) {
|
---|
| 1854 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
---|
| 1855 | 31, this->metaint(i), output);
|
---|
| 1856 | }
|
---|
| 1857 |
|
---|
| 1858 | // repeated .promc.ProMCHeader.MetaFloat metaFloat = 32;
|
---|
| 1859 | for (int i = 0; i < this->metafloat_size(); i++) {
|
---|
| 1860 | ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
|
---|
| 1861 | 32, this->metafloat(i), output);
|
---|
| 1862 | }
|
---|
| 1863 |
|
---|
| 1864 | if (!unknown_fields().empty()) {
|
---|
| 1865 | ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
|
---|
| 1866 | unknown_fields(), output);
|
---|
| 1867 | }
|
---|
| 1868 | }
|
---|
| 1869 |
|
---|
| 1870 | ::google::protobuf::uint8* ProMCHeader::SerializeWithCachedSizesToArray(
|
---|
| 1871 | ::google::protobuf::uint8* target) const {
|
---|
| 1872 | // optional int32 id1 = 1;
|
---|
| 1873 | if (has_id1()) {
|
---|
| 1874 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(1, this->id1(), target);
|
---|
| 1875 | }
|
---|
| 1876 |
|
---|
| 1877 | // optional int32 id2 = 2;
|
---|
| 1878 | if (has_id2()) {
|
---|
| 1879 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(2, this->id2(), target);
|
---|
| 1880 | }
|
---|
| 1881 |
|
---|
| 1882 | // optional int32 pdf_id1 = 3;
|
---|
| 1883 | if (has_pdf_id1()) {
|
---|
| 1884 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(3, this->pdf_id1(), target);
|
---|
| 1885 | }
|
---|
| 1886 |
|
---|
| 1887 | // optional int32 pdf_id2 = 4;
|
---|
| 1888 | if (has_pdf_id2()) {
|
---|
| 1889 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(4, this->pdf_id2(), target);
|
---|
| 1890 | }
|
---|
| 1891 |
|
---|
| 1892 | // optional double x1 = 5;
|
---|
| 1893 | if (has_x1()) {
|
---|
| 1894 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(5, this->x1(), target);
|
---|
| 1895 | }
|
---|
| 1896 |
|
---|
| 1897 | // optional double x2 = 6;
|
---|
| 1898 | if (has_x2()) {
|
---|
| 1899 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(6, this->x2(), target);
|
---|
| 1900 | }
|
---|
| 1901 |
|
---|
| 1902 | // optional double scalepdf = 7;
|
---|
| 1903 | if (has_scalepdf()) {
|
---|
| 1904 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(7, this->scalepdf(), target);
|
---|
| 1905 | }
|
---|
| 1906 |
|
---|
| 1907 | // optional int32 pdf1 = 8;
|
---|
| 1908 | if (has_pdf1()) {
|
---|
| 1909 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(8, this->pdf1(), target);
|
---|
| 1910 | }
|
---|
| 1911 |
|
---|
| 1912 | // optional int32 pdf2 = 9;
|
---|
| 1913 | if (has_pdf2()) {
|
---|
| 1914 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(9, this->pdf2(), target);
|
---|
| 1915 | }
|
---|
| 1916 |
|
---|
| 1917 | // optional double eCM = 10;
|
---|
| 1918 | if (has_ecm()) {
|
---|
| 1919 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(10, this->ecm(), target);
|
---|
| 1920 | }
|
---|
| 1921 |
|
---|
| 1922 | // optional double s = 11;
|
---|
| 1923 | if (has_s()) {
|
---|
| 1924 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(11, this->s(), target);
|
---|
| 1925 | }
|
---|
| 1926 |
|
---|
| 1927 | // optional string name = 12;
|
---|
| 1928 | if (has_name()) {
|
---|
| 1929 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1930 | this->name().data(), this->name().length(),
|
---|
| 1931 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 1932 | target =
|
---|
| 1933 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
---|
| 1934 | 12, this->name(), target);
|
---|
| 1935 | }
|
---|
| 1936 |
|
---|
| 1937 | // optional int32 code = 13;
|
---|
| 1938 | if (has_code()) {
|
---|
| 1939 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(13, this->code(), target);
|
---|
| 1940 | }
|
---|
| 1941 |
|
---|
| 1942 | // optional double cross_section = 14;
|
---|
| 1943 | if (has_cross_section()) {
|
---|
| 1944 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(14, this->cross_section(), target);
|
---|
| 1945 | }
|
---|
| 1946 |
|
---|
| 1947 | // optional double cross_section_error = 15;
|
---|
| 1948 | if (has_cross_section_error()) {
|
---|
| 1949 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(15, this->cross_section_error(), target);
|
---|
| 1950 | }
|
---|
| 1951 |
|
---|
| 1952 | // optional int32 MomentumUnit = 16;
|
---|
| 1953 | if (has_momentumunit()) {
|
---|
| 1954 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(16, this->momentumunit(), target);
|
---|
| 1955 | }
|
---|
| 1956 |
|
---|
| 1957 | // optional int32 LengthUnit = 17;
|
---|
| 1958 | if (has_lengthunit()) {
|
---|
| 1959 | target = ::google::protobuf::internal::WireFormatLite::WriteInt32ToArray(17, this->lengthunit(), target);
|
---|
| 1960 | }
|
---|
| 1961 |
|
---|
| 1962 | // optional string NameMomentumUnit = 18;
|
---|
| 1963 | if (has_namemomentumunit()) {
|
---|
| 1964 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1965 | this->namemomentumunit().data(), this->namemomentumunit().length(),
|
---|
| 1966 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 1967 | target =
|
---|
| 1968 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
---|
| 1969 | 18, this->namemomentumunit(), target);
|
---|
| 1970 | }
|
---|
| 1971 |
|
---|
| 1972 | // optional string NameLengthUnit = 19;
|
---|
| 1973 | if (has_namelengthunit()) {
|
---|
| 1974 | ::google::protobuf::internal::WireFormat::VerifyUTF8String(
|
---|
| 1975 | this->namelengthunit().data(), this->namelengthunit().length(),
|
---|
| 1976 | ::google::protobuf::internal::WireFormat::SERIALIZE);
|
---|
| 1977 | target =
|
---|
| 1978 | ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
|
---|
| 1979 | 19, this->namelengthunit(), target);
|
---|
| 1980 | }
|
---|
| 1981 |
|
---|
| 1982 | // optional double weight = 20;
|
---|
| 1983 | if (has_weight()) {
|
---|
| 1984 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(20, this->weight(), target);
|
---|
| 1985 | }
|
---|
| 1986 |
|
---|
| 1987 | // optional double requested_events = 21;
|
---|
| 1988 | if (has_requested_events()) {
|
---|
| 1989 | target = ::google::protobuf::internal::WireFormatLite::WriteDoubleToArray(21, this->requested_events(), target);
|
---|
| 1990 | }
|
---|
| 1991 |
|
---|
| 1992 | // repeated .promc.ProMCHeader.ParticleData particleData = 30;
|
---|
| 1993 | for (int i = 0; i < this->particledata_size(); i++) {
|
---|
| 1994 | target = ::google::protobuf::internal::WireFormatLite::
|
---|
| 1995 | WriteMessageNoVirtualToArray(
|
---|
| 1996 | 30, this->particledata(i), target);
|
---|
| 1997 | }
|
---|
| 1998 |
|
---|
| 1999 | // repeated .promc.ProMCHeader.MetaInt metaInt = 31;
|
---|
| 2000 | for (int i = 0; i < this->metaint_size(); i++) {
|
---|
| 2001 | target = ::google::protobuf::internal::WireFormatLite::
|
---|
| 2002 | WriteMessageNoVirtualToArray(
|
---|
| 2003 | 31, this->metaint(i), target);
|
---|
| 2004 | }
|
---|
| 2005 |
|
---|
| 2006 | // repeated .promc.ProMCHeader.MetaFloat metaFloat = 32;
|
---|
| 2007 | for (int i = 0; i < this->metafloat_size(); i++) {
|
---|
| 2008 | target = ::google::protobuf::internal::WireFormatLite::
|
---|
| 2009 | WriteMessageNoVirtualToArray(
|
---|
| 2010 | 32, this->metafloat(i), target);
|
---|
| 2011 | }
|
---|
| 2012 |
|
---|
| 2013 | if (!unknown_fields().empty()) {
|
---|
| 2014 | target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
|
---|
| 2015 | unknown_fields(), target);
|
---|
| 2016 | }
|
---|
| 2017 | return target;
|
---|
| 2018 | }
|
---|
| 2019 |
|
---|
| 2020 | int ProMCHeader::ByteSize() const {
|
---|
| 2021 | int total_size = 0;
|
---|
| 2022 |
|
---|
| 2023 | if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 2024 | // optional int32 id1 = 1;
|
---|
| 2025 | if (has_id1()) {
|
---|
| 2026 | total_size += 1 +
|
---|
| 2027 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2028 | this->id1());
|
---|
| 2029 | }
|
---|
| 2030 |
|
---|
| 2031 | // optional int32 id2 = 2;
|
---|
| 2032 | if (has_id2()) {
|
---|
| 2033 | total_size += 1 +
|
---|
| 2034 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2035 | this->id2());
|
---|
| 2036 | }
|
---|
| 2037 |
|
---|
| 2038 | // optional int32 pdf_id1 = 3;
|
---|
| 2039 | if (has_pdf_id1()) {
|
---|
| 2040 | total_size += 1 +
|
---|
| 2041 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2042 | this->pdf_id1());
|
---|
| 2043 | }
|
---|
| 2044 |
|
---|
| 2045 | // optional int32 pdf_id2 = 4;
|
---|
| 2046 | if (has_pdf_id2()) {
|
---|
| 2047 | total_size += 1 +
|
---|
| 2048 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2049 | this->pdf_id2());
|
---|
| 2050 | }
|
---|
| 2051 |
|
---|
| 2052 | // optional double x1 = 5;
|
---|
| 2053 | if (has_x1()) {
|
---|
| 2054 | total_size += 1 + 8;
|
---|
| 2055 | }
|
---|
| 2056 |
|
---|
| 2057 | // optional double x2 = 6;
|
---|
| 2058 | if (has_x2()) {
|
---|
| 2059 | total_size += 1 + 8;
|
---|
| 2060 | }
|
---|
| 2061 |
|
---|
| 2062 | // optional double scalepdf = 7;
|
---|
| 2063 | if (has_scalepdf()) {
|
---|
| 2064 | total_size += 1 + 8;
|
---|
| 2065 | }
|
---|
| 2066 |
|
---|
| 2067 | // optional int32 pdf1 = 8;
|
---|
| 2068 | if (has_pdf1()) {
|
---|
| 2069 | total_size += 1 +
|
---|
| 2070 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2071 | this->pdf1());
|
---|
| 2072 | }
|
---|
| 2073 |
|
---|
| 2074 | }
|
---|
| 2075 | if (_has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
---|
| 2076 | // optional int32 pdf2 = 9;
|
---|
| 2077 | if (has_pdf2()) {
|
---|
| 2078 | total_size += 1 +
|
---|
| 2079 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2080 | this->pdf2());
|
---|
| 2081 | }
|
---|
| 2082 |
|
---|
| 2083 | // optional double eCM = 10;
|
---|
| 2084 | if (has_ecm()) {
|
---|
| 2085 | total_size += 1 + 8;
|
---|
| 2086 | }
|
---|
| 2087 |
|
---|
| 2088 | // optional double s = 11;
|
---|
| 2089 | if (has_s()) {
|
---|
| 2090 | total_size += 1 + 8;
|
---|
| 2091 | }
|
---|
| 2092 |
|
---|
| 2093 | // optional string name = 12;
|
---|
| 2094 | if (has_name()) {
|
---|
| 2095 | total_size += 1 +
|
---|
| 2096 | ::google::protobuf::internal::WireFormatLite::StringSize(
|
---|
| 2097 | this->name());
|
---|
| 2098 | }
|
---|
| 2099 |
|
---|
| 2100 | // optional int32 code = 13;
|
---|
| 2101 | if (has_code()) {
|
---|
| 2102 | total_size += 1 +
|
---|
| 2103 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2104 | this->code());
|
---|
| 2105 | }
|
---|
| 2106 |
|
---|
| 2107 | // optional double cross_section = 14;
|
---|
| 2108 | if (has_cross_section()) {
|
---|
| 2109 | total_size += 1 + 8;
|
---|
| 2110 | }
|
---|
| 2111 |
|
---|
| 2112 | // optional double cross_section_error = 15;
|
---|
| 2113 | if (has_cross_section_error()) {
|
---|
| 2114 | total_size += 1 + 8;
|
---|
| 2115 | }
|
---|
| 2116 |
|
---|
| 2117 | // optional int32 MomentumUnit = 16;
|
---|
| 2118 | if (has_momentumunit()) {
|
---|
| 2119 | total_size += 2 +
|
---|
| 2120 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2121 | this->momentumunit());
|
---|
| 2122 | }
|
---|
| 2123 |
|
---|
| 2124 | }
|
---|
| 2125 | if (_has_bits_[16 / 32] & (0xffu << (16 % 32))) {
|
---|
| 2126 | // optional int32 LengthUnit = 17;
|
---|
| 2127 | if (has_lengthunit()) {
|
---|
| 2128 | total_size += 2 +
|
---|
| 2129 | ::google::protobuf::internal::WireFormatLite::Int32Size(
|
---|
| 2130 | this->lengthunit());
|
---|
| 2131 | }
|
---|
| 2132 |
|
---|
| 2133 | // optional string NameMomentumUnit = 18;
|
---|
| 2134 | if (has_namemomentumunit()) {
|
---|
| 2135 | total_size += 2 +
|
---|
| 2136 | ::google::protobuf::internal::WireFormatLite::StringSize(
|
---|
| 2137 | this->namemomentumunit());
|
---|
| 2138 | }
|
---|
| 2139 |
|
---|
| 2140 | // optional string NameLengthUnit = 19;
|
---|
| 2141 | if (has_namelengthunit()) {
|
---|
| 2142 | total_size += 2 +
|
---|
| 2143 | ::google::protobuf::internal::WireFormatLite::StringSize(
|
---|
| 2144 | this->namelengthunit());
|
---|
| 2145 | }
|
---|
| 2146 |
|
---|
| 2147 | // optional double weight = 20;
|
---|
| 2148 | if (has_weight()) {
|
---|
| 2149 | total_size += 2 + 8;
|
---|
| 2150 | }
|
---|
| 2151 |
|
---|
| 2152 | // optional double requested_events = 21;
|
---|
| 2153 | if (has_requested_events()) {
|
---|
| 2154 | total_size += 2 + 8;
|
---|
| 2155 | }
|
---|
| 2156 |
|
---|
| 2157 | }
|
---|
| 2158 | // repeated .promc.ProMCHeader.ParticleData particleData = 30;
|
---|
| 2159 | total_size += 2 * this->particledata_size();
|
---|
| 2160 | for (int i = 0; i < this->particledata_size(); i++) {
|
---|
| 2161 | total_size +=
|
---|
| 2162 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
---|
| 2163 | this->particledata(i));
|
---|
| 2164 | }
|
---|
| 2165 |
|
---|
| 2166 | // repeated .promc.ProMCHeader.MetaInt metaInt = 31;
|
---|
| 2167 | total_size += 2 * this->metaint_size();
|
---|
| 2168 | for (int i = 0; i < this->metaint_size(); i++) {
|
---|
| 2169 | total_size +=
|
---|
| 2170 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
---|
| 2171 | this->metaint(i));
|
---|
| 2172 | }
|
---|
| 2173 |
|
---|
| 2174 | // repeated .promc.ProMCHeader.MetaFloat metaFloat = 32;
|
---|
| 2175 | total_size += 2 * this->metafloat_size();
|
---|
| 2176 | for (int i = 0; i < this->metafloat_size(); i++) {
|
---|
| 2177 | total_size +=
|
---|
| 2178 | ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
|
---|
| 2179 | this->metafloat(i));
|
---|
| 2180 | }
|
---|
| 2181 |
|
---|
| 2182 | if (!unknown_fields().empty()) {
|
---|
| 2183 | total_size +=
|
---|
| 2184 | ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
|
---|
| 2185 | unknown_fields());
|
---|
| 2186 | }
|
---|
| 2187 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
|
---|
| 2188 | _cached_size_ = total_size;
|
---|
| 2189 | GOOGLE_SAFE_CONCURRENT_WRITES_END();
|
---|
| 2190 | return total_size;
|
---|
| 2191 | }
|
---|
| 2192 |
|
---|
| 2193 | void ProMCHeader::MergeFrom(const ::google::protobuf::Message& from) {
|
---|
| 2194 | GOOGLE_CHECK_NE(&from, this);
|
---|
| 2195 | const ProMCHeader* source =
|
---|
| 2196 | ::google::protobuf::internal::dynamic_cast_if_available<const ProMCHeader*>(
|
---|
| 2197 | &from);
|
---|
| 2198 | if (source == NULL) {
|
---|
| 2199 | ::google::protobuf::internal::ReflectionOps::Merge(from, this);
|
---|
| 2200 | } else {
|
---|
| 2201 | MergeFrom(*source);
|
---|
| 2202 | }
|
---|
| 2203 | }
|
---|
| 2204 |
|
---|
| 2205 | void ProMCHeader::MergeFrom(const ProMCHeader& from) {
|
---|
| 2206 | GOOGLE_CHECK_NE(&from, this);
|
---|
| 2207 | particledata_.MergeFrom(from.particledata_);
|
---|
| 2208 | metaint_.MergeFrom(from.metaint_);
|
---|
| 2209 | metafloat_.MergeFrom(from.metafloat_);
|
---|
| 2210 | if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
|
---|
| 2211 | if (from.has_id1()) {
|
---|
| 2212 | set_id1(from.id1());
|
---|
| 2213 | }
|
---|
| 2214 | if (from.has_id2()) {
|
---|
| 2215 | set_id2(from.id2());
|
---|
| 2216 | }
|
---|
| 2217 | if (from.has_pdf_id1()) {
|
---|
| 2218 | set_pdf_id1(from.pdf_id1());
|
---|
| 2219 | }
|
---|
| 2220 | if (from.has_pdf_id2()) {
|
---|
| 2221 | set_pdf_id2(from.pdf_id2());
|
---|
| 2222 | }
|
---|
| 2223 | if (from.has_x1()) {
|
---|
| 2224 | set_x1(from.x1());
|
---|
| 2225 | }
|
---|
| 2226 | if (from.has_x2()) {
|
---|
| 2227 | set_x2(from.x2());
|
---|
| 2228 | }
|
---|
| 2229 | if (from.has_scalepdf()) {
|
---|
| 2230 | set_scalepdf(from.scalepdf());
|
---|
| 2231 | }
|
---|
| 2232 | if (from.has_pdf1()) {
|
---|
| 2233 | set_pdf1(from.pdf1());
|
---|
| 2234 | }
|
---|
| 2235 | }
|
---|
| 2236 | if (from._has_bits_[8 / 32] & (0xffu << (8 % 32))) {
|
---|
| 2237 | if (from.has_pdf2()) {
|
---|
| 2238 | set_pdf2(from.pdf2());
|
---|
| 2239 | }
|
---|
| 2240 | if (from.has_ecm()) {
|
---|
| 2241 | set_ecm(from.ecm());
|
---|
| 2242 | }
|
---|
| 2243 | if (from.has_s()) {
|
---|
| 2244 | set_s(from.s());
|
---|
| 2245 | }
|
---|
| 2246 | if (from.has_name()) {
|
---|
| 2247 | set_name(from.name());
|
---|
| 2248 | }
|
---|
| 2249 | if (from.has_code()) {
|
---|
| 2250 | set_code(from.code());
|
---|
| 2251 | }
|
---|
| 2252 | if (from.has_cross_section()) {
|
---|
| 2253 | set_cross_section(from.cross_section());
|
---|
| 2254 | }
|
---|
| 2255 | if (from.has_cross_section_error()) {
|
---|
| 2256 | set_cross_section_error(from.cross_section_error());
|
---|
| 2257 | }
|
---|
| 2258 | if (from.has_momentumunit()) {
|
---|
| 2259 | set_momentumunit(from.momentumunit());
|
---|
| 2260 | }
|
---|
| 2261 | }
|
---|
| 2262 | if (from._has_bits_[16 / 32] & (0xffu << (16 % 32))) {
|
---|
| 2263 | if (from.has_lengthunit()) {
|
---|
| 2264 | set_lengthunit(from.lengthunit());
|
---|
| 2265 | }
|
---|
| 2266 | if (from.has_namemomentumunit()) {
|
---|
| 2267 | set_namemomentumunit(from.namemomentumunit());
|
---|
| 2268 | }
|
---|
| 2269 | if (from.has_namelengthunit()) {
|
---|
| 2270 | set_namelengthunit(from.namelengthunit());
|
---|
| 2271 | }
|
---|
| 2272 | if (from.has_weight()) {
|
---|
| 2273 | set_weight(from.weight());
|
---|
| 2274 | }
|
---|
| 2275 | if (from.has_requested_events()) {
|
---|
| 2276 | set_requested_events(from.requested_events());
|
---|
| 2277 | }
|
---|
| 2278 | }
|
---|
| 2279 | mutable_unknown_fields()->MergeFrom(from.unknown_fields());
|
---|
| 2280 | }
|
---|
| 2281 |
|
---|
| 2282 | void ProMCHeader::CopyFrom(const ::google::protobuf::Message& from) {
|
---|
| 2283 | if (&from == this) return;
|
---|
| 2284 | Clear();
|
---|
| 2285 | MergeFrom(from);
|
---|
| 2286 | }
|
---|
| 2287 |
|
---|
| 2288 | void ProMCHeader::CopyFrom(const ProMCHeader& from) {
|
---|
| 2289 | if (&from == this) return;
|
---|
| 2290 | Clear();
|
---|
| 2291 | MergeFrom(from);
|
---|
| 2292 | }
|
---|
| 2293 |
|
---|
| 2294 | bool ProMCHeader::IsInitialized() const {
|
---|
| 2295 |
|
---|
| 2296 | for (int i = 0; i < particledata_size(); i++) {
|
---|
| 2297 | if (!this->particledata(i).IsInitialized()) return false;
|
---|
| 2298 | }
|
---|
| 2299 | for (int i = 0; i < metaint_size(); i++) {
|
---|
| 2300 | if (!this->metaint(i).IsInitialized()) return false;
|
---|
| 2301 | }
|
---|
| 2302 | for (int i = 0; i < metafloat_size(); i++) {
|
---|
| 2303 | if (!this->metafloat(i).IsInitialized()) return false;
|
---|
| 2304 | }
|
---|
| 2305 | return true;
|
---|
| 2306 | }
|
---|
| 2307 |
|
---|
| 2308 | void ProMCHeader::Swap(ProMCHeader* other) {
|
---|
| 2309 | if (other != this) {
|
---|
| 2310 | std::swap(id1_, other->id1_);
|
---|
| 2311 | std::swap(id2_, other->id2_);
|
---|
| 2312 | std::swap(pdf_id1_, other->pdf_id1_);
|
---|
| 2313 | std::swap(pdf_id2_, other->pdf_id2_);
|
---|
| 2314 | std::swap(x1_, other->x1_);
|
---|
| 2315 | std::swap(x2_, other->x2_);
|
---|
| 2316 | std::swap(scalepdf_, other->scalepdf_);
|
---|
| 2317 | std::swap(pdf1_, other->pdf1_);
|
---|
| 2318 | std::swap(pdf2_, other->pdf2_);
|
---|
| 2319 | std::swap(ecm_, other->ecm_);
|
---|
| 2320 | std::swap(s_, other->s_);
|
---|
| 2321 | std::swap(name_, other->name_);
|
---|
| 2322 | std::swap(code_, other->code_);
|
---|
| 2323 | std::swap(cross_section_, other->cross_section_);
|
---|
| 2324 | std::swap(cross_section_error_, other->cross_section_error_);
|
---|
| 2325 | std::swap(momentumunit_, other->momentumunit_);
|
---|
| 2326 | std::swap(lengthunit_, other->lengthunit_);
|
---|
| 2327 | std::swap(namemomentumunit_, other->namemomentumunit_);
|
---|
| 2328 | std::swap(namelengthunit_, other->namelengthunit_);
|
---|
| 2329 | std::swap(weight_, other->weight_);
|
---|
| 2330 | std::swap(requested_events_, other->requested_events_);
|
---|
| 2331 | particledata_.Swap(&other->particledata_);
|
---|
| 2332 | metaint_.Swap(&other->metaint_);
|
---|
| 2333 | metafloat_.Swap(&other->metafloat_);
|
---|
| 2334 | std::swap(_has_bits_[0], other->_has_bits_[0]);
|
---|
| 2335 | _unknown_fields_.Swap(&other->_unknown_fields_);
|
---|
| 2336 | std::swap(_cached_size_, other->_cached_size_);
|
---|
| 2337 | }
|
---|
| 2338 | }
|
---|
| 2339 |
|
---|
| 2340 | ::google::protobuf::Metadata ProMCHeader::GetMetadata() const {
|
---|
| 2341 | protobuf_AssignDescriptorsOnce();
|
---|
| 2342 | ::google::protobuf::Metadata metadata;
|
---|
| 2343 | metadata.descriptor = ProMCHeader_descriptor_;
|
---|
| 2344 | metadata.reflection = ProMCHeader_reflection_;
|
---|
| 2345 | return metadata;
|
---|
| 2346 | }
|
---|
| 2347 |
|
---|
| 2348 |
|
---|
| 2349 | // @@protoc_insertion_point(namespace_scope)
|
---|
| 2350 |
|
---|
| 2351 | } // namespace promc
|
---|
| 2352 |
|
---|
| 2353 | // @@protoc_insertion_point(global_scope)
|
---|