1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/data/dataset.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fdata_2fdataset_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fdata_2fdataset_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.pb.h"
36#include "tensorflow/core/framework/tensor_shape.pb.h"
37#include "tensorflow/core/framework/types.pb.h"
38// @@protoc_insertion_point(includes)
39#include <google/protobuf/port_def.inc>
40#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fdata_2fdataset_2eproto
41PROTOBUF_NAMESPACE_OPEN
42namespace internal {
43class AnyMetadata;
44} // namespace internal
45PROTOBUF_NAMESPACE_CLOSE
46
47// Internal implementation detail -- do not use these members.
48struct TableStruct_tensorflow_2fcore_2fdata_2fdataset_2eproto {
49 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
50 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
52 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[3]
54 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
55 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
56 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
57 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
58};
59extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fdata_2fdataset_2eproto;
60namespace tensorflow {
61namespace data {
62class CompressedComponentMetadata;
63class CompressedComponentMetadataDefaultTypeInternal;
64extern CompressedComponentMetadataDefaultTypeInternal _CompressedComponentMetadata_default_instance_;
65class CompressedElement;
66class CompressedElementDefaultTypeInternal;
67extern CompressedElementDefaultTypeInternal _CompressedElement_default_instance_;
68class UncompressedElement;
69class UncompressedElementDefaultTypeInternal;
70extern UncompressedElementDefaultTypeInternal _UncompressedElement_default_instance_;
71} // namespace data
72} // namespace tensorflow
73PROTOBUF_NAMESPACE_OPEN
74template<> ::tensorflow::data::CompressedComponentMetadata* Arena::CreateMaybeMessage<::tensorflow::data::CompressedComponentMetadata>(Arena*);
75template<> ::tensorflow::data::CompressedElement* Arena::CreateMaybeMessage<::tensorflow::data::CompressedElement>(Arena*);
76template<> ::tensorflow::data::UncompressedElement* Arena::CreateMaybeMessage<::tensorflow::data::UncompressedElement>(Arena*);
77PROTOBUF_NAMESPACE_CLOSE
78namespace tensorflow {
79namespace data {
80
81// ===================================================================
82
83class CompressedComponentMetadata :
84 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.CompressedComponentMetadata) */ {
85 public:
86 CompressedComponentMetadata();
87 virtual ~CompressedComponentMetadata();
88
89 CompressedComponentMetadata(const CompressedComponentMetadata& from);
90 CompressedComponentMetadata(CompressedComponentMetadata&& from) noexcept
91 : CompressedComponentMetadata() {
92 *this = ::std::move(from);
93 }
94
95 inline CompressedComponentMetadata& operator=(const CompressedComponentMetadata& from) {
96 CopyFrom(from);
97 return *this;
98 }
99 inline CompressedComponentMetadata& operator=(CompressedComponentMetadata&& from) noexcept {
100 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
101 if (this != &from) InternalSwap(&from);
102 } else {
103 CopyFrom(from);
104 }
105 return *this;
106 }
107
108 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
109 return GetArenaNoVirtual();
110 }
111 inline void* GetMaybeArenaPointer() const final {
112 return MaybeArenaPtr();
113 }
114 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
115 return GetDescriptor();
116 }
117 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
118 return GetMetadataStatic().descriptor;
119 }
120 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
121 return GetMetadataStatic().reflection;
122 }
123 static const CompressedComponentMetadata& default_instance();
124
125 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
126 static inline const CompressedComponentMetadata* internal_default_instance() {
127 return reinterpret_cast<const CompressedComponentMetadata*>(
128 &_CompressedComponentMetadata_default_instance_);
129 }
130 static constexpr int kIndexInFileMessages =
131 0;
132
133 friend void swap(CompressedComponentMetadata& a, CompressedComponentMetadata& b) {
134 a.Swap(&b);
135 }
136 inline void Swap(CompressedComponentMetadata* other) {
137 if (other == this) return;
138 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
139 InternalSwap(other);
140 } else {
141 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
142 }
143 }
144 void UnsafeArenaSwap(CompressedComponentMetadata* other) {
145 if (other == this) return;
146 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
147 InternalSwap(other);
148 }
149
150 // implements Message ----------------------------------------------
151
152 inline CompressedComponentMetadata* New() const final {
153 return CreateMaybeMessage<CompressedComponentMetadata>(nullptr);
154 }
155
156 CompressedComponentMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
157 return CreateMaybeMessage<CompressedComponentMetadata>(arena);
158 }
159 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
160 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
161 void CopyFrom(const CompressedComponentMetadata& from);
162 void MergeFrom(const CompressedComponentMetadata& from);
163 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
164 bool IsInitialized() const final;
165
166 size_t ByteSizeLong() const final;
167 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
168 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
169 #else
170 bool MergePartialFromCodedStream(
171 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
172 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
173 void SerializeWithCachedSizes(
174 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
175 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
176 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
177 int GetCachedSize() const final { return _cached_size_.Get(); }
178
179 private:
180 inline void SharedCtor();
181 inline void SharedDtor();
182 void SetCachedSize(int size) const final;
183 void InternalSwap(CompressedComponentMetadata* other);
184 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
185 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
186 return "tensorflow.data.CompressedComponentMetadata";
187 }
188 protected:
189 explicit CompressedComponentMetadata(::PROTOBUF_NAMESPACE_ID::Arena* arena);
190 private:
191 static void ArenaDtor(void* object);
192 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
193 private:
194 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
195 return _internal_metadata_.arena();
196 }
197 inline void* MaybeArenaPtr() const {
198 return _internal_metadata_.raw_arena_ptr();
199 }
200 public:
201
202 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
203 private:
204 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
205 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fdata_2fdataset_2eproto);
206 return ::descriptor_table_tensorflow_2fcore_2fdata_2fdataset_2eproto.file_level_metadata[kIndexInFileMessages];
207 }
208
209 public:
210
211 // nested types ----------------------------------------------------
212
213 // accessors -------------------------------------------------------
214
215 enum : int {
216 kTensorShapeFieldNumber = 2,
217 kTensorSizeBytesFieldNumber = 3,
218 kDtypeFieldNumber = 1,
219 };
220 // .tensorflow.TensorShapeProto tensor_shape = 2;
221 bool has_tensor_shape() const;
222 void clear_tensor_shape();
223 const ::tensorflow::TensorShapeProto& tensor_shape() const;
224 ::tensorflow::TensorShapeProto* release_tensor_shape();
225 ::tensorflow::TensorShapeProto* mutable_tensor_shape();
226 void set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape);
227 void unsafe_arena_set_allocated_tensor_shape(
228 ::tensorflow::TensorShapeProto* tensor_shape);
229 ::tensorflow::TensorShapeProto* unsafe_arena_release_tensor_shape();
230
231 // int64 tensor_size_bytes = 3;
232 void clear_tensor_size_bytes();
233 ::PROTOBUF_NAMESPACE_ID::int64 tensor_size_bytes() const;
234 void set_tensor_size_bytes(::PROTOBUF_NAMESPACE_ID::int64 value);
235
236 // .tensorflow.DataType dtype = 1;
237 void clear_dtype();
238 ::tensorflow::DataType dtype() const;
239 void set_dtype(::tensorflow::DataType value);
240
241 // @@protoc_insertion_point(class_scope:tensorflow.data.CompressedComponentMetadata)
242 private:
243 class _Internal;
244
245 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
246 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
247 typedef void InternalArenaConstructable_;
248 typedef void DestructorSkippable_;
249 ::tensorflow::TensorShapeProto* tensor_shape_;
250 ::PROTOBUF_NAMESPACE_ID::int64 tensor_size_bytes_;
251 int dtype_;
252 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
253 friend struct ::TableStruct_tensorflow_2fcore_2fdata_2fdataset_2eproto;
254};
255// -------------------------------------------------------------------
256
257class CompressedElement :
258 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.CompressedElement) */ {
259 public:
260 CompressedElement();
261 virtual ~CompressedElement();
262
263 CompressedElement(const CompressedElement& from);
264 CompressedElement(CompressedElement&& from) noexcept
265 : CompressedElement() {
266 *this = ::std::move(from);
267 }
268
269 inline CompressedElement& operator=(const CompressedElement& from) {
270 CopyFrom(from);
271 return *this;
272 }
273 inline CompressedElement& operator=(CompressedElement&& from) noexcept {
274 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
275 if (this != &from) InternalSwap(&from);
276 } else {
277 CopyFrom(from);
278 }
279 return *this;
280 }
281
282 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
283 return GetArenaNoVirtual();
284 }
285 inline void* GetMaybeArenaPointer() const final {
286 return MaybeArenaPtr();
287 }
288 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
289 return GetDescriptor();
290 }
291 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
292 return GetMetadataStatic().descriptor;
293 }
294 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
295 return GetMetadataStatic().reflection;
296 }
297 static const CompressedElement& default_instance();
298
299 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
300 static inline const CompressedElement* internal_default_instance() {
301 return reinterpret_cast<const CompressedElement*>(
302 &_CompressedElement_default_instance_);
303 }
304 static constexpr int kIndexInFileMessages =
305 1;
306
307 friend void swap(CompressedElement& a, CompressedElement& b) {
308 a.Swap(&b);
309 }
310 inline void Swap(CompressedElement* other) {
311 if (other == this) return;
312 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
313 InternalSwap(other);
314 } else {
315 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
316 }
317 }
318 void UnsafeArenaSwap(CompressedElement* other) {
319 if (other == this) return;
320 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
321 InternalSwap(other);
322 }
323
324 // implements Message ----------------------------------------------
325
326 inline CompressedElement* New() const final {
327 return CreateMaybeMessage<CompressedElement>(nullptr);
328 }
329
330 CompressedElement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
331 return CreateMaybeMessage<CompressedElement>(arena);
332 }
333 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
334 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
335 void CopyFrom(const CompressedElement& from);
336 void MergeFrom(const CompressedElement& from);
337 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
338 bool IsInitialized() const final;
339
340 size_t ByteSizeLong() const final;
341 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
342 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
343 #else
344 bool MergePartialFromCodedStream(
345 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
346 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
347 void SerializeWithCachedSizes(
348 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
349 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
350 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
351 int GetCachedSize() const final { return _cached_size_.Get(); }
352
353 private:
354 inline void SharedCtor();
355 inline void SharedDtor();
356 void SetCachedSize(int size) const final;
357 void InternalSwap(CompressedElement* other);
358 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
359 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
360 return "tensorflow.data.CompressedElement";
361 }
362 protected:
363 explicit CompressedElement(::PROTOBUF_NAMESPACE_ID::Arena* arena);
364 private:
365 static void ArenaDtor(void* object);
366 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
367 private:
368 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
369 return _internal_metadata_.arena();
370 }
371 inline void* MaybeArenaPtr() const {
372 return _internal_metadata_.raw_arena_ptr();
373 }
374 public:
375
376 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
377 private:
378 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
379 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fdata_2fdataset_2eproto);
380 return ::descriptor_table_tensorflow_2fcore_2fdata_2fdataset_2eproto.file_level_metadata[kIndexInFileMessages];
381 }
382
383 public:
384
385 // nested types ----------------------------------------------------
386
387 // accessors -------------------------------------------------------
388
389 enum : int {
390 kComponentMetadataFieldNumber = 2,
391 kDataFieldNumber = 1,
392 };
393 // repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2;
394 int component_metadata_size() const;
395 void clear_component_metadata();
396 ::tensorflow::data::CompressedComponentMetadata* mutable_component_metadata(int index);
397 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::CompressedComponentMetadata >*
398 mutable_component_metadata();
399 const ::tensorflow::data::CompressedComponentMetadata& component_metadata(int index) const;
400 ::tensorflow::data::CompressedComponentMetadata* add_component_metadata();
401 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::CompressedComponentMetadata >&
402 component_metadata() const;
403
404 // bytes data = 1;
405 void clear_data();
406 const std::string& data() const;
407 void set_data(const std::string& value);
408 void set_data(std::string&& value);
409 void set_data(const char* value);
410 void set_data(const void* value, size_t size);
411 std::string* mutable_data();
412 std::string* release_data();
413 void set_allocated_data(std::string* data);
414 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
415 " string fields are deprecated and will be removed in a"
416 " future release.")
417 std::string* unsafe_arena_release_data();
418 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
419 " string fields are deprecated and will be removed in a"
420 " future release.")
421 void unsafe_arena_set_allocated_data(
422 std::string* data);
423
424 // @@protoc_insertion_point(class_scope:tensorflow.data.CompressedElement)
425 private:
426 class _Internal;
427
428 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
429 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
430 typedef void InternalArenaConstructable_;
431 typedef void DestructorSkippable_;
432 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::CompressedComponentMetadata > component_metadata_;
433 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr data_;
434 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
435 friend struct ::TableStruct_tensorflow_2fcore_2fdata_2fdataset_2eproto;
436};
437// -------------------------------------------------------------------
438
439class UncompressedElement :
440 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.UncompressedElement) */ {
441 public:
442 UncompressedElement();
443 virtual ~UncompressedElement();
444
445 UncompressedElement(const UncompressedElement& from);
446 UncompressedElement(UncompressedElement&& from) noexcept
447 : UncompressedElement() {
448 *this = ::std::move(from);
449 }
450
451 inline UncompressedElement& operator=(const UncompressedElement& from) {
452 CopyFrom(from);
453 return *this;
454 }
455 inline UncompressedElement& operator=(UncompressedElement&& from) noexcept {
456 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
457 if (this != &from) InternalSwap(&from);
458 } else {
459 CopyFrom(from);
460 }
461 return *this;
462 }
463
464 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
465 return GetArenaNoVirtual();
466 }
467 inline void* GetMaybeArenaPointer() const final {
468 return MaybeArenaPtr();
469 }
470 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
471 return GetDescriptor();
472 }
473 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
474 return GetMetadataStatic().descriptor;
475 }
476 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
477 return GetMetadataStatic().reflection;
478 }
479 static const UncompressedElement& default_instance();
480
481 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
482 static inline const UncompressedElement* internal_default_instance() {
483 return reinterpret_cast<const UncompressedElement*>(
484 &_UncompressedElement_default_instance_);
485 }
486 static constexpr int kIndexInFileMessages =
487 2;
488
489 friend void swap(UncompressedElement& a, UncompressedElement& b) {
490 a.Swap(&b);
491 }
492 inline void Swap(UncompressedElement* other) {
493 if (other == this) return;
494 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
495 InternalSwap(other);
496 } else {
497 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
498 }
499 }
500 void UnsafeArenaSwap(UncompressedElement* other) {
501 if (other == this) return;
502 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
503 InternalSwap(other);
504 }
505
506 // implements Message ----------------------------------------------
507
508 inline UncompressedElement* New() const final {
509 return CreateMaybeMessage<UncompressedElement>(nullptr);
510 }
511
512 UncompressedElement* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
513 return CreateMaybeMessage<UncompressedElement>(arena);
514 }
515 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
516 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
517 void CopyFrom(const UncompressedElement& from);
518 void MergeFrom(const UncompressedElement& from);
519 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
520 bool IsInitialized() const final;
521
522 size_t ByteSizeLong() const final;
523 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
524 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
525 #else
526 bool MergePartialFromCodedStream(
527 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
528 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
529 void SerializeWithCachedSizes(
530 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
531 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
532 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
533 int GetCachedSize() const final { return _cached_size_.Get(); }
534
535 private:
536 inline void SharedCtor();
537 inline void SharedDtor();
538 void SetCachedSize(int size) const final;
539 void InternalSwap(UncompressedElement* other);
540 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
541 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
542 return "tensorflow.data.UncompressedElement";
543 }
544 protected:
545 explicit UncompressedElement(::PROTOBUF_NAMESPACE_ID::Arena* arena);
546 private:
547 static void ArenaDtor(void* object);
548 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
549 private:
550 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
551 return _internal_metadata_.arena();
552 }
553 inline void* MaybeArenaPtr() const {
554 return _internal_metadata_.raw_arena_ptr();
555 }
556 public:
557
558 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
559 private:
560 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
561 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fdata_2fdataset_2eproto);
562 return ::descriptor_table_tensorflow_2fcore_2fdata_2fdataset_2eproto.file_level_metadata[kIndexInFileMessages];
563 }
564
565 public:
566
567 // nested types ----------------------------------------------------
568
569 // accessors -------------------------------------------------------
570
571 enum : int {
572 kComponentsFieldNumber = 1,
573 };
574 // repeated .tensorflow.TensorProto components = 1;
575 int components_size() const;
576 void clear_components();
577 ::tensorflow::TensorProto* mutable_components(int index);
578 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto >*
579 mutable_components();
580 const ::tensorflow::TensorProto& components(int index) const;
581 ::tensorflow::TensorProto* add_components();
582 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto >&
583 components() const;
584
585 // @@protoc_insertion_point(class_scope:tensorflow.data.UncompressedElement)
586 private:
587 class _Internal;
588
589 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
590 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
591 typedef void InternalArenaConstructable_;
592 typedef void DestructorSkippable_;
593 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto > components_;
594 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
595 friend struct ::TableStruct_tensorflow_2fcore_2fdata_2fdataset_2eproto;
596};
597// ===================================================================
598
599
600// ===================================================================
601
602#ifdef __GNUC__
603 #pragma GCC diagnostic push
604 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
605#endif // __GNUC__
606// CompressedComponentMetadata
607
608// .tensorflow.DataType dtype = 1;
609inline void CompressedComponentMetadata::clear_dtype() {
610 dtype_ = 0;
611}
612inline ::tensorflow::DataType CompressedComponentMetadata::dtype() const {
613 // @@protoc_insertion_point(field_get:tensorflow.data.CompressedComponentMetadata.dtype)
614 return static_cast< ::tensorflow::DataType >(dtype_);
615}
616inline void CompressedComponentMetadata::set_dtype(::tensorflow::DataType value) {
617
618 dtype_ = value;
619 // @@protoc_insertion_point(field_set:tensorflow.data.CompressedComponentMetadata.dtype)
620}
621
622// .tensorflow.TensorShapeProto tensor_shape = 2;
623inline bool CompressedComponentMetadata::has_tensor_shape() const {
624 return this != internal_default_instance() && tensor_shape_ != nullptr;
625}
626inline const ::tensorflow::TensorShapeProto& CompressedComponentMetadata::tensor_shape() const {
627 const ::tensorflow::TensorShapeProto* p = tensor_shape_;
628 // @@protoc_insertion_point(field_get:tensorflow.data.CompressedComponentMetadata.tensor_shape)
629 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>(
630 &::tensorflow::_TensorShapeProto_default_instance_);
631}
632inline ::tensorflow::TensorShapeProto* CompressedComponentMetadata::release_tensor_shape() {
633 // @@protoc_insertion_point(field_release:tensorflow.data.CompressedComponentMetadata.tensor_shape)
634
635 ::tensorflow::TensorShapeProto* temp = tensor_shape_;
636 if (GetArenaNoVirtual() != nullptr) {
637 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
638 }
639 tensor_shape_ = nullptr;
640 return temp;
641}
642inline ::tensorflow::TensorShapeProto* CompressedComponentMetadata::unsafe_arena_release_tensor_shape() {
643 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.data.CompressedComponentMetadata.tensor_shape)
644
645 ::tensorflow::TensorShapeProto* temp = tensor_shape_;
646 tensor_shape_ = nullptr;
647 return temp;
648}
649inline ::tensorflow::TensorShapeProto* CompressedComponentMetadata::mutable_tensor_shape() {
650
651 if (tensor_shape_ == nullptr) {
652 auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual());
653 tensor_shape_ = p;
654 }
655 // @@protoc_insertion_point(field_mutable:tensorflow.data.CompressedComponentMetadata.tensor_shape)
656 return tensor_shape_;
657}
658inline void CompressedComponentMetadata::set_allocated_tensor_shape(::tensorflow::TensorShapeProto* tensor_shape) {
659 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
660 if (message_arena == nullptr) {
661 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(tensor_shape_);
662 }
663 if (tensor_shape) {
664 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
665 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tensor_shape)->GetArena();
666 if (message_arena != submessage_arena) {
667 tensor_shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
668 message_arena, tensor_shape, submessage_arena);
669 }
670
671 } else {
672
673 }
674 tensor_shape_ = tensor_shape;
675 // @@protoc_insertion_point(field_set_allocated:tensorflow.data.CompressedComponentMetadata.tensor_shape)
676}
677
678// int64 tensor_size_bytes = 3;
679inline void CompressedComponentMetadata::clear_tensor_size_bytes() {
680 tensor_size_bytes_ = PROTOBUF_LONGLONG(0);
681}
682inline ::PROTOBUF_NAMESPACE_ID::int64 CompressedComponentMetadata::tensor_size_bytes() const {
683 // @@protoc_insertion_point(field_get:tensorflow.data.CompressedComponentMetadata.tensor_size_bytes)
684 return tensor_size_bytes_;
685}
686inline void CompressedComponentMetadata::set_tensor_size_bytes(::PROTOBUF_NAMESPACE_ID::int64 value) {
687
688 tensor_size_bytes_ = value;
689 // @@protoc_insertion_point(field_set:tensorflow.data.CompressedComponentMetadata.tensor_size_bytes)
690}
691
692// -------------------------------------------------------------------
693
694// CompressedElement
695
696// bytes data = 1;
697inline void CompressedElement::clear_data() {
698 data_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
699}
700inline const std::string& CompressedElement::data() const {
701 // @@protoc_insertion_point(field_get:tensorflow.data.CompressedElement.data)
702 return data_.Get();
703}
704inline void CompressedElement::set_data(const std::string& value) {
705
706 data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
707 // @@protoc_insertion_point(field_set:tensorflow.data.CompressedElement.data)
708}
709inline void CompressedElement::set_data(std::string&& value) {
710
711 data_.Set(
712 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
713 // @@protoc_insertion_point(field_set_rvalue:tensorflow.data.CompressedElement.data)
714}
715inline void CompressedElement::set_data(const char* value) {
716 GOOGLE_DCHECK(value != nullptr);
717
718 data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
719 GetArenaNoVirtual());
720 // @@protoc_insertion_point(field_set_char:tensorflow.data.CompressedElement.data)
721}
722inline void CompressedElement::set_data(const void* value,
723 size_t size) {
724
725 data_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
726 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
727 // @@protoc_insertion_point(field_set_pointer:tensorflow.data.CompressedElement.data)
728}
729inline std::string* CompressedElement::mutable_data() {
730
731 // @@protoc_insertion_point(field_mutable:tensorflow.data.CompressedElement.data)
732 return data_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
733}
734inline std::string* CompressedElement::release_data() {
735 // @@protoc_insertion_point(field_release:tensorflow.data.CompressedElement.data)
736
737 return data_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
738}
739inline void CompressedElement::set_allocated_data(std::string* data) {
740 if (data != nullptr) {
741
742 } else {
743
744 }
745 data_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), data,
746 GetArenaNoVirtual());
747 // @@protoc_insertion_point(field_set_allocated:tensorflow.data.CompressedElement.data)
748}
749inline std::string* CompressedElement::unsafe_arena_release_data() {
750 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.data.CompressedElement.data)
751 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
752
753 return data_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
754 GetArenaNoVirtual());
755}
756inline void CompressedElement::unsafe_arena_set_allocated_data(
757 std::string* data) {
758 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
759 if (data != nullptr) {
760
761 } else {
762
763 }
764 data_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
765 data, GetArenaNoVirtual());
766 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.data.CompressedElement.data)
767}
768
769// repeated .tensorflow.data.CompressedComponentMetadata component_metadata = 2;
770inline int CompressedElement::component_metadata_size() const {
771 return component_metadata_.size();
772}
773inline void CompressedElement::clear_component_metadata() {
774 component_metadata_.Clear();
775}
776inline ::tensorflow::data::CompressedComponentMetadata* CompressedElement::mutable_component_metadata(int index) {
777 // @@protoc_insertion_point(field_mutable:tensorflow.data.CompressedElement.component_metadata)
778 return component_metadata_.Mutable(index);
779}
780inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::CompressedComponentMetadata >*
781CompressedElement::mutable_component_metadata() {
782 // @@protoc_insertion_point(field_mutable_list:tensorflow.data.CompressedElement.component_metadata)
783 return &component_metadata_;
784}
785inline const ::tensorflow::data::CompressedComponentMetadata& CompressedElement::component_metadata(int index) const {
786 // @@protoc_insertion_point(field_get:tensorflow.data.CompressedElement.component_metadata)
787 return component_metadata_.Get(index);
788}
789inline ::tensorflow::data::CompressedComponentMetadata* CompressedElement::add_component_metadata() {
790 // @@protoc_insertion_point(field_add:tensorflow.data.CompressedElement.component_metadata)
791 return component_metadata_.Add();
792}
793inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::data::CompressedComponentMetadata >&
794CompressedElement::component_metadata() const {
795 // @@protoc_insertion_point(field_list:tensorflow.data.CompressedElement.component_metadata)
796 return component_metadata_;
797}
798
799// -------------------------------------------------------------------
800
801// UncompressedElement
802
803// repeated .tensorflow.TensorProto components = 1;
804inline int UncompressedElement::components_size() const {
805 return components_.size();
806}
807inline ::tensorflow::TensorProto* UncompressedElement::mutable_components(int index) {
808 // @@protoc_insertion_point(field_mutable:tensorflow.data.UncompressedElement.components)
809 return components_.Mutable(index);
810}
811inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto >*
812UncompressedElement::mutable_components() {
813 // @@protoc_insertion_point(field_mutable_list:tensorflow.data.UncompressedElement.components)
814 return &components_;
815}
816inline const ::tensorflow::TensorProto& UncompressedElement::components(int index) const {
817 // @@protoc_insertion_point(field_get:tensorflow.data.UncompressedElement.components)
818 return components_.Get(index);
819}
820inline ::tensorflow::TensorProto* UncompressedElement::add_components() {
821 // @@protoc_insertion_point(field_add:tensorflow.data.UncompressedElement.components)
822 return components_.Add();
823}
824inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorProto >&
825UncompressedElement::components() const {
826 // @@protoc_insertion_point(field_list:tensorflow.data.UncompressedElement.components)
827 return components_;
828}
829
830#ifdef __GNUC__
831 #pragma GCC diagnostic pop
832#endif // __GNUC__
833// -------------------------------------------------------------------
834
835// -------------------------------------------------------------------
836
837
838// @@protoc_insertion_point(namespace_scope)
839
840} // namespace data
841} // namespace tensorflow
842
843// @@protoc_insertion_point(global_scope)
844
845#include <google/protobuf/port_undef.inc>
846#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fdata_2fdataset_2eproto
847