1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/framework/reader_base.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2freader_5fbase_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/unknown_field_set.h> |
35 | // @@protoc_insertion_point(includes) |
36 | #include <google/protobuf/port_def.inc> |
37 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto |
38 | PROTOBUF_NAMESPACE_OPEN |
39 | namespace internal { |
40 | class AnyMetadata; |
41 | } // namespace internal |
42 | PROTOBUF_NAMESPACE_CLOSE |
43 | |
44 | // Internal implementation detail -- do not use these members. |
45 | struct TableStruct_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto { |
46 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
47 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
48 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
49 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
55 | }; |
56 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto; |
57 | namespace tensorflow { |
58 | class ReaderBaseState; |
59 | class ReaderBaseStateDefaultTypeInternal; |
60 | extern ReaderBaseStateDefaultTypeInternal _ReaderBaseState_default_instance_; |
61 | } // namespace tensorflow |
62 | PROTOBUF_NAMESPACE_OPEN |
63 | template<> ::tensorflow::ReaderBaseState* Arena::CreateMaybeMessage<::tensorflow::ReaderBaseState>(Arena*); |
64 | PROTOBUF_NAMESPACE_CLOSE |
65 | namespace tensorflow { |
66 | |
67 | // =================================================================== |
68 | |
69 | class ReaderBaseState : |
70 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.ReaderBaseState) */ { |
71 | public: |
72 | ReaderBaseState(); |
73 | virtual ~ReaderBaseState(); |
74 | |
75 | ReaderBaseState(const ReaderBaseState& from); |
76 | ReaderBaseState(ReaderBaseState&& from) noexcept |
77 | : ReaderBaseState() { |
78 | *this = ::std::move(from); |
79 | } |
80 | |
81 | inline ReaderBaseState& operator=(const ReaderBaseState& from) { |
82 | CopyFrom(from); |
83 | return *this; |
84 | } |
85 | inline ReaderBaseState& operator=(ReaderBaseState&& from) noexcept { |
86 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
87 | if (this != &from) InternalSwap(&from); |
88 | } else { |
89 | CopyFrom(from); |
90 | } |
91 | return *this; |
92 | } |
93 | |
94 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
95 | return GetArenaNoVirtual(); |
96 | } |
97 | inline void* GetMaybeArenaPointer() const final { |
98 | return MaybeArenaPtr(); |
99 | } |
100 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
101 | return GetDescriptor(); |
102 | } |
103 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
104 | return GetMetadataStatic().descriptor; |
105 | } |
106 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
107 | return GetMetadataStatic().reflection; |
108 | } |
109 | static const ReaderBaseState& default_instance(); |
110 | |
111 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
112 | static inline const ReaderBaseState* internal_default_instance() { |
113 | return reinterpret_cast<const ReaderBaseState*>( |
114 | &_ReaderBaseState_default_instance_); |
115 | } |
116 | static constexpr int kIndexInFileMessages = |
117 | 0; |
118 | |
119 | friend void swap(ReaderBaseState& a, ReaderBaseState& b) { |
120 | a.Swap(&b); |
121 | } |
122 | inline void Swap(ReaderBaseState* other) { |
123 | if (other == this) return; |
124 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
125 | InternalSwap(other); |
126 | } else { |
127 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
128 | } |
129 | } |
130 | void UnsafeArenaSwap(ReaderBaseState* other) { |
131 | if (other == this) return; |
132 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
133 | InternalSwap(other); |
134 | } |
135 | |
136 | // implements Message ---------------------------------------------- |
137 | |
138 | inline ReaderBaseState* New() const final { |
139 | return CreateMaybeMessage<ReaderBaseState>(nullptr); |
140 | } |
141 | |
142 | ReaderBaseState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
143 | return CreateMaybeMessage<ReaderBaseState>(arena); |
144 | } |
145 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
146 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
147 | void CopyFrom(const ReaderBaseState& from); |
148 | void MergeFrom(const ReaderBaseState& from); |
149 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
150 | bool IsInitialized() const final; |
151 | |
152 | size_t ByteSizeLong() const final; |
153 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
154 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
155 | #else |
156 | bool MergePartialFromCodedStream( |
157 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
158 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
159 | void SerializeWithCachedSizes( |
160 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
161 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
162 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
163 | int GetCachedSize() const final { return _cached_size_.Get(); } |
164 | |
165 | private: |
166 | inline void SharedCtor(); |
167 | inline void SharedDtor(); |
168 | void SetCachedSize(int size) const final; |
169 | void InternalSwap(ReaderBaseState* other); |
170 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
171 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
172 | return "tensorflow.ReaderBaseState" ; |
173 | } |
174 | protected: |
175 | explicit ReaderBaseState(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
176 | private: |
177 | static void ArenaDtor(void* object); |
178 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
179 | private: |
180 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
181 | return _internal_metadata_.arena(); |
182 | } |
183 | inline void* MaybeArenaPtr() const { |
184 | return _internal_metadata_.raw_arena_ptr(); |
185 | } |
186 | public: |
187 | |
188 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
189 | private: |
190 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
191 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto); |
192 | return ::descriptor_table_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto.file_level_metadata[kIndexInFileMessages]; |
193 | } |
194 | |
195 | public: |
196 | |
197 | // nested types ---------------------------------------------------- |
198 | |
199 | // accessors ------------------------------------------------------- |
200 | |
201 | enum : int { |
202 | kCurrentWorkFieldNumber = 4, |
203 | kWorkStartedFieldNumber = 1, |
204 | kWorkFinishedFieldNumber = 2, |
205 | kNumRecordsProducedFieldNumber = 3, |
206 | }; |
207 | // bytes current_work = 4; |
208 | void clear_current_work(); |
209 | const std::string& current_work() const; |
210 | void set_current_work(const std::string& value); |
211 | void set_current_work(std::string&& value); |
212 | void set_current_work(const char* value); |
213 | void set_current_work(const void* value, size_t size); |
214 | std::string* mutable_current_work(); |
215 | std::string* release_current_work(); |
216 | void set_allocated_current_work(std::string* current_work); |
217 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
218 | " string fields are deprecated and will be removed in a" |
219 | " future release." ) |
220 | std::string* unsafe_arena_release_current_work(); |
221 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
222 | " string fields are deprecated and will be removed in a" |
223 | " future release." ) |
224 | void unsafe_arena_set_allocated_current_work( |
225 | std::string* current_work); |
226 | |
227 | // int64 work_started = 1; |
228 | void clear_work_started(); |
229 | ::PROTOBUF_NAMESPACE_ID::int64 work_started() const; |
230 | void set_work_started(::PROTOBUF_NAMESPACE_ID::int64 value); |
231 | |
232 | // int64 work_finished = 2; |
233 | void clear_work_finished(); |
234 | ::PROTOBUF_NAMESPACE_ID::int64 work_finished() const; |
235 | void set_work_finished(::PROTOBUF_NAMESPACE_ID::int64 value); |
236 | |
237 | // int64 num_records_produced = 3; |
238 | void clear_num_records_produced(); |
239 | ::PROTOBUF_NAMESPACE_ID::int64 num_records_produced() const; |
240 | void set_num_records_produced(::PROTOBUF_NAMESPACE_ID::int64 value); |
241 | |
242 | // @@protoc_insertion_point(class_scope:tensorflow.ReaderBaseState) |
243 | private: |
244 | class _Internal; |
245 | |
246 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
247 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
248 | typedef void InternalArenaConstructable_; |
249 | typedef void DestructorSkippable_; |
250 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_work_; |
251 | ::PROTOBUF_NAMESPACE_ID::int64 work_started_; |
252 | ::PROTOBUF_NAMESPACE_ID::int64 work_finished_; |
253 | ::PROTOBUF_NAMESPACE_ID::int64 num_records_produced_; |
254 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
255 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto; |
256 | }; |
257 | // =================================================================== |
258 | |
259 | |
260 | // =================================================================== |
261 | |
262 | #ifdef __GNUC__ |
263 | #pragma GCC diagnostic push |
264 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
265 | #endif // __GNUC__ |
266 | // ReaderBaseState |
267 | |
268 | // int64 work_started = 1; |
269 | inline void ReaderBaseState::clear_work_started() { |
270 | work_started_ = PROTOBUF_LONGLONG(0); |
271 | } |
272 | inline ::PROTOBUF_NAMESPACE_ID::int64 ReaderBaseState::work_started() const { |
273 | // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.work_started) |
274 | return work_started_; |
275 | } |
276 | inline void ReaderBaseState::set_work_started(::PROTOBUF_NAMESPACE_ID::int64 value) { |
277 | |
278 | work_started_ = value; |
279 | // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.work_started) |
280 | } |
281 | |
282 | // int64 work_finished = 2; |
283 | inline void ReaderBaseState::clear_work_finished() { |
284 | work_finished_ = PROTOBUF_LONGLONG(0); |
285 | } |
286 | inline ::PROTOBUF_NAMESPACE_ID::int64 ReaderBaseState::work_finished() const { |
287 | // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.work_finished) |
288 | return work_finished_; |
289 | } |
290 | inline void ReaderBaseState::set_work_finished(::PROTOBUF_NAMESPACE_ID::int64 value) { |
291 | |
292 | work_finished_ = value; |
293 | // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.work_finished) |
294 | } |
295 | |
296 | // int64 num_records_produced = 3; |
297 | inline void ReaderBaseState::clear_num_records_produced() { |
298 | num_records_produced_ = PROTOBUF_LONGLONG(0); |
299 | } |
300 | inline ::PROTOBUF_NAMESPACE_ID::int64 ReaderBaseState::num_records_produced() const { |
301 | // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.num_records_produced) |
302 | return num_records_produced_; |
303 | } |
304 | inline void ReaderBaseState::set_num_records_produced(::PROTOBUF_NAMESPACE_ID::int64 value) { |
305 | |
306 | num_records_produced_ = value; |
307 | // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.num_records_produced) |
308 | } |
309 | |
310 | // bytes current_work = 4; |
311 | inline void ReaderBaseState::clear_current_work() { |
312 | current_work_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
313 | } |
314 | inline const std::string& ReaderBaseState::current_work() const { |
315 | // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.current_work) |
316 | return current_work_.Get(); |
317 | } |
318 | inline void ReaderBaseState::set_current_work(const std::string& value) { |
319 | |
320 | current_work_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
321 | // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.current_work) |
322 | } |
323 | inline void ReaderBaseState::set_current_work(std::string&& value) { |
324 | |
325 | current_work_.Set( |
326 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
327 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.ReaderBaseState.current_work) |
328 | } |
329 | inline void ReaderBaseState::set_current_work(const char* value) { |
330 | GOOGLE_DCHECK(value != nullptr); |
331 | |
332 | current_work_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
333 | GetArenaNoVirtual()); |
334 | // @@protoc_insertion_point(field_set_char:tensorflow.ReaderBaseState.current_work) |
335 | } |
336 | inline void ReaderBaseState::set_current_work(const void* value, |
337 | size_t size) { |
338 | |
339 | current_work_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
340 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
341 | // @@protoc_insertion_point(field_set_pointer:tensorflow.ReaderBaseState.current_work) |
342 | } |
343 | inline std::string* ReaderBaseState::mutable_current_work() { |
344 | |
345 | // @@protoc_insertion_point(field_mutable:tensorflow.ReaderBaseState.current_work) |
346 | return current_work_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
347 | } |
348 | inline std::string* ReaderBaseState::release_current_work() { |
349 | // @@protoc_insertion_point(field_release:tensorflow.ReaderBaseState.current_work) |
350 | |
351 | return current_work_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
352 | } |
353 | inline void ReaderBaseState::set_allocated_current_work(std::string* current_work) { |
354 | if (current_work != nullptr) { |
355 | |
356 | } else { |
357 | |
358 | } |
359 | current_work_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), current_work, |
360 | GetArenaNoVirtual()); |
361 | // @@protoc_insertion_point(field_set_allocated:tensorflow.ReaderBaseState.current_work) |
362 | } |
363 | inline std::string* ReaderBaseState::unsafe_arena_release_current_work() { |
364 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.ReaderBaseState.current_work) |
365 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
366 | |
367 | return current_work_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
368 | GetArenaNoVirtual()); |
369 | } |
370 | inline void ReaderBaseState::unsafe_arena_set_allocated_current_work( |
371 | std::string* current_work) { |
372 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
373 | if (current_work != nullptr) { |
374 | |
375 | } else { |
376 | |
377 | } |
378 | current_work_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
379 | current_work, GetArenaNoVirtual()); |
380 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ReaderBaseState.current_work) |
381 | } |
382 | |
383 | #ifdef __GNUC__ |
384 | #pragma GCC diagnostic pop |
385 | #endif // __GNUC__ |
386 | |
387 | // @@protoc_insertion_point(namespace_scope) |
388 | |
389 | } // namespace tensorflow |
390 | |
391 | // @@protoc_insertion_point(global_scope) |
392 | |
393 | #include <google/protobuf/port_undef.inc> |
394 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto |
395 | |