type.pb.h 78 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058205920602061206220632064206520662067206820692070207120722073207420752076207720782079208020812082208320842085208620872088208920902091209220932094209520962097209820992100210121022103210421052106210721082109211021112112211321142115211621172118211921202121212221232124212521262127212821292130213121322133213421352136
  1. // Generated by the protocol buffer compiler. DO NOT EDIT!
  2. // source: google/protobuf/type.proto
  3. #ifndef PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED
  4. #define PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED
  5. #include <string>
  6. #include <google/protobuf/stubs/common.h>
  7. #if GOOGLE_PROTOBUF_VERSION < 3002000
  8. #error This file was generated by a newer version of protoc which is
  9. #error incompatible with your Protocol Buffer headers. Please update
  10. #error your headers.
  11. #endif
  12. #if 3002000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  13. #error This file was generated by an older version of protoc which is
  14. #error incompatible with your Protocol Buffer headers. Please
  15. #error regenerate this file with a newer version of protoc.
  16. #endif
  17. #include <google/protobuf/io/coded_stream.h>
  18. #include <google/protobuf/arena.h>
  19. #include <google/protobuf/arenastring.h>
  20. #include <google/protobuf/generated_message_util.h>
  21. #include <google/protobuf/metadata.h>
  22. #include <google/protobuf/message.h>
  23. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  24. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  25. #include <google/protobuf/generated_enum_reflection.h>
  26. #include <google/protobuf/unknown_field_set.h>
  27. #include <google/protobuf/any.pb.h>
  28. #include <google/protobuf/source_context.pb.h>
  29. // @@protoc_insertion_point(includes)
  30. namespace google {
  31. namespace protobuf {
  32. class Any;
  33. class AnyDefaultTypeInternal;
  34. LIBPROTOBUF_EXPORT extern AnyDefaultTypeInternal _Any_default_instance_;
  35. class Enum;
  36. class EnumDefaultTypeInternal;
  37. LIBPROTOBUF_EXPORT extern EnumDefaultTypeInternal _Enum_default_instance_;
  38. class EnumValue;
  39. class EnumValueDefaultTypeInternal;
  40. LIBPROTOBUF_EXPORT extern EnumValueDefaultTypeInternal _EnumValue_default_instance_;
  41. class Field;
  42. class FieldDefaultTypeInternal;
  43. LIBPROTOBUF_EXPORT extern FieldDefaultTypeInternal _Field_default_instance_;
  44. class Option;
  45. class OptionDefaultTypeInternal;
  46. LIBPROTOBUF_EXPORT extern OptionDefaultTypeInternal _Option_default_instance_;
  47. class SourceContext;
  48. class SourceContextDefaultTypeInternal;
  49. LIBPROTOBUF_EXPORT extern SourceContextDefaultTypeInternal _SourceContext_default_instance_;
  50. class Type;
  51. class TypeDefaultTypeInternal;
  52. LIBPROTOBUF_EXPORT extern TypeDefaultTypeInternal _Type_default_instance_;
  53. } // namespace protobuf
  54. } // namespace google
  55. namespace google {
  56. namespace protobuf {
  57. namespace protobuf_google_2fprotobuf_2ftype_2eproto {
  58. // Internal implementation detail -- do not call these.
  59. struct LIBPROTOBUF_EXPORT TableStruct {
  60. static const ::google::protobuf::uint32 offsets[];
  61. static void InitDefaultsImpl();
  62. static void Shutdown();
  63. };
  64. void LIBPROTOBUF_EXPORT AddDescriptors();
  65. void LIBPROTOBUF_EXPORT InitDefaults();
  66. } // namespace protobuf_google_2fprotobuf_2ftype_2eproto
  67. enum Field_Kind {
  68. Field_Kind_TYPE_UNKNOWN = 0,
  69. Field_Kind_TYPE_DOUBLE = 1,
  70. Field_Kind_TYPE_FLOAT = 2,
  71. Field_Kind_TYPE_INT64 = 3,
  72. Field_Kind_TYPE_UINT64 = 4,
  73. Field_Kind_TYPE_INT32 = 5,
  74. Field_Kind_TYPE_FIXED64 = 6,
  75. Field_Kind_TYPE_FIXED32 = 7,
  76. Field_Kind_TYPE_BOOL = 8,
  77. Field_Kind_TYPE_STRING = 9,
  78. Field_Kind_TYPE_GROUP = 10,
  79. Field_Kind_TYPE_MESSAGE = 11,
  80. Field_Kind_TYPE_BYTES = 12,
  81. Field_Kind_TYPE_UINT32 = 13,
  82. Field_Kind_TYPE_ENUM = 14,
  83. Field_Kind_TYPE_SFIXED32 = 15,
  84. Field_Kind_TYPE_SFIXED64 = 16,
  85. Field_Kind_TYPE_SINT32 = 17,
  86. Field_Kind_TYPE_SINT64 = 18,
  87. Field_Kind_Field_Kind_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  88. Field_Kind_Field_Kind_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  89. };
  90. LIBPROTOBUF_EXPORT bool Field_Kind_IsValid(int value);
  91. const Field_Kind Field_Kind_Kind_MIN = Field_Kind_TYPE_UNKNOWN;
  92. const Field_Kind Field_Kind_Kind_MAX = Field_Kind_TYPE_SINT64;
  93. const int Field_Kind_Kind_ARRAYSIZE = Field_Kind_Kind_MAX + 1;
  94. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* Field_Kind_descriptor();
  95. inline const ::std::string& Field_Kind_Name(Field_Kind value) {
  96. return ::google::protobuf::internal::NameOfEnum(
  97. Field_Kind_descriptor(), value);
  98. }
  99. inline bool Field_Kind_Parse(
  100. const ::std::string& name, Field_Kind* value) {
  101. return ::google::protobuf::internal::ParseNamedEnum<Field_Kind>(
  102. Field_Kind_descriptor(), name, value);
  103. }
  104. enum Field_Cardinality {
  105. Field_Cardinality_CARDINALITY_UNKNOWN = 0,
  106. Field_Cardinality_CARDINALITY_OPTIONAL = 1,
  107. Field_Cardinality_CARDINALITY_REQUIRED = 2,
  108. Field_Cardinality_CARDINALITY_REPEATED = 3,
  109. Field_Cardinality_Field_Cardinality_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  110. Field_Cardinality_Field_Cardinality_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  111. };
  112. LIBPROTOBUF_EXPORT bool Field_Cardinality_IsValid(int value);
  113. const Field_Cardinality Field_Cardinality_Cardinality_MIN = Field_Cardinality_CARDINALITY_UNKNOWN;
  114. const Field_Cardinality Field_Cardinality_Cardinality_MAX = Field_Cardinality_CARDINALITY_REPEATED;
  115. const int Field_Cardinality_Cardinality_ARRAYSIZE = Field_Cardinality_Cardinality_MAX + 1;
  116. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* Field_Cardinality_descriptor();
  117. inline const ::std::string& Field_Cardinality_Name(Field_Cardinality value) {
  118. return ::google::protobuf::internal::NameOfEnum(
  119. Field_Cardinality_descriptor(), value);
  120. }
  121. inline bool Field_Cardinality_Parse(
  122. const ::std::string& name, Field_Cardinality* value) {
  123. return ::google::protobuf::internal::ParseNamedEnum<Field_Cardinality>(
  124. Field_Cardinality_descriptor(), name, value);
  125. }
  126. enum Syntax {
  127. SYNTAX_PROTO2 = 0,
  128. SYNTAX_PROTO3 = 1,
  129. Syntax_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min,
  130. Syntax_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max
  131. };
  132. LIBPROTOBUF_EXPORT bool Syntax_IsValid(int value);
  133. const Syntax Syntax_MIN = SYNTAX_PROTO2;
  134. const Syntax Syntax_MAX = SYNTAX_PROTO3;
  135. const int Syntax_ARRAYSIZE = Syntax_MAX + 1;
  136. LIBPROTOBUF_EXPORT const ::google::protobuf::EnumDescriptor* Syntax_descriptor();
  137. inline const ::std::string& Syntax_Name(Syntax value) {
  138. return ::google::protobuf::internal::NameOfEnum(
  139. Syntax_descriptor(), value);
  140. }
  141. inline bool Syntax_Parse(
  142. const ::std::string& name, Syntax* value) {
  143. return ::google::protobuf::internal::ParseNamedEnum<Syntax>(
  144. Syntax_descriptor(), name, value);
  145. }
  146. // ===================================================================
  147. class LIBPROTOBUF_EXPORT Type : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Type) */ {
  148. public:
  149. Type();
  150. virtual ~Type();
  151. Type(const Type& from);
  152. inline Type& operator=(const Type& from) {
  153. CopyFrom(from);
  154. return *this;
  155. }
  156. inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
  157. return GetArenaNoVirtual();
  158. }
  159. inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
  160. return MaybeArenaPtr();
  161. }
  162. static const ::google::protobuf::Descriptor* descriptor();
  163. static const Type& default_instance();
  164. static inline const Type* internal_default_instance() {
  165. return reinterpret_cast<const Type*>(
  166. &_Type_default_instance_);
  167. }
  168. void UnsafeArenaSwap(Type* other);
  169. void Swap(Type* other);
  170. // implements Message ----------------------------------------------
  171. inline Type* New() const PROTOBUF_FINAL { return New(NULL); }
  172. Type* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  173. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  174. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  175. void CopyFrom(const Type& from);
  176. void MergeFrom(const Type& from);
  177. void Clear() PROTOBUF_FINAL;
  178. bool IsInitialized() const PROTOBUF_FINAL;
  179. size_t ByteSizeLong() const PROTOBUF_FINAL;
  180. bool MergePartialFromCodedStream(
  181. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  182. void SerializeWithCachedSizes(
  183. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  184. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  185. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  186. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
  187. const PROTOBUF_FINAL {
  188. return InternalSerializeWithCachedSizesToArray(
  189. ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output);
  190. }
  191. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  192. private:
  193. void SharedCtor();
  194. void SharedDtor();
  195. void SetCachedSize(int size) const PROTOBUF_FINAL;
  196. void InternalSwap(Type* other);
  197. protected:
  198. explicit Type(::google::protobuf::Arena* arena);
  199. private:
  200. static void ArenaDtor(void* object);
  201. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  202. private:
  203. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  204. return _internal_metadata_.arena();
  205. }
  206. inline void* MaybeArenaPtr() const {
  207. return _internal_metadata_.raw_arena_ptr();
  208. }
  209. public:
  210. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  211. // nested types ----------------------------------------------------
  212. // accessors -------------------------------------------------------
  213. // repeated .google.protobuf.Field fields = 2;
  214. int fields_size() const;
  215. void clear_fields();
  216. static const int kFieldsFieldNumber = 2;
  217. const ::google::protobuf::Field& fields(int index) const;
  218. ::google::protobuf::Field* mutable_fields(int index);
  219. ::google::protobuf::Field* add_fields();
  220. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >*
  221. mutable_fields();
  222. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >&
  223. fields() const;
  224. // repeated string oneofs = 3;
  225. int oneofs_size() const;
  226. void clear_oneofs();
  227. static const int kOneofsFieldNumber = 3;
  228. const ::std::string& oneofs(int index) const;
  229. ::std::string* mutable_oneofs(int index);
  230. void set_oneofs(int index, const ::std::string& value);
  231. #if LANG_CXX11
  232. void set_oneofs(int index, ::std::string&& value);
  233. #endif
  234. void set_oneofs(int index, const char* value);
  235. void set_oneofs(int index, const char* value, size_t size);
  236. ::std::string* add_oneofs();
  237. void add_oneofs(const ::std::string& value);
  238. #if LANG_CXX11
  239. void add_oneofs(::std::string&& value);
  240. #endif
  241. void add_oneofs(const char* value);
  242. void add_oneofs(const char* value, size_t size);
  243. const ::google::protobuf::RepeatedPtrField< ::std::string>& oneofs() const;
  244. ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_oneofs();
  245. // repeated .google.protobuf.Option options = 4;
  246. int options_size() const;
  247. void clear_options();
  248. static const int kOptionsFieldNumber = 4;
  249. const ::google::protobuf::Option& options(int index) const;
  250. ::google::protobuf::Option* mutable_options(int index);
  251. ::google::protobuf::Option* add_options();
  252. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  253. mutable_options();
  254. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  255. options() const;
  256. // string name = 1;
  257. void clear_name();
  258. static const int kNameFieldNumber = 1;
  259. const ::std::string& name() const;
  260. void set_name(const ::std::string& value);
  261. void set_name(const char* value);
  262. void set_name(const char* value, size_t size);
  263. ::std::string* mutable_name();
  264. ::std::string* release_name();
  265. void set_allocated_name(::std::string* name);
  266. ::std::string* unsafe_arena_release_name();
  267. void unsafe_arena_set_allocated_name(
  268. ::std::string* name);
  269. // .google.protobuf.SourceContext source_context = 5;
  270. bool has_source_context() const;
  271. void clear_source_context();
  272. static const int kSourceContextFieldNumber = 5;
  273. private:
  274. void _slow_mutable_source_context();
  275. ::google::protobuf::SourceContext* _slow_release_source_context();
  276. public:
  277. const ::google::protobuf::SourceContext& source_context() const;
  278. ::google::protobuf::SourceContext* mutable_source_context();
  279. ::google::protobuf::SourceContext* release_source_context();
  280. void set_allocated_source_context(::google::protobuf::SourceContext* source_context);
  281. ::google::protobuf::SourceContext* unsafe_arena_release_source_context();
  282. void unsafe_arena_set_allocated_source_context(
  283. ::google::protobuf::SourceContext* source_context);
  284. // .google.protobuf.Syntax syntax = 6;
  285. void clear_syntax();
  286. static const int kSyntaxFieldNumber = 6;
  287. ::google::protobuf::Syntax syntax() const;
  288. void set_syntax(::google::protobuf::Syntax value);
  289. // @@protoc_insertion_point(class_scope:google.protobuf.Type)
  290. private:
  291. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  292. friend class ::google::protobuf::Arena;
  293. typedef void InternalArenaConstructable_;
  294. typedef void DestructorSkippable_;
  295. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field > fields_;
  296. ::google::protobuf::RepeatedPtrField< ::std::string> oneofs_;
  297. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
  298. ::google::protobuf::internal::ArenaStringPtr name_;
  299. ::google::protobuf::SourceContext* source_context_;
  300. int syntax_;
  301. mutable int _cached_size_;
  302. friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2ftype_2eproto::TableStruct;
  303. };
  304. // -------------------------------------------------------------------
  305. class LIBPROTOBUF_EXPORT Field : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Field) */ {
  306. public:
  307. Field();
  308. virtual ~Field();
  309. Field(const Field& from);
  310. inline Field& operator=(const Field& from) {
  311. CopyFrom(from);
  312. return *this;
  313. }
  314. inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
  315. return GetArenaNoVirtual();
  316. }
  317. inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
  318. return MaybeArenaPtr();
  319. }
  320. static const ::google::protobuf::Descriptor* descriptor();
  321. static const Field& default_instance();
  322. static inline const Field* internal_default_instance() {
  323. return reinterpret_cast<const Field*>(
  324. &_Field_default_instance_);
  325. }
  326. void UnsafeArenaSwap(Field* other);
  327. void Swap(Field* other);
  328. // implements Message ----------------------------------------------
  329. inline Field* New() const PROTOBUF_FINAL { return New(NULL); }
  330. Field* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  331. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  332. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  333. void CopyFrom(const Field& from);
  334. void MergeFrom(const Field& from);
  335. void Clear() PROTOBUF_FINAL;
  336. bool IsInitialized() const PROTOBUF_FINAL;
  337. size_t ByteSizeLong() const PROTOBUF_FINAL;
  338. bool MergePartialFromCodedStream(
  339. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  340. void SerializeWithCachedSizes(
  341. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  342. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  343. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  344. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
  345. const PROTOBUF_FINAL {
  346. return InternalSerializeWithCachedSizesToArray(
  347. ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output);
  348. }
  349. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  350. private:
  351. void SharedCtor();
  352. void SharedDtor();
  353. void SetCachedSize(int size) const PROTOBUF_FINAL;
  354. void InternalSwap(Field* other);
  355. protected:
  356. explicit Field(::google::protobuf::Arena* arena);
  357. private:
  358. static void ArenaDtor(void* object);
  359. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  360. private:
  361. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  362. return _internal_metadata_.arena();
  363. }
  364. inline void* MaybeArenaPtr() const {
  365. return _internal_metadata_.raw_arena_ptr();
  366. }
  367. public:
  368. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  369. // nested types ----------------------------------------------------
  370. typedef Field_Kind Kind;
  371. static const Kind TYPE_UNKNOWN =
  372. Field_Kind_TYPE_UNKNOWN;
  373. static const Kind TYPE_DOUBLE =
  374. Field_Kind_TYPE_DOUBLE;
  375. static const Kind TYPE_FLOAT =
  376. Field_Kind_TYPE_FLOAT;
  377. static const Kind TYPE_INT64 =
  378. Field_Kind_TYPE_INT64;
  379. static const Kind TYPE_UINT64 =
  380. Field_Kind_TYPE_UINT64;
  381. static const Kind TYPE_INT32 =
  382. Field_Kind_TYPE_INT32;
  383. static const Kind TYPE_FIXED64 =
  384. Field_Kind_TYPE_FIXED64;
  385. static const Kind TYPE_FIXED32 =
  386. Field_Kind_TYPE_FIXED32;
  387. static const Kind TYPE_BOOL =
  388. Field_Kind_TYPE_BOOL;
  389. static const Kind TYPE_STRING =
  390. Field_Kind_TYPE_STRING;
  391. static const Kind TYPE_GROUP =
  392. Field_Kind_TYPE_GROUP;
  393. static const Kind TYPE_MESSAGE =
  394. Field_Kind_TYPE_MESSAGE;
  395. static const Kind TYPE_BYTES =
  396. Field_Kind_TYPE_BYTES;
  397. static const Kind TYPE_UINT32 =
  398. Field_Kind_TYPE_UINT32;
  399. static const Kind TYPE_ENUM =
  400. Field_Kind_TYPE_ENUM;
  401. static const Kind TYPE_SFIXED32 =
  402. Field_Kind_TYPE_SFIXED32;
  403. static const Kind TYPE_SFIXED64 =
  404. Field_Kind_TYPE_SFIXED64;
  405. static const Kind TYPE_SINT32 =
  406. Field_Kind_TYPE_SINT32;
  407. static const Kind TYPE_SINT64 =
  408. Field_Kind_TYPE_SINT64;
  409. static inline bool Kind_IsValid(int value) {
  410. return Field_Kind_IsValid(value);
  411. }
  412. static const Kind Kind_MIN =
  413. Field_Kind_Kind_MIN;
  414. static const Kind Kind_MAX =
  415. Field_Kind_Kind_MAX;
  416. static const int Kind_ARRAYSIZE =
  417. Field_Kind_Kind_ARRAYSIZE;
  418. static inline const ::google::protobuf::EnumDescriptor*
  419. Kind_descriptor() {
  420. return Field_Kind_descriptor();
  421. }
  422. static inline const ::std::string& Kind_Name(Kind value) {
  423. return Field_Kind_Name(value);
  424. }
  425. static inline bool Kind_Parse(const ::std::string& name,
  426. Kind* value) {
  427. return Field_Kind_Parse(name, value);
  428. }
  429. typedef Field_Cardinality Cardinality;
  430. static const Cardinality CARDINALITY_UNKNOWN =
  431. Field_Cardinality_CARDINALITY_UNKNOWN;
  432. static const Cardinality CARDINALITY_OPTIONAL =
  433. Field_Cardinality_CARDINALITY_OPTIONAL;
  434. static const Cardinality CARDINALITY_REQUIRED =
  435. Field_Cardinality_CARDINALITY_REQUIRED;
  436. static const Cardinality CARDINALITY_REPEATED =
  437. Field_Cardinality_CARDINALITY_REPEATED;
  438. static inline bool Cardinality_IsValid(int value) {
  439. return Field_Cardinality_IsValid(value);
  440. }
  441. static const Cardinality Cardinality_MIN =
  442. Field_Cardinality_Cardinality_MIN;
  443. static const Cardinality Cardinality_MAX =
  444. Field_Cardinality_Cardinality_MAX;
  445. static const int Cardinality_ARRAYSIZE =
  446. Field_Cardinality_Cardinality_ARRAYSIZE;
  447. static inline const ::google::protobuf::EnumDescriptor*
  448. Cardinality_descriptor() {
  449. return Field_Cardinality_descriptor();
  450. }
  451. static inline const ::std::string& Cardinality_Name(Cardinality value) {
  452. return Field_Cardinality_Name(value);
  453. }
  454. static inline bool Cardinality_Parse(const ::std::string& name,
  455. Cardinality* value) {
  456. return Field_Cardinality_Parse(name, value);
  457. }
  458. // accessors -------------------------------------------------------
  459. // repeated .google.protobuf.Option options = 9;
  460. int options_size() const;
  461. void clear_options();
  462. static const int kOptionsFieldNumber = 9;
  463. const ::google::protobuf::Option& options(int index) const;
  464. ::google::protobuf::Option* mutable_options(int index);
  465. ::google::protobuf::Option* add_options();
  466. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  467. mutable_options();
  468. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  469. options() const;
  470. // string name = 4;
  471. void clear_name();
  472. static const int kNameFieldNumber = 4;
  473. const ::std::string& name() const;
  474. void set_name(const ::std::string& value);
  475. void set_name(const char* value);
  476. void set_name(const char* value, size_t size);
  477. ::std::string* mutable_name();
  478. ::std::string* release_name();
  479. void set_allocated_name(::std::string* name);
  480. ::std::string* unsafe_arena_release_name();
  481. void unsafe_arena_set_allocated_name(
  482. ::std::string* name);
  483. // string type_url = 6;
  484. void clear_type_url();
  485. static const int kTypeUrlFieldNumber = 6;
  486. const ::std::string& type_url() const;
  487. void set_type_url(const ::std::string& value);
  488. void set_type_url(const char* value);
  489. void set_type_url(const char* value, size_t size);
  490. ::std::string* mutable_type_url();
  491. ::std::string* release_type_url();
  492. void set_allocated_type_url(::std::string* type_url);
  493. ::std::string* unsafe_arena_release_type_url();
  494. void unsafe_arena_set_allocated_type_url(
  495. ::std::string* type_url);
  496. // string json_name = 10;
  497. void clear_json_name();
  498. static const int kJsonNameFieldNumber = 10;
  499. const ::std::string& json_name() const;
  500. void set_json_name(const ::std::string& value);
  501. void set_json_name(const char* value);
  502. void set_json_name(const char* value, size_t size);
  503. ::std::string* mutable_json_name();
  504. ::std::string* release_json_name();
  505. void set_allocated_json_name(::std::string* json_name);
  506. ::std::string* unsafe_arena_release_json_name();
  507. void unsafe_arena_set_allocated_json_name(
  508. ::std::string* json_name);
  509. // string default_value = 11;
  510. void clear_default_value();
  511. static const int kDefaultValueFieldNumber = 11;
  512. const ::std::string& default_value() const;
  513. void set_default_value(const ::std::string& value);
  514. void set_default_value(const char* value);
  515. void set_default_value(const char* value, size_t size);
  516. ::std::string* mutable_default_value();
  517. ::std::string* release_default_value();
  518. void set_allocated_default_value(::std::string* default_value);
  519. ::std::string* unsafe_arena_release_default_value();
  520. void unsafe_arena_set_allocated_default_value(
  521. ::std::string* default_value);
  522. // .google.protobuf.Field.Kind kind = 1;
  523. void clear_kind();
  524. static const int kKindFieldNumber = 1;
  525. ::google::protobuf::Field_Kind kind() const;
  526. void set_kind(::google::protobuf::Field_Kind value);
  527. // .google.protobuf.Field.Cardinality cardinality = 2;
  528. void clear_cardinality();
  529. static const int kCardinalityFieldNumber = 2;
  530. ::google::protobuf::Field_Cardinality cardinality() const;
  531. void set_cardinality(::google::protobuf::Field_Cardinality value);
  532. // int32 number = 3;
  533. void clear_number();
  534. static const int kNumberFieldNumber = 3;
  535. ::google::protobuf::int32 number() const;
  536. void set_number(::google::protobuf::int32 value);
  537. // int32 oneof_index = 7;
  538. void clear_oneof_index();
  539. static const int kOneofIndexFieldNumber = 7;
  540. ::google::protobuf::int32 oneof_index() const;
  541. void set_oneof_index(::google::protobuf::int32 value);
  542. // bool packed = 8;
  543. void clear_packed();
  544. static const int kPackedFieldNumber = 8;
  545. bool packed() const;
  546. void set_packed(bool value);
  547. // @@protoc_insertion_point(class_scope:google.protobuf.Field)
  548. private:
  549. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  550. friend class ::google::protobuf::Arena;
  551. typedef void InternalArenaConstructable_;
  552. typedef void DestructorSkippable_;
  553. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
  554. ::google::protobuf::internal::ArenaStringPtr name_;
  555. ::google::protobuf::internal::ArenaStringPtr type_url_;
  556. ::google::protobuf::internal::ArenaStringPtr json_name_;
  557. ::google::protobuf::internal::ArenaStringPtr default_value_;
  558. int kind_;
  559. int cardinality_;
  560. ::google::protobuf::int32 number_;
  561. ::google::protobuf::int32 oneof_index_;
  562. bool packed_;
  563. mutable int _cached_size_;
  564. friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2ftype_2eproto::TableStruct;
  565. };
  566. // -------------------------------------------------------------------
  567. class LIBPROTOBUF_EXPORT Enum : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Enum) */ {
  568. public:
  569. Enum();
  570. virtual ~Enum();
  571. Enum(const Enum& from);
  572. inline Enum& operator=(const Enum& from) {
  573. CopyFrom(from);
  574. return *this;
  575. }
  576. inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
  577. return GetArenaNoVirtual();
  578. }
  579. inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
  580. return MaybeArenaPtr();
  581. }
  582. static const ::google::protobuf::Descriptor* descriptor();
  583. static const Enum& default_instance();
  584. static inline const Enum* internal_default_instance() {
  585. return reinterpret_cast<const Enum*>(
  586. &_Enum_default_instance_);
  587. }
  588. void UnsafeArenaSwap(Enum* other);
  589. void Swap(Enum* other);
  590. // implements Message ----------------------------------------------
  591. inline Enum* New() const PROTOBUF_FINAL { return New(NULL); }
  592. Enum* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  593. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  594. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  595. void CopyFrom(const Enum& from);
  596. void MergeFrom(const Enum& from);
  597. void Clear() PROTOBUF_FINAL;
  598. bool IsInitialized() const PROTOBUF_FINAL;
  599. size_t ByteSizeLong() const PROTOBUF_FINAL;
  600. bool MergePartialFromCodedStream(
  601. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  602. void SerializeWithCachedSizes(
  603. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  604. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  605. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  606. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
  607. const PROTOBUF_FINAL {
  608. return InternalSerializeWithCachedSizesToArray(
  609. ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output);
  610. }
  611. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  612. private:
  613. void SharedCtor();
  614. void SharedDtor();
  615. void SetCachedSize(int size) const PROTOBUF_FINAL;
  616. void InternalSwap(Enum* other);
  617. protected:
  618. explicit Enum(::google::protobuf::Arena* arena);
  619. private:
  620. static void ArenaDtor(void* object);
  621. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  622. private:
  623. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  624. return _internal_metadata_.arena();
  625. }
  626. inline void* MaybeArenaPtr() const {
  627. return _internal_metadata_.raw_arena_ptr();
  628. }
  629. public:
  630. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  631. // nested types ----------------------------------------------------
  632. // accessors -------------------------------------------------------
  633. // repeated .google.protobuf.EnumValue enumvalue = 2;
  634. int enumvalue_size() const;
  635. void clear_enumvalue();
  636. static const int kEnumvalueFieldNumber = 2;
  637. const ::google::protobuf::EnumValue& enumvalue(int index) const;
  638. ::google::protobuf::EnumValue* mutable_enumvalue(int index);
  639. ::google::protobuf::EnumValue* add_enumvalue();
  640. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >*
  641. mutable_enumvalue();
  642. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >&
  643. enumvalue() const;
  644. // repeated .google.protobuf.Option options = 3;
  645. int options_size() const;
  646. void clear_options();
  647. static const int kOptionsFieldNumber = 3;
  648. const ::google::protobuf::Option& options(int index) const;
  649. ::google::protobuf::Option* mutable_options(int index);
  650. ::google::protobuf::Option* add_options();
  651. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  652. mutable_options();
  653. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  654. options() const;
  655. // string name = 1;
  656. void clear_name();
  657. static const int kNameFieldNumber = 1;
  658. const ::std::string& name() const;
  659. void set_name(const ::std::string& value);
  660. void set_name(const char* value);
  661. void set_name(const char* value, size_t size);
  662. ::std::string* mutable_name();
  663. ::std::string* release_name();
  664. void set_allocated_name(::std::string* name);
  665. ::std::string* unsafe_arena_release_name();
  666. void unsafe_arena_set_allocated_name(
  667. ::std::string* name);
  668. // .google.protobuf.SourceContext source_context = 4;
  669. bool has_source_context() const;
  670. void clear_source_context();
  671. static const int kSourceContextFieldNumber = 4;
  672. private:
  673. void _slow_mutable_source_context();
  674. ::google::protobuf::SourceContext* _slow_release_source_context();
  675. public:
  676. const ::google::protobuf::SourceContext& source_context() const;
  677. ::google::protobuf::SourceContext* mutable_source_context();
  678. ::google::protobuf::SourceContext* release_source_context();
  679. void set_allocated_source_context(::google::protobuf::SourceContext* source_context);
  680. ::google::protobuf::SourceContext* unsafe_arena_release_source_context();
  681. void unsafe_arena_set_allocated_source_context(
  682. ::google::protobuf::SourceContext* source_context);
  683. // .google.protobuf.Syntax syntax = 5;
  684. void clear_syntax();
  685. static const int kSyntaxFieldNumber = 5;
  686. ::google::protobuf::Syntax syntax() const;
  687. void set_syntax(::google::protobuf::Syntax value);
  688. // @@protoc_insertion_point(class_scope:google.protobuf.Enum)
  689. private:
  690. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  691. friend class ::google::protobuf::Arena;
  692. typedef void InternalArenaConstructable_;
  693. typedef void DestructorSkippable_;
  694. ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue > enumvalue_;
  695. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
  696. ::google::protobuf::internal::ArenaStringPtr name_;
  697. ::google::protobuf::SourceContext* source_context_;
  698. int syntax_;
  699. mutable int _cached_size_;
  700. friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2ftype_2eproto::TableStruct;
  701. };
  702. // -------------------------------------------------------------------
  703. class LIBPROTOBUF_EXPORT EnumValue : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.EnumValue) */ {
  704. public:
  705. EnumValue();
  706. virtual ~EnumValue();
  707. EnumValue(const EnumValue& from);
  708. inline EnumValue& operator=(const EnumValue& from) {
  709. CopyFrom(from);
  710. return *this;
  711. }
  712. inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
  713. return GetArenaNoVirtual();
  714. }
  715. inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
  716. return MaybeArenaPtr();
  717. }
  718. static const ::google::protobuf::Descriptor* descriptor();
  719. static const EnumValue& default_instance();
  720. static inline const EnumValue* internal_default_instance() {
  721. return reinterpret_cast<const EnumValue*>(
  722. &_EnumValue_default_instance_);
  723. }
  724. void UnsafeArenaSwap(EnumValue* other);
  725. void Swap(EnumValue* other);
  726. // implements Message ----------------------------------------------
  727. inline EnumValue* New() const PROTOBUF_FINAL { return New(NULL); }
  728. EnumValue* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  729. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  730. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  731. void CopyFrom(const EnumValue& from);
  732. void MergeFrom(const EnumValue& from);
  733. void Clear() PROTOBUF_FINAL;
  734. bool IsInitialized() const PROTOBUF_FINAL;
  735. size_t ByteSizeLong() const PROTOBUF_FINAL;
  736. bool MergePartialFromCodedStream(
  737. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  738. void SerializeWithCachedSizes(
  739. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  740. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  741. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  742. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
  743. const PROTOBUF_FINAL {
  744. return InternalSerializeWithCachedSizesToArray(
  745. ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output);
  746. }
  747. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  748. private:
  749. void SharedCtor();
  750. void SharedDtor();
  751. void SetCachedSize(int size) const PROTOBUF_FINAL;
  752. void InternalSwap(EnumValue* other);
  753. protected:
  754. explicit EnumValue(::google::protobuf::Arena* arena);
  755. private:
  756. static void ArenaDtor(void* object);
  757. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  758. private:
  759. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  760. return _internal_metadata_.arena();
  761. }
  762. inline void* MaybeArenaPtr() const {
  763. return _internal_metadata_.raw_arena_ptr();
  764. }
  765. public:
  766. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  767. // nested types ----------------------------------------------------
  768. // accessors -------------------------------------------------------
  769. // repeated .google.protobuf.Option options = 3;
  770. int options_size() const;
  771. void clear_options();
  772. static const int kOptionsFieldNumber = 3;
  773. const ::google::protobuf::Option& options(int index) const;
  774. ::google::protobuf::Option* mutable_options(int index);
  775. ::google::protobuf::Option* add_options();
  776. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  777. mutable_options();
  778. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  779. options() const;
  780. // string name = 1;
  781. void clear_name();
  782. static const int kNameFieldNumber = 1;
  783. const ::std::string& name() const;
  784. void set_name(const ::std::string& value);
  785. void set_name(const char* value);
  786. void set_name(const char* value, size_t size);
  787. ::std::string* mutable_name();
  788. ::std::string* release_name();
  789. void set_allocated_name(::std::string* name);
  790. ::std::string* unsafe_arena_release_name();
  791. void unsafe_arena_set_allocated_name(
  792. ::std::string* name);
  793. // int32 number = 2;
  794. void clear_number();
  795. static const int kNumberFieldNumber = 2;
  796. ::google::protobuf::int32 number() const;
  797. void set_number(::google::protobuf::int32 value);
  798. // @@protoc_insertion_point(class_scope:google.protobuf.EnumValue)
  799. private:
  800. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  801. friend class ::google::protobuf::Arena;
  802. typedef void InternalArenaConstructable_;
  803. typedef void DestructorSkippable_;
  804. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option > options_;
  805. ::google::protobuf::internal::ArenaStringPtr name_;
  806. ::google::protobuf::int32 number_;
  807. mutable int _cached_size_;
  808. friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2ftype_2eproto::TableStruct;
  809. };
  810. // -------------------------------------------------------------------
  811. class LIBPROTOBUF_EXPORT Option : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Option) */ {
  812. public:
  813. Option();
  814. virtual ~Option();
  815. Option(const Option& from);
  816. inline Option& operator=(const Option& from) {
  817. CopyFrom(from);
  818. return *this;
  819. }
  820. inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
  821. return GetArenaNoVirtual();
  822. }
  823. inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
  824. return MaybeArenaPtr();
  825. }
  826. static const ::google::protobuf::Descriptor* descriptor();
  827. static const Option& default_instance();
  828. static inline const Option* internal_default_instance() {
  829. return reinterpret_cast<const Option*>(
  830. &_Option_default_instance_);
  831. }
  832. void UnsafeArenaSwap(Option* other);
  833. void Swap(Option* other);
  834. // implements Message ----------------------------------------------
  835. inline Option* New() const PROTOBUF_FINAL { return New(NULL); }
  836. Option* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  837. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  838. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  839. void CopyFrom(const Option& from);
  840. void MergeFrom(const Option& from);
  841. void Clear() PROTOBUF_FINAL;
  842. bool IsInitialized() const PROTOBUF_FINAL;
  843. size_t ByteSizeLong() const PROTOBUF_FINAL;
  844. bool MergePartialFromCodedStream(
  845. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  846. void SerializeWithCachedSizes(
  847. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  848. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  849. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  850. ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output)
  851. const PROTOBUF_FINAL {
  852. return InternalSerializeWithCachedSizesToArray(
  853. ::google::protobuf::io::CodedOutputStream::IsDefaultSerializationDeterministic(), output);
  854. }
  855. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  856. private:
  857. void SharedCtor();
  858. void SharedDtor();
  859. void SetCachedSize(int size) const PROTOBUF_FINAL;
  860. void InternalSwap(Option* other);
  861. protected:
  862. explicit Option(::google::protobuf::Arena* arena);
  863. private:
  864. static void ArenaDtor(void* object);
  865. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  866. private:
  867. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  868. return _internal_metadata_.arena();
  869. }
  870. inline void* MaybeArenaPtr() const {
  871. return _internal_metadata_.raw_arena_ptr();
  872. }
  873. public:
  874. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  875. // nested types ----------------------------------------------------
  876. // accessors -------------------------------------------------------
  877. // string name = 1;
  878. void clear_name();
  879. static const int kNameFieldNumber = 1;
  880. const ::std::string& name() const;
  881. void set_name(const ::std::string& value);
  882. void set_name(const char* value);
  883. void set_name(const char* value, size_t size);
  884. ::std::string* mutable_name();
  885. ::std::string* release_name();
  886. void set_allocated_name(::std::string* name);
  887. ::std::string* unsafe_arena_release_name();
  888. void unsafe_arena_set_allocated_name(
  889. ::std::string* name);
  890. // .google.protobuf.Any value = 2;
  891. bool has_value() const;
  892. void clear_value();
  893. static const int kValueFieldNumber = 2;
  894. private:
  895. void _slow_mutable_value();
  896. ::google::protobuf::Any* _slow_release_value();
  897. public:
  898. const ::google::protobuf::Any& value() const;
  899. ::google::protobuf::Any* mutable_value();
  900. ::google::protobuf::Any* release_value();
  901. void set_allocated_value(::google::protobuf::Any* value);
  902. ::google::protobuf::Any* unsafe_arena_release_value();
  903. void unsafe_arena_set_allocated_value(
  904. ::google::protobuf::Any* value);
  905. // @@protoc_insertion_point(class_scope:google.protobuf.Option)
  906. private:
  907. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  908. friend class ::google::protobuf::Arena;
  909. typedef void InternalArenaConstructable_;
  910. typedef void DestructorSkippable_;
  911. ::google::protobuf::internal::ArenaStringPtr name_;
  912. ::google::protobuf::Any* value_;
  913. mutable int _cached_size_;
  914. friend struct LIBPROTOBUF_EXPORT protobuf_google_2fprotobuf_2ftype_2eproto::TableStruct;
  915. };
  916. // ===================================================================
  917. // ===================================================================
  918. #if !PROTOBUF_INLINE_NOT_IN_HEADERS
  919. // Type
  920. // string name = 1;
  921. inline void Type::clear_name() {
  922. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  923. }
  924. inline const ::std::string& Type::name() const {
  925. // @@protoc_insertion_point(field_get:google.protobuf.Type.name)
  926. return name_.Get();
  927. }
  928. inline void Type::set_name(const ::std::string& value) {
  929. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  930. // @@protoc_insertion_point(field_set:google.protobuf.Type.name)
  931. }
  932. inline void Type::set_name(const char* value) {
  933. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  934. GetArenaNoVirtual());
  935. // @@protoc_insertion_point(field_set_char:google.protobuf.Type.name)
  936. }
  937. inline void Type::set_name(const char* value,
  938. size_t size) {
  939. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  940. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  941. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.name)
  942. }
  943. inline ::std::string* Type::mutable_name() {
  944. // @@protoc_insertion_point(field_mutable:google.protobuf.Type.name)
  945. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  946. }
  947. inline ::std::string* Type::release_name() {
  948. // @@protoc_insertion_point(field_release:google.protobuf.Type.name)
  949. return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  950. }
  951. inline ::std::string* Type::unsafe_arena_release_name() {
  952. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Type.name)
  953. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  954. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  955. GetArenaNoVirtual());
  956. }
  957. inline void Type::set_allocated_name(::std::string* name) {
  958. if (name != NULL) {
  959. } else {
  960. }
  961. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  962. GetArenaNoVirtual());
  963. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.name)
  964. }
  965. inline void Type::unsafe_arena_set_allocated_name(
  966. ::std::string* name) {
  967. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  968. if (name != NULL) {
  969. } else {
  970. }
  971. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  972. name, GetArenaNoVirtual());
  973. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Type.name)
  974. }
  975. // repeated .google.protobuf.Field fields = 2;
  976. inline int Type::fields_size() const {
  977. return fields_.size();
  978. }
  979. inline void Type::clear_fields() {
  980. fields_.Clear();
  981. }
  982. inline const ::google::protobuf::Field& Type::fields(int index) const {
  983. // @@protoc_insertion_point(field_get:google.protobuf.Type.fields)
  984. return fields_.Get(index);
  985. }
  986. inline ::google::protobuf::Field* Type::mutable_fields(int index) {
  987. // @@protoc_insertion_point(field_mutable:google.protobuf.Type.fields)
  988. return fields_.Mutable(index);
  989. }
  990. inline ::google::protobuf::Field* Type::add_fields() {
  991. // @@protoc_insertion_point(field_add:google.protobuf.Type.fields)
  992. return fields_.Add();
  993. }
  994. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >*
  995. Type::mutable_fields() {
  996. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.fields)
  997. return &fields_;
  998. }
  999. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Field >&
  1000. Type::fields() const {
  1001. // @@protoc_insertion_point(field_list:google.protobuf.Type.fields)
  1002. return fields_;
  1003. }
  1004. // repeated string oneofs = 3;
  1005. inline int Type::oneofs_size() const {
  1006. return oneofs_.size();
  1007. }
  1008. inline void Type::clear_oneofs() {
  1009. oneofs_.Clear();
  1010. }
  1011. inline const ::std::string& Type::oneofs(int index) const {
  1012. // @@protoc_insertion_point(field_get:google.protobuf.Type.oneofs)
  1013. return oneofs_.Get(index);
  1014. }
  1015. inline ::std::string* Type::mutable_oneofs(int index) {
  1016. // @@protoc_insertion_point(field_mutable:google.protobuf.Type.oneofs)
  1017. return oneofs_.Mutable(index);
  1018. }
  1019. inline void Type::set_oneofs(int index, const ::std::string& value) {
  1020. // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
  1021. oneofs_.Mutable(index)->assign(value);
  1022. }
  1023. #if LANG_CXX11
  1024. inline void Type::set_oneofs(int index, ::std::string&& value) {
  1025. // @@protoc_insertion_point(field_set:google.protobuf.Type.oneofs)
  1026. oneofs_.Mutable(index)->assign(std::move(value));
  1027. }
  1028. #endif
  1029. inline void Type::set_oneofs(int index, const char* value) {
  1030. oneofs_.Mutable(index)->assign(value);
  1031. // @@protoc_insertion_point(field_set_char:google.protobuf.Type.oneofs)
  1032. }
  1033. inline void Type::set_oneofs(int index, const char* value, size_t size) {
  1034. oneofs_.Mutable(index)->assign(
  1035. reinterpret_cast<const char*>(value), size);
  1036. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Type.oneofs)
  1037. }
  1038. inline ::std::string* Type::add_oneofs() {
  1039. // @@protoc_insertion_point(field_add_mutable:google.protobuf.Type.oneofs)
  1040. return oneofs_.Add();
  1041. }
  1042. inline void Type::add_oneofs(const ::std::string& value) {
  1043. oneofs_.Add()->assign(value);
  1044. // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
  1045. }
  1046. #if LANG_CXX11
  1047. inline void Type::add_oneofs(::std::string&& value) {
  1048. oneofs_.Add()->assign(std::move(value));
  1049. // @@protoc_insertion_point(field_add:google.protobuf.Type.oneofs)
  1050. }
  1051. #endif
  1052. inline void Type::add_oneofs(const char* value) {
  1053. oneofs_.Add()->assign(value);
  1054. // @@protoc_insertion_point(field_add_char:google.protobuf.Type.oneofs)
  1055. }
  1056. inline void Type::add_oneofs(const char* value, size_t size) {
  1057. oneofs_.Add()->assign(reinterpret_cast<const char*>(value), size);
  1058. // @@protoc_insertion_point(field_add_pointer:google.protobuf.Type.oneofs)
  1059. }
  1060. inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
  1061. Type::oneofs() const {
  1062. // @@protoc_insertion_point(field_list:google.protobuf.Type.oneofs)
  1063. return oneofs_;
  1064. }
  1065. inline ::google::protobuf::RepeatedPtrField< ::std::string>*
  1066. Type::mutable_oneofs() {
  1067. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.oneofs)
  1068. return &oneofs_;
  1069. }
  1070. // repeated .google.protobuf.Option options = 4;
  1071. inline int Type::options_size() const {
  1072. return options_.size();
  1073. }
  1074. inline void Type::clear_options() {
  1075. options_.Clear();
  1076. }
  1077. inline const ::google::protobuf::Option& Type::options(int index) const {
  1078. // @@protoc_insertion_point(field_get:google.protobuf.Type.options)
  1079. return options_.Get(index);
  1080. }
  1081. inline ::google::protobuf::Option* Type::mutable_options(int index) {
  1082. // @@protoc_insertion_point(field_mutable:google.protobuf.Type.options)
  1083. return options_.Mutable(index);
  1084. }
  1085. inline ::google::protobuf::Option* Type::add_options() {
  1086. // @@protoc_insertion_point(field_add:google.protobuf.Type.options)
  1087. return options_.Add();
  1088. }
  1089. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  1090. Type::mutable_options() {
  1091. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Type.options)
  1092. return &options_;
  1093. }
  1094. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  1095. Type::options() const {
  1096. // @@protoc_insertion_point(field_list:google.protobuf.Type.options)
  1097. return options_;
  1098. }
  1099. // .google.protobuf.SourceContext source_context = 5;
  1100. inline bool Type::has_source_context() const {
  1101. return this != internal_default_instance() && source_context_ != NULL;
  1102. }
  1103. inline void Type::clear_source_context() {
  1104. if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
  1105. source_context_ = NULL;
  1106. }
  1107. inline const ::google::protobuf::SourceContext& Type::source_context() const {
  1108. // @@protoc_insertion_point(field_get:google.protobuf.Type.source_context)
  1109. return source_context_ != NULL ? *source_context_
  1110. : *::google::protobuf::SourceContext::internal_default_instance();
  1111. }
  1112. inline ::google::protobuf::SourceContext* Type::mutable_source_context() {
  1113. if (source_context_ == NULL) {
  1114. _slow_mutable_source_context();
  1115. }
  1116. // @@protoc_insertion_point(field_mutable:google.protobuf.Type.source_context)
  1117. return source_context_;
  1118. }
  1119. inline ::google::protobuf::SourceContext* Type::release_source_context() {
  1120. // @@protoc_insertion_point(field_release:google.protobuf.Type.source_context)
  1121. if (GetArenaNoVirtual() != NULL) {
  1122. return _slow_release_source_context();
  1123. } else {
  1124. ::google::protobuf::SourceContext* temp = source_context_;
  1125. source_context_ = NULL;
  1126. return temp;
  1127. }
  1128. }
  1129. inline void Type::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
  1130. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1131. if (message_arena == NULL) {
  1132. delete source_context_;
  1133. }
  1134. if (source_context != NULL) {
  1135. if (message_arena != NULL) {
  1136. message_arena->Own(source_context);
  1137. }
  1138. }
  1139. source_context_ = source_context;
  1140. if (source_context) {
  1141. } else {
  1142. }
  1143. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Type.source_context)
  1144. }
  1145. // .google.protobuf.Syntax syntax = 6;
  1146. inline void Type::clear_syntax() {
  1147. syntax_ = 0;
  1148. }
  1149. inline ::google::protobuf::Syntax Type::syntax() const {
  1150. // @@protoc_insertion_point(field_get:google.protobuf.Type.syntax)
  1151. return static_cast< ::google::protobuf::Syntax >(syntax_);
  1152. }
  1153. inline void Type::set_syntax(::google::protobuf::Syntax value) {
  1154. syntax_ = value;
  1155. // @@protoc_insertion_point(field_set:google.protobuf.Type.syntax)
  1156. }
  1157. // -------------------------------------------------------------------
  1158. // Field
  1159. // .google.protobuf.Field.Kind kind = 1;
  1160. inline void Field::clear_kind() {
  1161. kind_ = 0;
  1162. }
  1163. inline ::google::protobuf::Field_Kind Field::kind() const {
  1164. // @@protoc_insertion_point(field_get:google.protobuf.Field.kind)
  1165. return static_cast< ::google::protobuf::Field_Kind >(kind_);
  1166. }
  1167. inline void Field::set_kind(::google::protobuf::Field_Kind value) {
  1168. kind_ = value;
  1169. // @@protoc_insertion_point(field_set:google.protobuf.Field.kind)
  1170. }
  1171. // .google.protobuf.Field.Cardinality cardinality = 2;
  1172. inline void Field::clear_cardinality() {
  1173. cardinality_ = 0;
  1174. }
  1175. inline ::google::protobuf::Field_Cardinality Field::cardinality() const {
  1176. // @@protoc_insertion_point(field_get:google.protobuf.Field.cardinality)
  1177. return static_cast< ::google::protobuf::Field_Cardinality >(cardinality_);
  1178. }
  1179. inline void Field::set_cardinality(::google::protobuf::Field_Cardinality value) {
  1180. cardinality_ = value;
  1181. // @@protoc_insertion_point(field_set:google.protobuf.Field.cardinality)
  1182. }
  1183. // int32 number = 3;
  1184. inline void Field::clear_number() {
  1185. number_ = 0;
  1186. }
  1187. inline ::google::protobuf::int32 Field::number() const {
  1188. // @@protoc_insertion_point(field_get:google.protobuf.Field.number)
  1189. return number_;
  1190. }
  1191. inline void Field::set_number(::google::protobuf::int32 value) {
  1192. number_ = value;
  1193. // @@protoc_insertion_point(field_set:google.protobuf.Field.number)
  1194. }
  1195. // string name = 4;
  1196. inline void Field::clear_name() {
  1197. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1198. }
  1199. inline const ::std::string& Field::name() const {
  1200. // @@protoc_insertion_point(field_get:google.protobuf.Field.name)
  1201. return name_.Get();
  1202. }
  1203. inline void Field::set_name(const ::std::string& value) {
  1204. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1205. // @@protoc_insertion_point(field_set:google.protobuf.Field.name)
  1206. }
  1207. inline void Field::set_name(const char* value) {
  1208. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1209. GetArenaNoVirtual());
  1210. // @@protoc_insertion_point(field_set_char:google.protobuf.Field.name)
  1211. }
  1212. inline void Field::set_name(const char* value,
  1213. size_t size) {
  1214. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1215. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1216. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.name)
  1217. }
  1218. inline ::std::string* Field::mutable_name() {
  1219. // @@protoc_insertion_point(field_mutable:google.protobuf.Field.name)
  1220. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1221. }
  1222. inline ::std::string* Field::release_name() {
  1223. // @@protoc_insertion_point(field_release:google.protobuf.Field.name)
  1224. return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1225. }
  1226. inline ::std::string* Field::unsafe_arena_release_name() {
  1227. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.name)
  1228. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1229. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1230. GetArenaNoVirtual());
  1231. }
  1232. inline void Field::set_allocated_name(::std::string* name) {
  1233. if (name != NULL) {
  1234. } else {
  1235. }
  1236. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  1237. GetArenaNoVirtual());
  1238. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.name)
  1239. }
  1240. inline void Field::unsafe_arena_set_allocated_name(
  1241. ::std::string* name) {
  1242. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1243. if (name != NULL) {
  1244. } else {
  1245. }
  1246. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1247. name, GetArenaNoVirtual());
  1248. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Field.name)
  1249. }
  1250. // string type_url = 6;
  1251. inline void Field::clear_type_url() {
  1252. type_url_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1253. }
  1254. inline const ::std::string& Field::type_url() const {
  1255. // @@protoc_insertion_point(field_get:google.protobuf.Field.type_url)
  1256. return type_url_.Get();
  1257. }
  1258. inline void Field::set_type_url(const ::std::string& value) {
  1259. type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1260. // @@protoc_insertion_point(field_set:google.protobuf.Field.type_url)
  1261. }
  1262. inline void Field::set_type_url(const char* value) {
  1263. type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1264. GetArenaNoVirtual());
  1265. // @@protoc_insertion_point(field_set_char:google.protobuf.Field.type_url)
  1266. }
  1267. inline void Field::set_type_url(const char* value,
  1268. size_t size) {
  1269. type_url_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1270. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1271. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.type_url)
  1272. }
  1273. inline ::std::string* Field::mutable_type_url() {
  1274. // @@protoc_insertion_point(field_mutable:google.protobuf.Field.type_url)
  1275. return type_url_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1276. }
  1277. inline ::std::string* Field::release_type_url() {
  1278. // @@protoc_insertion_point(field_release:google.protobuf.Field.type_url)
  1279. return type_url_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1280. }
  1281. inline ::std::string* Field::unsafe_arena_release_type_url() {
  1282. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.type_url)
  1283. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1284. return type_url_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1285. GetArenaNoVirtual());
  1286. }
  1287. inline void Field::set_allocated_type_url(::std::string* type_url) {
  1288. if (type_url != NULL) {
  1289. } else {
  1290. }
  1291. type_url_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), type_url,
  1292. GetArenaNoVirtual());
  1293. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.type_url)
  1294. }
  1295. inline void Field::unsafe_arena_set_allocated_type_url(
  1296. ::std::string* type_url) {
  1297. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1298. if (type_url != NULL) {
  1299. } else {
  1300. }
  1301. type_url_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1302. type_url, GetArenaNoVirtual());
  1303. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Field.type_url)
  1304. }
  1305. // int32 oneof_index = 7;
  1306. inline void Field::clear_oneof_index() {
  1307. oneof_index_ = 0;
  1308. }
  1309. inline ::google::protobuf::int32 Field::oneof_index() const {
  1310. // @@protoc_insertion_point(field_get:google.protobuf.Field.oneof_index)
  1311. return oneof_index_;
  1312. }
  1313. inline void Field::set_oneof_index(::google::protobuf::int32 value) {
  1314. oneof_index_ = value;
  1315. // @@protoc_insertion_point(field_set:google.protobuf.Field.oneof_index)
  1316. }
  1317. // bool packed = 8;
  1318. inline void Field::clear_packed() {
  1319. packed_ = false;
  1320. }
  1321. inline bool Field::packed() const {
  1322. // @@protoc_insertion_point(field_get:google.protobuf.Field.packed)
  1323. return packed_;
  1324. }
  1325. inline void Field::set_packed(bool value) {
  1326. packed_ = value;
  1327. // @@protoc_insertion_point(field_set:google.protobuf.Field.packed)
  1328. }
  1329. // repeated .google.protobuf.Option options = 9;
  1330. inline int Field::options_size() const {
  1331. return options_.size();
  1332. }
  1333. inline void Field::clear_options() {
  1334. options_.Clear();
  1335. }
  1336. inline const ::google::protobuf::Option& Field::options(int index) const {
  1337. // @@protoc_insertion_point(field_get:google.protobuf.Field.options)
  1338. return options_.Get(index);
  1339. }
  1340. inline ::google::protobuf::Option* Field::mutable_options(int index) {
  1341. // @@protoc_insertion_point(field_mutable:google.protobuf.Field.options)
  1342. return options_.Mutable(index);
  1343. }
  1344. inline ::google::protobuf::Option* Field::add_options() {
  1345. // @@protoc_insertion_point(field_add:google.protobuf.Field.options)
  1346. return options_.Add();
  1347. }
  1348. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  1349. Field::mutable_options() {
  1350. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Field.options)
  1351. return &options_;
  1352. }
  1353. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  1354. Field::options() const {
  1355. // @@protoc_insertion_point(field_list:google.protobuf.Field.options)
  1356. return options_;
  1357. }
  1358. // string json_name = 10;
  1359. inline void Field::clear_json_name() {
  1360. json_name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1361. }
  1362. inline const ::std::string& Field::json_name() const {
  1363. // @@protoc_insertion_point(field_get:google.protobuf.Field.json_name)
  1364. return json_name_.Get();
  1365. }
  1366. inline void Field::set_json_name(const ::std::string& value) {
  1367. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1368. // @@protoc_insertion_point(field_set:google.protobuf.Field.json_name)
  1369. }
  1370. inline void Field::set_json_name(const char* value) {
  1371. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1372. GetArenaNoVirtual());
  1373. // @@protoc_insertion_point(field_set_char:google.protobuf.Field.json_name)
  1374. }
  1375. inline void Field::set_json_name(const char* value,
  1376. size_t size) {
  1377. json_name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1378. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1379. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.json_name)
  1380. }
  1381. inline ::std::string* Field::mutable_json_name() {
  1382. // @@protoc_insertion_point(field_mutable:google.protobuf.Field.json_name)
  1383. return json_name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1384. }
  1385. inline ::std::string* Field::release_json_name() {
  1386. // @@protoc_insertion_point(field_release:google.protobuf.Field.json_name)
  1387. return json_name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1388. }
  1389. inline ::std::string* Field::unsafe_arena_release_json_name() {
  1390. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.json_name)
  1391. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1392. return json_name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1393. GetArenaNoVirtual());
  1394. }
  1395. inline void Field::set_allocated_json_name(::std::string* json_name) {
  1396. if (json_name != NULL) {
  1397. } else {
  1398. }
  1399. json_name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), json_name,
  1400. GetArenaNoVirtual());
  1401. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.json_name)
  1402. }
  1403. inline void Field::unsafe_arena_set_allocated_json_name(
  1404. ::std::string* json_name) {
  1405. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1406. if (json_name != NULL) {
  1407. } else {
  1408. }
  1409. json_name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1410. json_name, GetArenaNoVirtual());
  1411. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Field.json_name)
  1412. }
  1413. // string default_value = 11;
  1414. inline void Field::clear_default_value() {
  1415. default_value_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1416. }
  1417. inline const ::std::string& Field::default_value() const {
  1418. // @@protoc_insertion_point(field_get:google.protobuf.Field.default_value)
  1419. return default_value_.Get();
  1420. }
  1421. inline void Field::set_default_value(const ::std::string& value) {
  1422. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1423. // @@protoc_insertion_point(field_set:google.protobuf.Field.default_value)
  1424. }
  1425. inline void Field::set_default_value(const char* value) {
  1426. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1427. GetArenaNoVirtual());
  1428. // @@protoc_insertion_point(field_set_char:google.protobuf.Field.default_value)
  1429. }
  1430. inline void Field::set_default_value(const char* value,
  1431. size_t size) {
  1432. default_value_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1433. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1434. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Field.default_value)
  1435. }
  1436. inline ::std::string* Field::mutable_default_value() {
  1437. // @@protoc_insertion_point(field_mutable:google.protobuf.Field.default_value)
  1438. return default_value_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1439. }
  1440. inline ::std::string* Field::release_default_value() {
  1441. // @@protoc_insertion_point(field_release:google.protobuf.Field.default_value)
  1442. return default_value_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1443. }
  1444. inline ::std::string* Field::unsafe_arena_release_default_value() {
  1445. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Field.default_value)
  1446. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1447. return default_value_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1448. GetArenaNoVirtual());
  1449. }
  1450. inline void Field::set_allocated_default_value(::std::string* default_value) {
  1451. if (default_value != NULL) {
  1452. } else {
  1453. }
  1454. default_value_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), default_value,
  1455. GetArenaNoVirtual());
  1456. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Field.default_value)
  1457. }
  1458. inline void Field::unsafe_arena_set_allocated_default_value(
  1459. ::std::string* default_value) {
  1460. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1461. if (default_value != NULL) {
  1462. } else {
  1463. }
  1464. default_value_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1465. default_value, GetArenaNoVirtual());
  1466. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Field.default_value)
  1467. }
  1468. // -------------------------------------------------------------------
  1469. // Enum
  1470. // string name = 1;
  1471. inline void Enum::clear_name() {
  1472. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1473. }
  1474. inline const ::std::string& Enum::name() const {
  1475. // @@protoc_insertion_point(field_get:google.protobuf.Enum.name)
  1476. return name_.Get();
  1477. }
  1478. inline void Enum::set_name(const ::std::string& value) {
  1479. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1480. // @@protoc_insertion_point(field_set:google.protobuf.Enum.name)
  1481. }
  1482. inline void Enum::set_name(const char* value) {
  1483. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1484. GetArenaNoVirtual());
  1485. // @@protoc_insertion_point(field_set_char:google.protobuf.Enum.name)
  1486. }
  1487. inline void Enum::set_name(const char* value,
  1488. size_t size) {
  1489. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1490. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1491. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Enum.name)
  1492. }
  1493. inline ::std::string* Enum::mutable_name() {
  1494. // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.name)
  1495. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1496. }
  1497. inline ::std::string* Enum::release_name() {
  1498. // @@protoc_insertion_point(field_release:google.protobuf.Enum.name)
  1499. return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1500. }
  1501. inline ::std::string* Enum::unsafe_arena_release_name() {
  1502. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Enum.name)
  1503. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1504. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1505. GetArenaNoVirtual());
  1506. }
  1507. inline void Enum::set_allocated_name(::std::string* name) {
  1508. if (name != NULL) {
  1509. } else {
  1510. }
  1511. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  1512. GetArenaNoVirtual());
  1513. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.name)
  1514. }
  1515. inline void Enum::unsafe_arena_set_allocated_name(
  1516. ::std::string* name) {
  1517. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1518. if (name != NULL) {
  1519. } else {
  1520. }
  1521. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1522. name, GetArenaNoVirtual());
  1523. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Enum.name)
  1524. }
  1525. // repeated .google.protobuf.EnumValue enumvalue = 2;
  1526. inline int Enum::enumvalue_size() const {
  1527. return enumvalue_.size();
  1528. }
  1529. inline void Enum::clear_enumvalue() {
  1530. enumvalue_.Clear();
  1531. }
  1532. inline const ::google::protobuf::EnumValue& Enum::enumvalue(int index) const {
  1533. // @@protoc_insertion_point(field_get:google.protobuf.Enum.enumvalue)
  1534. return enumvalue_.Get(index);
  1535. }
  1536. inline ::google::protobuf::EnumValue* Enum::mutable_enumvalue(int index) {
  1537. // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.enumvalue)
  1538. return enumvalue_.Mutable(index);
  1539. }
  1540. inline ::google::protobuf::EnumValue* Enum::add_enumvalue() {
  1541. // @@protoc_insertion_point(field_add:google.protobuf.Enum.enumvalue)
  1542. return enumvalue_.Add();
  1543. }
  1544. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >*
  1545. Enum::mutable_enumvalue() {
  1546. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.enumvalue)
  1547. return &enumvalue_;
  1548. }
  1549. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::EnumValue >&
  1550. Enum::enumvalue() const {
  1551. // @@protoc_insertion_point(field_list:google.protobuf.Enum.enumvalue)
  1552. return enumvalue_;
  1553. }
  1554. // repeated .google.protobuf.Option options = 3;
  1555. inline int Enum::options_size() const {
  1556. return options_.size();
  1557. }
  1558. inline void Enum::clear_options() {
  1559. options_.Clear();
  1560. }
  1561. inline const ::google::protobuf::Option& Enum::options(int index) const {
  1562. // @@protoc_insertion_point(field_get:google.protobuf.Enum.options)
  1563. return options_.Get(index);
  1564. }
  1565. inline ::google::protobuf::Option* Enum::mutable_options(int index) {
  1566. // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.options)
  1567. return options_.Mutable(index);
  1568. }
  1569. inline ::google::protobuf::Option* Enum::add_options() {
  1570. // @@protoc_insertion_point(field_add:google.protobuf.Enum.options)
  1571. return options_.Add();
  1572. }
  1573. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  1574. Enum::mutable_options() {
  1575. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Enum.options)
  1576. return &options_;
  1577. }
  1578. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  1579. Enum::options() const {
  1580. // @@protoc_insertion_point(field_list:google.protobuf.Enum.options)
  1581. return options_;
  1582. }
  1583. // .google.protobuf.SourceContext source_context = 4;
  1584. inline bool Enum::has_source_context() const {
  1585. return this != internal_default_instance() && source_context_ != NULL;
  1586. }
  1587. inline void Enum::clear_source_context() {
  1588. if (GetArenaNoVirtual() == NULL && source_context_ != NULL) delete source_context_;
  1589. source_context_ = NULL;
  1590. }
  1591. inline const ::google::protobuf::SourceContext& Enum::source_context() const {
  1592. // @@protoc_insertion_point(field_get:google.protobuf.Enum.source_context)
  1593. return source_context_ != NULL ? *source_context_
  1594. : *::google::protobuf::SourceContext::internal_default_instance();
  1595. }
  1596. inline ::google::protobuf::SourceContext* Enum::mutable_source_context() {
  1597. if (source_context_ == NULL) {
  1598. _slow_mutable_source_context();
  1599. }
  1600. // @@protoc_insertion_point(field_mutable:google.protobuf.Enum.source_context)
  1601. return source_context_;
  1602. }
  1603. inline ::google::protobuf::SourceContext* Enum::release_source_context() {
  1604. // @@protoc_insertion_point(field_release:google.protobuf.Enum.source_context)
  1605. if (GetArenaNoVirtual() != NULL) {
  1606. return _slow_release_source_context();
  1607. } else {
  1608. ::google::protobuf::SourceContext* temp = source_context_;
  1609. source_context_ = NULL;
  1610. return temp;
  1611. }
  1612. }
  1613. inline void Enum::set_allocated_source_context(::google::protobuf::SourceContext* source_context) {
  1614. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1615. if (message_arena == NULL) {
  1616. delete source_context_;
  1617. }
  1618. if (source_context != NULL) {
  1619. if (message_arena != NULL) {
  1620. message_arena->Own(source_context);
  1621. }
  1622. }
  1623. source_context_ = source_context;
  1624. if (source_context) {
  1625. } else {
  1626. }
  1627. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Enum.source_context)
  1628. }
  1629. // .google.protobuf.Syntax syntax = 5;
  1630. inline void Enum::clear_syntax() {
  1631. syntax_ = 0;
  1632. }
  1633. inline ::google::protobuf::Syntax Enum::syntax() const {
  1634. // @@protoc_insertion_point(field_get:google.protobuf.Enum.syntax)
  1635. return static_cast< ::google::protobuf::Syntax >(syntax_);
  1636. }
  1637. inline void Enum::set_syntax(::google::protobuf::Syntax value) {
  1638. syntax_ = value;
  1639. // @@protoc_insertion_point(field_set:google.protobuf.Enum.syntax)
  1640. }
  1641. // -------------------------------------------------------------------
  1642. // EnumValue
  1643. // string name = 1;
  1644. inline void EnumValue::clear_name() {
  1645. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1646. }
  1647. inline const ::std::string& EnumValue::name() const {
  1648. // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.name)
  1649. return name_.Get();
  1650. }
  1651. inline void EnumValue::set_name(const ::std::string& value) {
  1652. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1653. // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.name)
  1654. }
  1655. inline void EnumValue::set_name(const char* value) {
  1656. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1657. GetArenaNoVirtual());
  1658. // @@protoc_insertion_point(field_set_char:google.protobuf.EnumValue.name)
  1659. }
  1660. inline void EnumValue::set_name(const char* value,
  1661. size_t size) {
  1662. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1663. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1664. // @@protoc_insertion_point(field_set_pointer:google.protobuf.EnumValue.name)
  1665. }
  1666. inline ::std::string* EnumValue::mutable_name() {
  1667. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.name)
  1668. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1669. }
  1670. inline ::std::string* EnumValue::release_name() {
  1671. // @@protoc_insertion_point(field_release:google.protobuf.EnumValue.name)
  1672. return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1673. }
  1674. inline ::std::string* EnumValue::unsafe_arena_release_name() {
  1675. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.EnumValue.name)
  1676. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1677. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1678. GetArenaNoVirtual());
  1679. }
  1680. inline void EnumValue::set_allocated_name(::std::string* name) {
  1681. if (name != NULL) {
  1682. } else {
  1683. }
  1684. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  1685. GetArenaNoVirtual());
  1686. // @@protoc_insertion_point(field_set_allocated:google.protobuf.EnumValue.name)
  1687. }
  1688. inline void EnumValue::unsafe_arena_set_allocated_name(
  1689. ::std::string* name) {
  1690. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1691. if (name != NULL) {
  1692. } else {
  1693. }
  1694. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1695. name, GetArenaNoVirtual());
  1696. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.EnumValue.name)
  1697. }
  1698. // int32 number = 2;
  1699. inline void EnumValue::clear_number() {
  1700. number_ = 0;
  1701. }
  1702. inline ::google::protobuf::int32 EnumValue::number() const {
  1703. // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.number)
  1704. return number_;
  1705. }
  1706. inline void EnumValue::set_number(::google::protobuf::int32 value) {
  1707. number_ = value;
  1708. // @@protoc_insertion_point(field_set:google.protobuf.EnumValue.number)
  1709. }
  1710. // repeated .google.protobuf.Option options = 3;
  1711. inline int EnumValue::options_size() const {
  1712. return options_.size();
  1713. }
  1714. inline void EnumValue::clear_options() {
  1715. options_.Clear();
  1716. }
  1717. inline const ::google::protobuf::Option& EnumValue::options(int index) const {
  1718. // @@protoc_insertion_point(field_get:google.protobuf.EnumValue.options)
  1719. return options_.Get(index);
  1720. }
  1721. inline ::google::protobuf::Option* EnumValue::mutable_options(int index) {
  1722. // @@protoc_insertion_point(field_mutable:google.protobuf.EnumValue.options)
  1723. return options_.Mutable(index);
  1724. }
  1725. inline ::google::protobuf::Option* EnumValue::add_options() {
  1726. // @@protoc_insertion_point(field_add:google.protobuf.EnumValue.options)
  1727. return options_.Add();
  1728. }
  1729. inline ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >*
  1730. EnumValue::mutable_options() {
  1731. // @@protoc_insertion_point(field_mutable_list:google.protobuf.EnumValue.options)
  1732. return &options_;
  1733. }
  1734. inline const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Option >&
  1735. EnumValue::options() const {
  1736. // @@protoc_insertion_point(field_list:google.protobuf.EnumValue.options)
  1737. return options_;
  1738. }
  1739. // -------------------------------------------------------------------
  1740. // Option
  1741. // string name = 1;
  1742. inline void Option::clear_name() {
  1743. name_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1744. }
  1745. inline const ::std::string& Option::name() const {
  1746. // @@protoc_insertion_point(field_get:google.protobuf.Option.name)
  1747. return name_.Get();
  1748. }
  1749. inline void Option::set_name(const ::std::string& value) {
  1750. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1751. // @@protoc_insertion_point(field_set:google.protobuf.Option.name)
  1752. }
  1753. inline void Option::set_name(const char* value) {
  1754. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1755. GetArenaNoVirtual());
  1756. // @@protoc_insertion_point(field_set_char:google.protobuf.Option.name)
  1757. }
  1758. inline void Option::set_name(const char* value,
  1759. size_t size) {
  1760. name_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1761. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1762. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Option.name)
  1763. }
  1764. inline ::std::string* Option::mutable_name() {
  1765. // @@protoc_insertion_point(field_mutable:google.protobuf.Option.name)
  1766. return name_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1767. }
  1768. inline ::std::string* Option::release_name() {
  1769. // @@protoc_insertion_point(field_release:google.protobuf.Option.name)
  1770. return name_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1771. }
  1772. inline ::std::string* Option::unsafe_arena_release_name() {
  1773. // @@protoc_insertion_point(field_unsafe_arena_release:google.protobuf.Option.name)
  1774. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1775. return name_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1776. GetArenaNoVirtual());
  1777. }
  1778. inline void Option::set_allocated_name(::std::string* name) {
  1779. if (name != NULL) {
  1780. } else {
  1781. }
  1782. name_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), name,
  1783. GetArenaNoVirtual());
  1784. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.name)
  1785. }
  1786. inline void Option::unsafe_arena_set_allocated_name(
  1787. ::std::string* name) {
  1788. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1789. if (name != NULL) {
  1790. } else {
  1791. }
  1792. name_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1793. name, GetArenaNoVirtual());
  1794. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Option.name)
  1795. }
  1796. // .google.protobuf.Any value = 2;
  1797. inline bool Option::has_value() const {
  1798. return this != internal_default_instance() && value_ != NULL;
  1799. }
  1800. inline void Option::clear_value() {
  1801. if (GetArenaNoVirtual() == NULL && value_ != NULL) delete value_;
  1802. value_ = NULL;
  1803. }
  1804. inline const ::google::protobuf::Any& Option::value() const {
  1805. // @@protoc_insertion_point(field_get:google.protobuf.Option.value)
  1806. return value_ != NULL ? *value_
  1807. : *::google::protobuf::Any::internal_default_instance();
  1808. }
  1809. inline ::google::protobuf::Any* Option::mutable_value() {
  1810. if (value_ == NULL) {
  1811. _slow_mutable_value();
  1812. }
  1813. // @@protoc_insertion_point(field_mutable:google.protobuf.Option.value)
  1814. return value_;
  1815. }
  1816. inline ::google::protobuf::Any* Option::release_value() {
  1817. // @@protoc_insertion_point(field_release:google.protobuf.Option.value)
  1818. if (GetArenaNoVirtual() != NULL) {
  1819. return _slow_release_value();
  1820. } else {
  1821. ::google::protobuf::Any* temp = value_;
  1822. value_ = NULL;
  1823. return temp;
  1824. }
  1825. }
  1826. inline void Option::set_allocated_value(::google::protobuf::Any* value) {
  1827. ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
  1828. if (message_arena == NULL) {
  1829. delete value_;
  1830. }
  1831. if (value != NULL) {
  1832. if (message_arena != NULL) {
  1833. message_arena->Own(value);
  1834. }
  1835. }
  1836. value_ = value;
  1837. if (value) {
  1838. } else {
  1839. }
  1840. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Option.value)
  1841. }
  1842. #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
  1843. // -------------------------------------------------------------------
  1844. // -------------------------------------------------------------------
  1845. // -------------------------------------------------------------------
  1846. // -------------------------------------------------------------------
  1847. // @@protoc_insertion_point(namespace_scope)
  1848. } // namespace protobuf
  1849. } // namespace google
  1850. #ifndef SWIG
  1851. namespace google {
  1852. namespace protobuf {
  1853. template <> struct is_proto_enum< ::google::protobuf::Field_Kind> : ::google::protobuf::internal::true_type {};
  1854. template <>
  1855. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::Field_Kind>() {
  1856. return ::google::protobuf::Field_Kind_descriptor();
  1857. }
  1858. template <> struct is_proto_enum< ::google::protobuf::Field_Cardinality> : ::google::protobuf::internal::true_type {};
  1859. template <>
  1860. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::Field_Cardinality>() {
  1861. return ::google::protobuf::Field_Cardinality_descriptor();
  1862. }
  1863. template <> struct is_proto_enum< ::google::protobuf::Syntax> : ::google::protobuf::internal::true_type {};
  1864. template <>
  1865. inline const EnumDescriptor* GetEnumDescriptor< ::google::protobuf::Syntax>() {
  1866. return ::google::protobuf::Syntax_descriptor();
  1867. }
  1868. } // namespace protobuf
  1869. } // namespace google
  1870. #endif // SWIG
  1871. // @@protoc_insertion_point(global_scope)
  1872. #endif // PROTOBUF_google_2fprotobuf_2ftype_2eproto__INCLUDED