wrappers.pb.cc 98 KB

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