1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: brpc/errno.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_brpc_2ferrno_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_brpc_2ferrno_2eproto |
6 | |
7 | #include <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3011000 |
12 | #error This file was generated by a newer version of protoc which is |
13 | #error incompatible with your Protocol Buffer headers. Please update |
14 | #error your headers. |
15 | #endif |
16 | #if 3011004 < PROTOBUF_MIN_PROTOC_VERSION |
17 | #error This file was generated by an older version of protoc which is |
18 | #error incompatible with your Protocol Buffer headers. Please |
19 | #error regenerate this file with a newer version of protoc. |
20 | #endif |
21 | |
22 | #include <google/protobuf/port_undef.inc> |
23 | #include <google/protobuf/io/coded_stream.h> |
24 | #include <google/protobuf/arena.h> |
25 | #include <google/protobuf/arenastring.h> |
26 | #include <google/protobuf/generated_message_table_driven.h> |
27 | #include <google/protobuf/generated_message_util.h> |
28 | #include <google/protobuf/inlined_string_field.h> |
29 | #include <google/protobuf/metadata.h> |
30 | #include <google/protobuf/generated_message_reflection.h> |
31 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
32 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
33 | #include <google/protobuf/generated_enum_reflection.h> |
34 | // @@protoc_insertion_point(includes) |
35 | #include <google/protobuf/port_def.inc> |
36 | #define PROTOBUF_INTERNAL_EXPORT_brpc_2ferrno_2eproto |
37 | PROTOBUF_NAMESPACE_OPEN |
38 | namespace internal { |
39 | class AnyMetadata; |
40 | } // namespace internal |
41 | PROTOBUF_NAMESPACE_CLOSE |
42 | |
43 | // Internal implementation detail -- do not use these members. |
44 | struct TableStruct_brpc_2ferrno_2eproto { |
45 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
46 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
47 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
48 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
49 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
50 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
53 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
54 | }; |
55 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_brpc_2ferrno_2eproto; |
56 | PROTOBUF_NAMESPACE_OPEN |
57 | PROTOBUF_NAMESPACE_CLOSE |
58 | namespace brpc { |
59 | |
60 | enum Errno : int { |
61 | ENOSERVICE = 1001, |
62 | ENOMETHOD = 1002, |
63 | EREQUEST = 1003, |
64 | ERPCAUTH = 1004, |
65 | ETOOMANYFAILS = 1005, |
66 | EPCHANFINISH = 1006, |
67 | EBACKUPREQUEST = 1007, |
68 | ERPCTIMEDOUT = 1008, |
69 | EFAILEDSOCKET = 1009, |
70 | EHTTP = 1010, |
71 | EOVERCROWDED = 1011, |
72 | ERTMPPUBLISHABLE = 1012, |
73 | ERTMPCREATESTREAM = 1013, |
74 | EEOF = 1014, |
75 | EUNUSED = 1015, |
76 | ESSL = 1016, |
77 | EH2RUNOUTSTREAMS = 1017, |
78 | EREJECT = 1018, |
79 | EINTERNAL = 2001, |
80 | ERESPONSE = 2002, |
81 | ELOGOFF = 2003, |
82 | ELIMIT = 2004, |
83 | ECLOSE = 2005, |
84 | EITP = 2006 |
85 | }; |
86 | bool Errno_IsValid(int value); |
87 | constexpr Errno Errno_MIN = ENOSERVICE; |
88 | constexpr Errno Errno_MAX = EITP; |
89 | constexpr int Errno_ARRAYSIZE = Errno_MAX + 1; |
90 | |
91 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Errno_descriptor(); |
92 | template<typename T> |
93 | inline const std::string& Errno_Name(T enum_t_value) { |
94 | static_assert(::std::is_same<T, Errno>::value || |
95 | ::std::is_integral<T>::value, |
96 | "Incorrect type passed to function Errno_Name." ); |
97 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
98 | Errno_descriptor(), enum_t_value); |
99 | } |
100 | inline bool Errno_Parse( |
101 | const std::string& name, Errno* value) { |
102 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Errno>( |
103 | Errno_descriptor(), name, value); |
104 | } |
105 | // =================================================================== |
106 | |
107 | |
108 | // =================================================================== |
109 | |
110 | |
111 | // =================================================================== |
112 | |
113 | #ifdef __GNUC__ |
114 | #pragma GCC diagnostic push |
115 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
116 | #endif // __GNUC__ |
117 | #ifdef __GNUC__ |
118 | #pragma GCC diagnostic pop |
119 | #endif // __GNUC__ |
120 | |
121 | // @@protoc_insertion_point(namespace_scope) |
122 | |
123 | } // namespace brpc |
124 | |
125 | PROTOBUF_NAMESPACE_OPEN |
126 | |
127 | template <> struct is_proto_enum< ::brpc::Errno> : ::std::true_type {}; |
128 | template <> |
129 | inline const EnumDescriptor* GetEnumDescriptor< ::brpc::Errno>() { |
130 | return ::brpc::Errno_descriptor(); |
131 | } |
132 | |
133 | PROTOBUF_NAMESPACE_CLOSE |
134 | |
135 | // @@protoc_insertion_point(global_scope) |
136 | |
137 | #include <google/protobuf/port_undef.inc> |
138 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_brpc_2ferrno_2eproto |
139 | |