1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: tensorflow/core/framework/tensor_slice.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto
6 
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10 
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22 
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 }  // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40 
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto {
43   static const ::uint32_t offsets[];
44 };
45 namespace tensorflow {
46 class TensorSliceProto;
47 struct TensorSliceProtoDefaultTypeInternal;
48 extern TensorSliceProtoDefaultTypeInternal _TensorSliceProto_default_instance_;
49 class TensorSliceProto_Extent;
50 struct TensorSliceProto_ExtentDefaultTypeInternal;
51 extern TensorSliceProto_ExtentDefaultTypeInternal _TensorSliceProto_Extent_default_instance_;
52 }  // namespace tensorflow
53 PROTOBUF_NAMESPACE_OPEN
54 template<> ::tensorflow::TensorSliceProto* Arena::CreateMaybeMessage<::tensorflow::TensorSliceProto>(Arena*);
55 template<> ::tensorflow::TensorSliceProto_Extent* Arena::CreateMaybeMessage<::tensorflow::TensorSliceProto_Extent>(Arena*);
56 PROTOBUF_NAMESPACE_CLOSE
57 namespace tensorflow {
58 
59 // ===================================================================
60 
61 class TensorSliceProto_Extent final :
62     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.TensorSliceProto.Extent) */ {
63  public:
TensorSliceProto_Extent()64   inline TensorSliceProto_Extent() : TensorSliceProto_Extent(nullptr) {}
65   ~TensorSliceProto_Extent() override;
66   explicit PROTOBUF_CONSTEXPR TensorSliceProto_Extent(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
67 
68   TensorSliceProto_Extent(const TensorSliceProto_Extent& from);
TensorSliceProto_Extent(TensorSliceProto_Extent && from)69   TensorSliceProto_Extent(TensorSliceProto_Extent&& from) noexcept
70     : TensorSliceProto_Extent() {
71     *this = ::std::move(from);
72   }
73 
74   inline TensorSliceProto_Extent& operator=(const TensorSliceProto_Extent& from) {
75     if (this == &from) return *this;
76     CopyFrom(from);
77     return *this;
78   }
79   inline TensorSliceProto_Extent& operator=(TensorSliceProto_Extent&& from) noexcept {
80     if (this == &from) return *this;
81     if (GetOwningArena() == from.GetOwningArena()
82   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
83         && GetOwningArena() != nullptr
84   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
85     ) {
86       InternalSwap(&from);
87     } else {
88       CopyFrom(from);
89     }
90     return *this;
91   }
92 
default_instance()93   static const TensorSliceProto_Extent& default_instance() {
94     return *internal_default_instance();
95   }
96   enum HasLengthCase {
97     kLength = 2,
98     HAS_LENGTH_NOT_SET = 0,
99   };
100 
internal_default_instance()101   static inline const TensorSliceProto_Extent* internal_default_instance() {
102     return reinterpret_cast<const TensorSliceProto_Extent*>(
103                &_TensorSliceProto_Extent_default_instance_);
104   }
105   static constexpr int kIndexInFileMessages =
106     0;
107 
swap(TensorSliceProto_Extent & a,TensorSliceProto_Extent & b)108   friend void swap(TensorSliceProto_Extent& a, TensorSliceProto_Extent& b) {
109     a.Swap(&b);
110   }
Swap(TensorSliceProto_Extent * other)111   inline void Swap(TensorSliceProto_Extent* other) {
112     if (other == this) return;
113   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
114     if (GetOwningArena() != nullptr &&
115         GetOwningArena() == other->GetOwningArena()) {
116    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
117     if (GetOwningArena() == other->GetOwningArena()) {
118   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
119       InternalSwap(other);
120     } else {
121       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
122     }
123   }
124   void UnsafeArenaSwap(TensorSliceProto_Extent* other) {
125     if (other == this) return;
126     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
127     InternalSwap(other);
128   }
129 
130   // implements Message ----------------------------------------------
131 
132   TensorSliceProto_Extent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
133     return CreateMaybeMessage<TensorSliceProto_Extent>(arena);
134   }
135   TensorSliceProto_Extent* New() const {
136     return New(nullptr);
137   }
138   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
139   void CopyFrom(const TensorSliceProto_Extent& from);
140   void MergeFrom(const TensorSliceProto_Extent& from);
141   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
142   bool IsInitialized() const final;
143 
144   size_t ByteSizeLong() const final;
145   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
146   ::uint8_t* _InternalSerialize(
147       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
148   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
149 
150   private:
151   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
152   void SharedDtor();
153   void SetCachedSize(int size) const;
154   void InternalSwap(TensorSliceProto_Extent* other);
155 
156   private:
157   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
158   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
159     return "tensorflow.TensorSliceProto.Extent";
160   }
161   protected:
162   explicit TensorSliceProto_Extent(::PROTOBUF_NAMESPACE_ID::Arena* arena,
163                        bool is_message_owned = false);
164   public:
165 
166   std::string GetTypeName() const final;
167 
168   // nested types ----------------------------------------------------
169 
170   // accessors -------------------------------------------------------
171 
172   enum : int {
173     kStartFieldNumber = 1,
174     kLengthFieldNumber = 2,
175   };
176   // int64 start = 1;
177   void clear_start();
178   ::int64_t start() const;
179   void set_start(::int64_t value);
180   private:
181   ::int64_t _internal_start() const;
182   void _internal_set_start(::int64_t value);
183   public:
184 
185   // int64 length = 2;
186   bool has_length() const;
187   private:
188   bool _internal_has_length() const;
189   public:
190   void clear_length();
191   ::int64_t length() const;
192   void set_length(::int64_t value);
193   private:
194   ::int64_t _internal_length() const;
195   void _internal_set_length(::int64_t value);
196   public:
197 
198   void clear_has_length();
199   HasLengthCase has_length_case() const;
200   // @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto.Extent)
201  private:
202   class _Internal;
203   void set_has_length();
204 
205   inline bool has_has_length() const;
206   inline void clear_has_has_length();
207 
208   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
209   typedef void InternalArenaConstructable_;
210   typedef void DestructorSkippable_;
211   struct Impl_ {
212     ::int64_t start_;
213     union HasLengthUnion {
214       constexpr HasLengthUnion() : _constinit_{} {}
215         ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized _constinit_;
216       ::int64_t length_;
217     } has_length_;
218     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
219     ::uint32_t _oneof_case_[1];
220 
221   };
222   union { Impl_ _impl_; };
223   friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto;
224 };
225 // -------------------------------------------------------------------
226 
227 class TensorSliceProto final :
228     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.TensorSliceProto) */ {
229  public:
TensorSliceProto()230   inline TensorSliceProto() : TensorSliceProto(nullptr) {}
231   ~TensorSliceProto() override;
232   explicit PROTOBUF_CONSTEXPR TensorSliceProto(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
233 
234   TensorSliceProto(const TensorSliceProto& from);
TensorSliceProto(TensorSliceProto && from)235   TensorSliceProto(TensorSliceProto&& from) noexcept
236     : TensorSliceProto() {
237     *this = ::std::move(from);
238   }
239 
240   inline TensorSliceProto& operator=(const TensorSliceProto& from) {
241     if (this == &from) return *this;
242     CopyFrom(from);
243     return *this;
244   }
245   inline TensorSliceProto& operator=(TensorSliceProto&& from) noexcept {
246     if (this == &from) return *this;
247     if (GetOwningArena() == from.GetOwningArena()
248   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
249         && GetOwningArena() != nullptr
250   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
251     ) {
252       InternalSwap(&from);
253     } else {
254       CopyFrom(from);
255     }
256     return *this;
257   }
258 
default_instance()259   static const TensorSliceProto& default_instance() {
260     return *internal_default_instance();
261   }
internal_default_instance()262   static inline const TensorSliceProto* internal_default_instance() {
263     return reinterpret_cast<const TensorSliceProto*>(
264                &_TensorSliceProto_default_instance_);
265   }
266   static constexpr int kIndexInFileMessages =
267     1;
268 
swap(TensorSliceProto & a,TensorSliceProto & b)269   friend void swap(TensorSliceProto& a, TensorSliceProto& b) {
270     a.Swap(&b);
271   }
Swap(TensorSliceProto * other)272   inline void Swap(TensorSliceProto* other) {
273     if (other == this) return;
274   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
275     if (GetOwningArena() != nullptr &&
276         GetOwningArena() == other->GetOwningArena()) {
277    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
278     if (GetOwningArena() == other->GetOwningArena()) {
279   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
280       InternalSwap(other);
281     } else {
282       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
283     }
284   }
285   void UnsafeArenaSwap(TensorSliceProto* other) {
286     if (other == this) return;
287     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
288     InternalSwap(other);
289   }
290 
291   // implements Message ----------------------------------------------
292 
293   TensorSliceProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
294     return CreateMaybeMessage<TensorSliceProto>(arena);
295   }
296   TensorSliceProto* New() const {
297     return New(nullptr);
298   }
299   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
300   void CopyFrom(const TensorSliceProto& from);
301   void MergeFrom(const TensorSliceProto& from);
302   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
303   bool IsInitialized() const final;
304 
305   size_t ByteSizeLong() const final;
306   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
307   ::uint8_t* _InternalSerialize(
308       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
309   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
310 
311   private:
312   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
313   void SharedDtor();
314   void SetCachedSize(int size) const;
315   void InternalSwap(TensorSliceProto* other);
316 
317   private:
318   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
319   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
320     return "tensorflow.TensorSliceProto";
321   }
322   protected:
323   explicit TensorSliceProto(::PROTOBUF_NAMESPACE_ID::Arena* arena,
324                        bool is_message_owned = false);
325   public:
326 
327   std::string GetTypeName() const final;
328 
329   // nested types ----------------------------------------------------
330 
331   typedef TensorSliceProto_Extent Extent;
332 
333   // accessors -------------------------------------------------------
334 
335   enum : int {
336     kExtentFieldNumber = 1,
337   };
338   // repeated .tensorflow.TensorSliceProto.Extent extent = 1;
339   int extent_size() const;
340   private:
341   int _internal_extent_size() const;
342   public:
343   void clear_extent();
344   ::tensorflow::TensorSliceProto_Extent* mutable_extent(int index);
345   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >*
346       mutable_extent();
347   private:
348   const ::tensorflow::TensorSliceProto_Extent& _internal_extent(int index) const;
349   ::tensorflow::TensorSliceProto_Extent* _internal_add_extent();
350   public:
351   const ::tensorflow::TensorSliceProto_Extent& extent(int index) const;
352   ::tensorflow::TensorSliceProto_Extent* add_extent();
353   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >&
354       extent() const;
355 
356   // @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto)
357  private:
358   class _Internal;
359 
360   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
361   typedef void InternalArenaConstructable_;
362   typedef void DestructorSkippable_;
363   struct Impl_ {
364     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent > extent_;
365     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
366   };
367   union { Impl_ _impl_; };
368   friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto;
369 };
370 // ===================================================================
371 
372 
373 // ===================================================================
374 
375 #ifdef __GNUC__
376   #pragma GCC diagnostic push
377   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
378 #endif  // __GNUC__
379 // TensorSliceProto_Extent
380 
381 // int64 start = 1;
clear_start()382 inline void TensorSliceProto_Extent::clear_start() {
383   _impl_.start_ = ::int64_t{0};
384 }
_internal_start()385 inline ::int64_t TensorSliceProto_Extent::_internal_start() const {
386   return _impl_.start_;
387 }
start()388 inline ::int64_t TensorSliceProto_Extent::start() const {
389   // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.Extent.start)
390   return _internal_start();
391 }
_internal_set_start(::int64_t value)392 inline void TensorSliceProto_Extent::_internal_set_start(::int64_t value) {
393 
394   _impl_.start_ = value;
395 }
set_start(::int64_t value)396 inline void TensorSliceProto_Extent::set_start(::int64_t value) {
397   _internal_set_start(value);
398   // @@protoc_insertion_point(field_set:tensorflow.TensorSliceProto.Extent.start)
399 }
400 
401 // int64 length = 2;
_internal_has_length()402 inline bool TensorSliceProto_Extent::_internal_has_length() const {
403   return has_length_case() == kLength;
404 }
has_length()405 inline bool TensorSliceProto_Extent::has_length() const {
406   return _internal_has_length();
407 }
set_has_length()408 inline void TensorSliceProto_Extent::set_has_length() {
409   _impl_._oneof_case_[0] = kLength;
410 }
clear_length()411 inline void TensorSliceProto_Extent::clear_length() {
412   if (_internal_has_length()) {
413     _impl_.has_length_.length_ = ::int64_t{0};
414     clear_has_has_length();
415   }
416 }
_internal_length()417 inline ::int64_t TensorSliceProto_Extent::_internal_length() const {
418   if (_internal_has_length()) {
419     return _impl_.has_length_.length_;
420   }
421   return ::int64_t{0};
422 }
_internal_set_length(::int64_t value)423 inline void TensorSliceProto_Extent::_internal_set_length(::int64_t value) {
424   if (!_internal_has_length()) {
425     clear_has_length();
426     set_has_length();
427   }
428   _impl_.has_length_.length_ = value;
429 }
length()430 inline ::int64_t TensorSliceProto_Extent::length() const {
431   // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.Extent.length)
432   return _internal_length();
433 }
set_length(::int64_t value)434 inline void TensorSliceProto_Extent::set_length(::int64_t value) {
435   _internal_set_length(value);
436   // @@protoc_insertion_point(field_set:tensorflow.TensorSliceProto.Extent.length)
437 }
438 
has_has_length()439 inline bool TensorSliceProto_Extent::has_has_length() const {
440   return has_length_case() != HAS_LENGTH_NOT_SET;
441 }
clear_has_has_length()442 inline void TensorSliceProto_Extent::clear_has_has_length() {
443   _impl_._oneof_case_[0] = HAS_LENGTH_NOT_SET;
444 }
has_length_case()445 inline TensorSliceProto_Extent::HasLengthCase TensorSliceProto_Extent::has_length_case() const {
446   return TensorSliceProto_Extent::HasLengthCase(_impl_._oneof_case_[0]);
447 }
448 // -------------------------------------------------------------------
449 
450 // TensorSliceProto
451 
452 // repeated .tensorflow.TensorSliceProto.Extent extent = 1;
_internal_extent_size()453 inline int TensorSliceProto::_internal_extent_size() const {
454   return _impl_.extent_.size();
455 }
extent_size()456 inline int TensorSliceProto::extent_size() const {
457   return _internal_extent_size();
458 }
clear_extent()459 inline void TensorSliceProto::clear_extent() {
460   _impl_.extent_.Clear();
461 }
mutable_extent(int index)462 inline ::tensorflow::TensorSliceProto_Extent* TensorSliceProto::mutable_extent(int index) {
463   // @@protoc_insertion_point(field_mutable:tensorflow.TensorSliceProto.extent)
464   return _impl_.extent_.Mutable(index);
465 }
466 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >*
mutable_extent()467 TensorSliceProto::mutable_extent() {
468   // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorSliceProto.extent)
469   return &_impl_.extent_;
470 }
_internal_extent(int index)471 inline const ::tensorflow::TensorSliceProto_Extent& TensorSliceProto::_internal_extent(int index) const {
472   return _impl_.extent_.Get(index);
473 }
extent(int index)474 inline const ::tensorflow::TensorSliceProto_Extent& TensorSliceProto::extent(int index) const {
475   // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.extent)
476   return _internal_extent(index);
477 }
_internal_add_extent()478 inline ::tensorflow::TensorSliceProto_Extent* TensorSliceProto::_internal_add_extent() {
479   return _impl_.extent_.Add();
480 }
add_extent()481 inline ::tensorflow::TensorSliceProto_Extent* TensorSliceProto::add_extent() {
482   ::tensorflow::TensorSliceProto_Extent* _add = _internal_add_extent();
483   // @@protoc_insertion_point(field_add:tensorflow.TensorSliceProto.extent)
484   return _add;
485 }
486 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >&
extent()487 TensorSliceProto::extent() const {
488   // @@protoc_insertion_point(field_list:tensorflow.TensorSliceProto.extent)
489   return _impl_.extent_;
490 }
491 
492 #ifdef __GNUC__
493   #pragma GCC diagnostic pop
494 #endif  // __GNUC__
495 // -------------------------------------------------------------------
496 
497 
498 // @@protoc_insertion_point(namespace_scope)
499 
500 }  // namespace tensorflow
501 
502 // @@protoc_insertion_point(global_scope)
503 
504 #include <google/protobuf/port_undef.inc>
505 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto
506