resource.pb.cc 36 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680681682683684685686687688689690691692693694695696697698699700701702703704705706707708709710711712713714715716717718719720721722723724725726727728729730731732733734735736737738739740741742743744745746747748749750751752753754755756757758759760761762763764765766767768769770771772773774775776777778779780781782783784785786787788789790791792793794795796797798799800801802803804805806807808809810811812813814815816817818819820821822823824825826827828829830831832833834835836837838839840841842843844845846
  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. #include "google/api/resource.pb.h"
  19. #include <algorithm>
  20. #include <google/protobuf/io/coded_stream.h>
  21. #include <google/protobuf/extension_set.h>
  22. #include <google/protobuf/wire_format_lite.h>
  23. #include <google/protobuf/descriptor.h>
  24. #include <google/protobuf/generated_message_reflection.h>
  25. #include <google/protobuf/reflection_ops.h>
  26. #include <google/protobuf/wire_format.h>
  27. // @@protoc_insertion_point(includes)
  28. #include <google/protobuf/port_def.inc>
  29. extern PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fresource_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResourceDescriptor_google_2fapi_2fresource_2eproto;
  30. extern PROTOBUF_INTERNAL_EXPORT_google_2fapi_2fresource_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResourceReference_google_2fapi_2fresource_2eproto;
  31. namespace google {
  32. namespace api {
  33. class ResourceDescriptorDefaultTypeInternal {
  34. public:
  35. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ResourceDescriptor> _instance;
  36. } _ResourceDescriptor_default_instance_;
  37. class ResourceReferenceDefaultTypeInternal {
  38. public:
  39. ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ResourceReference> _instance;
  40. } _ResourceReference_default_instance_;
  41. } // namespace api
  42. } // namespace google
  43. static void InitDefaultsscc_info_ResourceDescriptor_google_2fapi_2fresource_2eproto() {
  44. GOOGLE_PROTOBUF_VERIFY_VERSION;
  45. {
  46. void* ptr = &::google::api::_ResourceDescriptor_default_instance_;
  47. new (ptr) ::google::api::ResourceDescriptor();
  48. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  49. }
  50. ::google::api::ResourceDescriptor::InitAsDefaultInstance();
  51. }
  52. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResourceDescriptor_google_2fapi_2fresource_2eproto =
  53. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ResourceDescriptor_google_2fapi_2fresource_2eproto}, {}};
  54. static void InitDefaultsscc_info_ResourceReference_google_2fapi_2fresource_2eproto() {
  55. GOOGLE_PROTOBUF_VERIFY_VERSION;
  56. {
  57. void* ptr = &::google::api::_ResourceReference_default_instance_;
  58. new (ptr) ::google::api::ResourceReference();
  59. ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  60. }
  61. ::google::api::ResourceReference::InitAsDefaultInstance();
  62. }
  63. ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ResourceReference_google_2fapi_2fresource_2eproto =
  64. {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ResourceReference_google_2fapi_2fresource_2eproto}, {}};
  65. static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_google_2fapi_2fresource_2eproto[2];
  66. static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_google_2fapi_2fresource_2eproto[1];
  67. static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_google_2fapi_2fresource_2eproto = nullptr;
  68. const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_google_2fapi_2fresource_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  69. ~0u, // no _has_bits_
  70. PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, _internal_metadata_),
  71. ~0u, // no _extensions_
  72. ~0u, // no _oneof_case_
  73. ~0u, // no _weak_field_map_
  74. PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, type_),
  75. PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, pattern_),
  76. PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, name_field_),
  77. PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, history_),
  78. PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, plural_),
  79. PROTOBUF_FIELD_OFFSET(::google::api::ResourceDescriptor, singular_),
  80. ~0u, // no _has_bits_
  81. PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, _internal_metadata_),
  82. ~0u, // no _extensions_
  83. ~0u, // no _oneof_case_
  84. ~0u, // no _weak_field_map_
  85. PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, type_),
  86. PROTOBUF_FIELD_OFFSET(::google::api::ResourceReference, child_type_),
  87. };
  88. static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  89. { 0, -1, sizeof(::google::api::ResourceDescriptor)},
  90. { 11, -1, sizeof(::google::api::ResourceReference)},
  91. };
  92. static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  93. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::api::_ResourceDescriptor_default_instance_),
  94. reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::google::api::_ResourceReference_default_instance_),
  95. };
  96. const char descriptor_table_protodef_google_2fapi_2fresource_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  97. "\n\031google/api/resource.proto\022\ngoogle.api\032"
  98. " google/protobuf/descriptor.proto\"\377\001\n\022Re"
  99. "sourceDescriptor\022\014\n\004type\030\001 \001(\t\022\017\n\007patter"
  100. "n\030\002 \003(\t\022\022\n\nname_field\030\003 \001(\t\0227\n\007history\030\004"
  101. " \001(\0162&.google.api.ResourceDescriptor.His"
  102. "tory\022\016\n\006plural\030\005 \001(\t\022\020\n\010singular\030\006 \001(\t\"["
  103. "\n\007History\022\027\n\023HISTORY_UNSPECIFIED\020\000\022\035\n\031OR"
  104. "IGINALLY_SINGLE_PATTERN\020\001\022\030\n\024FUTURE_MULT"
  105. "I_PATTERN\020\002\"5\n\021ResourceReference\022\014\n\004type"
  106. "\030\001 \001(\t\022\022\n\nchild_type\030\002 \001(\t:Y\n\022resource_r"
  107. "eference\022\035.google.protobuf.FieldOptions\030"
  108. "\237\010 \001(\0132\035.google.api.ResourceReference:Z\n"
  109. "\023resource_definition\022\034.google.protobuf.F"
  110. "ileOptions\030\235\010 \003(\0132\036.google.api.ResourceD"
  111. "escriptor:R\n\010resource\022\037.google.protobuf."
  112. "MessageOptions\030\235\010 \001(\0132\036.google.api.Resou"
  113. "rceDescriptorBn\n\016com.google.apiB\rResourc"
  114. "eProtoP\001ZAgoogle.golang.org/genproto/goo"
  115. "gleapis/api/annotations;annotations\370\001\001\242\002"
  116. "\004GAPIb\006proto3"
  117. ;
  118. static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_google_2fapi_2fresource_2eproto_deps[1] = {
  119. &::descriptor_table_google_2fprotobuf_2fdescriptor_2eproto,
  120. };
  121. static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_google_2fapi_2fresource_2eproto_sccs[2] = {
  122. &scc_info_ResourceDescriptor_google_2fapi_2fresource_2eproto.base,
  123. &scc_info_ResourceReference_google_2fapi_2fresource_2eproto.base,
  124. };
  125. static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_google_2fapi_2fresource_2eproto_once;
  126. static bool descriptor_table_google_2fapi_2fresource_2eproto_initialized = false;
  127. const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2fapi_2fresource_2eproto = {
  128. &descriptor_table_google_2fapi_2fresource_2eproto_initialized, descriptor_table_protodef_google_2fapi_2fresource_2eproto, "google/api/resource.proto", 773,
  129. &descriptor_table_google_2fapi_2fresource_2eproto_once, descriptor_table_google_2fapi_2fresource_2eproto_sccs, descriptor_table_google_2fapi_2fresource_2eproto_deps, 2, 1,
  130. schemas, file_default_instances, TableStruct_google_2fapi_2fresource_2eproto::offsets,
  131. file_level_metadata_google_2fapi_2fresource_2eproto, 2, file_level_enum_descriptors_google_2fapi_2fresource_2eproto, file_level_service_descriptors_google_2fapi_2fresource_2eproto,
  132. };
  133. // Force running AddDescriptors() at dynamic initialization time.
  134. static bool dynamic_init_dummy_google_2fapi_2fresource_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_google_2fapi_2fresource_2eproto), true);
  135. namespace google {
  136. namespace api {
  137. const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ResourceDescriptor_History_descriptor() {
  138. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_google_2fapi_2fresource_2eproto);
  139. return file_level_enum_descriptors_google_2fapi_2fresource_2eproto[0];
  140. }
  141. bool ResourceDescriptor_History_IsValid(int value) {
  142. switch (value) {
  143. case 0:
  144. case 1:
  145. case 2:
  146. return true;
  147. default:
  148. return false;
  149. }
  150. }
  151. #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
  152. constexpr ResourceDescriptor_History ResourceDescriptor::HISTORY_UNSPECIFIED;
  153. constexpr ResourceDescriptor_History ResourceDescriptor::ORIGINALLY_SINGLE_PATTERN;
  154. constexpr ResourceDescriptor_History ResourceDescriptor::FUTURE_MULTI_PATTERN;
  155. constexpr ResourceDescriptor_History ResourceDescriptor::History_MIN;
  156. constexpr ResourceDescriptor_History ResourceDescriptor::History_MAX;
  157. constexpr int ResourceDescriptor::History_ARRAYSIZE;
  158. #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
  159. // ===================================================================
  160. void ResourceDescriptor::InitAsDefaultInstance() {
  161. }
  162. class ResourceDescriptor::_Internal {
  163. public:
  164. };
  165. ResourceDescriptor::ResourceDescriptor()
  166. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  167. SharedCtor();
  168. // @@protoc_insertion_point(constructor:google.api.ResourceDescriptor)
  169. }
  170. ResourceDescriptor::ResourceDescriptor(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  171. : ::PROTOBUF_NAMESPACE_ID::Message(),
  172. _internal_metadata_(arena),
  173. pattern_(arena) {
  174. SharedCtor();
  175. RegisterArenaDtor(arena);
  176. // @@protoc_insertion_point(arena_constructor:google.api.ResourceDescriptor)
  177. }
  178. ResourceDescriptor::ResourceDescriptor(const ResourceDescriptor& from)
  179. : ::PROTOBUF_NAMESPACE_ID::Message(),
  180. _internal_metadata_(nullptr),
  181. pattern_(from.pattern_) {
  182. _internal_metadata_.MergeFrom(from._internal_metadata_);
  183. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  184. if (!from._internal_type().empty()) {
  185. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_type(),
  186. GetArenaNoVirtual());
  187. }
  188. name_field_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  189. if (!from._internal_name_field().empty()) {
  190. name_field_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_name_field(),
  191. GetArenaNoVirtual());
  192. }
  193. plural_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  194. if (!from._internal_plural().empty()) {
  195. plural_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_plural(),
  196. GetArenaNoVirtual());
  197. }
  198. singular_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  199. if (!from._internal_singular().empty()) {
  200. singular_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_singular(),
  201. GetArenaNoVirtual());
  202. }
  203. history_ = from.history_;
  204. // @@protoc_insertion_point(copy_constructor:google.api.ResourceDescriptor)
  205. }
  206. void ResourceDescriptor::SharedCtor() {
  207. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ResourceDescriptor_google_2fapi_2fresource_2eproto.base);
  208. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  209. name_field_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  210. plural_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  211. singular_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  212. history_ = 0;
  213. }
  214. ResourceDescriptor::~ResourceDescriptor() {
  215. // @@protoc_insertion_point(destructor:google.api.ResourceDescriptor)
  216. SharedDtor();
  217. }
  218. void ResourceDescriptor::SharedDtor() {
  219. GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
  220. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  221. name_field_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  222. plural_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  223. singular_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  224. }
  225. void ResourceDescriptor::ArenaDtor(void* object) {
  226. ResourceDescriptor* _this = reinterpret_cast< ResourceDescriptor* >(object);
  227. (void)_this;
  228. }
  229. void ResourceDescriptor::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  230. }
  231. void ResourceDescriptor::SetCachedSize(int size) const {
  232. _cached_size_.Set(size);
  233. }
  234. const ResourceDescriptor& ResourceDescriptor::default_instance() {
  235. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ResourceDescriptor_google_2fapi_2fresource_2eproto.base);
  236. return *internal_default_instance();
  237. }
  238. void ResourceDescriptor::Clear() {
  239. // @@protoc_insertion_point(message_clear_start:google.api.ResourceDescriptor)
  240. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  241. // Prevent compiler warnings about cached_has_bits being unused
  242. (void) cached_has_bits;
  243. pattern_.Clear();
  244. type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  245. name_field_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  246. plural_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  247. singular_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  248. history_ = 0;
  249. _internal_metadata_.Clear();
  250. }
  251. const char* ResourceDescriptor::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  252. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  253. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
  254. while (!ctx->Done(&ptr)) {
  255. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  256. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  257. CHK_(ptr);
  258. switch (tag >> 3) {
  259. // string type = 1;
  260. case 1:
  261. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  262. auto str = _internal_mutable_type();
  263. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  264. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.ResourceDescriptor.type"));
  265. CHK_(ptr);
  266. } else goto handle_unusual;
  267. continue;
  268. // repeated string pattern = 2;
  269. case 2:
  270. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  271. ptr -= 1;
  272. do {
  273. ptr += 1;
  274. auto str = _internal_add_pattern();
  275. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  276. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.ResourceDescriptor.pattern"));
  277. CHK_(ptr);
  278. if (!ctx->DataAvailable(ptr)) break;
  279. } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
  280. } else goto handle_unusual;
  281. continue;
  282. // string name_field = 3;
  283. case 3:
  284. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
  285. auto str = _internal_mutable_name_field();
  286. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  287. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.ResourceDescriptor.name_field"));
  288. CHK_(ptr);
  289. } else goto handle_unusual;
  290. continue;
  291. // .google.api.ResourceDescriptor.History history = 4;
  292. case 4:
  293. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
  294. ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
  295. CHK_(ptr);
  296. _internal_set_history(static_cast<::google::api::ResourceDescriptor_History>(val));
  297. } else goto handle_unusual;
  298. continue;
  299. // string plural = 5;
  300. case 5:
  301. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
  302. auto str = _internal_mutable_plural();
  303. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  304. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.ResourceDescriptor.plural"));
  305. CHK_(ptr);
  306. } else goto handle_unusual;
  307. continue;
  308. // string singular = 6;
  309. case 6:
  310. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
  311. auto str = _internal_mutable_singular();
  312. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  313. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.ResourceDescriptor.singular"));
  314. CHK_(ptr);
  315. } else goto handle_unusual;
  316. continue;
  317. default: {
  318. handle_unusual:
  319. if ((tag & 7) == 4 || tag == 0) {
  320. ctx->SetLastTag(tag);
  321. goto success;
  322. }
  323. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  324. CHK_(ptr != nullptr);
  325. continue;
  326. }
  327. } // switch
  328. } // while
  329. success:
  330. return ptr;
  331. failure:
  332. ptr = nullptr;
  333. goto success;
  334. #undef CHK_
  335. }
  336. ::PROTOBUF_NAMESPACE_ID::uint8* ResourceDescriptor::_InternalSerialize(
  337. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  338. // @@protoc_insertion_point(serialize_to_array_start:google.api.ResourceDescriptor)
  339. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  340. (void) cached_has_bits;
  341. // string type = 1;
  342. if (this->type().size() > 0) {
  343. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  344. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  345. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  346. "google.api.ResourceDescriptor.type");
  347. target = stream->WriteStringMaybeAliased(
  348. 1, this->_internal_type(), target);
  349. }
  350. // repeated string pattern = 2;
  351. for (int i = 0, n = this->_internal_pattern_size(); i < n; i++) {
  352. const auto& s = this->_internal_pattern(i);
  353. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  354. s.data(), static_cast<int>(s.length()),
  355. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  356. "google.api.ResourceDescriptor.pattern");
  357. target = stream->WriteString(2, s, target);
  358. }
  359. // string name_field = 3;
  360. if (this->name_field().size() > 0) {
  361. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  362. this->_internal_name_field().data(), static_cast<int>(this->_internal_name_field().length()),
  363. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  364. "google.api.ResourceDescriptor.name_field");
  365. target = stream->WriteStringMaybeAliased(
  366. 3, this->_internal_name_field(), target);
  367. }
  368. // .google.api.ResourceDescriptor.History history = 4;
  369. if (this->history() != 0) {
  370. target = stream->EnsureSpace(target);
  371. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
  372. 4, this->_internal_history(), target);
  373. }
  374. // string plural = 5;
  375. if (this->plural().size() > 0) {
  376. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  377. this->_internal_plural().data(), static_cast<int>(this->_internal_plural().length()),
  378. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  379. "google.api.ResourceDescriptor.plural");
  380. target = stream->WriteStringMaybeAliased(
  381. 5, this->_internal_plural(), target);
  382. }
  383. // string singular = 6;
  384. if (this->singular().size() > 0) {
  385. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  386. this->_internal_singular().data(), static_cast<int>(this->_internal_singular().length()),
  387. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  388. "google.api.ResourceDescriptor.singular");
  389. target = stream->WriteStringMaybeAliased(
  390. 6, this->_internal_singular(), target);
  391. }
  392. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  393. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  394. _internal_metadata_.unknown_fields(), target, stream);
  395. }
  396. // @@protoc_insertion_point(serialize_to_array_end:google.api.ResourceDescriptor)
  397. return target;
  398. }
  399. size_t ResourceDescriptor::ByteSizeLong() const {
  400. // @@protoc_insertion_point(message_byte_size_start:google.api.ResourceDescriptor)
  401. size_t total_size = 0;
  402. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  403. // Prevent compiler warnings about cached_has_bits being unused
  404. (void) cached_has_bits;
  405. // repeated string pattern = 2;
  406. total_size += 1 *
  407. ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(pattern_.size());
  408. for (int i = 0, n = pattern_.size(); i < n; i++) {
  409. total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  410. pattern_.Get(i));
  411. }
  412. // string type = 1;
  413. if (this->type().size() > 0) {
  414. total_size += 1 +
  415. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  416. this->_internal_type());
  417. }
  418. // string name_field = 3;
  419. if (this->name_field().size() > 0) {
  420. total_size += 1 +
  421. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  422. this->_internal_name_field());
  423. }
  424. // string plural = 5;
  425. if (this->plural().size() > 0) {
  426. total_size += 1 +
  427. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  428. this->_internal_plural());
  429. }
  430. // string singular = 6;
  431. if (this->singular().size() > 0) {
  432. total_size += 1 +
  433. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  434. this->_internal_singular());
  435. }
  436. // .google.api.ResourceDescriptor.History history = 4;
  437. if (this->history() != 0) {
  438. total_size += 1 +
  439. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->_internal_history());
  440. }
  441. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  442. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  443. _internal_metadata_, total_size, &_cached_size_);
  444. }
  445. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  446. SetCachedSize(cached_size);
  447. return total_size;
  448. }
  449. void ResourceDescriptor::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  450. // @@protoc_insertion_point(generalized_merge_from_start:google.api.ResourceDescriptor)
  451. GOOGLE_DCHECK_NE(&from, this);
  452. const ResourceDescriptor* source =
  453. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ResourceDescriptor>(
  454. &from);
  455. if (source == nullptr) {
  456. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.ResourceDescriptor)
  457. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  458. } else {
  459. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.ResourceDescriptor)
  460. MergeFrom(*source);
  461. }
  462. }
  463. void ResourceDescriptor::MergeFrom(const ResourceDescriptor& from) {
  464. // @@protoc_insertion_point(class_specific_merge_from_start:google.api.ResourceDescriptor)
  465. GOOGLE_DCHECK_NE(&from, this);
  466. _internal_metadata_.MergeFrom(from._internal_metadata_);
  467. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  468. (void) cached_has_bits;
  469. pattern_.MergeFrom(from.pattern_);
  470. if (from.type().size() > 0) {
  471. _internal_set_type(from._internal_type());
  472. }
  473. if (from.name_field().size() > 0) {
  474. _internal_set_name_field(from._internal_name_field());
  475. }
  476. if (from.plural().size() > 0) {
  477. _internal_set_plural(from._internal_plural());
  478. }
  479. if (from.singular().size() > 0) {
  480. _internal_set_singular(from._internal_singular());
  481. }
  482. if (from.history() != 0) {
  483. _internal_set_history(from._internal_history());
  484. }
  485. }
  486. void ResourceDescriptor::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  487. // @@protoc_insertion_point(generalized_copy_from_start:google.api.ResourceDescriptor)
  488. if (&from == this) return;
  489. Clear();
  490. MergeFrom(from);
  491. }
  492. void ResourceDescriptor::CopyFrom(const ResourceDescriptor& from) {
  493. // @@protoc_insertion_point(class_specific_copy_from_start:google.api.ResourceDescriptor)
  494. if (&from == this) return;
  495. Clear();
  496. MergeFrom(from);
  497. }
  498. bool ResourceDescriptor::IsInitialized() const {
  499. return true;
  500. }
  501. void ResourceDescriptor::InternalSwap(ResourceDescriptor* other) {
  502. using std::swap;
  503. _internal_metadata_.Swap(&other->_internal_metadata_);
  504. pattern_.InternalSwap(&other->pattern_);
  505. type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  506. GetArenaNoVirtual());
  507. name_field_.Swap(&other->name_field_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  508. GetArenaNoVirtual());
  509. plural_.Swap(&other->plural_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  510. GetArenaNoVirtual());
  511. singular_.Swap(&other->singular_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  512. GetArenaNoVirtual());
  513. swap(history_, other->history_);
  514. }
  515. ::PROTOBUF_NAMESPACE_ID::Metadata ResourceDescriptor::GetMetadata() const {
  516. return GetMetadataStatic();
  517. }
  518. // ===================================================================
  519. void ResourceReference::InitAsDefaultInstance() {
  520. }
  521. class ResourceReference::_Internal {
  522. public:
  523. };
  524. ResourceReference::ResourceReference()
  525. : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
  526. SharedCtor();
  527. // @@protoc_insertion_point(constructor:google.api.ResourceReference)
  528. }
  529. ResourceReference::ResourceReference(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  530. : ::PROTOBUF_NAMESPACE_ID::Message(),
  531. _internal_metadata_(arena) {
  532. SharedCtor();
  533. RegisterArenaDtor(arena);
  534. // @@protoc_insertion_point(arena_constructor:google.api.ResourceReference)
  535. }
  536. ResourceReference::ResourceReference(const ResourceReference& from)
  537. : ::PROTOBUF_NAMESPACE_ID::Message(),
  538. _internal_metadata_(nullptr) {
  539. _internal_metadata_.MergeFrom(from._internal_metadata_);
  540. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  541. if (!from._internal_type().empty()) {
  542. type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_type(),
  543. GetArenaNoVirtual());
  544. }
  545. child_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  546. if (!from._internal_child_type().empty()) {
  547. child_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_child_type(),
  548. GetArenaNoVirtual());
  549. }
  550. // @@protoc_insertion_point(copy_constructor:google.api.ResourceReference)
  551. }
  552. void ResourceReference::SharedCtor() {
  553. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ResourceReference_google_2fapi_2fresource_2eproto.base);
  554. type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  555. child_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  556. }
  557. ResourceReference::~ResourceReference() {
  558. // @@protoc_insertion_point(destructor:google.api.ResourceReference)
  559. SharedDtor();
  560. }
  561. void ResourceReference::SharedDtor() {
  562. GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
  563. type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  564. child_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  565. }
  566. void ResourceReference::ArenaDtor(void* object) {
  567. ResourceReference* _this = reinterpret_cast< ResourceReference* >(object);
  568. (void)_this;
  569. }
  570. void ResourceReference::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  571. }
  572. void ResourceReference::SetCachedSize(int size) const {
  573. _cached_size_.Set(size);
  574. }
  575. const ResourceReference& ResourceReference::default_instance() {
  576. ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ResourceReference_google_2fapi_2fresource_2eproto.base);
  577. return *internal_default_instance();
  578. }
  579. void ResourceReference::Clear() {
  580. // @@protoc_insertion_point(message_clear_start:google.api.ResourceReference)
  581. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  582. // Prevent compiler warnings about cached_has_bits being unused
  583. (void) cached_has_bits;
  584. type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  585. child_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
  586. _internal_metadata_.Clear();
  587. }
  588. const char* ResourceReference::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  589. #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  590. ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
  591. while (!ctx->Done(&ptr)) {
  592. ::PROTOBUF_NAMESPACE_ID::uint32 tag;
  593. ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
  594. CHK_(ptr);
  595. switch (tag >> 3) {
  596. // string type = 1;
  597. case 1:
  598. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
  599. auto str = _internal_mutable_type();
  600. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  601. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.ResourceReference.type"));
  602. CHK_(ptr);
  603. } else goto handle_unusual;
  604. continue;
  605. // string child_type = 2;
  606. case 2:
  607. if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
  608. auto str = _internal_mutable_child_type();
  609. ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
  610. CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "google.api.ResourceReference.child_type"));
  611. CHK_(ptr);
  612. } else goto handle_unusual;
  613. continue;
  614. default: {
  615. handle_unusual:
  616. if ((tag & 7) == 4 || tag == 0) {
  617. ctx->SetLastTag(tag);
  618. goto success;
  619. }
  620. ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
  621. CHK_(ptr != nullptr);
  622. continue;
  623. }
  624. } // switch
  625. } // while
  626. success:
  627. return ptr;
  628. failure:
  629. ptr = nullptr;
  630. goto success;
  631. #undef CHK_
  632. }
  633. ::PROTOBUF_NAMESPACE_ID::uint8* ResourceReference::_InternalSerialize(
  634. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  635. // @@protoc_insertion_point(serialize_to_array_start:google.api.ResourceReference)
  636. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  637. (void) cached_has_bits;
  638. // string type = 1;
  639. if (this->type().size() > 0) {
  640. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  641. this->_internal_type().data(), static_cast<int>(this->_internal_type().length()),
  642. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  643. "google.api.ResourceReference.type");
  644. target = stream->WriteStringMaybeAliased(
  645. 1, this->_internal_type(), target);
  646. }
  647. // string child_type = 2;
  648. if (this->child_type().size() > 0) {
  649. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
  650. this->_internal_child_type().data(), static_cast<int>(this->_internal_child_type().length()),
  651. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
  652. "google.api.ResourceReference.child_type");
  653. target = stream->WriteStringMaybeAliased(
  654. 2, this->_internal_child_type(), target);
  655. }
  656. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  657. target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::InternalSerializeUnknownFieldsToArray(
  658. _internal_metadata_.unknown_fields(), target, stream);
  659. }
  660. // @@protoc_insertion_point(serialize_to_array_end:google.api.ResourceReference)
  661. return target;
  662. }
  663. size_t ResourceReference::ByteSizeLong() const {
  664. // @@protoc_insertion_point(message_byte_size_start:google.api.ResourceReference)
  665. size_t total_size = 0;
  666. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  667. // Prevent compiler warnings about cached_has_bits being unused
  668. (void) cached_has_bits;
  669. // string type = 1;
  670. if (this->type().size() > 0) {
  671. total_size += 1 +
  672. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  673. this->_internal_type());
  674. }
  675. // string child_type = 2;
  676. if (this->child_type().size() > 0) {
  677. total_size += 1 +
  678. ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
  679. this->_internal_child_type());
  680. }
  681. if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
  682. return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
  683. _internal_metadata_, total_size, &_cached_size_);
  684. }
  685. int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  686. SetCachedSize(cached_size);
  687. return total_size;
  688. }
  689. void ResourceReference::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  690. // @@protoc_insertion_point(generalized_merge_from_start:google.api.ResourceReference)
  691. GOOGLE_DCHECK_NE(&from, this);
  692. const ResourceReference* source =
  693. ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ResourceReference>(
  694. &from);
  695. if (source == nullptr) {
  696. // @@protoc_insertion_point(generalized_merge_from_cast_fail:google.api.ResourceReference)
  697. ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  698. } else {
  699. // @@protoc_insertion_point(generalized_merge_from_cast_success:google.api.ResourceReference)
  700. MergeFrom(*source);
  701. }
  702. }
  703. void ResourceReference::MergeFrom(const ResourceReference& from) {
  704. // @@protoc_insertion_point(class_specific_merge_from_start:google.api.ResourceReference)
  705. GOOGLE_DCHECK_NE(&from, this);
  706. _internal_metadata_.MergeFrom(from._internal_metadata_);
  707. ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  708. (void) cached_has_bits;
  709. if (from.type().size() > 0) {
  710. _internal_set_type(from._internal_type());
  711. }
  712. if (from.child_type().size() > 0) {
  713. _internal_set_child_type(from._internal_child_type());
  714. }
  715. }
  716. void ResourceReference::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  717. // @@protoc_insertion_point(generalized_copy_from_start:google.api.ResourceReference)
  718. if (&from == this) return;
  719. Clear();
  720. MergeFrom(from);
  721. }
  722. void ResourceReference::CopyFrom(const ResourceReference& from) {
  723. // @@protoc_insertion_point(class_specific_copy_from_start:google.api.ResourceReference)
  724. if (&from == this) return;
  725. Clear();
  726. MergeFrom(from);
  727. }
  728. bool ResourceReference::IsInitialized() const {
  729. return true;
  730. }
  731. void ResourceReference::InternalSwap(ResourceReference* other) {
  732. using std::swap;
  733. _internal_metadata_.Swap(&other->_internal_metadata_);
  734. type_.Swap(&other->type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  735. GetArenaNoVirtual());
  736. child_type_.Swap(&other->child_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  737. GetArenaNoVirtual());
  738. }
  739. ::PROTOBUF_NAMESPACE_ID::Metadata ResourceReference::GetMetadata() const {
  740. return GetMetadataStatic();
  741. }
  742. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FieldOptions,
  743. ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceReference >, 11, false >
  744. resource_reference(kResourceReferenceFieldNumber, *::google::api::ResourceReference::internal_default_instance());
  745. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::FileOptions,
  746. ::PROTOBUF_NAMESPACE_ID::internal::RepeatedMessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false >
  747. resource_definition(kResourceDefinitionFieldNumber, *::google::api::ResourceDescriptor::internal_default_instance());
  748. ::PROTOBUF_NAMESPACE_ID::internal::ExtensionIdentifier< ::google::protobuf::MessageOptions,
  749. ::PROTOBUF_NAMESPACE_ID::internal::MessageTypeTraits< ::google::api::ResourceDescriptor >, 11, false >
  750. resource(kResourceFieldNumber, *::google::api::ResourceDescriptor::internal_default_instance());
  751. // @@protoc_insertion_point(namespace_scope)
  752. } // namespace api
  753. } // namespace google
  754. PROTOBUF_NAMESPACE_OPEN
  755. template<> PROTOBUF_NOINLINE ::google::api::ResourceDescriptor* Arena::CreateMaybeMessage< ::google::api::ResourceDescriptor >(Arena* arena) {
  756. return Arena::CreateMessageInternal< ::google::api::ResourceDescriptor >(arena);
  757. }
  758. template<> PROTOBUF_NOINLINE ::google::api::ResourceReference* Arena::CreateMaybeMessage< ::google::api::ResourceReference >(Arena* arena) {
  759. return Arena::CreateMessageInternal< ::google::api::ResourceReference >(arena);
  760. }
  761. PROTOBUF_NAMESPACE_CLOSE
  762. // @@protoc_insertion_point(global_scope)
  763. #include <google/protobuf/port_undef.inc>