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 <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/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2freader_5fbase_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_2fframework_2freader_5fbase_2eproto {
43 static const ::uint32_t offsets[];
44 };
45 namespace tensorflow {
46 class ReaderBaseState;
47 struct ReaderBaseStateDefaultTypeInternal;
48 extern ReaderBaseStateDefaultTypeInternal _ReaderBaseState_default_instance_;
49 } // namespace tensorflow
50 PROTOBUF_NAMESPACE_OPEN
51 template<> ::tensorflow::ReaderBaseState* Arena::CreateMaybeMessage<::tensorflow::ReaderBaseState>(Arena*);
52 PROTOBUF_NAMESPACE_CLOSE
53 namespace tensorflow {
54
55 // ===================================================================
56
57 class ReaderBaseState final :
58 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.ReaderBaseState) */ {
59 public:
ReaderBaseState()60 inline ReaderBaseState() : ReaderBaseState(nullptr) {}
61 ~ReaderBaseState() override;
62 explicit PROTOBUF_CONSTEXPR ReaderBaseState(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
63
64 ReaderBaseState(const ReaderBaseState& from);
ReaderBaseState(ReaderBaseState && from)65 ReaderBaseState(ReaderBaseState&& from) noexcept
66 : ReaderBaseState() {
67 *this = ::std::move(from);
68 }
69
70 inline ReaderBaseState& operator=(const ReaderBaseState& from) {
71 if (this == &from) return *this;
72 CopyFrom(from);
73 return *this;
74 }
75 inline ReaderBaseState& operator=(ReaderBaseState&& from) noexcept {
76 if (this == &from) return *this;
77 if (GetOwningArena() == from.GetOwningArena()
78 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
79 && GetOwningArena() != nullptr
80 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
81 ) {
82 InternalSwap(&from);
83 } else {
84 CopyFrom(from);
85 }
86 return *this;
87 }
88
default_instance()89 static const ReaderBaseState& default_instance() {
90 return *internal_default_instance();
91 }
internal_default_instance()92 static inline const ReaderBaseState* internal_default_instance() {
93 return reinterpret_cast<const ReaderBaseState*>(
94 &_ReaderBaseState_default_instance_);
95 }
96 static constexpr int kIndexInFileMessages =
97 0;
98
swap(ReaderBaseState & a,ReaderBaseState & b)99 friend void swap(ReaderBaseState& a, ReaderBaseState& b) {
100 a.Swap(&b);
101 }
Swap(ReaderBaseState * other)102 inline void Swap(ReaderBaseState* other) {
103 if (other == this) return;
104 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
105 if (GetOwningArena() != nullptr &&
106 GetOwningArena() == other->GetOwningArena()) {
107 #else // PROTOBUF_FORCE_COPY_IN_SWAP
108 if (GetOwningArena() == other->GetOwningArena()) {
109 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
110 InternalSwap(other);
111 } else {
112 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
113 }
114 }
115 void UnsafeArenaSwap(ReaderBaseState* other) {
116 if (other == this) return;
117 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
118 InternalSwap(other);
119 }
120
121 // implements Message ----------------------------------------------
122
123 ReaderBaseState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
124 return CreateMaybeMessage<ReaderBaseState>(arena);
125 }
126 ReaderBaseState* New() const {
127 return New(nullptr);
128 }
129 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
130 void CopyFrom(const ReaderBaseState& from);
131 void MergeFrom(const ReaderBaseState& from);
132 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
133 bool IsInitialized() const final;
134
135 size_t ByteSizeLong() const final;
136 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
137 ::uint8_t* _InternalSerialize(
138 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
139 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
140
141 private:
142 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
143 void SharedDtor();
144 void SetCachedSize(int size) const;
145 void InternalSwap(ReaderBaseState* other);
146
147 private:
148 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
149 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
150 return "tensorflow.ReaderBaseState";
151 }
152 protected:
153 explicit ReaderBaseState(::PROTOBUF_NAMESPACE_ID::Arena* arena,
154 bool is_message_owned = false);
155 public:
156
157 std::string GetTypeName() const final;
158
159 // nested types ----------------------------------------------------
160
161 // accessors -------------------------------------------------------
162
163 enum : int {
164 kCurrentWorkFieldNumber = 4,
165 kWorkStartedFieldNumber = 1,
166 kWorkFinishedFieldNumber = 2,
167 kNumRecordsProducedFieldNumber = 3,
168 };
169 // bytes current_work = 4;
170 void clear_current_work();
171 const std::string& current_work() const;
172 template <typename ArgT0 = const std::string&, typename... ArgT>
173 void set_current_work(ArgT0&& arg0, ArgT... args);
174 std::string* mutable_current_work();
175 PROTOBUF_NODISCARD std::string* release_current_work();
176 void set_allocated_current_work(std::string* current_work);
177 private:
178 const std::string& _internal_current_work() const;
179 inline PROTOBUF_ALWAYS_INLINE void _internal_set_current_work(const std::string& value);
180 std::string* _internal_mutable_current_work();
181 public:
182
183 // int64 work_started = 1;
184 void clear_work_started();
185 ::int64_t work_started() const;
186 void set_work_started(::int64_t value);
187 private:
188 ::int64_t _internal_work_started() const;
189 void _internal_set_work_started(::int64_t value);
190 public:
191
192 // int64 work_finished = 2;
193 void clear_work_finished();
194 ::int64_t work_finished() const;
195 void set_work_finished(::int64_t value);
196 private:
197 ::int64_t _internal_work_finished() const;
198 void _internal_set_work_finished(::int64_t value);
199 public:
200
201 // int64 num_records_produced = 3;
202 void clear_num_records_produced();
203 ::int64_t num_records_produced() const;
204 void set_num_records_produced(::int64_t value);
205 private:
206 ::int64_t _internal_num_records_produced() const;
207 void _internal_set_num_records_produced(::int64_t value);
208 public:
209
210 // @@protoc_insertion_point(class_scope:tensorflow.ReaderBaseState)
211 private:
212 class _Internal;
213
214 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
215 typedef void InternalArenaConstructable_;
216 typedef void DestructorSkippable_;
217 struct Impl_ {
218 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr current_work_;
219 ::int64_t work_started_;
220 ::int64_t work_finished_;
221 ::int64_t num_records_produced_;
222 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
223 };
224 union { Impl_ _impl_; };
225 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto;
226 };
227 // ===================================================================
228
229
230 // ===================================================================
231
232 #ifdef __GNUC__
233 #pragma GCC diagnostic push
234 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
235 #endif // __GNUC__
236 // ReaderBaseState
237
238 // int64 work_started = 1;
clear_work_started()239 inline void ReaderBaseState::clear_work_started() {
240 _impl_.work_started_ = ::int64_t{0};
241 }
_internal_work_started()242 inline ::int64_t ReaderBaseState::_internal_work_started() const {
243 return _impl_.work_started_;
244 }
work_started()245 inline ::int64_t ReaderBaseState::work_started() const {
246 // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.work_started)
247 return _internal_work_started();
248 }
_internal_set_work_started(::int64_t value)249 inline void ReaderBaseState::_internal_set_work_started(::int64_t value) {
250
251 _impl_.work_started_ = value;
252 }
set_work_started(::int64_t value)253 inline void ReaderBaseState::set_work_started(::int64_t value) {
254 _internal_set_work_started(value);
255 // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.work_started)
256 }
257
258 // int64 work_finished = 2;
clear_work_finished()259 inline void ReaderBaseState::clear_work_finished() {
260 _impl_.work_finished_ = ::int64_t{0};
261 }
_internal_work_finished()262 inline ::int64_t ReaderBaseState::_internal_work_finished() const {
263 return _impl_.work_finished_;
264 }
work_finished()265 inline ::int64_t ReaderBaseState::work_finished() const {
266 // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.work_finished)
267 return _internal_work_finished();
268 }
_internal_set_work_finished(::int64_t value)269 inline void ReaderBaseState::_internal_set_work_finished(::int64_t value) {
270
271 _impl_.work_finished_ = value;
272 }
set_work_finished(::int64_t value)273 inline void ReaderBaseState::set_work_finished(::int64_t value) {
274 _internal_set_work_finished(value);
275 // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.work_finished)
276 }
277
278 // int64 num_records_produced = 3;
clear_num_records_produced()279 inline void ReaderBaseState::clear_num_records_produced() {
280 _impl_.num_records_produced_ = ::int64_t{0};
281 }
_internal_num_records_produced()282 inline ::int64_t ReaderBaseState::_internal_num_records_produced() const {
283 return _impl_.num_records_produced_;
284 }
num_records_produced()285 inline ::int64_t ReaderBaseState::num_records_produced() const {
286 // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.num_records_produced)
287 return _internal_num_records_produced();
288 }
_internal_set_num_records_produced(::int64_t value)289 inline void ReaderBaseState::_internal_set_num_records_produced(::int64_t value) {
290
291 _impl_.num_records_produced_ = value;
292 }
set_num_records_produced(::int64_t value)293 inline void ReaderBaseState::set_num_records_produced(::int64_t value) {
294 _internal_set_num_records_produced(value);
295 // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.num_records_produced)
296 }
297
298 // bytes current_work = 4;
clear_current_work()299 inline void ReaderBaseState::clear_current_work() {
300 _impl_.current_work_.ClearToEmpty();
301 }
current_work()302 inline const std::string& ReaderBaseState::current_work() const {
303 // @@protoc_insertion_point(field_get:tensorflow.ReaderBaseState.current_work)
304 return _internal_current_work();
305 }
306 template <typename ArgT0, typename... ArgT>
307 inline PROTOBUF_ALWAYS_INLINE
set_current_work(ArgT0 && arg0,ArgT...args)308 void ReaderBaseState::set_current_work(ArgT0&& arg0, ArgT... args) {
309
310 _impl_.current_work_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
311 // @@protoc_insertion_point(field_set:tensorflow.ReaderBaseState.current_work)
312 }
mutable_current_work()313 inline std::string* ReaderBaseState::mutable_current_work() {
314 std::string* _s = _internal_mutable_current_work();
315 // @@protoc_insertion_point(field_mutable:tensorflow.ReaderBaseState.current_work)
316 return _s;
317 }
_internal_current_work()318 inline const std::string& ReaderBaseState::_internal_current_work() const {
319 return _impl_.current_work_.Get();
320 }
_internal_set_current_work(const std::string & value)321 inline void ReaderBaseState::_internal_set_current_work(const std::string& value) {
322
323 _impl_.current_work_.Set(value, GetArenaForAllocation());
324 }
_internal_mutable_current_work()325 inline std::string* ReaderBaseState::_internal_mutable_current_work() {
326
327 return _impl_.current_work_.Mutable(GetArenaForAllocation());
328 }
release_current_work()329 inline std::string* ReaderBaseState::release_current_work() {
330 // @@protoc_insertion_point(field_release:tensorflow.ReaderBaseState.current_work)
331 return _impl_.current_work_.Release();
332 }
set_allocated_current_work(std::string * current_work)333 inline void ReaderBaseState::set_allocated_current_work(std::string* current_work) {
334 _impl_.current_work_.SetAllocated(current_work, GetArenaForAllocation());
335 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
336 if (_impl_.current_work_.IsDefault()) {
337 _impl_.current_work_.Set("", GetArenaForAllocation());
338 }
339 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
340 // @@protoc_insertion_point(field_set_allocated:tensorflow.ReaderBaseState.current_work)
341 }
342
343 #ifdef __GNUC__
344 #pragma GCC diagnostic pop
345 #endif // __GNUC__
346
347 // @@protoc_insertion_point(namespace_scope)
348
349 } // namespace tensorflow
350
351 // @@protoc_insertion_point(global_scope)
352
353 #include <google/protobuf/port_undef.inc>
354 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2freader_5fbase_2eproto
355