wrappers.pb.cc 100 KB

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