Home | History | Annotate | Download | only in unit_test
      1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
      2 
      3 #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
      4 #include "audio_processing_unittest.pb.h"
      5 
      6 #include <algorithm>
      7 
      8 #include <google/protobuf/stubs/once.h>
      9 #include <google/protobuf/io/coded_stream.h>
     10 #include <google/protobuf/wire_format_lite_inl.h>
     11 // @@protoc_insertion_point(includes)
     12 
     13 namespace audio_processing_unittest {
     14 
     15 void protobuf_ShutdownFile_audio_5fprocessing_5funittest_2eproto() {
     16   delete Test::default_instance_;
     17   delete Test_Statistic::default_instance_;
     18   delete Test_EchoMetrics::default_instance_;
     19   delete OutputData::default_instance_;
     20 }
     21 
     22 void protobuf_AddDesc_audio_5fprocessing_5funittest_2eproto() {
     23   static bool already_here = false;
     24   if (already_here) return;
     25   already_here = true;
     26   GOOGLE_PROTOBUF_VERIFY_VERSION;
     27 
     28   Test::default_instance_ = new Test();
     29   Test_Statistic::default_instance_ = new Test_Statistic();
     30   Test_EchoMetrics::default_instance_ = new Test_EchoMetrics();
     31   OutputData::default_instance_ = new OutputData();
     32   Test::default_instance_->InitAsDefaultInstance();
     33   Test_Statistic::default_instance_->InitAsDefaultInstance();
     34   Test_EchoMetrics::default_instance_->InitAsDefaultInstance();
     35   OutputData::default_instance_->InitAsDefaultInstance();
     36   ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_audio_5fprocessing_5funittest_2eproto);
     37 }
     38 
     39 // Force AddDescriptors() to be called at static initialization time.
     40 struct StaticDescriptorInitializer_audio_5fprocessing_5funittest_2eproto {
     41   StaticDescriptorInitializer_audio_5fprocessing_5funittest_2eproto() {
     42     protobuf_AddDesc_audio_5fprocessing_5funittest_2eproto();
     43   }
     44 } static_descriptor_initializer_audio_5fprocessing_5funittest_2eproto_;
     45 
     46 
     47 // ===================================================================
     48 
     49 #ifndef _MSC_VER
     50 const int Test_Statistic::kInstantFieldNumber;
     51 const int Test_Statistic::kAverageFieldNumber;
     52 const int Test_Statistic::kMaximumFieldNumber;
     53 const int Test_Statistic::kMinimumFieldNumber;
     54 #endif  // !_MSC_VER
     55 
     56 Test_Statistic::Test_Statistic()
     57   : ::google::protobuf::MessageLite() {
     58   SharedCtor();
     59 }
     60 
     61 void Test_Statistic::InitAsDefaultInstance() {
     62 }
     63 
     64 Test_Statistic::Test_Statistic(const Test_Statistic& from)
     65   : ::google::protobuf::MessageLite() {
     66   SharedCtor();
     67   MergeFrom(from);
     68 }
     69 
     70 void Test_Statistic::SharedCtor() {
     71   _cached_size_ = 0;
     72   instant_ = 0;
     73   average_ = 0;
     74   maximum_ = 0;
     75   minimum_ = 0;
     76   ::memset(_has_bits_, 0, sizeof(_has_bits_));
     77 }
     78 
     79 Test_Statistic::~Test_Statistic() {
     80   SharedDtor();
     81 }
     82 
     83 void Test_Statistic::SharedDtor() {
     84   if (this != default_instance_) {
     85   }
     86 }
     87 
     88 void Test_Statistic::SetCachedSize(int size) const {
     89   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
     90   _cached_size_ = size;
     91   GOOGLE_SAFE_CONCURRENT_WRITES_END();
     92 }
     93 const Test_Statistic& Test_Statistic::default_instance() {
     94   if (default_instance_ == NULL) protobuf_AddDesc_audio_5fprocessing_5funittest_2eproto();  return *default_instance_;
     95 }
     96 
     97 Test_Statistic* Test_Statistic::default_instance_ = NULL;
     98 
     99 Test_Statistic* Test_Statistic::New() const {
    100   return new Test_Statistic;
    101 }
    102 
    103 void Test_Statistic::Clear() {
    104   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    105     instant_ = 0;
    106     average_ = 0;
    107     maximum_ = 0;
    108     minimum_ = 0;
    109   }
    110   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    111 }
    112 
    113 bool Test_Statistic::MergePartialFromCodedStream(
    114     ::google::protobuf::io::CodedInputStream* input) {
    115 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
    116   ::google::protobuf::uint32 tag;
    117   while ((tag = input->ReadTag()) != 0) {
    118     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    119       // optional int32 instant = 1;
    120       case 1: {
    121         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    122             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    123           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    124                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    125                  input, &instant_)));
    126           set_has_instant();
    127         } else {
    128           goto handle_uninterpreted;
    129         }
    130         if (input->ExpectTag(16)) goto parse_average;
    131         break;
    132       }
    133 
    134       // optional int32 average = 2;
    135       case 2: {
    136         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    137             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    138          parse_average:
    139           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    140                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    141                  input, &average_)));
    142           set_has_average();
    143         } else {
    144           goto handle_uninterpreted;
    145         }
    146         if (input->ExpectTag(24)) goto parse_maximum;
    147         break;
    148       }
    149 
    150       // optional int32 maximum = 3;
    151       case 3: {
    152         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    153             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    154          parse_maximum:
    155           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    156                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    157                  input, &maximum_)));
    158           set_has_maximum();
    159         } else {
    160           goto handle_uninterpreted;
    161         }
    162         if (input->ExpectTag(32)) goto parse_minimum;
    163         break;
    164       }
    165 
    166       // optional int32 minimum = 4;
    167       case 4: {
    168         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    169             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    170          parse_minimum:
    171           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    172                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    173                  input, &minimum_)));
    174           set_has_minimum();
    175         } else {
    176           goto handle_uninterpreted;
    177         }
    178         if (input->ExpectAtEnd()) return true;
    179         break;
    180       }
    181 
    182       default: {
    183       handle_uninterpreted:
    184         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    185             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    186           return true;
    187         }
    188         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, NULL));
    189         break;
    190       }
    191     }
    192   }
    193   return true;
    194 #undef DO_
    195 }
    196 
    197 void Test_Statistic::SerializeWithCachedSizes(
    198     ::google::protobuf::io::CodedOutputStream* output) const {
    199   // optional int32 instant = 1;
    200   if (has_instant()) {
    201     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->instant(), output);
    202   }
    203 
    204   // optional int32 average = 2;
    205   if (has_average()) {
    206     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->average(), output);
    207   }
    208 
    209   // optional int32 maximum = 3;
    210   if (has_maximum()) {
    211     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->maximum(), output);
    212   }
    213 
    214   // optional int32 minimum = 4;
    215   if (has_minimum()) {
    216     ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->minimum(), output);
    217   }
    218 
    219 }
    220 
    221 int Test_Statistic::ByteSize() const {
    222   int total_size = 0;
    223 
    224   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    225     // optional int32 instant = 1;
    226     if (has_instant()) {
    227       total_size += 1 +
    228         ::google::protobuf::internal::WireFormatLite::Int32Size(
    229           this->instant());
    230     }
    231 
    232     // optional int32 average = 2;
    233     if (has_average()) {
    234       total_size += 1 +
    235         ::google::protobuf::internal::WireFormatLite::Int32Size(
    236           this->average());
    237     }
    238 
    239     // optional int32 maximum = 3;
    240     if (has_maximum()) {
    241       total_size += 1 +
    242         ::google::protobuf::internal::WireFormatLite::Int32Size(
    243           this->maximum());
    244     }
    245 
    246     // optional int32 minimum = 4;
    247     if (has_minimum()) {
    248       total_size += 1 +
    249         ::google::protobuf::internal::WireFormatLite::Int32Size(
    250           this->minimum());
    251     }
    252 
    253   }
    254   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    255   _cached_size_ = total_size;
    256   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    257   return total_size;
    258 }
    259 
    260 void Test_Statistic::CheckTypeAndMergeFrom(
    261     const ::google::protobuf::MessageLite& from) {
    262   MergeFrom(*::google::protobuf::down_cast<const Test_Statistic*>(&from));
    263 }
    264 
    265 void Test_Statistic::MergeFrom(const Test_Statistic& from) {
    266   GOOGLE_CHECK_NE(&from, this);
    267   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    268     if (from.has_instant()) {
    269       set_instant(from.instant());
    270     }
    271     if (from.has_average()) {
    272       set_average(from.average());
    273     }
    274     if (from.has_maximum()) {
    275       set_maximum(from.maximum());
    276     }
    277     if (from.has_minimum()) {
    278       set_minimum(from.minimum());
    279     }
    280   }
    281 }
    282 
    283 void Test_Statistic::CopyFrom(const Test_Statistic& from) {
    284   if (&from == this) return;
    285   Clear();
    286   MergeFrom(from);
    287 }
    288 
    289 bool Test_Statistic::IsInitialized() const {
    290 
    291   return true;
    292 }
    293 
    294 void Test_Statistic::Swap(Test_Statistic* other) {
    295   if (other != this) {
    296     std::swap(instant_, other->instant_);
    297     std::swap(average_, other->average_);
    298     std::swap(maximum_, other->maximum_);
    299     std::swap(minimum_, other->minimum_);
    300     std::swap(_has_bits_[0], other->_has_bits_[0]);
    301     std::swap(_cached_size_, other->_cached_size_);
    302   }
    303 }
    304 
    305 ::std::string Test_Statistic::GetTypeName() const {
    306   return "audio_processing_unittest.Test.Statistic";
    307 }
    308 
    309 
    310 // -------------------------------------------------------------------
    311 
    312 #ifndef _MSC_VER
    313 const int Test_EchoMetrics::kResidualEchoReturnLossFieldNumber;
    314 const int Test_EchoMetrics::kEchoReturnLossFieldNumber;
    315 const int Test_EchoMetrics::kEchoReturnLossEnhancementFieldNumber;
    316 const int Test_EchoMetrics::kANlpFieldNumber;
    317 #endif  // !_MSC_VER
    318 
    319 Test_EchoMetrics::Test_EchoMetrics()
    320   : ::google::protobuf::MessageLite() {
    321   SharedCtor();
    322 }
    323 
    324 void Test_EchoMetrics::InitAsDefaultInstance() {
    325   residualechoreturnloss_ = const_cast< ::audio_processing_unittest::Test_Statistic*>(&::audio_processing_unittest::Test_Statistic::default_instance());
    326   echoreturnloss_ = const_cast< ::audio_processing_unittest::Test_Statistic*>(&::audio_processing_unittest::Test_Statistic::default_instance());
    327   echoreturnlossenhancement_ = const_cast< ::audio_processing_unittest::Test_Statistic*>(&::audio_processing_unittest::Test_Statistic::default_instance());
    328   anlp_ = const_cast< ::audio_processing_unittest::Test_Statistic*>(&::audio_processing_unittest::Test_Statistic::default_instance());
    329 }
    330 
    331 Test_EchoMetrics::Test_EchoMetrics(const Test_EchoMetrics& from)
    332   : ::google::protobuf::MessageLite() {
    333   SharedCtor();
    334   MergeFrom(from);
    335 }
    336 
    337 void Test_EchoMetrics::SharedCtor() {
    338   _cached_size_ = 0;
    339   residualechoreturnloss_ = NULL;
    340   echoreturnloss_ = NULL;
    341   echoreturnlossenhancement_ = NULL;
    342   anlp_ = NULL;
    343   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    344 }
    345 
    346 Test_EchoMetrics::~Test_EchoMetrics() {
    347   SharedDtor();
    348 }
    349 
    350 void Test_EchoMetrics::SharedDtor() {
    351   if (this != default_instance_) {
    352     delete residualechoreturnloss_;
    353     delete echoreturnloss_;
    354     delete echoreturnlossenhancement_;
    355     delete anlp_;
    356   }
    357 }
    358 
    359 void Test_EchoMetrics::SetCachedSize(int size) const {
    360   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    361   _cached_size_ = size;
    362   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    363 }
    364 const Test_EchoMetrics& Test_EchoMetrics::default_instance() {
    365   if (default_instance_ == NULL) protobuf_AddDesc_audio_5fprocessing_5funittest_2eproto();  return *default_instance_;
    366 }
    367 
    368 Test_EchoMetrics* Test_EchoMetrics::default_instance_ = NULL;
    369 
    370 Test_EchoMetrics* Test_EchoMetrics::New() const {
    371   return new Test_EchoMetrics;
    372 }
    373 
    374 void Test_EchoMetrics::Clear() {
    375   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    376     if (has_residualechoreturnloss()) {
    377       if (residualechoreturnloss_ != NULL) residualechoreturnloss_->::audio_processing_unittest::Test_Statistic::Clear();
    378     }
    379     if (has_echoreturnloss()) {
    380       if (echoreturnloss_ != NULL) echoreturnloss_->::audio_processing_unittest::Test_Statistic::Clear();
    381     }
    382     if (has_echoreturnlossenhancement()) {
    383       if (echoreturnlossenhancement_ != NULL) echoreturnlossenhancement_->::audio_processing_unittest::Test_Statistic::Clear();
    384     }
    385     if (has_anlp()) {
    386       if (anlp_ != NULL) anlp_->::audio_processing_unittest::Test_Statistic::Clear();
    387     }
    388   }
    389   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    390 }
    391 
    392 bool Test_EchoMetrics::MergePartialFromCodedStream(
    393     ::google::protobuf::io::CodedInputStream* input) {
    394 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
    395   ::google::protobuf::uint32 tag;
    396   while ((tag = input->ReadTag()) != 0) {
    397     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    398       // optional .audio_processing_unittest.Test.Statistic residualEchoReturnLoss = 1;
    399       case 1: {
    400         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    401             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
    402           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    403                input, mutable_residualechoreturnloss()));
    404         } else {
    405           goto handle_uninterpreted;
    406         }
    407         if (input->ExpectTag(18)) goto parse_echoReturnLoss;
    408         break;
    409       }
    410 
    411       // optional .audio_processing_unittest.Test.Statistic echoReturnLoss = 2;
    412       case 2: {
    413         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    414             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
    415          parse_echoReturnLoss:
    416           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    417                input, mutable_echoreturnloss()));
    418         } else {
    419           goto handle_uninterpreted;
    420         }
    421         if (input->ExpectTag(26)) goto parse_echoReturnLossEnhancement;
    422         break;
    423       }
    424 
    425       // optional .audio_processing_unittest.Test.Statistic echoReturnLossEnhancement = 3;
    426       case 3: {
    427         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    428             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
    429          parse_echoReturnLossEnhancement:
    430           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    431                input, mutable_echoreturnlossenhancement()));
    432         } else {
    433           goto handle_uninterpreted;
    434         }
    435         if (input->ExpectTag(34)) goto parse_aNlp;
    436         break;
    437       }
    438 
    439       // optional .audio_processing_unittest.Test.Statistic aNlp = 4;
    440       case 4: {
    441         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    442             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
    443          parse_aNlp:
    444           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    445                input, mutable_anlp()));
    446         } else {
    447           goto handle_uninterpreted;
    448         }
    449         if (input->ExpectAtEnd()) return true;
    450         break;
    451       }
    452 
    453       default: {
    454       handle_uninterpreted:
    455         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    456             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    457           return true;
    458         }
    459         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, NULL));
    460         break;
    461       }
    462     }
    463   }
    464   return true;
    465 #undef DO_
    466 }
    467 
    468 void Test_EchoMetrics::SerializeWithCachedSizes(
    469     ::google::protobuf::io::CodedOutputStream* output) const {
    470   // optional .audio_processing_unittest.Test.Statistic residualEchoReturnLoss = 1;
    471   if (has_residualechoreturnloss()) {
    472     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    473       1, this->residualechoreturnloss(), output);
    474   }
    475 
    476   // optional .audio_processing_unittest.Test.Statistic echoReturnLoss = 2;
    477   if (has_echoreturnloss()) {
    478     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    479       2, this->echoreturnloss(), output);
    480   }
    481 
    482   // optional .audio_processing_unittest.Test.Statistic echoReturnLossEnhancement = 3;
    483   if (has_echoreturnlossenhancement()) {
    484     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    485       3, this->echoreturnlossenhancement(), output);
    486   }
    487 
    488   // optional .audio_processing_unittest.Test.Statistic aNlp = 4;
    489   if (has_anlp()) {
    490     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    491       4, this->anlp(), output);
    492   }
    493 
    494 }
    495 
    496 int Test_EchoMetrics::ByteSize() const {
    497   int total_size = 0;
    498 
    499   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    500     // optional .audio_processing_unittest.Test.Statistic residualEchoReturnLoss = 1;
    501     if (has_residualechoreturnloss()) {
    502       total_size += 1 +
    503         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    504           this->residualechoreturnloss());
    505     }
    506 
    507     // optional .audio_processing_unittest.Test.Statistic echoReturnLoss = 2;
    508     if (has_echoreturnloss()) {
    509       total_size += 1 +
    510         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    511           this->echoreturnloss());
    512     }
    513 
    514     // optional .audio_processing_unittest.Test.Statistic echoReturnLossEnhancement = 3;
    515     if (has_echoreturnlossenhancement()) {
    516       total_size += 1 +
    517         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    518           this->echoreturnlossenhancement());
    519     }
    520 
    521     // optional .audio_processing_unittest.Test.Statistic aNlp = 4;
    522     if (has_anlp()) {
    523       total_size += 1 +
    524         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    525           this->anlp());
    526     }
    527 
    528   }
    529   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    530   _cached_size_ = total_size;
    531   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    532   return total_size;
    533 }
    534 
    535 void Test_EchoMetrics::CheckTypeAndMergeFrom(
    536     const ::google::protobuf::MessageLite& from) {
    537   MergeFrom(*::google::protobuf::down_cast<const Test_EchoMetrics*>(&from));
    538 }
    539 
    540 void Test_EchoMetrics::MergeFrom(const Test_EchoMetrics& from) {
    541   GOOGLE_CHECK_NE(&from, this);
    542   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    543     if (from.has_residualechoreturnloss()) {
    544       mutable_residualechoreturnloss()->::audio_processing_unittest::Test_Statistic::MergeFrom(from.residualechoreturnloss());
    545     }
    546     if (from.has_echoreturnloss()) {
    547       mutable_echoreturnloss()->::audio_processing_unittest::Test_Statistic::MergeFrom(from.echoreturnloss());
    548     }
    549     if (from.has_echoreturnlossenhancement()) {
    550       mutable_echoreturnlossenhancement()->::audio_processing_unittest::Test_Statistic::MergeFrom(from.echoreturnlossenhancement());
    551     }
    552     if (from.has_anlp()) {
    553       mutable_anlp()->::audio_processing_unittest::Test_Statistic::MergeFrom(from.anlp());
    554     }
    555   }
    556 }
    557 
    558 void Test_EchoMetrics::CopyFrom(const Test_EchoMetrics& from) {
    559   if (&from == this) return;
    560   Clear();
    561   MergeFrom(from);
    562 }
    563 
    564 bool Test_EchoMetrics::IsInitialized() const {
    565 
    566   return true;
    567 }
    568 
    569 void Test_EchoMetrics::Swap(Test_EchoMetrics* other) {
    570   if (other != this) {
    571     std::swap(residualechoreturnloss_, other->residualechoreturnloss_);
    572     std::swap(echoreturnloss_, other->echoreturnloss_);
    573     std::swap(echoreturnlossenhancement_, other->echoreturnlossenhancement_);
    574     std::swap(anlp_, other->anlp_);
    575     std::swap(_has_bits_[0], other->_has_bits_[0]);
    576     std::swap(_cached_size_, other->_cached_size_);
    577   }
    578 }
    579 
    580 ::std::string Test_EchoMetrics::GetTypeName() const {
    581   return "audio_processing_unittest.Test.EchoMetrics";
    582 }
    583 
    584 
    585 // -------------------------------------------------------------------
    586 
    587 #ifndef _MSC_VER
    588 const int Test::kNumReverseChannelsFieldNumber;
    589 const int Test::kNumChannelsFieldNumber;
    590 const int Test::kSampleRateFieldNumber;
    591 const int Test::kHasEchoCountFieldNumber;
    592 const int Test::kHasVoiceCountFieldNumber;
    593 const int Test::kIsSaturatedCountFieldNumber;
    594 const int Test::kEchoMetricsFieldNumber;
    595 #endif  // !_MSC_VER
    596 
    597 Test::Test()
    598   : ::google::protobuf::MessageLite() {
    599   SharedCtor();
    600 }
    601 
    602 void Test::InitAsDefaultInstance() {
    603   echometrics_ = const_cast< ::audio_processing_unittest::Test_EchoMetrics*>(&::audio_processing_unittest::Test_EchoMetrics::default_instance());
    604 }
    605 
    606 Test::Test(const Test& from)
    607   : ::google::protobuf::MessageLite() {
    608   SharedCtor();
    609   MergeFrom(from);
    610 }
    611 
    612 void Test::SharedCtor() {
    613   _cached_size_ = 0;
    614   numreversechannels_ = 0;
    615   numchannels_ = 0;
    616   samplerate_ = 0;
    617   hasechocount_ = 0;
    618   hasvoicecount_ = 0;
    619   issaturatedcount_ = 0;
    620   echometrics_ = NULL;
    621   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    622 }
    623 
    624 Test::~Test() {
    625   SharedDtor();
    626 }
    627 
    628 void Test::SharedDtor() {
    629   if (this != default_instance_) {
    630     delete echometrics_;
    631   }
    632 }
    633 
    634 void Test::SetCachedSize(int size) const {
    635   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    636   _cached_size_ = size;
    637   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    638 }
    639 const Test& Test::default_instance() {
    640   if (default_instance_ == NULL) protobuf_AddDesc_audio_5fprocessing_5funittest_2eproto();  return *default_instance_;
    641 }
    642 
    643 Test* Test::default_instance_ = NULL;
    644 
    645 Test* Test::New() const {
    646   return new Test;
    647 }
    648 
    649 void Test::Clear() {
    650   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    651     numreversechannels_ = 0;
    652     numchannels_ = 0;
    653     samplerate_ = 0;
    654     hasechocount_ = 0;
    655     hasvoicecount_ = 0;
    656     issaturatedcount_ = 0;
    657     if (has_echometrics()) {
    658       if (echometrics_ != NULL) echometrics_->::audio_processing_unittest::Test_EchoMetrics::Clear();
    659     }
    660   }
    661   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    662 }
    663 
    664 bool Test::MergePartialFromCodedStream(
    665     ::google::protobuf::io::CodedInputStream* input) {
    666 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
    667   ::google::protobuf::uint32 tag;
    668   while ((tag = input->ReadTag()) != 0) {
    669     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
    670       // optional int32 numReverseChannels = 1;
    671       case 1: {
    672         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    673             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    674           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    675                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    676                  input, &numreversechannels_)));
    677           set_has_numreversechannels();
    678         } else {
    679           goto handle_uninterpreted;
    680         }
    681         if (input->ExpectTag(16)) goto parse_numChannels;
    682         break;
    683       }
    684 
    685       // optional int32 numChannels = 2;
    686       case 2: {
    687         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    688             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    689          parse_numChannels:
    690           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    691                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    692                  input, &numchannels_)));
    693           set_has_numchannels();
    694         } else {
    695           goto handle_uninterpreted;
    696         }
    697         if (input->ExpectTag(24)) goto parse_sampleRate;
    698         break;
    699       }
    700 
    701       // optional int32 sampleRate = 3;
    702       case 3: {
    703         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    704             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    705          parse_sampleRate:
    706           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    707                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    708                  input, &samplerate_)));
    709           set_has_samplerate();
    710         } else {
    711           goto handle_uninterpreted;
    712         }
    713         if (input->ExpectTag(32)) goto parse_hasEchoCount;
    714         break;
    715       }
    716 
    717       // optional int32 hasEchoCount = 4;
    718       case 4: {
    719         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    720             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    721          parse_hasEchoCount:
    722           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    723                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    724                  input, &hasechocount_)));
    725           set_has_hasechocount();
    726         } else {
    727           goto handle_uninterpreted;
    728         }
    729         if (input->ExpectTag(40)) goto parse_hasVoiceCount;
    730         break;
    731       }
    732 
    733       // optional int32 hasVoiceCount = 5;
    734       case 5: {
    735         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    736             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    737          parse_hasVoiceCount:
    738           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    739                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    740                  input, &hasvoicecount_)));
    741           set_has_hasvoicecount();
    742         } else {
    743           goto handle_uninterpreted;
    744         }
    745         if (input->ExpectTag(48)) goto parse_isSaturatedCount;
    746         break;
    747       }
    748 
    749       // optional int32 isSaturatedCount = 6;
    750       case 6: {
    751         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    752             ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
    753          parse_isSaturatedCount:
    754           DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
    755                    ::google::protobuf::int32, ::google::protobuf::internal::WireFormatLite::TYPE_INT32>(
    756                  input, &issaturatedcount_)));
    757           set_has_issaturatedcount();
    758         } else {
    759           goto handle_uninterpreted;
    760         }
    761         if (input->ExpectTag(58)) goto parse_echoMetrics;
    762         break;
    763       }
    764 
    765       // optional .audio_processing_unittest.Test.EchoMetrics echoMetrics = 7;
    766       case 7: {
    767         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    768             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
    769          parse_echoMetrics:
    770           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
    771                input, mutable_echometrics()));
    772         } else {
    773           goto handle_uninterpreted;
    774         }
    775         if (input->ExpectAtEnd()) return true;
    776         break;
    777       }
    778 
    779       default: {
    780       handle_uninterpreted:
    781         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
    782             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
    783           return true;
    784         }
    785         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, NULL));
    786         break;
    787       }
    788     }
    789   }
    790   return true;
    791 #undef DO_
    792 }
    793 
    794 void Test::SerializeWithCachedSizes(
    795     ::google::protobuf::io::CodedOutputStream* output) const {
    796   // optional int32 numReverseChannels = 1;
    797   if (has_numreversechannels()) {
    798     ::google::protobuf::internal::WireFormatLite::WriteInt32(1, this->numreversechannels(), output);
    799   }
    800 
    801   // optional int32 numChannels = 2;
    802   if (has_numchannels()) {
    803     ::google::protobuf::internal::WireFormatLite::WriteInt32(2, this->numchannels(), output);
    804   }
    805 
    806   // optional int32 sampleRate = 3;
    807   if (has_samplerate()) {
    808     ::google::protobuf::internal::WireFormatLite::WriteInt32(3, this->samplerate(), output);
    809   }
    810 
    811   // optional int32 hasEchoCount = 4;
    812   if (has_hasechocount()) {
    813     ::google::protobuf::internal::WireFormatLite::WriteInt32(4, this->hasechocount(), output);
    814   }
    815 
    816   // optional int32 hasVoiceCount = 5;
    817   if (has_hasvoicecount()) {
    818     ::google::protobuf::internal::WireFormatLite::WriteInt32(5, this->hasvoicecount(), output);
    819   }
    820 
    821   // optional int32 isSaturatedCount = 6;
    822   if (has_issaturatedcount()) {
    823     ::google::protobuf::internal::WireFormatLite::WriteInt32(6, this->issaturatedcount(), output);
    824   }
    825 
    826   // optional .audio_processing_unittest.Test.EchoMetrics echoMetrics = 7;
    827   if (has_echometrics()) {
    828     ::google::protobuf::internal::WireFormatLite::WriteMessage(
    829       7, this->echometrics(), output);
    830   }
    831 
    832 }
    833 
    834 int Test::ByteSize() const {
    835   int total_size = 0;
    836 
    837   if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    838     // optional int32 numReverseChannels = 1;
    839     if (has_numreversechannels()) {
    840       total_size += 1 +
    841         ::google::protobuf::internal::WireFormatLite::Int32Size(
    842           this->numreversechannels());
    843     }
    844 
    845     // optional int32 numChannels = 2;
    846     if (has_numchannels()) {
    847       total_size += 1 +
    848         ::google::protobuf::internal::WireFormatLite::Int32Size(
    849           this->numchannels());
    850     }
    851 
    852     // optional int32 sampleRate = 3;
    853     if (has_samplerate()) {
    854       total_size += 1 +
    855         ::google::protobuf::internal::WireFormatLite::Int32Size(
    856           this->samplerate());
    857     }
    858 
    859     // optional int32 hasEchoCount = 4;
    860     if (has_hasechocount()) {
    861       total_size += 1 +
    862         ::google::protobuf::internal::WireFormatLite::Int32Size(
    863           this->hasechocount());
    864     }
    865 
    866     // optional int32 hasVoiceCount = 5;
    867     if (has_hasvoicecount()) {
    868       total_size += 1 +
    869         ::google::protobuf::internal::WireFormatLite::Int32Size(
    870           this->hasvoicecount());
    871     }
    872 
    873     // optional int32 isSaturatedCount = 6;
    874     if (has_issaturatedcount()) {
    875       total_size += 1 +
    876         ::google::protobuf::internal::WireFormatLite::Int32Size(
    877           this->issaturatedcount());
    878     }
    879 
    880     // optional .audio_processing_unittest.Test.EchoMetrics echoMetrics = 7;
    881     if (has_echometrics()) {
    882       total_size += 1 +
    883         ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
    884           this->echometrics());
    885     }
    886 
    887   }
    888   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    889   _cached_size_ = total_size;
    890   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    891   return total_size;
    892 }
    893 
    894 void Test::CheckTypeAndMergeFrom(
    895     const ::google::protobuf::MessageLite& from) {
    896   MergeFrom(*::google::protobuf::down_cast<const Test*>(&from));
    897 }
    898 
    899 void Test::MergeFrom(const Test& from) {
    900   GOOGLE_CHECK_NE(&from, this);
    901   if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
    902     if (from.has_numreversechannels()) {
    903       set_numreversechannels(from.numreversechannels());
    904     }
    905     if (from.has_numchannels()) {
    906       set_numchannels(from.numchannels());
    907     }
    908     if (from.has_samplerate()) {
    909       set_samplerate(from.samplerate());
    910     }
    911     if (from.has_hasechocount()) {
    912       set_hasechocount(from.hasechocount());
    913     }
    914     if (from.has_hasvoicecount()) {
    915       set_hasvoicecount(from.hasvoicecount());
    916     }
    917     if (from.has_issaturatedcount()) {
    918       set_issaturatedcount(from.issaturatedcount());
    919     }
    920     if (from.has_echometrics()) {
    921       mutable_echometrics()->::audio_processing_unittest::Test_EchoMetrics::MergeFrom(from.echometrics());
    922     }
    923   }
    924 }
    925 
    926 void Test::CopyFrom(const Test& from) {
    927   if (&from == this) return;
    928   Clear();
    929   MergeFrom(from);
    930 }
    931 
    932 bool Test::IsInitialized() const {
    933 
    934   return true;
    935 }
    936 
    937 void Test::Swap(Test* other) {
    938   if (other != this) {
    939     std::swap(numreversechannels_, other->numreversechannels_);
    940     std::swap(numchannels_, other->numchannels_);
    941     std::swap(samplerate_, other->samplerate_);
    942     std::swap(hasechocount_, other->hasechocount_);
    943     std::swap(hasvoicecount_, other->hasvoicecount_);
    944     std::swap(issaturatedcount_, other->issaturatedcount_);
    945     std::swap(echometrics_, other->echometrics_);
    946     std::swap(_has_bits_[0], other->_has_bits_[0]);
    947     std::swap(_cached_size_, other->_cached_size_);
    948   }
    949 }
    950 
    951 ::std::string Test::GetTypeName() const {
    952   return "audio_processing_unittest.Test";
    953 }
    954 
    955 
    956 // ===================================================================
    957 
    958 #ifndef _MSC_VER
    959 const int OutputData::kTestFieldNumber;
    960 #endif  // !_MSC_VER
    961 
    962 OutputData::OutputData()
    963   : ::google::protobuf::MessageLite() {
    964   SharedCtor();
    965 }
    966 
    967 void OutputData::InitAsDefaultInstance() {
    968 }
    969 
    970 OutputData::OutputData(const OutputData& from)
    971   : ::google::protobuf::MessageLite() {
    972   SharedCtor();
    973   MergeFrom(from);
    974 }
    975 
    976 void OutputData::SharedCtor() {
    977   _cached_size_ = 0;
    978   ::memset(_has_bits_, 0, sizeof(_has_bits_));
    979 }
    980 
    981 OutputData::~OutputData() {
    982   SharedDtor();
    983 }
    984 
    985 void OutputData::SharedDtor() {
    986   if (this != default_instance_) {
    987   }
    988 }
    989 
    990 void OutputData::SetCachedSize(int size) const {
    991   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
    992   _cached_size_ = size;
    993   GOOGLE_SAFE_CONCURRENT_WRITES_END();
    994 }
    995 const OutputData& OutputData::default_instance() {
    996   if (default_instance_ == NULL) protobuf_AddDesc_audio_5fprocessing_5funittest_2eproto();  return *default_instance_;
    997 }
    998 
    999 OutputData* OutputData::default_instance_ = NULL;
   1000 
   1001 OutputData* OutputData::New() const {
   1002   return new OutputData;
   1003 }
   1004 
   1005 void OutputData::Clear() {
   1006   test_.Clear();
   1007   ::memset(_has_bits_, 0, sizeof(_has_bits_));
   1008 }
   1009 
   1010 bool OutputData::MergePartialFromCodedStream(
   1011     ::google::protobuf::io::CodedInputStream* input) {
   1012 #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
   1013   ::google::protobuf::uint32 tag;
   1014   while ((tag = input->ReadTag()) != 0) {
   1015     switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   1016       // repeated .audio_processing_unittest.Test test = 1;
   1017       case 1: {
   1018         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
   1019             ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
   1020          parse_test:
   1021           DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
   1022                 input, add_test()));
   1023         } else {
   1024           goto handle_uninterpreted;
   1025         }
   1026         if (input->ExpectTag(10)) goto parse_test;
   1027         if (input->ExpectAtEnd()) return true;
   1028         break;
   1029       }
   1030 
   1031       default: {
   1032       handle_uninterpreted:
   1033         if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
   1034             ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
   1035           return true;
   1036         }
   1037         DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag, NULL));
   1038         break;
   1039       }
   1040     }
   1041   }
   1042   return true;
   1043 #undef DO_
   1044 }
   1045 
   1046 void OutputData::SerializeWithCachedSizes(
   1047     ::google::protobuf::io::CodedOutputStream* output) const {
   1048   // repeated .audio_processing_unittest.Test test = 1;
   1049   for (int i = 0; i < this->test_size(); i++) {
   1050     ::google::protobuf::internal::WireFormatLite::WriteMessage(
   1051       1, this->test(i), output);
   1052   }
   1053 
   1054 }
   1055 
   1056 int OutputData::ByteSize() const {
   1057   int total_size = 0;
   1058 
   1059   // repeated .audio_processing_unittest.Test test = 1;
   1060   total_size += 1 * this->test_size();
   1061   for (int i = 0; i < this->test_size(); i++) {
   1062     total_size +=
   1063       ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
   1064         this->test(i));
   1065   }
   1066 
   1067   GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
   1068   _cached_size_ = total_size;
   1069   GOOGLE_SAFE_CONCURRENT_WRITES_END();
   1070   return total_size;
   1071 }
   1072 
   1073 void OutputData::CheckTypeAndMergeFrom(
   1074     const ::google::protobuf::MessageLite& from) {
   1075   MergeFrom(*::google::protobuf::down_cast<const OutputData*>(&from));
   1076 }
   1077 
   1078 void OutputData::MergeFrom(const OutputData& from) {
   1079   GOOGLE_CHECK_NE(&from, this);
   1080   test_.MergeFrom(from.test_);
   1081 }
   1082 
   1083 void OutputData::CopyFrom(const OutputData& from) {
   1084   if (&from == this) return;
   1085   Clear();
   1086   MergeFrom(from);
   1087 }
   1088 
   1089 bool OutputData::IsInitialized() const {
   1090 
   1091   return true;
   1092 }
   1093 
   1094 void OutputData::Swap(OutputData* other) {
   1095   if (other != this) {
   1096     test_.Swap(&other->test_);
   1097     std::swap(_has_bits_[0], other->_has_bits_[0]);
   1098     std::swap(_cached_size_, other->_cached_size_);
   1099   }
   1100 }
   1101 
   1102 ::std::string OutputData::GetTypeName() const {
   1103   return "audio_processing_unittest.OutputData";
   1104 }
   1105 
   1106 
   1107 // @@protoc_insertion_point(namespace_scope)
   1108 
   1109 }  // namespace audio_processing_unittest
   1110 
   1111 // @@protoc_insertion_point(global_scope)
   1112