| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895 |
- /*
- * 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 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 < 3009000
- #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 3009002 < 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;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) 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;
- void clear_rules();
- ::google::api::HttpRule* mutable_rules(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >*
- mutable_rules();
- 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);
- // @@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;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) 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;
- void clear_additional_bindings();
- ::google::api::HttpRule* mutable_additional_bindings(int index);
- ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::google::api::HttpRule >*
- mutable_additional_bindings();
- 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);
- // 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);
- // string get = 2;
- private:
- bool 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);
- // string put = 3;
- private:
- bool 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);
- // string post = 4;
- private:
- bool 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);
- // string delete = 5;
- private:
- bool 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_);
- // string patch = 6;
- private:
- bool 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);
- // .google.api.CustomHttpPattern custom = 8;
- bool has_custom() const;
- 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);
- 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;
- #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
- #else
- bool MergePartialFromCodedStream(
- ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
- #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
- void SerializeWithCachedSizes(
- ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
- ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
- ::PROTOBUF_NAMESPACE_ID::uint8* target) 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);
- // 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);
- // @@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::rules_size() const {
- return 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::rules(int index) const {
- // @@protoc_insertion_point(field_get:google.api.Http.rules)
- return rules_.Get(index);
- }
- inline ::google::api::HttpRule* Http::add_rules() {
- // @@protoc_insertion_point(field_add:google.api.Http.rules)
- return rules_.Add();
- }
- 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::fully_decode_reserved_expansion() const {
- // @@protoc_insertion_point(field_get:google.api.Http.fully_decode_reserved_expansion)
- return fully_decode_reserved_expansion_;
- }
- inline void Http::set_fully_decode_reserved_expansion(bool value) {
-
- 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 selector_.Get();
- }
- inline void HttpRule::set_selector(const std::string& value) {
-
- selector_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.selector)
- }
- 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::mutable_selector() {
-
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.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::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(&::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)
- if (has_get()) {
- return pattern_.get_.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_get(const std::string& value) {
- if (!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());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.get)
- }
- 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(&::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 (!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 (!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::mutable_get() {
- if (!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());
- // @@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(&::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 (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 (!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::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(&::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)
- if (has_put()) {
- return pattern_.put_.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_put(const std::string& value) {
- if (!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());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.put)
- }
- 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(&::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 (!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 (!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::mutable_put() {
- if (!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());
- // @@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(&::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 (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 (!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::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(&::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)
- if (has_post()) {
- return pattern_.post_.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_post(const std::string& value) {
- if (!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());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.post)
- }
- 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(&::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 (!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 (!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::mutable_post() {
- if (!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());
- // @@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(&::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 (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 (!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::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(&::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)
- if (has_delete_()) {
- return pattern_.delete__.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_delete_(const std::string& value) {
- if (!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());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.delete)
- }
- 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(&::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 (!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 (!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::mutable_delete_() {
- if (!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());
- // @@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(&::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 (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 (!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::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(&::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)
- if (has_patch()) {
- return pattern_.patch_.Get();
- }
- return *&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited();
- }
- inline void HttpRule::set_patch(const std::string& value) {
- if (!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());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.patch)
- }
- 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(&::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 (!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 (!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::mutable_patch() {
- if (!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());
- // @@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(&::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 (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 (!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::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() == nullptr) {
- 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() != nullptr) {
- temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
- }
- pattern_.custom_ = nullptr;
- return temp;
- } else {
- return nullptr;
- }
- }
- 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_ = 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::mutable_custom() {
- if (!has_custom()) {
- clear_pattern();
- set_has_custom();
- pattern_.custom_ = CreateMaybeMessage< ::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(&::PROTOBUF_NAMESPACE_ID::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(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.HttpRule.body)
- }
- 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::mutable_body() {
-
- // @@protoc_insertion_point(field_mutable:google.api.HttpRule.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::additional_bindings_size() const {
- return 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::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::add_additional_bindings() {
- // @@protoc_insertion_point(field_add:google.api.HttpRule.additional_bindings)
- return additional_bindings_.Add();
- }
- 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 kind_.Get();
- }
- inline void CustomHttpPattern::set_kind(const std::string& value) {
-
- kind_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.kind)
- }
- 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::mutable_kind() {
-
- // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.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 path_.Get();
- }
- inline void CustomHttpPattern::set_path(const std::string& value) {
-
- path_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
- // @@protoc_insertion_point(field_set:google.api.CustomHttpPattern.path)
- }
- 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::mutable_path() {
-
- // @@protoc_insertion_point(field_mutable:google.api.CustomHttpPattern.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
|