timestamp_duration.pb.h 85 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/util/internal/testdata/timestamp_duration.proto
  3. #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto
  4. #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3006001
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_table_driven.h>
  21. #include <google/protobuf/generated_message_util.h>
  22. #include <google/protobuf/inlined_string_field.h>
  23. #include <google/protobuf/metadata.h>
  24. #include <google/protobuf/message.h>
  25. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  26. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  27. #include <google/protobuf/unknown_field_set.h>
  28. #include <google/protobuf/timestamp.pb.h>
  29. #include <google/protobuf/duration.pb.h>
  30. // @@protoc_insertion_point(includes)
  31. #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto
  32. namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto {
  33. // Internal implementation detail -- do not use these members.
  34. struct TableStruct {
  35. static const ::google::protobuf::internal::ParseTableField entries[];
  36. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  37. static const ::google::protobuf::internal::ParseTable schema[4];
  38. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  39. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  40. static const ::google::protobuf::uint32 offsets[];
  41. };
  42. void AddDescriptors();
  43. } // namespace protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto
  44. namespace google {
  45. namespace protobuf {
  46. namespace testing {
  47. class DurationType;
  48. class DurationTypeDefaultTypeInternal;
  49. extern DurationTypeDefaultTypeInternal _DurationType_default_instance_;
  50. class TimeStampType;
  51. class TimeStampTypeDefaultTypeInternal;
  52. extern TimeStampTypeDefaultTypeInternal _TimeStampType_default_instance_;
  53. class TimestampDuration;
  54. class TimestampDurationDefaultTypeInternal;
  55. extern TimestampDurationDefaultTypeInternal _TimestampDuration_default_instance_;
  56. class TimestampDurationTestCases;
  57. class TimestampDurationTestCasesDefaultTypeInternal;
  58. extern TimestampDurationTestCasesDefaultTypeInternal _TimestampDurationTestCases_default_instance_;
  59. } // namespace testing
  60. } // namespace protobuf
  61. } // namespace google
  62. namespace google {
  63. namespace protobuf {
  64. template<> ::google::protobuf::testing::DurationType* Arena::CreateMaybeMessage<::google::protobuf::testing::DurationType>(Arena*);
  65. template<> ::google::protobuf::testing::TimeStampType* Arena::CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(Arena*);
  66. template<> ::google::protobuf::testing::TimestampDuration* Arena::CreateMaybeMessage<::google::protobuf::testing::TimestampDuration>(Arena*);
  67. template<> ::google::protobuf::testing::TimestampDurationTestCases* Arena::CreateMaybeMessage<::google::protobuf::testing::TimestampDurationTestCases>(Arena*);
  68. } // namespace protobuf
  69. } // namespace google
  70. namespace google {
  71. namespace protobuf {
  72. namespace testing {
  73. // ===================================================================
  74. class TimestampDurationTestCases : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.TimestampDurationTestCases) */ {
  75. public:
  76. TimestampDurationTestCases();
  77. virtual ~TimestampDurationTestCases();
  78. TimestampDurationTestCases(const TimestampDurationTestCases& from);
  79. inline TimestampDurationTestCases& operator=(const TimestampDurationTestCases& from) {
  80. CopyFrom(from);
  81. return *this;
  82. }
  83. #if LANG_CXX11
  84. TimestampDurationTestCases(TimestampDurationTestCases&& from) noexcept
  85. : TimestampDurationTestCases() {
  86. *this = ::std::move(from);
  87. }
  88. inline TimestampDurationTestCases& operator=(TimestampDurationTestCases&& from) noexcept {
  89. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  90. if (this != &from) InternalSwap(&from);
  91. } else {
  92. CopyFrom(from);
  93. }
  94. return *this;
  95. }
  96. #endif
  97. static const ::google::protobuf::Descriptor* descriptor();
  98. static const TimestampDurationTestCases& default_instance();
  99. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  100. static inline const TimestampDurationTestCases* internal_default_instance() {
  101. return reinterpret_cast<const TimestampDurationTestCases*>(
  102. &_TimestampDurationTestCases_default_instance_);
  103. }
  104. static constexpr int kIndexInFileMessages =
  105. 0;
  106. void Swap(TimestampDurationTestCases* other);
  107. friend void swap(TimestampDurationTestCases& a, TimestampDurationTestCases& b) {
  108. a.Swap(&b);
  109. }
  110. // implements Message ----------------------------------------------
  111. inline TimestampDurationTestCases* New() const final {
  112. return CreateMaybeMessage<TimestampDurationTestCases>(NULL);
  113. }
  114. TimestampDurationTestCases* New(::google::protobuf::Arena* arena) const final {
  115. return CreateMaybeMessage<TimestampDurationTestCases>(arena);
  116. }
  117. void CopyFrom(const ::google::protobuf::Message& from) final;
  118. void MergeFrom(const ::google::protobuf::Message& from) final;
  119. void CopyFrom(const TimestampDurationTestCases& from);
  120. void MergeFrom(const TimestampDurationTestCases& from);
  121. void Clear() final;
  122. bool IsInitialized() const final;
  123. size_t ByteSizeLong() const final;
  124. bool MergePartialFromCodedStream(
  125. ::google::protobuf::io::CodedInputStream* input) final;
  126. void SerializeWithCachedSizes(
  127. ::google::protobuf::io::CodedOutputStream* output) const final;
  128. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  129. bool deterministic, ::google::protobuf::uint8* target) const final;
  130. int GetCachedSize() const final { return _cached_size_.Get(); }
  131. private:
  132. void SharedCtor();
  133. void SharedDtor();
  134. void SetCachedSize(int size) const final;
  135. void InternalSwap(TimestampDurationTestCases* other);
  136. private:
  137. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  138. return NULL;
  139. }
  140. inline void* MaybeArenaPtr() const {
  141. return NULL;
  142. }
  143. public:
  144. ::google::protobuf::Metadata GetMetadata() const final;
  145. // nested types ----------------------------------------------------
  146. // accessors -------------------------------------------------------
  147. // .google.protobuf.testing.TimeStampType epoch = 1;
  148. bool has_epoch() const;
  149. void clear_epoch();
  150. static const int kEpochFieldNumber = 1;
  151. private:
  152. const ::google::protobuf::testing::TimeStampType& _internal_epoch() const;
  153. public:
  154. const ::google::protobuf::testing::TimeStampType& epoch() const;
  155. ::google::protobuf::testing::TimeStampType* release_epoch();
  156. ::google::protobuf::testing::TimeStampType* mutable_epoch();
  157. void set_allocated_epoch(::google::protobuf::testing::TimeStampType* epoch);
  158. // .google.protobuf.testing.TimeStampType epoch2 = 2;
  159. bool has_epoch2() const;
  160. void clear_epoch2();
  161. static const int kEpoch2FieldNumber = 2;
  162. private:
  163. const ::google::protobuf::testing::TimeStampType& _internal_epoch2() const;
  164. public:
  165. const ::google::protobuf::testing::TimeStampType& epoch2() const;
  166. ::google::protobuf::testing::TimeStampType* release_epoch2();
  167. ::google::protobuf::testing::TimeStampType* mutable_epoch2();
  168. void set_allocated_epoch2(::google::protobuf::testing::TimeStampType* epoch2);
  169. // .google.protobuf.testing.TimeStampType mintime = 3;
  170. bool has_mintime() const;
  171. void clear_mintime();
  172. static const int kMintimeFieldNumber = 3;
  173. private:
  174. const ::google::protobuf::testing::TimeStampType& _internal_mintime() const;
  175. public:
  176. const ::google::protobuf::testing::TimeStampType& mintime() const;
  177. ::google::protobuf::testing::TimeStampType* release_mintime();
  178. ::google::protobuf::testing::TimeStampType* mutable_mintime();
  179. void set_allocated_mintime(::google::protobuf::testing::TimeStampType* mintime);
  180. // .google.protobuf.testing.TimeStampType maxtime = 4;
  181. bool has_maxtime() const;
  182. void clear_maxtime();
  183. static const int kMaxtimeFieldNumber = 4;
  184. private:
  185. const ::google::protobuf::testing::TimeStampType& _internal_maxtime() const;
  186. public:
  187. const ::google::protobuf::testing::TimeStampType& maxtime() const;
  188. ::google::protobuf::testing::TimeStampType* release_maxtime();
  189. ::google::protobuf::testing::TimeStampType* mutable_maxtime();
  190. void set_allocated_maxtime(::google::protobuf::testing::TimeStampType* maxtime);
  191. // .google.protobuf.testing.TimeStampType timeval1 = 5;
  192. bool has_timeval1() const;
  193. void clear_timeval1();
  194. static const int kTimeval1FieldNumber = 5;
  195. private:
  196. const ::google::protobuf::testing::TimeStampType& _internal_timeval1() const;
  197. public:
  198. const ::google::protobuf::testing::TimeStampType& timeval1() const;
  199. ::google::protobuf::testing::TimeStampType* release_timeval1();
  200. ::google::protobuf::testing::TimeStampType* mutable_timeval1();
  201. void set_allocated_timeval1(::google::protobuf::testing::TimeStampType* timeval1);
  202. // .google.protobuf.testing.TimeStampType timeval2 = 6;
  203. bool has_timeval2() const;
  204. void clear_timeval2();
  205. static const int kTimeval2FieldNumber = 6;
  206. private:
  207. const ::google::protobuf::testing::TimeStampType& _internal_timeval2() const;
  208. public:
  209. const ::google::protobuf::testing::TimeStampType& timeval2() const;
  210. ::google::protobuf::testing::TimeStampType* release_timeval2();
  211. ::google::protobuf::testing::TimeStampType* mutable_timeval2();
  212. void set_allocated_timeval2(::google::protobuf::testing::TimeStampType* timeval2);
  213. // .google.protobuf.testing.TimeStampType timeval3 = 7;
  214. bool has_timeval3() const;
  215. void clear_timeval3();
  216. static const int kTimeval3FieldNumber = 7;
  217. private:
  218. const ::google::protobuf::testing::TimeStampType& _internal_timeval3() const;
  219. public:
  220. const ::google::protobuf::testing::TimeStampType& timeval3() const;
  221. ::google::protobuf::testing::TimeStampType* release_timeval3();
  222. ::google::protobuf::testing::TimeStampType* mutable_timeval3();
  223. void set_allocated_timeval3(::google::protobuf::testing::TimeStampType* timeval3);
  224. // .google.protobuf.testing.TimeStampType timeval4 = 8;
  225. bool has_timeval4() const;
  226. void clear_timeval4();
  227. static const int kTimeval4FieldNumber = 8;
  228. private:
  229. const ::google::protobuf::testing::TimeStampType& _internal_timeval4() const;
  230. public:
  231. const ::google::protobuf::testing::TimeStampType& timeval4() const;
  232. ::google::protobuf::testing::TimeStampType* release_timeval4();
  233. ::google::protobuf::testing::TimeStampType* mutable_timeval4();
  234. void set_allocated_timeval4(::google::protobuf::testing::TimeStampType* timeval4);
  235. // .google.protobuf.testing.TimeStampType timeval5 = 9;
  236. bool has_timeval5() const;
  237. void clear_timeval5();
  238. static const int kTimeval5FieldNumber = 9;
  239. private:
  240. const ::google::protobuf::testing::TimeStampType& _internal_timeval5() const;
  241. public:
  242. const ::google::protobuf::testing::TimeStampType& timeval5() const;
  243. ::google::protobuf::testing::TimeStampType* release_timeval5();
  244. ::google::protobuf::testing::TimeStampType* mutable_timeval5();
  245. void set_allocated_timeval5(::google::protobuf::testing::TimeStampType* timeval5);
  246. // .google.protobuf.testing.TimeStampType timeval6 = 10;
  247. bool has_timeval6() const;
  248. void clear_timeval6();
  249. static const int kTimeval6FieldNumber = 10;
  250. private:
  251. const ::google::protobuf::testing::TimeStampType& _internal_timeval6() const;
  252. public:
  253. const ::google::protobuf::testing::TimeStampType& timeval6() const;
  254. ::google::protobuf::testing::TimeStampType* release_timeval6();
  255. ::google::protobuf::testing::TimeStampType* mutable_timeval6();
  256. void set_allocated_timeval6(::google::protobuf::testing::TimeStampType* timeval6);
  257. // .google.protobuf.testing.TimeStampType timeval7 = 11;
  258. bool has_timeval7() const;
  259. void clear_timeval7();
  260. static const int kTimeval7FieldNumber = 11;
  261. private:
  262. const ::google::protobuf::testing::TimeStampType& _internal_timeval7() const;
  263. public:
  264. const ::google::protobuf::testing::TimeStampType& timeval7() const;
  265. ::google::protobuf::testing::TimeStampType* release_timeval7();
  266. ::google::protobuf::testing::TimeStampType* mutable_timeval7();
  267. void set_allocated_timeval7(::google::protobuf::testing::TimeStampType* timeval7);
  268. // .google.protobuf.Timestamp timeval8 = 12;
  269. bool has_timeval8() const;
  270. void clear_timeval8();
  271. static const int kTimeval8FieldNumber = 12;
  272. private:
  273. const ::google::protobuf::Timestamp& _internal_timeval8() const;
  274. public:
  275. const ::google::protobuf::Timestamp& timeval8() const;
  276. ::google::protobuf::Timestamp* release_timeval8();
  277. ::google::protobuf::Timestamp* mutable_timeval8();
  278. void set_allocated_timeval8(::google::protobuf::Timestamp* timeval8);
  279. // .google.protobuf.testing.DurationType zero_duration = 101;
  280. bool has_zero_duration() const;
  281. void clear_zero_duration();
  282. static const int kZeroDurationFieldNumber = 101;
  283. private:
  284. const ::google::protobuf::testing::DurationType& _internal_zero_duration() const;
  285. public:
  286. const ::google::protobuf::testing::DurationType& zero_duration() const;
  287. ::google::protobuf::testing::DurationType* release_zero_duration();
  288. ::google::protobuf::testing::DurationType* mutable_zero_duration();
  289. void set_allocated_zero_duration(::google::protobuf::testing::DurationType* zero_duration);
  290. // .google.protobuf.testing.DurationType min_duration = 102;
  291. bool has_min_duration() const;
  292. void clear_min_duration();
  293. static const int kMinDurationFieldNumber = 102;
  294. private:
  295. const ::google::protobuf::testing::DurationType& _internal_min_duration() const;
  296. public:
  297. const ::google::protobuf::testing::DurationType& min_duration() const;
  298. ::google::protobuf::testing::DurationType* release_min_duration();
  299. ::google::protobuf::testing::DurationType* mutable_min_duration();
  300. void set_allocated_min_duration(::google::protobuf::testing::DurationType* min_duration);
  301. // .google.protobuf.testing.DurationType max_duration = 103;
  302. bool has_max_duration() const;
  303. void clear_max_duration();
  304. static const int kMaxDurationFieldNumber = 103;
  305. private:
  306. const ::google::protobuf::testing::DurationType& _internal_max_duration() const;
  307. public:
  308. const ::google::protobuf::testing::DurationType& max_duration() const;
  309. ::google::protobuf::testing::DurationType* release_max_duration();
  310. ::google::protobuf::testing::DurationType* mutable_max_duration();
  311. void set_allocated_max_duration(::google::protobuf::testing::DurationType* max_duration);
  312. // .google.protobuf.testing.DurationType duration1 = 104;
  313. bool has_duration1() const;
  314. void clear_duration1();
  315. static const int kDuration1FieldNumber = 104;
  316. private:
  317. const ::google::protobuf::testing::DurationType& _internal_duration1() const;
  318. public:
  319. const ::google::protobuf::testing::DurationType& duration1() const;
  320. ::google::protobuf::testing::DurationType* release_duration1();
  321. ::google::protobuf::testing::DurationType* mutable_duration1();
  322. void set_allocated_duration1(::google::protobuf::testing::DurationType* duration1);
  323. // .google.protobuf.testing.DurationType duration2 = 105;
  324. bool has_duration2() const;
  325. void clear_duration2();
  326. static const int kDuration2FieldNumber = 105;
  327. private:
  328. const ::google::protobuf::testing::DurationType& _internal_duration2() const;
  329. public:
  330. const ::google::protobuf::testing::DurationType& duration2() const;
  331. ::google::protobuf::testing::DurationType* release_duration2();
  332. ::google::protobuf::testing::DurationType* mutable_duration2();
  333. void set_allocated_duration2(::google::protobuf::testing::DurationType* duration2);
  334. // .google.protobuf.testing.DurationType duration3 = 106;
  335. bool has_duration3() const;
  336. void clear_duration3();
  337. static const int kDuration3FieldNumber = 106;
  338. private:
  339. const ::google::protobuf::testing::DurationType& _internal_duration3() const;
  340. public:
  341. const ::google::protobuf::testing::DurationType& duration3() const;
  342. ::google::protobuf::testing::DurationType* release_duration3();
  343. ::google::protobuf::testing::DurationType* mutable_duration3();
  344. void set_allocated_duration3(::google::protobuf::testing::DurationType* duration3);
  345. // .google.protobuf.testing.DurationType duration4 = 107;
  346. bool has_duration4() const;
  347. void clear_duration4();
  348. static const int kDuration4FieldNumber = 107;
  349. private:
  350. const ::google::protobuf::testing::DurationType& _internal_duration4() const;
  351. public:
  352. const ::google::protobuf::testing::DurationType& duration4() const;
  353. ::google::protobuf::testing::DurationType* release_duration4();
  354. ::google::protobuf::testing::DurationType* mutable_duration4();
  355. void set_allocated_duration4(::google::protobuf::testing::DurationType* duration4);
  356. // .google.protobuf.Duration duration5 = 108;
  357. bool has_duration5() const;
  358. void clear_duration5();
  359. static const int kDuration5FieldNumber = 108;
  360. private:
  361. const ::google::protobuf::Duration& _internal_duration5() const;
  362. public:
  363. const ::google::protobuf::Duration& duration5() const;
  364. ::google::protobuf::Duration* release_duration5();
  365. ::google::protobuf::Duration* mutable_duration5();
  366. void set_allocated_duration5(::google::protobuf::Duration* duration5);
  367. // @@protoc_insertion_point(class_scope:google.protobuf.testing.TimestampDurationTestCases)
  368. private:
  369. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  370. ::google::protobuf::testing::TimeStampType* epoch_;
  371. ::google::protobuf::testing::TimeStampType* epoch2_;
  372. ::google::protobuf::testing::TimeStampType* mintime_;
  373. ::google::protobuf::testing::TimeStampType* maxtime_;
  374. ::google::protobuf::testing::TimeStampType* timeval1_;
  375. ::google::protobuf::testing::TimeStampType* timeval2_;
  376. ::google::protobuf::testing::TimeStampType* timeval3_;
  377. ::google::protobuf::testing::TimeStampType* timeval4_;
  378. ::google::protobuf::testing::TimeStampType* timeval5_;
  379. ::google::protobuf::testing::TimeStampType* timeval6_;
  380. ::google::protobuf::testing::TimeStampType* timeval7_;
  381. ::google::protobuf::Timestamp* timeval8_;
  382. ::google::protobuf::testing::DurationType* zero_duration_;
  383. ::google::protobuf::testing::DurationType* min_duration_;
  384. ::google::protobuf::testing::DurationType* max_duration_;
  385. ::google::protobuf::testing::DurationType* duration1_;
  386. ::google::protobuf::testing::DurationType* duration2_;
  387. ::google::protobuf::testing::DurationType* duration3_;
  388. ::google::protobuf::testing::DurationType* duration4_;
  389. ::google::protobuf::Duration* duration5_;
  390. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  391. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::TableStruct;
  392. };
  393. // -------------------------------------------------------------------
  394. class TimeStampType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.TimeStampType) */ {
  395. public:
  396. TimeStampType();
  397. virtual ~TimeStampType();
  398. TimeStampType(const TimeStampType& from);
  399. inline TimeStampType& operator=(const TimeStampType& from) {
  400. CopyFrom(from);
  401. return *this;
  402. }
  403. #if LANG_CXX11
  404. TimeStampType(TimeStampType&& from) noexcept
  405. : TimeStampType() {
  406. *this = ::std::move(from);
  407. }
  408. inline TimeStampType& operator=(TimeStampType&& from) noexcept {
  409. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  410. if (this != &from) InternalSwap(&from);
  411. } else {
  412. CopyFrom(from);
  413. }
  414. return *this;
  415. }
  416. #endif
  417. static const ::google::protobuf::Descriptor* descriptor();
  418. static const TimeStampType& default_instance();
  419. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  420. static inline const TimeStampType* internal_default_instance() {
  421. return reinterpret_cast<const TimeStampType*>(
  422. &_TimeStampType_default_instance_);
  423. }
  424. static constexpr int kIndexInFileMessages =
  425. 1;
  426. void Swap(TimeStampType* other);
  427. friend void swap(TimeStampType& a, TimeStampType& b) {
  428. a.Swap(&b);
  429. }
  430. // implements Message ----------------------------------------------
  431. inline TimeStampType* New() const final {
  432. return CreateMaybeMessage<TimeStampType>(NULL);
  433. }
  434. TimeStampType* New(::google::protobuf::Arena* arena) const final {
  435. return CreateMaybeMessage<TimeStampType>(arena);
  436. }
  437. void CopyFrom(const ::google::protobuf::Message& from) final;
  438. void MergeFrom(const ::google::protobuf::Message& from) final;
  439. void CopyFrom(const TimeStampType& from);
  440. void MergeFrom(const TimeStampType& from);
  441. void Clear() final;
  442. bool IsInitialized() const final;
  443. size_t ByteSizeLong() const final;
  444. bool MergePartialFromCodedStream(
  445. ::google::protobuf::io::CodedInputStream* input) final;
  446. void SerializeWithCachedSizes(
  447. ::google::protobuf::io::CodedOutputStream* output) const final;
  448. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  449. bool deterministic, ::google::protobuf::uint8* target) const final;
  450. int GetCachedSize() const final { return _cached_size_.Get(); }
  451. private:
  452. void SharedCtor();
  453. void SharedDtor();
  454. void SetCachedSize(int size) const final;
  455. void InternalSwap(TimeStampType* other);
  456. private:
  457. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  458. return NULL;
  459. }
  460. inline void* MaybeArenaPtr() const {
  461. return NULL;
  462. }
  463. public:
  464. ::google::protobuf::Metadata GetMetadata() const final;
  465. // nested types ----------------------------------------------------
  466. // accessors -------------------------------------------------------
  467. // .google.protobuf.Timestamp timestamp = 1;
  468. bool has_timestamp() const;
  469. void clear_timestamp();
  470. static const int kTimestampFieldNumber = 1;
  471. private:
  472. const ::google::protobuf::Timestamp& _internal_timestamp() const;
  473. public:
  474. const ::google::protobuf::Timestamp& timestamp() const;
  475. ::google::protobuf::Timestamp* release_timestamp();
  476. ::google::protobuf::Timestamp* mutable_timestamp();
  477. void set_allocated_timestamp(::google::protobuf::Timestamp* timestamp);
  478. // @@protoc_insertion_point(class_scope:google.protobuf.testing.TimeStampType)
  479. private:
  480. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  481. ::google::protobuf::Timestamp* timestamp_;
  482. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  483. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::TableStruct;
  484. };
  485. // -------------------------------------------------------------------
  486. class DurationType : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.DurationType) */ {
  487. public:
  488. DurationType();
  489. virtual ~DurationType();
  490. DurationType(const DurationType& from);
  491. inline DurationType& operator=(const DurationType& from) {
  492. CopyFrom(from);
  493. return *this;
  494. }
  495. #if LANG_CXX11
  496. DurationType(DurationType&& from) noexcept
  497. : DurationType() {
  498. *this = ::std::move(from);
  499. }
  500. inline DurationType& operator=(DurationType&& from) noexcept {
  501. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  502. if (this != &from) InternalSwap(&from);
  503. } else {
  504. CopyFrom(from);
  505. }
  506. return *this;
  507. }
  508. #endif
  509. static const ::google::protobuf::Descriptor* descriptor();
  510. static const DurationType& default_instance();
  511. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  512. static inline const DurationType* internal_default_instance() {
  513. return reinterpret_cast<const DurationType*>(
  514. &_DurationType_default_instance_);
  515. }
  516. static constexpr int kIndexInFileMessages =
  517. 2;
  518. void Swap(DurationType* other);
  519. friend void swap(DurationType& a, DurationType& b) {
  520. a.Swap(&b);
  521. }
  522. // implements Message ----------------------------------------------
  523. inline DurationType* New() const final {
  524. return CreateMaybeMessage<DurationType>(NULL);
  525. }
  526. DurationType* New(::google::protobuf::Arena* arena) const final {
  527. return CreateMaybeMessage<DurationType>(arena);
  528. }
  529. void CopyFrom(const ::google::protobuf::Message& from) final;
  530. void MergeFrom(const ::google::protobuf::Message& from) final;
  531. void CopyFrom(const DurationType& from);
  532. void MergeFrom(const DurationType& from);
  533. void Clear() final;
  534. bool IsInitialized() const final;
  535. size_t ByteSizeLong() const final;
  536. bool MergePartialFromCodedStream(
  537. ::google::protobuf::io::CodedInputStream* input) final;
  538. void SerializeWithCachedSizes(
  539. ::google::protobuf::io::CodedOutputStream* output) const final;
  540. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  541. bool deterministic, ::google::protobuf::uint8* target) const final;
  542. int GetCachedSize() const final { return _cached_size_.Get(); }
  543. private:
  544. void SharedCtor();
  545. void SharedDtor();
  546. void SetCachedSize(int size) const final;
  547. void InternalSwap(DurationType* other);
  548. private:
  549. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  550. return NULL;
  551. }
  552. inline void* MaybeArenaPtr() const {
  553. return NULL;
  554. }
  555. public:
  556. ::google::protobuf::Metadata GetMetadata() const final;
  557. // nested types ----------------------------------------------------
  558. // accessors -------------------------------------------------------
  559. // .google.protobuf.Duration duration = 1;
  560. bool has_duration() const;
  561. void clear_duration();
  562. static const int kDurationFieldNumber = 1;
  563. private:
  564. const ::google::protobuf::Duration& _internal_duration() const;
  565. public:
  566. const ::google::protobuf::Duration& duration() const;
  567. ::google::protobuf::Duration* release_duration();
  568. ::google::protobuf::Duration* mutable_duration();
  569. void set_allocated_duration(::google::protobuf::Duration* duration);
  570. // @@protoc_insertion_point(class_scope:google.protobuf.testing.DurationType)
  571. private:
  572. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  573. ::google::protobuf::Duration* duration_;
  574. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  575. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::TableStruct;
  576. };
  577. // -------------------------------------------------------------------
  578. class TimestampDuration : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.testing.TimestampDuration) */ {
  579. public:
  580. TimestampDuration();
  581. virtual ~TimestampDuration();
  582. TimestampDuration(const TimestampDuration& from);
  583. inline TimestampDuration& operator=(const TimestampDuration& from) {
  584. CopyFrom(from);
  585. return *this;
  586. }
  587. #if LANG_CXX11
  588. TimestampDuration(TimestampDuration&& from) noexcept
  589. : TimestampDuration() {
  590. *this = ::std::move(from);
  591. }
  592. inline TimestampDuration& operator=(TimestampDuration&& from) noexcept {
  593. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  594. if (this != &from) InternalSwap(&from);
  595. } else {
  596. CopyFrom(from);
  597. }
  598. return *this;
  599. }
  600. #endif
  601. static const ::google::protobuf::Descriptor* descriptor();
  602. static const TimestampDuration& default_instance();
  603. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  604. static inline const TimestampDuration* internal_default_instance() {
  605. return reinterpret_cast<const TimestampDuration*>(
  606. &_TimestampDuration_default_instance_);
  607. }
  608. static constexpr int kIndexInFileMessages =
  609. 3;
  610. void Swap(TimestampDuration* other);
  611. friend void swap(TimestampDuration& a, TimestampDuration& b) {
  612. a.Swap(&b);
  613. }
  614. // implements Message ----------------------------------------------
  615. inline TimestampDuration* New() const final {
  616. return CreateMaybeMessage<TimestampDuration>(NULL);
  617. }
  618. TimestampDuration* New(::google::protobuf::Arena* arena) const final {
  619. return CreateMaybeMessage<TimestampDuration>(arena);
  620. }
  621. void CopyFrom(const ::google::protobuf::Message& from) final;
  622. void MergeFrom(const ::google::protobuf::Message& from) final;
  623. void CopyFrom(const TimestampDuration& from);
  624. void MergeFrom(const TimestampDuration& from);
  625. void Clear() final;
  626. bool IsInitialized() const final;
  627. size_t ByteSizeLong() const final;
  628. bool MergePartialFromCodedStream(
  629. ::google::protobuf::io::CodedInputStream* input) final;
  630. void SerializeWithCachedSizes(
  631. ::google::protobuf::io::CodedOutputStream* output) const final;
  632. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  633. bool deterministic, ::google::protobuf::uint8* target) const final;
  634. int GetCachedSize() const final { return _cached_size_.Get(); }
  635. private:
  636. void SharedCtor();
  637. void SharedDtor();
  638. void SetCachedSize(int size) const final;
  639. void InternalSwap(TimestampDuration* other);
  640. private:
  641. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  642. return NULL;
  643. }
  644. inline void* MaybeArenaPtr() const {
  645. return NULL;
  646. }
  647. public:
  648. ::google::protobuf::Metadata GetMetadata() const final;
  649. // nested types ----------------------------------------------------
  650. // accessors -------------------------------------------------------
  651. // repeated .google.protobuf.Timestamp rep_ts = 3;
  652. int rep_ts_size() const;
  653. void clear_rep_ts();
  654. static const int kRepTsFieldNumber = 3;
  655. ::google::protobuf::Timestamp* mutable_rep_ts(int index);
  656. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp >*
  657. mutable_rep_ts();
  658. const ::google::protobuf::Timestamp& rep_ts(int index) const;
  659. ::google::protobuf::Timestamp* add_rep_ts();
  660. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp >&
  661. rep_ts() const;
  662. // .google.protobuf.Timestamp ts = 1;
  663. bool has_ts() const;
  664. void clear_ts();
  665. static const int kTsFieldNumber = 1;
  666. private:
  667. const ::google::protobuf::Timestamp& _internal_ts() const;
  668. public:
  669. const ::google::protobuf::Timestamp& ts() const;
  670. ::google::protobuf::Timestamp* release_ts();
  671. ::google::protobuf::Timestamp* mutable_ts();
  672. void set_allocated_ts(::google::protobuf::Timestamp* ts);
  673. // .google.protobuf.Duration dur = 2;
  674. bool has_dur() const;
  675. void clear_dur();
  676. static const int kDurFieldNumber = 2;
  677. private:
  678. const ::google::protobuf::Duration& _internal_dur() const;
  679. public:
  680. const ::google::protobuf::Duration& dur() const;
  681. ::google::protobuf::Duration* release_dur();
  682. ::google::protobuf::Duration* mutable_dur();
  683. void set_allocated_dur(::google::protobuf::Duration* dur);
  684. // @@protoc_insertion_point(class_scope:google.protobuf.testing.TimestampDuration)
  685. private:
  686. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  687. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp > rep_ts_;
  688. ::google::protobuf::Timestamp* ts_;
  689. ::google::protobuf::Duration* dur_;
  690. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  691. friend struct ::protobuf_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto::TableStruct;
  692. };
  693. // ===================================================================
  694. // ===================================================================
  695. #ifdef __GNUC__
  696. #pragma GCC diagnostic push
  697. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  698. #endif // __GNUC__
  699. // TimestampDurationTestCases
  700. // .google.protobuf.testing.TimeStampType epoch = 1;
  701. inline bool TimestampDurationTestCases::has_epoch() const {
  702. return this != internal_default_instance() && epoch_ != NULL;
  703. }
  704. inline void TimestampDurationTestCases::clear_epoch() {
  705. if (GetArenaNoVirtual() == NULL && epoch_ != NULL) {
  706. delete epoch_;
  707. }
  708. epoch_ = NULL;
  709. }
  710. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_epoch() const {
  711. return *epoch_;
  712. }
  713. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::epoch() const {
  714. const ::google::protobuf::testing::TimeStampType* p = epoch_;
  715. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.epoch)
  716. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  717. &::google::protobuf::testing::_TimeStampType_default_instance_);
  718. }
  719. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_epoch() {
  720. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.epoch)
  721. ::google::protobuf::testing::TimeStampType* temp = epoch_;
  722. epoch_ = NULL;
  723. return temp;
  724. }
  725. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_epoch() {
  726. if (epoch_ == NULL) {
  727. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  728. epoch_ = p;
  729. }
  730. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.epoch)
  731. return epoch_;
  732. }
  733. inline void TimestampDurationTestCases::set_allocated_epoch(::google::protobuf::testing::TimeStampType* epoch) {
  734. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  735. if (message_arena == NULL) {
  736. delete epoch_;
  737. }
  738. if (epoch) {
  739. ::google::protobuf::Arena* submessage_arena = NULL;
  740. if (message_arena != submessage_arena) {
  741. epoch = ::google::protobuf::internal::GetOwnedMessage(
  742. message_arena, epoch, submessage_arena);
  743. }
  744. } else {
  745. }
  746. epoch_ = epoch;
  747. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.epoch)
  748. }
  749. // .google.protobuf.testing.TimeStampType epoch2 = 2;
  750. inline bool TimestampDurationTestCases::has_epoch2() const {
  751. return this != internal_default_instance() && epoch2_ != NULL;
  752. }
  753. inline void TimestampDurationTestCases::clear_epoch2() {
  754. if (GetArenaNoVirtual() == NULL && epoch2_ != NULL) {
  755. delete epoch2_;
  756. }
  757. epoch2_ = NULL;
  758. }
  759. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_epoch2() const {
  760. return *epoch2_;
  761. }
  762. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::epoch2() const {
  763. const ::google::protobuf::testing::TimeStampType* p = epoch2_;
  764. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.epoch2)
  765. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  766. &::google::protobuf::testing::_TimeStampType_default_instance_);
  767. }
  768. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_epoch2() {
  769. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.epoch2)
  770. ::google::protobuf::testing::TimeStampType* temp = epoch2_;
  771. epoch2_ = NULL;
  772. return temp;
  773. }
  774. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_epoch2() {
  775. if (epoch2_ == NULL) {
  776. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  777. epoch2_ = p;
  778. }
  779. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.epoch2)
  780. return epoch2_;
  781. }
  782. inline void TimestampDurationTestCases::set_allocated_epoch2(::google::protobuf::testing::TimeStampType* epoch2) {
  783. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  784. if (message_arena == NULL) {
  785. delete epoch2_;
  786. }
  787. if (epoch2) {
  788. ::google::protobuf::Arena* submessage_arena = NULL;
  789. if (message_arena != submessage_arena) {
  790. epoch2 = ::google::protobuf::internal::GetOwnedMessage(
  791. message_arena, epoch2, submessage_arena);
  792. }
  793. } else {
  794. }
  795. epoch2_ = epoch2;
  796. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.epoch2)
  797. }
  798. // .google.protobuf.testing.TimeStampType mintime = 3;
  799. inline bool TimestampDurationTestCases::has_mintime() const {
  800. return this != internal_default_instance() && mintime_ != NULL;
  801. }
  802. inline void TimestampDurationTestCases::clear_mintime() {
  803. if (GetArenaNoVirtual() == NULL && mintime_ != NULL) {
  804. delete mintime_;
  805. }
  806. mintime_ = NULL;
  807. }
  808. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_mintime() const {
  809. return *mintime_;
  810. }
  811. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::mintime() const {
  812. const ::google::protobuf::testing::TimeStampType* p = mintime_;
  813. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.mintime)
  814. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  815. &::google::protobuf::testing::_TimeStampType_default_instance_);
  816. }
  817. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_mintime() {
  818. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.mintime)
  819. ::google::protobuf::testing::TimeStampType* temp = mintime_;
  820. mintime_ = NULL;
  821. return temp;
  822. }
  823. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_mintime() {
  824. if (mintime_ == NULL) {
  825. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  826. mintime_ = p;
  827. }
  828. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.mintime)
  829. return mintime_;
  830. }
  831. inline void TimestampDurationTestCases::set_allocated_mintime(::google::protobuf::testing::TimeStampType* mintime) {
  832. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  833. if (message_arena == NULL) {
  834. delete mintime_;
  835. }
  836. if (mintime) {
  837. ::google::protobuf::Arena* submessage_arena = NULL;
  838. if (message_arena != submessage_arena) {
  839. mintime = ::google::protobuf::internal::GetOwnedMessage(
  840. message_arena, mintime, submessage_arena);
  841. }
  842. } else {
  843. }
  844. mintime_ = mintime;
  845. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.mintime)
  846. }
  847. // .google.protobuf.testing.TimeStampType maxtime = 4;
  848. inline bool TimestampDurationTestCases::has_maxtime() const {
  849. return this != internal_default_instance() && maxtime_ != NULL;
  850. }
  851. inline void TimestampDurationTestCases::clear_maxtime() {
  852. if (GetArenaNoVirtual() == NULL && maxtime_ != NULL) {
  853. delete maxtime_;
  854. }
  855. maxtime_ = NULL;
  856. }
  857. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_maxtime() const {
  858. return *maxtime_;
  859. }
  860. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::maxtime() const {
  861. const ::google::protobuf::testing::TimeStampType* p = maxtime_;
  862. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.maxtime)
  863. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  864. &::google::protobuf::testing::_TimeStampType_default_instance_);
  865. }
  866. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_maxtime() {
  867. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.maxtime)
  868. ::google::protobuf::testing::TimeStampType* temp = maxtime_;
  869. maxtime_ = NULL;
  870. return temp;
  871. }
  872. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_maxtime() {
  873. if (maxtime_ == NULL) {
  874. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  875. maxtime_ = p;
  876. }
  877. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.maxtime)
  878. return maxtime_;
  879. }
  880. inline void TimestampDurationTestCases::set_allocated_maxtime(::google::protobuf::testing::TimeStampType* maxtime) {
  881. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  882. if (message_arena == NULL) {
  883. delete maxtime_;
  884. }
  885. if (maxtime) {
  886. ::google::protobuf::Arena* submessage_arena = NULL;
  887. if (message_arena != submessage_arena) {
  888. maxtime = ::google::protobuf::internal::GetOwnedMessage(
  889. message_arena, maxtime, submessage_arena);
  890. }
  891. } else {
  892. }
  893. maxtime_ = maxtime;
  894. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.maxtime)
  895. }
  896. // .google.protobuf.testing.TimeStampType timeval1 = 5;
  897. inline bool TimestampDurationTestCases::has_timeval1() const {
  898. return this != internal_default_instance() && timeval1_ != NULL;
  899. }
  900. inline void TimestampDurationTestCases::clear_timeval1() {
  901. if (GetArenaNoVirtual() == NULL && timeval1_ != NULL) {
  902. delete timeval1_;
  903. }
  904. timeval1_ = NULL;
  905. }
  906. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_timeval1() const {
  907. return *timeval1_;
  908. }
  909. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::timeval1() const {
  910. const ::google::protobuf::testing::TimeStampType* p = timeval1_;
  911. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.timeval1)
  912. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  913. &::google::protobuf::testing::_TimeStampType_default_instance_);
  914. }
  915. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_timeval1() {
  916. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.timeval1)
  917. ::google::protobuf::testing::TimeStampType* temp = timeval1_;
  918. timeval1_ = NULL;
  919. return temp;
  920. }
  921. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_timeval1() {
  922. if (timeval1_ == NULL) {
  923. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  924. timeval1_ = p;
  925. }
  926. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.timeval1)
  927. return timeval1_;
  928. }
  929. inline void TimestampDurationTestCases::set_allocated_timeval1(::google::protobuf::testing::TimeStampType* timeval1) {
  930. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  931. if (message_arena == NULL) {
  932. delete timeval1_;
  933. }
  934. if (timeval1) {
  935. ::google::protobuf::Arena* submessage_arena = NULL;
  936. if (message_arena != submessage_arena) {
  937. timeval1 = ::google::protobuf::internal::GetOwnedMessage(
  938. message_arena, timeval1, submessage_arena);
  939. }
  940. } else {
  941. }
  942. timeval1_ = timeval1;
  943. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.timeval1)
  944. }
  945. // .google.protobuf.testing.TimeStampType timeval2 = 6;
  946. inline bool TimestampDurationTestCases::has_timeval2() const {
  947. return this != internal_default_instance() && timeval2_ != NULL;
  948. }
  949. inline void TimestampDurationTestCases::clear_timeval2() {
  950. if (GetArenaNoVirtual() == NULL && timeval2_ != NULL) {
  951. delete timeval2_;
  952. }
  953. timeval2_ = NULL;
  954. }
  955. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_timeval2() const {
  956. return *timeval2_;
  957. }
  958. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::timeval2() const {
  959. const ::google::protobuf::testing::TimeStampType* p = timeval2_;
  960. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.timeval2)
  961. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  962. &::google::protobuf::testing::_TimeStampType_default_instance_);
  963. }
  964. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_timeval2() {
  965. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.timeval2)
  966. ::google::protobuf::testing::TimeStampType* temp = timeval2_;
  967. timeval2_ = NULL;
  968. return temp;
  969. }
  970. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_timeval2() {
  971. if (timeval2_ == NULL) {
  972. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  973. timeval2_ = p;
  974. }
  975. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.timeval2)
  976. return timeval2_;
  977. }
  978. inline void TimestampDurationTestCases::set_allocated_timeval2(::google::protobuf::testing::TimeStampType* timeval2) {
  979. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  980. if (message_arena == NULL) {
  981. delete timeval2_;
  982. }
  983. if (timeval2) {
  984. ::google::protobuf::Arena* submessage_arena = NULL;
  985. if (message_arena != submessage_arena) {
  986. timeval2 = ::google::protobuf::internal::GetOwnedMessage(
  987. message_arena, timeval2, submessage_arena);
  988. }
  989. } else {
  990. }
  991. timeval2_ = timeval2;
  992. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.timeval2)
  993. }
  994. // .google.protobuf.testing.TimeStampType timeval3 = 7;
  995. inline bool TimestampDurationTestCases::has_timeval3() const {
  996. return this != internal_default_instance() && timeval3_ != NULL;
  997. }
  998. inline void TimestampDurationTestCases::clear_timeval3() {
  999. if (GetArenaNoVirtual() == NULL && timeval3_ != NULL) {
  1000. delete timeval3_;
  1001. }
  1002. timeval3_ = NULL;
  1003. }
  1004. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_timeval3() const {
  1005. return *timeval3_;
  1006. }
  1007. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::timeval3() const {
  1008. const ::google::protobuf::testing::TimeStampType* p = timeval3_;
  1009. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.timeval3)
  1010. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  1011. &::google::protobuf::testing::_TimeStampType_default_instance_);
  1012. }
  1013. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_timeval3() {
  1014. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.timeval3)
  1015. ::google::protobuf::testing::TimeStampType* temp = timeval3_;
  1016. timeval3_ = NULL;
  1017. return temp;
  1018. }
  1019. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_timeval3() {
  1020. if (timeval3_ == NULL) {
  1021. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  1022. timeval3_ = p;
  1023. }
  1024. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.timeval3)
  1025. return timeval3_;
  1026. }
  1027. inline void TimestampDurationTestCases::set_allocated_timeval3(::google::protobuf::testing::TimeStampType* timeval3) {
  1028. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1029. if (message_arena == NULL) {
  1030. delete timeval3_;
  1031. }
  1032. if (timeval3) {
  1033. ::google::protobuf::Arena* submessage_arena = NULL;
  1034. if (message_arena != submessage_arena) {
  1035. timeval3 = ::google::protobuf::internal::GetOwnedMessage(
  1036. message_arena, timeval3, submessage_arena);
  1037. }
  1038. } else {
  1039. }
  1040. timeval3_ = timeval3;
  1041. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.timeval3)
  1042. }
  1043. // .google.protobuf.testing.TimeStampType timeval4 = 8;
  1044. inline bool TimestampDurationTestCases::has_timeval4() const {
  1045. return this != internal_default_instance() && timeval4_ != NULL;
  1046. }
  1047. inline void TimestampDurationTestCases::clear_timeval4() {
  1048. if (GetArenaNoVirtual() == NULL && timeval4_ != NULL) {
  1049. delete timeval4_;
  1050. }
  1051. timeval4_ = NULL;
  1052. }
  1053. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_timeval4() const {
  1054. return *timeval4_;
  1055. }
  1056. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::timeval4() const {
  1057. const ::google::protobuf::testing::TimeStampType* p = timeval4_;
  1058. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.timeval4)
  1059. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  1060. &::google::protobuf::testing::_TimeStampType_default_instance_);
  1061. }
  1062. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_timeval4() {
  1063. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.timeval4)
  1064. ::google::protobuf::testing::TimeStampType* temp = timeval4_;
  1065. timeval4_ = NULL;
  1066. return temp;
  1067. }
  1068. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_timeval4() {
  1069. if (timeval4_ == NULL) {
  1070. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  1071. timeval4_ = p;
  1072. }
  1073. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.timeval4)
  1074. return timeval4_;
  1075. }
  1076. inline void TimestampDurationTestCases::set_allocated_timeval4(::google::protobuf::testing::TimeStampType* timeval4) {
  1077. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1078. if (message_arena == NULL) {
  1079. delete timeval4_;
  1080. }
  1081. if (timeval4) {
  1082. ::google::protobuf::Arena* submessage_arena = NULL;
  1083. if (message_arena != submessage_arena) {
  1084. timeval4 = ::google::protobuf::internal::GetOwnedMessage(
  1085. message_arena, timeval4, submessage_arena);
  1086. }
  1087. } else {
  1088. }
  1089. timeval4_ = timeval4;
  1090. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.timeval4)
  1091. }
  1092. // .google.protobuf.testing.TimeStampType timeval5 = 9;
  1093. inline bool TimestampDurationTestCases::has_timeval5() const {
  1094. return this != internal_default_instance() && timeval5_ != NULL;
  1095. }
  1096. inline void TimestampDurationTestCases::clear_timeval5() {
  1097. if (GetArenaNoVirtual() == NULL && timeval5_ != NULL) {
  1098. delete timeval5_;
  1099. }
  1100. timeval5_ = NULL;
  1101. }
  1102. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_timeval5() const {
  1103. return *timeval5_;
  1104. }
  1105. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::timeval5() const {
  1106. const ::google::protobuf::testing::TimeStampType* p = timeval5_;
  1107. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.timeval5)
  1108. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  1109. &::google::protobuf::testing::_TimeStampType_default_instance_);
  1110. }
  1111. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_timeval5() {
  1112. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.timeval5)
  1113. ::google::protobuf::testing::TimeStampType* temp = timeval5_;
  1114. timeval5_ = NULL;
  1115. return temp;
  1116. }
  1117. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_timeval5() {
  1118. if (timeval5_ == NULL) {
  1119. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  1120. timeval5_ = p;
  1121. }
  1122. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.timeval5)
  1123. return timeval5_;
  1124. }
  1125. inline void TimestampDurationTestCases::set_allocated_timeval5(::google::protobuf::testing::TimeStampType* timeval5) {
  1126. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1127. if (message_arena == NULL) {
  1128. delete timeval5_;
  1129. }
  1130. if (timeval5) {
  1131. ::google::protobuf::Arena* submessage_arena = NULL;
  1132. if (message_arena != submessage_arena) {
  1133. timeval5 = ::google::protobuf::internal::GetOwnedMessage(
  1134. message_arena, timeval5, submessage_arena);
  1135. }
  1136. } else {
  1137. }
  1138. timeval5_ = timeval5;
  1139. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.timeval5)
  1140. }
  1141. // .google.protobuf.testing.TimeStampType timeval6 = 10;
  1142. inline bool TimestampDurationTestCases::has_timeval6() const {
  1143. return this != internal_default_instance() && timeval6_ != NULL;
  1144. }
  1145. inline void TimestampDurationTestCases::clear_timeval6() {
  1146. if (GetArenaNoVirtual() == NULL && timeval6_ != NULL) {
  1147. delete timeval6_;
  1148. }
  1149. timeval6_ = NULL;
  1150. }
  1151. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_timeval6() const {
  1152. return *timeval6_;
  1153. }
  1154. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::timeval6() const {
  1155. const ::google::protobuf::testing::TimeStampType* p = timeval6_;
  1156. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.timeval6)
  1157. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  1158. &::google::protobuf::testing::_TimeStampType_default_instance_);
  1159. }
  1160. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_timeval6() {
  1161. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.timeval6)
  1162. ::google::protobuf::testing::TimeStampType* temp = timeval6_;
  1163. timeval6_ = NULL;
  1164. return temp;
  1165. }
  1166. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_timeval6() {
  1167. if (timeval6_ == NULL) {
  1168. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  1169. timeval6_ = p;
  1170. }
  1171. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.timeval6)
  1172. return timeval6_;
  1173. }
  1174. inline void TimestampDurationTestCases::set_allocated_timeval6(::google::protobuf::testing::TimeStampType* timeval6) {
  1175. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1176. if (message_arena == NULL) {
  1177. delete timeval6_;
  1178. }
  1179. if (timeval6) {
  1180. ::google::protobuf::Arena* submessage_arena = NULL;
  1181. if (message_arena != submessage_arena) {
  1182. timeval6 = ::google::protobuf::internal::GetOwnedMessage(
  1183. message_arena, timeval6, submessage_arena);
  1184. }
  1185. } else {
  1186. }
  1187. timeval6_ = timeval6;
  1188. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.timeval6)
  1189. }
  1190. // .google.protobuf.testing.TimeStampType timeval7 = 11;
  1191. inline bool TimestampDurationTestCases::has_timeval7() const {
  1192. return this != internal_default_instance() && timeval7_ != NULL;
  1193. }
  1194. inline void TimestampDurationTestCases::clear_timeval7() {
  1195. if (GetArenaNoVirtual() == NULL && timeval7_ != NULL) {
  1196. delete timeval7_;
  1197. }
  1198. timeval7_ = NULL;
  1199. }
  1200. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::_internal_timeval7() const {
  1201. return *timeval7_;
  1202. }
  1203. inline const ::google::protobuf::testing::TimeStampType& TimestampDurationTestCases::timeval7() const {
  1204. const ::google::protobuf::testing::TimeStampType* p = timeval7_;
  1205. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.timeval7)
  1206. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::TimeStampType*>(
  1207. &::google::protobuf::testing::_TimeStampType_default_instance_);
  1208. }
  1209. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::release_timeval7() {
  1210. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.timeval7)
  1211. ::google::protobuf::testing::TimeStampType* temp = timeval7_;
  1212. timeval7_ = NULL;
  1213. return temp;
  1214. }
  1215. inline ::google::protobuf::testing::TimeStampType* TimestampDurationTestCases::mutable_timeval7() {
  1216. if (timeval7_ == NULL) {
  1217. auto* p = CreateMaybeMessage<::google::protobuf::testing::TimeStampType>(GetArenaNoVirtual());
  1218. timeval7_ = p;
  1219. }
  1220. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.timeval7)
  1221. return timeval7_;
  1222. }
  1223. inline void TimestampDurationTestCases::set_allocated_timeval7(::google::protobuf::testing::TimeStampType* timeval7) {
  1224. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1225. if (message_arena == NULL) {
  1226. delete timeval7_;
  1227. }
  1228. if (timeval7) {
  1229. ::google::protobuf::Arena* submessage_arena = NULL;
  1230. if (message_arena != submessage_arena) {
  1231. timeval7 = ::google::protobuf::internal::GetOwnedMessage(
  1232. message_arena, timeval7, submessage_arena);
  1233. }
  1234. } else {
  1235. }
  1236. timeval7_ = timeval7;
  1237. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.timeval7)
  1238. }
  1239. // .google.protobuf.Timestamp timeval8 = 12;
  1240. inline bool TimestampDurationTestCases::has_timeval8() const {
  1241. return this != internal_default_instance() && timeval8_ != NULL;
  1242. }
  1243. inline const ::google::protobuf::Timestamp& TimestampDurationTestCases::_internal_timeval8() const {
  1244. return *timeval8_;
  1245. }
  1246. inline const ::google::protobuf::Timestamp& TimestampDurationTestCases::timeval8() const {
  1247. const ::google::protobuf::Timestamp* p = timeval8_;
  1248. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.timeval8)
  1249. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  1250. &::google::protobuf::_Timestamp_default_instance_);
  1251. }
  1252. inline ::google::protobuf::Timestamp* TimestampDurationTestCases::release_timeval8() {
  1253. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.timeval8)
  1254. ::google::protobuf::Timestamp* temp = timeval8_;
  1255. timeval8_ = NULL;
  1256. return temp;
  1257. }
  1258. inline ::google::protobuf::Timestamp* TimestampDurationTestCases::mutable_timeval8() {
  1259. if (timeval8_ == NULL) {
  1260. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
  1261. timeval8_ = p;
  1262. }
  1263. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.timeval8)
  1264. return timeval8_;
  1265. }
  1266. inline void TimestampDurationTestCases::set_allocated_timeval8(::google::protobuf::Timestamp* timeval8) {
  1267. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1268. if (message_arena == NULL) {
  1269. delete reinterpret_cast< ::google::protobuf::MessageLite*>(timeval8_);
  1270. }
  1271. if (timeval8) {
  1272. ::google::protobuf::Arena* submessage_arena =
  1273. reinterpret_cast<::google::protobuf::MessageLite*>(timeval8)->GetArena();
  1274. if (message_arena != submessage_arena) {
  1275. timeval8 = ::google::protobuf::internal::GetOwnedMessage(
  1276. message_arena, timeval8, submessage_arena);
  1277. }
  1278. } else {
  1279. }
  1280. timeval8_ = timeval8;
  1281. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.timeval8)
  1282. }
  1283. // .google.protobuf.testing.DurationType zero_duration = 101;
  1284. inline bool TimestampDurationTestCases::has_zero_duration() const {
  1285. return this != internal_default_instance() && zero_duration_ != NULL;
  1286. }
  1287. inline void TimestampDurationTestCases::clear_zero_duration() {
  1288. if (GetArenaNoVirtual() == NULL && zero_duration_ != NULL) {
  1289. delete zero_duration_;
  1290. }
  1291. zero_duration_ = NULL;
  1292. }
  1293. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::_internal_zero_duration() const {
  1294. return *zero_duration_;
  1295. }
  1296. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::zero_duration() const {
  1297. const ::google::protobuf::testing::DurationType* p = zero_duration_;
  1298. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.zero_duration)
  1299. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DurationType*>(
  1300. &::google::protobuf::testing::_DurationType_default_instance_);
  1301. }
  1302. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::release_zero_duration() {
  1303. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.zero_duration)
  1304. ::google::protobuf::testing::DurationType* temp = zero_duration_;
  1305. zero_duration_ = NULL;
  1306. return temp;
  1307. }
  1308. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::mutable_zero_duration() {
  1309. if (zero_duration_ == NULL) {
  1310. auto* p = CreateMaybeMessage<::google::protobuf::testing::DurationType>(GetArenaNoVirtual());
  1311. zero_duration_ = p;
  1312. }
  1313. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.zero_duration)
  1314. return zero_duration_;
  1315. }
  1316. inline void TimestampDurationTestCases::set_allocated_zero_duration(::google::protobuf::testing::DurationType* zero_duration) {
  1317. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1318. if (message_arena == NULL) {
  1319. delete zero_duration_;
  1320. }
  1321. if (zero_duration) {
  1322. ::google::protobuf::Arena* submessage_arena = NULL;
  1323. if (message_arena != submessage_arena) {
  1324. zero_duration = ::google::protobuf::internal::GetOwnedMessage(
  1325. message_arena, zero_duration, submessage_arena);
  1326. }
  1327. } else {
  1328. }
  1329. zero_duration_ = zero_duration;
  1330. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.zero_duration)
  1331. }
  1332. // .google.protobuf.testing.DurationType min_duration = 102;
  1333. inline bool TimestampDurationTestCases::has_min_duration() const {
  1334. return this != internal_default_instance() && min_duration_ != NULL;
  1335. }
  1336. inline void TimestampDurationTestCases::clear_min_duration() {
  1337. if (GetArenaNoVirtual() == NULL && min_duration_ != NULL) {
  1338. delete min_duration_;
  1339. }
  1340. min_duration_ = NULL;
  1341. }
  1342. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::_internal_min_duration() const {
  1343. return *min_duration_;
  1344. }
  1345. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::min_duration() const {
  1346. const ::google::protobuf::testing::DurationType* p = min_duration_;
  1347. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.min_duration)
  1348. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DurationType*>(
  1349. &::google::protobuf::testing::_DurationType_default_instance_);
  1350. }
  1351. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::release_min_duration() {
  1352. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.min_duration)
  1353. ::google::protobuf::testing::DurationType* temp = min_duration_;
  1354. min_duration_ = NULL;
  1355. return temp;
  1356. }
  1357. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::mutable_min_duration() {
  1358. if (min_duration_ == NULL) {
  1359. auto* p = CreateMaybeMessage<::google::protobuf::testing::DurationType>(GetArenaNoVirtual());
  1360. min_duration_ = p;
  1361. }
  1362. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.min_duration)
  1363. return min_duration_;
  1364. }
  1365. inline void TimestampDurationTestCases::set_allocated_min_duration(::google::protobuf::testing::DurationType* min_duration) {
  1366. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1367. if (message_arena == NULL) {
  1368. delete min_duration_;
  1369. }
  1370. if (min_duration) {
  1371. ::google::protobuf::Arena* submessage_arena = NULL;
  1372. if (message_arena != submessage_arena) {
  1373. min_duration = ::google::protobuf::internal::GetOwnedMessage(
  1374. message_arena, min_duration, submessage_arena);
  1375. }
  1376. } else {
  1377. }
  1378. min_duration_ = min_duration;
  1379. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.min_duration)
  1380. }
  1381. // .google.protobuf.testing.DurationType max_duration = 103;
  1382. inline bool TimestampDurationTestCases::has_max_duration() const {
  1383. return this != internal_default_instance() && max_duration_ != NULL;
  1384. }
  1385. inline void TimestampDurationTestCases::clear_max_duration() {
  1386. if (GetArenaNoVirtual() == NULL && max_duration_ != NULL) {
  1387. delete max_duration_;
  1388. }
  1389. max_duration_ = NULL;
  1390. }
  1391. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::_internal_max_duration() const {
  1392. return *max_duration_;
  1393. }
  1394. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::max_duration() const {
  1395. const ::google::protobuf::testing::DurationType* p = max_duration_;
  1396. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.max_duration)
  1397. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DurationType*>(
  1398. &::google::protobuf::testing::_DurationType_default_instance_);
  1399. }
  1400. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::release_max_duration() {
  1401. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.max_duration)
  1402. ::google::protobuf::testing::DurationType* temp = max_duration_;
  1403. max_duration_ = NULL;
  1404. return temp;
  1405. }
  1406. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::mutable_max_duration() {
  1407. if (max_duration_ == NULL) {
  1408. auto* p = CreateMaybeMessage<::google::protobuf::testing::DurationType>(GetArenaNoVirtual());
  1409. max_duration_ = p;
  1410. }
  1411. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.max_duration)
  1412. return max_duration_;
  1413. }
  1414. inline void TimestampDurationTestCases::set_allocated_max_duration(::google::protobuf::testing::DurationType* max_duration) {
  1415. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1416. if (message_arena == NULL) {
  1417. delete max_duration_;
  1418. }
  1419. if (max_duration) {
  1420. ::google::protobuf::Arena* submessage_arena = NULL;
  1421. if (message_arena != submessage_arena) {
  1422. max_duration = ::google::protobuf::internal::GetOwnedMessage(
  1423. message_arena, max_duration, submessage_arena);
  1424. }
  1425. } else {
  1426. }
  1427. max_duration_ = max_duration;
  1428. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.max_duration)
  1429. }
  1430. // .google.protobuf.testing.DurationType duration1 = 104;
  1431. inline bool TimestampDurationTestCases::has_duration1() const {
  1432. return this != internal_default_instance() && duration1_ != NULL;
  1433. }
  1434. inline void TimestampDurationTestCases::clear_duration1() {
  1435. if (GetArenaNoVirtual() == NULL && duration1_ != NULL) {
  1436. delete duration1_;
  1437. }
  1438. duration1_ = NULL;
  1439. }
  1440. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::_internal_duration1() const {
  1441. return *duration1_;
  1442. }
  1443. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::duration1() const {
  1444. const ::google::protobuf::testing::DurationType* p = duration1_;
  1445. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.duration1)
  1446. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DurationType*>(
  1447. &::google::protobuf::testing::_DurationType_default_instance_);
  1448. }
  1449. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::release_duration1() {
  1450. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.duration1)
  1451. ::google::protobuf::testing::DurationType* temp = duration1_;
  1452. duration1_ = NULL;
  1453. return temp;
  1454. }
  1455. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::mutable_duration1() {
  1456. if (duration1_ == NULL) {
  1457. auto* p = CreateMaybeMessage<::google::protobuf::testing::DurationType>(GetArenaNoVirtual());
  1458. duration1_ = p;
  1459. }
  1460. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.duration1)
  1461. return duration1_;
  1462. }
  1463. inline void TimestampDurationTestCases::set_allocated_duration1(::google::protobuf::testing::DurationType* duration1) {
  1464. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1465. if (message_arena == NULL) {
  1466. delete duration1_;
  1467. }
  1468. if (duration1) {
  1469. ::google::protobuf::Arena* submessage_arena = NULL;
  1470. if (message_arena != submessage_arena) {
  1471. duration1 = ::google::protobuf::internal::GetOwnedMessage(
  1472. message_arena, duration1, submessage_arena);
  1473. }
  1474. } else {
  1475. }
  1476. duration1_ = duration1;
  1477. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.duration1)
  1478. }
  1479. // .google.protobuf.testing.DurationType duration2 = 105;
  1480. inline bool TimestampDurationTestCases::has_duration2() const {
  1481. return this != internal_default_instance() && duration2_ != NULL;
  1482. }
  1483. inline void TimestampDurationTestCases::clear_duration2() {
  1484. if (GetArenaNoVirtual() == NULL && duration2_ != NULL) {
  1485. delete duration2_;
  1486. }
  1487. duration2_ = NULL;
  1488. }
  1489. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::_internal_duration2() const {
  1490. return *duration2_;
  1491. }
  1492. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::duration2() const {
  1493. const ::google::protobuf::testing::DurationType* p = duration2_;
  1494. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.duration2)
  1495. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DurationType*>(
  1496. &::google::protobuf::testing::_DurationType_default_instance_);
  1497. }
  1498. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::release_duration2() {
  1499. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.duration2)
  1500. ::google::protobuf::testing::DurationType* temp = duration2_;
  1501. duration2_ = NULL;
  1502. return temp;
  1503. }
  1504. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::mutable_duration2() {
  1505. if (duration2_ == NULL) {
  1506. auto* p = CreateMaybeMessage<::google::protobuf::testing::DurationType>(GetArenaNoVirtual());
  1507. duration2_ = p;
  1508. }
  1509. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.duration2)
  1510. return duration2_;
  1511. }
  1512. inline void TimestampDurationTestCases::set_allocated_duration2(::google::protobuf::testing::DurationType* duration2) {
  1513. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1514. if (message_arena == NULL) {
  1515. delete duration2_;
  1516. }
  1517. if (duration2) {
  1518. ::google::protobuf::Arena* submessage_arena = NULL;
  1519. if (message_arena != submessage_arena) {
  1520. duration2 = ::google::protobuf::internal::GetOwnedMessage(
  1521. message_arena, duration2, submessage_arena);
  1522. }
  1523. } else {
  1524. }
  1525. duration2_ = duration2;
  1526. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.duration2)
  1527. }
  1528. // .google.protobuf.testing.DurationType duration3 = 106;
  1529. inline bool TimestampDurationTestCases::has_duration3() const {
  1530. return this != internal_default_instance() && duration3_ != NULL;
  1531. }
  1532. inline void TimestampDurationTestCases::clear_duration3() {
  1533. if (GetArenaNoVirtual() == NULL && duration3_ != NULL) {
  1534. delete duration3_;
  1535. }
  1536. duration3_ = NULL;
  1537. }
  1538. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::_internal_duration3() const {
  1539. return *duration3_;
  1540. }
  1541. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::duration3() const {
  1542. const ::google::protobuf::testing::DurationType* p = duration3_;
  1543. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.duration3)
  1544. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DurationType*>(
  1545. &::google::protobuf::testing::_DurationType_default_instance_);
  1546. }
  1547. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::release_duration3() {
  1548. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.duration3)
  1549. ::google::protobuf::testing::DurationType* temp = duration3_;
  1550. duration3_ = NULL;
  1551. return temp;
  1552. }
  1553. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::mutable_duration3() {
  1554. if (duration3_ == NULL) {
  1555. auto* p = CreateMaybeMessage<::google::protobuf::testing::DurationType>(GetArenaNoVirtual());
  1556. duration3_ = p;
  1557. }
  1558. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.duration3)
  1559. return duration3_;
  1560. }
  1561. inline void TimestampDurationTestCases::set_allocated_duration3(::google::protobuf::testing::DurationType* duration3) {
  1562. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1563. if (message_arena == NULL) {
  1564. delete duration3_;
  1565. }
  1566. if (duration3) {
  1567. ::google::protobuf::Arena* submessage_arena = NULL;
  1568. if (message_arena != submessage_arena) {
  1569. duration3 = ::google::protobuf::internal::GetOwnedMessage(
  1570. message_arena, duration3, submessage_arena);
  1571. }
  1572. } else {
  1573. }
  1574. duration3_ = duration3;
  1575. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.duration3)
  1576. }
  1577. // .google.protobuf.testing.DurationType duration4 = 107;
  1578. inline bool TimestampDurationTestCases::has_duration4() const {
  1579. return this != internal_default_instance() && duration4_ != NULL;
  1580. }
  1581. inline void TimestampDurationTestCases::clear_duration4() {
  1582. if (GetArenaNoVirtual() == NULL && duration4_ != NULL) {
  1583. delete duration4_;
  1584. }
  1585. duration4_ = NULL;
  1586. }
  1587. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::_internal_duration4() const {
  1588. return *duration4_;
  1589. }
  1590. inline const ::google::protobuf::testing::DurationType& TimestampDurationTestCases::duration4() const {
  1591. const ::google::protobuf::testing::DurationType* p = duration4_;
  1592. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.duration4)
  1593. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::testing::DurationType*>(
  1594. &::google::protobuf::testing::_DurationType_default_instance_);
  1595. }
  1596. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::release_duration4() {
  1597. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.duration4)
  1598. ::google::protobuf::testing::DurationType* temp = duration4_;
  1599. duration4_ = NULL;
  1600. return temp;
  1601. }
  1602. inline ::google::protobuf::testing::DurationType* TimestampDurationTestCases::mutable_duration4() {
  1603. if (duration4_ == NULL) {
  1604. auto* p = CreateMaybeMessage<::google::protobuf::testing::DurationType>(GetArenaNoVirtual());
  1605. duration4_ = p;
  1606. }
  1607. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.duration4)
  1608. return duration4_;
  1609. }
  1610. inline void TimestampDurationTestCases::set_allocated_duration4(::google::protobuf::testing::DurationType* duration4) {
  1611. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1612. if (message_arena == NULL) {
  1613. delete duration4_;
  1614. }
  1615. if (duration4) {
  1616. ::google::protobuf::Arena* submessage_arena = NULL;
  1617. if (message_arena != submessage_arena) {
  1618. duration4 = ::google::protobuf::internal::GetOwnedMessage(
  1619. message_arena, duration4, submessage_arena);
  1620. }
  1621. } else {
  1622. }
  1623. duration4_ = duration4;
  1624. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.duration4)
  1625. }
  1626. // .google.protobuf.Duration duration5 = 108;
  1627. inline bool TimestampDurationTestCases::has_duration5() const {
  1628. return this != internal_default_instance() && duration5_ != NULL;
  1629. }
  1630. inline const ::google::protobuf::Duration& TimestampDurationTestCases::_internal_duration5() const {
  1631. return *duration5_;
  1632. }
  1633. inline const ::google::protobuf::Duration& TimestampDurationTestCases::duration5() const {
  1634. const ::google::protobuf::Duration* p = duration5_;
  1635. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDurationTestCases.duration5)
  1636. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>(
  1637. &::google::protobuf::_Duration_default_instance_);
  1638. }
  1639. inline ::google::protobuf::Duration* TimestampDurationTestCases::release_duration5() {
  1640. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDurationTestCases.duration5)
  1641. ::google::protobuf::Duration* temp = duration5_;
  1642. duration5_ = NULL;
  1643. return temp;
  1644. }
  1645. inline ::google::protobuf::Duration* TimestampDurationTestCases::mutable_duration5() {
  1646. if (duration5_ == NULL) {
  1647. auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual());
  1648. duration5_ = p;
  1649. }
  1650. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDurationTestCases.duration5)
  1651. return duration5_;
  1652. }
  1653. inline void TimestampDurationTestCases::set_allocated_duration5(::google::protobuf::Duration* duration5) {
  1654. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1655. if (message_arena == NULL) {
  1656. delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration5_);
  1657. }
  1658. if (duration5) {
  1659. ::google::protobuf::Arena* submessage_arena =
  1660. reinterpret_cast<::google::protobuf::MessageLite*>(duration5)->GetArena();
  1661. if (message_arena != submessage_arena) {
  1662. duration5 = ::google::protobuf::internal::GetOwnedMessage(
  1663. message_arena, duration5, submessage_arena);
  1664. }
  1665. } else {
  1666. }
  1667. duration5_ = duration5;
  1668. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDurationTestCases.duration5)
  1669. }
  1670. // -------------------------------------------------------------------
  1671. // TimeStampType
  1672. // .google.protobuf.Timestamp timestamp = 1;
  1673. inline bool TimeStampType::has_timestamp() const {
  1674. return this != internal_default_instance() && timestamp_ != NULL;
  1675. }
  1676. inline const ::google::protobuf::Timestamp& TimeStampType::_internal_timestamp() const {
  1677. return *timestamp_;
  1678. }
  1679. inline const ::google::protobuf::Timestamp& TimeStampType::timestamp() const {
  1680. const ::google::protobuf::Timestamp* p = timestamp_;
  1681. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimeStampType.timestamp)
  1682. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  1683. &::google::protobuf::_Timestamp_default_instance_);
  1684. }
  1685. inline ::google::protobuf::Timestamp* TimeStampType::release_timestamp() {
  1686. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimeStampType.timestamp)
  1687. ::google::protobuf::Timestamp* temp = timestamp_;
  1688. timestamp_ = NULL;
  1689. return temp;
  1690. }
  1691. inline ::google::protobuf::Timestamp* TimeStampType::mutable_timestamp() {
  1692. if (timestamp_ == NULL) {
  1693. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
  1694. timestamp_ = p;
  1695. }
  1696. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimeStampType.timestamp)
  1697. return timestamp_;
  1698. }
  1699. inline void TimeStampType::set_allocated_timestamp(::google::protobuf::Timestamp* timestamp) {
  1700. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1701. if (message_arena == NULL) {
  1702. delete reinterpret_cast< ::google::protobuf::MessageLite*>(timestamp_);
  1703. }
  1704. if (timestamp) {
  1705. ::google::protobuf::Arena* submessage_arena =
  1706. reinterpret_cast<::google::protobuf::MessageLite*>(timestamp)->GetArena();
  1707. if (message_arena != submessage_arena) {
  1708. timestamp = ::google::protobuf::internal::GetOwnedMessage(
  1709. message_arena, timestamp, submessage_arena);
  1710. }
  1711. } else {
  1712. }
  1713. timestamp_ = timestamp;
  1714. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimeStampType.timestamp)
  1715. }
  1716. // -------------------------------------------------------------------
  1717. // DurationType
  1718. // .google.protobuf.Duration duration = 1;
  1719. inline bool DurationType::has_duration() const {
  1720. return this != internal_default_instance() && duration_ != NULL;
  1721. }
  1722. inline const ::google::protobuf::Duration& DurationType::_internal_duration() const {
  1723. return *duration_;
  1724. }
  1725. inline const ::google::protobuf::Duration& DurationType::duration() const {
  1726. const ::google::protobuf::Duration* p = duration_;
  1727. // @@protoc_insertion_point(field_get:google.protobuf.testing.DurationType.duration)
  1728. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>(
  1729. &::google::protobuf::_Duration_default_instance_);
  1730. }
  1731. inline ::google::protobuf::Duration* DurationType::release_duration() {
  1732. // @@protoc_insertion_point(field_release:google.protobuf.testing.DurationType.duration)
  1733. ::google::protobuf::Duration* temp = duration_;
  1734. duration_ = NULL;
  1735. return temp;
  1736. }
  1737. inline ::google::protobuf::Duration* DurationType::mutable_duration() {
  1738. if (duration_ == NULL) {
  1739. auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual());
  1740. duration_ = p;
  1741. }
  1742. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.DurationType.duration)
  1743. return duration_;
  1744. }
  1745. inline void DurationType::set_allocated_duration(::google::protobuf::Duration* duration) {
  1746. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1747. if (message_arena == NULL) {
  1748. delete reinterpret_cast< ::google::protobuf::MessageLite*>(duration_);
  1749. }
  1750. if (duration) {
  1751. ::google::protobuf::Arena* submessage_arena =
  1752. reinterpret_cast<::google::protobuf::MessageLite*>(duration)->GetArena();
  1753. if (message_arena != submessage_arena) {
  1754. duration = ::google::protobuf::internal::GetOwnedMessage(
  1755. message_arena, duration, submessage_arena);
  1756. }
  1757. } else {
  1758. }
  1759. duration_ = duration;
  1760. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.DurationType.duration)
  1761. }
  1762. // -------------------------------------------------------------------
  1763. // TimestampDuration
  1764. // .google.protobuf.Timestamp ts = 1;
  1765. inline bool TimestampDuration::has_ts() const {
  1766. return this != internal_default_instance() && ts_ != NULL;
  1767. }
  1768. inline const ::google::protobuf::Timestamp& TimestampDuration::_internal_ts() const {
  1769. return *ts_;
  1770. }
  1771. inline const ::google::protobuf::Timestamp& TimestampDuration::ts() const {
  1772. const ::google::protobuf::Timestamp* p = ts_;
  1773. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDuration.ts)
  1774. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Timestamp*>(
  1775. &::google::protobuf::_Timestamp_default_instance_);
  1776. }
  1777. inline ::google::protobuf::Timestamp* TimestampDuration::release_ts() {
  1778. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDuration.ts)
  1779. ::google::protobuf::Timestamp* temp = ts_;
  1780. ts_ = NULL;
  1781. return temp;
  1782. }
  1783. inline ::google::protobuf::Timestamp* TimestampDuration::mutable_ts() {
  1784. if (ts_ == NULL) {
  1785. auto* p = CreateMaybeMessage<::google::protobuf::Timestamp>(GetArenaNoVirtual());
  1786. ts_ = p;
  1787. }
  1788. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDuration.ts)
  1789. return ts_;
  1790. }
  1791. inline void TimestampDuration::set_allocated_ts(::google::protobuf::Timestamp* ts) {
  1792. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1793. if (message_arena == NULL) {
  1794. delete reinterpret_cast< ::google::protobuf::MessageLite*>(ts_);
  1795. }
  1796. if (ts) {
  1797. ::google::protobuf::Arena* submessage_arena =
  1798. reinterpret_cast<::google::protobuf::MessageLite*>(ts)->GetArena();
  1799. if (message_arena != submessage_arena) {
  1800. ts = ::google::protobuf::internal::GetOwnedMessage(
  1801. message_arena, ts, submessage_arena);
  1802. }
  1803. } else {
  1804. }
  1805. ts_ = ts;
  1806. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDuration.ts)
  1807. }
  1808. // .google.protobuf.Duration dur = 2;
  1809. inline bool TimestampDuration::has_dur() const {
  1810. return this != internal_default_instance() && dur_ != NULL;
  1811. }
  1812. inline const ::google::protobuf::Duration& TimestampDuration::_internal_dur() const {
  1813. return *dur_;
  1814. }
  1815. inline const ::google::protobuf::Duration& TimestampDuration::dur() const {
  1816. const ::google::protobuf::Duration* p = dur_;
  1817. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDuration.dur)
  1818. return p != NULL ? *p : *reinterpret_cast<const ::google::protobuf::Duration*>(
  1819. &::google::protobuf::_Duration_default_instance_);
  1820. }
  1821. inline ::google::protobuf::Duration* TimestampDuration::release_dur() {
  1822. // @@protoc_insertion_point(field_release:google.protobuf.testing.TimestampDuration.dur)
  1823. ::google::protobuf::Duration* temp = dur_;
  1824. dur_ = NULL;
  1825. return temp;
  1826. }
  1827. inline ::google::protobuf::Duration* TimestampDuration::mutable_dur() {
  1828. if (dur_ == NULL) {
  1829. auto* p = CreateMaybeMessage<::google::protobuf::Duration>(GetArenaNoVirtual());
  1830. dur_ = p;
  1831. }
  1832. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDuration.dur)
  1833. return dur_;
  1834. }
  1835. inline void TimestampDuration::set_allocated_dur(::google::protobuf::Duration* dur) {
  1836. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1837. if (message_arena == NULL) {
  1838. delete reinterpret_cast< ::google::protobuf::MessageLite*>(dur_);
  1839. }
  1840. if (dur) {
  1841. ::google::protobuf::Arena* submessage_arena =
  1842. reinterpret_cast<::google::protobuf::MessageLite*>(dur)->GetArena();
  1843. if (message_arena != submessage_arena) {
  1844. dur = ::google::protobuf::internal::GetOwnedMessage(
  1845. message_arena, dur, submessage_arena);
  1846. }
  1847. } else {
  1848. }
  1849. dur_ = dur;
  1850. // @@protoc_insertion_point(field_set_allocated:google.protobuf.testing.TimestampDuration.dur)
  1851. }
  1852. // repeated .google.protobuf.Timestamp rep_ts = 3;
  1853. inline int TimestampDuration::rep_ts_size() const {
  1854. return rep_ts_.size();
  1855. }
  1856. inline ::google::protobuf::Timestamp* TimestampDuration::mutable_rep_ts(int index) {
  1857. // @@protoc_insertion_point(field_mutable:google.protobuf.testing.TimestampDuration.rep_ts)
  1858. return rep_ts_.Mutable(index);
  1859. }
  1860. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp >*
  1861. TimestampDuration::mutable_rep_ts() {
  1862. // @@protoc_insertion_point(field_mutable_list:google.protobuf.testing.TimestampDuration.rep_ts)
  1863. return &rep_ts_;
  1864. }
  1865. inline const ::google::protobuf::Timestamp& TimestampDuration::rep_ts(int index) const {
  1866. // @@protoc_insertion_point(field_get:google.protobuf.testing.TimestampDuration.rep_ts)
  1867. return rep_ts_.Get(index);
  1868. }
  1869. inline ::google::protobuf::Timestamp* TimestampDuration::add_rep_ts() {
  1870. // @@protoc_insertion_point(field_add:google.protobuf.testing.TimestampDuration.rep_ts)
  1871. return rep_ts_.Add();
  1872. }
  1873. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Timestamp >&
  1874. TimestampDuration::rep_ts() const {
  1875. // @@protoc_insertion_point(field_list:google.protobuf.testing.TimestampDuration.rep_ts)
  1876. return rep_ts_;
  1877. }
  1878. #ifdef __GNUC__
  1879. #pragma GCC diagnostic pop
  1880. #endif // __GNUC__
  1881. // -------------------------------------------------------------------
  1882. // -------------------------------------------------------------------
  1883. // -------------------------------------------------------------------
  1884. // @@protoc_insertion_point(namespace_scope)
  1885. } // namespace testing
  1886. } // namespace protobuf
  1887. } // namespace google
  1888. // @@protoc_insertion_point(global_scope)
  1889. #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2finternal_2ftestdata_2ftimestamp_5fduration_2eproto