http.pb.h 66 KB

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