http.pb.h 59 KB

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