status.pb.h 14 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392
  1. /*
  2. * Copyright 2021 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. #ifndef GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto
  19. #define GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_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/unknown_field_set.h>
  46. #include <google/protobuf/any.pb.h>
  47. // @@protoc_insertion_point(includes)
  48. #include <google/protobuf/port_def.inc>
  49. #define PROTOBUF_INTERNAL_EXPORT_google_2frpc_2fstatus_2eproto
  50. PROTOBUF_NAMESPACE_OPEN
  51. namespace internal {
  52. class AnyMetadata;
  53. } // namespace internal
  54. PROTOBUF_NAMESPACE_CLOSE
  55. // Internal implementation detail -- do not use these members.
  56. struct TableStruct_google_2frpc_2fstatus_2eproto {
  57. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
  58. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  59. static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
  60. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  61. static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
  62. PROTOBUF_SECTION_VARIABLE(protodesc_cold);
  63. static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
  64. static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
  65. static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
  66. };
  67. extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_google_2frpc_2fstatus_2eproto;
  68. namespace google {
  69. namespace rpc {
  70. class Status;
  71. class StatusDefaultTypeInternal;
  72. extern StatusDefaultTypeInternal _Status_default_instance_;
  73. } // namespace rpc
  74. } // namespace google
  75. PROTOBUF_NAMESPACE_OPEN
  76. template<> ::google::rpc::Status* Arena::CreateMaybeMessage<::google::rpc::Status>(Arena*);
  77. PROTOBUF_NAMESPACE_CLOSE
  78. namespace google {
  79. namespace rpc {
  80. // ===================================================================
  81. class Status :
  82. public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:google.rpc.Status) */ {
  83. public:
  84. Status();
  85. virtual ~Status();
  86. Status(const Status& from);
  87. Status(Status&& from) noexcept
  88. : Status() {
  89. *this = ::std::move(from);
  90. }
  91. inline Status& operator=(const Status& from) {
  92. CopyFrom(from);
  93. return *this;
  94. }
  95. inline Status& operator=(Status&& from) noexcept {
  96. if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
  97. if (this != &from) InternalSwap(&from);
  98. } else {
  99. CopyFrom(from);
  100. }
  101. return *this;
  102. }
  103. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
  104. return GetDescriptor();
  105. }
  106. static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
  107. return GetMetadataStatic().descriptor;
  108. }
  109. static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
  110. return GetMetadataStatic().reflection;
  111. }
  112. static const Status& default_instance();
  113. static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
  114. static inline const Status* internal_default_instance() {
  115. return reinterpret_cast<const Status*>(
  116. &_Status_default_instance_);
  117. }
  118. static constexpr int kIndexInFileMessages =
  119. 0;
  120. friend void swap(Status& a, Status& b) {
  121. a.Swap(&b);
  122. }
  123. inline void Swap(Status* other) {
  124. if (other == this) return;
  125. InternalSwap(other);
  126. }
  127. // implements Message ----------------------------------------------
  128. inline Status* New() const final {
  129. return CreateMaybeMessage<Status>(nullptr);
  130. }
  131. Status* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
  132. return CreateMaybeMessage<Status>(arena);
  133. }
  134. void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  135. void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
  136. void CopyFrom(const Status& from);
  137. void MergeFrom(const Status& from);
  138. PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
  139. bool IsInitialized() const final;
  140. size_t ByteSizeLong() const final;
  141. const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
  142. ::PROTOBUF_NAMESPACE_ID::uint8* _InternalSerialize(
  143. ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
  144. int GetCachedSize() const final { return _cached_size_.Get(); }
  145. private:
  146. inline void SharedCtor();
  147. inline void SharedDtor();
  148. void SetCachedSize(int size) const final;
  149. void InternalSwap(Status* other);
  150. friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
  151. static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
  152. return "google.rpc.Status";
  153. }
  154. private:
  155. inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
  156. return nullptr;
  157. }
  158. inline void* MaybeArenaPtr() const {
  159. return nullptr;
  160. }
  161. public:
  162. ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
  163. private:
  164. static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
  165. ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_google_2frpc_2fstatus_2eproto);
  166. return ::descriptor_table_google_2frpc_2fstatus_2eproto.file_level_metadata[kIndexInFileMessages];
  167. }
  168. public:
  169. // nested types ----------------------------------------------------
  170. // accessors -------------------------------------------------------
  171. enum : int {
  172. kDetailsFieldNumber = 3,
  173. kMessageFieldNumber = 2,
  174. kCodeFieldNumber = 1,
  175. };
  176. // repeated .google.protobuf.Any details = 3;
  177. int details_size() const;
  178. private:
  179. int _internal_details_size() const;
  180. public:
  181. void clear_details();
  182. PROTOBUF_NAMESPACE_ID::Any* mutable_details(int index);
  183. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Any >*
  184. mutable_details();
  185. private:
  186. const PROTOBUF_NAMESPACE_ID::Any& _internal_details(int index) const;
  187. PROTOBUF_NAMESPACE_ID::Any* _internal_add_details();
  188. public:
  189. const PROTOBUF_NAMESPACE_ID::Any& details(int index) const;
  190. PROTOBUF_NAMESPACE_ID::Any* add_details();
  191. const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Any >&
  192. details() const;
  193. // string message = 2;
  194. void clear_message();
  195. const std::string& message() const;
  196. void set_message(const std::string& value);
  197. void set_message(std::string&& value);
  198. void set_message(const char* value);
  199. void set_message(const char* value, size_t size);
  200. std::string* mutable_message();
  201. std::string* release_message();
  202. void set_allocated_message(std::string* message);
  203. private:
  204. const std::string& _internal_message() const;
  205. void _internal_set_message(const std::string& value);
  206. std::string* _internal_mutable_message();
  207. public:
  208. // int32 code = 1;
  209. void clear_code();
  210. ::PROTOBUF_NAMESPACE_ID::int32 code() const;
  211. void set_code(::PROTOBUF_NAMESPACE_ID::int32 value);
  212. private:
  213. ::PROTOBUF_NAMESPACE_ID::int32 _internal_code() const;
  214. void _internal_set_code(::PROTOBUF_NAMESPACE_ID::int32 value);
  215. public:
  216. // @@protoc_insertion_point(class_scope:google.rpc.Status)
  217. private:
  218. class _Internal;
  219. ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
  220. ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Any > details_;
  221. ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr message_;
  222. ::PROTOBUF_NAMESPACE_ID::int32 code_;
  223. mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
  224. friend struct ::TableStruct_google_2frpc_2fstatus_2eproto;
  225. };
  226. // ===================================================================
  227. // ===================================================================
  228. #ifdef __GNUC__
  229. #pragma GCC diagnostic push
  230. #pragma GCC diagnostic ignored "-Wstrict-aliasing"
  231. #endif // __GNUC__
  232. // Status
  233. // int32 code = 1;
  234. inline void Status::clear_code() {
  235. code_ = 0;
  236. }
  237. inline ::PROTOBUF_NAMESPACE_ID::int32 Status::_internal_code() const {
  238. return code_;
  239. }
  240. inline ::PROTOBUF_NAMESPACE_ID::int32 Status::code() const {
  241. // @@protoc_insertion_point(field_get:google.rpc.Status.code)
  242. return _internal_code();
  243. }
  244. inline void Status::_internal_set_code(::PROTOBUF_NAMESPACE_ID::int32 value) {
  245. code_ = value;
  246. }
  247. inline void Status::set_code(::PROTOBUF_NAMESPACE_ID::int32 value) {
  248. _internal_set_code(value);
  249. // @@protoc_insertion_point(field_set:google.rpc.Status.code)
  250. }
  251. // string message = 2;
  252. inline void Status::clear_message() {
  253. message_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  254. }
  255. inline const std::string& Status::message() const {
  256. // @@protoc_insertion_point(field_get:google.rpc.Status.message)
  257. return _internal_message();
  258. }
  259. inline void Status::set_message(const std::string& value) {
  260. _internal_set_message(value);
  261. // @@protoc_insertion_point(field_set:google.rpc.Status.message)
  262. }
  263. inline std::string* Status::mutable_message() {
  264. // @@protoc_insertion_point(field_mutable:google.rpc.Status.message)
  265. return _internal_mutable_message();
  266. }
  267. inline const std::string& Status::_internal_message() const {
  268. return message_.GetNoArena();
  269. }
  270. inline void Status::_internal_set_message(const std::string& value) {
  271. message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
  272. }
  273. inline void Status::set_message(std::string&& value) {
  274. message_.SetNoArena(
  275. &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
  276. // @@protoc_insertion_point(field_set_rvalue:google.rpc.Status.message)
  277. }
  278. inline void Status::set_message(const char* value) {
  279. GOOGLE_DCHECK(value != nullptr);
  280. message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
  281. // @@protoc_insertion_point(field_set_char:google.rpc.Status.message)
  282. }
  283. inline void Status::set_message(const char* value, size_t size) {
  284. message_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
  285. ::std::string(reinterpret_cast<const char*>(value), size));
  286. // @@protoc_insertion_point(field_set_pointer:google.rpc.Status.message)
  287. }
  288. inline std::string* Status::_internal_mutable_message() {
  289. return message_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  290. }
  291. inline std::string* Status::release_message() {
  292. // @@protoc_insertion_point(field_release:google.rpc.Status.message)
  293. return message_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  294. }
  295. inline void Status::set_allocated_message(std::string* message) {
  296. if (message != nullptr) {
  297. } else {
  298. }
  299. message_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), message);
  300. // @@protoc_insertion_point(field_set_allocated:google.rpc.Status.message)
  301. }
  302. // repeated .google.protobuf.Any details = 3;
  303. inline int Status::_internal_details_size() const {
  304. return details_.size();
  305. }
  306. inline int Status::details_size() const {
  307. return _internal_details_size();
  308. }
  309. inline PROTOBUF_NAMESPACE_ID::Any* Status::mutable_details(int index) {
  310. // @@protoc_insertion_point(field_mutable:google.rpc.Status.details)
  311. return details_.Mutable(index);
  312. }
  313. inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Any >*
  314. Status::mutable_details() {
  315. // @@protoc_insertion_point(field_mutable_list:google.rpc.Status.details)
  316. return &details_;
  317. }
  318. inline const PROTOBUF_NAMESPACE_ID::Any& Status::_internal_details(int index) const {
  319. return details_.Get(index);
  320. }
  321. inline const PROTOBUF_NAMESPACE_ID::Any& Status::details(int index) const {
  322. // @@protoc_insertion_point(field_get:google.rpc.Status.details)
  323. return _internal_details(index);
  324. }
  325. inline PROTOBUF_NAMESPACE_ID::Any* Status::_internal_add_details() {
  326. return details_.Add();
  327. }
  328. inline PROTOBUF_NAMESPACE_ID::Any* Status::add_details() {
  329. // @@protoc_insertion_point(field_add:google.rpc.Status.details)
  330. return _internal_add_details();
  331. }
  332. inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< PROTOBUF_NAMESPACE_ID::Any >&
  333. Status::details() const {
  334. // @@protoc_insertion_point(field_list:google.rpc.Status.details)
  335. return details_;
  336. }
  337. #ifdef __GNUC__
  338. #pragma GCC diagnostic pop
  339. #endif // __GNUC__
  340. // @@protoc_insertion_point(namespace_scope)
  341. } // namespace rpc
  342. } // namespace google
  343. // @@protoc_insertion_point(global_scope)
  344. #include <google/protobuf/port_undef.inc>
  345. #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_google_2frpc_2fstatus_2eproto