1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/util/saved_tensor_slice.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_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 | #include "tensorflow/core/framework/tensor_shape.pb.h" |
36 | #include "tensorflow/core/framework/tensor_slice.pb.h" |
37 | #include "tensorflow/core/framework/tensor.pb.h" |
38 | #include "tensorflow/core/framework/types.pb.h" |
39 | #include "tensorflow/core/framework/versions.pb.h" |
40 | // @@protoc_insertion_point(includes) |
41 | #include <google/protobuf/port_def.inc> |
42 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto |
43 | PROTOBUF_NAMESPACE_OPEN |
44 | namespace internal { |
45 | class AnyMetadata; |
46 | } // namespace internal |
47 | PROTOBUF_NAMESPACE_CLOSE |
48 | |
49 | // Internal implementation detail -- do not use these members. |
50 | struct TableStruct_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto { |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
52 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
54 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
55 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] |
56 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
57 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
58 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
59 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
60 | }; |
61 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto; |
62 | namespace tensorflow { |
63 | class SavedSlice; |
64 | class SavedSliceDefaultTypeInternal; |
65 | extern SavedSliceDefaultTypeInternal _SavedSlice_default_instance_; |
66 | class SavedSliceMeta; |
67 | class SavedSliceMetaDefaultTypeInternal; |
68 | extern SavedSliceMetaDefaultTypeInternal _SavedSliceMeta_default_instance_; |
69 | class SavedTensorSliceMeta; |
70 | class SavedTensorSliceMetaDefaultTypeInternal; |
71 | extern SavedTensorSliceMetaDefaultTypeInternal _SavedTensorSliceMeta_default_instance_; |
72 | class SavedTensorSlices; |
73 | class SavedTensorSlicesDefaultTypeInternal; |
74 | extern SavedTensorSlicesDefaultTypeInternal _SavedTensorSlices_default_instance_; |
75 | } // namespace tensorflow |
76 | PROTOBUF_NAMESPACE_OPEN |
77 | template<> ::tensorflow::SavedSlice* Arena::CreateMaybeMessage<::tensorflow::SavedSlice>(Arena*); |
78 | template<> ::tensorflow::SavedSliceMeta* Arena::CreateMaybeMessage<::tensorflow::SavedSliceMeta>(Arena*); |
79 | template<> ::tensorflow::SavedTensorSliceMeta* Arena::CreateMaybeMessage<::tensorflow::SavedTensorSliceMeta>(Arena*); |
80 | template<> ::tensorflow::SavedTensorSlices* Arena::CreateMaybeMessage<::tensorflow::SavedTensorSlices>(Arena*); |
81 | PROTOBUF_NAMESPACE_CLOSE |
82 | namespace tensorflow { |
83 | |
84 | // =================================================================== |
85 | |
86 | class SavedSliceMeta : |
87 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedSliceMeta) */ { |
88 | public: |
89 | SavedSliceMeta(); |
90 | virtual ~SavedSliceMeta(); |
91 | |
92 | SavedSliceMeta(const SavedSliceMeta& from); |
93 | SavedSliceMeta(SavedSliceMeta&& from) noexcept |
94 | : SavedSliceMeta() { |
95 | *this = ::std::move(from); |
96 | } |
97 | |
98 | inline SavedSliceMeta& operator=(const SavedSliceMeta& from) { |
99 | CopyFrom(from); |
100 | return *this; |
101 | } |
102 | inline SavedSliceMeta& operator=(SavedSliceMeta&& from) noexcept { |
103 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
104 | if (this != &from) InternalSwap(&from); |
105 | } else { |
106 | CopyFrom(from); |
107 | } |
108 | return *this; |
109 | } |
110 | |
111 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
112 | return GetArenaNoVirtual(); |
113 | } |
114 | inline void* GetMaybeArenaPointer() const final { |
115 | return MaybeArenaPtr(); |
116 | } |
117 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
118 | return GetDescriptor(); |
119 | } |
120 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
121 | return GetMetadataStatic().descriptor; |
122 | } |
123 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
124 | return GetMetadataStatic().reflection; |
125 | } |
126 | static const SavedSliceMeta& default_instance(); |
127 | |
128 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
129 | static inline const SavedSliceMeta* internal_default_instance() { |
130 | return reinterpret_cast<const SavedSliceMeta*>( |
131 | &_SavedSliceMeta_default_instance_); |
132 | } |
133 | static constexpr int kIndexInFileMessages = |
134 | 0; |
135 | |
136 | friend void swap(SavedSliceMeta& a, SavedSliceMeta& b) { |
137 | a.Swap(&b); |
138 | } |
139 | inline void Swap(SavedSliceMeta* other) { |
140 | if (other == this) return; |
141 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
142 | InternalSwap(other); |
143 | } else { |
144 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
145 | } |
146 | } |
147 | void UnsafeArenaSwap(SavedSliceMeta* other) { |
148 | if (other == this) return; |
149 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
150 | InternalSwap(other); |
151 | } |
152 | |
153 | // implements Message ---------------------------------------------- |
154 | |
155 | inline SavedSliceMeta* New() const final { |
156 | return CreateMaybeMessage<SavedSliceMeta>(nullptr); |
157 | } |
158 | |
159 | SavedSliceMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
160 | return CreateMaybeMessage<SavedSliceMeta>(arena); |
161 | } |
162 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
163 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
164 | void CopyFrom(const SavedSliceMeta& from); |
165 | void MergeFrom(const SavedSliceMeta& from); |
166 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
167 | bool IsInitialized() const final; |
168 | |
169 | size_t ByteSizeLong() const final; |
170 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
171 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
172 | #else |
173 | bool MergePartialFromCodedStream( |
174 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
175 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
176 | void SerializeWithCachedSizes( |
177 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
178 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
179 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
180 | int GetCachedSize() const final { return _cached_size_.Get(); } |
181 | |
182 | private: |
183 | inline void SharedCtor(); |
184 | inline void SharedDtor(); |
185 | void SetCachedSize(int size) const final; |
186 | void InternalSwap(SavedSliceMeta* other); |
187 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
188 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
189 | return "tensorflow.SavedSliceMeta" ; |
190 | } |
191 | protected: |
192 | explicit SavedSliceMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
193 | private: |
194 | static void ArenaDtor(void* object); |
195 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
196 | private: |
197 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
198 | return _internal_metadata_.arena(); |
199 | } |
200 | inline void* MaybeArenaPtr() const { |
201 | return _internal_metadata_.raw_arena_ptr(); |
202 | } |
203 | public: |
204 | |
205 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
206 | private: |
207 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
208 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto); |
209 | return ::descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto.file_level_metadata[kIndexInFileMessages]; |
210 | } |
211 | |
212 | public: |
213 | |
214 | // nested types ---------------------------------------------------- |
215 | |
216 | // accessors ------------------------------------------------------- |
217 | |
218 | enum : int { |
219 | kSliceFieldNumber = 4, |
220 | kNameFieldNumber = 1, |
221 | kShapeFieldNumber = 2, |
222 | kTypeFieldNumber = 3, |
223 | }; |
224 | // repeated .tensorflow.TensorSliceProto slice = 4; |
225 | int slice_size() const; |
226 | void clear_slice(); |
227 | ::tensorflow::TensorSliceProto* mutable_slice(int index); |
228 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto >* |
229 | mutable_slice(); |
230 | const ::tensorflow::TensorSliceProto& slice(int index) const; |
231 | ::tensorflow::TensorSliceProto* add_slice(); |
232 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto >& |
233 | slice() const; |
234 | |
235 | // string name = 1; |
236 | void clear_name(); |
237 | const std::string& name() const; |
238 | void set_name(const std::string& value); |
239 | void set_name(std::string&& value); |
240 | void set_name(const char* value); |
241 | void set_name(const char* value, size_t size); |
242 | std::string* mutable_name(); |
243 | std::string* release_name(); |
244 | void set_allocated_name(std::string* name); |
245 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
246 | " string fields are deprecated and will be removed in a" |
247 | " future release." ) |
248 | std::string* unsafe_arena_release_name(); |
249 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
250 | " string fields are deprecated and will be removed in a" |
251 | " future release." ) |
252 | void unsafe_arena_set_allocated_name( |
253 | std::string* name); |
254 | |
255 | // .tensorflow.TensorShapeProto shape = 2; |
256 | bool has_shape() const; |
257 | void clear_shape(); |
258 | const ::tensorflow::TensorShapeProto& shape() const; |
259 | ::tensorflow::TensorShapeProto* release_shape(); |
260 | ::tensorflow::TensorShapeProto* mutable_shape(); |
261 | void set_allocated_shape(::tensorflow::TensorShapeProto* shape); |
262 | void unsafe_arena_set_allocated_shape( |
263 | ::tensorflow::TensorShapeProto* shape); |
264 | ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); |
265 | |
266 | // .tensorflow.DataType type = 3; |
267 | void clear_type(); |
268 | ::tensorflow::DataType type() const; |
269 | void set_type(::tensorflow::DataType value); |
270 | |
271 | // @@protoc_insertion_point(class_scope:tensorflow.SavedSliceMeta) |
272 | private: |
273 | class _Internal; |
274 | |
275 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
276 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
277 | typedef void InternalArenaConstructable_; |
278 | typedef void DestructorSkippable_; |
279 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto > slice_; |
280 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
281 | ::tensorflow::TensorShapeProto* shape_; |
282 | int type_; |
283 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
284 | friend struct ::TableStruct_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto; |
285 | }; |
286 | // ------------------------------------------------------------------- |
287 | |
288 | class SavedTensorSliceMeta : |
289 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedTensorSliceMeta) */ { |
290 | public: |
291 | SavedTensorSliceMeta(); |
292 | virtual ~SavedTensorSliceMeta(); |
293 | |
294 | SavedTensorSliceMeta(const SavedTensorSliceMeta& from); |
295 | SavedTensorSliceMeta(SavedTensorSliceMeta&& from) noexcept |
296 | : SavedTensorSliceMeta() { |
297 | *this = ::std::move(from); |
298 | } |
299 | |
300 | inline SavedTensorSliceMeta& operator=(const SavedTensorSliceMeta& from) { |
301 | CopyFrom(from); |
302 | return *this; |
303 | } |
304 | inline SavedTensorSliceMeta& operator=(SavedTensorSliceMeta&& from) noexcept { |
305 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
306 | if (this != &from) InternalSwap(&from); |
307 | } else { |
308 | CopyFrom(from); |
309 | } |
310 | return *this; |
311 | } |
312 | |
313 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
314 | return GetArenaNoVirtual(); |
315 | } |
316 | inline void* GetMaybeArenaPointer() const final { |
317 | return MaybeArenaPtr(); |
318 | } |
319 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
320 | return GetDescriptor(); |
321 | } |
322 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
323 | return GetMetadataStatic().descriptor; |
324 | } |
325 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
326 | return GetMetadataStatic().reflection; |
327 | } |
328 | static const SavedTensorSliceMeta& default_instance(); |
329 | |
330 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
331 | static inline const SavedTensorSliceMeta* internal_default_instance() { |
332 | return reinterpret_cast<const SavedTensorSliceMeta*>( |
333 | &_SavedTensorSliceMeta_default_instance_); |
334 | } |
335 | static constexpr int kIndexInFileMessages = |
336 | 1; |
337 | |
338 | friend void swap(SavedTensorSliceMeta& a, SavedTensorSliceMeta& b) { |
339 | a.Swap(&b); |
340 | } |
341 | inline void Swap(SavedTensorSliceMeta* other) { |
342 | if (other == this) return; |
343 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
344 | InternalSwap(other); |
345 | } else { |
346 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
347 | } |
348 | } |
349 | void UnsafeArenaSwap(SavedTensorSliceMeta* other) { |
350 | if (other == this) return; |
351 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
352 | InternalSwap(other); |
353 | } |
354 | |
355 | // implements Message ---------------------------------------------- |
356 | |
357 | inline SavedTensorSliceMeta* New() const final { |
358 | return CreateMaybeMessage<SavedTensorSliceMeta>(nullptr); |
359 | } |
360 | |
361 | SavedTensorSliceMeta* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
362 | return CreateMaybeMessage<SavedTensorSliceMeta>(arena); |
363 | } |
364 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
365 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
366 | void CopyFrom(const SavedTensorSliceMeta& from); |
367 | void MergeFrom(const SavedTensorSliceMeta& from); |
368 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
369 | bool IsInitialized() const final; |
370 | |
371 | size_t ByteSizeLong() const final; |
372 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
373 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
374 | #else |
375 | bool MergePartialFromCodedStream( |
376 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
377 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
378 | void SerializeWithCachedSizes( |
379 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
380 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
381 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
382 | int GetCachedSize() const final { return _cached_size_.Get(); } |
383 | |
384 | private: |
385 | inline void SharedCtor(); |
386 | inline void SharedDtor(); |
387 | void SetCachedSize(int size) const final; |
388 | void InternalSwap(SavedTensorSliceMeta* other); |
389 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
390 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
391 | return "tensorflow.SavedTensorSliceMeta" ; |
392 | } |
393 | protected: |
394 | explicit SavedTensorSliceMeta(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
395 | private: |
396 | static void ArenaDtor(void* object); |
397 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
398 | private: |
399 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
400 | return _internal_metadata_.arena(); |
401 | } |
402 | inline void* MaybeArenaPtr() const { |
403 | return _internal_metadata_.raw_arena_ptr(); |
404 | } |
405 | public: |
406 | |
407 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
408 | private: |
409 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
410 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto); |
411 | return ::descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto.file_level_metadata[kIndexInFileMessages]; |
412 | } |
413 | |
414 | public: |
415 | |
416 | // nested types ---------------------------------------------------- |
417 | |
418 | // accessors ------------------------------------------------------- |
419 | |
420 | enum : int { |
421 | kTensorFieldNumber = 1, |
422 | kVersionsFieldNumber = 2, |
423 | }; |
424 | // repeated .tensorflow.SavedSliceMeta tensor = 1; |
425 | int tensor_size() const; |
426 | void clear_tensor(); |
427 | ::tensorflow::SavedSliceMeta* mutable_tensor(int index); |
428 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedSliceMeta >* |
429 | mutable_tensor(); |
430 | const ::tensorflow::SavedSliceMeta& tensor(int index) const; |
431 | ::tensorflow::SavedSliceMeta* add_tensor(); |
432 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedSliceMeta >& |
433 | tensor() const; |
434 | |
435 | // .tensorflow.VersionDef versions = 2; |
436 | bool has_versions() const; |
437 | void clear_versions(); |
438 | const ::tensorflow::VersionDef& versions() const; |
439 | ::tensorflow::VersionDef* release_versions(); |
440 | ::tensorflow::VersionDef* mutable_versions(); |
441 | void set_allocated_versions(::tensorflow::VersionDef* versions); |
442 | void unsafe_arena_set_allocated_versions( |
443 | ::tensorflow::VersionDef* versions); |
444 | ::tensorflow::VersionDef* unsafe_arena_release_versions(); |
445 | |
446 | // @@protoc_insertion_point(class_scope:tensorflow.SavedTensorSliceMeta) |
447 | private: |
448 | class _Internal; |
449 | |
450 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
451 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
452 | typedef void InternalArenaConstructable_; |
453 | typedef void DestructorSkippable_; |
454 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedSliceMeta > tensor_; |
455 | ::tensorflow::VersionDef* versions_; |
456 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
457 | friend struct ::TableStruct_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto; |
458 | }; |
459 | // ------------------------------------------------------------------- |
460 | |
461 | class SavedSlice : |
462 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedSlice) */ { |
463 | public: |
464 | SavedSlice(); |
465 | virtual ~SavedSlice(); |
466 | |
467 | SavedSlice(const SavedSlice& from); |
468 | SavedSlice(SavedSlice&& from) noexcept |
469 | : SavedSlice() { |
470 | *this = ::std::move(from); |
471 | } |
472 | |
473 | inline SavedSlice& operator=(const SavedSlice& from) { |
474 | CopyFrom(from); |
475 | return *this; |
476 | } |
477 | inline SavedSlice& operator=(SavedSlice&& from) noexcept { |
478 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
479 | if (this != &from) InternalSwap(&from); |
480 | } else { |
481 | CopyFrom(from); |
482 | } |
483 | return *this; |
484 | } |
485 | |
486 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
487 | return GetArenaNoVirtual(); |
488 | } |
489 | inline void* GetMaybeArenaPointer() const final { |
490 | return MaybeArenaPtr(); |
491 | } |
492 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
493 | return GetDescriptor(); |
494 | } |
495 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
496 | return GetMetadataStatic().descriptor; |
497 | } |
498 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
499 | return GetMetadataStatic().reflection; |
500 | } |
501 | static const SavedSlice& default_instance(); |
502 | |
503 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
504 | static inline const SavedSlice* internal_default_instance() { |
505 | return reinterpret_cast<const SavedSlice*>( |
506 | &_SavedSlice_default_instance_); |
507 | } |
508 | static constexpr int kIndexInFileMessages = |
509 | 2; |
510 | |
511 | friend void swap(SavedSlice& a, SavedSlice& b) { |
512 | a.Swap(&b); |
513 | } |
514 | inline void Swap(SavedSlice* other) { |
515 | if (other == this) return; |
516 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
517 | InternalSwap(other); |
518 | } else { |
519 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
520 | } |
521 | } |
522 | void UnsafeArenaSwap(SavedSlice* other) { |
523 | if (other == this) return; |
524 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
525 | InternalSwap(other); |
526 | } |
527 | |
528 | // implements Message ---------------------------------------------- |
529 | |
530 | inline SavedSlice* New() const final { |
531 | return CreateMaybeMessage<SavedSlice>(nullptr); |
532 | } |
533 | |
534 | SavedSlice* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
535 | return CreateMaybeMessage<SavedSlice>(arena); |
536 | } |
537 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
538 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
539 | void CopyFrom(const SavedSlice& from); |
540 | void MergeFrom(const SavedSlice& from); |
541 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
542 | bool IsInitialized() const final; |
543 | |
544 | size_t ByteSizeLong() const final; |
545 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
546 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
547 | #else |
548 | bool MergePartialFromCodedStream( |
549 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
550 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
551 | void SerializeWithCachedSizes( |
552 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
553 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
554 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
555 | int GetCachedSize() const final { return _cached_size_.Get(); } |
556 | |
557 | private: |
558 | inline void SharedCtor(); |
559 | inline void SharedDtor(); |
560 | void SetCachedSize(int size) const final; |
561 | void InternalSwap(SavedSlice* other); |
562 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
563 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
564 | return "tensorflow.SavedSlice" ; |
565 | } |
566 | protected: |
567 | explicit SavedSlice(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
568 | private: |
569 | static void ArenaDtor(void* object); |
570 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
571 | private: |
572 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
573 | return _internal_metadata_.arena(); |
574 | } |
575 | inline void* MaybeArenaPtr() const { |
576 | return _internal_metadata_.raw_arena_ptr(); |
577 | } |
578 | public: |
579 | |
580 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
581 | private: |
582 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
583 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto); |
584 | return ::descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto.file_level_metadata[kIndexInFileMessages]; |
585 | } |
586 | |
587 | public: |
588 | |
589 | // nested types ---------------------------------------------------- |
590 | |
591 | // accessors ------------------------------------------------------- |
592 | |
593 | enum : int { |
594 | kNameFieldNumber = 1, |
595 | kSliceFieldNumber = 2, |
596 | kDataFieldNumber = 3, |
597 | }; |
598 | // string name = 1; |
599 | void clear_name(); |
600 | const std::string& name() const; |
601 | void set_name(const std::string& value); |
602 | void set_name(std::string&& value); |
603 | void set_name(const char* value); |
604 | void set_name(const char* value, size_t size); |
605 | std::string* mutable_name(); |
606 | std::string* release_name(); |
607 | void set_allocated_name(std::string* name); |
608 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
609 | " string fields are deprecated and will be removed in a" |
610 | " future release." ) |
611 | std::string* unsafe_arena_release_name(); |
612 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
613 | " string fields are deprecated and will be removed in a" |
614 | " future release." ) |
615 | void unsafe_arena_set_allocated_name( |
616 | std::string* name); |
617 | |
618 | // .tensorflow.TensorSliceProto slice = 2; |
619 | bool has_slice() const; |
620 | void clear_slice(); |
621 | const ::tensorflow::TensorSliceProto& slice() const; |
622 | ::tensorflow::TensorSliceProto* release_slice(); |
623 | ::tensorflow::TensorSliceProto* mutable_slice(); |
624 | void set_allocated_slice(::tensorflow::TensorSliceProto* slice); |
625 | void unsafe_arena_set_allocated_slice( |
626 | ::tensorflow::TensorSliceProto* slice); |
627 | ::tensorflow::TensorSliceProto* unsafe_arena_release_slice(); |
628 | |
629 | // .tensorflow.TensorProto data = 3; |
630 | bool has_data() const; |
631 | void clear_data(); |
632 | const ::tensorflow::TensorProto& data() const; |
633 | ::tensorflow::TensorProto* release_data(); |
634 | ::tensorflow::TensorProto* mutable_data(); |
635 | void set_allocated_data(::tensorflow::TensorProto* data); |
636 | void unsafe_arena_set_allocated_data( |
637 | ::tensorflow::TensorProto* data); |
638 | ::tensorflow::TensorProto* unsafe_arena_release_data(); |
639 | |
640 | // @@protoc_insertion_point(class_scope:tensorflow.SavedSlice) |
641 | private: |
642 | class _Internal; |
643 | |
644 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
645 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
646 | typedef void InternalArenaConstructable_; |
647 | typedef void DestructorSkippable_; |
648 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
649 | ::tensorflow::TensorSliceProto* slice_; |
650 | ::tensorflow::TensorProto* data_; |
651 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
652 | friend struct ::TableStruct_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto; |
653 | }; |
654 | // ------------------------------------------------------------------- |
655 | |
656 | class SavedTensorSlices : |
657 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedTensorSlices) */ { |
658 | public: |
659 | SavedTensorSlices(); |
660 | virtual ~SavedTensorSlices(); |
661 | |
662 | SavedTensorSlices(const SavedTensorSlices& from); |
663 | SavedTensorSlices(SavedTensorSlices&& from) noexcept |
664 | : SavedTensorSlices() { |
665 | *this = ::std::move(from); |
666 | } |
667 | |
668 | inline SavedTensorSlices& operator=(const SavedTensorSlices& from) { |
669 | CopyFrom(from); |
670 | return *this; |
671 | } |
672 | inline SavedTensorSlices& operator=(SavedTensorSlices&& from) noexcept { |
673 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
674 | if (this != &from) InternalSwap(&from); |
675 | } else { |
676 | CopyFrom(from); |
677 | } |
678 | return *this; |
679 | } |
680 | |
681 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
682 | return GetArenaNoVirtual(); |
683 | } |
684 | inline void* GetMaybeArenaPointer() const final { |
685 | return MaybeArenaPtr(); |
686 | } |
687 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
688 | return GetDescriptor(); |
689 | } |
690 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
691 | return GetMetadataStatic().descriptor; |
692 | } |
693 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
694 | return GetMetadataStatic().reflection; |
695 | } |
696 | static const SavedTensorSlices& default_instance(); |
697 | |
698 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
699 | static inline const SavedTensorSlices* internal_default_instance() { |
700 | return reinterpret_cast<const SavedTensorSlices*>( |
701 | &_SavedTensorSlices_default_instance_); |
702 | } |
703 | static constexpr int kIndexInFileMessages = |
704 | 3; |
705 | |
706 | friend void swap(SavedTensorSlices& a, SavedTensorSlices& b) { |
707 | a.Swap(&b); |
708 | } |
709 | inline void Swap(SavedTensorSlices* other) { |
710 | if (other == this) return; |
711 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
712 | InternalSwap(other); |
713 | } else { |
714 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
715 | } |
716 | } |
717 | void UnsafeArenaSwap(SavedTensorSlices* other) { |
718 | if (other == this) return; |
719 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
720 | InternalSwap(other); |
721 | } |
722 | |
723 | // implements Message ---------------------------------------------- |
724 | |
725 | inline SavedTensorSlices* New() const final { |
726 | return CreateMaybeMessage<SavedTensorSlices>(nullptr); |
727 | } |
728 | |
729 | SavedTensorSlices* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
730 | return CreateMaybeMessage<SavedTensorSlices>(arena); |
731 | } |
732 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
733 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
734 | void CopyFrom(const SavedTensorSlices& from); |
735 | void MergeFrom(const SavedTensorSlices& from); |
736 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
737 | bool IsInitialized() const final; |
738 | |
739 | size_t ByteSizeLong() const final; |
740 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
741 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
742 | #else |
743 | bool MergePartialFromCodedStream( |
744 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
745 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
746 | void SerializeWithCachedSizes( |
747 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
748 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
749 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
750 | int GetCachedSize() const final { return _cached_size_.Get(); } |
751 | |
752 | private: |
753 | inline void SharedCtor(); |
754 | inline void SharedDtor(); |
755 | void SetCachedSize(int size) const final; |
756 | void InternalSwap(SavedTensorSlices* other); |
757 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
758 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
759 | return "tensorflow.SavedTensorSlices" ; |
760 | } |
761 | protected: |
762 | explicit SavedTensorSlices(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
763 | private: |
764 | static void ArenaDtor(void* object); |
765 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
766 | private: |
767 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
768 | return _internal_metadata_.arena(); |
769 | } |
770 | inline void* MaybeArenaPtr() const { |
771 | return _internal_metadata_.raw_arena_ptr(); |
772 | } |
773 | public: |
774 | |
775 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
776 | private: |
777 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
778 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto); |
779 | return ::descriptor_table_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto.file_level_metadata[kIndexInFileMessages]; |
780 | } |
781 | |
782 | public: |
783 | |
784 | // nested types ---------------------------------------------------- |
785 | |
786 | // accessors ------------------------------------------------------- |
787 | |
788 | enum : int { |
789 | kMetaFieldNumber = 1, |
790 | kDataFieldNumber = 2, |
791 | }; |
792 | // .tensorflow.SavedTensorSliceMeta meta = 1; |
793 | bool has_meta() const; |
794 | void clear_meta(); |
795 | const ::tensorflow::SavedTensorSliceMeta& meta() const; |
796 | ::tensorflow::SavedTensorSliceMeta* release_meta(); |
797 | ::tensorflow::SavedTensorSliceMeta* mutable_meta(); |
798 | void set_allocated_meta(::tensorflow::SavedTensorSliceMeta* meta); |
799 | void unsafe_arena_set_allocated_meta( |
800 | ::tensorflow::SavedTensorSliceMeta* meta); |
801 | ::tensorflow::SavedTensorSliceMeta* unsafe_arena_release_meta(); |
802 | |
803 | // .tensorflow.SavedSlice data = 2; |
804 | bool has_data() const; |
805 | void clear_data(); |
806 | const ::tensorflow::SavedSlice& data() const; |
807 | ::tensorflow::SavedSlice* release_data(); |
808 | ::tensorflow::SavedSlice* mutable_data(); |
809 | void set_allocated_data(::tensorflow::SavedSlice* data); |
810 | void unsafe_arena_set_allocated_data( |
811 | ::tensorflow::SavedSlice* data); |
812 | ::tensorflow::SavedSlice* unsafe_arena_release_data(); |
813 | |
814 | // @@protoc_insertion_point(class_scope:tensorflow.SavedTensorSlices) |
815 | private: |
816 | class _Internal; |
817 | |
818 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
819 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
820 | typedef void InternalArenaConstructable_; |
821 | typedef void DestructorSkippable_; |
822 | ::tensorflow::SavedTensorSliceMeta* meta_; |
823 | ::tensorflow::SavedSlice* data_; |
824 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
825 | friend struct ::TableStruct_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto; |
826 | }; |
827 | // =================================================================== |
828 | |
829 | |
830 | // =================================================================== |
831 | |
832 | #ifdef __GNUC__ |
833 | #pragma GCC diagnostic push |
834 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
835 | #endif // __GNUC__ |
836 | // SavedSliceMeta |
837 | |
838 | // string name = 1; |
839 | inline void SavedSliceMeta::clear_name() { |
840 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
841 | } |
842 | inline const std::string& SavedSliceMeta::name() const { |
843 | // @@protoc_insertion_point(field_get:tensorflow.SavedSliceMeta.name) |
844 | return name_.Get(); |
845 | } |
846 | inline void SavedSliceMeta::set_name(const std::string& value) { |
847 | |
848 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
849 | // @@protoc_insertion_point(field_set:tensorflow.SavedSliceMeta.name) |
850 | } |
851 | inline void SavedSliceMeta::set_name(std::string&& value) { |
852 | |
853 | name_.Set( |
854 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
855 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedSliceMeta.name) |
856 | } |
857 | inline void SavedSliceMeta::set_name(const char* value) { |
858 | GOOGLE_DCHECK(value != nullptr); |
859 | |
860 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
861 | GetArenaNoVirtual()); |
862 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedSliceMeta.name) |
863 | } |
864 | inline void SavedSliceMeta::set_name(const char* value, |
865 | size_t size) { |
866 | |
867 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
868 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
869 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedSliceMeta.name) |
870 | } |
871 | inline std::string* SavedSliceMeta::mutable_name() { |
872 | |
873 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedSliceMeta.name) |
874 | return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
875 | } |
876 | inline std::string* SavedSliceMeta::release_name() { |
877 | // @@protoc_insertion_point(field_release:tensorflow.SavedSliceMeta.name) |
878 | |
879 | return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
880 | } |
881 | inline void SavedSliceMeta::set_allocated_name(std::string* name) { |
882 | if (name != nullptr) { |
883 | |
884 | } else { |
885 | |
886 | } |
887 | name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, |
888 | GetArenaNoVirtual()); |
889 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedSliceMeta.name) |
890 | } |
891 | inline std::string* SavedSliceMeta::unsafe_arena_release_name() { |
892 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedSliceMeta.name) |
893 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
894 | |
895 | return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
896 | GetArenaNoVirtual()); |
897 | } |
898 | inline void SavedSliceMeta::unsafe_arena_set_allocated_name( |
899 | std::string* name) { |
900 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
901 | if (name != nullptr) { |
902 | |
903 | } else { |
904 | |
905 | } |
906 | name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
907 | name, GetArenaNoVirtual()); |
908 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedSliceMeta.name) |
909 | } |
910 | |
911 | // .tensorflow.TensorShapeProto shape = 2; |
912 | inline bool SavedSliceMeta::has_shape() const { |
913 | return this != internal_default_instance() && shape_ != nullptr; |
914 | } |
915 | inline const ::tensorflow::TensorShapeProto& SavedSliceMeta::shape() const { |
916 | const ::tensorflow::TensorShapeProto* p = shape_; |
917 | // @@protoc_insertion_point(field_get:tensorflow.SavedSliceMeta.shape) |
918 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>( |
919 | &::tensorflow::_TensorShapeProto_default_instance_); |
920 | } |
921 | inline ::tensorflow::TensorShapeProto* SavedSliceMeta::release_shape() { |
922 | // @@protoc_insertion_point(field_release:tensorflow.SavedSliceMeta.shape) |
923 | |
924 | ::tensorflow::TensorShapeProto* temp = shape_; |
925 | if (GetArenaNoVirtual() != nullptr) { |
926 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
927 | } |
928 | shape_ = nullptr; |
929 | return temp; |
930 | } |
931 | inline ::tensorflow::TensorShapeProto* SavedSliceMeta::unsafe_arena_release_shape() { |
932 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedSliceMeta.shape) |
933 | |
934 | ::tensorflow::TensorShapeProto* temp = shape_; |
935 | shape_ = nullptr; |
936 | return temp; |
937 | } |
938 | inline ::tensorflow::TensorShapeProto* SavedSliceMeta::mutable_shape() { |
939 | |
940 | if (shape_ == nullptr) { |
941 | auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); |
942 | shape_ = p; |
943 | } |
944 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedSliceMeta.shape) |
945 | return shape_; |
946 | } |
947 | inline void SavedSliceMeta::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { |
948 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
949 | if (message_arena == nullptr) { |
950 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_); |
951 | } |
952 | if (shape) { |
953 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
954 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape)->GetArena(); |
955 | if (message_arena != submessage_arena) { |
956 | shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
957 | message_arena, shape, submessage_arena); |
958 | } |
959 | |
960 | } else { |
961 | |
962 | } |
963 | shape_ = shape; |
964 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedSliceMeta.shape) |
965 | } |
966 | |
967 | // .tensorflow.DataType type = 3; |
968 | inline void SavedSliceMeta::clear_type() { |
969 | type_ = 0; |
970 | } |
971 | inline ::tensorflow::DataType SavedSliceMeta::type() const { |
972 | // @@protoc_insertion_point(field_get:tensorflow.SavedSliceMeta.type) |
973 | return static_cast< ::tensorflow::DataType >(type_); |
974 | } |
975 | inline void SavedSliceMeta::set_type(::tensorflow::DataType value) { |
976 | |
977 | type_ = value; |
978 | // @@protoc_insertion_point(field_set:tensorflow.SavedSliceMeta.type) |
979 | } |
980 | |
981 | // repeated .tensorflow.TensorSliceProto slice = 4; |
982 | inline int SavedSliceMeta::slice_size() const { |
983 | return slice_.size(); |
984 | } |
985 | inline ::tensorflow::TensorSliceProto* SavedSliceMeta::mutable_slice(int index) { |
986 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedSliceMeta.slice) |
987 | return slice_.Mutable(index); |
988 | } |
989 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto >* |
990 | SavedSliceMeta::mutable_slice() { |
991 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedSliceMeta.slice) |
992 | return &slice_; |
993 | } |
994 | inline const ::tensorflow::TensorSliceProto& SavedSliceMeta::slice(int index) const { |
995 | // @@protoc_insertion_point(field_get:tensorflow.SavedSliceMeta.slice) |
996 | return slice_.Get(index); |
997 | } |
998 | inline ::tensorflow::TensorSliceProto* SavedSliceMeta::add_slice() { |
999 | // @@protoc_insertion_point(field_add:tensorflow.SavedSliceMeta.slice) |
1000 | return slice_.Add(); |
1001 | } |
1002 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto >& |
1003 | SavedSliceMeta::slice() const { |
1004 | // @@protoc_insertion_point(field_list:tensorflow.SavedSliceMeta.slice) |
1005 | return slice_; |
1006 | } |
1007 | |
1008 | // ------------------------------------------------------------------- |
1009 | |
1010 | // SavedTensorSliceMeta |
1011 | |
1012 | // repeated .tensorflow.SavedSliceMeta tensor = 1; |
1013 | inline int SavedTensorSliceMeta::tensor_size() const { |
1014 | return tensor_.size(); |
1015 | } |
1016 | inline void SavedTensorSliceMeta::clear_tensor() { |
1017 | tensor_.Clear(); |
1018 | } |
1019 | inline ::tensorflow::SavedSliceMeta* SavedTensorSliceMeta::mutable_tensor(int index) { |
1020 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedTensorSliceMeta.tensor) |
1021 | return tensor_.Mutable(index); |
1022 | } |
1023 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedSliceMeta >* |
1024 | SavedTensorSliceMeta::mutable_tensor() { |
1025 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedTensorSliceMeta.tensor) |
1026 | return &tensor_; |
1027 | } |
1028 | inline const ::tensorflow::SavedSliceMeta& SavedTensorSliceMeta::tensor(int index) const { |
1029 | // @@protoc_insertion_point(field_get:tensorflow.SavedTensorSliceMeta.tensor) |
1030 | return tensor_.Get(index); |
1031 | } |
1032 | inline ::tensorflow::SavedSliceMeta* SavedTensorSliceMeta::add_tensor() { |
1033 | // @@protoc_insertion_point(field_add:tensorflow.SavedTensorSliceMeta.tensor) |
1034 | return tensor_.Add(); |
1035 | } |
1036 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedSliceMeta >& |
1037 | SavedTensorSliceMeta::tensor() const { |
1038 | // @@protoc_insertion_point(field_list:tensorflow.SavedTensorSliceMeta.tensor) |
1039 | return tensor_; |
1040 | } |
1041 | |
1042 | // .tensorflow.VersionDef versions = 2; |
1043 | inline bool SavedTensorSliceMeta::has_versions() const { |
1044 | return this != internal_default_instance() && versions_ != nullptr; |
1045 | } |
1046 | inline const ::tensorflow::VersionDef& SavedTensorSliceMeta::versions() const { |
1047 | const ::tensorflow::VersionDef* p = versions_; |
1048 | // @@protoc_insertion_point(field_get:tensorflow.SavedTensorSliceMeta.versions) |
1049 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::VersionDef*>( |
1050 | &::tensorflow::_VersionDef_default_instance_); |
1051 | } |
1052 | inline ::tensorflow::VersionDef* SavedTensorSliceMeta::release_versions() { |
1053 | // @@protoc_insertion_point(field_release:tensorflow.SavedTensorSliceMeta.versions) |
1054 | |
1055 | ::tensorflow::VersionDef* temp = versions_; |
1056 | if (GetArenaNoVirtual() != nullptr) { |
1057 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1058 | } |
1059 | versions_ = nullptr; |
1060 | return temp; |
1061 | } |
1062 | inline ::tensorflow::VersionDef* SavedTensorSliceMeta::unsafe_arena_release_versions() { |
1063 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedTensorSliceMeta.versions) |
1064 | |
1065 | ::tensorflow::VersionDef* temp = versions_; |
1066 | versions_ = nullptr; |
1067 | return temp; |
1068 | } |
1069 | inline ::tensorflow::VersionDef* SavedTensorSliceMeta::mutable_versions() { |
1070 | |
1071 | if (versions_ == nullptr) { |
1072 | auto* p = CreateMaybeMessage<::tensorflow::VersionDef>(GetArenaNoVirtual()); |
1073 | versions_ = p; |
1074 | } |
1075 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedTensorSliceMeta.versions) |
1076 | return versions_; |
1077 | } |
1078 | inline void SavedTensorSliceMeta::set_allocated_versions(::tensorflow::VersionDef* versions) { |
1079 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1080 | if (message_arena == nullptr) { |
1081 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions_); |
1082 | } |
1083 | if (versions) { |
1084 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1085 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(versions)->GetArena(); |
1086 | if (message_arena != submessage_arena) { |
1087 | versions = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1088 | message_arena, versions, submessage_arena); |
1089 | } |
1090 | |
1091 | } else { |
1092 | |
1093 | } |
1094 | versions_ = versions; |
1095 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedTensorSliceMeta.versions) |
1096 | } |
1097 | |
1098 | // ------------------------------------------------------------------- |
1099 | |
1100 | // SavedSlice |
1101 | |
1102 | // string name = 1; |
1103 | inline void SavedSlice::clear_name() { |
1104 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1105 | } |
1106 | inline const std::string& SavedSlice::name() const { |
1107 | // @@protoc_insertion_point(field_get:tensorflow.SavedSlice.name) |
1108 | return name_.Get(); |
1109 | } |
1110 | inline void SavedSlice::set_name(const std::string& value) { |
1111 | |
1112 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
1113 | // @@protoc_insertion_point(field_set:tensorflow.SavedSlice.name) |
1114 | } |
1115 | inline void SavedSlice::set_name(std::string&& value) { |
1116 | |
1117 | name_.Set( |
1118 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
1119 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedSlice.name) |
1120 | } |
1121 | inline void SavedSlice::set_name(const char* value) { |
1122 | GOOGLE_DCHECK(value != nullptr); |
1123 | |
1124 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
1125 | GetArenaNoVirtual()); |
1126 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedSlice.name) |
1127 | } |
1128 | inline void SavedSlice::set_name(const char* value, |
1129 | size_t size) { |
1130 | |
1131 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
1132 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
1133 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedSlice.name) |
1134 | } |
1135 | inline std::string* SavedSlice::mutable_name() { |
1136 | |
1137 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedSlice.name) |
1138 | return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1139 | } |
1140 | inline std::string* SavedSlice::release_name() { |
1141 | // @@protoc_insertion_point(field_release:tensorflow.SavedSlice.name) |
1142 | |
1143 | return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
1144 | } |
1145 | inline void SavedSlice::set_allocated_name(std::string* name) { |
1146 | if (name != nullptr) { |
1147 | |
1148 | } else { |
1149 | |
1150 | } |
1151 | name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, |
1152 | GetArenaNoVirtual()); |
1153 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedSlice.name) |
1154 | } |
1155 | inline std::string* SavedSlice::unsafe_arena_release_name() { |
1156 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedSlice.name) |
1157 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
1158 | |
1159 | return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1160 | GetArenaNoVirtual()); |
1161 | } |
1162 | inline void SavedSlice::unsafe_arena_set_allocated_name( |
1163 | std::string* name) { |
1164 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
1165 | if (name != nullptr) { |
1166 | |
1167 | } else { |
1168 | |
1169 | } |
1170 | name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1171 | name, GetArenaNoVirtual()); |
1172 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedSlice.name) |
1173 | } |
1174 | |
1175 | // .tensorflow.TensorSliceProto slice = 2; |
1176 | inline bool SavedSlice::has_slice() const { |
1177 | return this != internal_default_instance() && slice_ != nullptr; |
1178 | } |
1179 | inline const ::tensorflow::TensorSliceProto& SavedSlice::slice() const { |
1180 | const ::tensorflow::TensorSliceProto* p = slice_; |
1181 | // @@protoc_insertion_point(field_get:tensorflow.SavedSlice.slice) |
1182 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorSliceProto*>( |
1183 | &::tensorflow::_TensorSliceProto_default_instance_); |
1184 | } |
1185 | inline ::tensorflow::TensorSliceProto* SavedSlice::release_slice() { |
1186 | // @@protoc_insertion_point(field_release:tensorflow.SavedSlice.slice) |
1187 | |
1188 | ::tensorflow::TensorSliceProto* temp = slice_; |
1189 | if (GetArenaNoVirtual() != nullptr) { |
1190 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1191 | } |
1192 | slice_ = nullptr; |
1193 | return temp; |
1194 | } |
1195 | inline ::tensorflow::TensorSliceProto* SavedSlice::unsafe_arena_release_slice() { |
1196 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedSlice.slice) |
1197 | |
1198 | ::tensorflow::TensorSliceProto* temp = slice_; |
1199 | slice_ = nullptr; |
1200 | return temp; |
1201 | } |
1202 | inline ::tensorflow::TensorSliceProto* SavedSlice::mutable_slice() { |
1203 | |
1204 | if (slice_ == nullptr) { |
1205 | auto* p = CreateMaybeMessage<::tensorflow::TensorSliceProto>(GetArenaNoVirtual()); |
1206 | slice_ = p; |
1207 | } |
1208 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedSlice.slice) |
1209 | return slice_; |
1210 | } |
1211 | inline void SavedSlice::set_allocated_slice(::tensorflow::TensorSliceProto* slice) { |
1212 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1213 | if (message_arena == nullptr) { |
1214 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(slice_); |
1215 | } |
1216 | if (slice) { |
1217 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1218 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(slice)->GetArena(); |
1219 | if (message_arena != submessage_arena) { |
1220 | slice = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1221 | message_arena, slice, submessage_arena); |
1222 | } |
1223 | |
1224 | } else { |
1225 | |
1226 | } |
1227 | slice_ = slice; |
1228 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedSlice.slice) |
1229 | } |
1230 | |
1231 | // .tensorflow.TensorProto data = 3; |
1232 | inline bool SavedSlice::has_data() const { |
1233 | return this != internal_default_instance() && data_ != nullptr; |
1234 | } |
1235 | inline const ::tensorflow::TensorProto& SavedSlice::data() const { |
1236 | const ::tensorflow::TensorProto* p = data_; |
1237 | // @@protoc_insertion_point(field_get:tensorflow.SavedSlice.data) |
1238 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorProto*>( |
1239 | &::tensorflow::_TensorProto_default_instance_); |
1240 | } |
1241 | inline ::tensorflow::TensorProto* SavedSlice::release_data() { |
1242 | // @@protoc_insertion_point(field_release:tensorflow.SavedSlice.data) |
1243 | |
1244 | ::tensorflow::TensorProto* temp = data_; |
1245 | if (GetArenaNoVirtual() != nullptr) { |
1246 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1247 | } |
1248 | data_ = nullptr; |
1249 | return temp; |
1250 | } |
1251 | inline ::tensorflow::TensorProto* SavedSlice::unsafe_arena_release_data() { |
1252 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedSlice.data) |
1253 | |
1254 | ::tensorflow::TensorProto* temp = data_; |
1255 | data_ = nullptr; |
1256 | return temp; |
1257 | } |
1258 | inline ::tensorflow::TensorProto* SavedSlice::mutable_data() { |
1259 | |
1260 | if (data_ == nullptr) { |
1261 | auto* p = CreateMaybeMessage<::tensorflow::TensorProto>(GetArenaNoVirtual()); |
1262 | data_ = p; |
1263 | } |
1264 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedSlice.data) |
1265 | return data_; |
1266 | } |
1267 | inline void SavedSlice::set_allocated_data(::tensorflow::TensorProto* data) { |
1268 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1269 | if (message_arena == nullptr) { |
1270 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(data_); |
1271 | } |
1272 | if (data) { |
1273 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1274 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(data)->GetArena(); |
1275 | if (message_arena != submessage_arena) { |
1276 | data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1277 | message_arena, data, submessage_arena); |
1278 | } |
1279 | |
1280 | } else { |
1281 | |
1282 | } |
1283 | data_ = data; |
1284 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedSlice.data) |
1285 | } |
1286 | |
1287 | // ------------------------------------------------------------------- |
1288 | |
1289 | // SavedTensorSlices |
1290 | |
1291 | // .tensorflow.SavedTensorSliceMeta meta = 1; |
1292 | inline bool SavedTensorSlices::has_meta() const { |
1293 | return this != internal_default_instance() && meta_ != nullptr; |
1294 | } |
1295 | inline void SavedTensorSlices::clear_meta() { |
1296 | if (GetArenaNoVirtual() == nullptr && meta_ != nullptr) { |
1297 | delete meta_; |
1298 | } |
1299 | meta_ = nullptr; |
1300 | } |
1301 | inline const ::tensorflow::SavedTensorSliceMeta& SavedTensorSlices::meta() const { |
1302 | const ::tensorflow::SavedTensorSliceMeta* p = meta_; |
1303 | // @@protoc_insertion_point(field_get:tensorflow.SavedTensorSlices.meta) |
1304 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::SavedTensorSliceMeta*>( |
1305 | &::tensorflow::_SavedTensorSliceMeta_default_instance_); |
1306 | } |
1307 | inline ::tensorflow::SavedTensorSliceMeta* SavedTensorSlices::release_meta() { |
1308 | // @@protoc_insertion_point(field_release:tensorflow.SavedTensorSlices.meta) |
1309 | |
1310 | ::tensorflow::SavedTensorSliceMeta* temp = meta_; |
1311 | if (GetArenaNoVirtual() != nullptr) { |
1312 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1313 | } |
1314 | meta_ = nullptr; |
1315 | return temp; |
1316 | } |
1317 | inline ::tensorflow::SavedTensorSliceMeta* SavedTensorSlices::unsafe_arena_release_meta() { |
1318 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedTensorSlices.meta) |
1319 | |
1320 | ::tensorflow::SavedTensorSliceMeta* temp = meta_; |
1321 | meta_ = nullptr; |
1322 | return temp; |
1323 | } |
1324 | inline ::tensorflow::SavedTensorSliceMeta* SavedTensorSlices::mutable_meta() { |
1325 | |
1326 | if (meta_ == nullptr) { |
1327 | auto* p = CreateMaybeMessage<::tensorflow::SavedTensorSliceMeta>(GetArenaNoVirtual()); |
1328 | meta_ = p; |
1329 | } |
1330 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedTensorSlices.meta) |
1331 | return meta_; |
1332 | } |
1333 | inline void SavedTensorSlices::set_allocated_meta(::tensorflow::SavedTensorSliceMeta* meta) { |
1334 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1335 | if (message_arena == nullptr) { |
1336 | delete meta_; |
1337 | } |
1338 | if (meta) { |
1339 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1340 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(meta); |
1341 | if (message_arena != submessage_arena) { |
1342 | meta = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1343 | message_arena, meta, submessage_arena); |
1344 | } |
1345 | |
1346 | } else { |
1347 | |
1348 | } |
1349 | meta_ = meta; |
1350 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedTensorSlices.meta) |
1351 | } |
1352 | |
1353 | // .tensorflow.SavedSlice data = 2; |
1354 | inline bool SavedTensorSlices::has_data() const { |
1355 | return this != internal_default_instance() && data_ != nullptr; |
1356 | } |
1357 | inline void SavedTensorSlices::clear_data() { |
1358 | if (GetArenaNoVirtual() == nullptr && data_ != nullptr) { |
1359 | delete data_; |
1360 | } |
1361 | data_ = nullptr; |
1362 | } |
1363 | inline const ::tensorflow::SavedSlice& SavedTensorSlices::data() const { |
1364 | const ::tensorflow::SavedSlice* p = data_; |
1365 | // @@protoc_insertion_point(field_get:tensorflow.SavedTensorSlices.data) |
1366 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::SavedSlice*>( |
1367 | &::tensorflow::_SavedSlice_default_instance_); |
1368 | } |
1369 | inline ::tensorflow::SavedSlice* SavedTensorSlices::release_data() { |
1370 | // @@protoc_insertion_point(field_release:tensorflow.SavedTensorSlices.data) |
1371 | |
1372 | ::tensorflow::SavedSlice* temp = data_; |
1373 | if (GetArenaNoVirtual() != nullptr) { |
1374 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1375 | } |
1376 | data_ = nullptr; |
1377 | return temp; |
1378 | } |
1379 | inline ::tensorflow::SavedSlice* SavedTensorSlices::unsafe_arena_release_data() { |
1380 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedTensorSlices.data) |
1381 | |
1382 | ::tensorflow::SavedSlice* temp = data_; |
1383 | data_ = nullptr; |
1384 | return temp; |
1385 | } |
1386 | inline ::tensorflow::SavedSlice* SavedTensorSlices::mutable_data() { |
1387 | |
1388 | if (data_ == nullptr) { |
1389 | auto* p = CreateMaybeMessage<::tensorflow::SavedSlice>(GetArenaNoVirtual()); |
1390 | data_ = p; |
1391 | } |
1392 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedTensorSlices.data) |
1393 | return data_; |
1394 | } |
1395 | inline void SavedTensorSlices::set_allocated_data(::tensorflow::SavedSlice* data) { |
1396 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1397 | if (message_arena == nullptr) { |
1398 | delete data_; |
1399 | } |
1400 | if (data) { |
1401 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1402 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(data); |
1403 | if (message_arena != submessage_arena) { |
1404 | data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1405 | message_arena, data, submessage_arena); |
1406 | } |
1407 | |
1408 | } else { |
1409 | |
1410 | } |
1411 | data_ = data; |
1412 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedTensorSlices.data) |
1413 | } |
1414 | |
1415 | #ifdef __GNUC__ |
1416 | #pragma GCC diagnostic pop |
1417 | #endif // __GNUC__ |
1418 | // ------------------------------------------------------------------- |
1419 | |
1420 | // ------------------------------------------------------------------- |
1421 | |
1422 | // ------------------------------------------------------------------- |
1423 | |
1424 | |
1425 | // @@protoc_insertion_point(namespace_scope) |
1426 | |
1427 | } // namespace tensorflow |
1428 | |
1429 | // @@protoc_insertion_point(global_scope) |
1430 | |
1431 | #include <google/protobuf/port_undef.inc> |
1432 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2futil_2fsaved_5ftensor_5fslice_2eproto |
1433 | |