| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128112911301131113211331134113511361137113811391140114111421143114411451146114711481149115011511152115311541155115611571158115911601161116211631164116511661167116811691170117111721173117411751176117711781179118011811182118311841185118611871188118911901191119211931194119511961197119811991200120112021203120412051206120712081209121012111212121312141215121612171218121912201221122212231224122512261227122812291230123112321233123412351236123712381239124012411242124312441245124612471248124912501251125212531254125512561257125812591260126112621263126412651266126712681269127012711272127312741275127612771278127912801281128212831284128512861287128812891290129112921293129412951296129712981299130013011302130313041305130613071308130913101311131213131314131513161317131813191320132113221323132413251326132713281329133013311332133313341335133613371338133913401341134213431344134513461347134813491350135113521353135413551356135713581359136013611362136313641365136613671368136913701371137213731374137513761377137813791380138113821383138413851386138713881389139013911392139313941395139613971398139914001401140214031404140514061407140814091410141114121413141414151416141714181419142014211422142314241425142614271428142914301431143214331434143514361437143814391440144114421443144414451446144714481449145014511452145314541455145614571458145914601461146214631464146514661467146814691470147114721473147414751476147714781479148014811482148314841485148614871488148914901491149214931494149514961497149814991500150115021503150415051506150715081509151015111512151315141515151615171518151915201521152215231524152515261527152815291530153115321533153415351536153715381539154015411542154315441545154615471548154915501551155215531554155515561557155815591560156115621563156415651566156715681569157015711572157315741575157615771578157915801581158215831584158515861587158815891590159115921593159415951596159715981599160016011602160316041605160616071608160916101611161216131614161516161617161816191620162116221623162416251626162716281629163016311632163316341635163616371638163916401641164216431644164516461647164816491650165116521653165416551656165716581659166016611662166316641665166616671668166916701671167216731674167516761677167816791680168116821683168416851686168716881689169016911692169316941695169616971698169917001701170217031704170517061707170817091710171117121713171417151716171717181719172017211722172317241725172617271728172917301731173217331734173517361737173817391740174117421743174417451746174717481749175017511752175317541755175617571758175917601761176217631764176517661767176817691770177117721773177417751776177717781779178017811782178317841785178617871788178917901791179217931794179517961797179817991800180118021803180418051806180718081809181018111812181318141815181618171818181918201821182218231824182518261827182818291830183118321833183418351836183718381839184018411842184318441845184618471848184918501851185218531854185518561857185818591860186118621863186418651866186718681869187018711872187318741875187618771878187918801881188218831884188518861887188818891890189118921893189418951896189718981899190019011902190319041905190619071908190919101911191219131914191519161917191819191920192119221923192419251926192719281929193019311932193319341935193619371938193919401941194219431944194519461947194819491950195119521953195419551956195719581959196019611962196319641965196619671968196919701971197219731974197519761977197819791980198119821983198419851986198719881989199019911992199319941995199619971998199920002001200220032004200520062007200820092010201120122013201420152016201720182019202020212022202320242025202620272028202920302031203220332034203520362037203820392040204120422043204420452046204720482049205020512052205320542055205620572058 |
- /*
- * Copyright 2021 Google LLC
- *
- * Licensed under the Apache License, Version 2.0 (the "License");
- * you may not use this file except in compliance with the License.
- * You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing, software
- * distributed under the License is distributed on an "AS IS" BASIS,
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
- * See the License for the specific language governing permissions and
- * limitations under the License.
- */
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/api/http.proto
- #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto
- #define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto
- #include <limits>
- #include <string>
- #include <google/protobuf/port_def.inc>
- #if PROTOBUF_VERSION < 3011000
- #error This file was generated by a newer version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please update
- #error your headers.
- #endif
- #if 3011002 < PROTOBUF_MIN_PROTOC_VERSION
- #error This file was generated by an older version of protoc which is
- #error incompatible with your Protocol Buffer headers. Please
- #error regenerate this file with a newer version of protoc.
- #endif
- #include <google/protobuf/port_undef.inc>
- #include <google/protobuf/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/inlined_string_field.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/generated_message_reflection.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- #include <google/protobuf/port_def.inc>
- #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fhttp_2eproto
- PROTOBUF_NAMESPACE_OPEN
- namespace internal {
- class AnyMetadata;
- } // namespace internal
- PROTOBUF_NAMESPACE_CLOSE
- // Internal implementation detail -- do not use these members.
- struct TableStruct_google_2fapi_2fhttp_2eproto {
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
- PROTOBUF_SECTION_VARIABLE(protodesc_cold);
- static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
- static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
- static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
- };
- extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fhttp_2eproto;
- namespace google {
- namespace api {
- class CustomHttpPattern;
- class CustomHttpPatternDefaultTypeInternal;
- extern CustomHttpPatternDefaultTypeInternal _CustomHttpPattern_default_instance_;
- class Http;
- class HttpDefaultTypeInternal;
- extern HttpDefaultTypeInternal _Http_default_instance_;
- class HttpRule;
- class HttpRuleDefaultTypeInternal;
- extern HttpRuleDefaultTypeInternal _HttpRule_default_instance_;
- } // namespace api
- } // namespace google
- PROTOBUF_NAMESPACE_OPEN
- template<> ::google::api::CustomHttpPattern* Arena::CreateMaybeMessage<::google::api::CustomHttpPattern>(Arena*);
- template<> ::google::api::Http* Arena::CreateMaybeMessage<::google::api::Http>(Arena*);
- template<> ::google::api::HttpRule* Arena::CreateMaybeMessage<::google::api::HttpRule>(Arena*);
- PROTOBUF_NAMESPACE_CLOSE
- namespace google {
- namespace api {
- // ===================================================================
- class Http :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ {
- public:
- Http();
- virtual ~Http();
- Http(const Http& from);
- Http(Http&& from) noexcept
- : Http() {
- *this = ::std::move(from);
- }
- inline Http& operator=(const Http& from) {
- CopyFrom(from);
- return *this;
- }
- inline Http& operator=(Http&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const Http& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const Http* internal_default_instance() {
- return reinterpret_cast<const Http*>(
- &_Http_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- friend void swap(Http& a, Http& b) {
- a.Swap(&b);
- }
- inline void Swap(Http* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(Http* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline Http* New() const final {
- return CreateMaybeMessage<Http>(nullptr);
- }
- Http* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<Http>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const Http& from);
- void MergeFrom(const Http& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(Http* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.api.Http";
- }
- protected:
- explicit Http(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fapi_2fhttp_2eproto);
- return ::descriptor_table_google_2fapi_2fhttp_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kRulesFieldNumber = 1,
- kFullyDecodeReservedExpansionFieldNumber = 2,
- };
- // repeated .google.api.HttpRule rules = 1;
- int rules_size() const;
- private:
- int _internal_rules_size() const;
- public:
- void clear_rules();
- ::google::api::HttpRule* mutable_rules(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >*
- mutable_rules();
- private:
- const ::google::api::HttpRule& _internal_rules(int index) const;
- ::google::api::HttpRule* _internal_add_rules();
- public:
- const ::google::api::HttpRule& rules(int index) const;
- ::google::api::HttpRule* add_rules();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >&
- rules() const;
- // bool fully_decode_reserved_expansion = 2;
- void clear_fully_decode_reserved_expansion();
- bool fully_decode_reserved_expansion() const;
- void set_fully_decode_reserved_expansion(bool value);
- private:
- bool _internal_fully_decode_reserved_expansion() const;
- void _internal_set_fully_decode_reserved_expansion(bool value);
- public:
- // @@protoc_insertion_point(class_scope:google.api.Http)
- private:
- class _Internal;
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > rules_;
- bool fully_decode_reserved_expansion_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
- };
- // -------------------------------------------------------------------
- class HttpRule :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ {
- public:
- HttpRule();
- virtual ~HttpRule();
- HttpRule(const HttpRule& from);
- HttpRule(HttpRule&& from) noexcept
- : HttpRule() {
- *this = ::std::move(from);
- }
- inline HttpRule& operator=(const HttpRule& from) {
- CopyFrom(from);
- return *this;
- }
- inline HttpRule& operator=(HttpRule&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const HttpRule& default_instance();
- enum PatternCase {
- kGet = 2,
- kPut = 3,
- kPost = 4,
- kDelete = 5,
- kPatch = 6,
- kCustom = 8,
- PATTERN_NOT_SET = 0,
- };
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const HttpRule* internal_default_instance() {
- return reinterpret_cast<const HttpRule*>(
- &_HttpRule_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- friend void swap(HttpRule& a, HttpRule& b) {
- a.Swap(&b);
- }
- inline void Swap(HttpRule* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(HttpRule* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline HttpRule* New() const final {
- return CreateMaybeMessage<HttpRule>(nullptr);
- }
- HttpRule* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<HttpRule>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const HttpRule& from);
- void MergeFrom(const HttpRule& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(HttpRule* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.api.HttpRule";
- }
- protected:
- explicit HttpRule(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fapi_2fhttp_2eproto);
- return ::descriptor_table_google_2fapi_2fhttp_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kAdditionalBindingsFieldNumber = 11,
- kSelectorFieldNumber = 1,
- kBodyFieldNumber = 7,
- kGetFieldNumber = 2,
- kPutFieldNumber = 3,
- kPostFieldNumber = 4,
- kDeleteFieldNumber = 5,
- kPatchFieldNumber = 6,
- kCustomFieldNumber = 8,
- };
- // repeated .google.api.HttpRule additional_bindings = 11;
- int additional_bindings_size() const;
- private:
- int _internal_additional_bindings_size() const;
- public:
- void clear_additional_bindings();
- ::google::api::HttpRule* mutable_additional_bindings(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >*
- mutable_additional_bindings();
- private:
- const ::google::api::HttpRule& _internal_additional_bindings(int index) const;
- ::google::api::HttpRule* _internal_add_additional_bindings();
- public:
- const ::google::api::HttpRule& additional_bindings(int index) const;
- ::google::api::HttpRule* add_additional_bindings();
- const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >&
- additional_bindings() const;
- // string selector = 1;
- void clear_selector();
- const std::string& selector() const;
- void set_selector(const std::string& value);
- void set_selector(std::string&& value);
- void set_selector(const char* value);
- void set_selector(const char* value, size_t size);
- std::string* mutable_selector();
- std::string* release_selector();
- void set_allocated_selector(std::string* selector);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_selector();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_selector(
- std::string* selector);
- private:
- const std::string& _internal_selector() const;
- void _internal_set_selector(const std::string& value);
- std::string* _internal_mutable_selector();
- public:
- // string body = 7;
- void clear_body();
- const std::string& body() const;
- void set_body(const std::string& value);
- void set_body(std::string&& value);
- void set_body(const char* value);
- void set_body(const char* value, size_t size);
- std::string* mutable_body();
- std::string* release_body();
- void set_allocated_body(std::string* body);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_body();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_body(
- std::string* body);
- private:
- const std::string& _internal_body() const;
- void _internal_set_body(const std::string& value);
- std::string* _internal_mutable_body();
- public:
- // string get = 2;
- private:
- bool _internal_has_get() const;
- public:
- void clear_get();
- const std::string& get() const;
- void set_get(const std::string& value);
- void set_get(std::string&& value);
- void set_get(const char* value);
- void set_get(const char* value, size_t size);
- std::string* mutable_get();
- std::string* release_get();
- void set_allocated_get(std::string* get);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_get();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_get(
- std::string* get);
- private:
- const std::string& _internal_get() const;
- void _internal_set_get(const std::string& value);
- std::string* _internal_mutable_get();
- public:
- // string put = 3;
- private:
- bool _internal_has_put() const;
- public:
- void clear_put();
- const std::string& put() const;
- void set_put(const std::string& value);
- void set_put(std::string&& value);
- void set_put(const char* value);
- void set_put(const char* value, size_t size);
- std::string* mutable_put();
- std::string* release_put();
- void set_allocated_put(std::string* put);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_put();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_put(
- std::string* put);
- private:
- const std::string& _internal_put() const;
- void _internal_set_put(const std::string& value);
- std::string* _internal_mutable_put();
- public:
- // string post = 4;
- private:
- bool _internal_has_post() const;
- public:
- void clear_post();
- const std::string& post() const;
- void set_post(const std::string& value);
- void set_post(std::string&& value);
- void set_post(const char* value);
- void set_post(const char* value, size_t size);
- std::string* mutable_post();
- std::string* release_post();
- void set_allocated_post(std::string* post);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_post();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_post(
- std::string* post);
- private:
- const std::string& _internal_post() const;
- void _internal_set_post(const std::string& value);
- std::string* _internal_mutable_post();
- public:
- // string delete = 5;
- private:
- bool _internal_has_delete_() const;
- public:
- void clear_delete_();
- const std::string& delete_() const;
- void set_delete_(const std::string& value);
- void set_delete_(std::string&& value);
- void set_delete_(const char* value);
- void set_delete_(const char* value, size_t size);
- std::string* mutable_delete_();
- std::string* release_delete_();
- void set_allocated_delete_(std::string* delete_);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_delete_();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_delete_(
- std::string* delete_);
- private:
- const std::string& _internal_delete_() const;
- void _internal_set_delete_(const std::string& value);
- std::string* _internal_mutable_delete_();
- public:
- // string patch = 6;
- private:
- bool _internal_has_patch() const;
- public:
- void clear_patch();
- const std::string& patch() const;
- void set_patch(const std::string& value);
- void set_patch(std::string&& value);
- void set_patch(const char* value);
- void set_patch(const char* value, size_t size);
- std::string* mutable_patch();
- std::string* release_patch();
- void set_allocated_patch(std::string* patch);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_patch();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_patch(
- std::string* patch);
- private:
- const std::string& _internal_patch() const;
- void _internal_set_patch(const std::string& value);
- std::string* _internal_mutable_patch();
- public:
- // .google.api.CustomHttpPattern custom = 8;
- bool has_custom() const;
- private:
- bool _internal_has_custom() const;
- public:
- void clear_custom();
- const ::google::api::CustomHttpPattern& custom() const;
- ::google::api::CustomHttpPattern* release_custom();
- ::google::api::CustomHttpPattern* mutable_custom();
- void set_allocated_custom(::google::api::CustomHttpPattern* custom);
- private:
- const ::google::api::CustomHttpPattern& _internal_custom() const;
- ::google::api::CustomHttpPattern* _internal_mutable_custom();
- public:
- void unsafe_arena_set_allocated_custom(
- ::google::api::CustomHttpPattern* custom);
- ::google::api::CustomHttpPattern* unsafe_arena_release_custom();
- void clear_pattern();
- PatternCase pattern_case() const;
- // @@protoc_insertion_point(class_scope:google.api.HttpRule)
- private:
- class _Internal;
- void set_has_get();
- void set_has_put();
- void set_has_post();
- void set_has_delete_();
- void set_has_patch();
- void set_has_custom();
- inline bool has_pattern() const;
- inline void clear_has_pattern();
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr selector_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr body_;
- union PatternUnion {
- PatternUnion() {}
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr get_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr put_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr post_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr delete__;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr patch_;
- ::google::api::CustomHttpPattern* custom_;
- } pattern_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1];
- friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
- };
- // -------------------------------------------------------------------
- class CustomHttpPattern :
- public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ {
- public:
- CustomHttpPattern();
- virtual ~CustomHttpPattern();
- CustomHttpPattern(const CustomHttpPattern& from);
- CustomHttpPattern(CustomHttpPattern&& from) noexcept
- : CustomHttpPattern() {
- *this = ::std::move(from);
- }
- inline CustomHttpPattern& operator=(const CustomHttpPattern& from) {
- CopyFrom(from);
- return *this;
- }
- inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const final {
- return MaybeArenaPtr();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
- return GetDescriptor();
- }
- static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
- return GetMetadataStatic().descriptor;
- }
- static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
- return GetMetadataStatic().reflection;
- }
- static const CustomHttpPattern& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const CustomHttpPattern* internal_default_instance() {
- return reinterpret_cast<const CustomHttpPattern*>(
- &_CustomHttpPattern_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 2;
- friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) {
- a.Swap(&b);
- }
- inline void Swap(CustomHttpPattern* other) {
- if (other == this) return;
- if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
- InternalSwap(other);
- } else {
- ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
- }
- }
- void UnsafeArenaSwap(CustomHttpPattern* other) {
- if (other == this) return;
- GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
- InternalSwap(other);
- }
- // implements Message ----------------------------------------------
- inline CustomHttpPattern* New() const final {
- return CreateMaybeMessage<CustomHttpPattern>(nullptr);
- }
- CustomHttpPattern* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
- return CreateMaybeMessage<CustomHttpPattern>(arena);
- }
- void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
- void CopyFrom(const CustomHttpPattern& from);
- void MergeFrom(const CustomHttpPattern& from);
- PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
- ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- inline void SharedCtor();
- inline void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(CustomHttpPattern* other);
- friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
- static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
- return "google.api.CustomHttpPattern";
- }
- protected:
- explicit CustomHttpPattern(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
- private:
- inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
- private:
- static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
- ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2fapi_2fhttp_2eproto);
- return ::descriptor_table_google_2fapi_2fhttp_2eproto.file_level_metadata[kIndexInFileMessages];
- }
- public:
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- enum : int {
- kKindFieldNumber = 1,
- kPathFieldNumber = 2,
- };
- // string kind = 1;
- void clear_kind();
- const std::string& kind() const;
- void set_kind(const std::string& value);
- void set_kind(std::string&& value);
- void set_kind(const char* value);
- void set_kind(const char* value, size_t size);
- std::string* mutable_kind();
- std::string* release_kind();
- void set_allocated_kind(std::string* kind);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_kind();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_kind(
- std::string* kind);
- private:
- const std::string& _internal_kind() const;
- void _internal_set_kind(const std::string& value);
- std::string* _internal_mutable_kind();
- public:
- // string path = 2;
- void clear_path();
- const std::string& path() const;
- void set_path(const std::string& value);
- void set_path(std::string&& value);
- void set_path(const char* value);
- void set_path(const char* value, size_t size);
- std::string* mutable_path();
- std::string* release_path();
- void set_allocated_path(std::string* path);
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- std::string* unsafe_arena_release_path();
- GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
- " string fields are deprecated and will be removed in a"
- " future release.")
- void unsafe_arena_set_allocated_path(
- std::string* path);
- private:
- const std::string& _internal_path() const;
- void _internal_set_path(const std::string& value);
- std::string* _internal_mutable_path();
- public:
- // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
- private:
- class _Internal;
- ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr kind_;
- ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr path_;
- mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
- friend struct ::TableStruct_google_2fapi_2fhttp_2eproto;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Http
- // repeated .google.api.HttpRule rules = 1;
- inline int Http::_internal_rules_size() const {
- return rules_.size();
- }
- inline int Http::rules_size() const {
- return _internal_rules_size();
- }
- inline void Http::clear_rules() {
- rules_.Clear();
- }
- inline ::google::api::HttpRule* Http::mutable_rules(int index) {
- // @@protoc_insertion_point(field_mutable:google.api.Http.rules)
- return rules_.Mutable(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >*
- Http::mutable_rules() {
- // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules)
- return &rules_;
- }
- inline const ::google::api::HttpRule& Http::_internal_rules(int index) const {
- return rules_.Get(index);
- }
- inline const ::google::api::HttpRule& Http::rules(int index) const {
- // @@protoc_insertion_point(field_get:google.api.Http.rules)
- return _internal_rules(index);
- }
- inline ::google::api::HttpRule* Http::_internal_add_rules() {
- return rules_.Add();
- }
- inline ::google::api::HttpRule* Http::add_rules() {
- // @@protoc_insertion_point(field_add:google.api.Http.rules)
- return _internal_add_rules();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >&
- Http::rules() const {
- // @@protoc_insertion_point(field_list:google.api.Http.rules)
- return rules_;
- }
- // bool fully_decode_reserved_expansion = 2;
- inline void Http::clear_fully_decode_reserved_expansion() {
- fully_decode_reserved_expansion_ = false;
- }
- inline bool Http::_internal_fully_decode_reserved_expansion() const {
- return fully_decode_reserved_expansion_;
- }
- inline bool Http::fully_decode_reserved_expansion() const {
- // @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion)
- return _internal_fully_decode_reserved_expansion();
- }
- inline void Http::_internal_set_fully_decode_reserved_expansion(bool value) {
-
- fully_decode_reserved_expansion_ = value;
- }
- inline void Http::set_fully_decode_reserved_expansion(bool value) {
- _internal_set_fully_decode_reserved_expansion(value);
- // @@protoc_insertion_point(field_set:google.api.Http.fully_decode_reserved_expansion)
- }
- // -------------------------------------------------------------------
- // HttpRule
- // string selector = 1;
- inline void HttpRule::clear_selector() {
- selector_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline const std::string& HttpRule::selector() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.selector)
- return _internal_selector();
- }
- inline void HttpRule::set_selector(const std::string& value) {
- _internal_set_selector(value);
- // @@protoc_insertion_point(field_set:google.api.HttpRule.selector)
- }
- inline std::string* HttpRule::mutable_selector() {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector)
- return _internal_mutable_selector();
- }
- inline const std::string& HttpRule::_internal_selector() const {
- return selector_.Get();
- }
- inline void HttpRule::_internal_set_selector(const std::string& value) {
-
- selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- }
- inline void HttpRule::set_selector(std::string&& value) {
-
- selector_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.selector)
- }
- inline void HttpRule::set_selector(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.HttpRule.selector)
- }
- inline void HttpRule::set_selector(const char* value,
- size_t size) {
-
- selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.selector)
- }
- inline std::string* HttpRule::_internal_mutable_selector() {
-
- return selector_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline std::string* HttpRule::release_selector() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.selector)
-
- return selector_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void HttpRule::set_allocated_selector(std::string* selector) {
- if (selector != nullptr) {
-
- } else {
-
- }
- selector_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), selector,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.selector)
- }
- inline std::string* HttpRule::unsafe_arena_release_selector() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.selector)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
-
- return selector_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void HttpRule::unsafe_arena_set_allocated_selector(
- std::string* selector) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (selector != nullptr) {
-
- } else {
-
- }
- selector_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- selector, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.selector)
- }
- // string get = 2;
- inline bool HttpRule::_internal_has_get() const {
- return pattern_case() == kGet;
- }
- inline void HttpRule::set_has_get() {
- _oneof_case_[0] = kGet;
- }
- inline void HttpRule::clear_get() {
- if (_internal_has_get()) {
- pattern_.get_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const std::string& HttpRule::get() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.get)
- return _internal_get();
- }
- inline void HttpRule::set_get(const std::string& value) {
- _internal_set_get(value);
- // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
- }
- inline std::string* HttpRule::mutable_get() {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get)
- return _internal_mutable_get();
- }
- inline const std::string& HttpRule::_internal_get() const {
- if (_internal_has_get()) {
- return pattern_.get_.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::_internal_set_get(const std::string& value) {
- if (!_internal_has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.get_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- }
- inline void HttpRule::set_get(std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
- if (!_internal_has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.get_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.get)
- }
- inline void HttpRule::set_get(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- if (!_internal_has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.get_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.HttpRule.get)
- }
- inline void HttpRule::set_get(const char* value,
- size_t size) {
- if (!_internal_has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.get_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.get)
- }
- inline std::string* HttpRule::_internal_mutable_get() {
- if (!_internal_has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.get_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline std::string* HttpRule::release_get() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.get)
- if (_internal_has_get()) {
- clear_has_pattern();
- return pattern_.get_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::set_allocated_get(std::string* get) {
- if (has_pattern()) {
- clear_pattern();
- }
- if (get != nullptr) {
- set_has_get();
- pattern_.get_.UnsafeSetDefault(get);
- }
- // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.get)
- }
- inline std::string* HttpRule::unsafe_arena_release_get() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.get)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (_internal_has_get()) {
- clear_has_pattern();
- return pattern_.get_.UnsafeArenaRelease(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_get(std::string* get) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (!_internal_has_get()) {
- pattern_.get_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (get) {
- set_has_get();
- pattern_.get_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), get, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.get)
- }
- // string put = 3;
- inline bool HttpRule::_internal_has_put() const {
- return pattern_case() == kPut;
- }
- inline void HttpRule::set_has_put() {
- _oneof_case_[0] = kPut;
- }
- inline void HttpRule::clear_put() {
- if (_internal_has_put()) {
- pattern_.put_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const std::string& HttpRule::put() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.put)
- return _internal_put();
- }
- inline void HttpRule::set_put(const std::string& value) {
- _internal_set_put(value);
- // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
- }
- inline std::string* HttpRule::mutable_put() {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put)
- return _internal_mutable_put();
- }
- inline const std::string& HttpRule::_internal_put() const {
- if (_internal_has_put()) {
- return pattern_.put_.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::_internal_set_put(const std::string& value) {
- if (!_internal_has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.put_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- }
- inline void HttpRule::set_put(std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
- if (!_internal_has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.put_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.put)
- }
- inline void HttpRule::set_put(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- if (!_internal_has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.put_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.HttpRule.put)
- }
- inline void HttpRule::set_put(const char* value,
- size_t size) {
- if (!_internal_has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.put_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.put)
- }
- inline std::string* HttpRule::_internal_mutable_put() {
- if (!_internal_has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.put_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline std::string* HttpRule::release_put() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.put)
- if (_internal_has_put()) {
- clear_has_pattern();
- return pattern_.put_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::set_allocated_put(std::string* put) {
- if (has_pattern()) {
- clear_pattern();
- }
- if (put != nullptr) {
- set_has_put();
- pattern_.put_.UnsafeSetDefault(put);
- }
- // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.put)
- }
- inline std::string* HttpRule::unsafe_arena_release_put() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.put)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (_internal_has_put()) {
- clear_has_pattern();
- return pattern_.put_.UnsafeArenaRelease(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_put(std::string* put) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (!_internal_has_put()) {
- pattern_.put_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (put) {
- set_has_put();
- pattern_.put_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), put, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.put)
- }
- // string post = 4;
- inline bool HttpRule::_internal_has_post() const {
- return pattern_case() == kPost;
- }
- inline void HttpRule::set_has_post() {
- _oneof_case_[0] = kPost;
- }
- inline void HttpRule::clear_post() {
- if (_internal_has_post()) {
- pattern_.post_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const std::string& HttpRule::post() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.post)
- return _internal_post();
- }
- inline void HttpRule::set_post(const std::string& value) {
- _internal_set_post(value);
- // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
- }
- inline std::string* HttpRule::mutable_post() {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post)
- return _internal_mutable_post();
- }
- inline const std::string& HttpRule::_internal_post() const {
- if (_internal_has_post()) {
- return pattern_.post_.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::_internal_set_post(const std::string& value) {
- if (!_internal_has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.post_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- }
- inline void HttpRule::set_post(std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
- if (!_internal_has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.post_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.post)
- }
- inline void HttpRule::set_post(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- if (!_internal_has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.post_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.HttpRule.post)
- }
- inline void HttpRule::set_post(const char* value,
- size_t size) {
- if (!_internal_has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.post_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.post)
- }
- inline std::string* HttpRule::_internal_mutable_post() {
- if (!_internal_has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.post_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline std::string* HttpRule::release_post() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.post)
- if (_internal_has_post()) {
- clear_has_pattern();
- return pattern_.post_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::set_allocated_post(std::string* post) {
- if (has_pattern()) {
- clear_pattern();
- }
- if (post != nullptr) {
- set_has_post();
- pattern_.post_.UnsafeSetDefault(post);
- }
- // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.post)
- }
- inline std::string* HttpRule::unsafe_arena_release_post() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.post)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (_internal_has_post()) {
- clear_has_pattern();
- return pattern_.post_.UnsafeArenaRelease(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_post(std::string* post) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (!_internal_has_post()) {
- pattern_.post_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (post) {
- set_has_post();
- pattern_.post_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), post, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.post)
- }
- // string delete = 5;
- inline bool HttpRule::_internal_has_delete_() const {
- return pattern_case() == kDelete;
- }
- inline void HttpRule::set_has_delete_() {
- _oneof_case_[0] = kDelete;
- }
- inline void HttpRule::clear_delete_() {
- if (_internal_has_delete_()) {
- pattern_.delete__.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const std::string& HttpRule::delete_() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.delete)
- return _internal_delete_();
- }
- inline void HttpRule::set_delete_(const std::string& value) {
- _internal_set_delete_(value);
- // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
- }
- inline std::string* HttpRule::mutable_delete_() {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete)
- return _internal_mutable_delete_();
- }
- inline const std::string& HttpRule::_internal_delete_() const {
- if (_internal_has_delete_()) {
- return pattern_.delete__.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::_internal_set_delete_(const std::string& value) {
- if (!_internal_has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.delete__.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- }
- inline void HttpRule::set_delete_(std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
- if (!_internal_has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.delete__.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.delete)
- }
- inline void HttpRule::set_delete_(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- if (!_internal_has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.delete__.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.HttpRule.delete)
- }
- inline void HttpRule::set_delete_(const char* value,
- size_t size) {
- if (!_internal_has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.delete__.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.delete)
- }
- inline std::string* HttpRule::_internal_mutable_delete_() {
- if (!_internal_has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.delete__.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline std::string* HttpRule::release_delete_() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.delete)
- if (_internal_has_delete_()) {
- clear_has_pattern();
- return pattern_.delete__.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::set_allocated_delete_(std::string* delete_) {
- if (has_pattern()) {
- clear_pattern();
- }
- if (delete_ != nullptr) {
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(delete_);
- }
- // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.delete)
- }
- inline std::string* HttpRule::unsafe_arena_release_delete_() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.delete)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (_internal_has_delete_()) {
- clear_has_pattern();
- return pattern_.delete__.UnsafeArenaRelease(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_delete_(std::string* delete_) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (!_internal_has_delete_()) {
- pattern_.delete__.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (delete_) {
- set_has_delete_();
- pattern_.delete__.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), delete_, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.delete)
- }
- // string patch = 6;
- inline bool HttpRule::_internal_has_patch() const {
- return pattern_case() == kPatch;
- }
- inline void HttpRule::set_has_patch() {
- _oneof_case_[0] = kPatch;
- }
- inline void HttpRule::clear_patch() {
- if (_internal_has_patch()) {
- pattern_.patch_.Destroy(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const std::string& HttpRule::patch() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.patch)
- return _internal_patch();
- }
- inline void HttpRule::set_patch(const std::string& value) {
- _internal_set_patch(value);
- // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
- }
- inline std::string* HttpRule::mutable_patch() {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch)
- return _internal_mutable_patch();
- }
- inline const std::string& HttpRule::_internal_patch() const {
- if (_internal_has_patch()) {
- return pattern_.patch_.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::_internal_set_patch(const std::string& value) {
- if (!_internal_has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.patch_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- }
- inline void HttpRule::set_patch(std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
- if (!_internal_has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.patch_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.patch)
- }
- inline void HttpRule::set_patch(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
- if (!_internal_has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.patch_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- ::std::string(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.HttpRule.patch)
- }
- inline void HttpRule::set_patch(const char* value,
- size_t size) {
- if (!_internal_has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.patch_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.patch)
- }
- inline std::string* HttpRule::_internal_mutable_patch() {
- if (!_internal_has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.patch_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline std::string* HttpRule::release_patch() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.patch)
- if (_internal_has_patch()) {
- clear_has_pattern();
- return pattern_.patch_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::set_allocated_patch(std::string* patch) {
- if (has_pattern()) {
- clear_pattern();
- }
- if (patch != nullptr) {
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(patch);
- }
- // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.patch)
- }
- inline std::string* HttpRule::unsafe_arena_release_patch() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.patch)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (_internal_has_patch()) {
- clear_has_pattern();
- return pattern_.patch_.UnsafeArenaRelease(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_patch(std::string* patch) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (!_internal_has_patch()) {
- pattern_.patch_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (patch) {
- set_has_patch();
- pattern_.patch_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), patch, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.patch)
- }
- // .google.api.CustomHttpPattern custom = 8;
- inline bool HttpRule::_internal_has_custom() const {
- return pattern_case() == kCustom;
- }
- inline bool HttpRule::has_custom() const {
- return _internal_has_custom();
- }
- inline void HttpRule::set_has_custom() {
- _oneof_case_[0] = kCustom;
- }
- inline void HttpRule::clear_custom() {
- if (_internal_has_custom()) {
- if (GetArenaNoVirtual() == nullptr) {
- delete pattern_.custom_;
- }
- clear_has_pattern();
- }
- }
- inline ::google::api::CustomHttpPattern* HttpRule::release_custom() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.custom)
- if (_internal_has_custom()) {
- clear_has_pattern();
- ::google::api::CustomHttpPattern* temp = pattern_.custom_;
- if (GetArenaNoVirtual() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- pattern_.custom_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline const ::google::api::CustomHttpPattern& HttpRule::_internal_custom() const {
- return _internal_has_custom()
- ? *pattern_.custom_
- : *reinterpret_cast< ::google::api::CustomHttpPattern*>(&::google::api::_CustomHttpPattern_default_instance_);
- }
- inline const ::google::api::CustomHttpPattern& HttpRule::custom() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.custom)
- return _internal_custom();
- }
- inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom)
- if (_internal_has_custom()) {
- clear_has_pattern();
- ::google::api::CustomHttpPattern* temp = pattern_.custom_;
- pattern_.custom_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_custom(::google::api::CustomHttpPattern* custom) {
- clear_pattern();
- if (custom) {
- set_has_custom();
- pattern_.custom_ = custom;
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.custom)
- }
- inline ::google::api::CustomHttpPattern* HttpRule::_internal_mutable_custom() {
- if (!_internal_has_custom()) {
- clear_pattern();
- set_has_custom();
- pattern_.custom_ = CreateMaybeMessage< ::google::api::CustomHttpPattern >(
- GetArenaNoVirtual());
- }
- return pattern_.custom_;
- }
- inline ::google::api::CustomHttpPattern* HttpRule::mutable_custom() {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom)
- return _internal_mutable_custom();
- }
- // string body = 7;
- inline void HttpRule::clear_body() {
- body_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline const std::string& HttpRule::body() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.body)
- return _internal_body();
- }
- inline void HttpRule::set_body(const std::string& value) {
- _internal_set_body(value);
- // @@protoc_insertion_point(field_set:google.api.HttpRule.body)
- }
- inline std::string* HttpRule::mutable_body() {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body)
- return _internal_mutable_body();
- }
- inline const std::string& HttpRule::_internal_body() const {
- return body_.Get();
- }
- inline void HttpRule::_internal_set_body(const std::string& value) {
-
- body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- }
- inline void HttpRule::set_body(std::string&& value) {
-
- body_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.body)
- }
- inline void HttpRule::set_body(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.HttpRule.body)
- }
- inline void HttpRule::set_body(const char* value,
- size_t size) {
-
- body_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.HttpRule.body)
- }
- inline std::string* HttpRule::_internal_mutable_body() {
-
- return body_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline std::string* HttpRule::release_body() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.body)
-
- return body_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void HttpRule::set_allocated_body(std::string* body) {
- if (body != nullptr) {
-
- } else {
-
- }
- body_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), body,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:google.api.HttpRule.body)
- }
- inline std::string* HttpRule::unsafe_arena_release_body() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.body)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
-
- return body_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void HttpRule::unsafe_arena_set_allocated_body(
- std::string* body) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (body != nullptr) {
-
- } else {
-
- }
- body_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- body, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.body)
- }
- // repeated .google.api.HttpRule additional_bindings = 11;
- inline int HttpRule::_internal_additional_bindings_size() const {
- return additional_bindings_.size();
- }
- inline int HttpRule::additional_bindings_size() const {
- return _internal_additional_bindings_size();
- }
- inline void HttpRule::clear_additional_bindings() {
- additional_bindings_.Clear();
- }
- inline ::google::api::HttpRule* HttpRule::mutable_additional_bindings(int index) {
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.additional_bindings)
- return additional_bindings_.Mutable(index);
- }
- inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >*
- HttpRule::mutable_additional_bindings() {
- // @@protoc_insertion_point(field_mutable_list:google.api.HttpRule.additional_bindings)
- return &additional_bindings_;
- }
- inline const ::google::api::HttpRule& HttpRule::_internal_additional_bindings(int index) const {
- return additional_bindings_.Get(index);
- }
- inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings)
- return _internal_additional_bindings(index);
- }
- inline ::google::api::HttpRule* HttpRule::_internal_add_additional_bindings() {
- return additional_bindings_.Add();
- }
- inline ::google::api::HttpRule* HttpRule::add_additional_bindings() {
- // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings)
- return _internal_add_additional_bindings();
- }
- inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >&
- HttpRule::additional_bindings() const {
- // @@protoc_insertion_point(field_list:google.api.HttpRule.additional_bindings)
- return additional_bindings_;
- }
- inline bool HttpRule::has_pattern() const {
- return pattern_case() != PATTERN_NOT_SET;
- }
- inline void HttpRule::clear_has_pattern() {
- _oneof_case_[0] = PATTERN_NOT_SET;
- }
- inline HttpRule::PatternCase HttpRule::pattern_case() const {
- return HttpRule::PatternCase(_oneof_case_[0]);
- }
- // -------------------------------------------------------------------
- // CustomHttpPattern
- // string kind = 1;
- inline void CustomHttpPattern::clear_kind() {
- kind_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline const std::string& CustomHttpPattern::kind() const {
- // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind)
- return _internal_kind();
- }
- inline void CustomHttpPattern::set_kind(const std::string& value) {
- _internal_set_kind(value);
- // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind)
- }
- inline std::string* CustomHttpPattern::mutable_kind() {
- // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind)
- return _internal_mutable_kind();
- }
- inline const std::string& CustomHttpPattern::_internal_kind() const {
- return kind_.Get();
- }
- inline void CustomHttpPattern::_internal_set_kind(const std::string& value) {
-
- kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::set_kind(std::string&& value) {
-
- kind_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.kind)
- }
- inline void CustomHttpPattern::set_kind(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.kind)
- }
- inline void CustomHttpPattern::set_kind(const char* value,
- size_t size) {
-
- kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.kind)
- }
- inline std::string* CustomHttpPattern::_internal_mutable_kind() {
-
- return kind_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline std::string* CustomHttpPattern::release_kind() {
- // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind)
-
- return kind_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::set_allocated_kind(std::string* kind) {
- if (kind != nullptr) {
-
- } else {
-
- }
- kind_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), kind,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.kind)
- }
- inline std::string* CustomHttpPattern::unsafe_arena_release_kind() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.kind)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
-
- return kind_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::unsafe_arena_set_allocated_kind(
- std::string* kind) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (kind != nullptr) {
-
- } else {
-
- }
- kind_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- kind, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.kind)
- }
- // string path = 2;
- inline void CustomHttpPattern::clear_path() {
- path_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline const std::string& CustomHttpPattern::path() const {
- // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path)
- return _internal_path();
- }
- inline void CustomHttpPattern::set_path(const std::string& value) {
- _internal_set_path(value);
- // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path)
- }
- inline std::string* CustomHttpPattern::mutable_path() {
- // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path)
- return _internal_mutable_path();
- }
- inline const std::string& CustomHttpPattern::_internal_path() const {
- return path_.Get();
- }
- inline void CustomHttpPattern::_internal_set_path(const std::string& value) {
-
- path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::set_path(std::string&& value) {
-
- path_.Set(
- &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.path)
- }
- inline void CustomHttpPattern::set_path(const char* value) {
- GOOGLE_DCHECK(value != nullptr);
-
- path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_char:google.api.CustomHttpPattern.path)
- }
- inline void CustomHttpPattern::set_path(const char* value,
- size_t size) {
-
- path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
- reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_pointer:google.api.CustomHttpPattern.path)
- }
- inline std::string* CustomHttpPattern::_internal_mutable_path() {
-
- return path_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline std::string* CustomHttpPattern::release_path() {
- // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path)
-
- return path_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::set_allocated_path(std::string* path) {
- if (path != nullptr) {
-
- } else {
-
- }
- path_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), path,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_allocated:google.api.CustomHttpPattern.path)
- }
- inline std::string* CustomHttpPattern::unsafe_arena_release_path() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.CustomHttpPattern.path)
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
-
- return path_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::unsafe_arena_set_allocated_path(
- std::string* path) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
- if (path != nullptr) {
-
- } else {
-
- }
- path_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
- path, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.CustomHttpPattern.path)
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace api
- } // namespace google
- // @@protoc_insertion_point(global_scope)
- #include <google/protobuf/port_undef.inc>
- #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fhttp_2eproto
|