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