timestamp_duration.pb.cc 92 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/timestamp_duration.proto
  3. #include <google/protobuf/util/internal/testdata/timestamp_duration.pb.h>
  4. #include <algorithm>
  5. #include <google/protobuf/stubs/common.h>
  6. #include <google/protobuf/stubs/port.h>
  7. #include <google/protobuf/io/coded_stream.h>
  8. #include <google/protobuf/wire_format_lite_inl.h>
  9. #include <google/protobuf/descriptor.h>
  10. #include <google/protobuf/generated_message_reflection.h>
  11. #include <google/protobuf/reflection_ops.h>
  12. #include <google/protobuf/wire_format.h>
  13. // This is a temporary google only hack
  14. #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  15. #include "third_party/protobuf/version.h"
  16. #endif
  17. // @@protoc_insertion_point(includes)
  18. namespace protobuf_google_2fprotobuf_2fduration_2eproto {
  19. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration;
  20. } // namespace protobuf_google_2fprotobuf_2fduration_2eproto
  21. namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto {
  22. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp;
  23. } // namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto
  24. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto {
  25. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DurationType;
  26. extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TimeStampType;
  27. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto
  28. namespace google {
  29. namespace protobuf {
  30. namespace testing {
  31. class TimestampDurationTestCasesDefaultTypeInternal {
  32. public:
  33. ::google::protobuf::internal::ExplicitlyConstructed<TimestampDurationTestCases>
  34. _instance;
  35. } _TimestampDurationTestCases_default_instance_;
  36. class TimeStampTypeDefaultTypeInternal {
  37. public:
  38. ::google::protobuf::internal::ExplicitlyConstructed<TimeStampType>
  39. _instance;
  40. } _TimeStampType_default_instance_;
  41. class DurationTypeDefaultTypeInternal {
  42. public:
  43. ::google::protobuf::internal::ExplicitlyConstructed<DurationType>
  44. _instance;
  45. } _DurationType_default_instance_;
  46. class TimestampDurationDefaultTypeInternal {
  47. public:
  48. ::google::protobuf::internal::ExplicitlyConstructed<TimestampDuration>
  49. _instance;
  50. } _TimestampDuration_default_instance_;
  51. } // namespace testing
  52. } // namespace protobuf
  53. } // namespace google
  54. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto {
  55. static void InitDefaultsTimestampDurationTestCases() {
  56. GOOGLE_PROTOBUF_VERIFY_VERSION;
  57. {
  58. void* ptr = &::google::protobuf::testing::_TimestampDurationTestCases_default_instance_;
  59. new (ptr) ::google::protobuf::testing::TimestampDurationTestCases();
  60. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  61. }
  62. ::google::protobuf::testing::TimestampDurationTestCases::InitAsDefaultInstance();
  63. }
  64. ::google::protobuf::internal::SCCInfo<4> scc_info_TimestampDurationTestCases =
  65. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTimestampDurationTestCases}, {
  66. &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimeStampType.base,
  67. &protobuf_google_2fprotobuf_2ftimestamp_2eproto::scc_info_Timestamp.base,
  68. &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_DurationType.base,
  69. &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}};
  70. static void InitDefaultsTimeStampType() {
  71. GOOGLE_PROTOBUF_VERIFY_VERSION;
  72. {
  73. void* ptr = &::google::protobuf::testing::_TimeStampType_default_instance_;
  74. new (ptr) ::google::protobuf::testing::TimeStampType();
  75. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  76. }
  77. ::google::protobuf::testing::TimeStampType::InitAsDefaultInstance();
  78. }
  79. ::google::protobuf::internal::SCCInfo<1> scc_info_TimeStampType =
  80. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTimeStampType}, {
  81. &protobuf_google_2fprotobuf_2ftimestamp_2eproto::scc_info_Timestamp.base,}};
  82. static void InitDefaultsDurationType() {
  83. GOOGLE_PROTOBUF_VERIFY_VERSION;
  84. {
  85. void* ptr = &::google::protobuf::testing::_DurationType_default_instance_;
  86. new (ptr) ::google::protobuf::testing::DurationType();
  87. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  88. }
  89. ::google::protobuf::testing::DurationType::InitAsDefaultInstance();
  90. }
  91. ::google::protobuf::internal::SCCInfo<1> scc_info_DurationType =
  92. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDurationType}, {
  93. &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}};
  94. static void InitDefaultsTimestampDuration() {
  95. GOOGLE_PROTOBUF_VERIFY_VERSION;
  96. {
  97. void* ptr = &::google::protobuf::testing::_TimestampDuration_default_instance_;
  98. new (ptr) ::google::protobuf::testing::TimestampDuration();
  99. ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  100. }
  101. ::google::protobuf::testing::TimestampDuration::InitAsDefaultInstance();
  102. }
  103. ::google::protobuf::internal::SCCInfo<2> scc_info_TimestampDuration =
  104. {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTimestampDuration}, {
  105. &protobuf_google_2fprotobuf_2ftimestamp_2eproto::scc_info_Timestamp.base,
  106. &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}};
  107. void InitDefaults() {
  108. ::google::protobuf::internal::InitSCC(&scc_info_TimestampDurationTestCases.base);
  109. ::google::protobuf::internal::InitSCC(&scc_info_TimeStampType.base);
  110. ::google::protobuf::internal::InitSCC(&scc_info_DurationType.base);
  111. ::google::protobuf::internal::InitSCC(&scc_info_TimestampDuration.base);
  112. }
  113. ::google::protobuf::Metadata file_level_metadata[4];
  114. const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  115. ~0u, // no _has_bits_
  116. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, _internal_metadata_),
  117. ~0u, // no _extensions_
  118. ~0u, // no _oneof_case_
  119. ~0u, // no _weak_field_map_
  120. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, epoch_),
  121. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, epoch2_),
  122. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, mintime_),
  123. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, maxtime_),
  124. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval1_),
  125. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval2_),
  126. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval3_),
  127. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval4_),
  128. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval5_),
  129. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval6_),
  130. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval7_),
  131. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval8_),
  132. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, zero_duration_),
  133. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, min_duration_),
  134. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, max_duration_),
  135. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration1_),
  136. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration2_),
  137. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration3_),
  138. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration4_),
  139. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration5_),
  140. ~0u, // no _has_bits_
  141. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimeStampType, _internal_metadata_),
  142. ~0u, // no _extensions_
  143. ~0u, // no _oneof_case_
  144. ~0u, // no _weak_field_map_
  145. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimeStampType, timestamp_),
  146. ~0u, // no _has_bits_
  147. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DurationType, _internal_metadata_),
  148. ~0u, // no _extensions_
  149. ~0u, // no _oneof_case_
  150. ~0u, // no _weak_field_map_
  151. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DurationType, duration_),
  152. ~0u, // no _has_bits_
  153. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDuration, _internal_metadata_),
  154. ~0u, // no _extensions_
  155. ~0u, // no _oneof_case_
  156. ~0u, // no _weak_field_map_
  157. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDuration, ts_),
  158. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDuration, dur_),
  159. GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDuration, rep_ts_),
  160. };
  161. static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  162. { 0, -1, sizeof(::google::protobuf::testing::TimestampDurationTestCases)},
  163. { 25, -1, sizeof(::google::protobuf::testing::TimeStampType)},
  164. { 31, -1, sizeof(::google::protobuf::testing::DurationType)},
  165. { 37, -1, sizeof(::google::protobuf::testing::TimestampDuration)},
  166. };
  167. static ::google::protobuf::Message const * const file_default_instances[] = {
  168. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_TimestampDurationTestCases_default_instance_),
  169. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_TimeStampType_default_instance_),
  170. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_DurationType_default_instance_),
  171. reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_TimestampDuration_default_instance_),
  172. };
  173. void protobuf_AssignDescriptors() {
  174. AddDescriptors();
  175. AssignDescriptors(
  176. "google/protobuf/util/internal/testdata/timestamp_duration.proto", schemas, file_default_instances, TableStruct::offsets,
  177. file_level_metadata, NULL, NULL);
  178. }
  179. void protobuf_AssignDescriptorsOnce() {
  180. static ::google::protobuf::internal::once_flag once;
  181. ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
  182. }
  183. void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
  184. void protobuf_RegisterTypes(const ::std::string&) {
  185. protobuf_AssignDescriptorsOnce();
  186. ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
  187. }
  188. void AddDescriptorsImpl() {
  189. InitDefaults();
  190. static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  191. "\n\?google/protobuf/util/internal/testdata"
  192. "/timestamp_duration.proto\022\027google.protob"
  193. "uf.testing\032\037google/protobuf/timestamp.pr"
  194. "oto\032\036google/protobuf/duration.proto\"\217\t\n\032"
  195. "TimestampDurationTestCases\0225\n\005epoch\030\001 \001("
  196. "\0132&.google.protobuf.testing.TimeStampTyp"
  197. "e\0226\n\006epoch2\030\002 \001(\0132&.google.protobuf.test"
  198. "ing.TimeStampType\0227\n\007mintime\030\003 \001(\0132&.goo"
  199. "gle.protobuf.testing.TimeStampType\0227\n\007ma"
  200. "xtime\030\004 \001(\0132&.google.protobuf.testing.Ti"
  201. "meStampType\0228\n\010timeval1\030\005 \001(\0132&.google.p"
  202. "rotobuf.testing.TimeStampType\0228\n\010timeval"
  203. "2\030\006 \001(\0132&.google.protobuf.testing.TimeSt"
  204. "ampType\0228\n\010timeval3\030\007 \001(\0132&.google.proto"
  205. "buf.testing.TimeStampType\0228\n\010timeval4\030\010 "
  206. "\001(\0132&.google.protobuf.testing.TimeStampT"
  207. "ype\0228\n\010timeval5\030\t \001(\0132&.google.protobuf."
  208. "testing.TimeStampType\0228\n\010timeval6\030\n \001(\0132"
  209. "&.google.protobuf.testing.TimeStampType\022"
  210. "8\n\010timeval7\030\013 \001(\0132&.google.protobuf.test"
  211. "ing.TimeStampType\022,\n\010timeval8\030\014 \001(\0132\032.go"
  212. "ogle.protobuf.Timestamp\022<\n\rzero_duration"
  213. "\030e \001(\0132%.google.protobuf.testing.Duratio"
  214. "nType\022;\n\014min_duration\030f \001(\0132%.google.pro"
  215. "tobuf.testing.DurationType\022;\n\014max_durati"
  216. "on\030g \001(\0132%.google.protobuf.testing.Durat"
  217. "ionType\0228\n\tduration1\030h \001(\0132%.google.prot"
  218. "obuf.testing.DurationType\0228\n\tduration2\030i"
  219. " \001(\0132%.google.protobuf.testing.DurationT"
  220. "ype\0228\n\tduration3\030j \001(\0132%.google.protobuf"
  221. ".testing.DurationType\0228\n\tduration4\030k \001(\013"
  222. "2%.google.protobuf.testing.DurationType\022"
  223. ",\n\tduration5\030l \001(\0132\031.google.protobuf.Dur"
  224. "ation\">\n\rTimeStampType\022-\n\ttimestamp\030\001 \001("
  225. "\0132\032.google.protobuf.Timestamp\";\n\014Duratio"
  226. "nType\022+\n\010duration\030\001 \001(\0132\031.google.protobu"
  227. "f.Duration\"\217\001\n\021TimestampDuration\022&\n\002ts\030\001"
  228. " \001(\0132\032.google.protobuf.Timestamp\022&\n\003dur\030"
  229. "\002 \001(\0132\031.google.protobuf.Duration\022*\n\006rep_"
  230. "ts\030\003 \003(\0132\032.google.protobuf.Timestamp2\220\001\n"
  231. "\034TimestampDurationTestService\022p\n\004Call\0223."
  232. "google.protobuf.testing.TimestampDuratio"
  233. "nTestCases\0323.google.protobuf.testing.Tim"
  234. "estampDurationTestCasesb\006proto3"
  235. };
  236. ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
  237. descriptor, 1751);
  238. ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
  239. "google/protobuf/util/internal/testdata/timestamp_duration.proto", &protobuf_RegisterTypes);
  240. ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
  241. ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors();
  242. }
  243. void AddDescriptors() {
  244. static ::google::protobuf::internal::once_flag once;
  245. ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
  246. }
  247. // Force AddDescriptors() to be called at dynamic initialization time.
  248. struct StaticDescriptorInitializer {
  249. StaticDescriptorInitializer() {
  250. AddDescriptors();
  251. }
  252. } static_descriptor_initializer;
  253. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto
  254. namespace google {
  255. namespace protobuf {
  256. namespace testing {
  257. // ===================================================================
  258. void TimestampDurationTestCases::InitAsDefaultInstance() {
  259. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->epoch_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  260. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  261. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->epoch2_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  262. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  263. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->mintime_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  264. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  265. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->maxtime_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  266. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  267. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval1_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  268. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  269. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval2_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  270. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  271. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval3_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  272. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  273. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval4_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  274. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  275. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval5_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  276. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  277. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval6_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  278. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  279. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval7_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
  280. ::google::protobuf::testing::TimeStampType::internal_default_instance());
  281. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval8_ = const_cast< ::google::protobuf::Timestamp*>(
  282. ::google::protobuf::Timestamp::internal_default_instance());
  283. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->zero_duration_ = const_cast< ::google::protobuf::testing::DurationType*>(
  284. ::google::protobuf::testing::DurationType::internal_default_instance());
  285. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->min_duration_ = const_cast< ::google::protobuf::testing::DurationType*>(
  286. ::google::protobuf::testing::DurationType::internal_default_instance());
  287. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->max_duration_ = const_cast< ::google::protobuf::testing::DurationType*>(
  288. ::google::protobuf::testing::DurationType::internal_default_instance());
  289. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration1_ = const_cast< ::google::protobuf::testing::DurationType*>(
  290. ::google::protobuf::testing::DurationType::internal_default_instance());
  291. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration2_ = const_cast< ::google::protobuf::testing::DurationType*>(
  292. ::google::protobuf::testing::DurationType::internal_default_instance());
  293. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration3_ = const_cast< ::google::protobuf::testing::DurationType*>(
  294. ::google::protobuf::testing::DurationType::internal_default_instance());
  295. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration4_ = const_cast< ::google::protobuf::testing::DurationType*>(
  296. ::google::protobuf::testing::DurationType::internal_default_instance());
  297. ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration5_ = const_cast< ::google::protobuf::Duration*>(
  298. ::google::protobuf::Duration::internal_default_instance());
  299. }
  300. void TimestampDurationTestCases::clear_timeval8() {
  301. if (GetArenaNoVirtual() == NULL && timeval8_ != NULL) {
  302. delete timeval8_;
  303. }
  304. timeval8_ = NULL;
  305. }
  306. void TimestampDurationTestCases::clear_duration5() {
  307. if (GetArenaNoVirtual() == NULL && duration5_ != NULL) {
  308. delete duration5_;
  309. }
  310. duration5_ = NULL;
  311. }
  312. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  313. const int TimestampDurationTestCases::kEpochFieldNumber;
  314. const int TimestampDurationTestCases::kEpoch2FieldNumber;
  315. const int TimestampDurationTestCases::kMintimeFieldNumber;
  316. const int TimestampDurationTestCases::kMaxtimeFieldNumber;
  317. const int TimestampDurationTestCases::kTimeval1FieldNumber;
  318. const int TimestampDurationTestCases::kTimeval2FieldNumber;
  319. const int TimestampDurationTestCases::kTimeval3FieldNumber;
  320. const int TimestampDurationTestCases::kTimeval4FieldNumber;
  321. const int TimestampDurationTestCases::kTimeval5FieldNumber;
  322. const int TimestampDurationTestCases::kTimeval6FieldNumber;
  323. const int TimestampDurationTestCases::kTimeval7FieldNumber;
  324. const int TimestampDurationTestCases::kTimeval8FieldNumber;
  325. const int TimestampDurationTestCases::kZeroDurationFieldNumber;
  326. const int TimestampDurationTestCases::kMinDurationFieldNumber;
  327. const int TimestampDurationTestCases::kMaxDurationFieldNumber;
  328. const int TimestampDurationTestCases::kDuration1FieldNumber;
  329. const int TimestampDurationTestCases::kDuration2FieldNumber;
  330. const int TimestampDurationTestCases::kDuration3FieldNumber;
  331. const int TimestampDurationTestCases::kDuration4FieldNumber;
  332. const int TimestampDurationTestCases::kDuration5FieldNumber;
  333. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  334. TimestampDurationTestCases::TimestampDurationTestCases()
  335. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  336. ::google::protobuf::internal::InitSCC(
  337. &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimestampDurationTestCases.base);
  338. SharedCtor();
  339. // @@protoc_insertion_point(constructor:google.protobuf.testing.TimestampDurationTestCases)
  340. }
  341. TimestampDurationTestCases::TimestampDurationTestCases(const TimestampDurationTestCases& from)
  342. : ::google::protobuf::Message(),
  343. _internal_metadata_(NULL) {
  344. _internal_metadata_.MergeFrom(from._internal_metadata_);
  345. if (from.has_epoch()) {
  346. epoch_ = new ::google::protobuf::testing::TimeStampType(*from.epoch_);
  347. } else {
  348. epoch_ = NULL;
  349. }
  350. if (from.has_epoch2()) {
  351. epoch2_ = new ::google::protobuf::testing::TimeStampType(*from.epoch2_);
  352. } else {
  353. epoch2_ = NULL;
  354. }
  355. if (from.has_mintime()) {
  356. mintime_ = new ::google::protobuf::testing::TimeStampType(*from.mintime_);
  357. } else {
  358. mintime_ = NULL;
  359. }
  360. if (from.has_maxtime()) {
  361. maxtime_ = new ::google::protobuf::testing::TimeStampType(*from.maxtime_);
  362. } else {
  363. maxtime_ = NULL;
  364. }
  365. if (from.has_timeval1()) {
  366. timeval1_ = new ::google::protobuf::testing::TimeStampType(*from.timeval1_);
  367. } else {
  368. timeval1_ = NULL;
  369. }
  370. if (from.has_timeval2()) {
  371. timeval2_ = new ::google::protobuf::testing::TimeStampType(*from.timeval2_);
  372. } else {
  373. timeval2_ = NULL;
  374. }
  375. if (from.has_timeval3()) {
  376. timeval3_ = new ::google::protobuf::testing::TimeStampType(*from.timeval3_);
  377. } else {
  378. timeval3_ = NULL;
  379. }
  380. if (from.has_timeval4()) {
  381. timeval4_ = new ::google::protobuf::testing::TimeStampType(*from.timeval4_);
  382. } else {
  383. timeval4_ = NULL;
  384. }
  385. if (from.has_timeval5()) {
  386. timeval5_ = new ::google::protobuf::testing::TimeStampType(*from.timeval5_);
  387. } else {
  388. timeval5_ = NULL;
  389. }
  390. if (from.has_timeval6()) {
  391. timeval6_ = new ::google::protobuf::testing::TimeStampType(*from.timeval6_);
  392. } else {
  393. timeval6_ = NULL;
  394. }
  395. if (from.has_timeval7()) {
  396. timeval7_ = new ::google::protobuf::testing::TimeStampType(*from.timeval7_);
  397. } else {
  398. timeval7_ = NULL;
  399. }
  400. if (from.has_timeval8()) {
  401. timeval8_ = new ::google::protobuf::Timestamp(*from.timeval8_);
  402. } else {
  403. timeval8_ = NULL;
  404. }
  405. if (from.has_zero_duration()) {
  406. zero_duration_ = new ::google::protobuf::testing::DurationType(*from.zero_duration_);
  407. } else {
  408. zero_duration_ = NULL;
  409. }
  410. if (from.has_min_duration()) {
  411. min_duration_ = new ::google::protobuf::testing::DurationType(*from.min_duration_);
  412. } else {
  413. min_duration_ = NULL;
  414. }
  415. if (from.has_max_duration()) {
  416. max_duration_ = new ::google::protobuf::testing::DurationType(*from.max_duration_);
  417. } else {
  418. max_duration_ = NULL;
  419. }
  420. if (from.has_duration1()) {
  421. duration1_ = new ::google::protobuf::testing::DurationType(*from.duration1_);
  422. } else {
  423. duration1_ = NULL;
  424. }
  425. if (from.has_duration2()) {
  426. duration2_ = new ::google::protobuf::testing::DurationType(*from.duration2_);
  427. } else {
  428. duration2_ = NULL;
  429. }
  430. if (from.has_duration3()) {
  431. duration3_ = new ::google::protobuf::testing::DurationType(*from.duration3_);
  432. } else {
  433. duration3_ = NULL;
  434. }
  435. if (from.has_duration4()) {
  436. duration4_ = new ::google::protobuf::testing::DurationType(*from.duration4_);
  437. } else {
  438. duration4_ = NULL;
  439. }
  440. if (from.has_duration5()) {
  441. duration5_ = new ::google::protobuf::Duration(*from.duration5_);
  442. } else {
  443. duration5_ = NULL;
  444. }
  445. // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.TimestampDurationTestCases)
  446. }
  447. void TimestampDurationTestCases::SharedCtor() {
  448. ::memset(&epoch_, 0, static_cast<size_t>(
  449. reinterpret_cast<char*>(&duration5_) -
  450. reinterpret_cast<char*>(&epoch_)) + sizeof(duration5_));
  451. }
  452. TimestampDurationTestCases::~TimestampDurationTestCases() {
  453. // @@protoc_insertion_point(destructor:google.protobuf.testing.TimestampDurationTestCases)
  454. SharedDtor();
  455. }
  456. void TimestampDurationTestCases::SharedDtor() {
  457. if (this != internal_default_instance()) delete epoch_;
  458. if (this != internal_default_instance()) delete epoch2_;
  459. if (this != internal_default_instance()) delete mintime_;
  460. if (this != internal_default_instance()) delete maxtime_;
  461. if (this != internal_default_instance()) delete timeval1_;
  462. if (this != internal_default_instance()) delete timeval2_;
  463. if (this != internal_default_instance()) delete timeval3_;
  464. if (this != internal_default_instance()) delete timeval4_;
  465. if (this != internal_default_instance()) delete timeval5_;
  466. if (this != internal_default_instance()) delete timeval6_;
  467. if (this != internal_default_instance()) delete timeval7_;
  468. if (this != internal_default_instance()) delete timeval8_;
  469. if (this != internal_default_instance()) delete zero_duration_;
  470. if (this != internal_default_instance()) delete min_duration_;
  471. if (this != internal_default_instance()) delete max_duration_;
  472. if (this != internal_default_instance()) delete duration1_;
  473. if (this != internal_default_instance()) delete duration2_;
  474. if (this != internal_default_instance()) delete duration3_;
  475. if (this != internal_default_instance()) delete duration4_;
  476. if (this != internal_default_instance()) delete duration5_;
  477. }
  478. void TimestampDurationTestCases::SetCachedSize(int size) const {
  479. _cached_size_.Set(size);
  480. }
  481. const ::google::protobuf::Descriptor* TimestampDurationTestCases::descriptor() {
  482. ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
  483. return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  484. }
  485. const TimestampDurationTestCases& TimestampDurationTestCases::default_instance() {
  486. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimestampDurationTestCases.base);
  487. return *internal_default_instance();
  488. }
  489. void TimestampDurationTestCases::Clear() {
  490. // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.TimestampDurationTestCases)
  491. ::google::protobuf::uint32 cached_has_bits = 0;
  492. // Prevent compiler warnings about cached_has_bits being unused
  493. (void) cached_has_bits;
  494. if (GetArenaNoVirtual() == NULL && epoch_ != NULL) {
  495. delete epoch_;
  496. }
  497. epoch_ = NULL;
  498. if (GetArenaNoVirtual() == NULL && epoch2_ != NULL) {
  499. delete epoch2_;
  500. }
  501. epoch2_ = NULL;
  502. if (GetArenaNoVirtual() == NULL && mintime_ != NULL) {
  503. delete mintime_;
  504. }
  505. mintime_ = NULL;
  506. if (GetArenaNoVirtual() == NULL && maxtime_ != NULL) {
  507. delete maxtime_;
  508. }
  509. maxtime_ = NULL;
  510. if (GetArenaNoVirtual() == NULL && timeval1_ != NULL) {
  511. delete timeval1_;
  512. }
  513. timeval1_ = NULL;
  514. if (GetArenaNoVirtual() == NULL && timeval2_ != NULL) {
  515. delete timeval2_;
  516. }
  517. timeval2_ = NULL;
  518. if (GetArenaNoVirtual() == NULL && timeval3_ != NULL) {
  519. delete timeval3_;
  520. }
  521. timeval3_ = NULL;
  522. if (GetArenaNoVirtual() == NULL && timeval4_ != NULL) {
  523. delete timeval4_;
  524. }
  525. timeval4_ = NULL;
  526. if (GetArenaNoVirtual() == NULL && timeval5_ != NULL) {
  527. delete timeval5_;
  528. }
  529. timeval5_ = NULL;
  530. if (GetArenaNoVirtual() == NULL && timeval6_ != NULL) {
  531. delete timeval6_;
  532. }
  533. timeval6_ = NULL;
  534. if (GetArenaNoVirtual() == NULL && timeval7_ != NULL) {
  535. delete timeval7_;
  536. }
  537. timeval7_ = NULL;
  538. if (GetArenaNoVirtual() == NULL && timeval8_ != NULL) {
  539. delete timeval8_;
  540. }
  541. timeval8_ = NULL;
  542. if (GetArenaNoVirtual() == NULL && zero_duration_ != NULL) {
  543. delete zero_duration_;
  544. }
  545. zero_duration_ = NULL;
  546. if (GetArenaNoVirtual() == NULL && min_duration_ != NULL) {
  547. delete min_duration_;
  548. }
  549. min_duration_ = NULL;
  550. if (GetArenaNoVirtual() == NULL && max_duration_ != NULL) {
  551. delete max_duration_;
  552. }
  553. max_duration_ = NULL;
  554. if (GetArenaNoVirtual() == NULL && duration1_ != NULL) {
  555. delete duration1_;
  556. }
  557. duration1_ = NULL;
  558. if (GetArenaNoVirtual() == NULL && duration2_ != NULL) {
  559. delete duration2_;
  560. }
  561. duration2_ = NULL;
  562. if (GetArenaNoVirtual() == NULL && duration3_ != NULL) {
  563. delete duration3_;
  564. }
  565. duration3_ = NULL;
  566. if (GetArenaNoVirtual() == NULL && duration4_ != NULL) {
  567. delete duration4_;
  568. }
  569. duration4_ = NULL;
  570. if (GetArenaNoVirtual() == NULL && duration5_ != NULL) {
  571. delete duration5_;
  572. }
  573. duration5_ = NULL;
  574. _internal_metadata_.Clear();
  575. }
  576. bool TimestampDurationTestCases::MergePartialFromCodedStream(
  577. ::google::protobuf::io::CodedInputStream* input) {
  578. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  579. ::google::protobuf::uint32 tag;
  580. // @@protoc_insertion_point(parse_start:google.protobuf.testing.TimestampDurationTestCases)
  581. for (;;) {
  582. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
  583. tag = p.first;
  584. if (!p.second) goto handle_unusual;
  585. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  586. // .google.protobuf.testing.TimeStampType epoch = 1;
  587. case 1: {
  588. if (static_cast< ::google::protobuf::uint8>(tag) ==
  589. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  590. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  591. input, mutable_epoch()));
  592. } else {
  593. goto handle_unusual;
  594. }
  595. break;
  596. }
  597. // .google.protobuf.testing.TimeStampType epoch2 = 2;
  598. case 2: {
  599. if (static_cast< ::google::protobuf::uint8>(tag) ==
  600. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  601. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  602. input, mutable_epoch2()));
  603. } else {
  604. goto handle_unusual;
  605. }
  606. break;
  607. }
  608. // .google.protobuf.testing.TimeStampType mintime = 3;
  609. case 3: {
  610. if (static_cast< ::google::protobuf::uint8>(tag) ==
  611. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  612. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  613. input, mutable_mintime()));
  614. } else {
  615. goto handle_unusual;
  616. }
  617. break;
  618. }
  619. // .google.protobuf.testing.TimeStampType maxtime = 4;
  620. case 4: {
  621. if (static_cast< ::google::protobuf::uint8>(tag) ==
  622. static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
  623. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  624. input, mutable_maxtime()));
  625. } else {
  626. goto handle_unusual;
  627. }
  628. break;
  629. }
  630. // .google.protobuf.testing.TimeStampType timeval1 = 5;
  631. case 5: {
  632. if (static_cast< ::google::protobuf::uint8>(tag) ==
  633. static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
  634. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  635. input, mutable_timeval1()));
  636. } else {
  637. goto handle_unusual;
  638. }
  639. break;
  640. }
  641. // .google.protobuf.testing.TimeStampType timeval2 = 6;
  642. case 6: {
  643. if (static_cast< ::google::protobuf::uint8>(tag) ==
  644. static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
  645. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  646. input, mutable_timeval2()));
  647. } else {
  648. goto handle_unusual;
  649. }
  650. break;
  651. }
  652. // .google.protobuf.testing.TimeStampType timeval3 = 7;
  653. case 7: {
  654. if (static_cast< ::google::protobuf::uint8>(tag) ==
  655. static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
  656. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  657. input, mutable_timeval3()));
  658. } else {
  659. goto handle_unusual;
  660. }
  661. break;
  662. }
  663. // .google.protobuf.testing.TimeStampType timeval4 = 8;
  664. case 8: {
  665. if (static_cast< ::google::protobuf::uint8>(tag) ==
  666. static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
  667. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  668. input, mutable_timeval4()));
  669. } else {
  670. goto handle_unusual;
  671. }
  672. break;
  673. }
  674. // .google.protobuf.testing.TimeStampType timeval5 = 9;
  675. case 9: {
  676. if (static_cast< ::google::protobuf::uint8>(tag) ==
  677. static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
  678. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  679. input, mutable_timeval5()));
  680. } else {
  681. goto handle_unusual;
  682. }
  683. break;
  684. }
  685. // .google.protobuf.testing.TimeStampType timeval6 = 10;
  686. case 10: {
  687. if (static_cast< ::google::protobuf::uint8>(tag) ==
  688. static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
  689. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  690. input, mutable_timeval6()));
  691. } else {
  692. goto handle_unusual;
  693. }
  694. break;
  695. }
  696. // .google.protobuf.testing.TimeStampType timeval7 = 11;
  697. case 11: {
  698. if (static_cast< ::google::protobuf::uint8>(tag) ==
  699. static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
  700. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  701. input, mutable_timeval7()));
  702. } else {
  703. goto handle_unusual;
  704. }
  705. break;
  706. }
  707. // .google.protobuf.Timestamp timeval8 = 12;
  708. case 12: {
  709. if (static_cast< ::google::protobuf::uint8>(tag) ==
  710. static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
  711. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  712. input, mutable_timeval8()));
  713. } else {
  714. goto handle_unusual;
  715. }
  716. break;
  717. }
  718. // .google.protobuf.testing.DurationType zero_duration = 101;
  719. case 101: {
  720. if (static_cast< ::google::protobuf::uint8>(tag) ==
  721. static_cast< ::google::protobuf::uint8>(42u /* 810 & 0xFF */)) {
  722. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  723. input, mutable_zero_duration()));
  724. } else {
  725. goto handle_unusual;
  726. }
  727. break;
  728. }
  729. // .google.protobuf.testing.DurationType min_duration = 102;
  730. case 102: {
  731. if (static_cast< ::google::protobuf::uint8>(tag) ==
  732. static_cast< ::google::protobuf::uint8>(50u /* 818 & 0xFF */)) {
  733. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  734. input, mutable_min_duration()));
  735. } else {
  736. goto handle_unusual;
  737. }
  738. break;
  739. }
  740. // .google.protobuf.testing.DurationType max_duration = 103;
  741. case 103: {
  742. if (static_cast< ::google::protobuf::uint8>(tag) ==
  743. static_cast< ::google::protobuf::uint8>(58u /* 826 & 0xFF */)) {
  744. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  745. input, mutable_max_duration()));
  746. } else {
  747. goto handle_unusual;
  748. }
  749. break;
  750. }
  751. // .google.protobuf.testing.DurationType duration1 = 104;
  752. case 104: {
  753. if (static_cast< ::google::protobuf::uint8>(tag) ==
  754. static_cast< ::google::protobuf::uint8>(66u /* 834 & 0xFF */)) {
  755. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  756. input, mutable_duration1()));
  757. } else {
  758. goto handle_unusual;
  759. }
  760. break;
  761. }
  762. // .google.protobuf.testing.DurationType duration2 = 105;
  763. case 105: {
  764. if (static_cast< ::google::protobuf::uint8>(tag) ==
  765. static_cast< ::google::protobuf::uint8>(74u /* 842 & 0xFF */)) {
  766. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  767. input, mutable_duration2()));
  768. } else {
  769. goto handle_unusual;
  770. }
  771. break;
  772. }
  773. // .google.protobuf.testing.DurationType duration3 = 106;
  774. case 106: {
  775. if (static_cast< ::google::protobuf::uint8>(tag) ==
  776. static_cast< ::google::protobuf::uint8>(82u /* 850 & 0xFF */)) {
  777. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  778. input, mutable_duration3()));
  779. } else {
  780. goto handle_unusual;
  781. }
  782. break;
  783. }
  784. // .google.protobuf.testing.DurationType duration4 = 107;
  785. case 107: {
  786. if (static_cast< ::google::protobuf::uint8>(tag) ==
  787. static_cast< ::google::protobuf::uint8>(90u /* 858 & 0xFF */)) {
  788. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  789. input, mutable_duration4()));
  790. } else {
  791. goto handle_unusual;
  792. }
  793. break;
  794. }
  795. // .google.protobuf.Duration duration5 = 108;
  796. case 108: {
  797. if (static_cast< ::google::protobuf::uint8>(tag) ==
  798. static_cast< ::google::protobuf::uint8>(98u /* 866 & 0xFF */)) {
  799. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  800. input, mutable_duration5()));
  801. } else {
  802. goto handle_unusual;
  803. }
  804. break;
  805. }
  806. default: {
  807. handle_unusual:
  808. if (tag == 0) {
  809. goto success;
  810. }
  811. DO_(::google::protobuf::internal::WireFormat::SkipField(
  812. input, tag, _internal_metadata_.mutable_unknown_fields()));
  813. break;
  814. }
  815. }
  816. }
  817. success:
  818. // @@protoc_insertion_point(parse_success:google.protobuf.testing.TimestampDurationTestCases)
  819. return true;
  820. failure:
  821. // @@protoc_insertion_point(parse_failure:google.protobuf.testing.TimestampDurationTestCases)
  822. return false;
  823. #undef DO_
  824. }
  825. void TimestampDurationTestCases::SerializeWithCachedSizes(
  826. ::google::protobuf::io::CodedOutputStream* output) const {
  827. // @@protoc_insertion_point(serialize_start:google.protobuf.testing.TimestampDurationTestCases)
  828. ::google::protobuf::uint32 cached_has_bits = 0;
  829. (void) cached_has_bits;
  830. // .google.protobuf.testing.TimeStampType epoch = 1;
  831. if (this->has_epoch()) {
  832. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  833. 1, this->_internal_epoch(), output);
  834. }
  835. // .google.protobuf.testing.TimeStampType epoch2 = 2;
  836. if (this->has_epoch2()) {
  837. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  838. 2, this->_internal_epoch2(), output);
  839. }
  840. // .google.protobuf.testing.TimeStampType mintime = 3;
  841. if (this->has_mintime()) {
  842. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  843. 3, this->_internal_mintime(), output);
  844. }
  845. // .google.protobuf.testing.TimeStampType maxtime = 4;
  846. if (this->has_maxtime()) {
  847. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  848. 4, this->_internal_maxtime(), output);
  849. }
  850. // .google.protobuf.testing.TimeStampType timeval1 = 5;
  851. if (this->has_timeval1()) {
  852. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  853. 5, this->_internal_timeval1(), output);
  854. }
  855. // .google.protobuf.testing.TimeStampType timeval2 = 6;
  856. if (this->has_timeval2()) {
  857. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  858. 6, this->_internal_timeval2(), output);
  859. }
  860. // .google.protobuf.testing.TimeStampType timeval3 = 7;
  861. if (this->has_timeval3()) {
  862. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  863. 7, this->_internal_timeval3(), output);
  864. }
  865. // .google.protobuf.testing.TimeStampType timeval4 = 8;
  866. if (this->has_timeval4()) {
  867. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  868. 8, this->_internal_timeval4(), output);
  869. }
  870. // .google.protobuf.testing.TimeStampType timeval5 = 9;
  871. if (this->has_timeval5()) {
  872. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  873. 9, this->_internal_timeval5(), output);
  874. }
  875. // .google.protobuf.testing.TimeStampType timeval6 = 10;
  876. if (this->has_timeval6()) {
  877. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  878. 10, this->_internal_timeval6(), output);
  879. }
  880. // .google.protobuf.testing.TimeStampType timeval7 = 11;
  881. if (this->has_timeval7()) {
  882. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  883. 11, this->_internal_timeval7(), output);
  884. }
  885. // .google.protobuf.Timestamp timeval8 = 12;
  886. if (this->has_timeval8()) {
  887. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  888. 12, this->_internal_timeval8(), output);
  889. }
  890. // .google.protobuf.testing.DurationType zero_duration = 101;
  891. if (this->has_zero_duration()) {
  892. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  893. 101, this->_internal_zero_duration(), output);
  894. }
  895. // .google.protobuf.testing.DurationType min_duration = 102;
  896. if (this->has_min_duration()) {
  897. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  898. 102, this->_internal_min_duration(), output);
  899. }
  900. // .google.protobuf.testing.DurationType max_duration = 103;
  901. if (this->has_max_duration()) {
  902. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  903. 103, this->_internal_max_duration(), output);
  904. }
  905. // .google.protobuf.testing.DurationType duration1 = 104;
  906. if (this->has_duration1()) {
  907. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  908. 104, this->_internal_duration1(), output);
  909. }
  910. // .google.protobuf.testing.DurationType duration2 = 105;
  911. if (this->has_duration2()) {
  912. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  913. 105, this->_internal_duration2(), output);
  914. }
  915. // .google.protobuf.testing.DurationType duration3 = 106;
  916. if (this->has_duration3()) {
  917. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  918. 106, this->_internal_duration3(), output);
  919. }
  920. // .google.protobuf.testing.DurationType duration4 = 107;
  921. if (this->has_duration4()) {
  922. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  923. 107, this->_internal_duration4(), output);
  924. }
  925. // .google.protobuf.Duration duration5 = 108;
  926. if (this->has_duration5()) {
  927. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  928. 108, this->_internal_duration5(), output);
  929. }
  930. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  931. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  932. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  933. }
  934. // @@protoc_insertion_point(serialize_end:google.protobuf.testing.TimestampDurationTestCases)
  935. }
  936. ::google::protobuf::uint8* TimestampDurationTestCases::InternalSerializeWithCachedSizesToArray(
  937. bool deterministic, ::google::protobuf::uint8* target) const {
  938. (void)deterministic; // Unused
  939. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.TimestampDurationTestCases)
  940. ::google::protobuf::uint32 cached_has_bits = 0;
  941. (void) cached_has_bits;
  942. // .google.protobuf.testing.TimeStampType epoch = 1;
  943. if (this->has_epoch()) {
  944. target = ::google::protobuf::internal::WireFormatLite::
  945. InternalWriteMessageToArray(
  946. 1, this->_internal_epoch(), deterministic, target);
  947. }
  948. // .google.protobuf.testing.TimeStampType epoch2 = 2;
  949. if (this->has_epoch2()) {
  950. target = ::google::protobuf::internal::WireFormatLite::
  951. InternalWriteMessageToArray(
  952. 2, this->_internal_epoch2(), deterministic, target);
  953. }
  954. // .google.protobuf.testing.TimeStampType mintime = 3;
  955. if (this->has_mintime()) {
  956. target = ::google::protobuf::internal::WireFormatLite::
  957. InternalWriteMessageToArray(
  958. 3, this->_internal_mintime(), deterministic, target);
  959. }
  960. // .google.protobuf.testing.TimeStampType maxtime = 4;
  961. if (this->has_maxtime()) {
  962. target = ::google::protobuf::internal::WireFormatLite::
  963. InternalWriteMessageToArray(
  964. 4, this->_internal_maxtime(), deterministic, target);
  965. }
  966. // .google.protobuf.testing.TimeStampType timeval1 = 5;
  967. if (this->has_timeval1()) {
  968. target = ::google::protobuf::internal::WireFormatLite::
  969. InternalWriteMessageToArray(
  970. 5, this->_internal_timeval1(), deterministic, target);
  971. }
  972. // .google.protobuf.testing.TimeStampType timeval2 = 6;
  973. if (this->has_timeval2()) {
  974. target = ::google::protobuf::internal::WireFormatLite::
  975. InternalWriteMessageToArray(
  976. 6, this->_internal_timeval2(), deterministic, target);
  977. }
  978. // .google.protobuf.testing.TimeStampType timeval3 = 7;
  979. if (this->has_timeval3()) {
  980. target = ::google::protobuf::internal::WireFormatLite::
  981. InternalWriteMessageToArray(
  982. 7, this->_internal_timeval3(), deterministic, target);
  983. }
  984. // .google.protobuf.testing.TimeStampType timeval4 = 8;
  985. if (this->has_timeval4()) {
  986. target = ::google::protobuf::internal::WireFormatLite::
  987. InternalWriteMessageToArray(
  988. 8, this->_internal_timeval4(), deterministic, target);
  989. }
  990. // .google.protobuf.testing.TimeStampType timeval5 = 9;
  991. if (this->has_timeval5()) {
  992. target = ::google::protobuf::internal::WireFormatLite::
  993. InternalWriteMessageToArray(
  994. 9, this->_internal_timeval5(), deterministic, target);
  995. }
  996. // .google.protobuf.testing.TimeStampType timeval6 = 10;
  997. if (this->has_timeval6()) {
  998. target = ::google::protobuf::internal::WireFormatLite::
  999. InternalWriteMessageToArray(
  1000. 10, this->_internal_timeval6(), deterministic, target);
  1001. }
  1002. // .google.protobuf.testing.TimeStampType timeval7 = 11;
  1003. if (this->has_timeval7()) {
  1004. target = ::google::protobuf::internal::WireFormatLite::
  1005. InternalWriteMessageToArray(
  1006. 11, this->_internal_timeval7(), deterministic, target);
  1007. }
  1008. // .google.protobuf.Timestamp timeval8 = 12;
  1009. if (this->has_timeval8()) {
  1010. target = ::google::protobuf::internal::WireFormatLite::
  1011. InternalWriteMessageToArray(
  1012. 12, this->_internal_timeval8(), deterministic, target);
  1013. }
  1014. // .google.protobuf.testing.DurationType zero_duration = 101;
  1015. if (this->has_zero_duration()) {
  1016. target = ::google::protobuf::internal::WireFormatLite::
  1017. InternalWriteMessageToArray(
  1018. 101, this->_internal_zero_duration(), deterministic, target);
  1019. }
  1020. // .google.protobuf.testing.DurationType min_duration = 102;
  1021. if (this->has_min_duration()) {
  1022. target = ::google::protobuf::internal::WireFormatLite::
  1023. InternalWriteMessageToArray(
  1024. 102, this->_internal_min_duration(), deterministic, target);
  1025. }
  1026. // .google.protobuf.testing.DurationType max_duration = 103;
  1027. if (this->has_max_duration()) {
  1028. target = ::google::protobuf::internal::WireFormatLite::
  1029. InternalWriteMessageToArray(
  1030. 103, this->_internal_max_duration(), deterministic, target);
  1031. }
  1032. // .google.protobuf.testing.DurationType duration1 = 104;
  1033. if (this->has_duration1()) {
  1034. target = ::google::protobuf::internal::WireFormatLite::
  1035. InternalWriteMessageToArray(
  1036. 104, this->_internal_duration1(), deterministic, target);
  1037. }
  1038. // .google.protobuf.testing.DurationType duration2 = 105;
  1039. if (this->has_duration2()) {
  1040. target = ::google::protobuf::internal::WireFormatLite::
  1041. InternalWriteMessageToArray(
  1042. 105, this->_internal_duration2(), deterministic, target);
  1043. }
  1044. // .google.protobuf.testing.DurationType duration3 = 106;
  1045. if (this->has_duration3()) {
  1046. target = ::google::protobuf::internal::WireFormatLite::
  1047. InternalWriteMessageToArray(
  1048. 106, this->_internal_duration3(), deterministic, target);
  1049. }
  1050. // .google.protobuf.testing.DurationType duration4 = 107;
  1051. if (this->has_duration4()) {
  1052. target = ::google::protobuf::internal::WireFormatLite::
  1053. InternalWriteMessageToArray(
  1054. 107, this->_internal_duration4(), deterministic, target);
  1055. }
  1056. // .google.protobuf.Duration duration5 = 108;
  1057. if (this->has_duration5()) {
  1058. target = ::google::protobuf::internal::WireFormatLite::
  1059. InternalWriteMessageToArray(
  1060. 108, this->_internal_duration5(), deterministic, target);
  1061. }
  1062. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1063. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1064. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1065. }
  1066. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.TimestampDurationTestCases)
  1067. return target;
  1068. }
  1069. size_t TimestampDurationTestCases::ByteSizeLong() const {
  1070. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.TimestampDurationTestCases)
  1071. size_t total_size = 0;
  1072. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1073. total_size +=
  1074. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1075. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1076. }
  1077. // .google.protobuf.testing.TimeStampType epoch = 1;
  1078. if (this->has_epoch()) {
  1079. total_size += 1 +
  1080. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1081. *epoch_);
  1082. }
  1083. // .google.protobuf.testing.TimeStampType epoch2 = 2;
  1084. if (this->has_epoch2()) {
  1085. total_size += 1 +
  1086. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1087. *epoch2_);
  1088. }
  1089. // .google.protobuf.testing.TimeStampType mintime = 3;
  1090. if (this->has_mintime()) {
  1091. total_size += 1 +
  1092. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1093. *mintime_);
  1094. }
  1095. // .google.protobuf.testing.TimeStampType maxtime = 4;
  1096. if (this->has_maxtime()) {
  1097. total_size += 1 +
  1098. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1099. *maxtime_);
  1100. }
  1101. // .google.protobuf.testing.TimeStampType timeval1 = 5;
  1102. if (this->has_timeval1()) {
  1103. total_size += 1 +
  1104. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1105. *timeval1_);
  1106. }
  1107. // .google.protobuf.testing.TimeStampType timeval2 = 6;
  1108. if (this->has_timeval2()) {
  1109. total_size += 1 +
  1110. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1111. *timeval2_);
  1112. }
  1113. // .google.protobuf.testing.TimeStampType timeval3 = 7;
  1114. if (this->has_timeval3()) {
  1115. total_size += 1 +
  1116. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1117. *timeval3_);
  1118. }
  1119. // .google.protobuf.testing.TimeStampType timeval4 = 8;
  1120. if (this->has_timeval4()) {
  1121. total_size += 1 +
  1122. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1123. *timeval4_);
  1124. }
  1125. // .google.protobuf.testing.TimeStampType timeval5 = 9;
  1126. if (this->has_timeval5()) {
  1127. total_size += 1 +
  1128. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1129. *timeval5_);
  1130. }
  1131. // .google.protobuf.testing.TimeStampType timeval6 = 10;
  1132. if (this->has_timeval6()) {
  1133. total_size += 1 +
  1134. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1135. *timeval6_);
  1136. }
  1137. // .google.protobuf.testing.TimeStampType timeval7 = 11;
  1138. if (this->has_timeval7()) {
  1139. total_size += 1 +
  1140. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1141. *timeval7_);
  1142. }
  1143. // .google.protobuf.Timestamp timeval8 = 12;
  1144. if (this->has_timeval8()) {
  1145. total_size += 1 +
  1146. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1147. *timeval8_);
  1148. }
  1149. // .google.protobuf.testing.DurationType zero_duration = 101;
  1150. if (this->has_zero_duration()) {
  1151. total_size += 2 +
  1152. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1153. *zero_duration_);
  1154. }
  1155. // .google.protobuf.testing.DurationType min_duration = 102;
  1156. if (this->has_min_duration()) {
  1157. total_size += 2 +
  1158. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1159. *min_duration_);
  1160. }
  1161. // .google.protobuf.testing.DurationType max_duration = 103;
  1162. if (this->has_max_duration()) {
  1163. total_size += 2 +
  1164. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1165. *max_duration_);
  1166. }
  1167. // .google.protobuf.testing.DurationType duration1 = 104;
  1168. if (this->has_duration1()) {
  1169. total_size += 2 +
  1170. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1171. *duration1_);
  1172. }
  1173. // .google.protobuf.testing.DurationType duration2 = 105;
  1174. if (this->has_duration2()) {
  1175. total_size += 2 +
  1176. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1177. *duration2_);
  1178. }
  1179. // .google.protobuf.testing.DurationType duration3 = 106;
  1180. if (this->has_duration3()) {
  1181. total_size += 2 +
  1182. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1183. *duration3_);
  1184. }
  1185. // .google.protobuf.testing.DurationType duration4 = 107;
  1186. if (this->has_duration4()) {
  1187. total_size += 2 +
  1188. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1189. *duration4_);
  1190. }
  1191. // .google.protobuf.Duration duration5 = 108;
  1192. if (this->has_duration5()) {
  1193. total_size += 2 +
  1194. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1195. *duration5_);
  1196. }
  1197. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1198. SetCachedSize(cached_size);
  1199. return total_size;
  1200. }
  1201. void TimestampDurationTestCases::MergeFrom(const ::google::protobuf::Message& from) {
  1202. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.TimestampDurationTestCases)
  1203. GOOGLE_DCHECK_NE(&from, this);
  1204. const TimestampDurationTestCases* source =
  1205. ::google::protobuf::internal::DynamicCastToGenerated<const TimestampDurationTestCases>(
  1206. &from);
  1207. if (source == NULL) {
  1208. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.TimestampDurationTestCases)
  1209. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1210. } else {
  1211. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.TimestampDurationTestCases)
  1212. MergeFrom(*source);
  1213. }
  1214. }
  1215. void TimestampDurationTestCases::MergeFrom(const TimestampDurationTestCases& from) {
  1216. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.TimestampDurationTestCases)
  1217. GOOGLE_DCHECK_NE(&from, this);
  1218. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1219. ::google::protobuf::uint32 cached_has_bits = 0;
  1220. (void) cached_has_bits;
  1221. if (from.has_epoch()) {
  1222. mutable_epoch()->::google::protobuf::testing::TimeStampType::MergeFrom(from.epoch());
  1223. }
  1224. if (from.has_epoch2()) {
  1225. mutable_epoch2()->::google::protobuf::testing::TimeStampType::MergeFrom(from.epoch2());
  1226. }
  1227. if (from.has_mintime()) {
  1228. mutable_mintime()->::google::protobuf::testing::TimeStampType::MergeFrom(from.mintime());
  1229. }
  1230. if (from.has_maxtime()) {
  1231. mutable_maxtime()->::google::protobuf::testing::TimeStampType::MergeFrom(from.maxtime());
  1232. }
  1233. if (from.has_timeval1()) {
  1234. mutable_timeval1()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval1());
  1235. }
  1236. if (from.has_timeval2()) {
  1237. mutable_timeval2()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval2());
  1238. }
  1239. if (from.has_timeval3()) {
  1240. mutable_timeval3()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval3());
  1241. }
  1242. if (from.has_timeval4()) {
  1243. mutable_timeval4()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval4());
  1244. }
  1245. if (from.has_timeval5()) {
  1246. mutable_timeval5()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval5());
  1247. }
  1248. if (from.has_timeval6()) {
  1249. mutable_timeval6()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval6());
  1250. }
  1251. if (from.has_timeval7()) {
  1252. mutable_timeval7()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval7());
  1253. }
  1254. if (from.has_timeval8()) {
  1255. mutable_timeval8()->::google::protobuf::Timestamp::MergeFrom(from.timeval8());
  1256. }
  1257. if (from.has_zero_duration()) {
  1258. mutable_zero_duration()->::google::protobuf::testing::DurationType::MergeFrom(from.zero_duration());
  1259. }
  1260. if (from.has_min_duration()) {
  1261. mutable_min_duration()->::google::protobuf::testing::DurationType::MergeFrom(from.min_duration());
  1262. }
  1263. if (from.has_max_duration()) {
  1264. mutable_max_duration()->::google::protobuf::testing::DurationType::MergeFrom(from.max_duration());
  1265. }
  1266. if (from.has_duration1()) {
  1267. mutable_duration1()->::google::protobuf::testing::DurationType::MergeFrom(from.duration1());
  1268. }
  1269. if (from.has_duration2()) {
  1270. mutable_duration2()->::google::protobuf::testing::DurationType::MergeFrom(from.duration2());
  1271. }
  1272. if (from.has_duration3()) {
  1273. mutable_duration3()->::google::protobuf::testing::DurationType::MergeFrom(from.duration3());
  1274. }
  1275. if (from.has_duration4()) {
  1276. mutable_duration4()->::google::protobuf::testing::DurationType::MergeFrom(from.duration4());
  1277. }
  1278. if (from.has_duration5()) {
  1279. mutable_duration5()->::google::protobuf::Duration::MergeFrom(from.duration5());
  1280. }
  1281. }
  1282. void TimestampDurationTestCases::CopyFrom(const ::google::protobuf::Message& from) {
  1283. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.TimestampDurationTestCases)
  1284. if (&from == this) return;
  1285. Clear();
  1286. MergeFrom(from);
  1287. }
  1288. void TimestampDurationTestCases::CopyFrom(const TimestampDurationTestCases& from) {
  1289. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.TimestampDurationTestCases)
  1290. if (&from == this) return;
  1291. Clear();
  1292. MergeFrom(from);
  1293. }
  1294. bool TimestampDurationTestCases::IsInitialized() const {
  1295. return true;
  1296. }
  1297. void TimestampDurationTestCases::Swap(TimestampDurationTestCases* other) {
  1298. if (other == this) return;
  1299. InternalSwap(other);
  1300. }
  1301. void TimestampDurationTestCases::InternalSwap(TimestampDurationTestCases* other) {
  1302. using std::swap;
  1303. swap(epoch_, other->epoch_);
  1304. swap(epoch2_, other->epoch2_);
  1305. swap(mintime_, other->mintime_);
  1306. swap(maxtime_, other->maxtime_);
  1307. swap(timeval1_, other->timeval1_);
  1308. swap(timeval2_, other->timeval2_);
  1309. swap(timeval3_, other->timeval3_);
  1310. swap(timeval4_, other->timeval4_);
  1311. swap(timeval5_, other->timeval5_);
  1312. swap(timeval6_, other->timeval6_);
  1313. swap(timeval7_, other->timeval7_);
  1314. swap(timeval8_, other->timeval8_);
  1315. swap(zero_duration_, other->zero_duration_);
  1316. swap(min_duration_, other->min_duration_);
  1317. swap(max_duration_, other->max_duration_);
  1318. swap(duration1_, other->duration1_);
  1319. swap(duration2_, other->duration2_);
  1320. swap(duration3_, other->duration3_);
  1321. swap(duration4_, other->duration4_);
  1322. swap(duration5_, other->duration5_);
  1323. _internal_metadata_.Swap(&other->_internal_metadata_);
  1324. }
  1325. ::google::protobuf::Metadata TimestampDurationTestCases::GetMetadata() const {
  1326. protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
  1327. return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages];
  1328. }
  1329. // ===================================================================
  1330. void TimeStampType::InitAsDefaultInstance() {
  1331. ::google::protobuf::testing::_TimeStampType_default_instance_._instance.get_mutable()->timestamp_ = const_cast< ::google::protobuf::Timestamp*>(
  1332. ::google::protobuf::Timestamp::internal_default_instance());
  1333. }
  1334. void TimeStampType::clear_timestamp() {
  1335. if (GetArenaNoVirtual() == NULL && timestamp_ != NULL) {
  1336. delete timestamp_;
  1337. }
  1338. timestamp_ = NULL;
  1339. }
  1340. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1341. const int TimeStampType::kTimestampFieldNumber;
  1342. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1343. TimeStampType::TimeStampType()
  1344. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1345. ::google::protobuf::internal::InitSCC(
  1346. &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimeStampType.base);
  1347. SharedCtor();
  1348. // @@protoc_insertion_point(constructor:google.protobuf.testing.TimeStampType)
  1349. }
  1350. TimeStampType::TimeStampType(const TimeStampType& from)
  1351. : ::google::protobuf::Message(),
  1352. _internal_metadata_(NULL) {
  1353. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1354. if (from.has_timestamp()) {
  1355. timestamp_ = new ::google::protobuf::Timestamp(*from.timestamp_);
  1356. } else {
  1357. timestamp_ = NULL;
  1358. }
  1359. // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.TimeStampType)
  1360. }
  1361. void TimeStampType::SharedCtor() {
  1362. timestamp_ = NULL;
  1363. }
  1364. TimeStampType::~TimeStampType() {
  1365. // @@protoc_insertion_point(destructor:google.protobuf.testing.TimeStampType)
  1366. SharedDtor();
  1367. }
  1368. void TimeStampType::SharedDtor() {
  1369. if (this != internal_default_instance()) delete timestamp_;
  1370. }
  1371. void TimeStampType::SetCachedSize(int size) const {
  1372. _cached_size_.Set(size);
  1373. }
  1374. const ::google::protobuf::Descriptor* TimeStampType::descriptor() {
  1375. ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
  1376. return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1377. }
  1378. const TimeStampType& TimeStampType::default_instance() {
  1379. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimeStampType.base);
  1380. return *internal_default_instance();
  1381. }
  1382. void TimeStampType::Clear() {
  1383. // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.TimeStampType)
  1384. ::google::protobuf::uint32 cached_has_bits = 0;
  1385. // Prevent compiler warnings about cached_has_bits being unused
  1386. (void) cached_has_bits;
  1387. if (GetArenaNoVirtual() == NULL && timestamp_ != NULL) {
  1388. delete timestamp_;
  1389. }
  1390. timestamp_ = NULL;
  1391. _internal_metadata_.Clear();
  1392. }
  1393. bool TimeStampType::MergePartialFromCodedStream(
  1394. ::google::protobuf::io::CodedInputStream* input) {
  1395. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1396. ::google::protobuf::uint32 tag;
  1397. // @@protoc_insertion_point(parse_start:google.protobuf.testing.TimeStampType)
  1398. for (;;) {
  1399. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1400. tag = p.first;
  1401. if (!p.second) goto handle_unusual;
  1402. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1403. // .google.protobuf.Timestamp timestamp = 1;
  1404. case 1: {
  1405. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1406. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1407. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1408. input, mutable_timestamp()));
  1409. } else {
  1410. goto handle_unusual;
  1411. }
  1412. break;
  1413. }
  1414. default: {
  1415. handle_unusual:
  1416. if (tag == 0) {
  1417. goto success;
  1418. }
  1419. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1420. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1421. break;
  1422. }
  1423. }
  1424. }
  1425. success:
  1426. // @@protoc_insertion_point(parse_success:google.protobuf.testing.TimeStampType)
  1427. return true;
  1428. failure:
  1429. // @@protoc_insertion_point(parse_failure:google.protobuf.testing.TimeStampType)
  1430. return false;
  1431. #undef DO_
  1432. }
  1433. void TimeStampType::SerializeWithCachedSizes(
  1434. ::google::protobuf::io::CodedOutputStream* output) const {
  1435. // @@protoc_insertion_point(serialize_start:google.protobuf.testing.TimeStampType)
  1436. ::google::protobuf::uint32 cached_has_bits = 0;
  1437. (void) cached_has_bits;
  1438. // .google.protobuf.Timestamp timestamp = 1;
  1439. if (this->has_timestamp()) {
  1440. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1441. 1, this->_internal_timestamp(), output);
  1442. }
  1443. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1444. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1445. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1446. }
  1447. // @@protoc_insertion_point(serialize_end:google.protobuf.testing.TimeStampType)
  1448. }
  1449. ::google::protobuf::uint8* TimeStampType::InternalSerializeWithCachedSizesToArray(
  1450. bool deterministic, ::google::protobuf::uint8* target) const {
  1451. (void)deterministic; // Unused
  1452. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.TimeStampType)
  1453. ::google::protobuf::uint32 cached_has_bits = 0;
  1454. (void) cached_has_bits;
  1455. // .google.protobuf.Timestamp timestamp = 1;
  1456. if (this->has_timestamp()) {
  1457. target = ::google::protobuf::internal::WireFormatLite::
  1458. InternalWriteMessageToArray(
  1459. 1, this->_internal_timestamp(), deterministic, target);
  1460. }
  1461. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1462. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1463. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1464. }
  1465. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.TimeStampType)
  1466. return target;
  1467. }
  1468. size_t TimeStampType::ByteSizeLong() const {
  1469. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.TimeStampType)
  1470. size_t total_size = 0;
  1471. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1472. total_size +=
  1473. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1474. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1475. }
  1476. // .google.protobuf.Timestamp timestamp = 1;
  1477. if (this->has_timestamp()) {
  1478. total_size += 1 +
  1479. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1480. *timestamp_);
  1481. }
  1482. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1483. SetCachedSize(cached_size);
  1484. return total_size;
  1485. }
  1486. void TimeStampType::MergeFrom(const ::google::protobuf::Message& from) {
  1487. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.TimeStampType)
  1488. GOOGLE_DCHECK_NE(&from, this);
  1489. const TimeStampType* source =
  1490. ::google::protobuf::internal::DynamicCastToGenerated<const TimeStampType>(
  1491. &from);
  1492. if (source == NULL) {
  1493. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.TimeStampType)
  1494. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1495. } else {
  1496. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.TimeStampType)
  1497. MergeFrom(*source);
  1498. }
  1499. }
  1500. void TimeStampType::MergeFrom(const TimeStampType& from) {
  1501. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.TimeStampType)
  1502. GOOGLE_DCHECK_NE(&from, this);
  1503. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1504. ::google::protobuf::uint32 cached_has_bits = 0;
  1505. (void) cached_has_bits;
  1506. if (from.has_timestamp()) {
  1507. mutable_timestamp()->::google::protobuf::Timestamp::MergeFrom(from.timestamp());
  1508. }
  1509. }
  1510. void TimeStampType::CopyFrom(const ::google::protobuf::Message& from) {
  1511. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.TimeStampType)
  1512. if (&from == this) return;
  1513. Clear();
  1514. MergeFrom(from);
  1515. }
  1516. void TimeStampType::CopyFrom(const TimeStampType& from) {
  1517. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.TimeStampType)
  1518. if (&from == this) return;
  1519. Clear();
  1520. MergeFrom(from);
  1521. }
  1522. bool TimeStampType::IsInitialized() const {
  1523. return true;
  1524. }
  1525. void TimeStampType::Swap(TimeStampType* other) {
  1526. if (other == this) return;
  1527. InternalSwap(other);
  1528. }
  1529. void TimeStampType::InternalSwap(TimeStampType* other) {
  1530. using std::swap;
  1531. swap(timestamp_, other->timestamp_);
  1532. _internal_metadata_.Swap(&other->_internal_metadata_);
  1533. }
  1534. ::google::protobuf::Metadata TimeStampType::GetMetadata() const {
  1535. protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
  1536. return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages];
  1537. }
  1538. // ===================================================================
  1539. void DurationType::InitAsDefaultInstance() {
  1540. ::google::protobuf::testing::_DurationType_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>(
  1541. ::google::protobuf::Duration::internal_default_instance());
  1542. }
  1543. void DurationType::clear_duration() {
  1544. if (GetArenaNoVirtual() == NULL && duration_ != NULL) {
  1545. delete duration_;
  1546. }
  1547. duration_ = NULL;
  1548. }
  1549. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1550. const int DurationType::kDurationFieldNumber;
  1551. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1552. DurationType::DurationType()
  1553. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1554. ::google::protobuf::internal::InitSCC(
  1555. &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_DurationType.base);
  1556. SharedCtor();
  1557. // @@protoc_insertion_point(constructor:google.protobuf.testing.DurationType)
  1558. }
  1559. DurationType::DurationType(const DurationType& from)
  1560. : ::google::protobuf::Message(),
  1561. _internal_metadata_(NULL) {
  1562. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1563. if (from.has_duration()) {
  1564. duration_ = new ::google::protobuf::Duration(*from.duration_);
  1565. } else {
  1566. duration_ = NULL;
  1567. }
  1568. // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.DurationType)
  1569. }
  1570. void DurationType::SharedCtor() {
  1571. duration_ = NULL;
  1572. }
  1573. DurationType::~DurationType() {
  1574. // @@protoc_insertion_point(destructor:google.protobuf.testing.DurationType)
  1575. SharedDtor();
  1576. }
  1577. void DurationType::SharedDtor() {
  1578. if (this != internal_default_instance()) delete duration_;
  1579. }
  1580. void DurationType::SetCachedSize(int size) const {
  1581. _cached_size_.Set(size);
  1582. }
  1583. const ::google::protobuf::Descriptor* DurationType::descriptor() {
  1584. ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
  1585. return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1586. }
  1587. const DurationType& DurationType::default_instance() {
  1588. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_DurationType.base);
  1589. return *internal_default_instance();
  1590. }
  1591. void DurationType::Clear() {
  1592. // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.DurationType)
  1593. ::google::protobuf::uint32 cached_has_bits = 0;
  1594. // Prevent compiler warnings about cached_has_bits being unused
  1595. (void) cached_has_bits;
  1596. if (GetArenaNoVirtual() == NULL && duration_ != NULL) {
  1597. delete duration_;
  1598. }
  1599. duration_ = NULL;
  1600. _internal_metadata_.Clear();
  1601. }
  1602. bool DurationType::MergePartialFromCodedStream(
  1603. ::google::protobuf::io::CodedInputStream* input) {
  1604. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1605. ::google::protobuf::uint32 tag;
  1606. // @@protoc_insertion_point(parse_start:google.protobuf.testing.DurationType)
  1607. for (;;) {
  1608. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1609. tag = p.first;
  1610. if (!p.second) goto handle_unusual;
  1611. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1612. // .google.protobuf.Duration duration = 1;
  1613. case 1: {
  1614. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1615. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1616. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1617. input, mutable_duration()));
  1618. } else {
  1619. goto handle_unusual;
  1620. }
  1621. break;
  1622. }
  1623. default: {
  1624. handle_unusual:
  1625. if (tag == 0) {
  1626. goto success;
  1627. }
  1628. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1629. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1630. break;
  1631. }
  1632. }
  1633. }
  1634. success:
  1635. // @@protoc_insertion_point(parse_success:google.protobuf.testing.DurationType)
  1636. return true;
  1637. failure:
  1638. // @@protoc_insertion_point(parse_failure:google.protobuf.testing.DurationType)
  1639. return false;
  1640. #undef DO_
  1641. }
  1642. void DurationType::SerializeWithCachedSizes(
  1643. ::google::protobuf::io::CodedOutputStream* output) const {
  1644. // @@protoc_insertion_point(serialize_start:google.protobuf.testing.DurationType)
  1645. ::google::protobuf::uint32 cached_has_bits = 0;
  1646. (void) cached_has_bits;
  1647. // .google.protobuf.Duration duration = 1;
  1648. if (this->has_duration()) {
  1649. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1650. 1, this->_internal_duration(), output);
  1651. }
  1652. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1653. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1654. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1655. }
  1656. // @@protoc_insertion_point(serialize_end:google.protobuf.testing.DurationType)
  1657. }
  1658. ::google::protobuf::uint8* DurationType::InternalSerializeWithCachedSizesToArray(
  1659. bool deterministic, ::google::protobuf::uint8* target) const {
  1660. (void)deterministic; // Unused
  1661. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.DurationType)
  1662. ::google::protobuf::uint32 cached_has_bits = 0;
  1663. (void) cached_has_bits;
  1664. // .google.protobuf.Duration duration = 1;
  1665. if (this->has_duration()) {
  1666. target = ::google::protobuf::internal::WireFormatLite::
  1667. InternalWriteMessageToArray(
  1668. 1, this->_internal_duration(), deterministic, target);
  1669. }
  1670. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1671. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1672. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1673. }
  1674. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.DurationType)
  1675. return target;
  1676. }
  1677. size_t DurationType::ByteSizeLong() const {
  1678. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.DurationType)
  1679. size_t total_size = 0;
  1680. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1681. total_size +=
  1682. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1683. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1684. }
  1685. // .google.protobuf.Duration duration = 1;
  1686. if (this->has_duration()) {
  1687. total_size += 1 +
  1688. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1689. *duration_);
  1690. }
  1691. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1692. SetCachedSize(cached_size);
  1693. return total_size;
  1694. }
  1695. void DurationType::MergeFrom(const ::google::protobuf::Message& from) {
  1696. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.DurationType)
  1697. GOOGLE_DCHECK_NE(&from, this);
  1698. const DurationType* source =
  1699. ::google::protobuf::internal::DynamicCastToGenerated<const DurationType>(
  1700. &from);
  1701. if (source == NULL) {
  1702. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.DurationType)
  1703. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  1704. } else {
  1705. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.DurationType)
  1706. MergeFrom(*source);
  1707. }
  1708. }
  1709. void DurationType::MergeFrom(const DurationType& from) {
  1710. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.DurationType)
  1711. GOOGLE_DCHECK_NE(&from, this);
  1712. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1713. ::google::protobuf::uint32 cached_has_bits = 0;
  1714. (void) cached_has_bits;
  1715. if (from.has_duration()) {
  1716. mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration());
  1717. }
  1718. }
  1719. void DurationType::CopyFrom(const ::google::protobuf::Message& from) {
  1720. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.DurationType)
  1721. if (&from == this) return;
  1722. Clear();
  1723. MergeFrom(from);
  1724. }
  1725. void DurationType::CopyFrom(const DurationType& from) {
  1726. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.DurationType)
  1727. if (&from == this) return;
  1728. Clear();
  1729. MergeFrom(from);
  1730. }
  1731. bool DurationType::IsInitialized() const {
  1732. return true;
  1733. }
  1734. void DurationType::Swap(DurationType* other) {
  1735. if (other == this) return;
  1736. InternalSwap(other);
  1737. }
  1738. void DurationType::InternalSwap(DurationType* other) {
  1739. using std::swap;
  1740. swap(duration_, other->duration_);
  1741. _internal_metadata_.Swap(&other->_internal_metadata_);
  1742. }
  1743. ::google::protobuf::Metadata DurationType::GetMetadata() const {
  1744. protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
  1745. return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages];
  1746. }
  1747. // ===================================================================
  1748. void TimestampDuration::InitAsDefaultInstance() {
  1749. ::google::protobuf::testing::_TimestampDuration_default_instance_._instance.get_mutable()->ts_ = const_cast< ::google::protobuf::Timestamp*>(
  1750. ::google::protobuf::Timestamp::internal_default_instance());
  1751. ::google::protobuf::testing::_TimestampDuration_default_instance_._instance.get_mutable()->dur_ = const_cast< ::google::protobuf::Duration*>(
  1752. ::google::protobuf::Duration::internal_default_instance());
  1753. }
  1754. void TimestampDuration::clear_ts() {
  1755. if (GetArenaNoVirtual() == NULL && ts_ != NULL) {
  1756. delete ts_;
  1757. }
  1758. ts_ = NULL;
  1759. }
  1760. void TimestampDuration::clear_dur() {
  1761. if (GetArenaNoVirtual() == NULL && dur_ != NULL) {
  1762. delete dur_;
  1763. }
  1764. dur_ = NULL;
  1765. }
  1766. void TimestampDuration::clear_rep_ts() {
  1767. rep_ts_.Clear();
  1768. }
  1769. #if !defined(_MSC_VER) || _MSC_VER >= 1900
  1770. const int TimestampDuration::kTsFieldNumber;
  1771. const int TimestampDuration::kDurFieldNumber;
  1772. const int TimestampDuration::kRepTsFieldNumber;
  1773. #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
  1774. TimestampDuration::TimestampDuration()
  1775. : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  1776. ::google::protobuf::internal::InitSCC(
  1777. &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimestampDuration.base);
  1778. SharedCtor();
  1779. // @@protoc_insertion_point(constructor:google.protobuf.testing.TimestampDuration)
  1780. }
  1781. TimestampDuration::TimestampDuration(const TimestampDuration& from)
  1782. : ::google::protobuf::Message(),
  1783. _internal_metadata_(NULL),
  1784. rep_ts_(from.rep_ts_) {
  1785. _internal_metadata_.MergeFrom(from._internal_metadata_);
  1786. if (from.has_ts()) {
  1787. ts_ = new ::google::protobuf::Timestamp(*from.ts_);
  1788. } else {
  1789. ts_ = NULL;
  1790. }
  1791. if (from.has_dur()) {
  1792. dur_ = new ::google::protobuf::Duration(*from.dur_);
  1793. } else {
  1794. dur_ = NULL;
  1795. }
  1796. // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.TimestampDuration)
  1797. }
  1798. void TimestampDuration::SharedCtor() {
  1799. ::memset(&ts_, 0, static_cast<size_t>(
  1800. reinterpret_cast<char*>(&dur_) -
  1801. reinterpret_cast<char*>(&ts_)) + sizeof(dur_));
  1802. }
  1803. TimestampDuration::~TimestampDuration() {
  1804. // @@protoc_insertion_point(destructor:google.protobuf.testing.TimestampDuration)
  1805. SharedDtor();
  1806. }
  1807. void TimestampDuration::SharedDtor() {
  1808. if (this != internal_default_instance()) delete ts_;
  1809. if (this != internal_default_instance()) delete dur_;
  1810. }
  1811. void TimestampDuration::SetCachedSize(int size) const {
  1812. _cached_size_.Set(size);
  1813. }
  1814. const ::google::protobuf::Descriptor* TimestampDuration::descriptor() {
  1815. ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
  1816. return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
  1817. }
  1818. const TimestampDuration& TimestampDuration::default_instance() {
  1819. ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimestampDuration.base);
  1820. return *internal_default_instance();
  1821. }
  1822. void TimestampDuration::Clear() {
  1823. // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.TimestampDuration)
  1824. ::google::protobuf::uint32 cached_has_bits = 0;
  1825. // Prevent compiler warnings about cached_has_bits being unused
  1826. (void) cached_has_bits;
  1827. rep_ts_.Clear();
  1828. if (GetArenaNoVirtual() == NULL && ts_ != NULL) {
  1829. delete ts_;
  1830. }
  1831. ts_ = NULL;
  1832. if (GetArenaNoVirtual() == NULL && dur_ != NULL) {
  1833. delete dur_;
  1834. }
  1835. dur_ = NULL;
  1836. _internal_metadata_.Clear();
  1837. }
  1838. bool TimestampDuration::MergePartialFromCodedStream(
  1839. ::google::protobuf::io::CodedInputStream* input) {
  1840. #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  1841. ::google::protobuf::uint32 tag;
  1842. // @@protoc_insertion_point(parse_start:google.protobuf.testing.TimestampDuration)
  1843. for (;;) {
  1844. ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
  1845. tag = p.first;
  1846. if (!p.second) goto handle_unusual;
  1847. switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
  1848. // .google.protobuf.Timestamp ts = 1;
  1849. case 1: {
  1850. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1851. static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
  1852. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1853. input, mutable_ts()));
  1854. } else {
  1855. goto handle_unusual;
  1856. }
  1857. break;
  1858. }
  1859. // .google.protobuf.Duration dur = 2;
  1860. case 2: {
  1861. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1862. static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
  1863. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1864. input, mutable_dur()));
  1865. } else {
  1866. goto handle_unusual;
  1867. }
  1868. break;
  1869. }
  1870. // repeated .google.protobuf.Timestamp rep_ts = 3;
  1871. case 3: {
  1872. if (static_cast< ::google::protobuf::uint8>(tag) ==
  1873. static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
  1874. DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
  1875. input, add_rep_ts()));
  1876. } else {
  1877. goto handle_unusual;
  1878. }
  1879. break;
  1880. }
  1881. default: {
  1882. handle_unusual:
  1883. if (tag == 0) {
  1884. goto success;
  1885. }
  1886. DO_(::google::protobuf::internal::WireFormat::SkipField(
  1887. input, tag, _internal_metadata_.mutable_unknown_fields()));
  1888. break;
  1889. }
  1890. }
  1891. }
  1892. success:
  1893. // @@protoc_insertion_point(parse_success:google.protobuf.testing.TimestampDuration)
  1894. return true;
  1895. failure:
  1896. // @@protoc_insertion_point(parse_failure:google.protobuf.testing.TimestampDuration)
  1897. return false;
  1898. #undef DO_
  1899. }
  1900. void TimestampDuration::SerializeWithCachedSizes(
  1901. ::google::protobuf::io::CodedOutputStream* output) const {
  1902. // @@protoc_insertion_point(serialize_start:google.protobuf.testing.TimestampDuration)
  1903. ::google::protobuf::uint32 cached_has_bits = 0;
  1904. (void) cached_has_bits;
  1905. // .google.protobuf.Timestamp ts = 1;
  1906. if (this->has_ts()) {
  1907. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1908. 1, this->_internal_ts(), output);
  1909. }
  1910. // .google.protobuf.Duration dur = 2;
  1911. if (this->has_dur()) {
  1912. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1913. 2, this->_internal_dur(), output);
  1914. }
  1915. // repeated .google.protobuf.Timestamp rep_ts = 3;
  1916. for (unsigned int i = 0,
  1917. n = static_cast<unsigned int>(this->rep_ts_size()); i < n; i++) {
  1918. ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
  1919. 3,
  1920. this->rep_ts(static_cast<int>(i)),
  1921. output);
  1922. }
  1923. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1924. ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
  1925. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
  1926. }
  1927. // @@protoc_insertion_point(serialize_end:google.protobuf.testing.TimestampDuration)
  1928. }
  1929. ::google::protobuf::uint8* TimestampDuration::InternalSerializeWithCachedSizesToArray(
  1930. bool deterministic, ::google::protobuf::uint8* target) const {
  1931. (void)deterministic; // Unused
  1932. // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.TimestampDuration)
  1933. ::google::protobuf::uint32 cached_has_bits = 0;
  1934. (void) cached_has_bits;
  1935. // .google.protobuf.Timestamp ts = 1;
  1936. if (this->has_ts()) {
  1937. target = ::google::protobuf::internal::WireFormatLite::
  1938. InternalWriteMessageToArray(
  1939. 1, this->_internal_ts(), deterministic, target);
  1940. }
  1941. // .google.protobuf.Duration dur = 2;
  1942. if (this->has_dur()) {
  1943. target = ::google::protobuf::internal::WireFormatLite::
  1944. InternalWriteMessageToArray(
  1945. 2, this->_internal_dur(), deterministic, target);
  1946. }
  1947. // repeated .google.protobuf.Timestamp rep_ts = 3;
  1948. for (unsigned int i = 0,
  1949. n = static_cast<unsigned int>(this->rep_ts_size()); i < n; i++) {
  1950. target = ::google::protobuf::internal::WireFormatLite::
  1951. InternalWriteMessageToArray(
  1952. 3, this->rep_ts(static_cast<int>(i)), deterministic, target);
  1953. }
  1954. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1955. target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
  1956. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
  1957. }
  1958. // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.TimestampDuration)
  1959. return target;
  1960. }
  1961. size_t TimestampDuration::ByteSizeLong() const {
  1962. // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.TimestampDuration)
  1963. size_t total_size = 0;
  1964. if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
  1965. total_size +=
  1966. ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
  1967. (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
  1968. }
  1969. // repeated .google.protobuf.Timestamp rep_ts = 3;
  1970. {
  1971. unsigned int count = static_cast<unsigned int>(this->rep_ts_size());
  1972. total_size += 1UL * count;
  1973. for (unsigned int i = 0; i < count; i++) {
  1974. total_size +=
  1975. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1976. this->rep_ts(static_cast<int>(i)));
  1977. }
  1978. }
  1979. // .google.protobuf.Timestamp ts = 1;
  1980. if (this->has_ts()) {
  1981. total_size += 1 +
  1982. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1983. *ts_);
  1984. }
  1985. // .google.protobuf.Duration dur = 2;
  1986. if (this->has_dur()) {
  1987. total_size += 1 +
  1988. ::google::protobuf::internal::WireFormatLite::MessageSize(
  1989. *dur_);
  1990. }
  1991. int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  1992. SetCachedSize(cached_size);
  1993. return total_size;
  1994. }
  1995. void TimestampDuration::MergeFrom(const ::google::protobuf::Message& from) {
  1996. // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.TimestampDuration)
  1997. GOOGLE_DCHECK_NE(&from, this);
  1998. const TimestampDuration* source =
  1999. ::google::protobuf::internal::DynamicCastToGenerated<const TimestampDuration>(
  2000. &from);
  2001. if (source == NULL) {
  2002. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.TimestampDuration)
  2003. ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  2004. } else {
  2005. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.TimestampDuration)
  2006. MergeFrom(*source);
  2007. }
  2008. }
  2009. void TimestampDuration::MergeFrom(const TimestampDuration& from) {
  2010. // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.TimestampDuration)
  2011. GOOGLE_DCHECK_NE(&from, this);
  2012. _internal_metadata_.MergeFrom(from._internal_metadata_);
  2013. ::google::protobuf::uint32 cached_has_bits = 0;
  2014. (void) cached_has_bits;
  2015. rep_ts_.MergeFrom(from.rep_ts_);
  2016. if (from.has_ts()) {
  2017. mutable_ts()->::google::protobuf::Timestamp::MergeFrom(from.ts());
  2018. }
  2019. if (from.has_dur()) {
  2020. mutable_dur()->::google::protobuf::Duration::MergeFrom(from.dur());
  2021. }
  2022. }
  2023. void TimestampDuration::CopyFrom(const ::google::protobuf::Message& from) {
  2024. // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.TimestampDuration)
  2025. if (&from == this) return;
  2026. Clear();
  2027. MergeFrom(from);
  2028. }
  2029. void TimestampDuration::CopyFrom(const TimestampDuration& from) {
  2030. // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.TimestampDuration)
  2031. if (&from == this) return;
  2032. Clear();
  2033. MergeFrom(from);
  2034. }
  2035. bool TimestampDuration::IsInitialized() const {
  2036. return true;
  2037. }
  2038. void TimestampDuration::Swap(TimestampDuration* other) {
  2039. if (other == this) return;
  2040. InternalSwap(other);
  2041. }
  2042. void TimestampDuration::InternalSwap(TimestampDuration* other) {
  2043. using std::swap;
  2044. CastToBase(&rep_ts_)->InternalSwap(CastToBase(&other->rep_ts_));
  2045. swap(ts_, other->ts_);
  2046. swap(dur_, other->dur_);
  2047. _internal_metadata_.Swap(&other->_internal_metadata_);
  2048. }
  2049. ::google::protobuf::Metadata TimestampDuration::GetMetadata() const {
  2050. protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
  2051. return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages];
  2052. }
  2053. // @@protoc_insertion_point(namespace_scope)
  2054. } // namespace testing
  2055. } // namespace protobuf
  2056. } // namespace google
  2057. namespace google {
  2058. namespace protobuf {
  2059. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::TimestampDurationTestCases* Arena::CreateMaybeMessage< ::google::protobuf::testing::TimestampDurationTestCases >(Arena* arena) {
  2060. return Arena::CreateInternal< ::google::protobuf::testing::TimestampDurationTestCases >(arena);
  2061. }
  2062. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::TimeStampType* Arena::CreateMaybeMessage< ::google::protobuf::testing::TimeStampType >(Arena* arena) {
  2063. return Arena::CreateInternal< ::google::protobuf::testing::TimeStampType >(arena);
  2064. }
  2065. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::DurationType* Arena::CreateMaybeMessage< ::google::protobuf::testing::DurationType >(Arena* arena) {
  2066. return Arena::CreateInternal< ::google::protobuf::testing::DurationType >(arena);
  2067. }
  2068. template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::TimestampDuration* Arena::CreateMaybeMessage< ::google::protobuf::testing::TimestampDuration >(Arena* arena) {
  2069. return Arena::CreateInternal< ::google::protobuf::testing::TimestampDuration >(arena);
  2070. }
  2071. } // namespace protobuf
  2072. } // namespace google
  2073. // @@protoc_insertion_point(global_scope)