resource.pb.h 51 KB

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