1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/framework/types.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftypes_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftypes_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_2fframework_2ftypes_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_2fframework_2ftypes_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_2fframework_2ftypes_2eproto; |
58 | namespace tensorflow { |
59 | class SerializedDType; |
60 | class SerializedDTypeDefaultTypeInternal; |
61 | extern SerializedDTypeDefaultTypeInternal _SerializedDType_default_instance_; |
62 | } // namespace tensorflow |
63 | PROTOBUF_NAMESPACE_OPEN |
64 | template<> ::tensorflow::SerializedDType* Arena::CreateMaybeMessage<::tensorflow::SerializedDType>(Arena*); |
65 | PROTOBUF_NAMESPACE_CLOSE |
66 | namespace tensorflow { |
67 | |
68 | enum DataType : int { |
69 | DT_INVALID = 0, |
70 | DT_FLOAT = 1, |
71 | DT_DOUBLE = 2, |
72 | DT_INT32 = 3, |
73 | DT_UINT8 = 4, |
74 | DT_INT16 = 5, |
75 | DT_INT8 = 6, |
76 | DT_STRING = 7, |
77 | DT_COMPLEX64 = 8, |
78 | DT_INT64 = 9, |
79 | DT_BOOL = 10, |
80 | DT_QINT8 = 11, |
81 | DT_QUINT8 = 12, |
82 | DT_QINT32 = 13, |
83 | DT_BFLOAT16 = 14, |
84 | DT_QINT16 = 15, |
85 | DT_QUINT16 = 16, |
86 | DT_UINT16 = 17, |
87 | DT_COMPLEX128 = 18, |
88 | DT_HALF = 19, |
89 | DT_RESOURCE = 20, |
90 | DT_VARIANT = 21, |
91 | DT_UINT32 = 22, |
92 | DT_UINT64 = 23, |
93 | DT_FLOAT_REF = 101, |
94 | DT_DOUBLE_REF = 102, |
95 | DT_INT32_REF = 103, |
96 | DT_UINT8_REF = 104, |
97 | DT_INT16_REF = 105, |
98 | DT_INT8_REF = 106, |
99 | DT_STRING_REF = 107, |
100 | DT_COMPLEX64_REF = 108, |
101 | DT_INT64_REF = 109, |
102 | DT_BOOL_REF = 110, |
103 | DT_QINT8_REF = 111, |
104 | DT_QUINT8_REF = 112, |
105 | DT_QINT32_REF = 113, |
106 | DT_BFLOAT16_REF = 114, |
107 | DT_QINT16_REF = 115, |
108 | DT_QUINT16_REF = 116, |
109 | DT_UINT16_REF = 117, |
110 | DT_COMPLEX128_REF = 118, |
111 | DT_HALF_REF = 119, |
112 | DT_RESOURCE_REF = 120, |
113 | DT_VARIANT_REF = 121, |
114 | DT_UINT32_REF = 122, |
115 | DT_UINT64_REF = 123, |
116 | DataType_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
117 | DataType_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
118 | }; |
119 | bool DataType_IsValid(int value); |
120 | constexpr DataType DataType_MIN = DT_INVALID; |
121 | constexpr DataType DataType_MAX = DT_UINT64_REF; |
122 | constexpr int DataType_ARRAYSIZE = DataType_MAX + 1; |
123 | |
124 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* DataType_descriptor(); |
125 | template<typename T> |
126 | inline const std::string& DataType_Name(T enum_t_value) { |
127 | static_assert(::std::is_same<T, DataType>::value || |
128 | ::std::is_integral<T>::value, |
129 | "Incorrect type passed to function DataType_Name." ); |
130 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
131 | DataType_descriptor(), enum_t_value); |
132 | } |
133 | inline bool DataType_Parse( |
134 | const std::string& name, DataType* value) { |
135 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<DataType>( |
136 | DataType_descriptor(), name, value); |
137 | } |
138 | // =================================================================== |
139 | |
140 | class SerializedDType : |
141 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SerializedDType) */ { |
142 | public: |
143 | SerializedDType(); |
144 | virtual ~SerializedDType(); |
145 | |
146 | SerializedDType(const SerializedDType& from); |
147 | SerializedDType(SerializedDType&& from) noexcept |
148 | : SerializedDType() { |
149 | *this = ::std::move(from); |
150 | } |
151 | |
152 | inline SerializedDType& operator=(const SerializedDType& from) { |
153 | CopyFrom(from); |
154 | return *this; |
155 | } |
156 | inline SerializedDType& operator=(SerializedDType&& from) noexcept { |
157 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
158 | if (this != &from) InternalSwap(&from); |
159 | } else { |
160 | CopyFrom(from); |
161 | } |
162 | return *this; |
163 | } |
164 | |
165 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
166 | return GetArenaNoVirtual(); |
167 | } |
168 | inline void* GetMaybeArenaPointer() const final { |
169 | return MaybeArenaPtr(); |
170 | } |
171 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
172 | return GetDescriptor(); |
173 | } |
174 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
175 | return GetMetadataStatic().descriptor; |
176 | } |
177 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
178 | return GetMetadataStatic().reflection; |
179 | } |
180 | static const SerializedDType& default_instance(); |
181 | |
182 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
183 | static inline const SerializedDType* internal_default_instance() { |
184 | return reinterpret_cast<const SerializedDType*>( |
185 | &_SerializedDType_default_instance_); |
186 | } |
187 | static constexpr int kIndexInFileMessages = |
188 | 0; |
189 | |
190 | friend void swap(SerializedDType& a, SerializedDType& b) { |
191 | a.Swap(&b); |
192 | } |
193 | inline void Swap(SerializedDType* other) { |
194 | if (other == this) return; |
195 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
196 | InternalSwap(other); |
197 | } else { |
198 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
199 | } |
200 | } |
201 | void UnsafeArenaSwap(SerializedDType* other) { |
202 | if (other == this) return; |
203 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
204 | InternalSwap(other); |
205 | } |
206 | |
207 | // implements Message ---------------------------------------------- |
208 | |
209 | inline SerializedDType* New() const final { |
210 | return CreateMaybeMessage<SerializedDType>(nullptr); |
211 | } |
212 | |
213 | SerializedDType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
214 | return CreateMaybeMessage<SerializedDType>(arena); |
215 | } |
216 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
217 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
218 | void CopyFrom(const SerializedDType& from); |
219 | void MergeFrom(const SerializedDType& from); |
220 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
221 | bool IsInitialized() const final; |
222 | |
223 | size_t ByteSizeLong() const final; |
224 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
225 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
226 | #else |
227 | bool MergePartialFromCodedStream( |
228 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
229 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
230 | void SerializeWithCachedSizes( |
231 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
232 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
233 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
234 | int GetCachedSize() const final { return _cached_size_.Get(); } |
235 | |
236 | private: |
237 | inline void SharedCtor(); |
238 | inline void SharedDtor(); |
239 | void SetCachedSize(int size) const final; |
240 | void InternalSwap(SerializedDType* other); |
241 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
242 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
243 | return "tensorflow.SerializedDType" ; |
244 | } |
245 | protected: |
246 | explicit SerializedDType(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
247 | private: |
248 | static void ArenaDtor(void* object); |
249 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
250 | private: |
251 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
252 | return _internal_metadata_.arena(); |
253 | } |
254 | inline void* MaybeArenaPtr() const { |
255 | return _internal_metadata_.raw_arena_ptr(); |
256 | } |
257 | public: |
258 | |
259 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
260 | private: |
261 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
262 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ftypes_2eproto); |
263 | return ::descriptor_table_tensorflow_2fcore_2fframework_2ftypes_2eproto.file_level_metadata[kIndexInFileMessages]; |
264 | } |
265 | |
266 | public: |
267 | |
268 | // nested types ---------------------------------------------------- |
269 | |
270 | // accessors ------------------------------------------------------- |
271 | |
272 | enum : int { |
273 | kDatatypeFieldNumber = 1, |
274 | }; |
275 | // .tensorflow.DataType datatype = 1; |
276 | void clear_datatype(); |
277 | ::tensorflow::DataType datatype() const; |
278 | void set_datatype(::tensorflow::DataType value); |
279 | |
280 | // @@protoc_insertion_point(class_scope:tensorflow.SerializedDType) |
281 | private: |
282 | class _Internal; |
283 | |
284 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
285 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
286 | typedef void InternalArenaConstructable_; |
287 | typedef void DestructorSkippable_; |
288 | int datatype_; |
289 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
290 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ftypes_2eproto; |
291 | }; |
292 | // =================================================================== |
293 | |
294 | |
295 | // =================================================================== |
296 | |
297 | #ifdef __GNUC__ |
298 | #pragma GCC diagnostic push |
299 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
300 | #endif // __GNUC__ |
301 | // SerializedDType |
302 | |
303 | // .tensorflow.DataType datatype = 1; |
304 | inline void SerializedDType::clear_datatype() { |
305 | datatype_ = 0; |
306 | } |
307 | inline ::tensorflow::DataType SerializedDType::datatype() const { |
308 | // @@protoc_insertion_point(field_get:tensorflow.SerializedDType.datatype) |
309 | return static_cast< ::tensorflow::DataType >(datatype_); |
310 | } |
311 | inline void SerializedDType::set_datatype(::tensorflow::DataType value) { |
312 | |
313 | datatype_ = value; |
314 | // @@protoc_insertion_point(field_set:tensorflow.SerializedDType.datatype) |
315 | } |
316 | |
317 | #ifdef __GNUC__ |
318 | #pragma GCC diagnostic pop |
319 | #endif // __GNUC__ |
320 | |
321 | // @@protoc_insertion_point(namespace_scope) |
322 | |
323 | } // namespace tensorflow |
324 | |
325 | PROTOBUF_NAMESPACE_OPEN |
326 | |
327 | template <> struct is_proto_enum< ::tensorflow::DataType> : ::std::true_type {}; |
328 | template <> |
329 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::DataType>() { |
330 | return ::tensorflow::DataType_descriptor(); |
331 | } |
332 | |
333 | PROTOBUF_NAMESPACE_CLOSE |
334 | |
335 | // @@protoc_insertion_point(global_scope) |
336 | |
337 | #include <google/protobuf/port_undef.inc> |
338 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftypes_2eproto |
339 | |