status.pb.h 15 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456
  1. /*
  2. * Copyright 2024 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/rpc/status.proto
  18. // Protobuf C++ Version: 4.25.1
  19. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto_2epb_2eh
  20. #define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto_2epb_2eh
  21. #include <limits>
  22. #include <string>
  23. #include <type_traits>
  24. #include <utility>
  25. #include "google/protobuf/port_def.inc"
  26. #if PROTOBUF_VERSION < 4025000
  27. #error "This file was generated by a newer version of protoc which is"
  28. #error "incompatible with your Protocol Buffer headers. Please update"
  29. #error "your headers."
  30. #endif // PROTOBUF_VERSION
  31. #if 4025001 < PROTOBUF_MIN_PROTOC_VERSION
  32. #error "This file was generated by an older version of protoc which is"
  33. #error "incompatible with your Protocol Buffer headers. Please"
  34. #error "regenerate this file with a newer version of protoc."
  35. #endif // PROTOBUF_MIN_PROTOC_VERSION
  36. #include "google/protobuf/port_undef.inc"
  37. #include "google/protobuf/io/coded_stream.h"
  38. #include "google/protobuf/arena.h"
  39. #include "google/protobuf/arenastring.h"
  40. #include "google/protobuf/generated_message_tctable_decl.h"
  41. #include "google/protobuf/generated_message_util.h"
  42. #include "google/protobuf/metadata_lite.h"
  43. #include "google/protobuf/generated_message_reflection.h"
  44. #include "google/protobuf/message.h"
  45. #include "google/protobuf/repeated_field.h" // IWYU pragma: export
  46. #include "google/protobuf/extension_set.h" // IWYU pragma: export
  47. #include "google/protobuf/unknown_field_set.h"
  48. #include "google/protobuf/any.pb.h"
  49. // @@protoc_insertion_point(includes)
  50. // Must be included last.
  51. #include "google/protobuf/port_def.inc"
  52. #define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fstatus_2eproto
  53. namespace google {
  54. namespace protobuf {
  55. namespace internal {
  56. class AnyMetadata;
  57. } // namespace internal
  58. } // namespace protobuf
  59. } // namespace google
  60. // Internal implementation detail -- do not use these members.
  61. struct TableStruct_google_2frpc_2fstatus_2eproto {
  62. static const ::uint32_t offsets[];
  63. };
  64. extern const ::google::protobuf::internal::DescriptorTable
  65. descriptor_table_google_2frpc_2fstatus_2eproto;
  66. namespace google {
  67. namespace rpc {
  68. class Status;
  69. struct StatusDefaultTypeInternal;
  70. extern StatusDefaultTypeInternal _Status_default_instance_;
  71. } // namespace rpc
  72. namespace protobuf {
  73. } // namespace protobuf
  74. } // namespace google
  75. namespace google {
  76. namespace rpc {
  77. // ===================================================================
  78. // -------------------------------------------------------------------
  79. class Status final :
  80. public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:google.rpc.Status) */ {
  81. public:
  82. inline Status() : Status(nullptr) {}
  83. ~Status() override;
  84. template<typename = void>
  85. explicit PROTOBUF_CONSTEXPR Status(::google::protobuf::internal::ConstantInitialized);
  86. inline Status(const Status& from)
  87. : Status(nullptr, from) {}
  88. Status(Status&& from) noexcept
  89. : Status() {
  90. *this = ::std::move(from);
  91. }
  92. inline Status& operator=(const Status& from) {
  93. CopyFrom(from);
  94. return *this;
  95. }
  96. inline Status& operator=(Status&& from) noexcept {
  97. if (this == &from) return *this;
  98. if (GetArena() == from.GetArena()
  99. #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
  100. && GetArena() != nullptr
  101. #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
  102. ) {
  103. InternalSwap(&from);
  104. } else {
  105. CopyFrom(from);
  106. }
  107. return *this;
  108. }
  109. inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const
  110. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  111. return _internal_metadata_.unknown_fields<::google::protobuf::UnknownFieldSet>(::google::protobuf::UnknownFieldSet::default_instance);
  112. }
  113. inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields()
  114. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  115. return _internal_metadata_.mutable_unknown_fields<::google::protobuf::UnknownFieldSet>();
  116. }
  117. static const ::google::protobuf::Descriptor* descriptor() {
  118. return GetDescriptor();
  119. }
  120. static const ::google::protobuf::Descriptor* GetDescriptor() {
  121. return default_instance().GetMetadata().descriptor;
  122. }
  123. static const ::google::protobuf::Reflection* GetReflection() {
  124. return default_instance().GetMetadata().reflection;
  125. }
  126. static const Status& default_instance() {
  127. return *internal_default_instance();
  128. }
  129. static inline const Status* internal_default_instance() {
  130. return reinterpret_cast<const Status*>(
  131. &_Status_default_instance_);
  132. }
  133. static constexpr int kIndexInFileMessages =
  134. 0;
  135. friend void swap(Status& a, Status& b) {
  136. a.Swap(&b);
  137. }
  138. inline void Swap(Status* other) {
  139. if (other == this) return;
  140. #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
  141. if (GetArena() != nullptr &&
  142. GetArena() == other->GetArena()) {
  143. #else // PROTOBUF_FORCE_COPY_IN_SWAP
  144. if (GetArena() == other->GetArena()) {
  145. #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
  146. InternalSwap(other);
  147. } else {
  148. ::google::protobuf::internal::GenericSwap(this, other);
  149. }
  150. }
  151. void UnsafeArenaSwap(Status* other) {
  152. if (other == this) return;
  153. ABSL_DCHECK(GetArena() == other->GetArena());
  154. InternalSwap(other);
  155. }
  156. // implements Message ----------------------------------------------
  157. Status* New(::google::protobuf::Arena* arena = nullptr) const final {
  158. return CreateMaybeMessage<Status>(arena);
  159. }
  160. using ::google::protobuf::Message::CopyFrom;
  161. void CopyFrom(const Status& from);
  162. using ::google::protobuf::Message::MergeFrom;
  163. void MergeFrom( const Status& from) {
  164. Status::MergeImpl(*this, from);
  165. }
  166. private:
  167. static void MergeImpl(::google::protobuf::Message& to_msg, const ::google::protobuf::Message& from_msg);
  168. public:
  169. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  170. bool IsInitialized() const final;
  171. ::size_t ByteSizeLong() const final;
  172. const char* _InternalParse(const char* ptr, ::google::protobuf::internal::ParseContext* ctx) final;
  173. ::uint8_t* _InternalSerialize(
  174. ::uint8_t* target, ::google::protobuf::io::EpsCopyOutputStream* stream) const final;
  175. int GetCachedSize() const { return _impl_._cached_size_.Get(); }
  176. private:
  177. ::google::protobuf::internal::CachedSize* AccessCachedSize() const final;
  178. void SharedCtor(::google::protobuf::Arena* arena);
  179. void SharedDtor();
  180. void InternalSwap(Status* other);
  181. private:
  182. friend class ::google::protobuf::internal::AnyMetadata;
  183. static ::absl::string_view FullMessageName() {
  184. return "google.rpc.Status";
  185. }
  186. protected:
  187. explicit Status(::google::protobuf::Arena* arena);
  188. Status(::google::protobuf::Arena* arena, const Status& from);
  189. public:
  190. static const ClassData _class_data_;
  191. const ::google::protobuf::Message::ClassData*GetClassData() const final;
  192. ::google::protobuf::Metadata GetMetadata() const final;
  193. // nested types ----------------------------------------------------
  194. // accessors -------------------------------------------------------
  195. enum : int {
  196. kDetailsFieldNumber = 3,
  197. kMessageFieldNumber = 2,
  198. kCodeFieldNumber = 1,
  199. };
  200. // repeated .google.protobuf.Any details = 3;
  201. int details_size() const;
  202. private:
  203. int _internal_details_size() const;
  204. public:
  205. void clear_details() ;
  206. ::google::protobuf::Any* mutable_details(int index);
  207. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >*
  208. mutable_details();
  209. private:
  210. const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& _internal_details() const;
  211. ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* _internal_mutable_details();
  212. public:
  213. const ::google::protobuf::Any& details(int index) const;
  214. ::google::protobuf::Any* add_details();
  215. const ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any >&
  216. details() const;
  217. // string message = 2;
  218. void clear_message() ;
  219. const std::string& message() const;
  220. template <typename Arg_ = const std::string&, typename... Args_>
  221. void set_message(Arg_&& arg, Args_... args);
  222. std::string* mutable_message();
  223. PROTOBUF_NODISCARD std::string* release_message();
  224. void set_allocated_message(std::string* value);
  225. private:
  226. const std::string& _internal_message() const;
  227. inline PROTOBUF_ALWAYS_INLINE void _internal_set_message(
  228. const std::string& value);
  229. std::string* _internal_mutable_message();
  230. public:
  231. // int32 code = 1;
  232. void clear_code() ;
  233. ::int32_t code() const;
  234. void set_code(::int32_t value);
  235. private:
  236. ::int32_t _internal_code() const;
  237. void _internal_set_code(::int32_t value);
  238. public:
  239. // @@protoc_insertion_point(class_scope:google.rpc.Status)
  240. private:
  241. class _Internal;
  242. friend class ::google::protobuf::internal::TcParser;
  243. static const ::google::protobuf::internal::TcParseTable<
  244. 2, 3, 1,
  245. 33, 2>
  246. _table_;
  247. friend class ::google::protobuf::MessageLite;
  248. friend class ::google::protobuf::Arena;
  249. template <typename T>
  250. friend class ::google::protobuf::Arena::InternalHelper;
  251. using InternalArenaConstructable_ = void;
  252. using DestructorSkippable_ = void;
  253. struct Impl_ {
  254. inline explicit constexpr Impl_(
  255. ::google::protobuf::internal::ConstantInitialized) noexcept;
  256. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  257. ::google::protobuf::Arena* arena);
  258. inline explicit Impl_(::google::protobuf::internal::InternalVisibility visibility,
  259. ::google::protobuf::Arena* arena, const Impl_& from);
  260. ::google::protobuf::RepeatedPtrField< ::google::protobuf::Any > details_;
  261. ::google::protobuf::internal::ArenaStringPtr message_;
  262. ::int32_t code_;
  263. mutable ::google::protobuf::internal::CachedSize _cached_size_;
  264. PROTOBUF_TSAN_DECLARE_MEMBER
  265. };
  266. union { Impl_ _impl_; };
  267. friend struct ::TableStruct_google_2frpc_2fstatus_2eproto;
  268. };
  269. // ===================================================================
  270. // ===================================================================
  271. #ifdef __GNUC__
  272. #pragma GCC diagnostic push
  273. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  274. #endif // __GNUC__
  275. // -------------------------------------------------------------------
  276. // Status
  277. // int32 code = 1;
  278. inline void Status::clear_code() {
  279. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  280. _impl_.code_ = 0;
  281. }
  282. inline ::int32_t Status::code() const {
  283. // @@protoc_insertion_point(field_get:google.rpc.Status.code)
  284. return _internal_code();
  285. }
  286. inline void Status::set_code(::int32_t value) {
  287. _internal_set_code(value);
  288. // @@protoc_insertion_point(field_set:google.rpc.Status.code)
  289. }
  290. inline ::int32_t Status::_internal_code() const {
  291. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  292. return _impl_.code_;
  293. }
  294. inline void Status::_internal_set_code(::int32_t value) {
  295. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  296. ;
  297. _impl_.code_ = value;
  298. }
  299. // string message = 2;
  300. inline void Status::clear_message() {
  301. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  302. _impl_.message_.ClearToEmpty();
  303. }
  304. inline const std::string& Status::message() const
  305. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  306. // @@protoc_insertion_point(field_get:google.rpc.Status.message)
  307. return _internal_message();
  308. }
  309. template <typename Arg_, typename... Args_>
  310. inline PROTOBUF_ALWAYS_INLINE void Status::set_message(Arg_&& arg,
  311. Args_... args) {
  312. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  313. ;
  314. _impl_.message_.Set(static_cast<Arg_&&>(arg), args..., GetArena());
  315. // @@protoc_insertion_point(field_set:google.rpc.Status.message)
  316. }
  317. inline std::string* Status::mutable_message() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  318. std::string* _s = _internal_mutable_message();
  319. // @@protoc_insertion_point(field_mutable:google.rpc.Status.message)
  320. return _s;
  321. }
  322. inline const std::string& Status::_internal_message() const {
  323. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  324. return _impl_.message_.Get();
  325. }
  326. inline void Status::_internal_set_message(const std::string& value) {
  327. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  328. ;
  329. _impl_.message_.Set(value, GetArena());
  330. }
  331. inline std::string* Status::_internal_mutable_message() {
  332. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  333. ;
  334. return _impl_.message_.Mutable( GetArena());
  335. }
  336. inline std::string* Status::release_message() {
  337. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  338. // @@protoc_insertion_point(field_release:google.rpc.Status.message)
  339. return _impl_.message_.Release();
  340. }
  341. inline void Status::set_allocated_message(std::string* value) {
  342. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  343. _impl_.message_.SetAllocated(value, GetArena());
  344. #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  345. if (_impl_.message_.IsDefault()) {
  346. _impl_.message_.Set("", GetArena());
  347. }
  348. #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  349. // @@protoc_insertion_point(field_set_allocated:google.rpc.Status.message)
  350. }
  351. // repeated .google.protobuf.Any details = 3;
  352. inline int Status::_internal_details_size() const {
  353. return _internal_details().size();
  354. }
  355. inline int Status::details_size() const {
  356. return _internal_details_size();
  357. }
  358. inline ::google::protobuf::Any* Status::mutable_details(int index)
  359. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  360. // @@protoc_insertion_point(field_mutable:google.rpc.Status.details)
  361. return _internal_mutable_details()->Mutable(index);
  362. }
  363. inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>* Status::mutable_details()
  364. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  365. // @@protoc_insertion_point(field_mutable_list:google.rpc.Status.details)
  366. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  367. return _internal_mutable_details();
  368. }
  369. inline const ::google::protobuf::Any& Status::details(int index) const
  370. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  371. // @@protoc_insertion_point(field_get:google.rpc.Status.details)
  372. return _internal_details().Get(index);
  373. }
  374. inline ::google::protobuf::Any* Status::add_details() ABSL_ATTRIBUTE_LIFETIME_BOUND {
  375. PROTOBUF_TSAN_WRITE(&_impl_._tsan_detect_race);
  376. ::google::protobuf::Any* _add = _internal_mutable_details()->Add();
  377. // @@protoc_insertion_point(field_add:google.rpc.Status.details)
  378. return _add;
  379. }
  380. inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>& Status::details() const
  381. ABSL_ATTRIBUTE_LIFETIME_BOUND {
  382. // @@protoc_insertion_point(field_list:google.rpc.Status.details)
  383. return _internal_details();
  384. }
  385. inline const ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>&
  386. Status::_internal_details() const {
  387. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  388. return _impl_.details_;
  389. }
  390. inline ::google::protobuf::RepeatedPtrField<::google::protobuf::Any>*
  391. Status::_internal_mutable_details() {
  392. PROTOBUF_TSAN_READ(&_impl_._tsan_detect_race);
  393. return &_impl_.details_;
  394. }
  395. #ifdef __GNUC__
  396. #pragma GCC diagnostic pop
  397. #endif // __GNUC__
  398. // @@protoc_insertion_point(namespace_scope)
  399. } // namespace rpc
  400. } // namespace google
  401. // @@protoc_insertion_point(global_scope)
  402. #include "google/protobuf/port_undef.inc"
  403. #endif // GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto_2epb_2eh