http.pb.h 69 KB

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