1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/core_platform_payloads.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_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/message.h> |
32 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
33 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
34 | #include <google/protobuf/generated_enum_reflection.h> |
35 | #include <google/protobuf/unknown_field_set.h> |
36 | // @@protoc_insertion_point(includes) |
37 | #include <google/protobuf/port_def.inc> |
38 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto |
39 | PROTOBUF_NAMESPACE_OPEN |
40 | namespace internal { |
41 | class AnyMetadata; |
42 | } // namespace internal |
43 | PROTOBUF_NAMESPACE_CLOSE |
44 | |
45 | // Internal implementation detail -- do not use these members. |
46 | struct TableStruct_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto { |
47 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
48 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
49 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
50 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
52 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
55 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
56 | }; |
57 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto; |
58 | namespace tensorflow { |
59 | namespace core { |
60 | namespace platform { |
61 | class ErrorSourceProto; |
62 | class ErrorSourceProtoDefaultTypeInternal; |
63 | extern ErrorSourceProtoDefaultTypeInternal _ErrorSourceProto_default_instance_; |
64 | } // namespace platform |
65 | } // namespace core |
66 | } // namespace tensorflow |
67 | PROTOBUF_NAMESPACE_OPEN |
68 | template<> ::tensorflow::core::platform::ErrorSourceProto* Arena::CreateMaybeMessage<::tensorflow::core::platform::ErrorSourceProto>(Arena*); |
69 | PROTOBUF_NAMESPACE_CLOSE |
70 | namespace tensorflow { |
71 | namespace core { |
72 | namespace platform { |
73 | |
74 | enum ErrorSourceProto_ErrorSource : int { |
75 | ErrorSourceProto_ErrorSource_UNKNOWN = 0, |
76 | ErrorSourceProto_ErrorSource_TPU_COMPILE_OP = 1, |
77 | ErrorSourceProto_ErrorSource_TF_XLA_BRIDGE = 2, |
78 | ErrorSourceProto_ErrorSource_MLIR_BRIDGE_PHASE_1 = 3, |
79 | ErrorSourceProto_ErrorSource_MLIR_BRIDGE_PHASE_2 = 4, |
80 | ErrorSourceProto_ErrorSource_EAGER_REMOTE_MGR = 5, |
81 | ErrorSourceProto_ErrorSource_ErrorSourceProto_ErrorSource_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
82 | ErrorSourceProto_ErrorSource_ErrorSourceProto_ErrorSource_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
83 | }; |
84 | bool ErrorSourceProto_ErrorSource_IsValid(int value); |
85 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto_ErrorSource_ErrorSource_MIN = ErrorSourceProto_ErrorSource_UNKNOWN; |
86 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto_ErrorSource_ErrorSource_MAX = ErrorSourceProto_ErrorSource_EAGER_REMOTE_MGR; |
87 | constexpr int ErrorSourceProto_ErrorSource_ErrorSource_ARRAYSIZE = ErrorSourceProto_ErrorSource_ErrorSource_MAX + 1; |
88 | |
89 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorSourceProto_ErrorSource_descriptor(); |
90 | template<typename T> |
91 | inline const std::string& ErrorSourceProto_ErrorSource_Name(T enum_t_value) { |
92 | static_assert(::std::is_same<T, ErrorSourceProto_ErrorSource>::value || |
93 | ::std::is_integral<T>::value, |
94 | "Incorrect type passed to function ErrorSourceProto_ErrorSource_Name." ); |
95 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
96 | ErrorSourceProto_ErrorSource_descriptor(), enum_t_value); |
97 | } |
98 | inline bool ErrorSourceProto_ErrorSource_Parse( |
99 | const std::string& name, ErrorSourceProto_ErrorSource* value) { |
100 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ErrorSourceProto_ErrorSource>( |
101 | ErrorSourceProto_ErrorSource_descriptor(), name, value); |
102 | } |
103 | // =================================================================== |
104 | |
105 | class ErrorSourceProto : |
106 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.core.platform.ErrorSourceProto) */ { |
107 | public: |
108 | ErrorSourceProto(); |
109 | virtual ~ErrorSourceProto(); |
110 | |
111 | ErrorSourceProto(const ErrorSourceProto& from); |
112 | ErrorSourceProto(ErrorSourceProto&& from) noexcept |
113 | : ErrorSourceProto() { |
114 | *this = ::std::move(from); |
115 | } |
116 | |
117 | inline ErrorSourceProto& operator=(const ErrorSourceProto& from) { |
118 | CopyFrom(from); |
119 | return *this; |
120 | } |
121 | inline ErrorSourceProto& operator=(ErrorSourceProto&& from) noexcept { |
122 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
123 | if (this != &from) InternalSwap(&from); |
124 | } else { |
125 | CopyFrom(from); |
126 | } |
127 | return *this; |
128 | } |
129 | |
130 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
131 | return GetArenaNoVirtual(); |
132 | } |
133 | inline void* GetMaybeArenaPointer() const final { |
134 | return MaybeArenaPtr(); |
135 | } |
136 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
137 | return GetDescriptor(); |
138 | } |
139 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
140 | return GetMetadataStatic().descriptor; |
141 | } |
142 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
143 | return GetMetadataStatic().reflection; |
144 | } |
145 | static const ErrorSourceProto& default_instance(); |
146 | |
147 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
148 | static inline const ErrorSourceProto* internal_default_instance() { |
149 | return reinterpret_cast<const ErrorSourceProto*>( |
150 | &_ErrorSourceProto_default_instance_); |
151 | } |
152 | static constexpr int kIndexInFileMessages = |
153 | 0; |
154 | |
155 | friend void swap(ErrorSourceProto& a, ErrorSourceProto& b) { |
156 | a.Swap(&b); |
157 | } |
158 | inline void Swap(ErrorSourceProto* other) { |
159 | if (other == this) return; |
160 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
161 | InternalSwap(other); |
162 | } else { |
163 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
164 | } |
165 | } |
166 | void UnsafeArenaSwap(ErrorSourceProto* other) { |
167 | if (other == this) return; |
168 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
169 | InternalSwap(other); |
170 | } |
171 | |
172 | // implements Message ---------------------------------------------- |
173 | |
174 | inline ErrorSourceProto* New() const final { |
175 | return CreateMaybeMessage<ErrorSourceProto>(nullptr); |
176 | } |
177 | |
178 | ErrorSourceProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
179 | return CreateMaybeMessage<ErrorSourceProto>(arena); |
180 | } |
181 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
182 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
183 | void CopyFrom(const ErrorSourceProto& from); |
184 | void MergeFrom(const ErrorSourceProto& from); |
185 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
186 | bool IsInitialized() const final; |
187 | |
188 | size_t ByteSizeLong() const final; |
189 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
190 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
191 | #else |
192 | bool MergePartialFromCodedStream( |
193 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
194 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
195 | void SerializeWithCachedSizes( |
196 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
197 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
198 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
199 | int GetCachedSize() const final { return _cached_size_.Get(); } |
200 | |
201 | private: |
202 | inline void SharedCtor(); |
203 | inline void SharedDtor(); |
204 | void SetCachedSize(int size) const final; |
205 | void InternalSwap(ErrorSourceProto* other); |
206 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
207 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
208 | return "tensorflow.core.platform.ErrorSourceProto" ; |
209 | } |
210 | protected: |
211 | explicit ErrorSourceProto(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
212 | private: |
213 | static void ArenaDtor(void* object); |
214 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
215 | private: |
216 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
217 | return _internal_metadata_.arena(); |
218 | } |
219 | inline void* MaybeArenaPtr() const { |
220 | return _internal_metadata_.raw_arena_ptr(); |
221 | } |
222 | public: |
223 | |
224 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
225 | private: |
226 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
227 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto); |
228 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto.file_level_metadata[kIndexInFileMessages]; |
229 | } |
230 | |
231 | public: |
232 | |
233 | // nested types ---------------------------------------------------- |
234 | |
235 | typedef ErrorSourceProto_ErrorSource ErrorSource; |
236 | static constexpr ErrorSource UNKNOWN = |
237 | ErrorSourceProto_ErrorSource_UNKNOWN; |
238 | static constexpr ErrorSource TPU_COMPILE_OP = |
239 | ErrorSourceProto_ErrorSource_TPU_COMPILE_OP; |
240 | static constexpr ErrorSource TF_XLA_BRIDGE = |
241 | ErrorSourceProto_ErrorSource_TF_XLA_BRIDGE; |
242 | static constexpr ErrorSource MLIR_BRIDGE_PHASE_1 = |
243 | ErrorSourceProto_ErrorSource_MLIR_BRIDGE_PHASE_1; |
244 | static constexpr ErrorSource MLIR_BRIDGE_PHASE_2 = |
245 | ErrorSourceProto_ErrorSource_MLIR_BRIDGE_PHASE_2; |
246 | static constexpr ErrorSource EAGER_REMOTE_MGR = |
247 | ErrorSourceProto_ErrorSource_EAGER_REMOTE_MGR; |
248 | static inline bool ErrorSource_IsValid(int value) { |
249 | return ErrorSourceProto_ErrorSource_IsValid(value); |
250 | } |
251 | static constexpr ErrorSource ErrorSource_MIN = |
252 | ErrorSourceProto_ErrorSource_ErrorSource_MIN; |
253 | static constexpr ErrorSource ErrorSource_MAX = |
254 | ErrorSourceProto_ErrorSource_ErrorSource_MAX; |
255 | static constexpr int ErrorSource_ARRAYSIZE = |
256 | ErrorSourceProto_ErrorSource_ErrorSource_ARRAYSIZE; |
257 | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
258 | ErrorSource_descriptor() { |
259 | return ErrorSourceProto_ErrorSource_descriptor(); |
260 | } |
261 | template<typename T> |
262 | static inline const std::string& ErrorSource_Name(T enum_t_value) { |
263 | static_assert(::std::is_same<T, ErrorSource>::value || |
264 | ::std::is_integral<T>::value, |
265 | "Incorrect type passed to function ErrorSource_Name." ); |
266 | return ErrorSourceProto_ErrorSource_Name(enum_t_value); |
267 | } |
268 | static inline bool ErrorSource_Parse(const std::string& name, |
269 | ErrorSource* value) { |
270 | return ErrorSourceProto_ErrorSource_Parse(name, value); |
271 | } |
272 | |
273 | // accessors ------------------------------------------------------- |
274 | |
275 | enum : int { |
276 | kErrorSourceFieldNumber = 1, |
277 | }; |
278 | // .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; |
279 | void clear_error_source(); |
280 | ::tensorflow::core::platform::ErrorSourceProto_ErrorSource error_source() const; |
281 | void set_error_source(::tensorflow::core::platform::ErrorSourceProto_ErrorSource value); |
282 | |
283 | // @@protoc_insertion_point(class_scope:tensorflow.core.platform.ErrorSourceProto) |
284 | private: |
285 | class _Internal; |
286 | |
287 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
288 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
289 | typedef void InternalArenaConstructable_; |
290 | typedef void DestructorSkippable_; |
291 | int error_source_; |
292 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
293 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto; |
294 | }; |
295 | // =================================================================== |
296 | |
297 | |
298 | // =================================================================== |
299 | |
300 | #ifdef __GNUC__ |
301 | #pragma GCC diagnostic push |
302 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
303 | #endif // __GNUC__ |
304 | // ErrorSourceProto |
305 | |
306 | // .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; |
307 | inline void ErrorSourceProto::clear_error_source() { |
308 | error_source_ = 0; |
309 | } |
310 | inline ::tensorflow::core::platform::ErrorSourceProto_ErrorSource ErrorSourceProto::error_source() const { |
311 | // @@protoc_insertion_point(field_get:tensorflow.core.platform.ErrorSourceProto.error_source) |
312 | return static_cast< ::tensorflow::core::platform::ErrorSourceProto_ErrorSource >(error_source_); |
313 | } |
314 | inline void ErrorSourceProto::set_error_source(::tensorflow::core::platform::ErrorSourceProto_ErrorSource value) { |
315 | |
316 | error_source_ = value; |
317 | // @@protoc_insertion_point(field_set:tensorflow.core.platform.ErrorSourceProto.error_source) |
318 | } |
319 | |
320 | #ifdef __GNUC__ |
321 | #pragma GCC diagnostic pop |
322 | #endif // __GNUC__ |
323 | |
324 | // @@protoc_insertion_point(namespace_scope) |
325 | |
326 | } // namespace platform |
327 | } // namespace core |
328 | } // namespace tensorflow |
329 | |
330 | PROTOBUF_NAMESPACE_OPEN |
331 | |
332 | template <> struct is_proto_enum< ::tensorflow::core::platform::ErrorSourceProto_ErrorSource> : ::std::true_type {}; |
333 | template <> |
334 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::core::platform::ErrorSourceProto_ErrorSource>() { |
335 | return ::tensorflow::core::platform::ErrorSourceProto_ErrorSource_descriptor(); |
336 | } |
337 | |
338 | PROTOBUF_NAMESPACE_CLOSE |
339 | |
340 | // @@protoc_insertion_point(global_scope) |
341 | |
342 | #include <google/protobuf/port_undef.inc> |
343 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto |
344 | |