| 1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495969798991001011021031041051061071081091101111121131141151161171181191201211221231241251261271281291301311321331341351361371381391401411421431441451461471481491501511521531541551561571581591601611621631641651661671681691701711721731741751761771781791801811821831841851861871881891901911921931941951961971981992002012022032042052062072082092102112122132142152162172182192202212222232242252262272282292302312322332342352362372382392402412422432442452462472482492502512522532542552562572582592602612622632642652662672682692702712722732742752762772782792802812822832842852862872882892902912922932942952962972982993003013023033043053063073083093103113123133143153163173183193203213223233243253263273283293303313323333343353363373383393403413423433443453463473483493503513523533543553563573583593603613623633643653663673683693703713723733743753763773783793803813823833843853863873883893903913923933943953963973983994004014024034044054064074084094104114124134144154164174184194204214224234244254264274284294304314324334344354364374384394404414424434444454464474484494504514524534544554564574584594604614624634644654664674684694704714724734744754764774784794804814824834844854864874884894904914924934944954964974984995005015025035045055065075085095105115125135145155165175185195205215225235245255265275285295305315325335345355365375385395405415425435445455465475485495505515525535545555565575585595605615625635645655665675685695705715725735745755765775785795805815825835845855865875885895905915925935945955965975985996006016026036046056066076086096106116126136146156166176186196206216226236246256266276286296306316326336346356366376386396406416426436446456466476486496506516526536546556566576586596606616626636646656666676686696706716726736746756766776786796806816826836846856866876886896906916926936946956966976986997007017027037047057067077087097107117127137147157167177187197207217227237247257267277287297307317327337347357367377387397407417427437447457467477487497507517527537547557567577587597607617627637647657667677687697707717727737747757767777787797807817827837847857867877887897907917927937947957967977987998008018028038048058068078088098108118128138148158168178188198208218228238248258268278288298308318328338348358368378388398408418428438448458468478488498508518528538548558568578588598608618628638648658668678688698708718728738748758768778788798808818828838848858868878888898908918928938948958968978988999009019029039049059069079089099109119129139149159169179189199209219229239249259269279289299309319329339349359369379389399409419429439449459469479489499509519529539549559569579589599609619629639649659669679689699709719729739749759769779789799809819829839849859869879889899909919929939949959969979989991000100110021003100410051006100710081009101010111012101310141015101610171018101910201021102210231024102510261027102810291030103110321033103410351036103710381039104010411042104310441045104610471048104910501051105210531054105510561057105810591060106110621063106410651066106710681069107010711072107310741075107610771078107910801081108210831084108510861087108810891090109110921093109410951096109710981099110011011102110311041105110611071108110911101111111211131114111511161117111811191120112111221123112411251126112711281129113011311132113311341135113611371138113911401141114211431144114511461147114811491150115111521153115411551156115711581159116011611162116311641165116611671168116911701171117211731174117511761177117811791180118111821183118411851186118711881189119011911192119311941195119611971198119912001201120212031204120512061207120812091210121112121213121412151216121712181219122012211222122312241225122612271228122912301231123212331234123512361237123812391240124112421243124412451246124712481249125012511252125312541255125612571258125912601261126212631264126512661267126812691270127112721273127412751276127712781279128012811282128312841285128612871288128912901291129212931294129512961297129812991300130113021303130413051306130713081309131013111312131313141315131613171318131913201321132213231324132513261327132813291330133113321333133413351336133713381339134013411342134313441345134613471348134913501351135213531354135513561357135813591360136113621363136413651366136713681369137013711372137313741375137613771378137913801381138213831384138513861387138813891390139113921393139413951396139713981399140014011402140314041405140614071408140914101411141214131414141514161417141814191420142114221423142414251426142714281429143014311432143314341435143614371438143914401441144214431444144514461447144814491450145114521453145414551456145714581459146014611462146314641465146614671468146914701471147214731474147514761477147814791480148114821483148414851486148714881489149014911492149314941495149614971498149915001501150215031504150515061507150815091510151115121513151415151516151715181519152015211522152315241525152615271528152915301531153215331534153515361537153815391540154115421543154415451546154715481549155015511552155315541555155615571558155915601561156215631564156515661567156815691570157115721573157415751576157715781579158015811582158315841585158615871588158915901591159215931594159515961597159815991600160116021603160416051606160716081609161016111612161316141615161616171618161916201621162216231624162516261627162816291630163116321633163416351636163716381639164016411642164316441645164616471648164916501651165216531654165516561657165816591660166116621663166416651666166716681669167016711672167316741675167616771678167916801681168216831684168516861687168816891690169116921693169416951696169716981699170017011702170317041705170617071708170917101711171217131714171517161717171817191720172117221723172417251726172717281729173017311732173317341735173617371738173917401741174217431744174517461747174817491750175117521753175417551756175717581759176017611762176317641765176617671768176917701771177217731774177517761777177817791780178117821783178417851786178717881789179017911792179317941795179617971798 |
- /*
- * Copyright 2018 Google
- *
- * 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 PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
- #define PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3005000
- #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 3005000 < GOOGLE_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/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/metadata.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)
- namespace protobuf_google_2fapi_2fhttp_2eproto {
- // Internal implementation detail -- do not use these members.
- struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[3];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- void InitDefaultsHttpImpl();
- void InitDefaultsHttp();
- void InitDefaultsHttpRuleImpl();
- void InitDefaultsHttpRule();
- void InitDefaultsCustomHttpPatternImpl();
- void InitDefaultsCustomHttpPattern();
- inline void InitDefaults() {
- InitDefaultsHttp();
- InitDefaultsHttpRule();
- InitDefaultsCustomHttpPattern();
- }
- } // namespace protobuf_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
- namespace google {
- namespace api {
- // ===================================================================
- class Http : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.Http) */ {
- public:
- Http();
- virtual ~Http();
- Http(const Http& from);
- inline Http& operator=(const Http& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- Http(Http&& from) noexcept
- : Http() {
- *this = ::std::move(from);
- }
- inline Http& operator=(Http&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- 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 PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 0;
- void UnsafeArenaSwap(Http* other);
- void Swap(Http* other);
- friend void swap(Http& a, Http& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline Http* New() const PROTOBUF_FINAL { return New(NULL); }
- Http* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const Http& from);
- void MergeFrom(const Http& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(Http* other);
- protected:
- explicit Http(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated .google.api.HttpRule rules = 1;
- int rules_size() const;
- void clear_rules();
- static const int kRulesFieldNumber = 1;
- const ::google::api::HttpRule& rules(int index) const;
- ::google::api::HttpRule* mutable_rules(int index);
- ::google::api::HttpRule* add_rules();
- ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
- mutable_rules();
- const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
- rules() const;
- // @@protoc_insertion_point(class_scope:google.api.Http)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > rules_;
- mutable int _cached_size_;
- friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
- friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpImpl();
- };
- // -------------------------------------------------------------------
- class HttpRule : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.HttpRule) */ {
- public:
- HttpRule();
- virtual ~HttpRule();
- HttpRule(const HttpRule& from);
- inline HttpRule& operator=(const HttpRule& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- HttpRule(HttpRule&& from) noexcept
- : HttpRule() {
- *this = ::std::move(from);
- }
- inline HttpRule& operator=(HttpRule&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- 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 PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 1;
- void UnsafeArenaSwap(HttpRule* other);
- void Swap(HttpRule* other);
- friend void swap(HttpRule& a, HttpRule& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline HttpRule* New() const PROTOBUF_FINAL { return New(NULL); }
- HttpRule* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const HttpRule& from);
- void MergeFrom(const HttpRule& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(HttpRule* other);
- protected:
- explicit HttpRule(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated .google.api.HttpRule additional_bindings = 11;
- int additional_bindings_size() const;
- void clear_additional_bindings();
- static const int kAdditionalBindingsFieldNumber = 11;
- const ::google::api::HttpRule& additional_bindings(int index) const;
- ::google::api::HttpRule* mutable_additional_bindings(int index);
- ::google::api::HttpRule* add_additional_bindings();
- ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
- mutable_additional_bindings();
- const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
- additional_bindings() const;
- // string selector = 1;
- void clear_selector();
- static const int kSelectorFieldNumber = 1;
- const ::std::string& selector() const;
- void set_selector(const ::std::string& value);
- #if LANG_CXX11
- void set_selector(::std::string&& value);
- #endif
- 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);
- 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();
- 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);
- // string body = 7;
- void clear_body();
- static const int kBodyFieldNumber = 7;
- const ::std::string& body() const;
- void set_body(const ::std::string& value);
- #if LANG_CXX11
- void set_body(::std::string&& value);
- #endif
- 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);
- 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();
- 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);
- // string get = 2;
- private:
- bool has_get() const;
- public:
- void clear_get();
- static const int kGetFieldNumber = 2;
- const ::std::string& get() const;
- void set_get(const ::std::string& value);
- #if LANG_CXX11
- void set_get(::std::string&& value);
- #endif
- 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);
- 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();
- 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);
- // string put = 3;
- private:
- bool has_put() const;
- public:
- void clear_put();
- static const int kPutFieldNumber = 3;
- const ::std::string& put() const;
- void set_put(const ::std::string& value);
- #if LANG_CXX11
- void set_put(::std::string&& value);
- #endif
- 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);
- 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();
- 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);
- // string post = 4;
- private:
- bool has_post() const;
- public:
- void clear_post();
- static const int kPostFieldNumber = 4;
- const ::std::string& post() const;
- void set_post(const ::std::string& value);
- #if LANG_CXX11
- void set_post(::std::string&& value);
- #endif
- 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);
- 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();
- 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);
- // string delete = 5;
- private:
- bool has_delete_() const;
- public:
- void clear_delete_();
- static const int kDeleteFieldNumber = 5;
- const ::std::string& delete_() const;
- void set_delete_(const ::std::string& value);
- #if LANG_CXX11
- void set_delete_(::std::string&& value);
- #endif
- 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_);
- 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_();
- 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_);
- // string patch = 6;
- private:
- bool has_patch() const;
- public:
- void clear_patch();
- static const int kPatchFieldNumber = 6;
- const ::std::string& patch() const;
- void set_patch(const ::std::string& value);
- #if LANG_CXX11
- void set_patch(::std::string&& value);
- #endif
- 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);
- 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();
- 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);
- // .google.api.CustomHttpPattern custom = 8;
- bool has_custom() const;
- void clear_custom();
- static const int kCustomFieldNumber = 8;
- private:
- void _slow_mutable_custom();
- public:
- const ::google::api::CustomHttpPattern& custom() const;
- ::google::api::CustomHttpPattern* release_custom();
- ::google::api::CustomHttpPattern* mutable_custom();
- void set_allocated_custom(::google::api::CustomHttpPattern* custom);
- void unsafe_arena_set_allocated_custom(
- ::google::api::CustomHttpPattern* custom);
- ::google::api::CustomHttpPattern* unsafe_arena_release_custom();
- PatternCase pattern_case() const;
- // @@protoc_insertion_point(class_scope:google.api.HttpRule)
- private:
- 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;
- void clear_pattern();
- inline void clear_has_pattern();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule > additional_bindings_;
- ::google::protobuf::internal::ArenaStringPtr selector_;
- ::google::protobuf::internal::ArenaStringPtr body_;
- union PatternUnion {
- PatternUnion() {}
- ::google::protobuf::internal::ArenaStringPtr get_;
- ::google::protobuf::internal::ArenaStringPtr put_;
- ::google::protobuf::internal::ArenaStringPtr post_;
- ::google::protobuf::internal::ArenaStringPtr delete__;
- ::google::protobuf::internal::ArenaStringPtr patch_;
- ::google::api::CustomHttpPattern* custom_;
- } pattern_;
- mutable int _cached_size_;
- ::google::protobuf::uint32 _oneof_case_[1];
- friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
- friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsHttpRuleImpl();
- };
- // -------------------------------------------------------------------
- class CustomHttpPattern : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.CustomHttpPattern) */ {
- public:
- CustomHttpPattern();
- virtual ~CustomHttpPattern();
- CustomHttpPattern(const CustomHttpPattern& from);
- inline CustomHttpPattern& operator=(const CustomHttpPattern& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- CustomHttpPattern(CustomHttpPattern&& from) noexcept
- : CustomHttpPattern() {
- *this = ::std::move(from);
- }
- inline CustomHttpPattern& operator=(CustomHttpPattern&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL {
- return GetArenaNoVirtual();
- }
- inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL {
- return MaybeArenaPtr();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- 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 PROTOBUF_CONSTEXPR int const kIndexInFileMessages =
- 2;
- void UnsafeArenaSwap(CustomHttpPattern* other);
- void Swap(CustomHttpPattern* other);
- friend void swap(CustomHttpPattern& a, CustomHttpPattern& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline CustomHttpPattern* New() const PROTOBUF_FINAL { return New(NULL); }
- CustomHttpPattern* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL;
- void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL;
- void CopyFrom(const CustomHttpPattern& from);
- void MergeFrom(const CustomHttpPattern& from);
- void Clear() PROTOBUF_FINAL;
- bool IsInitialized() const PROTOBUF_FINAL;
- size_t ByteSizeLong() const PROTOBUF_FINAL;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL;
- int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const PROTOBUF_FINAL;
- void InternalSwap(CustomHttpPattern* other);
- protected:
- explicit CustomHttpPattern(::google::protobuf::Arena* arena);
- private:
- static void ArenaDtor(void* object);
- inline void RegisterArenaDtor(::google::protobuf::Arena* arena);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // string kind = 1;
- void clear_kind();
- static const int kKindFieldNumber = 1;
- const ::std::string& kind() const;
- void set_kind(const ::std::string& value);
- #if LANG_CXX11
- void set_kind(::std::string&& value);
- #endif
- 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);
- 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();
- 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);
- // string path = 2;
- void clear_path();
- static const int kPathFieldNumber = 2;
- const ::std::string& path() const;
- void set_path(const ::std::string& value);
- #if LANG_CXX11
- void set_path(::std::string&& value);
- #endif
- 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);
- 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();
- 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);
- // @@protoc_insertion_point(class_scope:google.api.CustomHttpPattern)
- private:
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- template <typename T> friend class ::google::protobuf::Arena::InternalHelper;
- typedef void InternalArenaConstructable_;
- typedef void DestructorSkippable_;
- ::google::protobuf::internal::ArenaStringPtr kind_;
- ::google::protobuf::internal::ArenaStringPtr path_;
- mutable int _cached_size_;
- friend struct ::protobuf_google_2fapi_2fhttp_2eproto::TableStruct;
- friend void ::protobuf_google_2fapi_2fhttp_2eproto::InitDefaultsCustomHttpPatternImpl();
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // Http
- // repeated .google.api.HttpRule rules = 1;
- inline int Http::rules_size() const {
- return rules_.size();
- }
- inline void Http::clear_rules() {
- rules_.Clear();
- }
- inline const ::google::api::HttpRule& Http::rules(int index) const {
- // @@protoc_insertion_point(field_get:google.api.Http.rules)
- return rules_.Get(index);
- }
- inline ::google::api::HttpRule* Http::mutable_rules(int index) {
- // @@protoc_insertion_point(field_mutable:google.api.Http.rules)
- return rules_.Mutable(index);
- }
- inline ::google::api::HttpRule* Http::add_rules() {
- // @@protoc_insertion_point(field_add:google.api.Http.rules)
- return rules_.Add();
- }
- inline ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >*
- Http::mutable_rules() {
- // @@protoc_insertion_point(field_mutable_list:google.api.Http.rules)
- return &rules_;
- }
- inline const ::google::protobuf::RepeatedPtrField< ::google::api::HttpRule >&
- Http::rules() const {
- // @@protoc_insertion_point(field_list:google.api.Http.rules)
- return rules_;
- }
- // -------------------------------------------------------------------
- // HttpRule
- // string selector = 1;
- inline void HttpRule::clear_selector() {
- selector_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline const ::std::string& HttpRule::selector() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.selector)
- return selector_.Get();
- }
- inline void HttpRule::set_selector(const ::std::string& value) {
-
- selector_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.selector)
- }
- #if LANG_CXX11
- inline void HttpRule::set_selector(::std::string&& value) {
-
- selector_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.selector)
- }
- #endif
- inline void HttpRule::set_selector(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- selector_.Set(&::google::protobuf::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(&::google::protobuf::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::mutable_selector() {
-
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.selector)
- return selector_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* HttpRule::release_selector() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.selector)
-
- return selector_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void HttpRule::set_allocated_selector(::std::string* selector) {
- if (selector != NULL) {
-
- } else {
-
- }
- selector_.SetAllocated(&::google::protobuf::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() != NULL);
-
- return selector_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void HttpRule::unsafe_arena_set_allocated_selector(
- ::std::string* selector) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (selector != NULL) {
-
- } else {
-
- }
- selector_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- selector, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.selector)
- }
- // string get = 2;
- inline bool HttpRule::has_get() const {
- return pattern_case() == kGet;
- }
- inline void HttpRule::set_has_get() {
- _oneof_case_[0] = kGet;
- }
- inline void HttpRule::clear_get() {
- if (has_get()) {
- pattern_.get_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const ::std::string& HttpRule::get() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.get)
- if (has_get()) {
- return pattern_.get_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_get(const ::std::string& value) {
- if (!has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.get_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
- }
- #if LANG_CXX11
- inline void HttpRule::set_get(::std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
- if (!has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.get_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.get)
- }
- #endif
- inline void HttpRule::set_get(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.get_.Set(&::google::protobuf::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 (!has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.get_.Set(
- &::google::protobuf::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::mutable_get() {
- if (!has_get()) {
- clear_pattern();
- set_has_get();
- pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.get_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.get)
- }
- inline ::std::string* HttpRule::release_get() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.get)
- if (has_get()) {
- clear_has_pattern();
- return pattern_.get_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::set_allocated_get(::std::string* get) {
- if (!has_get()) {
- pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (get != NULL) {
- set_has_get();
- pattern_.get_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), get,
- GetArenaNoVirtual());
- }
- // @@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() != NULL);
- if (has_get()) {
- clear_has_pattern();
- return pattern_.get_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_get(::std::string* get) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_get()) {
- pattern_.get_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (get) {
- set_has_get();
- pattern_.get_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), get, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.get)
- }
- // string put = 3;
- inline bool HttpRule::has_put() const {
- return pattern_case() == kPut;
- }
- inline void HttpRule::set_has_put() {
- _oneof_case_[0] = kPut;
- }
- inline void HttpRule::clear_put() {
- if (has_put()) {
- pattern_.put_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const ::std::string& HttpRule::put() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.put)
- if (has_put()) {
- return pattern_.put_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_put(const ::std::string& value) {
- if (!has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.put_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
- }
- #if LANG_CXX11
- inline void HttpRule::set_put(::std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
- if (!has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.put_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.put)
- }
- #endif
- inline void HttpRule::set_put(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.put_.Set(&::google::protobuf::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 (!has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.put_.Set(
- &::google::protobuf::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::mutable_put() {
- if (!has_put()) {
- clear_pattern();
- set_has_put();
- pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.put_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.put)
- }
- inline ::std::string* HttpRule::release_put() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.put)
- if (has_put()) {
- clear_has_pattern();
- return pattern_.put_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::set_allocated_put(::std::string* put) {
- if (!has_put()) {
- pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (put != NULL) {
- set_has_put();
- pattern_.put_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), put,
- GetArenaNoVirtual());
- }
- // @@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() != NULL);
- if (has_put()) {
- clear_has_pattern();
- return pattern_.put_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_put(::std::string* put) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_put()) {
- pattern_.put_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (put) {
- set_has_put();
- pattern_.put_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), put, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.put)
- }
- // string post = 4;
- inline bool HttpRule::has_post() const {
- return pattern_case() == kPost;
- }
- inline void HttpRule::set_has_post() {
- _oneof_case_[0] = kPost;
- }
- inline void HttpRule::clear_post() {
- if (has_post()) {
- pattern_.post_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const ::std::string& HttpRule::post() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.post)
- if (has_post()) {
- return pattern_.post_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_post(const ::std::string& value) {
- if (!has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.post_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
- }
- #if LANG_CXX11
- inline void HttpRule::set_post(::std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
- if (!has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.post_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.post)
- }
- #endif
- inline void HttpRule::set_post(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.post_.Set(&::google::protobuf::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 (!has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.post_.Set(
- &::google::protobuf::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::mutable_post() {
- if (!has_post()) {
- clear_pattern();
- set_has_post();
- pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.post_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.post)
- }
- inline ::std::string* HttpRule::release_post() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.post)
- if (has_post()) {
- clear_has_pattern();
- return pattern_.post_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::set_allocated_post(::std::string* post) {
- if (!has_post()) {
- pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (post != NULL) {
- set_has_post();
- pattern_.post_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), post,
- GetArenaNoVirtual());
- }
- // @@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() != NULL);
- if (has_post()) {
- clear_has_pattern();
- return pattern_.post_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_post(::std::string* post) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_post()) {
- pattern_.post_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (post) {
- set_has_post();
- pattern_.post_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), post, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.post)
- }
- // string delete = 5;
- inline bool HttpRule::has_delete_() const {
- return pattern_case() == kDelete;
- }
- inline void HttpRule::set_has_delete_() {
- _oneof_case_[0] = kDelete;
- }
- inline void HttpRule::clear_delete_() {
- if (has_delete_()) {
- pattern_.delete__.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const ::std::string& HttpRule::delete_() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.delete)
- if (has_delete_()) {
- return pattern_.delete__.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_delete_(const ::std::string& value) {
- if (!has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.delete__.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
- }
- #if LANG_CXX11
- inline void HttpRule::set_delete_(::std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
- if (!has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.delete__.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.delete)
- }
- #endif
- inline void HttpRule::set_delete_(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.delete__.Set(&::google::protobuf::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 (!has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.delete__.Set(
- &::google::protobuf::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::mutable_delete_() {
- if (!has_delete_()) {
- clear_pattern();
- set_has_delete_();
- pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.delete__.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.delete)
- }
- inline ::std::string* HttpRule::release_delete_() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.delete)
- if (has_delete_()) {
- clear_has_pattern();
- return pattern_.delete__.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::set_allocated_delete_(::std::string* delete_) {
- if (!has_delete_()) {
- pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (delete_ != NULL) {
- set_has_delete_();
- pattern_.delete__.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delete_,
- GetArenaNoVirtual());
- }
- // @@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() != NULL);
- if (has_delete_()) {
- clear_has_pattern();
- return pattern_.delete__.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_delete_(::std::string* delete_) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_delete_()) {
- pattern_.delete__.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (delete_) {
- set_has_delete_();
- pattern_.delete__.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), delete_, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.delete)
- }
- // string patch = 6;
- inline bool HttpRule::has_patch() const {
- return pattern_case() == kPatch;
- }
- inline void HttpRule::set_has_patch() {
- _oneof_case_[0] = kPatch;
- }
- inline void HttpRule::clear_patch() {
- if (has_patch()) {
- pattern_.patch_.Destroy(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- clear_has_pattern();
- }
- }
- inline const ::std::string& HttpRule::patch() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.patch)
- if (has_patch()) {
- return pattern_.patch_.Get();
- }
- return *&::google::protobuf::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_patch(const ::std::string& value) {
- if (!has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.patch_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value,
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
- }
- #if LANG_CXX11
- inline void HttpRule::set_patch(::std::string&& value) {
- // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
- if (!has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.patch_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.patch)
- }
- #endif
- inline void HttpRule::set_patch(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- if (!has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.patch_.Set(&::google::protobuf::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 (!has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- pattern_.patch_.Set(
- &::google::protobuf::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::mutable_patch() {
- if (!has_patch()) {
- clear_pattern();
- set_has_patch();
- pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- return pattern_.patch_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.patch)
- }
- inline ::std::string* HttpRule::release_patch() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.patch)
- if (has_patch()) {
- clear_has_pattern();
- return pattern_.patch_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::set_allocated_patch(::std::string* patch) {
- if (!has_patch()) {
- pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (patch != NULL) {
- set_has_patch();
- pattern_.patch_.SetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), patch,
- GetArenaNoVirtual());
- }
- // @@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() != NULL);
- if (has_patch()) {
- clear_has_pattern();
- return pattern_.patch_.UnsafeArenaRelease(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- } else {
- return NULL;
- }
- }
- inline void HttpRule::unsafe_arena_set_allocated_patch(::std::string* patch) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (!has_patch()) {
- pattern_.patch_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- clear_pattern();
- if (patch) {
- set_has_patch();
- pattern_.patch_.UnsafeArenaSetAllocated(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), patch, GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_unsafe_arena_set_allocated:google.api.HttpRule.patch)
- }
- // .google.api.CustomHttpPattern custom = 8;
- inline bool HttpRule::has_custom() const {
- return pattern_case() == kCustom;
- }
- inline void HttpRule::set_has_custom() {
- _oneof_case_[0] = kCustom;
- }
- inline void HttpRule::clear_custom() {
- if (has_custom()) {
- if (GetArenaNoVirtual() == NULL) {
- delete pattern_.custom_;
- }
- clear_has_pattern();
- }
- }
- inline ::google::api::CustomHttpPattern* HttpRule::release_custom() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.custom)
- if (has_custom()) {
- clear_has_pattern();
- ::google::api::CustomHttpPattern* temp = pattern_.custom_;
- if (GetArenaNoVirtual() != NULL) {
- temp = ::google::protobuf::internal::DuplicateIfNonNull(temp, NULL);
- }
- pattern_.custom_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- inline const ::google::api::CustomHttpPattern& HttpRule::custom() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.custom)
- return has_custom()
- ? *pattern_.custom_
- : *reinterpret_cast< ::google::api::CustomHttpPattern*>(&::google::api::_CustomHttpPattern_default_instance_);
- }
- inline ::google::api::CustomHttpPattern* HttpRule::unsafe_arena_release_custom() {
- // @@protoc_insertion_point(field_unsafe_arena_release:google.api.HttpRule.custom)
- if (has_custom()) {
- clear_has_pattern();
- ::google::api::CustomHttpPattern* temp = pattern_.custom_;
- pattern_.custom_ = NULL;
- return temp;
- } else {
- return NULL;
- }
- }
- 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::mutable_custom() {
- if (!has_custom()) {
- clear_pattern();
- set_has_custom();
- pattern_.custom_ =
- ::google::protobuf::Arena::CreateMessage< ::google::api::CustomHttpPattern >(
- GetArenaNoVirtual());
- }
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.custom)
- return pattern_.custom_;
- }
- // string body = 7;
- inline void HttpRule::clear_body() {
- body_.ClearToEmpty(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline const ::std::string& HttpRule::body() const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.body)
- return body_.Get();
- }
- inline void HttpRule::set_body(const ::std::string& value) {
-
- body_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.body)
- }
- #if LANG_CXX11
- inline void HttpRule::set_body(::std::string&& value) {
-
- body_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.HttpRule.body)
- }
- #endif
- inline void HttpRule::set_body(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- body_.Set(&::google::protobuf::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(&::google::protobuf::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::mutable_body() {
-
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.body)
- return body_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* HttpRule::release_body() {
- // @@protoc_insertion_point(field_release:google.api.HttpRule.body)
-
- return body_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void HttpRule::set_allocated_body(::std::string* body) {
- if (body != NULL) {
-
- } else {
-
- }
- body_.SetAllocated(&::google::protobuf::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() != NULL);
-
- return body_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void HttpRule::unsafe_arena_set_allocated_body(
- ::std::string* body) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (body != NULL) {
-
- } else {
-
- }
- body_.UnsafeArenaSetAllocated(&::google::protobuf::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::additional_bindings_size() const {
- return additional_bindings_.size();
- }
- inline void HttpRule::clear_additional_bindings() {
- additional_bindings_.Clear();
- }
- inline const ::google::api::HttpRule& HttpRule::additional_bindings(int index) const {
- // @@protoc_insertion_point(field_get:google.api.HttpRule.additional_bindings)
- return additional_bindings_.Get(index);
- }
- 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 ::google::api::HttpRule* HttpRule::add_additional_bindings() {
- // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings)
- return additional_bindings_.Add();
- }
- inline ::google::protobuf::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::protobuf::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(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline const ::std::string& CustomHttpPattern::kind() const {
- // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.kind)
- return kind_.Get();
- }
- inline void CustomHttpPattern::set_kind(const ::std::string& value) {
-
- kind_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind)
- }
- #if LANG_CXX11
- inline void CustomHttpPattern::set_kind(::std::string&& value) {
-
- kind_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.kind)
- }
- #endif
- inline void CustomHttpPattern::set_kind(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- kind_.Set(&::google::protobuf::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(&::google::protobuf::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::mutable_kind() {
-
- // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.kind)
- return kind_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* CustomHttpPattern::release_kind() {
- // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.kind)
-
- return kind_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::set_allocated_kind(::std::string* kind) {
- if (kind != NULL) {
-
- } else {
-
- }
- kind_.SetAllocated(&::google::protobuf::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() != NULL);
-
- return kind_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::unsafe_arena_set_allocated_kind(
- ::std::string* kind) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (kind != NULL) {
-
- } else {
-
- }
- kind_.UnsafeArenaSetAllocated(&::google::protobuf::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(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline const ::std::string& CustomHttpPattern::path() const {
- // @@protoc_insertion_point(field_get:google.api.CustomHttpPattern.path)
- return path_.Get();
- }
- inline void CustomHttpPattern::set_path(const ::std::string& value) {
-
- path_.Set(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path)
- }
- #if LANG_CXX11
- inline void CustomHttpPattern::set_path(::std::string&& value) {
-
- path_.Set(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set_rvalue:google.api.CustomHttpPattern.path)
- }
- #endif
- inline void CustomHttpPattern::set_path(const char* value) {
- GOOGLE_DCHECK(value != NULL);
-
- path_.Set(&::google::protobuf::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(&::google::protobuf::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::mutable_path() {
-
- // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.path)
- return path_.Mutable(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline ::std::string* CustomHttpPattern::release_path() {
- // @@protoc_insertion_point(field_release:google.api.CustomHttpPattern.path)
-
- return path_.Release(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::set_allocated_path(::std::string* path) {
- if (path != NULL) {
-
- } else {
-
- }
- path_.SetAllocated(&::google::protobuf::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() != NULL);
-
- return path_.UnsafeArenaRelease(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- GetArenaNoVirtual());
- }
- inline void CustomHttpPattern::unsafe_arena_set_allocated_path(
- ::std::string* path) {
- GOOGLE_DCHECK(GetArenaNoVirtual() != NULL);
- if (path != NULL) {
-
- } else {
-
- }
- path_.UnsafeArenaSetAllocated(&::google::protobuf::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)
- #endif // PROTOBUF_google_2fapi_2fhttp_2eproto__INCLUDED
|