| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136213721382139214021412142214321442145214621472148214921502151215221532154215521562157215821592160216121622163216421652166216721682169217021712172217321742175217621772178217921802181218221832184218521862187218821892190219121922193219421952196219721982199220022012202220322042205220622072208220922102211221222132214221522162217221822192220222122222223222422252226222722282229223022312232223322342235223622372238223922402241224222432244224522462247224822492250225122522253225422552256225722582259226022612262226322642265226622672268226922702271227222732274227522762277227822792280228122822283228422852286228722882289229022912292229322942295229622972298229923002301230223032304230523062307 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/util/internal/testdata/timestamp_duration.proto
- #include <google/protobuf/util/internal/testdata/timestamp_duration.pb.h>
- #include <algorithm>
- #include <google/protobuf/stubs/common.h>
- #include <google/protobuf/stubs/port.h>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/wire_format_lite_inl.h>
- #include <google/protobuf/descriptor.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/reflection_ops.h>
- #include <google/protobuf/wire_format.h>
- // This is a temporary google only hack
- #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
- #include "third_party/protobuf/version.h"
- #endif
- // @@protoc_insertion_point(includes)
- namespace protobuf_google_2fprotobuf_2fduration_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2fduration_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Duration;
- } // namespace protobuf_google_2fprotobuf_2fduration_2eproto
- namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2ftimestamp_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_Timestamp;
- } // namespace protobuf_google_2fprotobuf_2ftimestamp_2eproto
- namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto {
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_DurationType;
- extern PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_TimeStampType;
- } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto
- namespace google {
- namespace protobuf {
- namespace testing {
- class TimestampDurationTestCasesDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TimestampDurationTestCases>
- _instance;
- } _TimestampDurationTestCases_default_instance_;
- class TimeStampTypeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TimeStampType>
- _instance;
- } _TimeStampType_default_instance_;
- class DurationTypeDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<DurationType>
- _instance;
- } _DurationType_default_instance_;
- class TimestampDurationDefaultTypeInternal {
- public:
- ::google::protobuf::internal::ExplicitlyConstructed<TimestampDuration>
- _instance;
- } _TimestampDuration_default_instance_;
- } // namespace testing
- } // namespace protobuf
- } // namespace google
- namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto {
- static void InitDefaultsTimestampDurationTestCases() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_TimestampDurationTestCases_default_instance_;
- new (ptr) ::google::protobuf::testing::TimestampDurationTestCases();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::TimestampDurationTestCases::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<4> scc_info_TimestampDurationTestCases =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 4, InitDefaultsTimestampDurationTestCases}, {
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimeStampType.base,
- &protobuf_google_2fprotobuf_2ftimestamp_2eproto::scc_info_Timestamp.base,
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_DurationType.base,
- &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}};
- static void InitDefaultsTimeStampType() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_TimeStampType_default_instance_;
- new (ptr) ::google::protobuf::testing::TimeStampType();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::TimeStampType::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_TimeStampType =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsTimeStampType}, {
- &protobuf_google_2fprotobuf_2ftimestamp_2eproto::scc_info_Timestamp.base,}};
- static void InitDefaultsDurationType() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_DurationType_default_instance_;
- new (ptr) ::google::protobuf::testing::DurationType();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::DurationType::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<1> scc_info_DurationType =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsDurationType}, {
- &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}};
- static void InitDefaultsTimestampDuration() {
- GOOGLE_PROTOBUF_VERIFY_VERSION;
- {
- void* ptr = &::google::protobuf::testing::_TimestampDuration_default_instance_;
- new (ptr) ::google::protobuf::testing::TimestampDuration();
- ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
- }
- ::google::protobuf::testing::TimestampDuration::InitAsDefaultInstance();
- }
- ::google::protobuf::internal::SCCInfo<2> scc_info_TimestampDuration =
- {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsTimestampDuration}, {
- &protobuf_google_2fprotobuf_2ftimestamp_2eproto::scc_info_Timestamp.base,
- &protobuf_google_2fprotobuf_2fduration_2eproto::scc_info_Duration.base,}};
- void InitDefaults() {
- ::google::protobuf::internal::InitSCC(&scc_info_TimestampDurationTestCases.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TimeStampType.base);
- ::google::protobuf::internal::InitSCC(&scc_info_DurationType.base);
- ::google::protobuf::internal::InitSCC(&scc_info_TimestampDuration.base);
- }
- ::google::protobuf::Metadata file_level_metadata[4];
- const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, epoch_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, epoch2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, mintime_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, maxtime_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval1_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval3_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval4_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval5_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval6_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval7_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, timeval8_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, zero_duration_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, min_duration_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, max_duration_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration1_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration2_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration3_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration4_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDurationTestCases, duration5_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimeStampType, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimeStampType, timestamp_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DurationType, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::DurationType, duration_),
- ~0u, // no _has_bits_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDuration, _internal_metadata_),
- ~0u, // no _extensions_
- ~0u, // no _oneof_case_
- ~0u, // no _weak_field_map_
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDuration, ts_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDuration, dur_),
- GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::google::protobuf::testing::TimestampDuration, rep_ts_),
- };
- static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- { 0, -1, sizeof(::google::protobuf::testing::TimestampDurationTestCases)},
- { 25, -1, sizeof(::google::protobuf::testing::TimeStampType)},
- { 31, -1, sizeof(::google::protobuf::testing::DurationType)},
- { 37, -1, sizeof(::google::protobuf::testing::TimestampDuration)},
- };
- static ::google::protobuf::Message const * const file_default_instances[] = {
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_TimestampDurationTestCases_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_TimeStampType_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_DurationType_default_instance_),
- reinterpret_cast<const ::google::protobuf::Message*>(&::google::protobuf::testing::_TimestampDuration_default_instance_),
- };
- void protobuf_AssignDescriptors() {
- AddDescriptors();
- AssignDescriptors(
- "google/protobuf/util/internal/testdata/timestamp_duration.proto", schemas, file_default_instances, TableStruct::offsets,
- file_level_metadata, NULL, NULL);
- }
- void protobuf_AssignDescriptorsOnce() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
- }
- void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
- void protobuf_RegisterTypes(const ::std::string&) {
- protobuf_AssignDescriptorsOnce();
- ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 4);
- }
- void AddDescriptorsImpl() {
- InitDefaults();
- static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
- "\n\?google/protobuf/util/internal/testdata"
- "/timestamp_duration.proto\022\027google.protob"
- "uf.testing\032\037google/protobuf/timestamp.pr"
- "oto\032\036google/protobuf/duration.proto\"\217\t\n\032"
- "TimestampDurationTestCases\0225\n\005epoch\030\001 \001("
- "\0132&.google.protobuf.testing.TimeStampTyp"
- "e\0226\n\006epoch2\030\002 \001(\0132&.google.protobuf.test"
- "ing.TimeStampType\0227\n\007mintime\030\003 \001(\0132&.goo"
- "gle.protobuf.testing.TimeStampType\0227\n\007ma"
- "xtime\030\004 \001(\0132&.google.protobuf.testing.Ti"
- "meStampType\0228\n\010timeval1\030\005 \001(\0132&.google.p"
- "rotobuf.testing.TimeStampType\0228\n\010timeval"
- "2\030\006 \001(\0132&.google.protobuf.testing.TimeSt"
- "ampType\0228\n\010timeval3\030\007 \001(\0132&.google.proto"
- "buf.testing.TimeStampType\0228\n\010timeval4\030\010 "
- "\001(\0132&.google.protobuf.testing.TimeStampT"
- "ype\0228\n\010timeval5\030\t \001(\0132&.google.protobuf."
- "testing.TimeStampType\0228\n\010timeval6\030\n \001(\0132"
- "&.google.protobuf.testing.TimeStampType\022"
- "8\n\010timeval7\030\013 \001(\0132&.google.protobuf.test"
- "ing.TimeStampType\022,\n\010timeval8\030\014 \001(\0132\032.go"
- "ogle.protobuf.Timestamp\022<\n\rzero_duration"
- "\030e \001(\0132%.google.protobuf.testing.Duratio"
- "nType\022;\n\014min_duration\030f \001(\0132%.google.pro"
- "tobuf.testing.DurationType\022;\n\014max_durati"
- "on\030g \001(\0132%.google.protobuf.testing.Durat"
- "ionType\0228\n\tduration1\030h \001(\0132%.google.prot"
- "obuf.testing.DurationType\0228\n\tduration2\030i"
- " \001(\0132%.google.protobuf.testing.DurationT"
- "ype\0228\n\tduration3\030j \001(\0132%.google.protobuf"
- ".testing.DurationType\0228\n\tduration4\030k \001(\013"
- "2%.google.protobuf.testing.DurationType\022"
- ",\n\tduration5\030l \001(\0132\031.google.protobuf.Dur"
- "ation\">\n\rTimeStampType\022-\n\ttimestamp\030\001 \001("
- "\0132\032.google.protobuf.Timestamp\";\n\014Duratio"
- "nType\022+\n\010duration\030\001 \001(\0132\031.google.protobu"
- "f.Duration\"\217\001\n\021TimestampDuration\022&\n\002ts\030\001"
- " \001(\0132\032.google.protobuf.Timestamp\022&\n\003dur\030"
- "\002 \001(\0132\031.google.protobuf.Duration\022*\n\006rep_"
- "ts\030\003 \003(\0132\032.google.protobuf.Timestamp2\220\001\n"
- "\034TimestampDurationTestService\022p\n\004Call\0223."
- "google.protobuf.testing.TimestampDuratio"
- "nTestCases\0323.google.protobuf.testing.Tim"
- "estampDurationTestCasesb\006proto3"
- };
- ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
- descriptor, 1751);
- ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
- "google/protobuf/util/internal/testdata/timestamp_duration.proto", &protobuf_RegisterTypes);
- ::protobuf_google_2fprotobuf_2ftimestamp_2eproto::AddDescriptors();
- ::protobuf_google_2fprotobuf_2fduration_2eproto::AddDescriptors();
- }
- void AddDescriptors() {
- static ::google::protobuf::internal::once_flag once;
- ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
- }
- // Force AddDescriptors() to be called at dynamic initialization time.
- struct StaticDescriptorInitializer {
- StaticDescriptorInitializer() {
- AddDescriptors();
- }
- } static_descriptor_initializer;
- } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto
- namespace google {
- namespace protobuf {
- namespace testing {
- // ===================================================================
- void TimestampDurationTestCases::InitAsDefaultInstance() {
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->epoch_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->epoch2_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->mintime_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->maxtime_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval1_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval2_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval3_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval4_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval5_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval6_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval7_ = const_cast< ::google::protobuf::testing::TimeStampType*>(
- ::google::protobuf::testing::TimeStampType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->timeval8_ = const_cast< ::google::protobuf::Timestamp*>(
- ::google::protobuf::Timestamp::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->zero_duration_ = const_cast< ::google::protobuf::testing::DurationType*>(
- ::google::protobuf::testing::DurationType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->min_duration_ = const_cast< ::google::protobuf::testing::DurationType*>(
- ::google::protobuf::testing::DurationType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->max_duration_ = const_cast< ::google::protobuf::testing::DurationType*>(
- ::google::protobuf::testing::DurationType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration1_ = const_cast< ::google::protobuf::testing::DurationType*>(
- ::google::protobuf::testing::DurationType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration2_ = const_cast< ::google::protobuf::testing::DurationType*>(
- ::google::protobuf::testing::DurationType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration3_ = const_cast< ::google::protobuf::testing::DurationType*>(
- ::google::protobuf::testing::DurationType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration4_ = const_cast< ::google::protobuf::testing::DurationType*>(
- ::google::protobuf::testing::DurationType::internal_default_instance());
- ::google::protobuf::testing::_TimestampDurationTestCases_default_instance_._instance.get_mutable()->duration5_ = const_cast< ::google::protobuf::Duration*>(
- ::google::protobuf::Duration::internal_default_instance());
- }
- void TimestampDurationTestCases::clear_timeval8() {
- if (GetArenaNoVirtual() == NULL && timeval8_ != NULL) {
- delete timeval8_;
- }
- timeval8_ = NULL;
- }
- void TimestampDurationTestCases::clear_duration5() {
- if (GetArenaNoVirtual() == NULL && duration5_ != NULL) {
- delete duration5_;
- }
- duration5_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TimestampDurationTestCases::kEpochFieldNumber;
- const int TimestampDurationTestCases::kEpoch2FieldNumber;
- const int TimestampDurationTestCases::kMintimeFieldNumber;
- const int TimestampDurationTestCases::kMaxtimeFieldNumber;
- const int TimestampDurationTestCases::kTimeval1FieldNumber;
- const int TimestampDurationTestCases::kTimeval2FieldNumber;
- const int TimestampDurationTestCases::kTimeval3FieldNumber;
- const int TimestampDurationTestCases::kTimeval4FieldNumber;
- const int TimestampDurationTestCases::kTimeval5FieldNumber;
- const int TimestampDurationTestCases::kTimeval6FieldNumber;
- const int TimestampDurationTestCases::kTimeval7FieldNumber;
- const int TimestampDurationTestCases::kTimeval8FieldNumber;
- const int TimestampDurationTestCases::kZeroDurationFieldNumber;
- const int TimestampDurationTestCases::kMinDurationFieldNumber;
- const int TimestampDurationTestCases::kMaxDurationFieldNumber;
- const int TimestampDurationTestCases::kDuration1FieldNumber;
- const int TimestampDurationTestCases::kDuration2FieldNumber;
- const int TimestampDurationTestCases::kDuration3FieldNumber;
- const int TimestampDurationTestCases::kDuration4FieldNumber;
- const int TimestampDurationTestCases::kDuration5FieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TimestampDurationTestCases::TimestampDurationTestCases()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimestampDurationTestCases.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.TimestampDurationTestCases)
- }
- TimestampDurationTestCases::TimestampDurationTestCases(const TimestampDurationTestCases& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_epoch()) {
- epoch_ = new ::google::protobuf::testing::TimeStampType(*from.epoch_);
- } else {
- epoch_ = NULL;
- }
- if (from.has_epoch2()) {
- epoch2_ = new ::google::protobuf::testing::TimeStampType(*from.epoch2_);
- } else {
- epoch2_ = NULL;
- }
- if (from.has_mintime()) {
- mintime_ = new ::google::protobuf::testing::TimeStampType(*from.mintime_);
- } else {
- mintime_ = NULL;
- }
- if (from.has_maxtime()) {
- maxtime_ = new ::google::protobuf::testing::TimeStampType(*from.maxtime_);
- } else {
- maxtime_ = NULL;
- }
- if (from.has_timeval1()) {
- timeval1_ = new ::google::protobuf::testing::TimeStampType(*from.timeval1_);
- } else {
- timeval1_ = NULL;
- }
- if (from.has_timeval2()) {
- timeval2_ = new ::google::protobuf::testing::TimeStampType(*from.timeval2_);
- } else {
- timeval2_ = NULL;
- }
- if (from.has_timeval3()) {
- timeval3_ = new ::google::protobuf::testing::TimeStampType(*from.timeval3_);
- } else {
- timeval3_ = NULL;
- }
- if (from.has_timeval4()) {
- timeval4_ = new ::google::protobuf::testing::TimeStampType(*from.timeval4_);
- } else {
- timeval4_ = NULL;
- }
- if (from.has_timeval5()) {
- timeval5_ = new ::google::protobuf::testing::TimeStampType(*from.timeval5_);
- } else {
- timeval5_ = NULL;
- }
- if (from.has_timeval6()) {
- timeval6_ = new ::google::protobuf::testing::TimeStampType(*from.timeval6_);
- } else {
- timeval6_ = NULL;
- }
- if (from.has_timeval7()) {
- timeval7_ = new ::google::protobuf::testing::TimeStampType(*from.timeval7_);
- } else {
- timeval7_ = NULL;
- }
- if (from.has_timeval8()) {
- timeval8_ = new ::google::protobuf::Timestamp(*from.timeval8_);
- } else {
- timeval8_ = NULL;
- }
- if (from.has_zero_duration()) {
- zero_duration_ = new ::google::protobuf::testing::DurationType(*from.zero_duration_);
- } else {
- zero_duration_ = NULL;
- }
- if (from.has_min_duration()) {
- min_duration_ = new ::google::protobuf::testing::DurationType(*from.min_duration_);
- } else {
- min_duration_ = NULL;
- }
- if (from.has_max_duration()) {
- max_duration_ = new ::google::protobuf::testing::DurationType(*from.max_duration_);
- } else {
- max_duration_ = NULL;
- }
- if (from.has_duration1()) {
- duration1_ = new ::google::protobuf::testing::DurationType(*from.duration1_);
- } else {
- duration1_ = NULL;
- }
- if (from.has_duration2()) {
- duration2_ = new ::google::protobuf::testing::DurationType(*from.duration2_);
- } else {
- duration2_ = NULL;
- }
- if (from.has_duration3()) {
- duration3_ = new ::google::protobuf::testing::DurationType(*from.duration3_);
- } else {
- duration3_ = NULL;
- }
- if (from.has_duration4()) {
- duration4_ = new ::google::protobuf::testing::DurationType(*from.duration4_);
- } else {
- duration4_ = NULL;
- }
- if (from.has_duration5()) {
- duration5_ = new ::google::protobuf::Duration(*from.duration5_);
- } else {
- duration5_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.TimestampDurationTestCases)
- }
- void TimestampDurationTestCases::SharedCtor() {
- ::memset(&epoch_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&duration5_) -
- reinterpret_cast<char*>(&epoch_)) + sizeof(duration5_));
- }
- TimestampDurationTestCases::~TimestampDurationTestCases() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.TimestampDurationTestCases)
- SharedDtor();
- }
- void TimestampDurationTestCases::SharedDtor() {
- if (this != internal_default_instance()) delete epoch_;
- if (this != internal_default_instance()) delete epoch2_;
- if (this != internal_default_instance()) delete mintime_;
- if (this != internal_default_instance()) delete maxtime_;
- if (this != internal_default_instance()) delete timeval1_;
- if (this != internal_default_instance()) delete timeval2_;
- if (this != internal_default_instance()) delete timeval3_;
- if (this != internal_default_instance()) delete timeval4_;
- if (this != internal_default_instance()) delete timeval5_;
- if (this != internal_default_instance()) delete timeval6_;
- if (this != internal_default_instance()) delete timeval7_;
- if (this != internal_default_instance()) delete timeval8_;
- if (this != internal_default_instance()) delete zero_duration_;
- if (this != internal_default_instance()) delete min_duration_;
- if (this != internal_default_instance()) delete max_duration_;
- if (this != internal_default_instance()) delete duration1_;
- if (this != internal_default_instance()) delete duration2_;
- if (this != internal_default_instance()) delete duration3_;
- if (this != internal_default_instance()) delete duration4_;
- if (this != internal_default_instance()) delete duration5_;
- }
- void TimestampDurationTestCases::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TimestampDurationTestCases::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TimestampDurationTestCases& TimestampDurationTestCases::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimestampDurationTestCases.base);
- return *internal_default_instance();
- }
- void TimestampDurationTestCases::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.TimestampDurationTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && epoch_ != NULL) {
- delete epoch_;
- }
- epoch_ = NULL;
- if (GetArenaNoVirtual() == NULL && epoch2_ != NULL) {
- delete epoch2_;
- }
- epoch2_ = NULL;
- if (GetArenaNoVirtual() == NULL && mintime_ != NULL) {
- delete mintime_;
- }
- mintime_ = NULL;
- if (GetArenaNoVirtual() == NULL && maxtime_ != NULL) {
- delete maxtime_;
- }
- maxtime_ = NULL;
- if (GetArenaNoVirtual() == NULL && timeval1_ != NULL) {
- delete timeval1_;
- }
- timeval1_ = NULL;
- if (GetArenaNoVirtual() == NULL && timeval2_ != NULL) {
- delete timeval2_;
- }
- timeval2_ = NULL;
- if (GetArenaNoVirtual() == NULL && timeval3_ != NULL) {
- delete timeval3_;
- }
- timeval3_ = NULL;
- if (GetArenaNoVirtual() == NULL && timeval4_ != NULL) {
- delete timeval4_;
- }
- timeval4_ = NULL;
- if (GetArenaNoVirtual() == NULL && timeval5_ != NULL) {
- delete timeval5_;
- }
- timeval5_ = NULL;
- if (GetArenaNoVirtual() == NULL && timeval6_ != NULL) {
- delete timeval6_;
- }
- timeval6_ = NULL;
- if (GetArenaNoVirtual() == NULL && timeval7_ != NULL) {
- delete timeval7_;
- }
- timeval7_ = NULL;
- if (GetArenaNoVirtual() == NULL && timeval8_ != NULL) {
- delete timeval8_;
- }
- timeval8_ = NULL;
- if (GetArenaNoVirtual() == NULL && zero_duration_ != NULL) {
- delete zero_duration_;
- }
- zero_duration_ = NULL;
- if (GetArenaNoVirtual() == NULL && min_duration_ != NULL) {
- delete min_duration_;
- }
- min_duration_ = NULL;
- if (GetArenaNoVirtual() == NULL && max_duration_ != NULL) {
- delete max_duration_;
- }
- max_duration_ = NULL;
- if (GetArenaNoVirtual() == NULL && duration1_ != NULL) {
- delete duration1_;
- }
- duration1_ = NULL;
- if (GetArenaNoVirtual() == NULL && duration2_ != NULL) {
- delete duration2_;
- }
- duration2_ = NULL;
- if (GetArenaNoVirtual() == NULL && duration3_ != NULL) {
- delete duration3_;
- }
- duration3_ = NULL;
- if (GetArenaNoVirtual() == NULL && duration4_ != NULL) {
- delete duration4_;
- }
- duration4_ = NULL;
- if (GetArenaNoVirtual() == NULL && duration5_ != NULL) {
- delete duration5_;
- }
- duration5_ = NULL;
- _internal_metadata_.Clear();
- }
- bool TimestampDurationTestCases::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.TimestampDurationTestCases)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.testing.TimeStampType epoch = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_epoch()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType epoch2 = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_epoch2()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType mintime = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_mintime()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType maxtime = 4;
- case 4: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_maxtime()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType timeval1 = 5;
- case 5: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timeval1()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType timeval2 = 6;
- case 6: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 50 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timeval2()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType timeval3 = 7;
- case 7: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 58 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timeval3()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType timeval4 = 8;
- case 8: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 66 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timeval4()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType timeval5 = 9;
- case 9: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 74 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timeval5()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType timeval6 = 10;
- case 10: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 82 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timeval6()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.TimeStampType timeval7 = 11;
- case 11: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 90 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timeval7()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Timestamp timeval8 = 12;
- case 12: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(98u /* 98 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timeval8()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DurationType zero_duration = 101;
- case 101: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(42u /* 810 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_zero_duration()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DurationType min_duration = 102;
- case 102: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(50u /* 818 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_min_duration()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DurationType max_duration = 103;
- case 103: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(58u /* 826 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_max_duration()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DurationType duration1 = 104;
- case 104: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(66u /* 834 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_duration1()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DurationType duration2 = 105;
- case 105: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(74u /* 842 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_duration2()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DurationType duration3 = 106;
- case 106: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(82u /* 850 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_duration3()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.testing.DurationType duration4 = 107;
- case 107: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(90u /* 858 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_duration4()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Duration duration5 = 108;
- case 108: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(98u /* 866 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_duration5()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.TimestampDurationTestCases)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.TimestampDurationTestCases)
- return false;
- #undef DO_
- }
- void TimestampDurationTestCases::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.TimestampDurationTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.testing.TimeStampType epoch = 1;
- if (this->has_epoch()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_epoch(), output);
- }
- // .google.protobuf.testing.TimeStampType epoch2 = 2;
- if (this->has_epoch2()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_epoch2(), output);
- }
- // .google.protobuf.testing.TimeStampType mintime = 3;
- if (this->has_mintime()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3, this->_internal_mintime(), output);
- }
- // .google.protobuf.testing.TimeStampType maxtime = 4;
- if (this->has_maxtime()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 4, this->_internal_maxtime(), output);
- }
- // .google.protobuf.testing.TimeStampType timeval1 = 5;
- if (this->has_timeval1()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 5, this->_internal_timeval1(), output);
- }
- // .google.protobuf.testing.TimeStampType timeval2 = 6;
- if (this->has_timeval2()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 6, this->_internal_timeval2(), output);
- }
- // .google.protobuf.testing.TimeStampType timeval3 = 7;
- if (this->has_timeval3()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 7, this->_internal_timeval3(), output);
- }
- // .google.protobuf.testing.TimeStampType timeval4 = 8;
- if (this->has_timeval4()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 8, this->_internal_timeval4(), output);
- }
- // .google.protobuf.testing.TimeStampType timeval5 = 9;
- if (this->has_timeval5()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 9, this->_internal_timeval5(), output);
- }
- // .google.protobuf.testing.TimeStampType timeval6 = 10;
- if (this->has_timeval6()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 10, this->_internal_timeval6(), output);
- }
- // .google.protobuf.testing.TimeStampType timeval7 = 11;
- if (this->has_timeval7()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 11, this->_internal_timeval7(), output);
- }
- // .google.protobuf.Timestamp timeval8 = 12;
- if (this->has_timeval8()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 12, this->_internal_timeval8(), output);
- }
- // .google.protobuf.testing.DurationType zero_duration = 101;
- if (this->has_zero_duration()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 101, this->_internal_zero_duration(), output);
- }
- // .google.protobuf.testing.DurationType min_duration = 102;
- if (this->has_min_duration()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 102, this->_internal_min_duration(), output);
- }
- // .google.protobuf.testing.DurationType max_duration = 103;
- if (this->has_max_duration()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 103, this->_internal_max_duration(), output);
- }
- // .google.protobuf.testing.DurationType duration1 = 104;
- if (this->has_duration1()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 104, this->_internal_duration1(), output);
- }
- // .google.protobuf.testing.DurationType duration2 = 105;
- if (this->has_duration2()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 105, this->_internal_duration2(), output);
- }
- // .google.protobuf.testing.DurationType duration3 = 106;
- if (this->has_duration3()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 106, this->_internal_duration3(), output);
- }
- // .google.protobuf.testing.DurationType duration4 = 107;
- if (this->has_duration4()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 107, this->_internal_duration4(), output);
- }
- // .google.protobuf.Duration duration5 = 108;
- if (this->has_duration5()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 108, this->_internal_duration5(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.TimestampDurationTestCases)
- }
- ::google::protobuf::uint8* TimestampDurationTestCases::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.TimestampDurationTestCases)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.testing.TimeStampType epoch = 1;
- if (this->has_epoch()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_epoch(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType epoch2 = 2;
- if (this->has_epoch2()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_epoch2(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType mintime = 3;
- if (this->has_mintime()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->_internal_mintime(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType maxtime = 4;
- if (this->has_maxtime()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 4, this->_internal_maxtime(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType timeval1 = 5;
- if (this->has_timeval1()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 5, this->_internal_timeval1(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType timeval2 = 6;
- if (this->has_timeval2()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 6, this->_internal_timeval2(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType timeval3 = 7;
- if (this->has_timeval3()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 7, this->_internal_timeval3(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType timeval4 = 8;
- if (this->has_timeval4()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 8, this->_internal_timeval4(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType timeval5 = 9;
- if (this->has_timeval5()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 9, this->_internal_timeval5(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType timeval6 = 10;
- if (this->has_timeval6()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 10, this->_internal_timeval6(), deterministic, target);
- }
- // .google.protobuf.testing.TimeStampType timeval7 = 11;
- if (this->has_timeval7()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 11, this->_internal_timeval7(), deterministic, target);
- }
- // .google.protobuf.Timestamp timeval8 = 12;
- if (this->has_timeval8()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 12, this->_internal_timeval8(), deterministic, target);
- }
- // .google.protobuf.testing.DurationType zero_duration = 101;
- if (this->has_zero_duration()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 101, this->_internal_zero_duration(), deterministic, target);
- }
- // .google.protobuf.testing.DurationType min_duration = 102;
- if (this->has_min_duration()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 102, this->_internal_min_duration(), deterministic, target);
- }
- // .google.protobuf.testing.DurationType max_duration = 103;
- if (this->has_max_duration()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 103, this->_internal_max_duration(), deterministic, target);
- }
- // .google.protobuf.testing.DurationType duration1 = 104;
- if (this->has_duration1()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 104, this->_internal_duration1(), deterministic, target);
- }
- // .google.protobuf.testing.DurationType duration2 = 105;
- if (this->has_duration2()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 105, this->_internal_duration2(), deterministic, target);
- }
- // .google.protobuf.testing.DurationType duration3 = 106;
- if (this->has_duration3()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 106, this->_internal_duration3(), deterministic, target);
- }
- // .google.protobuf.testing.DurationType duration4 = 107;
- if (this->has_duration4()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 107, this->_internal_duration4(), deterministic, target);
- }
- // .google.protobuf.Duration duration5 = 108;
- if (this->has_duration5()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 108, this->_internal_duration5(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.TimestampDurationTestCases)
- return target;
- }
- size_t TimestampDurationTestCases::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.TimestampDurationTestCases)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.testing.TimeStampType epoch = 1;
- if (this->has_epoch()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *epoch_);
- }
- // .google.protobuf.testing.TimeStampType epoch2 = 2;
- if (this->has_epoch2()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *epoch2_);
- }
- // .google.protobuf.testing.TimeStampType mintime = 3;
- if (this->has_mintime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *mintime_);
- }
- // .google.protobuf.testing.TimeStampType maxtime = 4;
- if (this->has_maxtime()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *maxtime_);
- }
- // .google.protobuf.testing.TimeStampType timeval1 = 5;
- if (this->has_timeval1()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timeval1_);
- }
- // .google.protobuf.testing.TimeStampType timeval2 = 6;
- if (this->has_timeval2()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timeval2_);
- }
- // .google.protobuf.testing.TimeStampType timeval3 = 7;
- if (this->has_timeval3()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timeval3_);
- }
- // .google.protobuf.testing.TimeStampType timeval4 = 8;
- if (this->has_timeval4()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timeval4_);
- }
- // .google.protobuf.testing.TimeStampType timeval5 = 9;
- if (this->has_timeval5()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timeval5_);
- }
- // .google.protobuf.testing.TimeStampType timeval6 = 10;
- if (this->has_timeval6()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timeval6_);
- }
- // .google.protobuf.testing.TimeStampType timeval7 = 11;
- if (this->has_timeval7()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timeval7_);
- }
- // .google.protobuf.Timestamp timeval8 = 12;
- if (this->has_timeval8()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timeval8_);
- }
- // .google.protobuf.testing.DurationType zero_duration = 101;
- if (this->has_zero_duration()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *zero_duration_);
- }
- // .google.protobuf.testing.DurationType min_duration = 102;
- if (this->has_min_duration()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *min_duration_);
- }
- // .google.protobuf.testing.DurationType max_duration = 103;
- if (this->has_max_duration()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *max_duration_);
- }
- // .google.protobuf.testing.DurationType duration1 = 104;
- if (this->has_duration1()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *duration1_);
- }
- // .google.protobuf.testing.DurationType duration2 = 105;
- if (this->has_duration2()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *duration2_);
- }
- // .google.protobuf.testing.DurationType duration3 = 106;
- if (this->has_duration3()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *duration3_);
- }
- // .google.protobuf.testing.DurationType duration4 = 107;
- if (this->has_duration4()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *duration4_);
- }
- // .google.protobuf.Duration duration5 = 108;
- if (this->has_duration5()) {
- total_size += 2 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *duration5_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TimestampDurationTestCases::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.TimestampDurationTestCases)
- GOOGLE_DCHECK_NE(&from, this);
- const TimestampDurationTestCases* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TimestampDurationTestCases>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.TimestampDurationTestCases)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.TimestampDurationTestCases)
- MergeFrom(*source);
- }
- }
- void TimestampDurationTestCases::MergeFrom(const TimestampDurationTestCases& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.TimestampDurationTestCases)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_epoch()) {
- mutable_epoch()->::google::protobuf::testing::TimeStampType::MergeFrom(from.epoch());
- }
- if (from.has_epoch2()) {
- mutable_epoch2()->::google::protobuf::testing::TimeStampType::MergeFrom(from.epoch2());
- }
- if (from.has_mintime()) {
- mutable_mintime()->::google::protobuf::testing::TimeStampType::MergeFrom(from.mintime());
- }
- if (from.has_maxtime()) {
- mutable_maxtime()->::google::protobuf::testing::TimeStampType::MergeFrom(from.maxtime());
- }
- if (from.has_timeval1()) {
- mutable_timeval1()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval1());
- }
- if (from.has_timeval2()) {
- mutable_timeval2()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval2());
- }
- if (from.has_timeval3()) {
- mutable_timeval3()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval3());
- }
- if (from.has_timeval4()) {
- mutable_timeval4()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval4());
- }
- if (from.has_timeval5()) {
- mutable_timeval5()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval5());
- }
- if (from.has_timeval6()) {
- mutable_timeval6()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval6());
- }
- if (from.has_timeval7()) {
- mutable_timeval7()->::google::protobuf::testing::TimeStampType::MergeFrom(from.timeval7());
- }
- if (from.has_timeval8()) {
- mutable_timeval8()->::google::protobuf::Timestamp::MergeFrom(from.timeval8());
- }
- if (from.has_zero_duration()) {
- mutable_zero_duration()->::google::protobuf::testing::DurationType::MergeFrom(from.zero_duration());
- }
- if (from.has_min_duration()) {
- mutable_min_duration()->::google::protobuf::testing::DurationType::MergeFrom(from.min_duration());
- }
- if (from.has_max_duration()) {
- mutable_max_duration()->::google::protobuf::testing::DurationType::MergeFrom(from.max_duration());
- }
- if (from.has_duration1()) {
- mutable_duration1()->::google::protobuf::testing::DurationType::MergeFrom(from.duration1());
- }
- if (from.has_duration2()) {
- mutable_duration2()->::google::protobuf::testing::DurationType::MergeFrom(from.duration2());
- }
- if (from.has_duration3()) {
- mutable_duration3()->::google::protobuf::testing::DurationType::MergeFrom(from.duration3());
- }
- if (from.has_duration4()) {
- mutable_duration4()->::google::protobuf::testing::DurationType::MergeFrom(from.duration4());
- }
- if (from.has_duration5()) {
- mutable_duration5()->::google::protobuf::Duration::MergeFrom(from.duration5());
- }
- }
- void TimestampDurationTestCases::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.TimestampDurationTestCases)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TimestampDurationTestCases::CopyFrom(const TimestampDurationTestCases& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.TimestampDurationTestCases)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TimestampDurationTestCases::IsInitialized() const {
- return true;
- }
- void TimestampDurationTestCases::Swap(TimestampDurationTestCases* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void TimestampDurationTestCases::InternalSwap(TimestampDurationTestCases* other) {
- using std::swap;
- swap(epoch_, other->epoch_);
- swap(epoch2_, other->epoch2_);
- swap(mintime_, other->mintime_);
- swap(maxtime_, other->maxtime_);
- swap(timeval1_, other->timeval1_);
- swap(timeval2_, other->timeval2_);
- swap(timeval3_, other->timeval3_);
- swap(timeval4_, other->timeval4_);
- swap(timeval5_, other->timeval5_);
- swap(timeval6_, other->timeval6_);
- swap(timeval7_, other->timeval7_);
- swap(timeval8_, other->timeval8_);
- swap(zero_duration_, other->zero_duration_);
- swap(min_duration_, other->min_duration_);
- swap(max_duration_, other->max_duration_);
- swap(duration1_, other->duration1_);
- swap(duration2_, other->duration2_);
- swap(duration3_, other->duration3_);
- swap(duration4_, other->duration4_);
- swap(duration5_, other->duration5_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TimestampDurationTestCases::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void TimeStampType::InitAsDefaultInstance() {
- ::google::protobuf::testing::_TimeStampType_default_instance_._instance.get_mutable()->timestamp_ = const_cast< ::google::protobuf::Timestamp*>(
- ::google::protobuf::Timestamp::internal_default_instance());
- }
- void TimeStampType::clear_timestamp() {
- if (GetArenaNoVirtual() == NULL && timestamp_ != NULL) {
- delete timestamp_;
- }
- timestamp_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TimeStampType::kTimestampFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TimeStampType::TimeStampType()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimeStampType.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.TimeStampType)
- }
- TimeStampType::TimeStampType(const TimeStampType& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_timestamp()) {
- timestamp_ = new ::google::protobuf::Timestamp(*from.timestamp_);
- } else {
- timestamp_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.TimeStampType)
- }
- void TimeStampType::SharedCtor() {
- timestamp_ = NULL;
- }
- TimeStampType::~TimeStampType() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.TimeStampType)
- SharedDtor();
- }
- void TimeStampType::SharedDtor() {
- if (this != internal_default_instance()) delete timestamp_;
- }
- void TimeStampType::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TimeStampType::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TimeStampType& TimeStampType::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimeStampType.base);
- return *internal_default_instance();
- }
- void TimeStampType::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.TimeStampType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && timestamp_ != NULL) {
- delete timestamp_;
- }
- timestamp_ = NULL;
- _internal_metadata_.Clear();
- }
- bool TimeStampType::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.TimeStampType)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.Timestamp timestamp = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_timestamp()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.TimeStampType)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.TimeStampType)
- return false;
- #undef DO_
- }
- void TimeStampType::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.TimeStampType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Timestamp timestamp = 1;
- if (this->has_timestamp()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_timestamp(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.TimeStampType)
- }
- ::google::protobuf::uint8* TimeStampType::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.TimeStampType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Timestamp timestamp = 1;
- if (this->has_timestamp()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_timestamp(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.TimeStampType)
- return target;
- }
- size_t TimeStampType::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.TimeStampType)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.Timestamp timestamp = 1;
- if (this->has_timestamp()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *timestamp_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TimeStampType::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.TimeStampType)
- GOOGLE_DCHECK_NE(&from, this);
- const TimeStampType* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TimeStampType>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.TimeStampType)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.TimeStampType)
- MergeFrom(*source);
- }
- }
- void TimeStampType::MergeFrom(const TimeStampType& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.TimeStampType)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_timestamp()) {
- mutable_timestamp()->::google::protobuf::Timestamp::MergeFrom(from.timestamp());
- }
- }
- void TimeStampType::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.TimeStampType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TimeStampType::CopyFrom(const TimeStampType& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.TimeStampType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TimeStampType::IsInitialized() const {
- return true;
- }
- void TimeStampType::Swap(TimeStampType* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void TimeStampType::InternalSwap(TimeStampType* other) {
- using std::swap;
- swap(timestamp_, other->timestamp_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TimeStampType::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void DurationType::InitAsDefaultInstance() {
- ::google::protobuf::testing::_DurationType_default_instance_._instance.get_mutable()->duration_ = const_cast< ::google::protobuf::Duration*>(
- ::google::protobuf::Duration::internal_default_instance());
- }
- void DurationType::clear_duration() {
- if (GetArenaNoVirtual() == NULL && duration_ != NULL) {
- delete duration_;
- }
- duration_ = NULL;
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int DurationType::kDurationFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- DurationType::DurationType()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_DurationType.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.DurationType)
- }
- DurationType::DurationType(const DurationType& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_duration()) {
- duration_ = new ::google::protobuf::Duration(*from.duration_);
- } else {
- duration_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.DurationType)
- }
- void DurationType::SharedCtor() {
- duration_ = NULL;
- }
- DurationType::~DurationType() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.DurationType)
- SharedDtor();
- }
- void DurationType::SharedDtor() {
- if (this != internal_default_instance()) delete duration_;
- }
- void DurationType::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* DurationType::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const DurationType& DurationType::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_DurationType.base);
- return *internal_default_instance();
- }
- void DurationType::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.DurationType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- if (GetArenaNoVirtual() == NULL && duration_ != NULL) {
- delete duration_;
- }
- duration_ = NULL;
- _internal_metadata_.Clear();
- }
- bool DurationType::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.DurationType)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.Duration duration = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_duration()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.DurationType)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.DurationType)
- return false;
- #undef DO_
- }
- void DurationType::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.DurationType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Duration duration = 1;
- if (this->has_duration()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_duration(), output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.DurationType)
- }
- ::google::protobuf::uint8* DurationType::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.DurationType)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Duration duration = 1;
- if (this->has_duration()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_duration(), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.DurationType)
- return target;
- }
- size_t DurationType::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.DurationType)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // .google.protobuf.Duration duration = 1;
- if (this->has_duration()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *duration_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void DurationType::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.DurationType)
- GOOGLE_DCHECK_NE(&from, this);
- const DurationType* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const DurationType>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.DurationType)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.DurationType)
- MergeFrom(*source);
- }
- }
- void DurationType::MergeFrom(const DurationType& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.DurationType)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- if (from.has_duration()) {
- mutable_duration()->::google::protobuf::Duration::MergeFrom(from.duration());
- }
- }
- void DurationType::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.DurationType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void DurationType::CopyFrom(const DurationType& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.DurationType)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool DurationType::IsInitialized() const {
- return true;
- }
- void DurationType::Swap(DurationType* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void DurationType::InternalSwap(DurationType* other) {
- using std::swap;
- swap(duration_, other->duration_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata DurationType::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // ===================================================================
- void TimestampDuration::InitAsDefaultInstance() {
- ::google::protobuf::testing::_TimestampDuration_default_instance_._instance.get_mutable()->ts_ = const_cast< ::google::protobuf::Timestamp*>(
- ::google::protobuf::Timestamp::internal_default_instance());
- ::google::protobuf::testing::_TimestampDuration_default_instance_._instance.get_mutable()->dur_ = const_cast< ::google::protobuf::Duration*>(
- ::google::protobuf::Duration::internal_default_instance());
- }
- void TimestampDuration::clear_ts() {
- if (GetArenaNoVirtual() == NULL && ts_ != NULL) {
- delete ts_;
- }
- ts_ = NULL;
- }
- void TimestampDuration::clear_dur() {
- if (GetArenaNoVirtual() == NULL && dur_ != NULL) {
- delete dur_;
- }
- dur_ = NULL;
- }
- void TimestampDuration::clear_rep_ts() {
- rep_ts_.Clear();
- }
- #if !defined(_MSC_VER) || _MSC_VER >= 1900
- const int TimestampDuration::kTsFieldNumber;
- const int TimestampDuration::kDurFieldNumber;
- const int TimestampDuration::kRepTsFieldNumber;
- #endif // !defined(_MSC_VER) || _MSC_VER >= 1900
- TimestampDuration::TimestampDuration()
- : ::google::protobuf::Message(), _internal_metadata_(NULL) {
- ::google::protobuf::internal::InitSCC(
- &protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimestampDuration.base);
- SharedCtor();
- // @@protoc_insertion_point(constructor:google.protobuf.testing.TimestampDuration)
- }
- TimestampDuration::TimestampDuration(const TimestampDuration& from)
- : ::google::protobuf::Message(),
- _internal_metadata_(NULL),
- rep_ts_(from.rep_ts_) {
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- if (from.has_ts()) {
- ts_ = new ::google::protobuf::Timestamp(*from.ts_);
- } else {
- ts_ = NULL;
- }
- if (from.has_dur()) {
- dur_ = new ::google::protobuf::Duration(*from.dur_);
- } else {
- dur_ = NULL;
- }
- // @@protoc_insertion_point(copy_constructor:google.protobuf.testing.TimestampDuration)
- }
- void TimestampDuration::SharedCtor() {
- ::memset(&ts_, 0, static_cast<size_t>(
- reinterpret_cast<char*>(&dur_) -
- reinterpret_cast<char*>(&ts_)) + sizeof(dur_));
- }
- TimestampDuration::~TimestampDuration() {
- // @@protoc_insertion_point(destructor:google.protobuf.testing.TimestampDuration)
- SharedDtor();
- }
- void TimestampDuration::SharedDtor() {
- if (this != internal_default_instance()) delete ts_;
- if (this != internal_default_instance()) delete dur_;
- }
- void TimestampDuration::SetCachedSize(int size) const {
- _cached_size_.Set(size);
- }
- const ::google::protobuf::Descriptor* TimestampDuration::descriptor() {
- ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
- }
- const TimestampDuration& TimestampDuration::default_instance() {
- ::google::protobuf::internal::InitSCC(&protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::scc_info_TimestampDuration.base);
- return *internal_default_instance();
- }
- void TimestampDuration::Clear() {
- // @@protoc_insertion_point(message_clear_start:google.protobuf.testing.TimestampDuration)
- ::google::protobuf::uint32 cached_has_bits = 0;
- // Prevent compiler warnings about cached_has_bits being unused
- (void) cached_has_bits;
- rep_ts_.Clear();
- if (GetArenaNoVirtual() == NULL && ts_ != NULL) {
- delete ts_;
- }
- ts_ = NULL;
- if (GetArenaNoVirtual() == NULL && dur_ != NULL) {
- delete dur_;
- }
- dur_ = NULL;
- _internal_metadata_.Clear();
- }
- bool TimestampDuration::MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) {
- #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
- ::google::protobuf::uint32 tag;
- // @@protoc_insertion_point(parse_start:google.protobuf.testing.TimestampDuration)
- for (;;) {
- ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
- tag = p.first;
- if (!p.second) goto handle_unusual;
- switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
- // .google.protobuf.Timestamp ts = 1;
- case 1: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_ts()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // .google.protobuf.Duration dur = 2;
- case 2: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, mutable_dur()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- // repeated .google.protobuf.Timestamp rep_ts = 3;
- case 3: {
- if (static_cast< ::google::protobuf::uint8>(tag) ==
- static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
- DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(
- input, add_rep_ts()));
- } else {
- goto handle_unusual;
- }
- break;
- }
- default: {
- handle_unusual:
- if (tag == 0) {
- goto success;
- }
- DO_(::google::protobuf::internal::WireFormat::SkipField(
- input, tag, _internal_metadata_.mutable_unknown_fields()));
- break;
- }
- }
- }
- success:
- // @@protoc_insertion_point(parse_success:google.protobuf.testing.TimestampDuration)
- return true;
- failure:
- // @@protoc_insertion_point(parse_failure:google.protobuf.testing.TimestampDuration)
- return false;
- #undef DO_
- }
- void TimestampDuration::SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const {
- // @@protoc_insertion_point(serialize_start:google.protobuf.testing.TimestampDuration)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Timestamp ts = 1;
- if (this->has_ts()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 1, this->_internal_ts(), output);
- }
- // .google.protobuf.Duration dur = 2;
- if (this->has_dur()) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 2, this->_internal_dur(), output);
- }
- // repeated .google.protobuf.Timestamp rep_ts = 3;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->rep_ts_size()); i < n; i++) {
- ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
- 3,
- this->rep_ts(static_cast<int>(i)),
- output);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), output);
- }
- // @@protoc_insertion_point(serialize_end:google.protobuf.testing.TimestampDuration)
- }
- ::google::protobuf::uint8* TimestampDuration::InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const {
- (void)deterministic; // Unused
- // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.testing.TimestampDuration)
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- // .google.protobuf.Timestamp ts = 1;
- if (this->has_ts()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 1, this->_internal_ts(), deterministic, target);
- }
- // .google.protobuf.Duration dur = 2;
- if (this->has_dur()) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 2, this->_internal_dur(), deterministic, target);
- }
- // repeated .google.protobuf.Timestamp rep_ts = 3;
- for (unsigned int i = 0,
- n = static_cast<unsigned int>(this->rep_ts_size()); i < n; i++) {
- target = ::google::protobuf::internal::WireFormatLite::
- InternalWriteMessageToArray(
- 3, this->rep_ts(static_cast<int>(i)), deterministic, target);
- }
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()), target);
- }
- // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.testing.TimestampDuration)
- return target;
- }
- size_t TimestampDuration::ByteSizeLong() const {
- // @@protoc_insertion_point(message_byte_size_start:google.protobuf.testing.TimestampDuration)
- size_t total_size = 0;
- if ((_internal_metadata_.have_unknown_fields() && ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
- total_size +=
- ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
- (::google::protobuf::internal::GetProto3PreserveUnknownsDefault() ? _internal_metadata_.unknown_fields() : _internal_metadata_.default_instance()));
- }
- // repeated .google.protobuf.Timestamp rep_ts = 3;
- {
- unsigned int count = static_cast<unsigned int>(this->rep_ts_size());
- total_size += 1UL * count;
- for (unsigned int i = 0; i < count; i++) {
- total_size +=
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- this->rep_ts(static_cast<int>(i)));
- }
- }
- // .google.protobuf.Timestamp ts = 1;
- if (this->has_ts()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *ts_);
- }
- // .google.protobuf.Duration dur = 2;
- if (this->has_dur()) {
- total_size += 1 +
- ::google::protobuf::internal::WireFormatLite::MessageSize(
- *dur_);
- }
- int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
- SetCachedSize(cached_size);
- return total_size;
- }
- void TimestampDuration::MergeFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_merge_from_start:google.protobuf.testing.TimestampDuration)
- GOOGLE_DCHECK_NE(&from, this);
- const TimestampDuration* source =
- ::google::protobuf::internal::DynamicCastToGenerated<const TimestampDuration>(
- &from);
- if (source == NULL) {
- // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.protobuf.testing.TimestampDuration)
- ::google::protobuf::internal::ReflectionOps::Merge(from, this);
- } else {
- // @@protoc_insertion_point(generalized_merge_from_cast_success:google.protobuf.testing.TimestampDuration)
- MergeFrom(*source);
- }
- }
- void TimestampDuration::MergeFrom(const TimestampDuration& from) {
- // @@protoc_insertion_point(class_specific_merge_from_start:google.protobuf.testing.TimestampDuration)
- GOOGLE_DCHECK_NE(&from, this);
- _internal_metadata_.MergeFrom(from._internal_metadata_);
- ::google::protobuf::uint32 cached_has_bits = 0;
- (void) cached_has_bits;
- rep_ts_.MergeFrom(from.rep_ts_);
- if (from.has_ts()) {
- mutable_ts()->::google::protobuf::Timestamp::MergeFrom(from.ts());
- }
- if (from.has_dur()) {
- mutable_dur()->::google::protobuf::Duration::MergeFrom(from.dur());
- }
- }
- void TimestampDuration::CopyFrom(const ::google::protobuf::Message& from) {
- // @@protoc_insertion_point(generalized_copy_from_start:google.protobuf.testing.TimestampDuration)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- void TimestampDuration::CopyFrom(const TimestampDuration& from) {
- // @@protoc_insertion_point(class_specific_copy_from_start:google.protobuf.testing.TimestampDuration)
- if (&from == this) return;
- Clear();
- MergeFrom(from);
- }
- bool TimestampDuration::IsInitialized() const {
- return true;
- }
- void TimestampDuration::Swap(TimestampDuration* other) {
- if (other == this) return;
- InternalSwap(other);
- }
- void TimestampDuration::InternalSwap(TimestampDuration* other) {
- using std::swap;
- CastToBase(&rep_ts_)->InternalSwap(CastToBase(&other->rep_ts_));
- swap(ts_, other->ts_);
- swap(dur_, other->dur_);
- _internal_metadata_.Swap(&other->_internal_metadata_);
- }
- ::google::protobuf::Metadata TimestampDuration::GetMetadata() const {
- protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::protobuf_AssignDescriptorsOnce();
- return ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::file_level_metadata[kIndexInFileMessages];
- }
- // @@protoc_insertion_point(namespace_scope)
- } // namespace testing
- } // namespace protobuf
- } // namespace google
- namespace google {
- namespace protobuf {
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::TimestampDurationTestCases* Arena::CreateMaybeMessage< ::google::protobuf::testing::TimestampDurationTestCases >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::TimestampDurationTestCases >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::TimeStampType* Arena::CreateMaybeMessage< ::google::protobuf::testing::TimeStampType >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::TimeStampType >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::DurationType* Arena::CreateMaybeMessage< ::google::protobuf::testing::DurationType >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::DurationType >(arena);
- }
- template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::google::protobuf::testing::TimestampDuration* Arena::CreateMaybeMessage< ::google::protobuf::testing::TimestampDuration >(Arena* arena) {
- return Arena::CreateInternal< ::google::protobuf::testing::TimestampDuration >(arena);
- }
- } // namespace protobuf
- } // namespace google
- // @@protoc_insertion_point(global_scope)
|