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 <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
30 #include <google/protobuf/extension_set.h> // IWYU pragma: export
31 #include <google/protobuf/generated_enum_util.h>
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 } // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto {
43 static const ::uint32_t offsets[];
44 };
45 PROTOBUF_NAMESPACE_OPEN
46 PROTOBUF_NAMESPACE_CLOSE
47 namespace tensorflow {
48 namespace error {
49
50 enum Code : int {
51 OK = 0,
52 CANCELLED = 1,
53 UNKNOWN = 2,
54 INVALID_ARGUMENT = 3,
55 DEADLINE_EXCEEDED = 4,
56 NOT_FOUND = 5,
57 ALREADY_EXISTS = 6,
58 PERMISSION_DENIED = 7,
59 UNAUTHENTICATED = 16,
60 RESOURCE_EXHAUSTED = 8,
61 FAILED_PRECONDITION = 9,
62 ABORTED = 10,
63 OUT_OF_RANGE = 11,
64 UNIMPLEMENTED = 12,
65 INTERNAL = 13,
66 UNAVAILABLE = 14,
67 DATA_LOSS = 15,
68 DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_ = 20,
69 Code_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
70 Code_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
71 };
72 bool Code_IsValid(int value);
73 constexpr Code Code_MIN = OK;
74 constexpr Code Code_MAX = DO_NOT_USE_RESERVED_FOR_FUTURE_EXPANSION_USE_DEFAULT_IN_SWITCH_INSTEAD_;
75 constexpr int Code_ARRAYSIZE = Code_MAX + 1;
76
77 const std::string& Code_Name(Code value);
78 template<typename T>
Code_Name(T enum_t_value)79 inline const std::string& Code_Name(T enum_t_value) {
80 static_assert(::std::is_same<T, Code>::value ||
81 ::std::is_integral<T>::value,
82 "Incorrect type passed to function Code_Name.");
83 return Code_Name(static_cast<Code>(enum_t_value));
84 }
85 bool Code_Parse(
86 ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, Code* value);
87 // ===================================================================
88
89
90 // ===================================================================
91
92
93 // ===================================================================
94
95 #ifdef __GNUC__
96 #pragma GCC diagnostic push
97 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
98 #endif // __GNUC__
99 #ifdef __GNUC__
100 #pragma GCC diagnostic pop
101 #endif // __GNUC__
102
103 // @@protoc_insertion_point(namespace_scope)
104
105 } // namespace error
106 } // namespace tensorflow
107
108 PROTOBUF_NAMESPACE_OPEN
109
110 template <> struct is_proto_enum< ::tensorflow::error::Code> : ::std::true_type {};
111
112 PROTOBUF_NAMESPACE_CLOSE
113
114 // @@protoc_insertion_point(global_scope)
115
116 #include <google/protobuf/port_undef.inc>
117 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ferror_5fcodes_2eproto
118