api.pb.h 55 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505
  1. #if !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)
  2. // Generated by the protocol buffer compiler. DO NOT EDIT!
  3. // source: google/protobuf/api.proto
  4. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto
  5. #define GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto
  6. #include <limits>
  7. #include <string>
  8. #include <google/protobuf/port_def.inc>
  9. #if PROTOBUF_VERSION < 3013000
  10. #error This file was generated by a newer version of protoc which is
  11. #error incompatible with your Protocol Buffer headers. Please update
  12. #error your headers.
  13. #endif
  14. #if 3013000 < PROTOBUF_MIN_PROTOC_VERSION
  15. #error This file was generated by an older version of protoc which is
  16. #error incompatible with your Protocol Buffer headers. Please
  17. #error regenerate this file with a newer version of protoc.
  18. #endif
  19. #include <google/protobuf/port_undef.inc>
  20. #include <google/protobuf/io/coded_stream.h>
  21. #include <google/protobuf/arena.h>
  22. #include <google/protobuf/arenastring.h>
  23. #include <google/protobuf/generated_message_table_driven.h>
  24. #include <google/protobuf/generated_message_util.h>
  25. #include <google/protobuf/inlined_string_field.h>
  26. #include <google/protobuf/metadata_lite.h>
  27. #include <google/protobuf/generated_message_reflection.h>
  28. #include <google/protobuf/message.h>
  29. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  30. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  31. #include <google/protobuf/unknown_field_set.h>
  32. #include <google/protobuf/source_context.pb.h>
  33. #include <google/protobuf/type.pb.h>
  34. // @@protoc_insertion_point(includes)
  35. #include <google/protobuf/port_def.inc>
  36. #define PROTOBUF_INTERNAL_EXPORT_google_2fprotobuf_2fapi_2eproto PROTOBUF_EXPORT
  37. PROTOBUF_NAMESPACE_OPEN
  38. namespace internal {
  39. class AnyMetadata;
  40. } // namespace internal
  41. PROTOBUF_NAMESPACE_CLOSE
  42. // Internal implementation detail -- do not use these members.
  43. struct PROTOBUF_EXPORT TableStruct_google_2fprotobuf_2fapi_2eproto {
  44. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  45. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  46. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxiliaryParseTableField aux[]
  47. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  48. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
  49. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  50. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  51. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  52. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  53. };
  54. extern PROTOBUF_EXPORT const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fprotobuf_2fapi_2eproto;
  55. PROTOBUF_NAMESPACE_OPEN
  56. class Api;
  57. class ApiDefaultTypeInternal;
  58. PROTOBUF_EXPORT extern ApiDefaultTypeInternal _Api_default_instance_;
  59. class Method;
  60. class MethodDefaultTypeInternal;
  61. PROTOBUF_EXPORT extern MethodDefaultTypeInternal _Method_default_instance_;
  62. class Mixin;
  63. class MixinDefaultTypeInternal;
  64. PROTOBUF_EXPORT extern MixinDefaultTypeInternal _Mixin_default_instance_;
  65. PROTOBUF_NAMESPACE_CLOSE
  66. PROTOBUF_NAMESPACE_OPEN
  67. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Api* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Api>(Arena*);
  68. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Method* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Method>(Arena*);
  69. template<> PROTOBUF_EXPORT PROTOBUF_NAMESPACE_ID::Mixin* Arena::CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Mixin>(Arena*);
  70. PROTOBUF_NAMESPACE_CLOSE
  71. PROTOBUF_NAMESPACE_OPEN
  72. // ===================================================================
  73. class PROTOBUF_EXPORT Api PROTOBUF_FINAL :
  74. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Api) */ {
  75. public:
  76. inline Api() : Api(nullptr) {}
  77. virtual ~Api();
  78. Api(const Api& from);
  79. Api(Api&& from) noexcept
  80. : Api() {
  81. *this = ::std::move(from);
  82. }
  83. inline Api& operator=(const Api& from) {
  84. CopyFrom(from);
  85. return *this;
  86. }
  87. inline Api& operator=(Api&& from) noexcept {
  88. if (GetArena() == from.GetArena()) {
  89. if (this != &from) InternalSwap(&from);
  90. } else {
  91. CopyFrom(from);
  92. }
  93. return *this;
  94. }
  95. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  96. return GetDescriptor();
  97. }
  98. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  99. return GetMetadataStatic().descriptor;
  100. }
  101. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  102. return GetMetadataStatic().reflection;
  103. }
  104. static const Api& default_instance();
  105. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  106. static inline const Api* internal_default_instance() {
  107. return reinterpret_cast<const Api*>(
  108. &_Api_default_instance_);
  109. }
  110. static constexpr int kIndexInFileMessages =
  111. 0;
  112. friend void swap(Api& a, Api& b) {
  113. a.Swap(&b);
  114. }
  115. inline void Swap(Api* other) {
  116. if (other == this) return;
  117. if (GetArena() == other->GetArena()) {
  118. InternalSwap(other);
  119. } else {
  120. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  121. }
  122. }
  123. void UnsafeArenaSwap(Api* other) {
  124. if (other == this) return;
  125. GOOGLE_DCHECK(GetArena() == other->GetArena());
  126. InternalSwap(other);
  127. }
  128. // implements Message ----------------------------------------------
  129. inline Api* New() const final {
  130. return CreateMaybeMessage<Api>(nullptr);
  131. }
  132. Api* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  133. return CreateMaybeMessage<Api>(arena);
  134. }
  135. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  136. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  137. void CopyFrom(const Api& from);
  138. void MergeFrom(const Api& from);
  139. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  140. bool IsInitialized() const final;
  141. size_t ByteSizeLong() const final;
  142. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  143. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  144. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  145. int GetCachedSize() const final { return _cached_size_.Get(); }
  146. private:
  147. inline void SharedCtor();
  148. inline void SharedDtor();
  149. void SetCachedSize(int size) const final;
  150. void InternalSwap(Api* other);
  151. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  152. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  153. return "google.protobuf.Api";
  154. }
  155. protected:
  156. explicit Api(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  157. private:
  158. static void ArenaDtor(void* object);
  159. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  160. public:
  161. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  162. private:
  163. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  164. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fapi_2eproto);
  165. return ::descriptor_table_google_2fprotobuf_2fapi_2eproto.file_level_metadata[kIndexInFileMessages];
  166. }
  167. public:
  168. // nested types ----------------------------------------------------
  169. // accessors -------------------------------------------------------
  170. enum : int {
  171. kMethodsFieldNumber = 2,
  172. kOptionsFieldNumber = 3,
  173. kMixinsFieldNumber = 6,
  174. kNameFieldNumber = 1,
  175. kVersionFieldNumber = 4,
  176. kSourceContextFieldNumber = 5,
  177. kSyntaxFieldNumber = 7,
  178. };
  179. // repeated .google.protobuf.Method methods = 2;
  180. int methods_size() const;
  181. private:
  182. int _internal_methods_size() const;
  183. public:
  184. void clear_methods();
  185. PROTOBUF_NAMESPACE_ID::Method* mutable_methods(int index);
  186. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Method >*
  187. mutable_methods();
  188. private:
  189. const PROTOBUF_NAMESPACE_ID::Method& _internal_methods(int index) const;
  190. PROTOBUF_NAMESPACE_ID::Method* _internal_add_methods();
  191. public:
  192. const PROTOBUF_NAMESPACE_ID::Method& methods(int index) const;
  193. PROTOBUF_NAMESPACE_ID::Method* add_methods();
  194. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Method >&
  195. methods() const;
  196. // repeated .google.protobuf.Option options = 3;
  197. int options_size() const;
  198. private:
  199. int _internal_options_size() const;
  200. public:
  201. void clear_options();
  202. PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index);
  203. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
  204. mutable_options();
  205. private:
  206. const PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const;
  207. PROTOBUF_NAMESPACE_ID::Option* _internal_add_options();
  208. public:
  209. const PROTOBUF_NAMESPACE_ID::Option& options(int index) const;
  210. PROTOBUF_NAMESPACE_ID::Option* add_options();
  211. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
  212. options() const;
  213. // repeated .google.protobuf.Mixin mixins = 6;
  214. int mixins_size() const;
  215. private:
  216. int _internal_mixins_size() const;
  217. public:
  218. void clear_mixins();
  219. PROTOBUF_NAMESPACE_ID::Mixin* mutable_mixins(int index);
  220. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Mixin >*
  221. mutable_mixins();
  222. private:
  223. const PROTOBUF_NAMESPACE_ID::Mixin& _internal_mixins(int index) const;
  224. PROTOBUF_NAMESPACE_ID::Mixin* _internal_add_mixins();
  225. public:
  226. const PROTOBUF_NAMESPACE_ID::Mixin& mixins(int index) const;
  227. PROTOBUF_NAMESPACE_ID::Mixin* add_mixins();
  228. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Mixin >&
  229. mixins() const;
  230. // string name = 1;
  231. void clear_name();
  232. const std::string& name() const;
  233. void set_name(const std::string& value);
  234. void set_name(std::string&& value);
  235. void set_name(const char* value);
  236. void set_name(const char* value, size_t size);
  237. std::string* mutable_name();
  238. std::string* release_name();
  239. void set_allocated_name(std::string* name);
  240. private:
  241. const std::string& _internal_name() const;
  242. void _internal_set_name(const std::string& value);
  243. std::string* _internal_mutable_name();
  244. public:
  245. // string version = 4;
  246. void clear_version();
  247. const std::string& version() const;
  248. void set_version(const std::string& value);
  249. void set_version(std::string&& value);
  250. void set_version(const char* value);
  251. void set_version(const char* value, size_t size);
  252. std::string* mutable_version();
  253. std::string* release_version();
  254. void set_allocated_version(std::string* version);
  255. private:
  256. const std::string& _internal_version() const;
  257. void _internal_set_version(const std::string& value);
  258. std::string* _internal_mutable_version();
  259. public:
  260. // .google.protobuf.SourceContext source_context = 5;
  261. bool has_source_context() const;
  262. private:
  263. bool _internal_has_source_context() const;
  264. public:
  265. void clear_source_context();
  266. const PROTOBUF_NAMESPACE_ID::SourceContext& source_context() const;
  267. PROTOBUF_NAMESPACE_ID::SourceContext* release_source_context();
  268. PROTOBUF_NAMESPACE_ID::SourceContext* mutable_source_context();
  269. void set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext* source_context);
  270. private:
  271. const PROTOBUF_NAMESPACE_ID::SourceContext& _internal_source_context() const;
  272. PROTOBUF_NAMESPACE_ID::SourceContext* _internal_mutable_source_context();
  273. public:
  274. void unsafe_arena_set_allocated_source_context(
  275. PROTOBUF_NAMESPACE_ID::SourceContext* source_context);
  276. PROTOBUF_NAMESPACE_ID::SourceContext* unsafe_arena_release_source_context();
  277. // .google.protobuf.Syntax syntax = 7;
  278. void clear_syntax();
  279. PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
  280. void set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value);
  281. private:
  282. PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
  283. void _internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value);
  284. public:
  285. // @@protoc_insertion_point(class_scope:google.protobuf.Api)
  286. private:
  287. class _Internal;
  288. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  289. typedef void InternalArenaConstructable_;
  290. typedef void DestructorSkippable_;
  291. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Method > methods_;
  292. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option > options_;
  293. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Mixin > mixins_;
  294. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  295. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr version_;
  296. PROTOBUF_NAMESPACE_ID::SourceContext* source_context_;
  297. int syntax_;
  298. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  299. friend struct ::TableStruct_google_2fprotobuf_2fapi_2eproto;
  300. };
  301. // -------------------------------------------------------------------
  302. class PROTOBUF_EXPORT Method PROTOBUF_FINAL :
  303. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Method) */ {
  304. public:
  305. inline Method() : Method(nullptr) {}
  306. virtual ~Method();
  307. Method(const Method& from);
  308. Method(Method&& from) noexcept
  309. : Method() {
  310. *this = ::std::move(from);
  311. }
  312. inline Method& operator=(const Method& from) {
  313. CopyFrom(from);
  314. return *this;
  315. }
  316. inline Method& operator=(Method&& from) noexcept {
  317. if (GetArena() == from.GetArena()) {
  318. if (this != &from) InternalSwap(&from);
  319. } else {
  320. CopyFrom(from);
  321. }
  322. return *this;
  323. }
  324. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  325. return GetDescriptor();
  326. }
  327. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  328. return GetMetadataStatic().descriptor;
  329. }
  330. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  331. return GetMetadataStatic().reflection;
  332. }
  333. static const Method& default_instance();
  334. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  335. static inline const Method* internal_default_instance() {
  336. return reinterpret_cast<const Method*>(
  337. &_Method_default_instance_);
  338. }
  339. static constexpr int kIndexInFileMessages =
  340. 1;
  341. friend void swap(Method& a, Method& b) {
  342. a.Swap(&b);
  343. }
  344. inline void Swap(Method* other) {
  345. if (other == this) return;
  346. if (GetArena() == other->GetArena()) {
  347. InternalSwap(other);
  348. } else {
  349. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  350. }
  351. }
  352. void UnsafeArenaSwap(Method* other) {
  353. if (other == this) return;
  354. GOOGLE_DCHECK(GetArena() == other->GetArena());
  355. InternalSwap(other);
  356. }
  357. // implements Message ----------------------------------------------
  358. inline Method* New() const final {
  359. return CreateMaybeMessage<Method>(nullptr);
  360. }
  361. Method* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  362. return CreateMaybeMessage<Method>(arena);
  363. }
  364. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  365. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  366. void CopyFrom(const Method& from);
  367. void MergeFrom(const Method& from);
  368. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  369. bool IsInitialized() const final;
  370. size_t ByteSizeLong() const final;
  371. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  372. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  373. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  374. int GetCachedSize() const final { return _cached_size_.Get(); }
  375. private:
  376. inline void SharedCtor();
  377. inline void SharedDtor();
  378. void SetCachedSize(int size) const final;
  379. void InternalSwap(Method* other);
  380. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  381. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  382. return "google.protobuf.Method";
  383. }
  384. protected:
  385. explicit Method(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  386. private:
  387. static void ArenaDtor(void* object);
  388. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  389. public:
  390. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  391. private:
  392. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  393. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fapi_2eproto);
  394. return ::descriptor_table_google_2fprotobuf_2fapi_2eproto.file_level_metadata[kIndexInFileMessages];
  395. }
  396. public:
  397. // nested types ----------------------------------------------------
  398. // accessors -------------------------------------------------------
  399. enum : int {
  400. kOptionsFieldNumber = 6,
  401. kNameFieldNumber = 1,
  402. kRequestTypeUrlFieldNumber = 2,
  403. kResponseTypeUrlFieldNumber = 4,
  404. kRequestStreamingFieldNumber = 3,
  405. kResponseStreamingFieldNumber = 5,
  406. kSyntaxFieldNumber = 7,
  407. };
  408. // repeated .google.protobuf.Option options = 6;
  409. int options_size() const;
  410. private:
  411. int _internal_options_size() const;
  412. public:
  413. void clear_options();
  414. PROTOBUF_NAMESPACE_ID::Option* mutable_options(int index);
  415. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
  416. mutable_options();
  417. private:
  418. const PROTOBUF_NAMESPACE_ID::Option& _internal_options(int index) const;
  419. PROTOBUF_NAMESPACE_ID::Option* _internal_add_options();
  420. public:
  421. const PROTOBUF_NAMESPACE_ID::Option& options(int index) const;
  422. PROTOBUF_NAMESPACE_ID::Option* add_options();
  423. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
  424. options() const;
  425. // string name = 1;
  426. void clear_name();
  427. const std::string& name() const;
  428. void set_name(const std::string& value);
  429. void set_name(std::string&& value);
  430. void set_name(const char* value);
  431. void set_name(const char* value, size_t size);
  432. std::string* mutable_name();
  433. std::string* release_name();
  434. void set_allocated_name(std::string* name);
  435. private:
  436. const std::string& _internal_name() const;
  437. void _internal_set_name(const std::string& value);
  438. std::string* _internal_mutable_name();
  439. public:
  440. // string request_type_url = 2;
  441. void clear_request_type_url();
  442. const std::string& request_type_url() const;
  443. void set_request_type_url(const std::string& value);
  444. void set_request_type_url(std::string&& value);
  445. void set_request_type_url(const char* value);
  446. void set_request_type_url(const char* value, size_t size);
  447. std::string* mutable_request_type_url();
  448. std::string* release_request_type_url();
  449. void set_allocated_request_type_url(std::string* request_type_url);
  450. private:
  451. const std::string& _internal_request_type_url() const;
  452. void _internal_set_request_type_url(const std::string& value);
  453. std::string* _internal_mutable_request_type_url();
  454. public:
  455. // string response_type_url = 4;
  456. void clear_response_type_url();
  457. const std::string& response_type_url() const;
  458. void set_response_type_url(const std::string& value);
  459. void set_response_type_url(std::string&& value);
  460. void set_response_type_url(const char* value);
  461. void set_response_type_url(const char* value, size_t size);
  462. std::string* mutable_response_type_url();
  463. std::string* release_response_type_url();
  464. void set_allocated_response_type_url(std::string* response_type_url);
  465. private:
  466. const std::string& _internal_response_type_url() const;
  467. void _internal_set_response_type_url(const std::string& value);
  468. std::string* _internal_mutable_response_type_url();
  469. public:
  470. // bool request_streaming = 3;
  471. void clear_request_streaming();
  472. bool request_streaming() const;
  473. void set_request_streaming(bool value);
  474. private:
  475. bool _internal_request_streaming() const;
  476. void _internal_set_request_streaming(bool value);
  477. public:
  478. // bool response_streaming = 5;
  479. void clear_response_streaming();
  480. bool response_streaming() const;
  481. void set_response_streaming(bool value);
  482. private:
  483. bool _internal_response_streaming() const;
  484. void _internal_set_response_streaming(bool value);
  485. public:
  486. // .google.protobuf.Syntax syntax = 7;
  487. void clear_syntax();
  488. PROTOBUF_NAMESPACE_ID::Syntax syntax() const;
  489. void set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value);
  490. private:
  491. PROTOBUF_NAMESPACE_ID::Syntax _internal_syntax() const;
  492. void _internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value);
  493. public:
  494. // @@protoc_insertion_point(class_scope:google.protobuf.Method)
  495. private:
  496. class _Internal;
  497. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  498. typedef void InternalArenaConstructable_;
  499. typedef void DestructorSkippable_;
  500. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option > options_;
  501. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  502. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr request_type_url_;
  503. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr response_type_url_;
  504. bool request_streaming_;
  505. bool response_streaming_;
  506. int syntax_;
  507. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  508. friend struct ::TableStruct_google_2fprotobuf_2fapi_2eproto;
  509. };
  510. // -------------------------------------------------------------------
  511. class PROTOBUF_EXPORT Mixin PROTOBUF_FINAL :
  512. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.protobuf.Mixin) */ {
  513. public:
  514. inline Mixin() : Mixin(nullptr) {}
  515. virtual ~Mixin();
  516. Mixin(const Mixin& from);
  517. Mixin(Mixin&& from) noexcept
  518. : Mixin() {
  519. *this = ::std::move(from);
  520. }
  521. inline Mixin& operator=(const Mixin& from) {
  522. CopyFrom(from);
  523. return *this;
  524. }
  525. inline Mixin& operator=(Mixin&& from) noexcept {
  526. if (GetArena() == from.GetArena()) {
  527. if (this != &from) InternalSwap(&from);
  528. } else {
  529. CopyFrom(from);
  530. }
  531. return *this;
  532. }
  533. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  534. return GetDescriptor();
  535. }
  536. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  537. return GetMetadataStatic().descriptor;
  538. }
  539. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  540. return GetMetadataStatic().reflection;
  541. }
  542. static const Mixin& default_instance();
  543. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  544. static inline const Mixin* internal_default_instance() {
  545. return reinterpret_cast<const Mixin*>(
  546. &_Mixin_default_instance_);
  547. }
  548. static constexpr int kIndexInFileMessages =
  549. 2;
  550. friend void swap(Mixin& a, Mixin& b) {
  551. a.Swap(&b);
  552. }
  553. inline void Swap(Mixin* other) {
  554. if (other == this) return;
  555. if (GetArena() == other->GetArena()) {
  556. InternalSwap(other);
  557. } else {
  558. ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
  559. }
  560. }
  561. void UnsafeArenaSwap(Mixin* other) {
  562. if (other == this) return;
  563. GOOGLE_DCHECK(GetArena() == other->GetArena());
  564. InternalSwap(other);
  565. }
  566. // implements Message ----------------------------------------------
  567. inline Mixin* New() const final {
  568. return CreateMaybeMessage<Mixin>(nullptr);
  569. }
  570. Mixin* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  571. return CreateMaybeMessage<Mixin>(arena);
  572. }
  573. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  574. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  575. void CopyFrom(const Mixin& from);
  576. void MergeFrom(const Mixin& from);
  577. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  578. bool IsInitialized() const final;
  579. size_t ByteSizeLong() const final;
  580. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  581. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  582. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  583. int GetCachedSize() const final { return _cached_size_.Get(); }
  584. private:
  585. inline void SharedCtor();
  586. inline void SharedDtor();
  587. void SetCachedSize(int size) const final;
  588. void InternalSwap(Mixin* other);
  589. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  590. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  591. return "google.protobuf.Mixin";
  592. }
  593. protected:
  594. explicit Mixin(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  595. private:
  596. static void ArenaDtor(void* object);
  597. inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
  598. public:
  599. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  600. private:
  601. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  602. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fprotobuf_2fapi_2eproto);
  603. return ::descriptor_table_google_2fprotobuf_2fapi_2eproto.file_level_metadata[kIndexInFileMessages];
  604. }
  605. public:
  606. // nested types ----------------------------------------------------
  607. // accessors -------------------------------------------------------
  608. enum : int {
  609. kNameFieldNumber = 1,
  610. kRootFieldNumber = 2,
  611. };
  612. // string name = 1;
  613. void clear_name();
  614. const std::string& name() const;
  615. void set_name(const std::string& value);
  616. void set_name(std::string&& value);
  617. void set_name(const char* value);
  618. void set_name(const char* value, size_t size);
  619. std::string* mutable_name();
  620. std::string* release_name();
  621. void set_allocated_name(std::string* name);
  622. private:
  623. const std::string& _internal_name() const;
  624. void _internal_set_name(const std::string& value);
  625. std::string* _internal_mutable_name();
  626. public:
  627. // string root = 2;
  628. void clear_root();
  629. const std::string& root() const;
  630. void set_root(const std::string& value);
  631. void set_root(std::string&& value);
  632. void set_root(const char* value);
  633. void set_root(const char* value, size_t size);
  634. std::string* mutable_root();
  635. std::string* release_root();
  636. void set_allocated_root(std::string* root);
  637. private:
  638. const std::string& _internal_root() const;
  639. void _internal_set_root(const std::string& value);
  640. std::string* _internal_mutable_root();
  641. public:
  642. // @@protoc_insertion_point(class_scope:google.protobuf.Mixin)
  643. private:
  644. class _Internal;
  645. template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
  646. typedef void InternalArenaConstructable_;
  647. typedef void DestructorSkippable_;
  648. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
  649. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr root_;
  650. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  651. friend struct ::TableStruct_google_2fprotobuf_2fapi_2eproto;
  652. };
  653. // ===================================================================
  654. // ===================================================================
  655. #ifdef __GNUC__
  656. #pragma GCC diagnostic push
  657. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  658. #endif // __GNUC__
  659. // Api
  660. // string name = 1;
  661. inline void Api::clear_name() {
  662. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  663. }
  664. inline const std::string& Api::name() const {
  665. // @@protoc_insertion_point(field_get:google.protobuf.Api.name)
  666. return _internal_name();
  667. }
  668. inline void Api::set_name(const std::string& value) {
  669. _internal_set_name(value);
  670. // @@protoc_insertion_point(field_set:google.protobuf.Api.name)
  671. }
  672. inline std::string* Api::mutable_name() {
  673. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.name)
  674. return _internal_mutable_name();
  675. }
  676. inline const std::string& Api::_internal_name() const {
  677. return name_.Get();
  678. }
  679. inline void Api::_internal_set_name(const std::string& value) {
  680. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  681. }
  682. inline void Api::set_name(std::string&& value) {
  683. name_.Set(
  684. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  685. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Api.name)
  686. }
  687. inline void Api::set_name(const char* value) {
  688. GOOGLE_DCHECK(value != nullptr);
  689. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  690. GetArena());
  691. // @@protoc_insertion_point(field_set_char:google.protobuf.Api.name)
  692. }
  693. inline void Api::set_name(const char* value,
  694. size_t size) {
  695. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  696. reinterpret_cast<const char*>(value), size), GetArena());
  697. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.name)
  698. }
  699. inline std::string* Api::_internal_mutable_name() {
  700. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  701. }
  702. inline std::string* Api::release_name() {
  703. // @@protoc_insertion_point(field_release:google.protobuf.Api.name)
  704. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  705. }
  706. inline void Api::set_allocated_name(std::string* name) {
  707. if (name != nullptr) {
  708. } else {
  709. }
  710. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  711. GetArena());
  712. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.name)
  713. }
  714. // repeated .google.protobuf.Method methods = 2;
  715. inline int Api::_internal_methods_size() const {
  716. return methods_.size();
  717. }
  718. inline int Api::methods_size() const {
  719. return _internal_methods_size();
  720. }
  721. inline void Api::clear_methods() {
  722. methods_.Clear();
  723. }
  724. inline PROTOBUF_NAMESPACE_ID::Method* Api::mutable_methods(int index) {
  725. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.methods)
  726. return methods_.Mutable(index);
  727. }
  728. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Method >*
  729. Api::mutable_methods() {
  730. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.methods)
  731. return &methods_;
  732. }
  733. inline const PROTOBUF_NAMESPACE_ID::Method& Api::_internal_methods(int index) const {
  734. return methods_.Get(index);
  735. }
  736. inline const PROTOBUF_NAMESPACE_ID::Method& Api::methods(int index) const {
  737. // @@protoc_insertion_point(field_get:google.protobuf.Api.methods)
  738. return _internal_methods(index);
  739. }
  740. inline PROTOBUF_NAMESPACE_ID::Method* Api::_internal_add_methods() {
  741. return methods_.Add();
  742. }
  743. inline PROTOBUF_NAMESPACE_ID::Method* Api::add_methods() {
  744. // @@protoc_insertion_point(field_add:google.protobuf.Api.methods)
  745. return _internal_add_methods();
  746. }
  747. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Method >&
  748. Api::methods() const {
  749. // @@protoc_insertion_point(field_list:google.protobuf.Api.methods)
  750. return methods_;
  751. }
  752. // repeated .google.protobuf.Option options = 3;
  753. inline int Api::_internal_options_size() const {
  754. return options_.size();
  755. }
  756. inline int Api::options_size() const {
  757. return _internal_options_size();
  758. }
  759. inline PROTOBUF_NAMESPACE_ID::Option* Api::mutable_options(int index) {
  760. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.options)
  761. return options_.Mutable(index);
  762. }
  763. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
  764. Api::mutable_options() {
  765. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.options)
  766. return &options_;
  767. }
  768. inline const PROTOBUF_NAMESPACE_ID::Option& Api::_internal_options(int index) const {
  769. return options_.Get(index);
  770. }
  771. inline const PROTOBUF_NAMESPACE_ID::Option& Api::options(int index) const {
  772. // @@protoc_insertion_point(field_get:google.protobuf.Api.options)
  773. return _internal_options(index);
  774. }
  775. inline PROTOBUF_NAMESPACE_ID::Option* Api::_internal_add_options() {
  776. return options_.Add();
  777. }
  778. inline PROTOBUF_NAMESPACE_ID::Option* Api::add_options() {
  779. // @@protoc_insertion_point(field_add:google.protobuf.Api.options)
  780. return _internal_add_options();
  781. }
  782. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
  783. Api::options() const {
  784. // @@protoc_insertion_point(field_list:google.protobuf.Api.options)
  785. return options_;
  786. }
  787. // string version = 4;
  788. inline void Api::clear_version() {
  789. version_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  790. }
  791. inline const std::string& Api::version() const {
  792. // @@protoc_insertion_point(field_get:google.protobuf.Api.version)
  793. return _internal_version();
  794. }
  795. inline void Api::set_version(const std::string& value) {
  796. _internal_set_version(value);
  797. // @@protoc_insertion_point(field_set:google.protobuf.Api.version)
  798. }
  799. inline std::string* Api::mutable_version() {
  800. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.version)
  801. return _internal_mutable_version();
  802. }
  803. inline const std::string& Api::_internal_version() const {
  804. return version_.Get();
  805. }
  806. inline void Api::_internal_set_version(const std::string& value) {
  807. version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  808. }
  809. inline void Api::set_version(std::string&& value) {
  810. version_.Set(
  811. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  812. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Api.version)
  813. }
  814. inline void Api::set_version(const char* value) {
  815. GOOGLE_DCHECK(value != nullptr);
  816. version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  817. GetArena());
  818. // @@protoc_insertion_point(field_set_char:google.protobuf.Api.version)
  819. }
  820. inline void Api::set_version(const char* value,
  821. size_t size) {
  822. version_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  823. reinterpret_cast<const char*>(value), size), GetArena());
  824. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Api.version)
  825. }
  826. inline std::string* Api::_internal_mutable_version() {
  827. return version_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  828. }
  829. inline std::string* Api::release_version() {
  830. // @@protoc_insertion_point(field_release:google.protobuf.Api.version)
  831. return version_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  832. }
  833. inline void Api::set_allocated_version(std::string* version) {
  834. if (version != nullptr) {
  835. } else {
  836. }
  837. version_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), version,
  838. GetArena());
  839. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.version)
  840. }
  841. // .google.protobuf.SourceContext source_context = 5;
  842. inline bool Api::_internal_has_source_context() const {
  843. return this != internal_default_instance() && source_context_ != nullptr;
  844. }
  845. inline bool Api::has_source_context() const {
  846. return _internal_has_source_context();
  847. }
  848. inline const PROTOBUF_NAMESPACE_ID::SourceContext& Api::_internal_source_context() const {
  849. const PROTOBUF_NAMESPACE_ID::SourceContext* p = source_context_;
  850. return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::SourceContext*>(
  851. &PROTOBUF_NAMESPACE_ID::_SourceContext_default_instance_);
  852. }
  853. inline const PROTOBUF_NAMESPACE_ID::SourceContext& Api::source_context() const {
  854. // @@protoc_insertion_point(field_get:google.protobuf.Api.source_context)
  855. return _internal_source_context();
  856. }
  857. inline void Api::unsafe_arena_set_allocated_source_context(
  858. PROTOBUF_NAMESPACE_ID::SourceContext* source_context) {
  859. if (GetArena() == nullptr) {
  860. delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context_);
  861. }
  862. source_context_ = source_context;
  863. if (source_context) {
  864. } else {
  865. }
  866. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.protobuf.Api.source_context)
  867. }
  868. inline PROTOBUF_NAMESPACE_ID::SourceContext* Api::release_source_context() {
  869. PROTOBUF_NAMESPACE_ID::SourceContext* temp = source_context_;
  870. source_context_ = nullptr;
  871. if (GetArena() != nullptr) {
  872. temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
  873. }
  874. return temp;
  875. }
  876. inline PROTOBUF_NAMESPACE_ID::SourceContext* Api::unsafe_arena_release_source_context() {
  877. // @@protoc_insertion_point(field_release:google.protobuf.Api.source_context)
  878. PROTOBUF_NAMESPACE_ID::SourceContext* temp = source_context_;
  879. source_context_ = nullptr;
  880. return temp;
  881. }
  882. inline PROTOBUF_NAMESPACE_ID::SourceContext* Api::_internal_mutable_source_context() {
  883. if (source_context_ == nullptr) {
  884. auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::SourceContext>(GetArena());
  885. source_context_ = p;
  886. }
  887. return source_context_;
  888. }
  889. inline PROTOBUF_NAMESPACE_ID::SourceContext* Api::mutable_source_context() {
  890. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.source_context)
  891. return _internal_mutable_source_context();
  892. }
  893. inline void Api::set_allocated_source_context(PROTOBUF_NAMESPACE_ID::SourceContext* source_context) {
  894. ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArena();
  895. if (message_arena == nullptr) {
  896. delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context_);
  897. }
  898. if (source_context) {
  899. ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
  900. reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(source_context)->GetArena();
  901. if (message_arena != submessage_arena) {
  902. source_context = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
  903. message_arena, source_context, submessage_arena);
  904. }
  905. } else {
  906. }
  907. source_context_ = source_context;
  908. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Api.source_context)
  909. }
  910. // repeated .google.protobuf.Mixin mixins = 6;
  911. inline int Api::_internal_mixins_size() const {
  912. return mixins_.size();
  913. }
  914. inline int Api::mixins_size() const {
  915. return _internal_mixins_size();
  916. }
  917. inline void Api::clear_mixins() {
  918. mixins_.Clear();
  919. }
  920. inline PROTOBUF_NAMESPACE_ID::Mixin* Api::mutable_mixins(int index) {
  921. // @@protoc_insertion_point(field_mutable:google.protobuf.Api.mixins)
  922. return mixins_.Mutable(index);
  923. }
  924. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Mixin >*
  925. Api::mutable_mixins() {
  926. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Api.mixins)
  927. return &mixins_;
  928. }
  929. inline const PROTOBUF_NAMESPACE_ID::Mixin& Api::_internal_mixins(int index) const {
  930. return mixins_.Get(index);
  931. }
  932. inline const PROTOBUF_NAMESPACE_ID::Mixin& Api::mixins(int index) const {
  933. // @@protoc_insertion_point(field_get:google.protobuf.Api.mixins)
  934. return _internal_mixins(index);
  935. }
  936. inline PROTOBUF_NAMESPACE_ID::Mixin* Api::_internal_add_mixins() {
  937. return mixins_.Add();
  938. }
  939. inline PROTOBUF_NAMESPACE_ID::Mixin* Api::add_mixins() {
  940. // @@protoc_insertion_point(field_add:google.protobuf.Api.mixins)
  941. return _internal_add_mixins();
  942. }
  943. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Mixin >&
  944. Api::mixins() const {
  945. // @@protoc_insertion_point(field_list:google.protobuf.Api.mixins)
  946. return mixins_;
  947. }
  948. // .google.protobuf.Syntax syntax = 7;
  949. inline void Api::clear_syntax() {
  950. syntax_ = 0;
  951. }
  952. inline PROTOBUF_NAMESPACE_ID::Syntax Api::_internal_syntax() const {
  953. return static_cast< PROTOBUF_NAMESPACE_ID::Syntax >(syntax_);
  954. }
  955. inline PROTOBUF_NAMESPACE_ID::Syntax Api::syntax() const {
  956. // @@protoc_insertion_point(field_get:google.protobuf.Api.syntax)
  957. return _internal_syntax();
  958. }
  959. inline void Api::_internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value) {
  960. syntax_ = value;
  961. }
  962. inline void Api::set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value) {
  963. _internal_set_syntax(value);
  964. // @@protoc_insertion_point(field_set:google.protobuf.Api.syntax)
  965. }
  966. // -------------------------------------------------------------------
  967. // Method
  968. // string name = 1;
  969. inline void Method::clear_name() {
  970. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  971. }
  972. inline const std::string& Method::name() const {
  973. // @@protoc_insertion_point(field_get:google.protobuf.Method.name)
  974. return _internal_name();
  975. }
  976. inline void Method::set_name(const std::string& value) {
  977. _internal_set_name(value);
  978. // @@protoc_insertion_point(field_set:google.protobuf.Method.name)
  979. }
  980. inline std::string* Method::mutable_name() {
  981. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.name)
  982. return _internal_mutable_name();
  983. }
  984. inline const std::string& Method::_internal_name() const {
  985. return name_.Get();
  986. }
  987. inline void Method::_internal_set_name(const std::string& value) {
  988. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  989. }
  990. inline void Method::set_name(std::string&& value) {
  991. name_.Set(
  992. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  993. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.name)
  994. }
  995. inline void Method::set_name(const char* value) {
  996. GOOGLE_DCHECK(value != nullptr);
  997. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  998. GetArena());
  999. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.name)
  1000. }
  1001. inline void Method::set_name(const char* value,
  1002. size_t size) {
  1003. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1004. reinterpret_cast<const char*>(value), size), GetArena());
  1005. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.name)
  1006. }
  1007. inline std::string* Method::_internal_mutable_name() {
  1008. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1009. }
  1010. inline std::string* Method::release_name() {
  1011. // @@protoc_insertion_point(field_release:google.protobuf.Method.name)
  1012. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1013. }
  1014. inline void Method::set_allocated_name(std::string* name) {
  1015. if (name != nullptr) {
  1016. } else {
  1017. }
  1018. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  1019. GetArena());
  1020. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.name)
  1021. }
  1022. // string request_type_url = 2;
  1023. inline void Method::clear_request_type_url() {
  1024. request_type_url_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1025. }
  1026. inline const std::string& Method::request_type_url() const {
  1027. // @@protoc_insertion_point(field_get:google.protobuf.Method.request_type_url)
  1028. return _internal_request_type_url();
  1029. }
  1030. inline void Method::set_request_type_url(const std::string& value) {
  1031. _internal_set_request_type_url(value);
  1032. // @@protoc_insertion_point(field_set:google.protobuf.Method.request_type_url)
  1033. }
  1034. inline std::string* Method::mutable_request_type_url() {
  1035. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.request_type_url)
  1036. return _internal_mutable_request_type_url();
  1037. }
  1038. inline const std::string& Method::_internal_request_type_url() const {
  1039. return request_type_url_.Get();
  1040. }
  1041. inline void Method::_internal_set_request_type_url(const std::string& value) {
  1042. request_type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  1043. }
  1044. inline void Method::set_request_type_url(std::string&& value) {
  1045. request_type_url_.Set(
  1046. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  1047. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.request_type_url)
  1048. }
  1049. inline void Method::set_request_type_url(const char* value) {
  1050. GOOGLE_DCHECK(value != nullptr);
  1051. request_type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1052. GetArena());
  1053. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.request_type_url)
  1054. }
  1055. inline void Method::set_request_type_url(const char* value,
  1056. size_t size) {
  1057. request_type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1058. reinterpret_cast<const char*>(value), size), GetArena());
  1059. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.request_type_url)
  1060. }
  1061. inline std::string* Method::_internal_mutable_request_type_url() {
  1062. return request_type_url_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1063. }
  1064. inline std::string* Method::release_request_type_url() {
  1065. // @@protoc_insertion_point(field_release:google.protobuf.Method.request_type_url)
  1066. return request_type_url_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1067. }
  1068. inline void Method::set_allocated_request_type_url(std::string* request_type_url) {
  1069. if (request_type_url != nullptr) {
  1070. } else {
  1071. }
  1072. request_type_url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), request_type_url,
  1073. GetArena());
  1074. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.request_type_url)
  1075. }
  1076. // bool request_streaming = 3;
  1077. inline void Method::clear_request_streaming() {
  1078. request_streaming_ = false;
  1079. }
  1080. inline bool Method::_internal_request_streaming() const {
  1081. return request_streaming_;
  1082. }
  1083. inline bool Method::request_streaming() const {
  1084. // @@protoc_insertion_point(field_get:google.protobuf.Method.request_streaming)
  1085. return _internal_request_streaming();
  1086. }
  1087. inline void Method::_internal_set_request_streaming(bool value) {
  1088. request_streaming_ = value;
  1089. }
  1090. inline void Method::set_request_streaming(bool value) {
  1091. _internal_set_request_streaming(value);
  1092. // @@protoc_insertion_point(field_set:google.protobuf.Method.request_streaming)
  1093. }
  1094. // string response_type_url = 4;
  1095. inline void Method::clear_response_type_url() {
  1096. response_type_url_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1097. }
  1098. inline const std::string& Method::response_type_url() const {
  1099. // @@protoc_insertion_point(field_get:google.protobuf.Method.response_type_url)
  1100. return _internal_response_type_url();
  1101. }
  1102. inline void Method::set_response_type_url(const std::string& value) {
  1103. _internal_set_response_type_url(value);
  1104. // @@protoc_insertion_point(field_set:google.protobuf.Method.response_type_url)
  1105. }
  1106. inline std::string* Method::mutable_response_type_url() {
  1107. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.response_type_url)
  1108. return _internal_mutable_response_type_url();
  1109. }
  1110. inline const std::string& Method::_internal_response_type_url() const {
  1111. return response_type_url_.Get();
  1112. }
  1113. inline void Method::_internal_set_response_type_url(const std::string& value) {
  1114. response_type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  1115. }
  1116. inline void Method::set_response_type_url(std::string&& value) {
  1117. response_type_url_.Set(
  1118. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  1119. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Method.response_type_url)
  1120. }
  1121. inline void Method::set_response_type_url(const char* value) {
  1122. GOOGLE_DCHECK(value != nullptr);
  1123. response_type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1124. GetArena());
  1125. // @@protoc_insertion_point(field_set_char:google.protobuf.Method.response_type_url)
  1126. }
  1127. inline void Method::set_response_type_url(const char* value,
  1128. size_t size) {
  1129. response_type_url_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1130. reinterpret_cast<const char*>(value), size), GetArena());
  1131. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Method.response_type_url)
  1132. }
  1133. inline std::string* Method::_internal_mutable_response_type_url() {
  1134. return response_type_url_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1135. }
  1136. inline std::string* Method::release_response_type_url() {
  1137. // @@protoc_insertion_point(field_release:google.protobuf.Method.response_type_url)
  1138. return response_type_url_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1139. }
  1140. inline void Method::set_allocated_response_type_url(std::string* response_type_url) {
  1141. if (response_type_url != nullptr) {
  1142. } else {
  1143. }
  1144. response_type_url_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), response_type_url,
  1145. GetArena());
  1146. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Method.response_type_url)
  1147. }
  1148. // bool response_streaming = 5;
  1149. inline void Method::clear_response_streaming() {
  1150. response_streaming_ = false;
  1151. }
  1152. inline bool Method::_internal_response_streaming() const {
  1153. return response_streaming_;
  1154. }
  1155. inline bool Method::response_streaming() const {
  1156. // @@protoc_insertion_point(field_get:google.protobuf.Method.response_streaming)
  1157. return _internal_response_streaming();
  1158. }
  1159. inline void Method::_internal_set_response_streaming(bool value) {
  1160. response_streaming_ = value;
  1161. }
  1162. inline void Method::set_response_streaming(bool value) {
  1163. _internal_set_response_streaming(value);
  1164. // @@protoc_insertion_point(field_set:google.protobuf.Method.response_streaming)
  1165. }
  1166. // repeated .google.protobuf.Option options = 6;
  1167. inline int Method::_internal_options_size() const {
  1168. return options_.size();
  1169. }
  1170. inline int Method::options_size() const {
  1171. return _internal_options_size();
  1172. }
  1173. inline PROTOBUF_NAMESPACE_ID::Option* Method::mutable_options(int index) {
  1174. // @@protoc_insertion_point(field_mutable:google.protobuf.Method.options)
  1175. return options_.Mutable(index);
  1176. }
  1177. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >*
  1178. Method::mutable_options() {
  1179. // @@protoc_insertion_point(field_mutable_list:google.protobuf.Method.options)
  1180. return &options_;
  1181. }
  1182. inline const PROTOBUF_NAMESPACE_ID::Option& Method::_internal_options(int index) const {
  1183. return options_.Get(index);
  1184. }
  1185. inline const PROTOBUF_NAMESPACE_ID::Option& Method::options(int index) const {
  1186. // @@protoc_insertion_point(field_get:google.protobuf.Method.options)
  1187. return _internal_options(index);
  1188. }
  1189. inline PROTOBUF_NAMESPACE_ID::Option* Method::_internal_add_options() {
  1190. return options_.Add();
  1191. }
  1192. inline PROTOBUF_NAMESPACE_ID::Option* Method::add_options() {
  1193. // @@protoc_insertion_point(field_add:google.protobuf.Method.options)
  1194. return _internal_add_options();
  1195. }
  1196. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Option >&
  1197. Method::options() const {
  1198. // @@protoc_insertion_point(field_list:google.protobuf.Method.options)
  1199. return options_;
  1200. }
  1201. // .google.protobuf.Syntax syntax = 7;
  1202. inline void Method::clear_syntax() {
  1203. syntax_ = 0;
  1204. }
  1205. inline PROTOBUF_NAMESPACE_ID::Syntax Method::_internal_syntax() const {
  1206. return static_cast< PROTOBUF_NAMESPACE_ID::Syntax >(syntax_);
  1207. }
  1208. inline PROTOBUF_NAMESPACE_ID::Syntax Method::syntax() const {
  1209. // @@protoc_insertion_point(field_get:google.protobuf.Method.syntax)
  1210. return _internal_syntax();
  1211. }
  1212. inline void Method::_internal_set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value) {
  1213. syntax_ = value;
  1214. }
  1215. inline void Method::set_syntax(PROTOBUF_NAMESPACE_ID::Syntax value) {
  1216. _internal_set_syntax(value);
  1217. // @@protoc_insertion_point(field_set:google.protobuf.Method.syntax)
  1218. }
  1219. // -------------------------------------------------------------------
  1220. // Mixin
  1221. // string name = 1;
  1222. inline void Mixin::clear_name() {
  1223. name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1224. }
  1225. inline const std::string& Mixin::name() const {
  1226. // @@protoc_insertion_point(field_get:google.protobuf.Mixin.name)
  1227. return _internal_name();
  1228. }
  1229. inline void Mixin::set_name(const std::string& value) {
  1230. _internal_set_name(value);
  1231. // @@protoc_insertion_point(field_set:google.protobuf.Mixin.name)
  1232. }
  1233. inline std::string* Mixin::mutable_name() {
  1234. // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.name)
  1235. return _internal_mutable_name();
  1236. }
  1237. inline const std::string& Mixin::_internal_name() const {
  1238. return name_.Get();
  1239. }
  1240. inline void Mixin::_internal_set_name(const std::string& value) {
  1241. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  1242. }
  1243. inline void Mixin::set_name(std::string&& value) {
  1244. name_.Set(
  1245. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  1246. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Mixin.name)
  1247. }
  1248. inline void Mixin::set_name(const char* value) {
  1249. GOOGLE_DCHECK(value != nullptr);
  1250. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1251. GetArena());
  1252. // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.name)
  1253. }
  1254. inline void Mixin::set_name(const char* value,
  1255. size_t size) {
  1256. name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1257. reinterpret_cast<const char*>(value), size), GetArena());
  1258. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.name)
  1259. }
  1260. inline std::string* Mixin::_internal_mutable_name() {
  1261. return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1262. }
  1263. inline std::string* Mixin::release_name() {
  1264. // @@protoc_insertion_point(field_release:google.protobuf.Mixin.name)
  1265. return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1266. }
  1267. inline void Mixin::set_allocated_name(std::string* name) {
  1268. if (name != nullptr) {
  1269. } else {
  1270. }
  1271. name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
  1272. GetArena());
  1273. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.name)
  1274. }
  1275. // string root = 2;
  1276. inline void Mixin::clear_root() {
  1277. root_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1278. }
  1279. inline const std::string& Mixin::root() const {
  1280. // @@protoc_insertion_point(field_get:google.protobuf.Mixin.root)
  1281. return _internal_root();
  1282. }
  1283. inline void Mixin::set_root(const std::string& value) {
  1284. _internal_set_root(value);
  1285. // @@protoc_insertion_point(field_set:google.protobuf.Mixin.root)
  1286. }
  1287. inline std::string* Mixin::mutable_root() {
  1288. // @@protoc_insertion_point(field_mutable:google.protobuf.Mixin.root)
  1289. return _internal_mutable_root();
  1290. }
  1291. inline const std::string& Mixin::_internal_root() const {
  1292. return root_.Get();
  1293. }
  1294. inline void Mixin::_internal_set_root(const std::string& value) {
  1295. root_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArena());
  1296. }
  1297. inline void Mixin::set_root(std::string&& value) {
  1298. root_.Set(
  1299. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArena());
  1300. // @@protoc_insertion_point(field_set_rvalue:google.protobuf.Mixin.root)
  1301. }
  1302. inline void Mixin::set_root(const char* value) {
  1303. GOOGLE_DCHECK(value != nullptr);
  1304. root_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1305. GetArena());
  1306. // @@protoc_insertion_point(field_set_char:google.protobuf.Mixin.root)
  1307. }
  1308. inline void Mixin::set_root(const char* value,
  1309. size_t size) {
  1310. root_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1311. reinterpret_cast<const char*>(value), size), GetArena());
  1312. // @@protoc_insertion_point(field_set_pointer:google.protobuf.Mixin.root)
  1313. }
  1314. inline std::string* Mixin::_internal_mutable_root() {
  1315. return root_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1316. }
  1317. inline std::string* Mixin::release_root() {
  1318. // @@protoc_insertion_point(field_release:google.protobuf.Mixin.root)
  1319. return root_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  1320. }
  1321. inline void Mixin::set_allocated_root(std::string* root) {
  1322. if (root != nullptr) {
  1323. } else {
  1324. }
  1325. root_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), root,
  1326. GetArena());
  1327. // @@protoc_insertion_point(field_set_allocated:google.protobuf.Mixin.root)
  1328. }
  1329. #ifdef __GNUC__
  1330. #pragma GCC diagnostic pop
  1331. #endif // __GNUC__
  1332. // -------------------------------------------------------------------
  1333. // -------------------------------------------------------------------
  1334. // @@protoc_insertion_point(namespace_scope)
  1335. PROTOBUF_NAMESPACE_CLOSE
  1336. // @@protoc_insertion_point(global_scope)
  1337. #include <google/protobuf/port_undef.inc>
  1338. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fprotobuf_2fapi_2eproto
  1339. #else
  1340. #error "This file should not be included when either TORCH_STABLE_ONLY or TORCH_TARGET_VERSION is defined."
  1341. #endif // !defined(TORCH_STABLE_ONLY) && !defined(TORCH_TARGET_VERSION)