1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: tensorflow/core/protobuf/saver.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaver_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 #include <google/protobuf/generated_enum_util.h>
33 // @@protoc_insertion_point(includes)
34 #include <google/protobuf/port_def.inc>
35 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto
36 PROTOBUF_NAMESPACE_OPEN
37 namespace internal {
38 class AnyMetadata;
39 }  // namespace internal
40 PROTOBUF_NAMESPACE_CLOSE
41 
42 // Internal implementation detail -- do not use these members.
43 struct TableStruct_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto {
44   static const ::uint32_t offsets[];
45 };
46 namespace tensorflow {
47 class SaverDef;
48 struct SaverDefDefaultTypeInternal;
49 extern SaverDefDefaultTypeInternal _SaverDef_default_instance_;
50 }  // namespace tensorflow
51 PROTOBUF_NAMESPACE_OPEN
52 template<> ::tensorflow::SaverDef* Arena::CreateMaybeMessage<::tensorflow::SaverDef>(Arena*);
53 PROTOBUF_NAMESPACE_CLOSE
54 namespace tensorflow {
55 
56 enum SaverDef_CheckpointFormatVersion : int {
57   SaverDef_CheckpointFormatVersion_LEGACY = 0,
58   SaverDef_CheckpointFormatVersion_V1 = 1,
59   SaverDef_CheckpointFormatVersion_V2 = 2,
60   SaverDef_CheckpointFormatVersion_SaverDef_CheckpointFormatVersion_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::min(),
61   SaverDef_CheckpointFormatVersion_SaverDef_CheckpointFormatVersion_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::int32_t>::max()
62 };
63 bool SaverDef_CheckpointFormatVersion_IsValid(int value);
64 constexpr SaverDef_CheckpointFormatVersion SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MIN = SaverDef_CheckpointFormatVersion_LEGACY;
65 constexpr SaverDef_CheckpointFormatVersion SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MAX = SaverDef_CheckpointFormatVersion_V2;
66 constexpr int SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_ARRAYSIZE = SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MAX + 1;
67 
68 const std::string& SaverDef_CheckpointFormatVersion_Name(SaverDef_CheckpointFormatVersion value);
69 template<typename T>
SaverDef_CheckpointFormatVersion_Name(T enum_t_value)70 inline const std::string& SaverDef_CheckpointFormatVersion_Name(T enum_t_value) {
71   static_assert(::std::is_same<T, SaverDef_CheckpointFormatVersion>::value ||
72     ::std::is_integral<T>::value,
73     "Incorrect type passed to function SaverDef_CheckpointFormatVersion_Name.");
74   return SaverDef_CheckpointFormatVersion_Name(static_cast<SaverDef_CheckpointFormatVersion>(enum_t_value));
75 }
76 bool SaverDef_CheckpointFormatVersion_Parse(
77     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, SaverDef_CheckpointFormatVersion* value);
78 // ===================================================================
79 
80 class SaverDef final :
81     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.SaverDef) */ {
82  public:
SaverDef()83   inline SaverDef() : SaverDef(nullptr) {}
84   ~SaverDef() override;
85   explicit PROTOBUF_CONSTEXPR SaverDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
86 
87   SaverDef(const SaverDef& from);
SaverDef(SaverDef && from)88   SaverDef(SaverDef&& from) noexcept
89     : SaverDef() {
90     *this = ::std::move(from);
91   }
92 
93   inline SaverDef& operator=(const SaverDef& from) {
94     if (this == &from) return *this;
95     CopyFrom(from);
96     return *this;
97   }
98   inline SaverDef& operator=(SaverDef&& from) noexcept {
99     if (this == &from) return *this;
100     if (GetOwningArena() == from.GetOwningArena()
101   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
102         && GetOwningArena() != nullptr
103   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
104     ) {
105       InternalSwap(&from);
106     } else {
107       CopyFrom(from);
108     }
109     return *this;
110   }
111 
default_instance()112   static const SaverDef& default_instance() {
113     return *internal_default_instance();
114   }
internal_default_instance()115   static inline const SaverDef* internal_default_instance() {
116     return reinterpret_cast<const SaverDef*>(
117                &_SaverDef_default_instance_);
118   }
119   static constexpr int kIndexInFileMessages =
120     0;
121 
swap(SaverDef & a,SaverDef & b)122   friend void swap(SaverDef& a, SaverDef& b) {
123     a.Swap(&b);
124   }
Swap(SaverDef * other)125   inline void Swap(SaverDef* other) {
126     if (other == this) return;
127   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
128     if (GetOwningArena() != nullptr &&
129         GetOwningArena() == other->GetOwningArena()) {
130    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
131     if (GetOwningArena() == other->GetOwningArena()) {
132   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
133       InternalSwap(other);
134     } else {
135       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
136     }
137   }
138   void UnsafeArenaSwap(SaverDef* other) {
139     if (other == this) return;
140     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
141     InternalSwap(other);
142   }
143 
144   // implements Message ----------------------------------------------
145 
146   SaverDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
147     return CreateMaybeMessage<SaverDef>(arena);
148   }
149   SaverDef* New() const {
150     return New(nullptr);
151   }
152   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
153   void CopyFrom(const SaverDef& from);
154   void MergeFrom(const SaverDef& from);
155   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
156   bool IsInitialized() const final;
157 
158   size_t ByteSizeLong() const final;
159   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
160   ::uint8_t* _InternalSerialize(
161       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
162   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
163 
164   private:
165   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
166   void SharedDtor();
167   void SetCachedSize(int size) const;
168   void InternalSwap(SaverDef* other);
169 
170   private:
171   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173     return "tensorflow.SaverDef";
174   }
175   protected:
176   explicit SaverDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
177                        bool is_message_owned = false);
178   public:
179 
180   std::string GetTypeName() const final;
181 
182   // nested types ----------------------------------------------------
183 
184   typedef SaverDef_CheckpointFormatVersion CheckpointFormatVersion;
185   static constexpr CheckpointFormatVersion LEGACY =
186     SaverDef_CheckpointFormatVersion_LEGACY;
187   static constexpr CheckpointFormatVersion V1 =
188     SaverDef_CheckpointFormatVersion_V1;
189   static constexpr CheckpointFormatVersion V2 =
190     SaverDef_CheckpointFormatVersion_V2;
191   static inline bool CheckpointFormatVersion_IsValid(int value) {
192     return SaverDef_CheckpointFormatVersion_IsValid(value);
193   }
194   static constexpr CheckpointFormatVersion CheckpointFormatVersion_MIN =
195     SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MIN;
196   static constexpr CheckpointFormatVersion CheckpointFormatVersion_MAX =
197     SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MAX;
198   static constexpr int CheckpointFormatVersion_ARRAYSIZE =
199     SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_ARRAYSIZE;
200   template<typename T>
201   static inline const std::string& CheckpointFormatVersion_Name(T enum_t_value) {
202     static_assert(::std::is_same<T, CheckpointFormatVersion>::value ||
203       ::std::is_integral<T>::value,
204       "Incorrect type passed to function CheckpointFormatVersion_Name.");
205     return SaverDef_CheckpointFormatVersion_Name(enum_t_value);
206   }
207   static inline bool CheckpointFormatVersion_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,
208       CheckpointFormatVersion* value) {
209     return SaverDef_CheckpointFormatVersion_Parse(name, value);
210   }
211 
212   // accessors -------------------------------------------------------
213 
214   enum : int {
215     kFilenameTensorNameFieldNumber = 1,
216     kSaveTensorNameFieldNumber = 2,
217     kRestoreOpNameFieldNumber = 3,
218     kMaxToKeepFieldNumber = 4,
219     kShardedFieldNumber = 5,
220     kKeepCheckpointEveryNHoursFieldNumber = 6,
221     kVersionFieldNumber = 7,
222   };
223   // string filename_tensor_name = 1;
224   void clear_filename_tensor_name();
225   const std::string& filename_tensor_name() const;
226   template <typename ArgT0 = const std::string&, typename... ArgT>
227   void set_filename_tensor_name(ArgT0&& arg0, ArgT... args);
228   std::string* mutable_filename_tensor_name();
229   PROTOBUF_NODISCARD std::string* release_filename_tensor_name();
230   void set_allocated_filename_tensor_name(std::string* filename_tensor_name);
231   private:
232   const std::string& _internal_filename_tensor_name() const;
233   inline PROTOBUF_ALWAYS_INLINE void _internal_set_filename_tensor_name(const std::string& value);
234   std::string* _internal_mutable_filename_tensor_name();
235   public:
236 
237   // string save_tensor_name = 2;
238   void clear_save_tensor_name();
239   const std::string& save_tensor_name() const;
240   template <typename ArgT0 = const std::string&, typename... ArgT>
241   void set_save_tensor_name(ArgT0&& arg0, ArgT... args);
242   std::string* mutable_save_tensor_name();
243   PROTOBUF_NODISCARD std::string* release_save_tensor_name();
244   void set_allocated_save_tensor_name(std::string* save_tensor_name);
245   private:
246   const std::string& _internal_save_tensor_name() const;
247   inline PROTOBUF_ALWAYS_INLINE void _internal_set_save_tensor_name(const std::string& value);
248   std::string* _internal_mutable_save_tensor_name();
249   public:
250 
251   // string restore_op_name = 3;
252   void clear_restore_op_name();
253   const std::string& restore_op_name() const;
254   template <typename ArgT0 = const std::string&, typename... ArgT>
255   void set_restore_op_name(ArgT0&& arg0, ArgT... args);
256   std::string* mutable_restore_op_name();
257   PROTOBUF_NODISCARD std::string* release_restore_op_name();
258   void set_allocated_restore_op_name(std::string* restore_op_name);
259   private:
260   const std::string& _internal_restore_op_name() const;
261   inline PROTOBUF_ALWAYS_INLINE void _internal_set_restore_op_name(const std::string& value);
262   std::string* _internal_mutable_restore_op_name();
263   public:
264 
265   // int32 max_to_keep = 4;
266   void clear_max_to_keep();
267   ::int32_t max_to_keep() const;
268   void set_max_to_keep(::int32_t value);
269   private:
270   ::int32_t _internal_max_to_keep() const;
271   void _internal_set_max_to_keep(::int32_t value);
272   public:
273 
274   // bool sharded = 5;
275   void clear_sharded();
276   bool sharded() const;
277   void set_sharded(bool value);
278   private:
279   bool _internal_sharded() const;
280   void _internal_set_sharded(bool value);
281   public:
282 
283   // float keep_checkpoint_every_n_hours = 6;
284   void clear_keep_checkpoint_every_n_hours();
285   float keep_checkpoint_every_n_hours() const;
286   void set_keep_checkpoint_every_n_hours(float value);
287   private:
288   float _internal_keep_checkpoint_every_n_hours() const;
289   void _internal_set_keep_checkpoint_every_n_hours(float value);
290   public:
291 
292   // .tensorflow.SaverDef.CheckpointFormatVersion version = 7;
293   void clear_version();
294   ::tensorflow::SaverDef_CheckpointFormatVersion version() const;
295   void set_version(::tensorflow::SaverDef_CheckpointFormatVersion value);
296   private:
297   ::tensorflow::SaverDef_CheckpointFormatVersion _internal_version() const;
298   void _internal_set_version(::tensorflow::SaverDef_CheckpointFormatVersion value);
299   public:
300 
301   // @@protoc_insertion_point(class_scope:tensorflow.SaverDef)
302  private:
303   class _Internal;
304 
305   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
306   typedef void InternalArenaConstructable_;
307   typedef void DestructorSkippable_;
308   struct Impl_ {
309     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_tensor_name_;
310     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr save_tensor_name_;
311     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr restore_op_name_;
312     ::int32_t max_to_keep_;
313     bool sharded_;
314     float keep_checkpoint_every_n_hours_;
315     int version_;
316     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
317   };
318   union { Impl_ _impl_; };
319   friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto;
320 };
321 // ===================================================================
322 
323 
324 // ===================================================================
325 
326 #ifdef __GNUC__
327   #pragma GCC diagnostic push
328   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
329 #endif  // __GNUC__
330 // SaverDef
331 
332 // string filename_tensor_name = 1;
clear_filename_tensor_name()333 inline void SaverDef::clear_filename_tensor_name() {
334   _impl_.filename_tensor_name_.ClearToEmpty();
335 }
filename_tensor_name()336 inline const std::string& SaverDef::filename_tensor_name() const {
337   // @@protoc_insertion_point(field_get:tensorflow.SaverDef.filename_tensor_name)
338   return _internal_filename_tensor_name();
339 }
340 template <typename ArgT0, typename... ArgT>
341 inline PROTOBUF_ALWAYS_INLINE
set_filename_tensor_name(ArgT0 && arg0,ArgT...args)342 void SaverDef::set_filename_tensor_name(ArgT0&& arg0, ArgT... args) {
343 
344  _impl_.filename_tensor_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
345   // @@protoc_insertion_point(field_set:tensorflow.SaverDef.filename_tensor_name)
346 }
mutable_filename_tensor_name()347 inline std::string* SaverDef::mutable_filename_tensor_name() {
348   std::string* _s = _internal_mutable_filename_tensor_name();
349   // @@protoc_insertion_point(field_mutable:tensorflow.SaverDef.filename_tensor_name)
350   return _s;
351 }
_internal_filename_tensor_name()352 inline const std::string& SaverDef::_internal_filename_tensor_name() const {
353   return _impl_.filename_tensor_name_.Get();
354 }
_internal_set_filename_tensor_name(const std::string & value)355 inline void SaverDef::_internal_set_filename_tensor_name(const std::string& value) {
356 
357   _impl_.filename_tensor_name_.Set(value, GetArenaForAllocation());
358 }
_internal_mutable_filename_tensor_name()359 inline std::string* SaverDef::_internal_mutable_filename_tensor_name() {
360 
361   return _impl_.filename_tensor_name_.Mutable(GetArenaForAllocation());
362 }
release_filename_tensor_name()363 inline std::string* SaverDef::release_filename_tensor_name() {
364   // @@protoc_insertion_point(field_release:tensorflow.SaverDef.filename_tensor_name)
365   return _impl_.filename_tensor_name_.Release();
366 }
set_allocated_filename_tensor_name(std::string * filename_tensor_name)367 inline void SaverDef::set_allocated_filename_tensor_name(std::string* filename_tensor_name) {
368   _impl_.filename_tensor_name_.SetAllocated(filename_tensor_name, GetArenaForAllocation());
369 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
370   if (_impl_.filename_tensor_name_.IsDefault()) {
371     _impl_.filename_tensor_name_.Set("", GetArenaForAllocation());
372   }
373 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
374   // @@protoc_insertion_point(field_set_allocated:tensorflow.SaverDef.filename_tensor_name)
375 }
376 
377 // string save_tensor_name = 2;
clear_save_tensor_name()378 inline void SaverDef::clear_save_tensor_name() {
379   _impl_.save_tensor_name_.ClearToEmpty();
380 }
save_tensor_name()381 inline const std::string& SaverDef::save_tensor_name() const {
382   // @@protoc_insertion_point(field_get:tensorflow.SaverDef.save_tensor_name)
383   return _internal_save_tensor_name();
384 }
385 template <typename ArgT0, typename... ArgT>
386 inline PROTOBUF_ALWAYS_INLINE
set_save_tensor_name(ArgT0 && arg0,ArgT...args)387 void SaverDef::set_save_tensor_name(ArgT0&& arg0, ArgT... args) {
388 
389  _impl_.save_tensor_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
390   // @@protoc_insertion_point(field_set:tensorflow.SaverDef.save_tensor_name)
391 }
mutable_save_tensor_name()392 inline std::string* SaverDef::mutable_save_tensor_name() {
393   std::string* _s = _internal_mutable_save_tensor_name();
394   // @@protoc_insertion_point(field_mutable:tensorflow.SaverDef.save_tensor_name)
395   return _s;
396 }
_internal_save_tensor_name()397 inline const std::string& SaverDef::_internal_save_tensor_name() const {
398   return _impl_.save_tensor_name_.Get();
399 }
_internal_set_save_tensor_name(const std::string & value)400 inline void SaverDef::_internal_set_save_tensor_name(const std::string& value) {
401 
402   _impl_.save_tensor_name_.Set(value, GetArenaForAllocation());
403 }
_internal_mutable_save_tensor_name()404 inline std::string* SaverDef::_internal_mutable_save_tensor_name() {
405 
406   return _impl_.save_tensor_name_.Mutable(GetArenaForAllocation());
407 }
release_save_tensor_name()408 inline std::string* SaverDef::release_save_tensor_name() {
409   // @@protoc_insertion_point(field_release:tensorflow.SaverDef.save_tensor_name)
410   return _impl_.save_tensor_name_.Release();
411 }
set_allocated_save_tensor_name(std::string * save_tensor_name)412 inline void SaverDef::set_allocated_save_tensor_name(std::string* save_tensor_name) {
413   _impl_.save_tensor_name_.SetAllocated(save_tensor_name, GetArenaForAllocation());
414 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
415   if (_impl_.save_tensor_name_.IsDefault()) {
416     _impl_.save_tensor_name_.Set("", GetArenaForAllocation());
417   }
418 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
419   // @@protoc_insertion_point(field_set_allocated:tensorflow.SaverDef.save_tensor_name)
420 }
421 
422 // string restore_op_name = 3;
clear_restore_op_name()423 inline void SaverDef::clear_restore_op_name() {
424   _impl_.restore_op_name_.ClearToEmpty();
425 }
restore_op_name()426 inline const std::string& SaverDef::restore_op_name() const {
427   // @@protoc_insertion_point(field_get:tensorflow.SaverDef.restore_op_name)
428   return _internal_restore_op_name();
429 }
430 template <typename ArgT0, typename... ArgT>
431 inline PROTOBUF_ALWAYS_INLINE
set_restore_op_name(ArgT0 && arg0,ArgT...args)432 void SaverDef::set_restore_op_name(ArgT0&& arg0, ArgT... args) {
433 
434  _impl_.restore_op_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
435   // @@protoc_insertion_point(field_set:tensorflow.SaverDef.restore_op_name)
436 }
mutable_restore_op_name()437 inline std::string* SaverDef::mutable_restore_op_name() {
438   std::string* _s = _internal_mutable_restore_op_name();
439   // @@protoc_insertion_point(field_mutable:tensorflow.SaverDef.restore_op_name)
440   return _s;
441 }
_internal_restore_op_name()442 inline const std::string& SaverDef::_internal_restore_op_name() const {
443   return _impl_.restore_op_name_.Get();
444 }
_internal_set_restore_op_name(const std::string & value)445 inline void SaverDef::_internal_set_restore_op_name(const std::string& value) {
446 
447   _impl_.restore_op_name_.Set(value, GetArenaForAllocation());
448 }
_internal_mutable_restore_op_name()449 inline std::string* SaverDef::_internal_mutable_restore_op_name() {
450 
451   return _impl_.restore_op_name_.Mutable(GetArenaForAllocation());
452 }
release_restore_op_name()453 inline std::string* SaverDef::release_restore_op_name() {
454   // @@protoc_insertion_point(field_release:tensorflow.SaverDef.restore_op_name)
455   return _impl_.restore_op_name_.Release();
456 }
set_allocated_restore_op_name(std::string * restore_op_name)457 inline void SaverDef::set_allocated_restore_op_name(std::string* restore_op_name) {
458   _impl_.restore_op_name_.SetAllocated(restore_op_name, GetArenaForAllocation());
459 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
460   if (_impl_.restore_op_name_.IsDefault()) {
461     _impl_.restore_op_name_.Set("", GetArenaForAllocation());
462   }
463 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
464   // @@protoc_insertion_point(field_set_allocated:tensorflow.SaverDef.restore_op_name)
465 }
466 
467 // int32 max_to_keep = 4;
clear_max_to_keep()468 inline void SaverDef::clear_max_to_keep() {
469   _impl_.max_to_keep_ = 0;
470 }
_internal_max_to_keep()471 inline ::int32_t SaverDef::_internal_max_to_keep() const {
472   return _impl_.max_to_keep_;
473 }
max_to_keep()474 inline ::int32_t SaverDef::max_to_keep() const {
475   // @@protoc_insertion_point(field_get:tensorflow.SaverDef.max_to_keep)
476   return _internal_max_to_keep();
477 }
_internal_set_max_to_keep(::int32_t value)478 inline void SaverDef::_internal_set_max_to_keep(::int32_t value) {
479 
480   _impl_.max_to_keep_ = value;
481 }
set_max_to_keep(::int32_t value)482 inline void SaverDef::set_max_to_keep(::int32_t value) {
483   _internal_set_max_to_keep(value);
484   // @@protoc_insertion_point(field_set:tensorflow.SaverDef.max_to_keep)
485 }
486 
487 // bool sharded = 5;
clear_sharded()488 inline void SaverDef::clear_sharded() {
489   _impl_.sharded_ = false;
490 }
_internal_sharded()491 inline bool SaverDef::_internal_sharded() const {
492   return _impl_.sharded_;
493 }
sharded()494 inline bool SaverDef::sharded() const {
495   // @@protoc_insertion_point(field_get:tensorflow.SaverDef.sharded)
496   return _internal_sharded();
497 }
_internal_set_sharded(bool value)498 inline void SaverDef::_internal_set_sharded(bool value) {
499 
500   _impl_.sharded_ = value;
501 }
set_sharded(bool value)502 inline void SaverDef::set_sharded(bool value) {
503   _internal_set_sharded(value);
504   // @@protoc_insertion_point(field_set:tensorflow.SaverDef.sharded)
505 }
506 
507 // float keep_checkpoint_every_n_hours = 6;
clear_keep_checkpoint_every_n_hours()508 inline void SaverDef::clear_keep_checkpoint_every_n_hours() {
509   _impl_.keep_checkpoint_every_n_hours_ = 0;
510 }
_internal_keep_checkpoint_every_n_hours()511 inline float SaverDef::_internal_keep_checkpoint_every_n_hours() const {
512   return _impl_.keep_checkpoint_every_n_hours_;
513 }
keep_checkpoint_every_n_hours()514 inline float SaverDef::keep_checkpoint_every_n_hours() const {
515   // @@protoc_insertion_point(field_get:tensorflow.SaverDef.keep_checkpoint_every_n_hours)
516   return _internal_keep_checkpoint_every_n_hours();
517 }
_internal_set_keep_checkpoint_every_n_hours(float value)518 inline void SaverDef::_internal_set_keep_checkpoint_every_n_hours(float value) {
519 
520   _impl_.keep_checkpoint_every_n_hours_ = value;
521 }
set_keep_checkpoint_every_n_hours(float value)522 inline void SaverDef::set_keep_checkpoint_every_n_hours(float value) {
523   _internal_set_keep_checkpoint_every_n_hours(value);
524   // @@protoc_insertion_point(field_set:tensorflow.SaverDef.keep_checkpoint_every_n_hours)
525 }
526 
527 // .tensorflow.SaverDef.CheckpointFormatVersion version = 7;
clear_version()528 inline void SaverDef::clear_version() {
529   _impl_.version_ = 0;
530 }
_internal_version()531 inline ::tensorflow::SaverDef_CheckpointFormatVersion SaverDef::_internal_version() const {
532   return static_cast< ::tensorflow::SaverDef_CheckpointFormatVersion >(_impl_.version_);
533 }
version()534 inline ::tensorflow::SaverDef_CheckpointFormatVersion SaverDef::version() const {
535   // @@protoc_insertion_point(field_get:tensorflow.SaverDef.version)
536   return _internal_version();
537 }
_internal_set_version(::tensorflow::SaverDef_CheckpointFormatVersion value)538 inline void SaverDef::_internal_set_version(::tensorflow::SaverDef_CheckpointFormatVersion value) {
539 
540   _impl_.version_ = value;
541 }
set_version(::tensorflow::SaverDef_CheckpointFormatVersion value)542 inline void SaverDef::set_version(::tensorflow::SaverDef_CheckpointFormatVersion value) {
543   _internal_set_version(value);
544   // @@protoc_insertion_point(field_set:tensorflow.SaverDef.version)
545 }
546 
547 #ifdef __GNUC__
548   #pragma GCC diagnostic pop
549 #endif  // __GNUC__
550 
551 // @@protoc_insertion_point(namespace_scope)
552 
553 }  // namespace tensorflow
554 
555 PROTOBUF_NAMESPACE_OPEN
556 
557 template <> struct is_proto_enum< ::tensorflow::SaverDef_CheckpointFormatVersion> : ::std::true_type {};
558 
559 PROTOBUF_NAMESPACE_CLOSE
560 
561 // @@protoc_insertion_point(global_scope)
562 
563 #include <google/protobuf/port_undef.inc>
564 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto
565