http.pb.h 75 KB

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