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 <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 | // @@protoc_insertion_point(includes) |
36 | #include <google/protobuf/port_def.inc> |
37 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto |
38 | PROTOBUF_NAMESPACE_OPEN |
39 | namespace internal { |
40 | class AnyMetadata; |
41 | } // namespace internal |
42 | PROTOBUF_NAMESPACE_CLOSE |
43 | |
44 | // Internal implementation detail -- do not use these members. |
45 | struct TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto { |
46 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
47 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
48 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
49 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[2] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
55 | }; |
56 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto; |
57 | namespace tensorflow { |
58 | class TensorSliceProto; |
59 | class TensorSliceProtoDefaultTypeInternal; |
60 | extern TensorSliceProtoDefaultTypeInternal _TensorSliceProto_default_instance_; |
61 | class TensorSliceProto_Extent; |
62 | class TensorSliceProto_ExtentDefaultTypeInternal; |
63 | extern TensorSliceProto_ExtentDefaultTypeInternal _TensorSliceProto_Extent_default_instance_; |
64 | } // namespace tensorflow |
65 | PROTOBUF_NAMESPACE_OPEN |
66 | template<> ::tensorflow::TensorSliceProto* Arena::CreateMaybeMessage<::tensorflow::TensorSliceProto>(Arena*); |
67 | template<> ::tensorflow::TensorSliceProto_Extent* Arena::CreateMaybeMessage<::tensorflow::TensorSliceProto_Extent>(Arena*); |
68 | PROTOBUF_NAMESPACE_CLOSE |
69 | namespace tensorflow { |
70 | |
71 | // =================================================================== |
72 | |
73 | class TensorSliceProto_Extent : |
74 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorSliceProto.Extent) */ { |
75 | public: |
76 | TensorSliceProto_Extent(); |
77 | virtual ~TensorSliceProto_Extent(); |
78 | |
79 | TensorSliceProto_Extent(const TensorSliceProto_Extent& from); |
80 | TensorSliceProto_Extent(TensorSliceProto_Extent&& from) noexcept |
81 | : TensorSliceProto_Extent() { |
82 | *this = ::std::move(from); |
83 | } |
84 | |
85 | inline TensorSliceProto_Extent& operator=(const TensorSliceProto_Extent& from) { |
86 | CopyFrom(from); |
87 | return *this; |
88 | } |
89 | inline TensorSliceProto_Extent& operator=(TensorSliceProto_Extent&& from) noexcept { |
90 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
91 | if (this != &from) InternalSwap(&from); |
92 | } else { |
93 | CopyFrom(from); |
94 | } |
95 | return *this; |
96 | } |
97 | |
98 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
99 | return GetArenaNoVirtual(); |
100 | } |
101 | inline void* GetMaybeArenaPointer() const final { |
102 | return MaybeArenaPtr(); |
103 | } |
104 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
105 | return GetDescriptor(); |
106 | } |
107 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
108 | return GetMetadataStatic().descriptor; |
109 | } |
110 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
111 | return GetMetadataStatic().reflection; |
112 | } |
113 | static const TensorSliceProto_Extent& default_instance(); |
114 | |
115 | enum HasLengthCase { |
116 | kLength = 2, |
117 | HAS_LENGTH_NOT_SET = 0, |
118 | }; |
119 | |
120 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
121 | static inline const TensorSliceProto_Extent* internal_default_instance() { |
122 | return reinterpret_cast<const TensorSliceProto_Extent*>( |
123 | &_TensorSliceProto_Extent_default_instance_); |
124 | } |
125 | static constexpr int kIndexInFileMessages = |
126 | 0; |
127 | |
128 | friend void swap(TensorSliceProto_Extent& a, TensorSliceProto_Extent& b) { |
129 | a.Swap(&b); |
130 | } |
131 | inline void Swap(TensorSliceProto_Extent* other) { |
132 | if (other == this) return; |
133 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
134 | InternalSwap(other); |
135 | } else { |
136 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
137 | } |
138 | } |
139 | void UnsafeArenaSwap(TensorSliceProto_Extent* other) { |
140 | if (other == this) return; |
141 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
142 | InternalSwap(other); |
143 | } |
144 | |
145 | // implements Message ---------------------------------------------- |
146 | |
147 | inline TensorSliceProto_Extent* New() const final { |
148 | return CreateMaybeMessage<TensorSliceProto_Extent>(nullptr); |
149 | } |
150 | |
151 | TensorSliceProto_Extent* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
152 | return CreateMaybeMessage<TensorSliceProto_Extent>(arena); |
153 | } |
154 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
155 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
156 | void CopyFrom(const TensorSliceProto_Extent& from); |
157 | void MergeFrom(const TensorSliceProto_Extent& from); |
158 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
159 | bool IsInitialized() const final; |
160 | |
161 | size_t ByteSizeLong() const final; |
162 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
163 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
164 | #else |
165 | bool MergePartialFromCodedStream( |
166 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
167 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
168 | void SerializeWithCachedSizes( |
169 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
170 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
171 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
172 | int GetCachedSize() const final { return _cached_size_.Get(); } |
173 | |
174 | private: |
175 | inline void SharedCtor(); |
176 | inline void SharedDtor(); |
177 | void SetCachedSize(int size) const final; |
178 | void InternalSwap(TensorSliceProto_Extent* other); |
179 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
180 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
181 | return "tensorflow.TensorSliceProto.Extent" ; |
182 | } |
183 | protected: |
184 | explicit TensorSliceProto_Extent(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
185 | private: |
186 | static void ArenaDtor(void* object); |
187 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
188 | private: |
189 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
190 | return _internal_metadata_.arena(); |
191 | } |
192 | inline void* MaybeArenaPtr() const { |
193 | return _internal_metadata_.raw_arena_ptr(); |
194 | } |
195 | public: |
196 | |
197 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
198 | private: |
199 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
200 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto); |
201 | return ::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto.file_level_metadata[kIndexInFileMessages]; |
202 | } |
203 | |
204 | public: |
205 | |
206 | // nested types ---------------------------------------------------- |
207 | |
208 | // accessors ------------------------------------------------------- |
209 | |
210 | enum : int { |
211 | kStartFieldNumber = 1, |
212 | kLengthFieldNumber = 2, |
213 | }; |
214 | // int64 start = 1; |
215 | void clear_start(); |
216 | ::PROTOBUF_NAMESPACE_ID::int64 start() const; |
217 | void set_start(::PROTOBUF_NAMESPACE_ID::int64 value); |
218 | |
219 | // int64 length = 2; |
220 | private: |
221 | bool has_length() const; |
222 | public: |
223 | void clear_length(); |
224 | ::PROTOBUF_NAMESPACE_ID::int64 length() const; |
225 | void set_length(::PROTOBUF_NAMESPACE_ID::int64 value); |
226 | |
227 | void clear_has_length(); |
228 | HasLengthCase has_length_case() const; |
229 | // @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto.Extent) |
230 | private: |
231 | class _Internal; |
232 | void set_has_length(); |
233 | |
234 | inline bool has_has_length() const; |
235 | inline void clear_has_has_length(); |
236 | |
237 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
238 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
239 | typedef void InternalArenaConstructable_; |
240 | typedef void DestructorSkippable_; |
241 | ::PROTOBUF_NAMESPACE_ID::int64 start_; |
242 | union HasLengthUnion { |
243 | HasLengthUnion() {} |
244 | ::PROTOBUF_NAMESPACE_ID::int64 length_; |
245 | } has_length_; |
246 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
247 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; |
248 | |
249 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto; |
250 | }; |
251 | // ------------------------------------------------------------------- |
252 | |
253 | class TensorSliceProto : |
254 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorSliceProto) */ { |
255 | public: |
256 | TensorSliceProto(); |
257 | virtual ~TensorSliceProto(); |
258 | |
259 | TensorSliceProto(const TensorSliceProto& from); |
260 | TensorSliceProto(TensorSliceProto&& from) noexcept |
261 | : TensorSliceProto() { |
262 | *this = ::std::move(from); |
263 | } |
264 | |
265 | inline TensorSliceProto& operator=(const TensorSliceProto& from) { |
266 | CopyFrom(from); |
267 | return *this; |
268 | } |
269 | inline TensorSliceProto& operator=(TensorSliceProto&& from) noexcept { |
270 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
271 | if (this != &from) InternalSwap(&from); |
272 | } else { |
273 | CopyFrom(from); |
274 | } |
275 | return *this; |
276 | } |
277 | |
278 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
279 | return GetArenaNoVirtual(); |
280 | } |
281 | inline void* GetMaybeArenaPointer() const final { |
282 | return MaybeArenaPtr(); |
283 | } |
284 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
285 | return GetDescriptor(); |
286 | } |
287 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
288 | return GetMetadataStatic().descriptor; |
289 | } |
290 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
291 | return GetMetadataStatic().reflection; |
292 | } |
293 | static const TensorSliceProto& default_instance(); |
294 | |
295 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
296 | static inline const TensorSliceProto* internal_default_instance() { |
297 | return reinterpret_cast<const TensorSliceProto*>( |
298 | &_TensorSliceProto_default_instance_); |
299 | } |
300 | static constexpr int kIndexInFileMessages = |
301 | 1; |
302 | |
303 | friend void swap(TensorSliceProto& a, TensorSliceProto& b) { |
304 | a.Swap(&b); |
305 | } |
306 | inline void Swap(TensorSliceProto* other) { |
307 | if (other == this) return; |
308 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
309 | InternalSwap(other); |
310 | } else { |
311 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
312 | } |
313 | } |
314 | void UnsafeArenaSwap(TensorSliceProto* other) { |
315 | if (other == this) return; |
316 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
317 | InternalSwap(other); |
318 | } |
319 | |
320 | // implements Message ---------------------------------------------- |
321 | |
322 | inline TensorSliceProto* New() const final { |
323 | return CreateMaybeMessage<TensorSliceProto>(nullptr); |
324 | } |
325 | |
326 | TensorSliceProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
327 | return CreateMaybeMessage<TensorSliceProto>(arena); |
328 | } |
329 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
330 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
331 | void CopyFrom(const TensorSliceProto& from); |
332 | void MergeFrom(const TensorSliceProto& from); |
333 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
334 | bool IsInitialized() const final; |
335 | |
336 | size_t ByteSizeLong() const final; |
337 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
338 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
339 | #else |
340 | bool MergePartialFromCodedStream( |
341 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
342 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
343 | void SerializeWithCachedSizes( |
344 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
345 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
346 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
347 | int GetCachedSize() const final { return _cached_size_.Get(); } |
348 | |
349 | private: |
350 | inline void SharedCtor(); |
351 | inline void SharedDtor(); |
352 | void SetCachedSize(int size) const final; |
353 | void InternalSwap(TensorSliceProto* other); |
354 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
355 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
356 | return "tensorflow.TensorSliceProto" ; |
357 | } |
358 | protected: |
359 | explicit TensorSliceProto(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
360 | private: |
361 | static void ArenaDtor(void* object); |
362 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
363 | private: |
364 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
365 | return _internal_metadata_.arena(); |
366 | } |
367 | inline void* MaybeArenaPtr() const { |
368 | return _internal_metadata_.raw_arena_ptr(); |
369 | } |
370 | public: |
371 | |
372 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
373 | private: |
374 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
375 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto); |
376 | return ::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto.file_level_metadata[kIndexInFileMessages]; |
377 | } |
378 | |
379 | public: |
380 | |
381 | // nested types ---------------------------------------------------- |
382 | |
383 | typedef TensorSliceProto_Extent Extent; |
384 | |
385 | // accessors ------------------------------------------------------- |
386 | |
387 | enum : int { |
388 | kExtentFieldNumber = 1, |
389 | }; |
390 | // repeated .tensorflow.TensorSliceProto.Extent extent = 1; |
391 | int extent_size() const; |
392 | void clear_extent(); |
393 | ::tensorflow::TensorSliceProto_Extent* mutable_extent(int index); |
394 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >* |
395 | mutable_extent(); |
396 | const ::tensorflow::TensorSliceProto_Extent& extent(int index) const; |
397 | ::tensorflow::TensorSliceProto_Extent* add_extent(); |
398 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >& |
399 | extent() const; |
400 | |
401 | // @@protoc_insertion_point(class_scope:tensorflow.TensorSliceProto) |
402 | private: |
403 | class _Internal; |
404 | |
405 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
406 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
407 | typedef void InternalArenaConstructable_; |
408 | typedef void DestructorSkippable_; |
409 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent > extent_; |
410 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
411 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto; |
412 | }; |
413 | // =================================================================== |
414 | |
415 | |
416 | // =================================================================== |
417 | |
418 | #ifdef __GNUC__ |
419 | #pragma GCC diagnostic push |
420 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
421 | #endif // __GNUC__ |
422 | // TensorSliceProto_Extent |
423 | |
424 | // int64 start = 1; |
425 | inline void TensorSliceProto_Extent::clear_start() { |
426 | start_ = PROTOBUF_LONGLONG(0); |
427 | } |
428 | inline ::PROTOBUF_NAMESPACE_ID::int64 TensorSliceProto_Extent::start() const { |
429 | // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.Extent.start) |
430 | return start_; |
431 | } |
432 | inline void TensorSliceProto_Extent::set_start(::PROTOBUF_NAMESPACE_ID::int64 value) { |
433 | |
434 | start_ = value; |
435 | // @@protoc_insertion_point(field_set:tensorflow.TensorSliceProto.Extent.start) |
436 | } |
437 | |
438 | // int64 length = 2; |
439 | inline bool TensorSliceProto_Extent::has_length() const { |
440 | return has_length_case() == kLength; |
441 | } |
442 | inline void TensorSliceProto_Extent::set_has_length() { |
443 | _oneof_case_[0] = kLength; |
444 | } |
445 | inline void TensorSliceProto_Extent::clear_length() { |
446 | if (has_length()) { |
447 | has_length_.length_ = PROTOBUF_LONGLONG(0); |
448 | clear_has_has_length(); |
449 | } |
450 | } |
451 | inline ::PROTOBUF_NAMESPACE_ID::int64 TensorSliceProto_Extent::length() const { |
452 | // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.Extent.length) |
453 | if (has_length()) { |
454 | return has_length_.length_; |
455 | } |
456 | return PROTOBUF_LONGLONG(0); |
457 | } |
458 | inline void TensorSliceProto_Extent::set_length(::PROTOBUF_NAMESPACE_ID::int64 value) { |
459 | if (!has_length()) { |
460 | clear_has_length(); |
461 | set_has_length(); |
462 | } |
463 | has_length_.length_ = value; |
464 | // @@protoc_insertion_point(field_set:tensorflow.TensorSliceProto.Extent.length) |
465 | } |
466 | |
467 | inline bool TensorSliceProto_Extent::has_has_length() const { |
468 | return has_length_case() != HAS_LENGTH_NOT_SET; |
469 | } |
470 | inline void TensorSliceProto_Extent::clear_has_has_length() { |
471 | _oneof_case_[0] = HAS_LENGTH_NOT_SET; |
472 | } |
473 | inline TensorSliceProto_Extent::HasLengthCase TensorSliceProto_Extent::has_length_case() const { |
474 | return TensorSliceProto_Extent::HasLengthCase(_oneof_case_[0]); |
475 | } |
476 | // ------------------------------------------------------------------- |
477 | |
478 | // TensorSliceProto |
479 | |
480 | // repeated .tensorflow.TensorSliceProto.Extent extent = 1; |
481 | inline int TensorSliceProto::extent_size() const { |
482 | return extent_.size(); |
483 | } |
484 | inline void TensorSliceProto::clear_extent() { |
485 | extent_.Clear(); |
486 | } |
487 | inline ::tensorflow::TensorSliceProto_Extent* TensorSliceProto::mutable_extent(int index) { |
488 | // @@protoc_insertion_point(field_mutable:tensorflow.TensorSliceProto.extent) |
489 | return extent_.Mutable(index); |
490 | } |
491 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >* |
492 | TensorSliceProto::mutable_extent() { |
493 | // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorSliceProto.extent) |
494 | return &extent_; |
495 | } |
496 | inline const ::tensorflow::TensorSliceProto_Extent& TensorSliceProto::extent(int index) const { |
497 | // @@protoc_insertion_point(field_get:tensorflow.TensorSliceProto.extent) |
498 | return extent_.Get(index); |
499 | } |
500 | inline ::tensorflow::TensorSliceProto_Extent* TensorSliceProto::add_extent() { |
501 | // @@protoc_insertion_point(field_add:tensorflow.TensorSliceProto.extent) |
502 | return extent_.Add(); |
503 | } |
504 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorSliceProto_Extent >& |
505 | TensorSliceProto::extent() const { |
506 | // @@protoc_insertion_point(field_list:tensorflow.TensorSliceProto.extent) |
507 | return extent_; |
508 | } |
509 | |
510 | #ifdef __GNUC__ |
511 | #pragma GCC diagnostic pop |
512 | #endif // __GNUC__ |
513 | // ------------------------------------------------------------------- |
514 | |
515 | |
516 | // @@protoc_insertion_point(namespace_scope) |
517 | |
518 | } // namespace tensorflow |
519 | |
520 | // @@protoc_insertion_point(global_scope) |
521 | |
522 | #include <google/protobuf/port_undef.inc> |
523 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fslice_2eproto |
524 | |