resource.pb.h 44 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846847848849850851852853854855856857858859860861862863864865866867868869870871872873874875876877878879880881882883884885886887888889890891892893894895896897898899900901902903904905906907908909910911912913914915916917918919920921922923924925926927928929930931932933934935936937938939940941942943944945946947948949950951952953954955956957958959960961962963964965966967968969970971972973974975976977978979980981982983984985986987988989990991992993994995996997998999100010011002100310041005100610071008100910101011101210131014101510161017101810191020102110221023102410251026102710281029103010311032103310341035103610371038103910401041104210431044104510461047104810491050105110521053105410551056105710581059106010611062106310641065106610671068106910701071107210731074107510761077107810791080108110821083108410851086108710881089109010911092109310941095109610971098109911001101110211031104110511061107110811091110111111121113111411151116111711181119112011211122112311241125112611271128
  1. /*
  2. * Copyright 2025 Google LLC
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Generated by the protocol buffer compiler. DO NOT EDIT!
  17. // source: google/api/resource.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/generated_enum_reflection.h"
  48. #include "google/protobuf/unknown_field_set.h"
  49. #include "google/protobuf/descriptor.pb.h"
  50. // @@protoc_insertion_point(includes)
  51. // Must be included last.
  52. #include "google/protobuf/port_def.inc"
  53. #define PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fresource_2eproto
  54. namespace google {
  55. namespace protobuf {
  56. namespace internal {
  57. class AnyMetadata;
  58. } // namespace internal
  59. } // namespace protobuf
  60. } // namespace google
  61. // Internal implementation detail -- do not use these members.
  62. struct TableStruct_google_2fapi_2fresource_2eproto {
  63. static const ::uint32_t offsets[];
  64. };
  65. extern const ::google::protobuf::internal::DescriptorTable
  66. descriptor_table_google_2fapi_2fresource_2eproto;
  67. namespace google {
  68. namespace api {
  69. class ResourceDescriptor;
  70. struct ResourceDescriptorDefaultTypeInternal;
  71. extern ResourceDescriptorDefaultTypeInternal _ResourceDescriptor_default_instance_;
  72. class ResourceReference;
  73. struct ResourceReferenceDefaultTypeInternal;
  74. extern ResourceReferenceDefaultTypeInternal _ResourceReference_default_instance_;
  75. } // namespace api
  76. namespace protobuf {
  77. } // namespace protobuf
  78. } // namespace google
  79. namespace google {
  80. namespace api {
  81. enum ResourceDescriptor_History : int {
  82. ResourceDescriptor_History_HISTORY_UNSPECIFIED = 0,
  83. ResourceDescriptor_History_ORIGINALLY_SINGLE_PATTERN = 1,
  84. ResourceDescriptor_History_FUTURE_MULTI_PATTERN = 2,
  85. ResourceDescriptor_History_ResourceDescriptor_History_INT_MIN_SENTINEL_DO_NOT_USE_ =
  86. std::numeric_limits<::int32_t>::min(),
  87. ResourceDescriptor_History_ResourceDescriptor_History_INT_MAX_SENTINEL_DO_NOT_USE_ =
  88. std::numeric_limits<::int32_t>::max(),
  89. };
  90. bool ResourceDescriptor_History_IsValid(int value);
  91. extern const uint32_t ResourceDescriptor_History_internal_data_[];
  92. constexpr ResourceDescriptor_History ResourceDescriptor_History_History_MIN = static_cast<ResourceDescriptor_History>(0);
  93. constexpr ResourceDescriptor_History ResourceDescriptor_History_History_MAX = static_cast<ResourceDescriptor_History>(2);
  94. constexpr int ResourceDescriptor_History_History_ARRAYSIZE = 2 + 1;
  95. const ::google::protobuf::EnumDescriptor*
  96. ResourceDescriptor_History_descriptor();
  97. template <typename T>
  98. const std::string& ResourceDescriptor_History_Name(T value) {
  99. static_assert(std::is_same<T, ResourceDescriptor_History>::value ||
  100. std::is_integral<T>::value,
  101. "Incorrect type passed to History_Name().");
  102. return ResourceDescriptor_History_Name(static_cast<ResourceDescriptor_History>(value));
  103. }
  104. template <>
  105. inline const std::string& ResourceDescriptor_History_Name(ResourceDescriptor_History value) {
  106. return ::google::protobuf::internal::NameOfDenseEnum<ResourceDescriptor_History_descriptor,
  107. 0, 2>(
  108. static_cast<int>(value));
  109. }
  110. inline bool ResourceDescriptor_History_Parse(absl::string_view name, ResourceDescriptor_History* value) {
  111. return ::google::protobuf::internal::ParseNamedEnum<ResourceDescriptor_History>(
  112. ResourceDescriptor_History_descriptor(), name, value);
  113. }
  114. // ===================================================================
  115. // -------------------------------------------------------------------
  116. class ResourceReference final :
  117. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.ResourceReference) */ {
  118. public:
  119. inline ResourceReference() : ResourceReference(nullptr) {}
  120. ~ResourceReference() override;
  121. template<typename = void>
  122. explicit PROTOBUF_CONSTEXPR ResourceReference(::google::protobuf::internal::ConstantInitialized);
  123. inline ResourceReference(const ResourceReference& from)
  124. : ResourceReference(nullptr, from) {}
  125. ResourceReference(ResourceReference&& from) noexcept
  126. : ResourceReference() {
  127. *this = ::std::move(from);
  128. }
  129. inline ResourceReference& operator=(const ResourceReference& from) {
  130. CopyFrom(from);
  131. return *this;
  132. }
  133. inline ResourceReference& operator=(ResourceReference&& from) noexcept {
  134. if (this == &from) return *this;
  135. if (GetArena() == from.GetArena()
  136. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  137. && GetArena() != nullptr
  138. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  139. ) {
  140. InternalSwap(&from);
  141. } else {
  142. CopyFrom(from);
  143. }
  144. return *this;
  145. }
  146. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  147. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  148. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  149. }
  150. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  151. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  152. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  153. }
  154. static const ::google::protobuf::Descriptor* descriptor() {
  155. return GetDescriptor();
  156. }
  157. static const ::google::protobuf::Descriptor* GetDescriptor() {
  158. return default_instance().GetMetadata().descriptor;
  159. }
  160. static const ::google::protobuf::Reflection* GetReflection() {
  161. return default_instance().GetMetadata().reflection;
  162. }
  163. static const ResourceReference& default_instance() {
  164. return *internal_default_instance();
  165. }
  166. static inline const ResourceReference* internal_default_instance() {
  167. return reinterpret_cast<const ResourceReference*>(
  168. &_ResourceReference_default_instance_);
  169. }
  170. static constexpr int kIndexInFileMessages =
  171. 1;
  172. friend void swap(ResourceReference& a, ResourceReference& b) {
  173. a.Swap(&b);
  174. }
  175. inline void Swap(ResourceReference* other) {
  176. if (other == this) return;
  177. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  178. if (GetArena() != nullptr &&
  179. GetArena() == other->GetArena()) {
  180. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  181. if (GetArena() == other->GetArena()) {
  182. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  183. InternalSwap(other);
  184. } else {
  185. ::google::protobuf::internal::GenericSwap(this, other);
  186. }
  187. }
  188. void UnsafeArenaSwap(ResourceReference* other) {
  189. if (other == this) return;
  190. ABSL_DCHECK(GetArena() == other->GetArena());
  191. InternalSwap(other);
  192. }
  193. // implements Message ----------------------------------------------
  194. ResourceReference* New(::google::protobuf::Arena* arena = nullptr) const final {
  195. return CreateMaybeMessage<ResourceReference>(arena);
  196. }
  197. using ::google::protobuf::Message::CopyFrom;
  198. void CopyFrom(const ResourceReference& from);
  199. using ::google::protobuf::Message::MergeFrom;
  200. void MergeFrom( const ResourceReference& from) {
  201. ResourceReference::MergeImpl(*this, from);
  202. }
  203. private:
  204. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  205. public:
  206. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  207. bool IsInitialized() const final;
  208. ::size_t ByteSizeLong() const final;
  209. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  210. ::uint8_t* _InternalSerialize(
  211. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  212. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  213. private:
  214. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  215. void SharedCtor(::google::protobuf::Arena* arena);
  216. void SharedDtor();
  217. void InternalSwap(ResourceReference* other);
  218. private:
  219. friend class ::google::protobuf::internal::AnyMetadata;
  220. static ::absl::string_view FullMessageName() {
  221. return "google.api.ResourceReference";
  222. }
  223. protected:
  224. explicit ResourceReference(::google::protobuf::Arena* arena);
  225. ResourceReference(::google::protobuf::Arena* arena, const ResourceReference& from);
  226. public:
  227. static const ClassData _class_data_;
  228. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  229. ::google::protobuf::Metadata GetMetadata() const final;
  230. // nested types ----------------------------------------------------
  231. // accessors -------------------------------------------------------
  232. enum : int {
  233. kTypeFieldNumber = 1,
  234. kChildTypeFieldNumber = 2,
  235. };
  236. // string type = 1;
  237. void clear_type() ;
  238. const std::string& type() const;
  239. template <typename Arg_ = const std::string&, typename... Args_>
  240. void set_type(Arg_&& arg, Args_... args);
  241. std::string* mutable_type();
  242. PROTOBUF_NODISCARD std::string* release_type();
  243. void set_allocated_type(std::string* value);
  244. private:
  245. const std::string& _internal_type() const;
  246. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(
  247. const std::string& value);
  248. std::string* _internal_mutable_type();
  249. public:
  250. // string child_type = 2;
  251. void clear_child_type() ;
  252. const std::string& child_type() const;
  253. template <typename Arg_ = const std::string&, typename... Args_>
  254. void set_child_type(Arg_&& arg, Args_... args);
  255. std::string* mutable_child_type();
  256. PROTOBUF_NODISCARD std::string* release_child_type();
  257. void set_allocated_child_type(std::string* value);
  258. private:
  259. const std::string& _internal_child_type() const;
  260. inline PROTOBUF_ALWAYS_INLINE void _internal_set_child_type(
  261. const std::string& value);
  262. std::string* _internal_mutable_child_type();
  263. public:
  264. // @@protoc_insertion_point(class_scope:google.api.ResourceReference)
  265. private:
  266. class _Internal;
  267. friend class ::google::protobuf::internal::TcParser;
  268. static const ::google::protobuf::internal::TcParseTable<
  269. 1, 2, 0,
  270. 51, 2>
  271. _table_;
  272. friend class ::google::protobuf::MessageLite;
  273. friend class ::google::protobuf::Arena;
  274. template <typename T>
  275. friend class ::google::protobuf::Arena::InternalHelper;
  276. using InternalArenaConstructable_ = void;
  277. using DestructorSkippable_ = void;
  278. struct Impl_ {
  279. inline explicit constexpr Impl_(
  280. ::google::protobuf::internal::ConstantInitialized) noexcept;
  281. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  282. ::google::protobuf::Arena* arena);
  283. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  284. ::google::protobuf::Arena* arena, const Impl_& from);
  285. ::google::protobuf::internal::ArenaStringPtr type_;
  286. ::google::protobuf::internal::ArenaStringPtr child_type_;
  287. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  288. PROTOBUF_TSAN_DECLARE_MEMBER
  289. };
  290. union { Impl_ _impl_; };
  291. friend struct ::TableStruct_google_2fapi_2fresource_2eproto;
  292. };// -------------------------------------------------------------------
  293. class ResourceDescriptor final :
  294. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.api.ResourceDescriptor) */ {
  295. public:
  296. inline ResourceDescriptor() : ResourceDescriptor(nullptr) {}
  297. ~ResourceDescriptor() override;
  298. template<typename = void>
  299. explicit PROTOBUF_CONSTEXPR ResourceDescriptor(::google::protobuf::internal::ConstantInitialized);
  300. inline ResourceDescriptor(const ResourceDescriptor& from)
  301. : ResourceDescriptor(nullptr, from) {}
  302. ResourceDescriptor(ResourceDescriptor&& from) noexcept
  303. : ResourceDescriptor() {
  304. *this = ::std::move(from);
  305. }
  306. inline ResourceDescriptor& operator=(const ResourceDescriptor& from) {
  307. CopyFrom(from);
  308. return *this;
  309. }
  310. inline ResourceDescriptor& operator=(ResourceDescriptor&& from) noexcept {
  311. if (this == &from) return *this;
  312. if (GetArena() == from.GetArena()
  313. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  314. && GetArena() != nullptr
  315. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  316. ) {
  317. InternalSwap(&from);
  318. } else {
  319. CopyFrom(from);
  320. }
  321. return *this;
  322. }
  323. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  324. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  325. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  326. }
  327. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  328. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  329. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  330. }
  331. static const ::google::protobuf::Descriptor* descriptor() {
  332. return GetDescriptor();
  333. }
  334. static const ::google::protobuf::Descriptor* GetDescriptor() {
  335. return default_instance().GetMetadata().descriptor;
  336. }
  337. static const ::google::protobuf::Reflection* GetReflection() {
  338. return default_instance().GetMetadata().reflection;
  339. }
  340. static const ResourceDescriptor& default_instance() {
  341. return *internal_default_instance();
  342. }
  343. static inline const ResourceDescriptor* internal_default_instance() {
  344. return reinterpret_cast<const ResourceDescriptor*>(
  345. &_ResourceDescriptor_default_instance_);
  346. }
  347. static constexpr int kIndexInFileMessages =
  348. 0;
  349. friend void swap(ResourceDescriptor& a, ResourceDescriptor& b) {
  350. a.Swap(&b);
  351. }
  352. inline void Swap(ResourceDescriptor* other) {
  353. if (other == this) return;
  354. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  355. if (GetArena() != nullptr &&
  356. GetArena() == other->GetArena()) {
  357. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  358. if (GetArena() == other->GetArena()) {
  359. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  360. InternalSwap(other);
  361. } else {
  362. ::google::protobuf::internal::GenericSwap(this, other);
  363. }
  364. }
  365. void UnsafeArenaSwap(ResourceDescriptor* other) {
  366. if (other == this) return;
  367. ABSL_DCHECK(GetArena() == other->GetArena());
  368. InternalSwap(other);
  369. }
  370. // implements Message ----------------------------------------------
  371. ResourceDescriptor* New(::google::protobuf::Arena* arena = nullptr) const final {
  372. return CreateMaybeMessage<ResourceDescriptor>(arena);
  373. }
  374. using ::google::protobuf::Message::CopyFrom;
  375. void CopyFrom(const ResourceDescriptor& from);
  376. using ::google::protobuf::Message::MergeFrom;
  377. void MergeFrom( const ResourceDescriptor& from) {
  378. ResourceDescriptor::MergeImpl(*this, from);
  379. }
  380. private:
  381. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  382. public:
  383. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  384. bool IsInitialized() const final;
  385. ::size_t ByteSizeLong() const final;
  386. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  387. ::uint8_t* _InternalSerialize(
  388. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  389. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  390. private:
  391. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  392. void SharedCtor(::google::protobuf::Arena* arena);
  393. void SharedDtor();
  394. void InternalSwap(ResourceDescriptor* other);
  395. private:
  396. friend class ::google::protobuf::internal::AnyMetadata;
  397. static ::absl::string_view FullMessageName() {
  398. return "google.api.ResourceDescriptor";
  399. }
  400. protected:
  401. explicit ResourceDescriptor(::google::protobuf::Arena* arena);
  402. ResourceDescriptor(::google::protobuf::Arena* arena, const ResourceDescriptor& from);
  403. public:
  404. static const ClassData _class_data_;
  405. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  406. ::google::protobuf::Metadata GetMetadata() const final;
  407. // nested types ----------------------------------------------------
  408. using History = ResourceDescriptor_History;
  409. static constexpr History HISTORY_UNSPECIFIED = ResourceDescriptor_History_HISTORY_UNSPECIFIED;
  410. static constexpr History ORIGINALLY_SINGLE_PATTERN = ResourceDescriptor_History_ORIGINALLY_SINGLE_PATTERN;
  411. static constexpr History FUTURE_MULTI_PATTERN = ResourceDescriptor_History_FUTURE_MULTI_PATTERN;
  412. static inline bool History_IsValid(int value) {
  413. return ResourceDescriptor_History_IsValid(value);
  414. }
  415. static constexpr History History_MIN = ResourceDescriptor_History_History_MIN;
  416. static constexpr History History_MAX = ResourceDescriptor_History_History_MAX;
  417. static constexpr int History_ARRAYSIZE = ResourceDescriptor_History_History_ARRAYSIZE;
  418. static inline const ::google::protobuf::EnumDescriptor* History_descriptor() {
  419. return ResourceDescriptor_History_descriptor();
  420. }
  421. template <typename T>
  422. static inline const std::string& History_Name(T value) {
  423. return ResourceDescriptor_History_Name(value);
  424. }
  425. static inline bool History_Parse(absl::string_view name, History* value) {
  426. return ResourceDescriptor_History_Parse(name, value);
  427. }
  428. // accessors -------------------------------------------------------
  429. enum : int {
  430. kPatternFieldNumber = 2,
  431. kTypeFieldNumber = 1,
  432. kNameFieldFieldNumber = 3,
  433. kPluralFieldNumber = 5,
  434. kSingularFieldNumber = 6,
  435. kHistoryFieldNumber = 4,
  436. };
  437. // repeated string pattern = 2;
  438. int pattern_size() const;
  439. private:
  440. int _internal_pattern_size() const;
  441. public:
  442. void clear_pattern() ;
  443. const std::string& pattern(int index) const;
  444. std::string* mutable_pattern(int index);
  445. void set_pattern(int index, const std::string& value);
  446. void set_pattern(int index, std::string&& value);
  447. void set_pattern(int index, const char* value);
  448. void set_pattern(int index, const char* value, std::size_t size);
  449. void set_pattern(int index, absl::string_view value);
  450. std::string* add_pattern();
  451. void add_pattern(const std::string& value);
  452. void add_pattern(std::string&& value);
  453. void add_pattern(const char* value);
  454. void add_pattern(const char* value, std::size_t size);
  455. void add_pattern(absl::string_view value);
  456. const ::google::protobuf::RepeatedPtrField<std::string>& pattern() const;
  457. ::google::protobuf::RepeatedPtrField<std::string>* mutable_pattern();
  458. private:
  459. const ::google::protobuf::RepeatedPtrField<std::string>& _internal_pattern() const;
  460. ::google::protobuf::RepeatedPtrField<std::string>* _internal_mutable_pattern();
  461. public:
  462. // string type = 1;
  463. void clear_type() ;
  464. const std::string& type() const;
  465. template <typename Arg_ = const std::string&, typename... Args_>
  466. void set_type(Arg_&& arg, Args_... args);
  467. std::string* mutable_type();
  468. PROTOBUF_NODISCARD std::string* release_type();
  469. void set_allocated_type(std::string* value);
  470. private:
  471. const std::string& _internal_type() const;
  472. inline PROTOBUF_ALWAYS_INLINE void _internal_set_type(
  473. const std::string& value);
  474. std::string* _internal_mutable_type();
  475. public:
  476. // string name_field = 3;
  477. void clear_name_field() ;
  478. const std::string& name_field() const;
  479. template <typename Arg_ = const std::string&, typename... Args_>
  480. void set_name_field(Arg_&& arg, Args_... args);
  481. std::string* mutable_name_field();
  482. PROTOBUF_NODISCARD std::string* release_name_field();
  483. void set_allocated_name_field(std::string* value);
  484. private:
  485. const std::string& _internal_name_field() const;
  486. inline PROTOBUF_ALWAYS_INLINE void _internal_set_name_field(
  487. const std::string& value);
  488. std::string* _internal_mutable_name_field();
  489. public:
  490. // string plural = 5;
  491. void clear_plural() ;
  492. const std::string& plural() const;
  493. template <typename Arg_ = const std::string&, typename... Args_>
  494. void set_plural(Arg_&& arg, Args_... args);
  495. std::string* mutable_plural();
  496. PROTOBUF_NODISCARD std::string* release_plural();
  497. void set_allocated_plural(std::string* value);
  498. private:
  499. const std::string& _internal_plural() const;
  500. inline PROTOBUF_ALWAYS_INLINE void _internal_set_plural(
  501. const std::string& value);
  502. std::string* _internal_mutable_plural();
  503. public:
  504. // string singular = 6;
  505. void clear_singular() ;
  506. const std::string& singular() const;
  507. template <typename Arg_ = const std::string&, typename... Args_>
  508. void set_singular(Arg_&& arg, Args_... args);
  509. std::string* mutable_singular();
  510. PROTOBUF_NODISCARD std::string* release_singular();
  511. void set_allocated_singular(std::string* value);
  512. private:
  513. const std::string& _internal_singular() const;
  514. inline PROTOBUF_ALWAYS_INLINE void _internal_set_singular(
  515. const std::string& value);
  516. std::string* _internal_mutable_singular();
  517. public:
  518. // .google.api.ResourceDescriptor.History history = 4;
  519. void clear_history() ;
  520. ::google::api::ResourceDescriptor_History history() const;
  521. void set_history(::google::api::ResourceDescriptor_History value);
  522. private:
  523. ::google::api::ResourceDescriptor_History _internal_history() const;
  524. void _internal_set_history(::google::api::ResourceDescriptor_History value);
  525. public:
  526. // @@protoc_insertion_point(class_scope:google.api.ResourceDescriptor)
  527. private:
  528. class _Internal;
  529. friend class ::google::protobuf::internal::TcParser;
  530. static const ::google::protobuf::internal::TcParseTable<
  531. 3, 6, 0,
  532. 73, 2>
  533. _table_;
  534. friend class ::google::protobuf::MessageLite;
  535. friend class ::google::protobuf::Arena;
  536. template <typename T>
  537. friend class ::google::protobuf::Arena::InternalHelper;
  538. using InternalArenaConstructable_ = void;
  539. using DestructorSkippable_ = void;
  540. struct Impl_ {
  541. inline explicit constexpr Impl_(
  542. ::google::protobuf::internal::ConstantInitialized) noexcept;
  543. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  544. ::google::protobuf::Arena* arena);
  545. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  546. ::google::protobuf::Arena* arena, const Impl_& from);
  547. ::google::protobuf::RepeatedPtrField<std::string> pattern_;
  548. ::google::protobuf::internal::ArenaStringPtr type_;
  549. ::google::protobuf::internal::ArenaStringPtr name_field_;
  550. ::google::protobuf::internal::ArenaStringPtr plural_;
  551. ::google::protobuf::internal::ArenaStringPtr singular_;
  552. int history_;
  553. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  554. PROTOBUF_TSAN_DECLARE_MEMBER
  555. };
  556. union { Impl_ _impl_; };
  557. friend struct ::TableStruct_google_2fapi_2fresource_2eproto;
  558. };
  559. // ===================================================================
  560. static const int kResourceReferenceFieldNumber = 1055;
  561. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
  562. ::google::protobuf::internal::MessageTypeTraits< ::google::api::ResourceReference >, 11, false >
  563. resource_reference;
  564. static const int kResourceDefinitionFieldNumber = 1053;
  565. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
  566. ::google::protobuf::internal::RepeatedMessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false >
  567. resource_definition;
  568. static const int kResourceFieldNumber = 1053;
  569. extern ::google::protobuf::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  570. ::google::protobuf::internal::MessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false >
  571. resource;
  572. // ===================================================================
  573. #ifdef __GNUC__
  574. #pragma GCC diagnostic push
  575. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  576. #endif // __GNUC__
  577. // -------------------------------------------------------------------
  578. // ResourceDescriptor
  579. // string type = 1;
  580. inline void ResourceDescriptor::clear_type() {
  581. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  582. _impl_.type_.ClearToEmpty();
  583. }
  584. inline const std::string& ResourceDescriptor::type() const
  585. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  586. // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.type)
  587. return _internal_type();
  588. }
  589. template <typename Arg_, typename... Args_>
  590. inline PROTOBUF_ALWAYS_INLINE void ResourceDescriptor::set_type(Arg_&& arg,
  591. Args_... args) {
  592. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  593. ;
  594. _impl_.type_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  595. // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.type)
  596. }
  597. inline std::string* ResourceDescriptor::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  598. std::string* _s = _internal_mutable_type();
  599. // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.type)
  600. return _s;
  601. }
  602. inline const std::string& ResourceDescriptor::_internal_type() const {
  603. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  604. return _impl_.type_.Get();
  605. }
  606. inline void ResourceDescriptor::_internal_set_type(const std::string& value) {
  607. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  608. ;
  609. _impl_.type_.Set(value, GetArena());
  610. }
  611. inline std::string* ResourceDescriptor::_internal_mutable_type() {
  612. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  613. ;
  614. return _impl_.type_.Mutable( GetArena());
  615. }
  616. inline std::string* ResourceDescriptor::release_type() {
  617. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  618. // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.type)
  619. return _impl_.type_.Release();
  620. }
  621. inline void ResourceDescriptor::set_allocated_type(std::string* value) {
  622. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  623. _impl_.type_.SetAllocated(value, GetArena());
  624. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  625. if (_impl_.type_.IsDefault()) {
  626. _impl_.type_.Set("", GetArena());
  627. }
  628. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  629. // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.type)
  630. }
  631. // repeated string pattern = 2;
  632. inline int ResourceDescriptor::_internal_pattern_size() const {
  633. return _internal_pattern().size();
  634. }
  635. inline int ResourceDescriptor::pattern_size() const {
  636. return _internal_pattern_size();
  637. }
  638. inline void ResourceDescriptor::clear_pattern() {
  639. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  640. _impl_.pattern_.Clear();
  641. }
  642. inline std::string* ResourceDescriptor::add_pattern()
  643. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  644. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  645. std::string* _s = _internal_mutable_pattern()->Add();
  646. // @@protoc_insertion_point(field_add_mutable:google.api.ResourceDescriptor.pattern)
  647. return _s;
  648. }
  649. inline const std::string& ResourceDescriptor::pattern(int index) const
  650. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  651. // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.pattern)
  652. return _internal_pattern().Get(index);
  653. }
  654. inline std::string* ResourceDescriptor::mutable_pattern(int index)
  655. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  656. // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.pattern)
  657. return _internal_mutable_pattern()->Mutable(index);
  658. }
  659. inline void ResourceDescriptor::set_pattern(int index, const std::string& value) {
  660. _internal_mutable_pattern()->Mutable(index)->assign(value);
  661. // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.pattern)
  662. }
  663. inline void ResourceDescriptor::set_pattern(int index, std::string&& value) {
  664. _internal_mutable_pattern()->Mutable(index)->assign(std::move(value));
  665. // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.pattern)
  666. }
  667. inline void ResourceDescriptor::set_pattern(int index, const char* value) {
  668. ABSL_DCHECK(value != nullptr);
  669. _internal_mutable_pattern()->Mutable(index)->assign(value);
  670. // @@protoc_insertion_point(field_set_char:google.api.ResourceDescriptor.pattern)
  671. }
  672. inline void ResourceDescriptor::set_pattern(int index, const char* value,
  673. std::size_t size) {
  674. _internal_mutable_pattern()->Mutable(index)->assign(
  675. reinterpret_cast<const char*>(value), size);
  676. // @@protoc_insertion_point(field_set_pointer:google.api.ResourceDescriptor.pattern)
  677. }
  678. inline void ResourceDescriptor::set_pattern(int index, absl::string_view value) {
  679. _internal_mutable_pattern()->Mutable(index)->assign(value.data(),
  680. value.size());
  681. // @@protoc_insertion_point(field_set_string_piece:google.api.ResourceDescriptor.pattern)
  682. }
  683. inline void ResourceDescriptor::add_pattern(const std::string& value) {
  684. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  685. _internal_mutable_pattern()->Add()->assign(value);
  686. // @@protoc_insertion_point(field_add:google.api.ResourceDescriptor.pattern)
  687. }
  688. inline void ResourceDescriptor::add_pattern(std::string&& value) {
  689. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  690. _internal_mutable_pattern()->Add(std::move(value));
  691. // @@protoc_insertion_point(field_add:google.api.ResourceDescriptor.pattern)
  692. }
  693. inline void ResourceDescriptor::add_pattern(const char* value) {
  694. ABSL_DCHECK(value != nullptr);
  695. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  696. _internal_mutable_pattern()->Add()->assign(value);
  697. // @@protoc_insertion_point(field_add_char:google.api.ResourceDescriptor.pattern)
  698. }
  699. inline void ResourceDescriptor::add_pattern(const char* value, std::size_t size) {
  700. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  701. _internal_mutable_pattern()->Add()->assign(
  702. reinterpret_cast<const char*>(value), size);
  703. // @@protoc_insertion_point(field_add_pointer:google.api.ResourceDescriptor.pattern)
  704. }
  705. inline void ResourceDescriptor::add_pattern(absl::string_view value) {
  706. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  707. _internal_mutable_pattern()->Add()->assign(value.data(), value.size());
  708. // @@protoc_insertion_point(field_add_string_piece:google.api.ResourceDescriptor.pattern)
  709. }
  710. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  711. ResourceDescriptor::pattern() const ABSL_ATTRIBUTE_LIFETIME_BOUND {
  712. // @@protoc_insertion_point(field_list:google.api.ResourceDescriptor.pattern)
  713. return _internal_pattern();
  714. }
  715. inline ::google::protobuf::RepeatedPtrField<std::string>*
  716. ResourceDescriptor::mutable_pattern() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  717. // @@protoc_insertion_point(field_mutable_list:google.api.ResourceDescriptor.pattern)
  718. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  719. return _internal_mutable_pattern();
  720. }
  721. inline const ::google::protobuf::RepeatedPtrField<std::string>&
  722. ResourceDescriptor::_internal_pattern() const {
  723. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  724. return _impl_.pattern_;
  725. }
  726. inline ::google::protobuf::RepeatedPtrField<std::string>*
  727. ResourceDescriptor::_internal_mutable_pattern() {
  728. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  729. return &_impl_.pattern_;
  730. }
  731. // string name_field = 3;
  732. inline void ResourceDescriptor::clear_name_field() {
  733. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  734. _impl_.name_field_.ClearToEmpty();
  735. }
  736. inline const std::string& ResourceDescriptor::name_field() const
  737. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  738. // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.name_field)
  739. return _internal_name_field();
  740. }
  741. template <typename Arg_, typename... Args_>
  742. inline PROTOBUF_ALWAYS_INLINE void ResourceDescriptor::set_name_field(Arg_&& arg,
  743. Args_... args) {
  744. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  745. ;
  746. _impl_.name_field_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  747. // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.name_field)
  748. }
  749. inline std::string* ResourceDescriptor::mutable_name_field() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  750. std::string* _s = _internal_mutable_name_field();
  751. // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.name_field)
  752. return _s;
  753. }
  754. inline const std::string& ResourceDescriptor::_internal_name_field() const {
  755. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  756. return _impl_.name_field_.Get();
  757. }
  758. inline void ResourceDescriptor::_internal_set_name_field(const std::string& value) {
  759. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  760. ;
  761. _impl_.name_field_.Set(value, GetArena());
  762. }
  763. inline std::string* ResourceDescriptor::_internal_mutable_name_field() {
  764. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  765. ;
  766. return _impl_.name_field_.Mutable( GetArena());
  767. }
  768. inline std::string* ResourceDescriptor::release_name_field() {
  769. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  770. // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.name_field)
  771. return _impl_.name_field_.Release();
  772. }
  773. inline void ResourceDescriptor::set_allocated_name_field(std::string* value) {
  774. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  775. _impl_.name_field_.SetAllocated(value, GetArena());
  776. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  777. if (_impl_.name_field_.IsDefault()) {
  778. _impl_.name_field_.Set("", GetArena());
  779. }
  780. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  781. // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.name_field)
  782. }
  783. // .google.api.ResourceDescriptor.History history = 4;
  784. inline void ResourceDescriptor::clear_history() {
  785. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  786. _impl_.history_ = 0;
  787. }
  788. inline ::google::api::ResourceDescriptor_History ResourceDescriptor::history() const {
  789. // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.history)
  790. return _internal_history();
  791. }
  792. inline void ResourceDescriptor::set_history(::google::api::ResourceDescriptor_History value) {
  793. _internal_set_history(value);
  794. // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.history)
  795. }
  796. inline ::google::api::ResourceDescriptor_History ResourceDescriptor::_internal_history() const {
  797. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  798. return static_cast<::google::api::ResourceDescriptor_History>(_impl_.history_);
  799. }
  800. inline void ResourceDescriptor::_internal_set_history(::google::api::ResourceDescriptor_History value) {
  801. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  802. ;
  803. _impl_.history_ = value;
  804. }
  805. // string plural = 5;
  806. inline void ResourceDescriptor::clear_plural() {
  807. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  808. _impl_.plural_.ClearToEmpty();
  809. }
  810. inline const std::string& ResourceDescriptor::plural() const
  811. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  812. // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.plural)
  813. return _internal_plural();
  814. }
  815. template <typename Arg_, typename... Args_>
  816. inline PROTOBUF_ALWAYS_INLINE void ResourceDescriptor::set_plural(Arg_&& arg,
  817. Args_... args) {
  818. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  819. ;
  820. _impl_.plural_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  821. // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.plural)
  822. }
  823. inline std::string* ResourceDescriptor::mutable_plural() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  824. std::string* _s = _internal_mutable_plural();
  825. // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.plural)
  826. return _s;
  827. }
  828. inline const std::string& ResourceDescriptor::_internal_plural() const {
  829. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  830. return _impl_.plural_.Get();
  831. }
  832. inline void ResourceDescriptor::_internal_set_plural(const std::string& value) {
  833. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  834. ;
  835. _impl_.plural_.Set(value, GetArena());
  836. }
  837. inline std::string* ResourceDescriptor::_internal_mutable_plural() {
  838. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  839. ;
  840. return _impl_.plural_.Mutable( GetArena());
  841. }
  842. inline std::string* ResourceDescriptor::release_plural() {
  843. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  844. // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.plural)
  845. return _impl_.plural_.Release();
  846. }
  847. inline void ResourceDescriptor::set_allocated_plural(std::string* value) {
  848. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  849. _impl_.plural_.SetAllocated(value, GetArena());
  850. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  851. if (_impl_.plural_.IsDefault()) {
  852. _impl_.plural_.Set("", GetArena());
  853. }
  854. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  855. // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.plural)
  856. }
  857. // string singular = 6;
  858. inline void ResourceDescriptor::clear_singular() {
  859. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  860. _impl_.singular_.ClearToEmpty();
  861. }
  862. inline const std::string& ResourceDescriptor::singular() const
  863. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  864. // @@protoc_insertion_point(field_get:google.api.ResourceDescriptor.singular)
  865. return _internal_singular();
  866. }
  867. template <typename Arg_, typename... Args_>
  868. inline PROTOBUF_ALWAYS_INLINE void ResourceDescriptor::set_singular(Arg_&& arg,
  869. Args_... args) {
  870. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  871. ;
  872. _impl_.singular_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  873. // @@protoc_insertion_point(field_set:google.api.ResourceDescriptor.singular)
  874. }
  875. inline std::string* ResourceDescriptor::mutable_singular() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  876. std::string* _s = _internal_mutable_singular();
  877. // @@protoc_insertion_point(field_mutable:google.api.ResourceDescriptor.singular)
  878. return _s;
  879. }
  880. inline const std::string& ResourceDescriptor::_internal_singular() const {
  881. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  882. return _impl_.singular_.Get();
  883. }
  884. inline void ResourceDescriptor::_internal_set_singular(const std::string& value) {
  885. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  886. ;
  887. _impl_.singular_.Set(value, GetArena());
  888. }
  889. inline std::string* ResourceDescriptor::_internal_mutable_singular() {
  890. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  891. ;
  892. return _impl_.singular_.Mutable( GetArena());
  893. }
  894. inline std::string* ResourceDescriptor::release_singular() {
  895. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  896. // @@protoc_insertion_point(field_release:google.api.ResourceDescriptor.singular)
  897. return _impl_.singular_.Release();
  898. }
  899. inline void ResourceDescriptor::set_allocated_singular(std::string* value) {
  900. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  901. _impl_.singular_.SetAllocated(value, GetArena());
  902. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  903. if (_impl_.singular_.IsDefault()) {
  904. _impl_.singular_.Set("", GetArena());
  905. }
  906. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  907. // @@protoc_insertion_point(field_set_allocated:google.api.ResourceDescriptor.singular)
  908. }
  909. // -------------------------------------------------------------------
  910. // ResourceReference
  911. // string type = 1;
  912. inline void ResourceReference::clear_type() {
  913. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  914. _impl_.type_.ClearToEmpty();
  915. }
  916. inline const std::string& ResourceReference::type() const
  917. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  918. // @@protoc_insertion_point(field_get:google.api.ResourceReference.type)
  919. return _internal_type();
  920. }
  921. template <typename Arg_, typename... Args_>
  922. inline PROTOBUF_ALWAYS_INLINE void ResourceReference::set_type(Arg_&& arg,
  923. Args_... args) {
  924. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  925. ;
  926. _impl_.type_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  927. // @@protoc_insertion_point(field_set:google.api.ResourceReference.type)
  928. }
  929. inline std::string* ResourceReference::mutable_type() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  930. std::string* _s = _internal_mutable_type();
  931. // @@protoc_insertion_point(field_mutable:google.api.ResourceReference.type)
  932. return _s;
  933. }
  934. inline const std::string& ResourceReference::_internal_type() const {
  935. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  936. return _impl_.type_.Get();
  937. }
  938. inline void ResourceReference::_internal_set_type(const std::string& value) {
  939. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  940. ;
  941. _impl_.type_.Set(value, GetArena());
  942. }
  943. inline std::string* ResourceReference::_internal_mutable_type() {
  944. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  945. ;
  946. return _impl_.type_.Mutable( GetArena());
  947. }
  948. inline std::string* ResourceReference::release_type() {
  949. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  950. // @@protoc_insertion_point(field_release:google.api.ResourceReference.type)
  951. return _impl_.type_.Release();
  952. }
  953. inline void ResourceReference::set_allocated_type(std::string* value) {
  954. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  955. _impl_.type_.SetAllocated(value, GetArena());
  956. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  957. if (_impl_.type_.IsDefault()) {
  958. _impl_.type_.Set("", GetArena());
  959. }
  960. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  961. // @@protoc_insertion_point(field_set_allocated:google.api.ResourceReference.type)
  962. }
  963. // string child_type = 2;
  964. inline void ResourceReference::clear_child_type() {
  965. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  966. _impl_.child_type_.ClearToEmpty();
  967. }
  968. inline const std::string& ResourceReference::child_type() const
  969. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  970. // @@protoc_insertion_point(field_get:google.api.ResourceReference.child_type)
  971. return _internal_child_type();
  972. }
  973. template <typename Arg_, typename... Args_>
  974. inline PROTOBUF_ALWAYS_INLINE void ResourceReference::set_child_type(Arg_&& arg,
  975. Args_... args) {
  976. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  977. ;
  978. _impl_.child_type_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  979. // @@protoc_insertion_point(field_set:google.api.ResourceReference.child_type)
  980. }
  981. inline std::string* ResourceReference::mutable_child_type() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  982. std::string* _s = _internal_mutable_child_type();
  983. // @@protoc_insertion_point(field_mutable:google.api.ResourceReference.child_type)
  984. return _s;
  985. }
  986. inline const std::string& ResourceReference::_internal_child_type() const {
  987. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  988. return _impl_.child_type_.Get();
  989. }
  990. inline void ResourceReference::_internal_set_child_type(const std::string& value) {
  991. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  992. ;
  993. _impl_.child_type_.Set(value, GetArena());
  994. }
  995. inline std::string* ResourceReference::_internal_mutable_child_type() {
  996. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  997. ;
  998. return _impl_.child_type_.Mutable( GetArena());
  999. }
  1000. inline std::string* ResourceReference::release_child_type() {
  1001. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1002. // @@protoc_insertion_point(field_release:google.api.ResourceReference.child_type)
  1003. return _impl_.child_type_.Release();
  1004. }
  1005. inline void ResourceReference::set_allocated_child_type(std::string* value) {
  1006. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  1007. _impl_.child_type_.SetAllocated(value, GetArena());
  1008. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1009. if (_impl_.child_type_.IsDefault()) {
  1010. _impl_.child_type_.Set("", GetArena());
  1011. }
  1012. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  1013. // @@protoc_insertion_point(field_set_allocated:google.api.ResourceReference.child_type)
  1014. }
  1015. #ifdef __GNUC__
  1016. #pragma GCC diagnostic pop
  1017. #endif // __GNUC__
  1018. // @@protoc_insertion_point(namespace_scope)
  1019. } // namespace api
  1020. } // namespace google
  1021. namespace google {
  1022. namespace protobuf {
  1023. template <>
  1024. struct is_proto_enum<::google::api::ResourceDescriptor_History> : std::true_type {};
  1025. template <>
  1026. inline const EnumDescriptor* GetEnumDescriptor<::google::api::ResourceDescriptor_History>() {
  1027. return ::google::api::ResourceDescriptor_History_descriptor();
  1028. }
  1029. } // namespace protobuf
  1030. } // namespace google
  1031. // @@protoc_insertion_point(global_scope)
  1032. #include "google/protobuf/port_undef.inc"
  1033. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2fapi_2fresource_2eproto_2epb_2eh