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 <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_2fsaver_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_2fsaver_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_2fsaver_2eproto; |
58 | namespace tensorflow { |
59 | class SaverDef; |
60 | class SaverDefDefaultTypeInternal; |
61 | extern SaverDefDefaultTypeInternal _SaverDef_default_instance_; |
62 | } // namespace tensorflow |
63 | PROTOBUF_NAMESPACE_OPEN |
64 | template<> ::tensorflow::SaverDef* Arena::CreateMaybeMessage<::tensorflow::SaverDef>(Arena*); |
65 | PROTOBUF_NAMESPACE_CLOSE |
66 | namespace tensorflow { |
67 | |
68 | enum SaverDef_CheckpointFormatVersion : int { |
69 | SaverDef_CheckpointFormatVersion_LEGACY = 0, |
70 | SaverDef_CheckpointFormatVersion_V1 = 1, |
71 | SaverDef_CheckpointFormatVersion_V2 = 2, |
72 | SaverDef_CheckpointFormatVersion_SaverDef_CheckpointFormatVersion_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
73 | SaverDef_CheckpointFormatVersion_SaverDef_CheckpointFormatVersion_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
74 | }; |
75 | bool SaverDef_CheckpointFormatVersion_IsValid(int value); |
76 | constexpr SaverDef_CheckpointFormatVersion SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MIN = SaverDef_CheckpointFormatVersion_LEGACY; |
77 | constexpr SaverDef_CheckpointFormatVersion SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MAX = SaverDef_CheckpointFormatVersion_V2; |
78 | constexpr int SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_ARRAYSIZE = SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MAX + 1; |
79 | |
80 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* SaverDef_CheckpointFormatVersion_descriptor(); |
81 | template<typename T> |
82 | inline const std::string& SaverDef_CheckpointFormatVersion_Name(T enum_t_value) { |
83 | static_assert(::std::is_same<T, SaverDef_CheckpointFormatVersion>::value || |
84 | ::std::is_integral<T>::value, |
85 | "Incorrect type passed to function SaverDef_CheckpointFormatVersion_Name." ); |
86 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
87 | SaverDef_CheckpointFormatVersion_descriptor(), enum_t_value); |
88 | } |
89 | inline bool SaverDef_CheckpointFormatVersion_Parse( |
90 | const std::string& name, SaverDef_CheckpointFormatVersion* value) { |
91 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<SaverDef_CheckpointFormatVersion>( |
92 | SaverDef_CheckpointFormatVersion_descriptor(), name, value); |
93 | } |
94 | // =================================================================== |
95 | |
96 | class SaverDef : |
97 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SaverDef) */ { |
98 | public: |
99 | SaverDef(); |
100 | virtual ~SaverDef(); |
101 | |
102 | SaverDef(const SaverDef& from); |
103 | SaverDef(SaverDef&& from) noexcept |
104 | : SaverDef() { |
105 | *this = ::std::move(from); |
106 | } |
107 | |
108 | inline SaverDef& operator=(const SaverDef& from) { |
109 | CopyFrom(from); |
110 | return *this; |
111 | } |
112 | inline SaverDef& operator=(SaverDef&& from) noexcept { |
113 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
114 | if (this != &from) InternalSwap(&from); |
115 | } else { |
116 | CopyFrom(from); |
117 | } |
118 | return *this; |
119 | } |
120 | |
121 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
122 | return GetArenaNoVirtual(); |
123 | } |
124 | inline void* GetMaybeArenaPointer() const final { |
125 | return MaybeArenaPtr(); |
126 | } |
127 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
128 | return GetDescriptor(); |
129 | } |
130 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
131 | return GetMetadataStatic().descriptor; |
132 | } |
133 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
134 | return GetMetadataStatic().reflection; |
135 | } |
136 | static const SaverDef& default_instance(); |
137 | |
138 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
139 | static inline const SaverDef* internal_default_instance() { |
140 | return reinterpret_cast<const SaverDef*>( |
141 | &_SaverDef_default_instance_); |
142 | } |
143 | static constexpr int kIndexInFileMessages = |
144 | 0; |
145 | |
146 | friend void swap(SaverDef& a, SaverDef& b) { |
147 | a.Swap(&b); |
148 | } |
149 | inline void Swap(SaverDef* other) { |
150 | if (other == this) return; |
151 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
152 | InternalSwap(other); |
153 | } else { |
154 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
155 | } |
156 | } |
157 | void UnsafeArenaSwap(SaverDef* other) { |
158 | if (other == this) return; |
159 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
160 | InternalSwap(other); |
161 | } |
162 | |
163 | // implements Message ---------------------------------------------- |
164 | |
165 | inline SaverDef* New() const final { |
166 | return CreateMaybeMessage<SaverDef>(nullptr); |
167 | } |
168 | |
169 | SaverDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
170 | return CreateMaybeMessage<SaverDef>(arena); |
171 | } |
172 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
173 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
174 | void CopyFrom(const SaverDef& from); |
175 | void MergeFrom(const SaverDef& from); |
176 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
177 | bool IsInitialized() const final; |
178 | |
179 | size_t ByteSizeLong() const final; |
180 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
181 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
182 | #else |
183 | bool MergePartialFromCodedStream( |
184 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
185 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
186 | void SerializeWithCachedSizes( |
187 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
188 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
189 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
190 | int GetCachedSize() const final { return _cached_size_.Get(); } |
191 | |
192 | private: |
193 | inline void SharedCtor(); |
194 | inline void SharedDtor(); |
195 | void SetCachedSize(int size) const final; |
196 | void InternalSwap(SaverDef* other); |
197 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
198 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
199 | return "tensorflow.SaverDef" ; |
200 | } |
201 | protected: |
202 | explicit SaverDef(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
203 | private: |
204 | static void ArenaDtor(void* object); |
205 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
206 | private: |
207 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
208 | return _internal_metadata_.arena(); |
209 | } |
210 | inline void* MaybeArenaPtr() const { |
211 | return _internal_metadata_.raw_arena_ptr(); |
212 | } |
213 | public: |
214 | |
215 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
216 | private: |
217 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
218 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto); |
219 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto.file_level_metadata[kIndexInFileMessages]; |
220 | } |
221 | |
222 | public: |
223 | |
224 | // nested types ---------------------------------------------------- |
225 | |
226 | typedef SaverDef_CheckpointFormatVersion CheckpointFormatVersion; |
227 | static constexpr CheckpointFormatVersion LEGACY = |
228 | SaverDef_CheckpointFormatVersion_LEGACY; |
229 | static constexpr CheckpointFormatVersion V1 = |
230 | SaverDef_CheckpointFormatVersion_V1; |
231 | static constexpr CheckpointFormatVersion V2 = |
232 | SaverDef_CheckpointFormatVersion_V2; |
233 | static inline bool CheckpointFormatVersion_IsValid(int value) { |
234 | return SaverDef_CheckpointFormatVersion_IsValid(value); |
235 | } |
236 | static constexpr CheckpointFormatVersion CheckpointFormatVersion_MIN = |
237 | SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MIN; |
238 | static constexpr CheckpointFormatVersion CheckpointFormatVersion_MAX = |
239 | SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_MAX; |
240 | static constexpr int CheckpointFormatVersion_ARRAYSIZE = |
241 | SaverDef_CheckpointFormatVersion_CheckpointFormatVersion_ARRAYSIZE; |
242 | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
243 | CheckpointFormatVersion_descriptor() { |
244 | return SaverDef_CheckpointFormatVersion_descriptor(); |
245 | } |
246 | template<typename T> |
247 | static inline const std::string& CheckpointFormatVersion_Name(T enum_t_value) { |
248 | static_assert(::std::is_same<T, CheckpointFormatVersion>::value || |
249 | ::std::is_integral<T>::value, |
250 | "Incorrect type passed to function CheckpointFormatVersion_Name." ); |
251 | return SaverDef_CheckpointFormatVersion_Name(enum_t_value); |
252 | } |
253 | static inline bool CheckpointFormatVersion_Parse(const std::string& name, |
254 | CheckpointFormatVersion* value) { |
255 | return SaverDef_CheckpointFormatVersion_Parse(name, value); |
256 | } |
257 | |
258 | // accessors ------------------------------------------------------- |
259 | |
260 | enum : int { |
261 | kFilenameTensorNameFieldNumber = 1, |
262 | kSaveTensorNameFieldNumber = 2, |
263 | kRestoreOpNameFieldNumber = 3, |
264 | kMaxToKeepFieldNumber = 4, |
265 | kShardedFieldNumber = 5, |
266 | kKeepCheckpointEveryNHoursFieldNumber = 6, |
267 | kVersionFieldNumber = 7, |
268 | }; |
269 | // string filename_tensor_name = 1; |
270 | void clear_filename_tensor_name(); |
271 | const std::string& filename_tensor_name() const; |
272 | void set_filename_tensor_name(const std::string& value); |
273 | void set_filename_tensor_name(std::string&& value); |
274 | void set_filename_tensor_name(const char* value); |
275 | void set_filename_tensor_name(const char* value, size_t size); |
276 | std::string* mutable_filename_tensor_name(); |
277 | std::string* release_filename_tensor_name(); |
278 | void set_allocated_filename_tensor_name(std::string* filename_tensor_name); |
279 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
280 | " string fields are deprecated and will be removed in a" |
281 | " future release." ) |
282 | std::string* unsafe_arena_release_filename_tensor_name(); |
283 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
284 | " string fields are deprecated and will be removed in a" |
285 | " future release." ) |
286 | void unsafe_arena_set_allocated_filename_tensor_name( |
287 | std::string* filename_tensor_name); |
288 | |
289 | // string save_tensor_name = 2; |
290 | void clear_save_tensor_name(); |
291 | const std::string& save_tensor_name() const; |
292 | void set_save_tensor_name(const std::string& value); |
293 | void set_save_tensor_name(std::string&& value); |
294 | void set_save_tensor_name(const char* value); |
295 | void set_save_tensor_name(const char* value, size_t size); |
296 | std::string* mutable_save_tensor_name(); |
297 | std::string* release_save_tensor_name(); |
298 | void set_allocated_save_tensor_name(std::string* save_tensor_name); |
299 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
300 | " string fields are deprecated and will be removed in a" |
301 | " future release." ) |
302 | std::string* unsafe_arena_release_save_tensor_name(); |
303 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
304 | " string fields are deprecated and will be removed in a" |
305 | " future release." ) |
306 | void unsafe_arena_set_allocated_save_tensor_name( |
307 | std::string* save_tensor_name); |
308 | |
309 | // string restore_op_name = 3; |
310 | void clear_restore_op_name(); |
311 | const std::string& restore_op_name() const; |
312 | void set_restore_op_name(const std::string& value); |
313 | void set_restore_op_name(std::string&& value); |
314 | void set_restore_op_name(const char* value); |
315 | void set_restore_op_name(const char* value, size_t size); |
316 | std::string* mutable_restore_op_name(); |
317 | std::string* release_restore_op_name(); |
318 | void set_allocated_restore_op_name(std::string* restore_op_name); |
319 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
320 | " string fields are deprecated and will be removed in a" |
321 | " future release." ) |
322 | std::string* unsafe_arena_release_restore_op_name(); |
323 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
324 | " string fields are deprecated and will be removed in a" |
325 | " future release." ) |
326 | void unsafe_arena_set_allocated_restore_op_name( |
327 | std::string* restore_op_name); |
328 | |
329 | // int32 max_to_keep = 4; |
330 | void clear_max_to_keep(); |
331 | ::PROTOBUF_NAMESPACE_ID::int32 max_to_keep() const; |
332 | void set_max_to_keep(::PROTOBUF_NAMESPACE_ID::int32 value); |
333 | |
334 | // bool sharded = 5; |
335 | void clear_sharded(); |
336 | bool sharded() const; |
337 | void set_sharded(bool value); |
338 | |
339 | // float keep_checkpoint_every_n_hours = 6; |
340 | void clear_keep_checkpoint_every_n_hours(); |
341 | float keep_checkpoint_every_n_hours() const; |
342 | void set_keep_checkpoint_every_n_hours(float value); |
343 | |
344 | // .tensorflow.SaverDef.CheckpointFormatVersion version = 7; |
345 | void clear_version(); |
346 | ::tensorflow::SaverDef_CheckpointFormatVersion version() const; |
347 | void set_version(::tensorflow::SaverDef_CheckpointFormatVersion value); |
348 | |
349 | // @@protoc_insertion_point(class_scope:tensorflow.SaverDef) |
350 | private: |
351 | class _Internal; |
352 | |
353 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
354 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
355 | typedef void InternalArenaConstructable_; |
356 | typedef void DestructorSkippable_; |
357 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr filename_tensor_name_; |
358 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr save_tensor_name_; |
359 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr restore_op_name_; |
360 | ::PROTOBUF_NAMESPACE_ID::int32 max_to_keep_; |
361 | bool sharded_; |
362 | float keep_checkpoint_every_n_hours_; |
363 | int version_; |
364 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
365 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto; |
366 | }; |
367 | // =================================================================== |
368 | |
369 | |
370 | // =================================================================== |
371 | |
372 | #ifdef __GNUC__ |
373 | #pragma GCC diagnostic push |
374 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
375 | #endif // __GNUC__ |
376 | // SaverDef |
377 | |
378 | // string filename_tensor_name = 1; |
379 | inline void SaverDef::clear_filename_tensor_name() { |
380 | filename_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
381 | } |
382 | inline const std::string& SaverDef::filename_tensor_name() const { |
383 | // @@protoc_insertion_point(field_get:tensorflow.SaverDef.filename_tensor_name) |
384 | return filename_tensor_name_.Get(); |
385 | } |
386 | inline void SaverDef::set_filename_tensor_name(const std::string& value) { |
387 | |
388 | filename_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
389 | // @@protoc_insertion_point(field_set:tensorflow.SaverDef.filename_tensor_name) |
390 | } |
391 | inline void SaverDef::set_filename_tensor_name(std::string&& value) { |
392 | |
393 | filename_tensor_name_.Set( |
394 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
395 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SaverDef.filename_tensor_name) |
396 | } |
397 | inline void SaverDef::set_filename_tensor_name(const char* value) { |
398 | GOOGLE_DCHECK(value != nullptr); |
399 | |
400 | filename_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
401 | GetArenaNoVirtual()); |
402 | // @@protoc_insertion_point(field_set_char:tensorflow.SaverDef.filename_tensor_name) |
403 | } |
404 | inline void SaverDef::set_filename_tensor_name(const char* value, |
405 | size_t size) { |
406 | |
407 | filename_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
408 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
409 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SaverDef.filename_tensor_name) |
410 | } |
411 | inline std::string* SaverDef::mutable_filename_tensor_name() { |
412 | |
413 | // @@protoc_insertion_point(field_mutable:tensorflow.SaverDef.filename_tensor_name) |
414 | return filename_tensor_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
415 | } |
416 | inline std::string* SaverDef::release_filename_tensor_name() { |
417 | // @@protoc_insertion_point(field_release:tensorflow.SaverDef.filename_tensor_name) |
418 | |
419 | return filename_tensor_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
420 | } |
421 | inline void SaverDef::set_allocated_filename_tensor_name(std::string* filename_tensor_name) { |
422 | if (filename_tensor_name != nullptr) { |
423 | |
424 | } else { |
425 | |
426 | } |
427 | filename_tensor_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), filename_tensor_name, |
428 | GetArenaNoVirtual()); |
429 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SaverDef.filename_tensor_name) |
430 | } |
431 | inline std::string* SaverDef::unsafe_arena_release_filename_tensor_name() { |
432 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SaverDef.filename_tensor_name) |
433 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
434 | |
435 | return filename_tensor_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
436 | GetArenaNoVirtual()); |
437 | } |
438 | inline void SaverDef::unsafe_arena_set_allocated_filename_tensor_name( |
439 | std::string* filename_tensor_name) { |
440 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
441 | if (filename_tensor_name != nullptr) { |
442 | |
443 | } else { |
444 | |
445 | } |
446 | filename_tensor_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
447 | filename_tensor_name, GetArenaNoVirtual()); |
448 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SaverDef.filename_tensor_name) |
449 | } |
450 | |
451 | // string save_tensor_name = 2; |
452 | inline void SaverDef::clear_save_tensor_name() { |
453 | save_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
454 | } |
455 | inline const std::string& SaverDef::save_tensor_name() const { |
456 | // @@protoc_insertion_point(field_get:tensorflow.SaverDef.save_tensor_name) |
457 | return save_tensor_name_.Get(); |
458 | } |
459 | inline void SaverDef::set_save_tensor_name(const std::string& value) { |
460 | |
461 | save_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
462 | // @@protoc_insertion_point(field_set:tensorflow.SaverDef.save_tensor_name) |
463 | } |
464 | inline void SaverDef::set_save_tensor_name(std::string&& value) { |
465 | |
466 | save_tensor_name_.Set( |
467 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
468 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SaverDef.save_tensor_name) |
469 | } |
470 | inline void SaverDef::set_save_tensor_name(const char* value) { |
471 | GOOGLE_DCHECK(value != nullptr); |
472 | |
473 | save_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
474 | GetArenaNoVirtual()); |
475 | // @@protoc_insertion_point(field_set_char:tensorflow.SaverDef.save_tensor_name) |
476 | } |
477 | inline void SaverDef::set_save_tensor_name(const char* value, |
478 | size_t size) { |
479 | |
480 | save_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
481 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
482 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SaverDef.save_tensor_name) |
483 | } |
484 | inline std::string* SaverDef::mutable_save_tensor_name() { |
485 | |
486 | // @@protoc_insertion_point(field_mutable:tensorflow.SaverDef.save_tensor_name) |
487 | return save_tensor_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
488 | } |
489 | inline std::string* SaverDef::release_save_tensor_name() { |
490 | // @@protoc_insertion_point(field_release:tensorflow.SaverDef.save_tensor_name) |
491 | |
492 | return save_tensor_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
493 | } |
494 | inline void SaverDef::set_allocated_save_tensor_name(std::string* save_tensor_name) { |
495 | if (save_tensor_name != nullptr) { |
496 | |
497 | } else { |
498 | |
499 | } |
500 | save_tensor_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), save_tensor_name, |
501 | GetArenaNoVirtual()); |
502 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SaverDef.save_tensor_name) |
503 | } |
504 | inline std::string* SaverDef::unsafe_arena_release_save_tensor_name() { |
505 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SaverDef.save_tensor_name) |
506 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
507 | |
508 | return save_tensor_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
509 | GetArenaNoVirtual()); |
510 | } |
511 | inline void SaverDef::unsafe_arena_set_allocated_save_tensor_name( |
512 | std::string* save_tensor_name) { |
513 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
514 | if (save_tensor_name != nullptr) { |
515 | |
516 | } else { |
517 | |
518 | } |
519 | save_tensor_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
520 | save_tensor_name, GetArenaNoVirtual()); |
521 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SaverDef.save_tensor_name) |
522 | } |
523 | |
524 | // string restore_op_name = 3; |
525 | inline void SaverDef::clear_restore_op_name() { |
526 | restore_op_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
527 | } |
528 | inline const std::string& SaverDef::restore_op_name() const { |
529 | // @@protoc_insertion_point(field_get:tensorflow.SaverDef.restore_op_name) |
530 | return restore_op_name_.Get(); |
531 | } |
532 | inline void SaverDef::set_restore_op_name(const std::string& value) { |
533 | |
534 | restore_op_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
535 | // @@protoc_insertion_point(field_set:tensorflow.SaverDef.restore_op_name) |
536 | } |
537 | inline void SaverDef::set_restore_op_name(std::string&& value) { |
538 | |
539 | restore_op_name_.Set( |
540 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
541 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SaverDef.restore_op_name) |
542 | } |
543 | inline void SaverDef::set_restore_op_name(const char* value) { |
544 | GOOGLE_DCHECK(value != nullptr); |
545 | |
546 | restore_op_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
547 | GetArenaNoVirtual()); |
548 | // @@protoc_insertion_point(field_set_char:tensorflow.SaverDef.restore_op_name) |
549 | } |
550 | inline void SaverDef::set_restore_op_name(const char* value, |
551 | size_t size) { |
552 | |
553 | restore_op_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
554 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
555 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SaverDef.restore_op_name) |
556 | } |
557 | inline std::string* SaverDef::mutable_restore_op_name() { |
558 | |
559 | // @@protoc_insertion_point(field_mutable:tensorflow.SaverDef.restore_op_name) |
560 | return restore_op_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
561 | } |
562 | inline std::string* SaverDef::release_restore_op_name() { |
563 | // @@protoc_insertion_point(field_release:tensorflow.SaverDef.restore_op_name) |
564 | |
565 | return restore_op_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
566 | } |
567 | inline void SaverDef::set_allocated_restore_op_name(std::string* restore_op_name) { |
568 | if (restore_op_name != nullptr) { |
569 | |
570 | } else { |
571 | |
572 | } |
573 | restore_op_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), restore_op_name, |
574 | GetArenaNoVirtual()); |
575 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SaverDef.restore_op_name) |
576 | } |
577 | inline std::string* SaverDef::unsafe_arena_release_restore_op_name() { |
578 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SaverDef.restore_op_name) |
579 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
580 | |
581 | return restore_op_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
582 | GetArenaNoVirtual()); |
583 | } |
584 | inline void SaverDef::unsafe_arena_set_allocated_restore_op_name( |
585 | std::string* restore_op_name) { |
586 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
587 | if (restore_op_name != nullptr) { |
588 | |
589 | } else { |
590 | |
591 | } |
592 | restore_op_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
593 | restore_op_name, GetArenaNoVirtual()); |
594 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SaverDef.restore_op_name) |
595 | } |
596 | |
597 | // int32 max_to_keep = 4; |
598 | inline void SaverDef::clear_max_to_keep() { |
599 | max_to_keep_ = 0; |
600 | } |
601 | inline ::PROTOBUF_NAMESPACE_ID::int32 SaverDef::max_to_keep() const { |
602 | // @@protoc_insertion_point(field_get:tensorflow.SaverDef.max_to_keep) |
603 | return max_to_keep_; |
604 | } |
605 | inline void SaverDef::set_max_to_keep(::PROTOBUF_NAMESPACE_ID::int32 value) { |
606 | |
607 | max_to_keep_ = value; |
608 | // @@protoc_insertion_point(field_set:tensorflow.SaverDef.max_to_keep) |
609 | } |
610 | |
611 | // bool sharded = 5; |
612 | inline void SaverDef::clear_sharded() { |
613 | sharded_ = false; |
614 | } |
615 | inline bool SaverDef::sharded() const { |
616 | // @@protoc_insertion_point(field_get:tensorflow.SaverDef.sharded) |
617 | return sharded_; |
618 | } |
619 | inline void SaverDef::set_sharded(bool value) { |
620 | |
621 | sharded_ = value; |
622 | // @@protoc_insertion_point(field_set:tensorflow.SaverDef.sharded) |
623 | } |
624 | |
625 | // float keep_checkpoint_every_n_hours = 6; |
626 | inline void SaverDef::clear_keep_checkpoint_every_n_hours() { |
627 | keep_checkpoint_every_n_hours_ = 0; |
628 | } |
629 | inline float SaverDef::keep_checkpoint_every_n_hours() const { |
630 | // @@protoc_insertion_point(field_get:tensorflow.SaverDef.keep_checkpoint_every_n_hours) |
631 | return keep_checkpoint_every_n_hours_; |
632 | } |
633 | inline void SaverDef::set_keep_checkpoint_every_n_hours(float value) { |
634 | |
635 | keep_checkpoint_every_n_hours_ = value; |
636 | // @@protoc_insertion_point(field_set:tensorflow.SaverDef.keep_checkpoint_every_n_hours) |
637 | } |
638 | |
639 | // .tensorflow.SaverDef.CheckpointFormatVersion version = 7; |
640 | inline void SaverDef::clear_version() { |
641 | version_ = 0; |
642 | } |
643 | inline ::tensorflow::SaverDef_CheckpointFormatVersion SaverDef::version() const { |
644 | // @@protoc_insertion_point(field_get:tensorflow.SaverDef.version) |
645 | return static_cast< ::tensorflow::SaverDef_CheckpointFormatVersion >(version_); |
646 | } |
647 | inline void SaverDef::set_version(::tensorflow::SaverDef_CheckpointFormatVersion value) { |
648 | |
649 | version_ = value; |
650 | // @@protoc_insertion_point(field_set:tensorflow.SaverDef.version) |
651 | } |
652 | |
653 | #ifdef __GNUC__ |
654 | #pragma GCC diagnostic pop |
655 | #endif // __GNUC__ |
656 | |
657 | // @@protoc_insertion_point(namespace_scope) |
658 | |
659 | } // namespace tensorflow |
660 | |
661 | PROTOBUF_NAMESPACE_OPEN |
662 | |
663 | template <> struct is_proto_enum< ::tensorflow::SaverDef_CheckpointFormatVersion> : ::std::true_type {}; |
664 | template <> |
665 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::SaverDef_CheckpointFormatVersion>() { |
666 | return ::tensorflow::SaverDef_CheckpointFormatVersion_descriptor(); |
667 | } |
668 | |
669 | PROTOBUF_NAMESPACE_CLOSE |
670 | |
671 | // @@protoc_insertion_point(global_scope) |
672 | |
673 | #include <google/protobuf/port_undef.inc> |
674 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaver_2eproto |
675 | |