1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/error_codes.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto |
6 | |
7 | #include <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3009000 |
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 3009002 < 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_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_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_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_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_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto; |
56 | PROTOBUF_NAMESPACE_OPEN |
57 | PROTOBUF_NAMESPACE_CLOSE |
58 | namespace tensorflow { |
59 | namespace error { |
60 | |
61 | enum Code : int { |
62 | OK = 0, |
63 | CANCELLED = 1, |
64 | UNKNOWN = 2, |
65 | INVALID_ARGUMENT = 3, |
66 | DEADLINE_EXCEEDED = 4, |
67 | NOT_FOUND = 5, |
68 | ALREADY_EXISTS = 6, |
69 | PERMISSION_DENIED = 7, |
70 | UNAUTHENTICATED = 16, |
71 | RESOURCE_EXHAUSTED = 8, |
72 | FAILED_PRECONDITION = 9, |
73 | ABORTED = 10, |
74 | OUT_OF_RANGE = 11, |
75 | UNIMPLEMENTED = 12, |
76 | INTERNAL = 13, |
77 | UNAVAILABLE = 14, |
78 | DATA_LOSS = 15, |
79 | DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_ = 20, |
80 | Code_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
81 | Code_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
82 | }; |
83 | bool Code_IsValid(int value); |
84 | constexpr Code Code_MIN = OK; |
85 | constexpr Code Code_MAX = DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_; |
86 | constexpr int Code_ARRAYSIZE = Code_MAX + 1; |
87 | |
88 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* Code_descriptor(); |
89 | template<typename T> |
90 | inline const std::string& Code_Name(T enum_t_value) { |
91 | static_assert(::std::is_same<T, Code>::value || |
92 | ::std::is_integral<T>::value, |
93 | "Incorrect type passed to function Code_Name." ); |
94 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
95 | Code_descriptor(), enum_t_value); |
96 | } |
97 | inline bool Code_Parse( |
98 | const std::string& name, Code* value) { |
99 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<Code>( |
100 | Code_descriptor(), name, value); |
101 | } |
102 | // =================================================================== |
103 | |
104 | |
105 | // =================================================================== |
106 | |
107 | |
108 | // =================================================================== |
109 | |
110 | #ifdef __GNUC__ |
111 | #pragma GCC diagnostic push |
112 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
113 | #endif // __GNUC__ |
114 | #ifdef __GNUC__ |
115 | #pragma GCC diagnostic pop |
116 | #endif // __GNUC__ |
117 | |
118 | // @@protoc_insertion_point(namespace_scope) |
119 | |
120 | } // namespace error |
121 | } // namespace tensorflow |
122 | |
123 | PROTOBUF_NAMESPACE_OPEN |
124 | |
125 | template <> struct is_proto_enum< ::tensorflow::error::Code> : ::std::true_type {}; |
126 | template <> |
127 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::error::Code>() { |
128 | return ::tensorflow::error::Code_descriptor(); |
129 | } |
130 | |
131 | PROTOBUF_NAMESPACE_CLOSE |
132 | |
133 | // @@protoc_insertion_point(global_scope) |
134 | |
135 | #include <google/protobuf/port_undef.inc> |
136 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto |
137 | |