http.pb.h 65 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798
  1. /*
  2. * Copyright 2018 Google
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/api/http.proto
  18. #ifndef PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
  19. #define PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
  20. #include <string>
  21. #include <google/protobuf/stubs/common.h>
  22. #if GOOGLE_PROTOBUF_VERSION < 3005000
  23. #error This file was generated by a newer version of protoc which is
  24. #error incompatible with your Protocol Buffer headers. Please update
  25. #error your headers.
  26. #endif
  27. #if 3005000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
  28. #error This file was generated by an older version of protoc which is
  29. #error incompatible with your Protocol Buffer headers. Please
  30. #error regenerate this file with a newer version of protoc.
  31. #endif
  32. #include <google/protobuf/io/coded_stream.h>
  33. #include <google/protobuf/arena.h>
  34. #include <google/protobuf/arenastring.h>
  35. #include <google/protobuf/generated_message_table_driven.h>
  36. #include <google/protobuf/generated_message_util.h>
  37. #include <google/protobuf/metadata.h>
  38. #include <google/protobuf/message.h>
  39. #include <google/protobuf/repeated_field.h> // IWYU pragma: export
  40. #include <google/protobuf/extension_set.h> // IWYU pragma: export
  41. #include <google/protobuf/unknown_field_set.h>
  42. // @@protoc_insertion_point(includes)
  43. namespace protobuf_google_2fapi_2fhttp_2eproto {
  44. // Internal implementation detail -- do not use these members.
  45. struct TableStruct {
  46. static const ::google::protobuf::internal::ParseTableField entries[];
  47. static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
  48. static const ::google::protobuf::internal::ParseTable schema[3];
  49. static const ::google::protobuf::internal::FieldMetadata field_metadata[];
  50. static const ::google::protobuf::internal::SerializationTable serialization_table[];
  51. static const ::google::protobuf::uint32 offsets[];
  52. };
  53. void AddDescriptors();
  54. void InitDefaultsHttpImpl();
  55. void InitDefaultsHttp();
  56. void InitDefaultsHttpRuleImpl();
  57. void InitDefaultsHttpRule();
  58. void InitDefaultsCustomHttpPatternImpl();
  59. void InitDefaultsCustomHttpPattern();
  60. inline void InitDefaults() {
  61. InitDefaultsHttp();
  62. InitDefaultsHttpRule();
  63. InitDefaultsCustomHttpPattern();
  64. }
  65. } // namespace protobuf_google_2fapi_2fhttp_2eproto
  66. namespace google {
  67. namespace api {
  68. class CustomHttpPattern;
  69. class CustomHttpPatternDefaultTypeInternal;
  70. extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_;
  71. class Http;
  72. class HttpDefaultTypeInternal;
  73. extern HttpDefaultTypeInternal _Http_default_instance_;
  74. class HttpRule;
  75. class HttpRuleDefaultTypeInternal;
  76. extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_;
  77. } // namespace api
  78. } // namespace google
  79. namespace google {
  80. namespace api {
  81. // ===================================================================
  82. class Http : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ {
  83. public:
  84. Http();
  85. virtual ~Http();
  86. Http(const Http& from);
  87. inline Http& operator=(const Http& from) {
  88. CopyFrom(from);
  89. return *this;
  90. }
  91. #if LANG_CXX11
  92. Http(Http&& from) noexcept
  93. : Http() {
  94. *this = ::std::move(from);
  95. }
  96. inline Http& operator=(Http&& from) noexcept {
  97. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  98. if (this != &from) InternalSwap(&from);
  99. } else {
  100. CopyFrom(from);
  101. }
  102. return *this;
  103. }
  104. #endif
  105. inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
  106. return GetArenaNoVirtual();
  107. }
  108. inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
  109. return MaybeArenaPtr();
  110. }
  111. static const ::google::protobuf::Descriptor* descriptor();
  112. static const Http& default_instance();
  113. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  114. static inline const Http* internal_default_instance() {
  115. return reinterpret_cast<const Http*>(
  116. &_Http_default_instance_);
  117. }
  118. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  119. 0;
  120. void UnsafeArenaSwap(Http* other);
  121. void Swap(Http* other);
  122. friend void swap(Http& a, Http& b) {
  123. a.Swap(&b);
  124. }
  125. // implements Message ----------------------------------------------
  126. inline Http* New() const PROTOBUF_FINAL { return New(NULL); }
  127. Http* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  128. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  129. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  130. void CopyFrom(const Http& from);
  131. void MergeFrom(const Http& from);
  132. void Clear() PROTOBUF_FINAL;
  133. bool IsInitialized() const PROTOBUF_FINAL;
  134. size_t ByteSizeLong() const PROTOBUF_FINAL;
  135. bool MergePartialFromCodedStream(
  136. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  137. void SerializeWithCachedSizes(
  138. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  139. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  140. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  141. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  142. private:
  143. void SharedCtor();
  144. void SharedDtor();
  145. void SetCachedSize(int size) const PROTOBUF_FINAL;
  146. void InternalSwap(Http* other);
  147. protected:
  148. explicit Http(::google::protobuf::Arena* arena);
  149. private:
  150. static void ArenaDtor(void* object);
  151. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  152. private:
  153. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  154. return _internal_metadata_.arena();
  155. }
  156. inline void* MaybeArenaPtr() const {
  157. return _internal_metadata_.raw_arena_ptr();
  158. }
  159. public:
  160. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  161. // nested types ----------------------------------------------------
  162. // accessors -------------------------------------------------------
  163. // repeated .google.api.HttpRule rules = 1;
  164. int rules_size() const;
  165. void clear_rules();
  166. static const int kRulesFieldNumber = 1;
  167. const ::google::api::HttpRule& rules(int index) const;
  168. ::google::api::HttpRule* mutable_rules(int index);
  169. ::google::api::HttpRule* add_rules();
  170. ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
  171. mutable_rules();
  172. const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
  173. rules() const;
  174. // @@protoc_insertion_point(class_scope:google.api.Http)
  175. private:
  176. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  177. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  178. typedef void InternalArenaConstructable_;
  179. typedef void DestructorSkippable_;
  180. ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > rules_;
  181. mutable int _cached_size_;
  182. friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
  183. friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpImpl();
  184. };
  185. // -------------------------------------------------------------------
  186. class HttpRule : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ {
  187. public:
  188. HttpRule();
  189. virtual ~HttpRule();
  190. HttpRule(const HttpRule& from);
  191. inline HttpRule& operator=(const HttpRule& from) {
  192. CopyFrom(from);
  193. return *this;
  194. }
  195. #if LANG_CXX11
  196. HttpRule(HttpRule&& from) noexcept
  197. : HttpRule() {
  198. *this = ::std::move(from);
  199. }
  200. inline HttpRule& operator=(HttpRule&& from) noexcept {
  201. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  202. if (this != &from) InternalSwap(&from);
  203. } else {
  204. CopyFrom(from);
  205. }
  206. return *this;
  207. }
  208. #endif
  209. inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
  210. return GetArenaNoVirtual();
  211. }
  212. inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
  213. return MaybeArenaPtr();
  214. }
  215. static const ::google::protobuf::Descriptor* descriptor();
  216. static const HttpRule& default_instance();
  217. enum PatternCase {
  218. kGet = 2,
  219. kPut = 3,
  220. kPost = 4,
  221. kDelete = 5,
  222. kPatch = 6,
  223. kCustom = 8,
  224. PATTERN_NOT_SET = 0,
  225. };
  226. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  227. static inline const HttpRule* internal_default_instance() {
  228. return reinterpret_cast<const HttpRule*>(
  229. &_HttpRule_default_instance_);
  230. }
  231. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  232. 1;
  233. void UnsafeArenaSwap(HttpRule* other);
  234. void Swap(HttpRule* other);
  235. friend void swap(HttpRule& a, HttpRule& b) {
  236. a.Swap(&b);
  237. }
  238. // implements Message ----------------------------------------------
  239. inline HttpRule* New() const PROTOBUF_FINAL { return New(NULL); }
  240. HttpRule* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  241. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  242. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  243. void CopyFrom(const HttpRule& from);
  244. void MergeFrom(const HttpRule& from);
  245. void Clear() PROTOBUF_FINAL;
  246. bool IsInitialized() const PROTOBUF_FINAL;
  247. size_t ByteSizeLong() const PROTOBUF_FINAL;
  248. bool MergePartialFromCodedStream(
  249. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  250. void SerializeWithCachedSizes(
  251. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  252. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  253. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  254. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  255. private:
  256. void SharedCtor();
  257. void SharedDtor();
  258. void SetCachedSize(int size) const PROTOBUF_FINAL;
  259. void InternalSwap(HttpRule* other);
  260. protected:
  261. explicit HttpRule(::google::protobuf::Arena* arena);
  262. private:
  263. static void ArenaDtor(void* object);
  264. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  265. private:
  266. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  267. return _internal_metadata_.arena();
  268. }
  269. inline void* MaybeArenaPtr() const {
  270. return _internal_metadata_.raw_arena_ptr();
  271. }
  272. public:
  273. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  274. // nested types ----------------------------------------------------
  275. // accessors -------------------------------------------------------
  276. // repeated .google.api.HttpRule additional_bindings = 11;
  277. int additional_bindings_size() const;
  278. void clear_additional_bindings();
  279. static const int kAdditionalBindingsFieldNumber = 11;
  280. const ::google::api::HttpRule& additional_bindings(int index) const;
  281. ::google::api::HttpRule* mutable_additional_bindings(int index);
  282. ::google::api::HttpRule* add_additional_bindings();
  283. ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
  284. mutable_additional_bindings();
  285. const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
  286. additional_bindings() const;
  287. // string selector = 1;
  288. void clear_selector();
  289. static const int kSelectorFieldNumber = 1;
  290. const ::std::string& selector() const;
  291. void set_selector(const ::std::string& value);
  292. #if LANG_CXX11
  293. void set_selector(::std::string&& value);
  294. #endif
  295. void set_selector(const char* value);
  296. void set_selector(const char* value, size_t size);
  297. ::std::string* mutable_selector();
  298. ::std::string* release_selector();
  299. void set_allocated_selector(::std::string* selector);
  300. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  301. " string fields are deprecated and will be removed in a"
  302. " future release.")
  303. ::std::string* unsafe_arena_release_selector();
  304. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  305. " string fields are deprecated and will be removed in a"
  306. " future release.")
  307. void unsafe_arena_set_allocated_selector(
  308. ::std::string* selector);
  309. // string body = 7;
  310. void clear_body();
  311. static const int kBodyFieldNumber = 7;
  312. const ::std::string& body() const;
  313. void set_body(const ::std::string& value);
  314. #if LANG_CXX11
  315. void set_body(::std::string&& value);
  316. #endif
  317. void set_body(const char* value);
  318. void set_body(const char* value, size_t size);
  319. ::std::string* mutable_body();
  320. ::std::string* release_body();
  321. void set_allocated_body(::std::string* body);
  322. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  323. " string fields are deprecated and will be removed in a"
  324. " future release.")
  325. ::std::string* unsafe_arena_release_body();
  326. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  327. " string fields are deprecated and will be removed in a"
  328. " future release.")
  329. void unsafe_arena_set_allocated_body(
  330. ::std::string* body);
  331. // string get = 2;
  332. private:
  333. bool has_get() const;
  334. public:
  335. void clear_get();
  336. static const int kGetFieldNumber = 2;
  337. const ::std::string& get() const;
  338. void set_get(const ::std::string& value);
  339. #if LANG_CXX11
  340. void set_get(::std::string&& value);
  341. #endif
  342. void set_get(const char* value);
  343. void set_get(const char* value, size_t size);
  344. ::std::string* mutable_get();
  345. ::std::string* release_get();
  346. void set_allocated_get(::std::string* get);
  347. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  348. " string fields are deprecated and will be removed in a"
  349. " future release.")
  350. ::std::string* unsafe_arena_release_get();
  351. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  352. " string fields are deprecated and will be removed in a"
  353. " future release.")
  354. void unsafe_arena_set_allocated_get(
  355. ::std::string* get);
  356. // string put = 3;
  357. private:
  358. bool has_put() const;
  359. public:
  360. void clear_put();
  361. static const int kPutFieldNumber = 3;
  362. const ::std::string& put() const;
  363. void set_put(const ::std::string& value);
  364. #if LANG_CXX11
  365. void set_put(::std::string&& value);
  366. #endif
  367. void set_put(const char* value);
  368. void set_put(const char* value, size_t size);
  369. ::std::string* mutable_put();
  370. ::std::string* release_put();
  371. void set_allocated_put(::std::string* put);
  372. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  373. " string fields are deprecated and will be removed in a"
  374. " future release.")
  375. ::std::string* unsafe_arena_release_put();
  376. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  377. " string fields are deprecated and will be removed in a"
  378. " future release.")
  379. void unsafe_arena_set_allocated_put(
  380. ::std::string* put);
  381. // string post = 4;
  382. private:
  383. bool has_post() const;
  384. public:
  385. void clear_post();
  386. static const int kPostFieldNumber = 4;
  387. const ::std::string& post() const;
  388. void set_post(const ::std::string& value);
  389. #if LANG_CXX11
  390. void set_post(::std::string&& value);
  391. #endif
  392. void set_post(const char* value);
  393. void set_post(const char* value, size_t size);
  394. ::std::string* mutable_post();
  395. ::std::string* release_post();
  396. void set_allocated_post(::std::string* post);
  397. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  398. " string fields are deprecated and will be removed in a"
  399. " future release.")
  400. ::std::string* unsafe_arena_release_post();
  401. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  402. " string fields are deprecated and will be removed in a"
  403. " future release.")
  404. void unsafe_arena_set_allocated_post(
  405. ::std::string* post);
  406. // string delete = 5;
  407. private:
  408. bool has_delete_() const;
  409. public:
  410. void clear_delete_();
  411. static const int kDeleteFieldNumber = 5;
  412. const ::std::string& delete_() const;
  413. void set_delete_(const ::std::string& value);
  414. #if LANG_CXX11
  415. void set_delete_(::std::string&& value);
  416. #endif
  417. void set_delete_(const char* value);
  418. void set_delete_(const char* value, size_t size);
  419. ::std::string* mutable_delete_();
  420. ::std::string* release_delete_();
  421. void set_allocated_delete_(::std::string* delete_);
  422. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  423. " string fields are deprecated and will be removed in a"
  424. " future release.")
  425. ::std::string* unsafe_arena_release_delete_();
  426. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  427. " string fields are deprecated and will be removed in a"
  428. " future release.")
  429. void unsafe_arena_set_allocated_delete_(
  430. ::std::string* delete_);
  431. // string patch = 6;
  432. private:
  433. bool has_patch() const;
  434. public:
  435. void clear_patch();
  436. static const int kPatchFieldNumber = 6;
  437. const ::std::string& patch() const;
  438. void set_patch(const ::std::string& value);
  439. #if LANG_CXX11
  440. void set_patch(::std::string&& value);
  441. #endif
  442. void set_patch(const char* value);
  443. void set_patch(const char* value, size_t size);
  444. ::std::string* mutable_patch();
  445. ::std::string* release_patch();
  446. void set_allocated_patch(::std::string* patch);
  447. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  448. " string fields are deprecated and will be removed in a"
  449. " future release.")
  450. ::std::string* unsafe_arena_release_patch();
  451. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  452. " string fields are deprecated and will be removed in a"
  453. " future release.")
  454. void unsafe_arena_set_allocated_patch(
  455. ::std::string* patch);
  456. // .google.api.CustomHttpPattern custom = 8;
  457. bool has_custom() const;
  458. void clear_custom();
  459. static const int kCustomFieldNumber = 8;
  460. private:
  461. void _slow_mutable_custom();
  462. public:
  463. const ::google::api::CustomHttpPattern& custom() const;
  464. ::google::api::CustomHttpPattern* release_custom();
  465. ::google::api::CustomHttpPattern* mutable_custom();
  466. void set_allocated_custom(::google::api::CustomHttpPattern* custom);
  467. void unsafe_arena_set_allocated_custom(
  468. ::google::api::CustomHttpPattern* custom);
  469. ::google::api::CustomHttpPattern* unsafe_arena_release_custom();
  470. PatternCase pattern_case() const;
  471. // @@protoc_insertion_point(class_scope:google.api.HttpRule)
  472. private:
  473. void set_has_get();
  474. void set_has_put();
  475. void set_has_post();
  476. void set_has_delete_();
  477. void set_has_patch();
  478. void set_has_custom();
  479. inline bool has_pattern() const;
  480. void clear_pattern();
  481. inline void clear_has_pattern();
  482. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  483. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  484. typedef void InternalArenaConstructable_;
  485. typedef void DestructorSkippable_;
  486. ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_;
  487. ::google::protobuf::internal::ArenaStringPtr selector_;
  488. ::google::protobuf::internal::ArenaStringPtr body_;
  489. union PatternUnion {
  490. PatternUnion() {}
  491. ::google::protobuf::internal::ArenaStringPtr get_;
  492. ::google::protobuf::internal::ArenaStringPtr put_;
  493. ::google::protobuf::internal::ArenaStringPtr post_;
  494. ::google::protobuf::internal::ArenaStringPtr delete__;
  495. ::google::protobuf::internal::ArenaStringPtr patch_;
  496. ::google::api::CustomHttpPattern* custom_;
  497. } pattern_;
  498. mutable int _cached_size_;
  499. ::google::protobuf::uint32 _oneof_case_[1];
  500. friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
  501. friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRuleImpl();
  502. };
  503. // -------------------------------------------------------------------
  504. class CustomHttpPattern : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ {
  505. public:
  506. CustomHttpPattern();
  507. virtual ~CustomHttpPattern();
  508. CustomHttpPattern(const CustomHttpPattern& from);
  509. inline CustomHttpPattern& operator=(const CustomHttpPattern& from) {
  510. CopyFrom(from);
  511. return *this;
  512. }
  513. #if LANG_CXX11
  514. CustomHttpPattern(CustomHttpPattern&& from) noexcept
  515. : CustomHttpPattern() {
  516. *this = ::std::move(from);
  517. }
  518. inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept {
  519. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  520. if (this != &from) InternalSwap(&from);
  521. } else {
  522. CopyFrom(from);
  523. }
  524. return *this;
  525. }
  526. #endif
  527. inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
  528. return GetArenaNoVirtual();
  529. }
  530. inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
  531. return MaybeArenaPtr();
  532. }
  533. static const ::google::protobuf::Descriptor* descriptor();
  534. static const CustomHttpPattern& default_instance();
  535. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  536. static inline const CustomHttpPattern* internal_default_instance() {
  537. return reinterpret_cast<const CustomHttpPattern*>(
  538. &_CustomHttpPattern_default_instance_);
  539. }
  540. static PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
  541. 2;
  542. void UnsafeArenaSwap(CustomHttpPattern* other);
  543. void Swap(CustomHttpPattern* other);
  544. friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) {
  545. a.Swap(&b);
  546. }
  547. // implements Message ----------------------------------------------
  548. inline CustomHttpPattern* New() const PROTOBUF_FINAL { return New(NULL); }
  549. CustomHttpPattern* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
  550. void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  551. void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
  552. void CopyFrom(const CustomHttpPattern& from);
  553. void MergeFrom(const CustomHttpPattern& from);
  554. void Clear() PROTOBUF_FINAL;
  555. bool IsInitialized() const PROTOBUF_FINAL;
  556. size_t ByteSizeLong() const PROTOBUF_FINAL;
  557. bool MergePartialFromCodedStream(
  558. ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
  559. void SerializeWithCachedSizes(
  560. ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
  561. ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
  562. bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
  563. int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
  564. private:
  565. void SharedCtor();
  566. void SharedDtor();
  567. void SetCachedSize(int size) const PROTOBUF_FINAL;
  568. void InternalSwap(CustomHttpPattern* other);
  569. protected:
  570. explicit CustomHttpPattern(::google::protobuf::Arena* arena);
  571. private:
  572. static void ArenaDtor(void* object);
  573. inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
  574. private:
  575. inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
  576. return _internal_metadata_.arena();
  577. }
  578. inline void* MaybeArenaPtr() const {
  579. return _internal_metadata_.raw_arena_ptr();
  580. }
  581. public:
  582. ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
  583. // nested types ----------------------------------------------------
  584. // accessors -------------------------------------------------------
  585. // string kind = 1;
  586. void clear_kind();
  587. static const int kKindFieldNumber = 1;
  588. const ::std::string& kind() const;
  589. void set_kind(const ::std::string& value);
  590. #if LANG_CXX11
  591. void set_kind(::std::string&& value);
  592. #endif
  593. void set_kind(const char* value);
  594. void set_kind(const char* value, size_t size);
  595. ::std::string* mutable_kind();
  596. ::std::string* release_kind();
  597. void set_allocated_kind(::std::string* kind);
  598. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  599. " string fields are deprecated and will be removed in a"
  600. " future release.")
  601. ::std::string* unsafe_arena_release_kind();
  602. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  603. " string fields are deprecated and will be removed in a"
  604. " future release.")
  605. void unsafe_arena_set_allocated_kind(
  606. ::std::string* kind);
  607. // string path = 2;
  608. void clear_path();
  609. static const int kPathFieldNumber = 2;
  610. const ::std::string& path() const;
  611. void set_path(const ::std::string& value);
  612. #if LANG_CXX11
  613. void set_path(::std::string&& value);
  614. #endif
  615. void set_path(const char* value);
  616. void set_path(const char* value, size_t size);
  617. ::std::string* mutable_path();
  618. ::std::string* release_path();
  619. void set_allocated_path(::std::string* path);
  620. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  621. " string fields are deprecated and will be removed in a"
  622. " future release.")
  623. ::std::string* unsafe_arena_release_path();
  624. PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
  625. " string fields are deprecated and will be removed in a"
  626. " future release.")
  627. void unsafe_arena_set_allocated_path(
  628. ::std::string* path);
  629. // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
  630. private:
  631. ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
  632. template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
  633. typedef void InternalArenaConstructable_;
  634. typedef void DestructorSkippable_;
  635. ::google::protobuf::internal::ArenaStringPtr kind_;
  636. ::google::protobuf::internal::ArenaStringPtr path_;
  637. mutable int _cached_size_;
  638. friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
  639. friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPatternImpl();
  640. };
  641. // ===================================================================
  642. // ===================================================================
  643. #ifdef __GNUC__
  644. #pragma GCC diagnostic push
  645. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  646. #endif // __GNUC__
  647. // Http
  648. // repeated .google.api.HttpRule rules = 1;
  649. inline int Http::rules_size() const {
  650. return rules_.size();
  651. }
  652. inline void Http::clear_rules() {
  653. rules_.Clear();
  654. }
  655. inline const ::google::api::HttpRule& Http::rules(int index) const {
  656. // @@protoc_insertion_point(field_get:google.api.Http.rules)
  657. return rules_.Get(index);
  658. }
  659. inline ::google::api::HttpRule* Http::mutable_rules(int index) {
  660. // @@protoc_insertion_point(field_mutable:google.api.Http.rules)
  661. return rules_.Mutable(index);
  662. }
  663. inline ::google::api::HttpRule* Http::add_rules() {
  664. // @@protoc_insertion_point(field_add:google.api.Http.rules)
  665. return rules_.Add();
  666. }
  667. inline ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
  668. Http::mutable_rules() {
  669. // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules)
  670. return &rules_;
  671. }
  672. inline const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
  673. Http::rules() const {
  674. // @@protoc_insertion_point(field_list:google.api.Http.rules)
  675. return rules_;
  676. }
  677. // -------------------------------------------------------------------
  678. // HttpRule
  679. // string selector = 1;
  680. inline void HttpRule::clear_selector() {
  681. selector_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  682. }
  683. inline const ::std::string& HttpRule::selector() const {
  684. // @@protoc_insertion_point(field_get:google.api.HttpRule.selector)
  685. return selector_.Get();
  686. }
  687. inline void HttpRule::set_selector(const ::std::string& value) {
  688. selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  689. // @@protoc_insertion_point(field_set:google.api.HttpRule.selector)
  690. }
  691. #if LANG_CXX11
  692. inline void HttpRule::set_selector(::std::string&& value) {
  693. selector_.Set(
  694. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  695. // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.selector)
  696. }
  697. #endif
  698. inline void HttpRule::set_selector(const char* value) {
  699. GOOGLE_DCHECK(value != NULL);
  700. selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  701. GetArenaNoVirtual());
  702. // @@protoc_insertion_point(field_set_char:google.api.HttpRule.selector)
  703. }
  704. inline void HttpRule::set_selector(const char* value,
  705. size_t size) {
  706. selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  707. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  708. // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.selector)
  709. }
  710. inline ::std::string* HttpRule::mutable_selector() {
  711. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector)
  712. return selector_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  713. }
  714. inline ::std::string* HttpRule::release_selector() {
  715. // @@protoc_insertion_point(field_release:google.api.HttpRule.selector)
  716. return selector_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  717. }
  718. inline void HttpRule::set_allocated_selector(::std::string* selector) {
  719. if (selector != NULL) {
  720. } else {
  721. }
  722. selector_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), selector,
  723. GetArenaNoVirtual());
  724. // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector)
  725. }
  726. inline ::std::string* HttpRule::unsafe_arena_release_selector() {
  727. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.selector)
  728. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  729. return selector_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  730. GetArenaNoVirtual());
  731. }
  732. inline void HttpRule::unsafe_arena_set_allocated_selector(
  733. ::std::string* selector) {
  734. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  735. if (selector != NULL) {
  736. } else {
  737. }
  738. selector_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  739. selector, GetArenaNoVirtual());
  740. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.selector)
  741. }
  742. // string get = 2;
  743. inline bool HttpRule::has_get() const {
  744. return pattern_case() == kGet;
  745. }
  746. inline void HttpRule::set_has_get() {
  747. _oneof_case_[0] = kGet;
  748. }
  749. inline void HttpRule::clear_get() {
  750. if (has_get()) {
  751. pattern_.get_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  752. GetArenaNoVirtual());
  753. clear_has_pattern();
  754. }
  755. }
  756. inline const ::std::string& HttpRule::get() const {
  757. // @@protoc_insertion_point(field_get:google.api.HttpRule.get)
  758. if (has_get()) {
  759. return pattern_.get_.Get();
  760. }
  761. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  762. }
  763. inline void HttpRule::set_get(const ::std::string& value) {
  764. if (!has_get()) {
  765. clear_pattern();
  766. set_has_get();
  767. pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  768. }
  769. pattern_.get_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  770. GetArenaNoVirtual());
  771. // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
  772. }
  773. #if LANG_CXX11
  774. inline void HttpRule::set_get(::std::string&& value) {
  775. // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
  776. if (!has_get()) {
  777. clear_pattern();
  778. set_has_get();
  779. pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  780. }
  781. pattern_.get_.Set(
  782. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  783. // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.get)
  784. }
  785. #endif
  786. inline void HttpRule::set_get(const char* value) {
  787. GOOGLE_DCHECK(value != NULL);
  788. if (!has_get()) {
  789. clear_pattern();
  790. set_has_get();
  791. pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  792. }
  793. pattern_.get_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  794. ::std::string(value), GetArenaNoVirtual());
  795. // @@protoc_insertion_point(field_set_char:google.api.HttpRule.get)
  796. }
  797. inline void HttpRule::set_get(const char* value,
  798. size_t size) {
  799. if (!has_get()) {
  800. clear_pattern();
  801. set_has_get();
  802. pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  803. }
  804. pattern_.get_.Set(
  805. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  806. reinterpret_cast<const char*>(value), size),
  807. GetArenaNoVirtual());
  808. // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.get)
  809. }
  810. inline ::std::string* HttpRule::mutable_get() {
  811. if (!has_get()) {
  812. clear_pattern();
  813. set_has_get();
  814. pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  815. }
  816. return pattern_.get_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  817. GetArenaNoVirtual());
  818. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get)
  819. }
  820. inline ::std::string* HttpRule::release_get() {
  821. // @@protoc_insertion_point(field_release:google.api.HttpRule.get)
  822. if (has_get()) {
  823. clear_has_pattern();
  824. return pattern_.get_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  825. GetArenaNoVirtual());
  826. } else {
  827. return NULL;
  828. }
  829. }
  830. inline void HttpRule::set_allocated_get(::std::string* get) {
  831. if (!has_get()) {
  832. pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  833. }
  834. clear_pattern();
  835. if (get != NULL) {
  836. set_has_get();
  837. pattern_.get_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), get,
  838. GetArenaNoVirtual());
  839. }
  840. // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get)
  841. }
  842. inline ::std::string* HttpRule::unsafe_arena_release_get() {
  843. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.get)
  844. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  845. if (has_get()) {
  846. clear_has_pattern();
  847. return pattern_.get_.UnsafeArenaRelease(
  848. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  849. } else {
  850. return NULL;
  851. }
  852. }
  853. inline void HttpRule::unsafe_arena_set_allocated_get(::std::string* get) {
  854. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  855. if (!has_get()) {
  856. pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  857. }
  858. clear_pattern();
  859. if (get) {
  860. set_has_get();
  861. pattern_.get_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), get, GetArenaNoVirtual());
  862. }
  863. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.get)
  864. }
  865. // string put = 3;
  866. inline bool HttpRule::has_put() const {
  867. return pattern_case() == kPut;
  868. }
  869. inline void HttpRule::set_has_put() {
  870. _oneof_case_[0] = kPut;
  871. }
  872. inline void HttpRule::clear_put() {
  873. if (has_put()) {
  874. pattern_.put_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  875. GetArenaNoVirtual());
  876. clear_has_pattern();
  877. }
  878. }
  879. inline const ::std::string& HttpRule::put() const {
  880. // @@protoc_insertion_point(field_get:google.api.HttpRule.put)
  881. if (has_put()) {
  882. return pattern_.put_.Get();
  883. }
  884. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  885. }
  886. inline void HttpRule::set_put(const ::std::string& value) {
  887. if (!has_put()) {
  888. clear_pattern();
  889. set_has_put();
  890. pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  891. }
  892. pattern_.put_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  893. GetArenaNoVirtual());
  894. // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
  895. }
  896. #if LANG_CXX11
  897. inline void HttpRule::set_put(::std::string&& value) {
  898. // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
  899. if (!has_put()) {
  900. clear_pattern();
  901. set_has_put();
  902. pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  903. }
  904. pattern_.put_.Set(
  905. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  906. // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.put)
  907. }
  908. #endif
  909. inline void HttpRule::set_put(const char* value) {
  910. GOOGLE_DCHECK(value != NULL);
  911. if (!has_put()) {
  912. clear_pattern();
  913. set_has_put();
  914. pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  915. }
  916. pattern_.put_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  917. ::std::string(value), GetArenaNoVirtual());
  918. // @@protoc_insertion_point(field_set_char:google.api.HttpRule.put)
  919. }
  920. inline void HttpRule::set_put(const char* value,
  921. size_t size) {
  922. if (!has_put()) {
  923. clear_pattern();
  924. set_has_put();
  925. pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  926. }
  927. pattern_.put_.Set(
  928. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  929. reinterpret_cast<const char*>(value), size),
  930. GetArenaNoVirtual());
  931. // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.put)
  932. }
  933. inline ::std::string* HttpRule::mutable_put() {
  934. if (!has_put()) {
  935. clear_pattern();
  936. set_has_put();
  937. pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  938. }
  939. return pattern_.put_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  940. GetArenaNoVirtual());
  941. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put)
  942. }
  943. inline ::std::string* HttpRule::release_put() {
  944. // @@protoc_insertion_point(field_release:google.api.HttpRule.put)
  945. if (has_put()) {
  946. clear_has_pattern();
  947. return pattern_.put_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  948. GetArenaNoVirtual());
  949. } else {
  950. return NULL;
  951. }
  952. }
  953. inline void HttpRule::set_allocated_put(::std::string* put) {
  954. if (!has_put()) {
  955. pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  956. }
  957. clear_pattern();
  958. if (put != NULL) {
  959. set_has_put();
  960. pattern_.put_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), put,
  961. GetArenaNoVirtual());
  962. }
  963. // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put)
  964. }
  965. inline ::std::string* HttpRule::unsafe_arena_release_put() {
  966. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.put)
  967. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  968. if (has_put()) {
  969. clear_has_pattern();
  970. return pattern_.put_.UnsafeArenaRelease(
  971. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  972. } else {
  973. return NULL;
  974. }
  975. }
  976. inline void HttpRule::unsafe_arena_set_allocated_put(::std::string* put) {
  977. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  978. if (!has_put()) {
  979. pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  980. }
  981. clear_pattern();
  982. if (put) {
  983. set_has_put();
  984. pattern_.put_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), put, GetArenaNoVirtual());
  985. }
  986. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.put)
  987. }
  988. // string post = 4;
  989. inline bool HttpRule::has_post() const {
  990. return pattern_case() == kPost;
  991. }
  992. inline void HttpRule::set_has_post() {
  993. _oneof_case_[0] = kPost;
  994. }
  995. inline void HttpRule::clear_post() {
  996. if (has_post()) {
  997. pattern_.post_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  998. GetArenaNoVirtual());
  999. clear_has_pattern();
  1000. }
  1001. }
  1002. inline const ::std::string& HttpRule::post() const {
  1003. // @@protoc_insertion_point(field_get:google.api.HttpRule.post)
  1004. if (has_post()) {
  1005. return pattern_.post_.Get();
  1006. }
  1007. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  1008. }
  1009. inline void HttpRule::set_post(const ::std::string& value) {
  1010. if (!has_post()) {
  1011. clear_pattern();
  1012. set_has_post();
  1013. pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1014. }
  1015. pattern_.post_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  1016. GetArenaNoVirtual());
  1017. // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
  1018. }
  1019. #if LANG_CXX11
  1020. inline void HttpRule::set_post(::std::string&& value) {
  1021. // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
  1022. if (!has_post()) {
  1023. clear_pattern();
  1024. set_has_post();
  1025. pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1026. }
  1027. pattern_.post_.Set(
  1028. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  1029. // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.post)
  1030. }
  1031. #endif
  1032. inline void HttpRule::set_post(const char* value) {
  1033. GOOGLE_DCHECK(value != NULL);
  1034. if (!has_post()) {
  1035. clear_pattern();
  1036. set_has_post();
  1037. pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1038. }
  1039. pattern_.post_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1040. ::std::string(value), GetArenaNoVirtual());
  1041. // @@protoc_insertion_point(field_set_char:google.api.HttpRule.post)
  1042. }
  1043. inline void HttpRule::set_post(const char* value,
  1044. size_t size) {
  1045. if (!has_post()) {
  1046. clear_pattern();
  1047. set_has_post();
  1048. pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1049. }
  1050. pattern_.post_.Set(
  1051. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1052. reinterpret_cast<const char*>(value), size),
  1053. GetArenaNoVirtual());
  1054. // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.post)
  1055. }
  1056. inline ::std::string* HttpRule::mutable_post() {
  1057. if (!has_post()) {
  1058. clear_pattern();
  1059. set_has_post();
  1060. pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1061. }
  1062. return pattern_.post_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1063. GetArenaNoVirtual());
  1064. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post)
  1065. }
  1066. inline ::std::string* HttpRule::release_post() {
  1067. // @@protoc_insertion_point(field_release:google.api.HttpRule.post)
  1068. if (has_post()) {
  1069. clear_has_pattern();
  1070. return pattern_.post_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1071. GetArenaNoVirtual());
  1072. } else {
  1073. return NULL;
  1074. }
  1075. }
  1076. inline void HttpRule::set_allocated_post(::std::string* post) {
  1077. if (!has_post()) {
  1078. pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1079. }
  1080. clear_pattern();
  1081. if (post != NULL) {
  1082. set_has_post();
  1083. pattern_.post_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), post,
  1084. GetArenaNoVirtual());
  1085. }
  1086. // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post)
  1087. }
  1088. inline ::std::string* HttpRule::unsafe_arena_release_post() {
  1089. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.post)
  1090. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1091. if (has_post()) {
  1092. clear_has_pattern();
  1093. return pattern_.post_.UnsafeArenaRelease(
  1094. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1095. } else {
  1096. return NULL;
  1097. }
  1098. }
  1099. inline void HttpRule::unsafe_arena_set_allocated_post(::std::string* post) {
  1100. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1101. if (!has_post()) {
  1102. pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1103. }
  1104. clear_pattern();
  1105. if (post) {
  1106. set_has_post();
  1107. pattern_.post_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), post, GetArenaNoVirtual());
  1108. }
  1109. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.post)
  1110. }
  1111. // string delete = 5;
  1112. inline bool HttpRule::has_delete_() const {
  1113. return pattern_case() == kDelete;
  1114. }
  1115. inline void HttpRule::set_has_delete_() {
  1116. _oneof_case_[0] = kDelete;
  1117. }
  1118. inline void HttpRule::clear_delete_() {
  1119. if (has_delete_()) {
  1120. pattern_.delete__.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1121. GetArenaNoVirtual());
  1122. clear_has_pattern();
  1123. }
  1124. }
  1125. inline const ::std::string& HttpRule::delete_() const {
  1126. // @@protoc_insertion_point(field_get:google.api.HttpRule.delete)
  1127. if (has_delete_()) {
  1128. return pattern_.delete__.Get();
  1129. }
  1130. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  1131. }
  1132. inline void HttpRule::set_delete_(const ::std::string& value) {
  1133. if (!has_delete_()) {
  1134. clear_pattern();
  1135. set_has_delete_();
  1136. pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1137. }
  1138. pattern_.delete__.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  1139. GetArenaNoVirtual());
  1140. // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
  1141. }
  1142. #if LANG_CXX11
  1143. inline void HttpRule::set_delete_(::std::string&& value) {
  1144. // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
  1145. if (!has_delete_()) {
  1146. clear_pattern();
  1147. set_has_delete_();
  1148. pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1149. }
  1150. pattern_.delete__.Set(
  1151. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  1152. // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.delete)
  1153. }
  1154. #endif
  1155. inline void HttpRule::set_delete_(const char* value) {
  1156. GOOGLE_DCHECK(value != NULL);
  1157. if (!has_delete_()) {
  1158. clear_pattern();
  1159. set_has_delete_();
  1160. pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1161. }
  1162. pattern_.delete__.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1163. ::std::string(value), GetArenaNoVirtual());
  1164. // @@protoc_insertion_point(field_set_char:google.api.HttpRule.delete)
  1165. }
  1166. inline void HttpRule::set_delete_(const char* value,
  1167. size_t size) {
  1168. if (!has_delete_()) {
  1169. clear_pattern();
  1170. set_has_delete_();
  1171. pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1172. }
  1173. pattern_.delete__.Set(
  1174. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1175. reinterpret_cast<const char*>(value), size),
  1176. GetArenaNoVirtual());
  1177. // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.delete)
  1178. }
  1179. inline ::std::string* HttpRule::mutable_delete_() {
  1180. if (!has_delete_()) {
  1181. clear_pattern();
  1182. set_has_delete_();
  1183. pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1184. }
  1185. return pattern_.delete__.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1186. GetArenaNoVirtual());
  1187. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete)
  1188. }
  1189. inline ::std::string* HttpRule::release_delete_() {
  1190. // @@protoc_insertion_point(field_release:google.api.HttpRule.delete)
  1191. if (has_delete_()) {
  1192. clear_has_pattern();
  1193. return pattern_.delete__.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1194. GetArenaNoVirtual());
  1195. } else {
  1196. return NULL;
  1197. }
  1198. }
  1199. inline void HttpRule::set_allocated_delete_(::std::string* delete_) {
  1200. if (!has_delete_()) {
  1201. pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1202. }
  1203. clear_pattern();
  1204. if (delete_ != NULL) {
  1205. set_has_delete_();
  1206. pattern_.delete__.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delete_,
  1207. GetArenaNoVirtual());
  1208. }
  1209. // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete)
  1210. }
  1211. inline ::std::string* HttpRule::unsafe_arena_release_delete_() {
  1212. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.delete)
  1213. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1214. if (has_delete_()) {
  1215. clear_has_pattern();
  1216. return pattern_.delete__.UnsafeArenaRelease(
  1217. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1218. } else {
  1219. return NULL;
  1220. }
  1221. }
  1222. inline void HttpRule::unsafe_arena_set_allocated_delete_(::std::string* delete_) {
  1223. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1224. if (!has_delete_()) {
  1225. pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1226. }
  1227. clear_pattern();
  1228. if (delete_) {
  1229. set_has_delete_();
  1230. pattern_.delete__.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delete_, GetArenaNoVirtual());
  1231. }
  1232. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.delete)
  1233. }
  1234. // string patch = 6;
  1235. inline bool HttpRule::has_patch() const {
  1236. return pattern_case() == kPatch;
  1237. }
  1238. inline void HttpRule::set_has_patch() {
  1239. _oneof_case_[0] = kPatch;
  1240. }
  1241. inline void HttpRule::clear_patch() {
  1242. if (has_patch()) {
  1243. pattern_.patch_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1244. GetArenaNoVirtual());
  1245. clear_has_pattern();
  1246. }
  1247. }
  1248. inline const ::std::string& HttpRule::patch() const {
  1249. // @@protoc_insertion_point(field_get:google.api.HttpRule.patch)
  1250. if (has_patch()) {
  1251. return pattern_.patch_.Get();
  1252. }
  1253. return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
  1254. }
  1255. inline void HttpRule::set_patch(const ::std::string& value) {
  1256. if (!has_patch()) {
  1257. clear_pattern();
  1258. set_has_patch();
  1259. pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1260. }
  1261. pattern_.patch_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
  1262. GetArenaNoVirtual());
  1263. // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
  1264. }
  1265. #if LANG_CXX11
  1266. inline void HttpRule::set_patch(::std::string&& value) {
  1267. // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
  1268. if (!has_patch()) {
  1269. clear_pattern();
  1270. set_has_patch();
  1271. pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1272. }
  1273. pattern_.patch_.Set(
  1274. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  1275. // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.patch)
  1276. }
  1277. #endif
  1278. inline void HttpRule::set_patch(const char* value) {
  1279. GOOGLE_DCHECK(value != NULL);
  1280. if (!has_patch()) {
  1281. clear_pattern();
  1282. set_has_patch();
  1283. pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1284. }
  1285. pattern_.patch_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1286. ::std::string(value), GetArenaNoVirtual());
  1287. // @@protoc_insertion_point(field_set_char:google.api.HttpRule.patch)
  1288. }
  1289. inline void HttpRule::set_patch(const char* value,
  1290. size_t size) {
  1291. if (!has_patch()) {
  1292. clear_pattern();
  1293. set_has_patch();
  1294. pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1295. }
  1296. pattern_.patch_.Set(
  1297. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1298. reinterpret_cast<const char*>(value), size),
  1299. GetArenaNoVirtual());
  1300. // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.patch)
  1301. }
  1302. inline ::std::string* HttpRule::mutable_patch() {
  1303. if (!has_patch()) {
  1304. clear_pattern();
  1305. set_has_patch();
  1306. pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1307. }
  1308. return pattern_.patch_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1309. GetArenaNoVirtual());
  1310. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch)
  1311. }
  1312. inline ::std::string* HttpRule::release_patch() {
  1313. // @@protoc_insertion_point(field_release:google.api.HttpRule.patch)
  1314. if (has_patch()) {
  1315. clear_has_pattern();
  1316. return pattern_.patch_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1317. GetArenaNoVirtual());
  1318. } else {
  1319. return NULL;
  1320. }
  1321. }
  1322. inline void HttpRule::set_allocated_patch(::std::string* patch) {
  1323. if (!has_patch()) {
  1324. pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1325. }
  1326. clear_pattern();
  1327. if (patch != NULL) {
  1328. set_has_patch();
  1329. pattern_.patch_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), patch,
  1330. GetArenaNoVirtual());
  1331. }
  1332. // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch)
  1333. }
  1334. inline ::std::string* HttpRule::unsafe_arena_release_patch() {
  1335. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.patch)
  1336. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1337. if (has_patch()) {
  1338. clear_has_pattern();
  1339. return pattern_.patch_.UnsafeArenaRelease(
  1340. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1341. } else {
  1342. return NULL;
  1343. }
  1344. }
  1345. inline void HttpRule::unsafe_arena_set_allocated_patch(::std::string* patch) {
  1346. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1347. if (!has_patch()) {
  1348. pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  1349. }
  1350. clear_pattern();
  1351. if (patch) {
  1352. set_has_patch();
  1353. pattern_.patch_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), patch, GetArenaNoVirtual());
  1354. }
  1355. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.patch)
  1356. }
  1357. // .google.api.CustomHttpPattern custom = 8;
  1358. inline bool HttpRule::has_custom() const {
  1359. return pattern_case() == kCustom;
  1360. }
  1361. inline void HttpRule::set_has_custom() {
  1362. _oneof_case_[0] = kCustom;
  1363. }
  1364. inline void HttpRule::clear_custom() {
  1365. if (has_custom()) {
  1366. if (GetArenaNoVirtual() == NULL) {
  1367. delete pattern_.custom_;
  1368. }
  1369. clear_has_pattern();
  1370. }
  1371. }
  1372. inline ::google::api::CustomHttpPattern* HttpRule::release_custom() {
  1373. // @@protoc_insertion_point(field_release:google.api.HttpRule.custom)
  1374. if (has_custom()) {
  1375. clear_has_pattern();
  1376. ::google::api::CustomHttpPattern* temp = pattern_.custom_;
  1377. if (GetArenaNoVirtual() != NULL) {
  1378. temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
  1379. }
  1380. pattern_.custom_ = NULL;
  1381. return temp;
  1382. } else {
  1383. return NULL;
  1384. }
  1385. }
  1386. inline const ::google::api::CustomHttpPattern& HttpRule::custom() const {
  1387. // @@protoc_insertion_point(field_get:google.api.HttpRule.custom)
  1388. return has_custom()
  1389. ? *pattern_.custom_
  1390. : *reinterpret_cast< ::google::api::CustomHttpPattern*>(&::google::api::_CustomHttpPattern_default_instance_);
  1391. }
  1392. inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() {
  1393. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom)
  1394. if (has_custom()) {
  1395. clear_has_pattern();
  1396. ::google::api::CustomHttpPattern* temp = pattern_.custom_;
  1397. pattern_.custom_ = NULL;
  1398. return temp;
  1399. } else {
  1400. return NULL;
  1401. }
  1402. }
  1403. inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* custom) {
  1404. clear_pattern();
  1405. if (custom) {
  1406. set_has_custom();
  1407. pattern_.custom_ = custom;
  1408. }
  1409. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom)
  1410. }
  1411. inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() {
  1412. if (!has_custom()) {
  1413. clear_pattern();
  1414. set_has_custom();
  1415. pattern_.custom_ =
  1416. ::google::protobuf::Arena::CreateMessage< ::google::api::CustomHttpPattern >(
  1417. GetArenaNoVirtual());
  1418. }
  1419. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom)
  1420. return pattern_.custom_;
  1421. }
  1422. // string body = 7;
  1423. inline void HttpRule::clear_body() {
  1424. body_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1425. }
  1426. inline const ::std::string& HttpRule::body() const {
  1427. // @@protoc_insertion_point(field_get:google.api.HttpRule.body)
  1428. return body_.Get();
  1429. }
  1430. inline void HttpRule::set_body(const ::std::string& value) {
  1431. body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1432. // @@protoc_insertion_point(field_set:google.api.HttpRule.body)
  1433. }
  1434. #if LANG_CXX11
  1435. inline void HttpRule::set_body(::std::string&& value) {
  1436. body_.Set(
  1437. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  1438. // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.body)
  1439. }
  1440. #endif
  1441. inline void HttpRule::set_body(const char* value) {
  1442. GOOGLE_DCHECK(value != NULL);
  1443. body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1444. GetArenaNoVirtual());
  1445. // @@protoc_insertion_point(field_set_char:google.api.HttpRule.body)
  1446. }
  1447. inline void HttpRule::set_body(const char* value,
  1448. size_t size) {
  1449. body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1450. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1451. // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.body)
  1452. }
  1453. inline ::std::string* HttpRule::mutable_body() {
  1454. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body)
  1455. return body_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1456. }
  1457. inline ::std::string* HttpRule::release_body() {
  1458. // @@protoc_insertion_point(field_release:google.api.HttpRule.body)
  1459. return body_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1460. }
  1461. inline void HttpRule::set_allocated_body(::std::string* body) {
  1462. if (body != NULL) {
  1463. } else {
  1464. }
  1465. body_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), body,
  1466. GetArenaNoVirtual());
  1467. // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body)
  1468. }
  1469. inline ::std::string* HttpRule::unsafe_arena_release_body() {
  1470. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.body)
  1471. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1472. return body_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1473. GetArenaNoVirtual());
  1474. }
  1475. inline void HttpRule::unsafe_arena_set_allocated_body(
  1476. ::std::string* body) {
  1477. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1478. if (body != NULL) {
  1479. } else {
  1480. }
  1481. body_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1482. body, GetArenaNoVirtual());
  1483. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.body)
  1484. }
  1485. // repeated .google.api.HttpRule additional_bindings = 11;
  1486. inline int HttpRule::additional_bindings_size() const {
  1487. return additional_bindings_.size();
  1488. }
  1489. inline void HttpRule::clear_additional_bindings() {
  1490. additional_bindings_.Clear();
  1491. }
  1492. inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const {
  1493. // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings)
  1494. return additional_bindings_.Get(index);
  1495. }
  1496. inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) {
  1497. // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings)
  1498. return additional_bindings_.Mutable(index);
  1499. }
  1500. inline ::google::api::HttpRule* HttpRule::add_additional_bindings() {
  1501. // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings)
  1502. return additional_bindings_.Add();
  1503. }
  1504. inline ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
  1505. HttpRule::mutable_additional_bindings() {
  1506. // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings)
  1507. return &additional_bindings_;
  1508. }
  1509. inline const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
  1510. HttpRule::additional_bindings() const {
  1511. // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings)
  1512. return additional_bindings_;
  1513. }
  1514. inline bool HttpRule::has_pattern() const {
  1515. return pattern_case() != PATTERN_NOT_SET;
  1516. }
  1517. inline void HttpRule::clear_has_pattern() {
  1518. _oneof_case_[0] = PATTERN_NOT_SET;
  1519. }
  1520. inline HttpRule::PatternCase HttpRule::pattern_case() const {
  1521. return HttpRule::PatternCase(_oneof_case_[0]);
  1522. }
  1523. // -------------------------------------------------------------------
  1524. // CustomHttpPattern
  1525. // string kind = 1;
  1526. inline void CustomHttpPattern::clear_kind() {
  1527. kind_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1528. }
  1529. inline const ::std::string& CustomHttpPattern::kind() const {
  1530. // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind)
  1531. return kind_.Get();
  1532. }
  1533. inline void CustomHttpPattern::set_kind(const ::std::string& value) {
  1534. kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1535. // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind)
  1536. }
  1537. #if LANG_CXX11
  1538. inline void CustomHttpPattern::set_kind(::std::string&& value) {
  1539. kind_.Set(
  1540. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  1541. // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.kind)
  1542. }
  1543. #endif
  1544. inline void CustomHttpPattern::set_kind(const char* value) {
  1545. GOOGLE_DCHECK(value != NULL);
  1546. kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1547. GetArenaNoVirtual());
  1548. // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.kind)
  1549. }
  1550. inline void CustomHttpPattern::set_kind(const char* value,
  1551. size_t size) {
  1552. kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1553. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1554. // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.kind)
  1555. }
  1556. inline ::std::string* CustomHttpPattern::mutable_kind() {
  1557. // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind)
  1558. return kind_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1559. }
  1560. inline ::std::string* CustomHttpPattern::release_kind() {
  1561. // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind)
  1562. return kind_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1563. }
  1564. inline void CustomHttpPattern::set_allocated_kind(::std::string* kind) {
  1565. if (kind != NULL) {
  1566. } else {
  1567. }
  1568. kind_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), kind,
  1569. GetArenaNoVirtual());
  1570. // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind)
  1571. }
  1572. inline ::std::string* CustomHttpPattern::unsafe_arena_release_kind() {
  1573. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.kind)
  1574. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1575. return kind_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1576. GetArenaNoVirtual());
  1577. }
  1578. inline void CustomHttpPattern::unsafe_arena_set_allocated_kind(
  1579. ::std::string* kind) {
  1580. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1581. if (kind != NULL) {
  1582. } else {
  1583. }
  1584. kind_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1585. kind, GetArenaNoVirtual());
  1586. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.kind)
  1587. }
  1588. // string path = 2;
  1589. inline void CustomHttpPattern::clear_path() {
  1590. path_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1591. }
  1592. inline const ::std::string& CustomHttpPattern::path() const {
  1593. // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path)
  1594. return path_.Get();
  1595. }
  1596. inline void CustomHttpPattern::set_path(const ::std::string& value) {
  1597. path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
  1598. // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path)
  1599. }
  1600. #if LANG_CXX11
  1601. inline void CustomHttpPattern::set_path(::std::string&& value) {
  1602. path_.Set(
  1603. &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
  1604. // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.path)
  1605. }
  1606. #endif
  1607. inline void CustomHttpPattern::set_path(const char* value) {
  1608. GOOGLE_DCHECK(value != NULL);
  1609. path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
  1610. GetArenaNoVirtual());
  1611. // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.path)
  1612. }
  1613. inline void CustomHttpPattern::set_path(const char* value,
  1614. size_t size) {
  1615. path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(
  1616. reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
  1617. // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.path)
  1618. }
  1619. inline ::std::string* CustomHttpPattern::mutable_path() {
  1620. // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path)
  1621. return path_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1622. }
  1623. inline ::std::string* CustomHttpPattern::release_path() {
  1624. // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path)
  1625. return path_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  1626. }
  1627. inline void CustomHttpPattern::set_allocated_path(::std::string* path) {
  1628. if (path != NULL) {
  1629. } else {
  1630. }
  1631. path_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), path,
  1632. GetArenaNoVirtual());
  1633. // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path)
  1634. }
  1635. inline ::std::string* CustomHttpPattern::unsafe_arena_release_path() {
  1636. // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.path)
  1637. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1638. return path_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1639. GetArenaNoVirtual());
  1640. }
  1641. inline void CustomHttpPattern::unsafe_arena_set_allocated_path(
  1642. ::std::string* path) {
  1643. GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
  1644. if (path != NULL) {
  1645. } else {
  1646. }
  1647. path_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
  1648. path, GetArenaNoVirtual());
  1649. // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.path)
  1650. }
  1651. #ifdef __GNUC__
  1652. #pragma GCC diagnostic pop
  1653. #endif // __GNUC__
  1654. // -------------------------------------------------------------------
  1655. // -------------------------------------------------------------------
  1656. // @@protoc_insertion_point(namespace_scope)
  1657. } // namespace api
  1658. } // namespace google
  1659. // @@protoc_insertion_point(global_scope)
  1660. #endif // PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED