1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/example/example_parser_configuration.proto
3
4#include "tensorflow/core/example/example_parser_configuration.pb.h"
5
6#include <algorithm>
7
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/io/coded_stream.h>
10#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// @@protoc_insertion_point(includes)
17#include <google/protobuf/port_def.inc>
18extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FeatureConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FixedLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto;
23extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VarLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto;
24namespace tensorflow {
25class VarLenFeatureProtoDefaultTypeInternal {
26 public:
27 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<VarLenFeatureProto> _instance;
28} _VarLenFeatureProto_default_instance_;
29class FixedLenFeatureProtoDefaultTypeInternal {
30 public:
31 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FixedLenFeatureProto> _instance;
32} _FixedLenFeatureProto_default_instance_;
33class FeatureConfigurationDefaultTypeInternal {
34 public:
35 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FeatureConfiguration> _instance;
36 const ::tensorflow::FixedLenFeatureProto* fixed_len_feature_;
37 const ::tensorflow::VarLenFeatureProto* var_len_feature_;
38} _FeatureConfiguration_default_instance_;
39class ExampleParserConfiguration_FeatureMapEntry_DoNotUseDefaultTypeInternal {
40 public:
41 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExampleParserConfiguration_FeatureMapEntry_DoNotUse> _instance;
42} _ExampleParserConfiguration_FeatureMapEntry_DoNotUse_default_instance_;
43class ExampleParserConfigurationDefaultTypeInternal {
44 public:
45 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ExampleParserConfiguration> _instance;
46} _ExampleParserConfiguration_default_instance_;
47} // namespace tensorflow
48static void InitDefaultsscc_info_ExampleParserConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto() {
49 GOOGLE_PROTOBUF_VERIFY_VERSION;
50
51 {
52 void* ptr = &::tensorflow::_ExampleParserConfiguration_default_instance_;
53 new (ptr) ::tensorflow::ExampleParserConfiguration();
54 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
55 }
56 ::tensorflow::ExampleParserConfiguration::InitAsDefaultInstance();
57}
58
59::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExampleParserConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto =
60 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ExampleParserConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto}, {
61 &scc_info_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,}};
62
63static void InitDefaultsscc_info_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto() {
64 GOOGLE_PROTOBUF_VERIFY_VERSION;
65
66 {
67 void* ptr = &::tensorflow::_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_default_instance_;
68 new (ptr) ::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse();
69 }
70 ::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse::InitAsDefaultInstance();
71}
72
73::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto =
74 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto}, {
75 &scc_info_FeatureConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,}};
76
77static void InitDefaultsscc_info_FeatureConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto() {
78 GOOGLE_PROTOBUF_VERIFY_VERSION;
79
80 {
81 void* ptr = &::tensorflow::_FeatureConfiguration_default_instance_;
82 new (ptr) ::tensorflow::FeatureConfiguration();
83 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
84 }
85 ::tensorflow::FeatureConfiguration::InitAsDefaultInstance();
86}
87
88::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FeatureConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto =
89 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_FeatureConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto}, {
90 &scc_info_FixedLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,
91 &scc_info_VarLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,}};
92
93static void InitDefaultsscc_info_FixedLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto() {
94 GOOGLE_PROTOBUF_VERIFY_VERSION;
95
96 {
97 void* ptr = &::tensorflow::_FixedLenFeatureProto_default_instance_;
98 new (ptr) ::tensorflow::FixedLenFeatureProto();
99 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
100 }
101 ::tensorflow::FixedLenFeatureProto::InitAsDefaultInstance();
102}
103
104::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_FixedLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto =
105 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 2, InitDefaultsscc_info_FixedLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto}, {
106 &scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.base,
107 &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}};
108
109static void InitDefaultsscc_info_VarLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto() {
110 GOOGLE_PROTOBUF_VERIFY_VERSION;
111
112 {
113 void* ptr = &::tensorflow::_VarLenFeatureProto_default_instance_;
114 new (ptr) ::tensorflow::VarLenFeatureProto();
115 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
116 }
117 ::tensorflow::VarLenFeatureProto::InitAsDefaultInstance();
118}
119
120::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VarLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto =
121 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_VarLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto}, {}};
122
123static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto[5];
124static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto = nullptr;
125static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto = nullptr;
126
127const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
128 ~0u, // no _has_bits_
129 PROTOBUF_FIELD_OFFSET(::tensorflow::VarLenFeatureProto, _internal_metadata_),
130 ~0u, // no _extensions_
131 ~0u, // no _oneof_case_
132 ~0u, // no _weak_field_map_
133 PROTOBUF_FIELD_OFFSET(::tensorflow::VarLenFeatureProto, dtype_),
134 PROTOBUF_FIELD_OFFSET(::tensorflow::VarLenFeatureProto, values_output_tensor_name_),
135 PROTOBUF_FIELD_OFFSET(::tensorflow::VarLenFeatureProto, indices_output_tensor_name_),
136 PROTOBUF_FIELD_OFFSET(::tensorflow::VarLenFeatureProto, shapes_output_tensor_name_),
137 ~0u, // no _has_bits_
138 PROTOBUF_FIELD_OFFSET(::tensorflow::FixedLenFeatureProto, _internal_metadata_),
139 ~0u, // no _extensions_
140 ~0u, // no _oneof_case_
141 ~0u, // no _weak_field_map_
142 PROTOBUF_FIELD_OFFSET(::tensorflow::FixedLenFeatureProto, dtype_),
143 PROTOBUF_FIELD_OFFSET(::tensorflow::FixedLenFeatureProto, shape_),
144 PROTOBUF_FIELD_OFFSET(::tensorflow::FixedLenFeatureProto, default_value_),
145 PROTOBUF_FIELD_OFFSET(::tensorflow::FixedLenFeatureProto, values_output_tensor_name_),
146 ~0u, // no _has_bits_
147 PROTOBUF_FIELD_OFFSET(::tensorflow::FeatureConfiguration, _internal_metadata_),
148 ~0u, // no _extensions_
149 PROTOBUF_FIELD_OFFSET(::tensorflow::FeatureConfiguration, _oneof_case_[0]),
150 ~0u, // no _weak_field_map_
151 offsetof(::tensorflow::FeatureConfigurationDefaultTypeInternal, fixed_len_feature_),
152 offsetof(::tensorflow::FeatureConfigurationDefaultTypeInternal, var_len_feature_),
153 PROTOBUF_FIELD_OFFSET(::tensorflow::FeatureConfiguration, config_),
154 PROTOBUF_FIELD_OFFSET(::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse, _has_bits_),
155 PROTOBUF_FIELD_OFFSET(::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse, _internal_metadata_),
156 ~0u, // no _extensions_
157 ~0u, // no _oneof_case_
158 ~0u, // no _weak_field_map_
159 PROTOBUF_FIELD_OFFSET(::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse, key_),
160 PROTOBUF_FIELD_OFFSET(::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse, value_),
161 0,
162 1,
163 ~0u, // no _has_bits_
164 PROTOBUF_FIELD_OFFSET(::tensorflow::ExampleParserConfiguration, _internal_metadata_),
165 ~0u, // no _extensions_
166 ~0u, // no _oneof_case_
167 ~0u, // no _weak_field_map_
168 PROTOBUF_FIELD_OFFSET(::tensorflow::ExampleParserConfiguration, feature_map_),
169};
170static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
171 { 0, -1, sizeof(::tensorflow::VarLenFeatureProto)},
172 { 9, -1, sizeof(::tensorflow::FixedLenFeatureProto)},
173 { 18, -1, sizeof(::tensorflow::FeatureConfiguration)},
174 { 26, 33, sizeof(::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse)},
175 { 35, -1, sizeof(::tensorflow::ExampleParserConfiguration)},
176};
177
178static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
179 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_VarLenFeatureProto_default_instance_),
180 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_FixedLenFeatureProto_default_instance_),
181 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_FeatureConfiguration_default_instance_),
182 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_default_instance_),
183 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ExampleParserConfiguration_default_instance_),
184};
185
186const char descriptor_table_protodef_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
187 "\n:tensorflow/core/example/example_parser"
188 "_configuration.proto\022\ntensorflow\032&tensor"
189 "flow/core/framework/tensor.proto\032,tensor"
190 "flow/core/framework/tensor_shape.proto\032%"
191 "tensorflow/core/framework/types.proto\"\243\001"
192 "\n\022VarLenFeatureProto\022#\n\005dtype\030\001 \001(\0162\024.te"
193 "nsorflow.DataType\022!\n\031values_output_tenso"
194 "r_name\030\002 \001(\t\022\"\n\032indices_output_tensor_na"
195 "me\030\003 \001(\t\022!\n\031shapes_output_tensor_name\030\004 "
196 "\001(\t\"\273\001\n\024FixedLenFeatureProto\022#\n\005dtype\030\001 "
197 "\001(\0162\024.tensorflow.DataType\022+\n\005shape\030\002 \001(\013"
198 "2\034.tensorflow.TensorShapeProto\022.\n\rdefaul"
199 "t_value\030\003 \001(\0132\027.tensorflow.TensorProto\022!"
200 "\n\031values_output_tensor_name\030\004 \001(\t\"\232\001\n\024Fe"
201 "atureConfiguration\022=\n\021fixed_len_feature\030"
202 "\001 \001(\0132 .tensorflow.FixedLenFeatureProtoH"
203 "\000\0229\n\017var_len_feature\030\002 \001(\0132\036.tensorflow."
204 "VarLenFeatureProtoH\000B\010\n\006config\"\276\001\n\032Examp"
205 "leParserConfiguration\022K\n\013feature_map\030\001 \003"
206 "(\01326.tensorflow.ExampleParserConfigurati"
207 "on.FeatureMapEntry\032S\n\017FeatureMapEntry\022\013\n"
208 "\003key\030\001 \001(\t\022/\n\005value\030\002 \001(\0132 .tensorflow.F"
209 "eatureConfiguration:\0028\001B\242\001\n\026org.tensorfl"
210 "ow.exampleB ExampleParserConfigurationPr"
211 "otosP\001Zagithub.com/tensorflow/tensorflow"
212 "/tensorflow/go/core/example/example_pars"
213 "er_configuration_go_proto\370\001\001b\006proto3"
214 ;
215static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto_deps[3] = {
216 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_2eproto,
217 &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto,
218 &::descriptor_table_tensorflow_2fcore_2fframework_2ftypes_2eproto,
219};
220static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto_sccs[5] = {
221 &scc_info_ExampleParserConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,
222 &scc_info_ExampleParserConfiguration_FeatureMapEntry_DoNotUse_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,
223 &scc_info_FeatureConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,
224 &scc_info_FixedLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,
225 &scc_info_VarLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base,
226};
227static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto_once;
228static bool descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto_initialized = false;
229const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto = {
230 &descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto, "tensorflow/core/example/example_parser_configuration.proto", 1076,
231 &descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto_once, descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto_deps, 5, 3,
232 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto::offsets,
233 file_level_metadata_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto, 5, file_level_enum_descriptors_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto,
234};
235
236// Force running AddDescriptors() at dynamic initialization time.
237static bool dynamic_init_dummy_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto), true);
238namespace tensorflow {
239
240// ===================================================================
241
242void VarLenFeatureProto::InitAsDefaultInstance() {
243}
244class VarLenFeatureProto::_Internal {
245 public:
246};
247
248VarLenFeatureProto::VarLenFeatureProto()
249 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
250 SharedCtor();
251 // @@protoc_insertion_point(constructor:tensorflow.VarLenFeatureProto)
252}
253VarLenFeatureProto::VarLenFeatureProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
254 : ::PROTOBUF_NAMESPACE_ID::Message(),
255 _internal_metadata_(arena) {
256 SharedCtor();
257 RegisterArenaDtor(arena);
258 // @@protoc_insertion_point(arena_constructor:tensorflow.VarLenFeatureProto)
259}
260VarLenFeatureProto::VarLenFeatureProto(const VarLenFeatureProto& from)
261 : ::PROTOBUF_NAMESPACE_ID::Message(),
262 _internal_metadata_(nullptr) {
263 _internal_metadata_.MergeFrom(from._internal_metadata_);
264 values_output_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
265 if (!from.values_output_tensor_name().empty()) {
266 values_output_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.values_output_tensor_name(),
267 GetArenaNoVirtual());
268 }
269 indices_output_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
270 if (!from.indices_output_tensor_name().empty()) {
271 indices_output_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.indices_output_tensor_name(),
272 GetArenaNoVirtual());
273 }
274 shapes_output_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
275 if (!from.shapes_output_tensor_name().empty()) {
276 shapes_output_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.shapes_output_tensor_name(),
277 GetArenaNoVirtual());
278 }
279 dtype_ = from.dtype_;
280 // @@protoc_insertion_point(copy_constructor:tensorflow.VarLenFeatureProto)
281}
282
283void VarLenFeatureProto::SharedCtor() {
284 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_VarLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base);
285 values_output_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
286 indices_output_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
287 shapes_output_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
288 dtype_ = 0;
289}
290
291VarLenFeatureProto::~VarLenFeatureProto() {
292 // @@protoc_insertion_point(destructor:tensorflow.VarLenFeatureProto)
293 SharedDtor();
294}
295
296void VarLenFeatureProto::SharedDtor() {
297 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
298 values_output_tensor_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
299 indices_output_tensor_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
300 shapes_output_tensor_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
301}
302
303void VarLenFeatureProto::ArenaDtor(void* object) {
304 VarLenFeatureProto* _this = reinterpret_cast< VarLenFeatureProto* >(object);
305 (void)_this;
306}
307void VarLenFeatureProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
308}
309void VarLenFeatureProto::SetCachedSize(int size) const {
310 _cached_size_.Set(size);
311}
312const VarLenFeatureProto& VarLenFeatureProto::default_instance() {
313 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VarLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base);
314 return *internal_default_instance();
315}
316
317
318void VarLenFeatureProto::Clear() {
319// @@protoc_insertion_point(message_clear_start:tensorflow.VarLenFeatureProto)
320 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
321 // Prevent compiler warnings about cached_has_bits being unused
322 (void) cached_has_bits;
323
324 values_output_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
325 indices_output_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
326 shapes_output_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
327 dtype_ = 0;
328 _internal_metadata_.Clear();
329}
330
331#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
332const char* VarLenFeatureProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
333#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
334 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
335 while (!ctx->Done(&ptr)) {
336 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
337 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
338 CHK_(ptr);
339 switch (tag >> 3) {
340 // .tensorflow.DataType dtype = 1;
341 case 1:
342 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
343 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
344 CHK_(ptr);
345 set_dtype(static_cast<::tensorflow::DataType>(val));
346 } else goto handle_unusual;
347 continue;
348 // string values_output_tensor_name = 2;
349 case 2:
350 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
351 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_values_output_tensor_name(), ptr, ctx, "tensorflow.VarLenFeatureProto.values_output_tensor_name");
352 CHK_(ptr);
353 } else goto handle_unusual;
354 continue;
355 // string indices_output_tensor_name = 3;
356 case 3:
357 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
358 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_indices_output_tensor_name(), ptr, ctx, "tensorflow.VarLenFeatureProto.indices_output_tensor_name");
359 CHK_(ptr);
360 } else goto handle_unusual;
361 continue;
362 // string shapes_output_tensor_name = 4;
363 case 4:
364 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
365 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_shapes_output_tensor_name(), ptr, ctx, "tensorflow.VarLenFeatureProto.shapes_output_tensor_name");
366 CHK_(ptr);
367 } else goto handle_unusual;
368 continue;
369 default: {
370 handle_unusual:
371 if ((tag & 7) == 4 || tag == 0) {
372 ctx->SetLastTag(tag);
373 goto success;
374 }
375 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
376 CHK_(ptr != nullptr);
377 continue;
378 }
379 } // switch
380 } // while
381success:
382 return ptr;
383failure:
384 ptr = nullptr;
385 goto success;
386#undef CHK_
387}
388#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
389bool VarLenFeatureProto::MergePartialFromCodedStream(
390 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
391#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
392 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
393 // @@protoc_insertion_point(parse_start:tensorflow.VarLenFeatureProto)
394 for (;;) {
395 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
396 tag = p.first;
397 if (!p.second) goto handle_unusual;
398 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
399 // .tensorflow.DataType dtype = 1;
400 case 1: {
401 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
402 int value = 0;
403 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
404 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
405 input, &value)));
406 set_dtype(static_cast< ::tensorflow::DataType >(value));
407 } else {
408 goto handle_unusual;
409 }
410 break;
411 }
412
413 // string values_output_tensor_name = 2;
414 case 2: {
415 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
416 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
417 input, this->mutable_values_output_tensor_name()));
418 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
419 this->values_output_tensor_name().data(), static_cast<int>(this->values_output_tensor_name().length()),
420 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
421 "tensorflow.VarLenFeatureProto.values_output_tensor_name"));
422 } else {
423 goto handle_unusual;
424 }
425 break;
426 }
427
428 // string indices_output_tensor_name = 3;
429 case 3: {
430 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
431 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
432 input, this->mutable_indices_output_tensor_name()));
433 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
434 this->indices_output_tensor_name().data(), static_cast<int>(this->indices_output_tensor_name().length()),
435 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
436 "tensorflow.VarLenFeatureProto.indices_output_tensor_name"));
437 } else {
438 goto handle_unusual;
439 }
440 break;
441 }
442
443 // string shapes_output_tensor_name = 4;
444 case 4: {
445 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
446 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
447 input, this->mutable_shapes_output_tensor_name()));
448 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
449 this->shapes_output_tensor_name().data(), static_cast<int>(this->shapes_output_tensor_name().length()),
450 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
451 "tensorflow.VarLenFeatureProto.shapes_output_tensor_name"));
452 } else {
453 goto handle_unusual;
454 }
455 break;
456 }
457
458 default: {
459 handle_unusual:
460 if (tag == 0) {
461 goto success;
462 }
463 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
464 input, tag, _internal_metadata_.mutable_unknown_fields()));
465 break;
466 }
467 }
468 }
469success:
470 // @@protoc_insertion_point(parse_success:tensorflow.VarLenFeatureProto)
471 return true;
472failure:
473 // @@protoc_insertion_point(parse_failure:tensorflow.VarLenFeatureProto)
474 return false;
475#undef DO_
476}
477#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
478
479void VarLenFeatureProto::SerializeWithCachedSizes(
480 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
481 // @@protoc_insertion_point(serialize_start:tensorflow.VarLenFeatureProto)
482 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
483 (void) cached_has_bits;
484
485 // .tensorflow.DataType dtype = 1;
486 if (this->dtype() != 0) {
487 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
488 1, this->dtype(), output);
489 }
490
491 // string values_output_tensor_name = 2;
492 if (this->values_output_tensor_name().size() > 0) {
493 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
494 this->values_output_tensor_name().data(), static_cast<int>(this->values_output_tensor_name().length()),
495 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
496 "tensorflow.VarLenFeatureProto.values_output_tensor_name");
497 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
498 2, this->values_output_tensor_name(), output);
499 }
500
501 // string indices_output_tensor_name = 3;
502 if (this->indices_output_tensor_name().size() > 0) {
503 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
504 this->indices_output_tensor_name().data(), static_cast<int>(this->indices_output_tensor_name().length()),
505 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
506 "tensorflow.VarLenFeatureProto.indices_output_tensor_name");
507 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
508 3, this->indices_output_tensor_name(), output);
509 }
510
511 // string shapes_output_tensor_name = 4;
512 if (this->shapes_output_tensor_name().size() > 0) {
513 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
514 this->shapes_output_tensor_name().data(), static_cast<int>(this->shapes_output_tensor_name().length()),
515 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
516 "tensorflow.VarLenFeatureProto.shapes_output_tensor_name");
517 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
518 4, this->shapes_output_tensor_name(), output);
519 }
520
521 if (_internal_metadata_.have_unknown_fields()) {
522 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
523 _internal_metadata_.unknown_fields(), output);
524 }
525 // @@protoc_insertion_point(serialize_end:tensorflow.VarLenFeatureProto)
526}
527
528::PROTOBUF_NAMESPACE_ID::uint8* VarLenFeatureProto::InternalSerializeWithCachedSizesToArray(
529 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
530 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.VarLenFeatureProto)
531 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
532 (void) cached_has_bits;
533
534 // .tensorflow.DataType dtype = 1;
535 if (this->dtype() != 0) {
536 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
537 1, this->dtype(), target);
538 }
539
540 // string values_output_tensor_name = 2;
541 if (this->values_output_tensor_name().size() > 0) {
542 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
543 this->values_output_tensor_name().data(), static_cast<int>(this->values_output_tensor_name().length()),
544 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
545 "tensorflow.VarLenFeatureProto.values_output_tensor_name");
546 target =
547 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
548 2, this->values_output_tensor_name(), target);
549 }
550
551 // string indices_output_tensor_name = 3;
552 if (this->indices_output_tensor_name().size() > 0) {
553 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
554 this->indices_output_tensor_name().data(), static_cast<int>(this->indices_output_tensor_name().length()),
555 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
556 "tensorflow.VarLenFeatureProto.indices_output_tensor_name");
557 target =
558 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
559 3, this->indices_output_tensor_name(), target);
560 }
561
562 // string shapes_output_tensor_name = 4;
563 if (this->shapes_output_tensor_name().size() > 0) {
564 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
565 this->shapes_output_tensor_name().data(), static_cast<int>(this->shapes_output_tensor_name().length()),
566 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
567 "tensorflow.VarLenFeatureProto.shapes_output_tensor_name");
568 target =
569 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
570 4, this->shapes_output_tensor_name(), target);
571 }
572
573 if (_internal_metadata_.have_unknown_fields()) {
574 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
575 _internal_metadata_.unknown_fields(), target);
576 }
577 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.VarLenFeatureProto)
578 return target;
579}
580
581size_t VarLenFeatureProto::ByteSizeLong() const {
582// @@protoc_insertion_point(message_byte_size_start:tensorflow.VarLenFeatureProto)
583 size_t total_size = 0;
584
585 if (_internal_metadata_.have_unknown_fields()) {
586 total_size +=
587 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
588 _internal_metadata_.unknown_fields());
589 }
590 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
591 // Prevent compiler warnings about cached_has_bits being unused
592 (void) cached_has_bits;
593
594 // string values_output_tensor_name = 2;
595 if (this->values_output_tensor_name().size() > 0) {
596 total_size += 1 +
597 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
598 this->values_output_tensor_name());
599 }
600
601 // string indices_output_tensor_name = 3;
602 if (this->indices_output_tensor_name().size() > 0) {
603 total_size += 1 +
604 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
605 this->indices_output_tensor_name());
606 }
607
608 // string shapes_output_tensor_name = 4;
609 if (this->shapes_output_tensor_name().size() > 0) {
610 total_size += 1 +
611 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
612 this->shapes_output_tensor_name());
613 }
614
615 // .tensorflow.DataType dtype = 1;
616 if (this->dtype() != 0) {
617 total_size += 1 +
618 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->dtype());
619 }
620
621 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
622 SetCachedSize(cached_size);
623 return total_size;
624}
625
626void VarLenFeatureProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
627// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.VarLenFeatureProto)
628 GOOGLE_DCHECK_NE(&from, this);
629 const VarLenFeatureProto* source =
630 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<VarLenFeatureProto>(
631 &from);
632 if (source == nullptr) {
633 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.VarLenFeatureProto)
634 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
635 } else {
636 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.VarLenFeatureProto)
637 MergeFrom(*source);
638 }
639}
640
641void VarLenFeatureProto::MergeFrom(const VarLenFeatureProto& from) {
642// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.VarLenFeatureProto)
643 GOOGLE_DCHECK_NE(&from, this);
644 _internal_metadata_.MergeFrom(from._internal_metadata_);
645 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
646 (void) cached_has_bits;
647
648 if (from.values_output_tensor_name().size() > 0) {
649 set_values_output_tensor_name(from.values_output_tensor_name());
650 }
651 if (from.indices_output_tensor_name().size() > 0) {
652 set_indices_output_tensor_name(from.indices_output_tensor_name());
653 }
654 if (from.shapes_output_tensor_name().size() > 0) {
655 set_shapes_output_tensor_name(from.shapes_output_tensor_name());
656 }
657 if (from.dtype() != 0) {
658 set_dtype(from.dtype());
659 }
660}
661
662void VarLenFeatureProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
663// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.VarLenFeatureProto)
664 if (&from == this) return;
665 Clear();
666 MergeFrom(from);
667}
668
669void VarLenFeatureProto::CopyFrom(const VarLenFeatureProto& from) {
670// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.VarLenFeatureProto)
671 if (&from == this) return;
672 Clear();
673 MergeFrom(from);
674}
675
676bool VarLenFeatureProto::IsInitialized() const {
677 return true;
678}
679
680void VarLenFeatureProto::InternalSwap(VarLenFeatureProto* other) {
681 using std::swap;
682 _internal_metadata_.Swap(&other->_internal_metadata_);
683 values_output_tensor_name_.Swap(&other->values_output_tensor_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
684 GetArenaNoVirtual());
685 indices_output_tensor_name_.Swap(&other->indices_output_tensor_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
686 GetArenaNoVirtual());
687 shapes_output_tensor_name_.Swap(&other->shapes_output_tensor_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
688 GetArenaNoVirtual());
689 swap(dtype_, other->dtype_);
690}
691
692::PROTOBUF_NAMESPACE_ID::Metadata VarLenFeatureProto::GetMetadata() const {
693 return GetMetadataStatic();
694}
695
696
697// ===================================================================
698
699void FixedLenFeatureProto::InitAsDefaultInstance() {
700 ::tensorflow::_FixedLenFeatureProto_default_instance_._instance.get_mutable()->shape_ = const_cast< ::tensorflow::TensorShapeProto*>(
701 ::tensorflow::TensorShapeProto::internal_default_instance());
702 ::tensorflow::_FixedLenFeatureProto_default_instance_._instance.get_mutable()->default_value_ = const_cast< ::tensorflow::TensorProto*>(
703 ::tensorflow::TensorProto::internal_default_instance());
704}
705class FixedLenFeatureProto::_Internal {
706 public:
707 static const ::tensorflow::TensorShapeProto& shape(const FixedLenFeatureProto* msg);
708 static const ::tensorflow::TensorProto& default_value(const FixedLenFeatureProto* msg);
709};
710
711const ::tensorflow::TensorShapeProto&
712FixedLenFeatureProto::_Internal::shape(const FixedLenFeatureProto* msg) {
713 return *msg->shape_;
714}
715const ::tensorflow::TensorProto&
716FixedLenFeatureProto::_Internal::default_value(const FixedLenFeatureProto* msg) {
717 return *msg->default_value_;
718}
719void FixedLenFeatureProto::unsafe_arena_set_allocated_shape(
720 ::tensorflow::TensorShapeProto* shape) {
721 if (GetArenaNoVirtual() == nullptr) {
722 delete shape_;
723 }
724 shape_ = shape;
725 if (shape) {
726
727 } else {
728
729 }
730 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FixedLenFeatureProto.shape)
731}
732void FixedLenFeatureProto::clear_shape() {
733 if (GetArenaNoVirtual() == nullptr && shape_ != nullptr) {
734 delete shape_;
735 }
736 shape_ = nullptr;
737}
738void FixedLenFeatureProto::unsafe_arena_set_allocated_default_value(
739 ::tensorflow::TensorProto* default_value) {
740 if (GetArenaNoVirtual() == nullptr) {
741 delete default_value_;
742 }
743 default_value_ = default_value;
744 if (default_value) {
745
746 } else {
747
748 }
749 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FixedLenFeatureProto.default_value)
750}
751void FixedLenFeatureProto::clear_default_value() {
752 if (GetArenaNoVirtual() == nullptr && default_value_ != nullptr) {
753 delete default_value_;
754 }
755 default_value_ = nullptr;
756}
757FixedLenFeatureProto::FixedLenFeatureProto()
758 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
759 SharedCtor();
760 // @@protoc_insertion_point(constructor:tensorflow.FixedLenFeatureProto)
761}
762FixedLenFeatureProto::FixedLenFeatureProto(::PROTOBUF_NAMESPACE_ID::Arena* arena)
763 : ::PROTOBUF_NAMESPACE_ID::Message(),
764 _internal_metadata_(arena) {
765 SharedCtor();
766 RegisterArenaDtor(arena);
767 // @@protoc_insertion_point(arena_constructor:tensorflow.FixedLenFeatureProto)
768}
769FixedLenFeatureProto::FixedLenFeatureProto(const FixedLenFeatureProto& from)
770 : ::PROTOBUF_NAMESPACE_ID::Message(),
771 _internal_metadata_(nullptr) {
772 _internal_metadata_.MergeFrom(from._internal_metadata_);
773 values_output_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
774 if (!from.values_output_tensor_name().empty()) {
775 values_output_tensor_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.values_output_tensor_name(),
776 GetArenaNoVirtual());
777 }
778 if (from.has_shape()) {
779 shape_ = new ::tensorflow::TensorShapeProto(*from.shape_);
780 } else {
781 shape_ = nullptr;
782 }
783 if (from.has_default_value()) {
784 default_value_ = new ::tensorflow::TensorProto(*from.default_value_);
785 } else {
786 default_value_ = nullptr;
787 }
788 dtype_ = from.dtype_;
789 // @@protoc_insertion_point(copy_constructor:tensorflow.FixedLenFeatureProto)
790}
791
792void FixedLenFeatureProto::SharedCtor() {
793 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FixedLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base);
794 values_output_tensor_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
795 ::memset(&shape_, 0, static_cast<size_t>(
796 reinterpret_cast<char*>(&dtype_) -
797 reinterpret_cast<char*>(&shape_)) + sizeof(dtype_));
798}
799
800FixedLenFeatureProto::~FixedLenFeatureProto() {
801 // @@protoc_insertion_point(destructor:tensorflow.FixedLenFeatureProto)
802 SharedDtor();
803}
804
805void FixedLenFeatureProto::SharedDtor() {
806 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
807 values_output_tensor_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
808 if (this != internal_default_instance()) delete shape_;
809 if (this != internal_default_instance()) delete default_value_;
810}
811
812void FixedLenFeatureProto::ArenaDtor(void* object) {
813 FixedLenFeatureProto* _this = reinterpret_cast< FixedLenFeatureProto* >(object);
814 (void)_this;
815}
816void FixedLenFeatureProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
817}
818void FixedLenFeatureProto::SetCachedSize(int size) const {
819 _cached_size_.Set(size);
820}
821const FixedLenFeatureProto& FixedLenFeatureProto::default_instance() {
822 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FixedLenFeatureProto_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base);
823 return *internal_default_instance();
824}
825
826
827void FixedLenFeatureProto::Clear() {
828// @@protoc_insertion_point(message_clear_start:tensorflow.FixedLenFeatureProto)
829 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
830 // Prevent compiler warnings about cached_has_bits being unused
831 (void) cached_has_bits;
832
833 values_output_tensor_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
834 if (GetArenaNoVirtual() == nullptr && shape_ != nullptr) {
835 delete shape_;
836 }
837 shape_ = nullptr;
838 if (GetArenaNoVirtual() == nullptr && default_value_ != nullptr) {
839 delete default_value_;
840 }
841 default_value_ = nullptr;
842 dtype_ = 0;
843 _internal_metadata_.Clear();
844}
845
846#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
847const char* FixedLenFeatureProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
848#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
849 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
850 while (!ctx->Done(&ptr)) {
851 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
852 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
853 CHK_(ptr);
854 switch (tag >> 3) {
855 // .tensorflow.DataType dtype = 1;
856 case 1:
857 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
858 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
859 CHK_(ptr);
860 set_dtype(static_cast<::tensorflow::DataType>(val));
861 } else goto handle_unusual;
862 continue;
863 // .tensorflow.TensorShapeProto shape = 2;
864 case 2:
865 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
866 ptr = ctx->ParseMessage(mutable_shape(), ptr);
867 CHK_(ptr);
868 } else goto handle_unusual;
869 continue;
870 // .tensorflow.TensorProto default_value = 3;
871 case 3:
872 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
873 ptr = ctx->ParseMessage(mutable_default_value(), ptr);
874 CHK_(ptr);
875 } else goto handle_unusual;
876 continue;
877 // string values_output_tensor_name = 4;
878 case 4:
879 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
880 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_values_output_tensor_name(), ptr, ctx, "tensorflow.FixedLenFeatureProto.values_output_tensor_name");
881 CHK_(ptr);
882 } else goto handle_unusual;
883 continue;
884 default: {
885 handle_unusual:
886 if ((tag & 7) == 4 || tag == 0) {
887 ctx->SetLastTag(tag);
888 goto success;
889 }
890 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
891 CHK_(ptr != nullptr);
892 continue;
893 }
894 } // switch
895 } // while
896success:
897 return ptr;
898failure:
899 ptr = nullptr;
900 goto success;
901#undef CHK_
902}
903#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
904bool FixedLenFeatureProto::MergePartialFromCodedStream(
905 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
906#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
907 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
908 // @@protoc_insertion_point(parse_start:tensorflow.FixedLenFeatureProto)
909 for (;;) {
910 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
911 tag = p.first;
912 if (!p.second) goto handle_unusual;
913 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
914 // .tensorflow.DataType dtype = 1;
915 case 1: {
916 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
917 int value = 0;
918 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
919 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
920 input, &value)));
921 set_dtype(static_cast< ::tensorflow::DataType >(value));
922 } else {
923 goto handle_unusual;
924 }
925 break;
926 }
927
928 // .tensorflow.TensorShapeProto shape = 2;
929 case 2: {
930 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
931 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
932 input, mutable_shape()));
933 } else {
934 goto handle_unusual;
935 }
936 break;
937 }
938
939 // .tensorflow.TensorProto default_value = 3;
940 case 3: {
941 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
942 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
943 input, mutable_default_value()));
944 } else {
945 goto handle_unusual;
946 }
947 break;
948 }
949
950 // string values_output_tensor_name = 4;
951 case 4: {
952 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
953 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
954 input, this->mutable_values_output_tensor_name()));
955 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
956 this->values_output_tensor_name().data(), static_cast<int>(this->values_output_tensor_name().length()),
957 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
958 "tensorflow.FixedLenFeatureProto.values_output_tensor_name"));
959 } else {
960 goto handle_unusual;
961 }
962 break;
963 }
964
965 default: {
966 handle_unusual:
967 if (tag == 0) {
968 goto success;
969 }
970 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
971 input, tag, _internal_metadata_.mutable_unknown_fields()));
972 break;
973 }
974 }
975 }
976success:
977 // @@protoc_insertion_point(parse_success:tensorflow.FixedLenFeatureProto)
978 return true;
979failure:
980 // @@protoc_insertion_point(parse_failure:tensorflow.FixedLenFeatureProto)
981 return false;
982#undef DO_
983}
984#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
985
986void FixedLenFeatureProto::SerializeWithCachedSizes(
987 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
988 // @@protoc_insertion_point(serialize_start:tensorflow.FixedLenFeatureProto)
989 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
990 (void) cached_has_bits;
991
992 // .tensorflow.DataType dtype = 1;
993 if (this->dtype() != 0) {
994 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
995 1, this->dtype(), output);
996 }
997
998 // .tensorflow.TensorShapeProto shape = 2;
999 if (this->has_shape()) {
1000 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1001 2, _Internal::shape(this), output);
1002 }
1003
1004 // .tensorflow.TensorProto default_value = 3;
1005 if (this->has_default_value()) {
1006 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1007 3, _Internal::default_value(this), output);
1008 }
1009
1010 // string values_output_tensor_name = 4;
1011 if (this->values_output_tensor_name().size() > 0) {
1012 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1013 this->values_output_tensor_name().data(), static_cast<int>(this->values_output_tensor_name().length()),
1014 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1015 "tensorflow.FixedLenFeatureProto.values_output_tensor_name");
1016 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1017 4, this->values_output_tensor_name(), output);
1018 }
1019
1020 if (_internal_metadata_.have_unknown_fields()) {
1021 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1022 _internal_metadata_.unknown_fields(), output);
1023 }
1024 // @@protoc_insertion_point(serialize_end:tensorflow.FixedLenFeatureProto)
1025}
1026
1027::PROTOBUF_NAMESPACE_ID::uint8* FixedLenFeatureProto::InternalSerializeWithCachedSizesToArray(
1028 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1029 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.FixedLenFeatureProto)
1030 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1031 (void) cached_has_bits;
1032
1033 // .tensorflow.DataType dtype = 1;
1034 if (this->dtype() != 0) {
1035 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
1036 1, this->dtype(), target);
1037 }
1038
1039 // .tensorflow.TensorShapeProto shape = 2;
1040 if (this->has_shape()) {
1041 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1042 InternalWriteMessageToArray(
1043 2, _Internal::shape(this), target);
1044 }
1045
1046 // .tensorflow.TensorProto default_value = 3;
1047 if (this->has_default_value()) {
1048 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1049 InternalWriteMessageToArray(
1050 3, _Internal::default_value(this), target);
1051 }
1052
1053 // string values_output_tensor_name = 4;
1054 if (this->values_output_tensor_name().size() > 0) {
1055 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1056 this->values_output_tensor_name().data(), static_cast<int>(this->values_output_tensor_name().length()),
1057 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1058 "tensorflow.FixedLenFeatureProto.values_output_tensor_name");
1059 target =
1060 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1061 4, this->values_output_tensor_name(), target);
1062 }
1063
1064 if (_internal_metadata_.have_unknown_fields()) {
1065 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1066 _internal_metadata_.unknown_fields(), target);
1067 }
1068 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.FixedLenFeatureProto)
1069 return target;
1070}
1071
1072size_t FixedLenFeatureProto::ByteSizeLong() const {
1073// @@protoc_insertion_point(message_byte_size_start:tensorflow.FixedLenFeatureProto)
1074 size_t total_size = 0;
1075
1076 if (_internal_metadata_.have_unknown_fields()) {
1077 total_size +=
1078 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1079 _internal_metadata_.unknown_fields());
1080 }
1081 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1082 // Prevent compiler warnings about cached_has_bits being unused
1083 (void) cached_has_bits;
1084
1085 // string values_output_tensor_name = 4;
1086 if (this->values_output_tensor_name().size() > 0) {
1087 total_size += 1 +
1088 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1089 this->values_output_tensor_name());
1090 }
1091
1092 // .tensorflow.TensorShapeProto shape = 2;
1093 if (this->has_shape()) {
1094 total_size += 1 +
1095 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1096 *shape_);
1097 }
1098
1099 // .tensorflow.TensorProto default_value = 3;
1100 if (this->has_default_value()) {
1101 total_size += 1 +
1102 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1103 *default_value_);
1104 }
1105
1106 // .tensorflow.DataType dtype = 1;
1107 if (this->dtype() != 0) {
1108 total_size += 1 +
1109 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->dtype());
1110 }
1111
1112 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1113 SetCachedSize(cached_size);
1114 return total_size;
1115}
1116
1117void FixedLenFeatureProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1118// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.FixedLenFeatureProto)
1119 GOOGLE_DCHECK_NE(&from, this);
1120 const FixedLenFeatureProto* source =
1121 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FixedLenFeatureProto>(
1122 &from);
1123 if (source == nullptr) {
1124 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.FixedLenFeatureProto)
1125 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1126 } else {
1127 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.FixedLenFeatureProto)
1128 MergeFrom(*source);
1129 }
1130}
1131
1132void FixedLenFeatureProto::MergeFrom(const FixedLenFeatureProto& from) {
1133// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.FixedLenFeatureProto)
1134 GOOGLE_DCHECK_NE(&from, this);
1135 _internal_metadata_.MergeFrom(from._internal_metadata_);
1136 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1137 (void) cached_has_bits;
1138
1139 if (from.values_output_tensor_name().size() > 0) {
1140 set_values_output_tensor_name(from.values_output_tensor_name());
1141 }
1142 if (from.has_shape()) {
1143 mutable_shape()->::tensorflow::TensorShapeProto::MergeFrom(from.shape());
1144 }
1145 if (from.has_default_value()) {
1146 mutable_default_value()->::tensorflow::TensorProto::MergeFrom(from.default_value());
1147 }
1148 if (from.dtype() != 0) {
1149 set_dtype(from.dtype());
1150 }
1151}
1152
1153void FixedLenFeatureProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1154// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.FixedLenFeatureProto)
1155 if (&from == this) return;
1156 Clear();
1157 MergeFrom(from);
1158}
1159
1160void FixedLenFeatureProto::CopyFrom(const FixedLenFeatureProto& from) {
1161// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.FixedLenFeatureProto)
1162 if (&from == this) return;
1163 Clear();
1164 MergeFrom(from);
1165}
1166
1167bool FixedLenFeatureProto::IsInitialized() const {
1168 return true;
1169}
1170
1171void FixedLenFeatureProto::InternalSwap(FixedLenFeatureProto* other) {
1172 using std::swap;
1173 _internal_metadata_.Swap(&other->_internal_metadata_);
1174 values_output_tensor_name_.Swap(&other->values_output_tensor_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1175 GetArenaNoVirtual());
1176 swap(shape_, other->shape_);
1177 swap(default_value_, other->default_value_);
1178 swap(dtype_, other->dtype_);
1179}
1180
1181::PROTOBUF_NAMESPACE_ID::Metadata FixedLenFeatureProto::GetMetadata() const {
1182 return GetMetadataStatic();
1183}
1184
1185
1186// ===================================================================
1187
1188void FeatureConfiguration::InitAsDefaultInstance() {
1189 ::tensorflow::_FeatureConfiguration_default_instance_.fixed_len_feature_ = const_cast< ::tensorflow::FixedLenFeatureProto*>(
1190 ::tensorflow::FixedLenFeatureProto::internal_default_instance());
1191 ::tensorflow::_FeatureConfiguration_default_instance_.var_len_feature_ = const_cast< ::tensorflow::VarLenFeatureProto*>(
1192 ::tensorflow::VarLenFeatureProto::internal_default_instance());
1193}
1194class FeatureConfiguration::_Internal {
1195 public:
1196 static const ::tensorflow::FixedLenFeatureProto& fixed_len_feature(const FeatureConfiguration* msg);
1197 static const ::tensorflow::VarLenFeatureProto& var_len_feature(const FeatureConfiguration* msg);
1198};
1199
1200const ::tensorflow::FixedLenFeatureProto&
1201FeatureConfiguration::_Internal::fixed_len_feature(const FeatureConfiguration* msg) {
1202 return *msg->config_.fixed_len_feature_;
1203}
1204const ::tensorflow::VarLenFeatureProto&
1205FeatureConfiguration::_Internal::var_len_feature(const FeatureConfiguration* msg) {
1206 return *msg->config_.var_len_feature_;
1207}
1208void FeatureConfiguration::set_allocated_fixed_len_feature(::tensorflow::FixedLenFeatureProto* fixed_len_feature) {
1209 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1210 clear_config();
1211 if (fixed_len_feature) {
1212 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1213 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(fixed_len_feature);
1214 if (message_arena != submessage_arena) {
1215 fixed_len_feature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1216 message_arena, fixed_len_feature, submessage_arena);
1217 }
1218 set_has_fixed_len_feature();
1219 config_.fixed_len_feature_ = fixed_len_feature;
1220 }
1221 // @@protoc_insertion_point(field_set_allocated:tensorflow.FeatureConfiguration.fixed_len_feature)
1222}
1223void FeatureConfiguration::set_allocated_var_len_feature(::tensorflow::VarLenFeatureProto* var_len_feature) {
1224 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1225 clear_config();
1226 if (var_len_feature) {
1227 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1228 ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(var_len_feature);
1229 if (message_arena != submessage_arena) {
1230 var_len_feature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1231 message_arena, var_len_feature, submessage_arena);
1232 }
1233 set_has_var_len_feature();
1234 config_.var_len_feature_ = var_len_feature;
1235 }
1236 // @@protoc_insertion_point(field_set_allocated:tensorflow.FeatureConfiguration.var_len_feature)
1237}
1238FeatureConfiguration::FeatureConfiguration()
1239 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1240 SharedCtor();
1241 // @@protoc_insertion_point(constructor:tensorflow.FeatureConfiguration)
1242}
1243FeatureConfiguration::FeatureConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1244 : ::PROTOBUF_NAMESPACE_ID::Message(),
1245 _internal_metadata_(arena) {
1246 SharedCtor();
1247 RegisterArenaDtor(arena);
1248 // @@protoc_insertion_point(arena_constructor:tensorflow.FeatureConfiguration)
1249}
1250FeatureConfiguration::FeatureConfiguration(const FeatureConfiguration& from)
1251 : ::PROTOBUF_NAMESPACE_ID::Message(),
1252 _internal_metadata_(nullptr) {
1253 _internal_metadata_.MergeFrom(from._internal_metadata_);
1254 clear_has_config();
1255 switch (from.config_case()) {
1256 case kFixedLenFeature: {
1257 mutable_fixed_len_feature()->::tensorflow::FixedLenFeatureProto::MergeFrom(from.fixed_len_feature());
1258 break;
1259 }
1260 case kVarLenFeature: {
1261 mutable_var_len_feature()->::tensorflow::VarLenFeatureProto::MergeFrom(from.var_len_feature());
1262 break;
1263 }
1264 case CONFIG_NOT_SET: {
1265 break;
1266 }
1267 }
1268 // @@protoc_insertion_point(copy_constructor:tensorflow.FeatureConfiguration)
1269}
1270
1271void FeatureConfiguration::SharedCtor() {
1272 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FeatureConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base);
1273 clear_has_config();
1274}
1275
1276FeatureConfiguration::~FeatureConfiguration() {
1277 // @@protoc_insertion_point(destructor:tensorflow.FeatureConfiguration)
1278 SharedDtor();
1279}
1280
1281void FeatureConfiguration::SharedDtor() {
1282 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1283 if (has_config()) {
1284 clear_config();
1285 }
1286}
1287
1288void FeatureConfiguration::ArenaDtor(void* object) {
1289 FeatureConfiguration* _this = reinterpret_cast< FeatureConfiguration* >(object);
1290 (void)_this;
1291}
1292void FeatureConfiguration::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1293}
1294void FeatureConfiguration::SetCachedSize(int size) const {
1295 _cached_size_.Set(size);
1296}
1297const FeatureConfiguration& FeatureConfiguration::default_instance() {
1298 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FeatureConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base);
1299 return *internal_default_instance();
1300}
1301
1302
1303void FeatureConfiguration::clear_config() {
1304// @@protoc_insertion_point(one_of_clear_start:tensorflow.FeatureConfiguration)
1305 switch (config_case()) {
1306 case kFixedLenFeature: {
1307 if (GetArenaNoVirtual() == nullptr) {
1308 delete config_.fixed_len_feature_;
1309 }
1310 break;
1311 }
1312 case kVarLenFeature: {
1313 if (GetArenaNoVirtual() == nullptr) {
1314 delete config_.var_len_feature_;
1315 }
1316 break;
1317 }
1318 case CONFIG_NOT_SET: {
1319 break;
1320 }
1321 }
1322 _oneof_case_[0] = CONFIG_NOT_SET;
1323}
1324
1325
1326void FeatureConfiguration::Clear() {
1327// @@protoc_insertion_point(message_clear_start:tensorflow.FeatureConfiguration)
1328 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1329 // Prevent compiler warnings about cached_has_bits being unused
1330 (void) cached_has_bits;
1331
1332 clear_config();
1333 _internal_metadata_.Clear();
1334}
1335
1336#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1337const char* FeatureConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1338#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1339 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1340 while (!ctx->Done(&ptr)) {
1341 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1342 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1343 CHK_(ptr);
1344 switch (tag >> 3) {
1345 // .tensorflow.FixedLenFeatureProto fixed_len_feature = 1;
1346 case 1:
1347 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1348 ptr = ctx->ParseMessage(mutable_fixed_len_feature(), ptr);
1349 CHK_(ptr);
1350 } else goto handle_unusual;
1351 continue;
1352 // .tensorflow.VarLenFeatureProto var_len_feature = 2;
1353 case 2:
1354 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1355 ptr = ctx->ParseMessage(mutable_var_len_feature(), ptr);
1356 CHK_(ptr);
1357 } else goto handle_unusual;
1358 continue;
1359 default: {
1360 handle_unusual:
1361 if ((tag & 7) == 4 || tag == 0) {
1362 ctx->SetLastTag(tag);
1363 goto success;
1364 }
1365 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1366 CHK_(ptr != nullptr);
1367 continue;
1368 }
1369 } // switch
1370 } // while
1371success:
1372 return ptr;
1373failure:
1374 ptr = nullptr;
1375 goto success;
1376#undef CHK_
1377}
1378#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1379bool FeatureConfiguration::MergePartialFromCodedStream(
1380 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1381#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1382 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1383 // @@protoc_insertion_point(parse_start:tensorflow.FeatureConfiguration)
1384 for (;;) {
1385 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1386 tag = p.first;
1387 if (!p.second) goto handle_unusual;
1388 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1389 // .tensorflow.FixedLenFeatureProto fixed_len_feature = 1;
1390 case 1: {
1391 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1392 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1393 input, mutable_fixed_len_feature()));
1394 } else {
1395 goto handle_unusual;
1396 }
1397 break;
1398 }
1399
1400 // .tensorflow.VarLenFeatureProto var_len_feature = 2;
1401 case 2: {
1402 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1403 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1404 input, mutable_var_len_feature()));
1405 } else {
1406 goto handle_unusual;
1407 }
1408 break;
1409 }
1410
1411 default: {
1412 handle_unusual:
1413 if (tag == 0) {
1414 goto success;
1415 }
1416 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1417 input, tag, _internal_metadata_.mutable_unknown_fields()));
1418 break;
1419 }
1420 }
1421 }
1422success:
1423 // @@protoc_insertion_point(parse_success:tensorflow.FeatureConfiguration)
1424 return true;
1425failure:
1426 // @@protoc_insertion_point(parse_failure:tensorflow.FeatureConfiguration)
1427 return false;
1428#undef DO_
1429}
1430#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1431
1432void FeatureConfiguration::SerializeWithCachedSizes(
1433 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1434 // @@protoc_insertion_point(serialize_start:tensorflow.FeatureConfiguration)
1435 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1436 (void) cached_has_bits;
1437
1438 // .tensorflow.FixedLenFeatureProto fixed_len_feature = 1;
1439 if (has_fixed_len_feature()) {
1440 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1441 1, _Internal::fixed_len_feature(this), output);
1442 }
1443
1444 // .tensorflow.VarLenFeatureProto var_len_feature = 2;
1445 if (has_var_len_feature()) {
1446 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1447 2, _Internal::var_len_feature(this), output);
1448 }
1449
1450 if (_internal_metadata_.have_unknown_fields()) {
1451 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1452 _internal_metadata_.unknown_fields(), output);
1453 }
1454 // @@protoc_insertion_point(serialize_end:tensorflow.FeatureConfiguration)
1455}
1456
1457::PROTOBUF_NAMESPACE_ID::uint8* FeatureConfiguration::InternalSerializeWithCachedSizesToArray(
1458 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1459 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.FeatureConfiguration)
1460 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1461 (void) cached_has_bits;
1462
1463 // .tensorflow.FixedLenFeatureProto fixed_len_feature = 1;
1464 if (has_fixed_len_feature()) {
1465 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1466 InternalWriteMessageToArray(
1467 1, _Internal::fixed_len_feature(this), target);
1468 }
1469
1470 // .tensorflow.VarLenFeatureProto var_len_feature = 2;
1471 if (has_var_len_feature()) {
1472 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1473 InternalWriteMessageToArray(
1474 2, _Internal::var_len_feature(this), target);
1475 }
1476
1477 if (_internal_metadata_.have_unknown_fields()) {
1478 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1479 _internal_metadata_.unknown_fields(), target);
1480 }
1481 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.FeatureConfiguration)
1482 return target;
1483}
1484
1485size_t FeatureConfiguration::ByteSizeLong() const {
1486// @@protoc_insertion_point(message_byte_size_start:tensorflow.FeatureConfiguration)
1487 size_t total_size = 0;
1488
1489 if (_internal_metadata_.have_unknown_fields()) {
1490 total_size +=
1491 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1492 _internal_metadata_.unknown_fields());
1493 }
1494 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1495 // Prevent compiler warnings about cached_has_bits being unused
1496 (void) cached_has_bits;
1497
1498 switch (config_case()) {
1499 // .tensorflow.FixedLenFeatureProto fixed_len_feature = 1;
1500 case kFixedLenFeature: {
1501 total_size += 1 +
1502 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1503 *config_.fixed_len_feature_);
1504 break;
1505 }
1506 // .tensorflow.VarLenFeatureProto var_len_feature = 2;
1507 case kVarLenFeature: {
1508 total_size += 1 +
1509 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1510 *config_.var_len_feature_);
1511 break;
1512 }
1513 case CONFIG_NOT_SET: {
1514 break;
1515 }
1516 }
1517 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1518 SetCachedSize(cached_size);
1519 return total_size;
1520}
1521
1522void FeatureConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1523// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.FeatureConfiguration)
1524 GOOGLE_DCHECK_NE(&from, this);
1525 const FeatureConfiguration* source =
1526 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FeatureConfiguration>(
1527 &from);
1528 if (source == nullptr) {
1529 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.FeatureConfiguration)
1530 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1531 } else {
1532 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.FeatureConfiguration)
1533 MergeFrom(*source);
1534 }
1535}
1536
1537void FeatureConfiguration::MergeFrom(const FeatureConfiguration& from) {
1538// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.FeatureConfiguration)
1539 GOOGLE_DCHECK_NE(&from, this);
1540 _internal_metadata_.MergeFrom(from._internal_metadata_);
1541 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1542 (void) cached_has_bits;
1543
1544 switch (from.config_case()) {
1545 case kFixedLenFeature: {
1546 mutable_fixed_len_feature()->::tensorflow::FixedLenFeatureProto::MergeFrom(from.fixed_len_feature());
1547 break;
1548 }
1549 case kVarLenFeature: {
1550 mutable_var_len_feature()->::tensorflow::VarLenFeatureProto::MergeFrom(from.var_len_feature());
1551 break;
1552 }
1553 case CONFIG_NOT_SET: {
1554 break;
1555 }
1556 }
1557}
1558
1559void FeatureConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1560// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.FeatureConfiguration)
1561 if (&from == this) return;
1562 Clear();
1563 MergeFrom(from);
1564}
1565
1566void FeatureConfiguration::CopyFrom(const FeatureConfiguration& from) {
1567// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.FeatureConfiguration)
1568 if (&from == this) return;
1569 Clear();
1570 MergeFrom(from);
1571}
1572
1573bool FeatureConfiguration::IsInitialized() const {
1574 return true;
1575}
1576
1577void FeatureConfiguration::InternalSwap(FeatureConfiguration* other) {
1578 using std::swap;
1579 _internal_metadata_.Swap(&other->_internal_metadata_);
1580 swap(config_, other->config_);
1581 swap(_oneof_case_[0], other->_oneof_case_[0]);
1582}
1583
1584::PROTOBUF_NAMESPACE_ID::Metadata FeatureConfiguration::GetMetadata() const {
1585 return GetMetadataStatic();
1586}
1587
1588
1589// ===================================================================
1590
1591ExampleParserConfiguration_FeatureMapEntry_DoNotUse::ExampleParserConfiguration_FeatureMapEntry_DoNotUse() {}
1592ExampleParserConfiguration_FeatureMapEntry_DoNotUse::ExampleParserConfiguration_FeatureMapEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1593 : SuperType(arena) {}
1594void ExampleParserConfiguration_FeatureMapEntry_DoNotUse::MergeFrom(const ExampleParserConfiguration_FeatureMapEntry_DoNotUse& other) {
1595 MergeFromInternal(other);
1596}
1597::PROTOBUF_NAMESPACE_ID::Metadata ExampleParserConfiguration_FeatureMapEntry_DoNotUse::GetMetadata() const {
1598 return GetMetadataStatic();
1599}
1600void ExampleParserConfiguration_FeatureMapEntry_DoNotUse::MergeFrom(
1601 const ::PROTOBUF_NAMESPACE_ID::Message& other) {
1602 ::PROTOBUF_NAMESPACE_ID::Message::MergeFrom(other);
1603}
1604
1605
1606// ===================================================================
1607
1608void ExampleParserConfiguration::InitAsDefaultInstance() {
1609}
1610class ExampleParserConfiguration::_Internal {
1611 public:
1612};
1613
1614ExampleParserConfiguration::ExampleParserConfiguration()
1615 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1616 SharedCtor();
1617 // @@protoc_insertion_point(constructor:tensorflow.ExampleParserConfiguration)
1618}
1619ExampleParserConfiguration::ExampleParserConfiguration(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1620 : ::PROTOBUF_NAMESPACE_ID::Message(),
1621 _internal_metadata_(arena),
1622 feature_map_(arena) {
1623 SharedCtor();
1624 RegisterArenaDtor(arena);
1625 // @@protoc_insertion_point(arena_constructor:tensorflow.ExampleParserConfiguration)
1626}
1627ExampleParserConfiguration::ExampleParserConfiguration(const ExampleParserConfiguration& from)
1628 : ::PROTOBUF_NAMESPACE_ID::Message(),
1629 _internal_metadata_(nullptr) {
1630 _internal_metadata_.MergeFrom(from._internal_metadata_);
1631 feature_map_.MergeFrom(from.feature_map_);
1632 // @@protoc_insertion_point(copy_constructor:tensorflow.ExampleParserConfiguration)
1633}
1634
1635void ExampleParserConfiguration::SharedCtor() {
1636 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ExampleParserConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base);
1637}
1638
1639ExampleParserConfiguration::~ExampleParserConfiguration() {
1640 // @@protoc_insertion_point(destructor:tensorflow.ExampleParserConfiguration)
1641 SharedDtor();
1642}
1643
1644void ExampleParserConfiguration::SharedDtor() {
1645 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1646}
1647
1648void ExampleParserConfiguration::ArenaDtor(void* object) {
1649 ExampleParserConfiguration* _this = reinterpret_cast< ExampleParserConfiguration* >(object);
1650 (void)_this;
1651}
1652void ExampleParserConfiguration::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1653}
1654void ExampleParserConfiguration::SetCachedSize(int size) const {
1655 _cached_size_.Set(size);
1656}
1657const ExampleParserConfiguration& ExampleParserConfiguration::default_instance() {
1658 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ExampleParserConfiguration_tensorflow_2fcore_2fexample_2fexample_5fparser_5fconfiguration_2eproto.base);
1659 return *internal_default_instance();
1660}
1661
1662
1663void ExampleParserConfiguration::Clear() {
1664// @@protoc_insertion_point(message_clear_start:tensorflow.ExampleParserConfiguration)
1665 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1666 // Prevent compiler warnings about cached_has_bits being unused
1667 (void) cached_has_bits;
1668
1669 feature_map_.Clear();
1670 _internal_metadata_.Clear();
1671}
1672
1673#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1674const char* ExampleParserConfiguration::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1675#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1676 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1677 while (!ctx->Done(&ptr)) {
1678 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1679 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1680 CHK_(ptr);
1681 switch (tag >> 3) {
1682 // map<string, .tensorflow.FeatureConfiguration> feature_map = 1;
1683 case 1:
1684 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1685 ptr -= 1;
1686 do {
1687 ptr += 1;
1688 ptr = ctx->ParseMessage(&feature_map_, ptr);
1689 CHK_(ptr);
1690 if (!ctx->DataAvailable(ptr)) break;
1691 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
1692 } else goto handle_unusual;
1693 continue;
1694 default: {
1695 handle_unusual:
1696 if ((tag & 7) == 4 || tag == 0) {
1697 ctx->SetLastTag(tag);
1698 goto success;
1699 }
1700 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1701 CHK_(ptr != nullptr);
1702 continue;
1703 }
1704 } // switch
1705 } // while
1706success:
1707 return ptr;
1708failure:
1709 ptr = nullptr;
1710 goto success;
1711#undef CHK_
1712}
1713#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1714bool ExampleParserConfiguration::MergePartialFromCodedStream(
1715 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1716#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1717 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1718 // @@protoc_insertion_point(parse_start:tensorflow.ExampleParserConfiguration)
1719 for (;;) {
1720 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1721 tag = p.first;
1722 if (!p.second) goto handle_unusual;
1723 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1724 // map<string, .tensorflow.FeatureConfiguration> feature_map = 1;
1725 case 1: {
1726 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1727 ExampleParserConfiguration_FeatureMapEntry_DoNotUse::Parser< ::PROTOBUF_NAMESPACE_ID::internal::MapField<
1728 ExampleParserConfiguration_FeatureMapEntry_DoNotUse,
1729 std::string, ::tensorflow::FeatureConfiguration,
1730 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
1731 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
1732 0 >,
1733 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration > > parser(&feature_map_);
1734 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessageNoVirtual(
1735 input, &parser));
1736 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1737 parser.key().data(), static_cast<int>(parser.key().length()),
1738 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1739 "tensorflow.ExampleParserConfiguration.FeatureMapEntry.key"));
1740 } else {
1741 goto handle_unusual;
1742 }
1743 break;
1744 }
1745
1746 default: {
1747 handle_unusual:
1748 if (tag == 0) {
1749 goto success;
1750 }
1751 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1752 input, tag, _internal_metadata_.mutable_unknown_fields()));
1753 break;
1754 }
1755 }
1756 }
1757success:
1758 // @@protoc_insertion_point(parse_success:tensorflow.ExampleParserConfiguration)
1759 return true;
1760failure:
1761 // @@protoc_insertion_point(parse_failure:tensorflow.ExampleParserConfiguration)
1762 return false;
1763#undef DO_
1764}
1765#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1766
1767void ExampleParserConfiguration::SerializeWithCachedSizes(
1768 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1769 // @@protoc_insertion_point(serialize_start:tensorflow.ExampleParserConfiguration)
1770 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1771 (void) cached_has_bits;
1772
1773 // map<string, .tensorflow.FeatureConfiguration> feature_map = 1;
1774 if (!this->feature_map().empty()) {
1775 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::const_pointer
1776 ConstPtr;
1777 typedef ConstPtr SortItem;
1778 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1779 struct Utf8Check {
1780 static void Check(ConstPtr p) {
1781 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1782 p->first.data(), static_cast<int>(p->first.length()),
1783 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1784 "tensorflow.ExampleParserConfiguration.FeatureMapEntry.key");
1785 }
1786 };
1787
1788 if (output->IsSerializationDeterministic() &&
1789 this->feature_map().size() > 1) {
1790 ::std::unique_ptr<SortItem[]> items(
1791 new SortItem[this->feature_map().size()]);
1792 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::size_type size_type;
1793 size_type n = 0;
1794 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::const_iterator
1795 it = this->feature_map().begin();
1796 it != this->feature_map().end(); ++it, ++n) {
1797 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1798 }
1799 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1800 for (size_type i = 0; i < n; i++) {
1801 ExampleParserConfiguration_FeatureMapEntry_DoNotUse::Funcs::SerializeToCodedStream(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, output);
1802 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
1803 }
1804 } else {
1805 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::const_iterator
1806 it = this->feature_map().begin();
1807 it != this->feature_map().end(); ++it) {
1808 ExampleParserConfiguration_FeatureMapEntry_DoNotUse::Funcs::SerializeToCodedStream(1, it->first, it->second, output);
1809 Utf8Check::Check(&(*it));
1810 }
1811 }
1812 }
1813
1814 if (_internal_metadata_.have_unknown_fields()) {
1815 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1816 _internal_metadata_.unknown_fields(), output);
1817 }
1818 // @@protoc_insertion_point(serialize_end:tensorflow.ExampleParserConfiguration)
1819}
1820
1821::PROTOBUF_NAMESPACE_ID::uint8* ExampleParserConfiguration::InternalSerializeWithCachedSizesToArray(
1822 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1823 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ExampleParserConfiguration)
1824 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1825 (void) cached_has_bits;
1826
1827 // map<string, .tensorflow.FeatureConfiguration> feature_map = 1;
1828 if (!this->feature_map().empty()) {
1829 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::const_pointer
1830 ConstPtr;
1831 typedef ConstPtr SortItem;
1832 typedef ::PROTOBUF_NAMESPACE_ID::internal::CompareByDerefFirst<SortItem> Less;
1833 struct Utf8Check {
1834 static void Check(ConstPtr p) {
1835 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1836 p->first.data(), static_cast<int>(p->first.length()),
1837 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1838 "tensorflow.ExampleParserConfiguration.FeatureMapEntry.key");
1839 }
1840 };
1841
1842 if (false &&
1843 this->feature_map().size() > 1) {
1844 ::std::unique_ptr<SortItem[]> items(
1845 new SortItem[this->feature_map().size()]);
1846 typedef ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::size_type size_type;
1847 size_type n = 0;
1848 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::const_iterator
1849 it = this->feature_map().begin();
1850 it != this->feature_map().end(); ++it, ++n) {
1851 items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
1852 }
1853 ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
1854 for (size_type i = 0; i < n; i++) {
1855 target = ExampleParserConfiguration_FeatureMapEntry_DoNotUse::Funcs::SerializeToArray(1, items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second, target);
1856 Utf8Check::Check(&(*items[static_cast<ptrdiff_t>(i)]));
1857 }
1858 } else {
1859 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::const_iterator
1860 it = this->feature_map().begin();
1861 it != this->feature_map().end(); ++it) {
1862 target = ExampleParserConfiguration_FeatureMapEntry_DoNotUse::Funcs::SerializeToArray(1, it->first, it->second, target);
1863 Utf8Check::Check(&(*it));
1864 }
1865 }
1866 }
1867
1868 if (_internal_metadata_.have_unknown_fields()) {
1869 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1870 _internal_metadata_.unknown_fields(), target);
1871 }
1872 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ExampleParserConfiguration)
1873 return target;
1874}
1875
1876size_t ExampleParserConfiguration::ByteSizeLong() const {
1877// @@protoc_insertion_point(message_byte_size_start:tensorflow.ExampleParserConfiguration)
1878 size_t total_size = 0;
1879
1880 if (_internal_metadata_.have_unknown_fields()) {
1881 total_size +=
1882 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1883 _internal_metadata_.unknown_fields());
1884 }
1885 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1886 // Prevent compiler warnings about cached_has_bits being unused
1887 (void) cached_has_bits;
1888
1889 // map<string, .tensorflow.FeatureConfiguration> feature_map = 1;
1890 total_size += 1 *
1891 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->feature_map_size());
1892 for (::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::FeatureConfiguration >::const_iterator
1893 it = this->feature_map().begin();
1894 it != this->feature_map().end(); ++it) {
1895 total_size += ExampleParserConfiguration_FeatureMapEntry_DoNotUse::Funcs::ByteSizeLong(it->first, it->second);
1896 }
1897
1898 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1899 SetCachedSize(cached_size);
1900 return total_size;
1901}
1902
1903void ExampleParserConfiguration::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1904// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ExampleParserConfiguration)
1905 GOOGLE_DCHECK_NE(&from, this);
1906 const ExampleParserConfiguration* source =
1907 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ExampleParserConfiguration>(
1908 &from);
1909 if (source == nullptr) {
1910 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ExampleParserConfiguration)
1911 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1912 } else {
1913 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ExampleParserConfiguration)
1914 MergeFrom(*source);
1915 }
1916}
1917
1918void ExampleParserConfiguration::MergeFrom(const ExampleParserConfiguration& from) {
1919// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ExampleParserConfiguration)
1920 GOOGLE_DCHECK_NE(&from, this);
1921 _internal_metadata_.MergeFrom(from._internal_metadata_);
1922 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1923 (void) cached_has_bits;
1924
1925 feature_map_.MergeFrom(from.feature_map_);
1926}
1927
1928void ExampleParserConfiguration::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1929// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ExampleParserConfiguration)
1930 if (&from == this) return;
1931 Clear();
1932 MergeFrom(from);
1933}
1934
1935void ExampleParserConfiguration::CopyFrom(const ExampleParserConfiguration& from) {
1936// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ExampleParserConfiguration)
1937 if (&from == this) return;
1938 Clear();
1939 MergeFrom(from);
1940}
1941
1942bool ExampleParserConfiguration::IsInitialized() const {
1943 return true;
1944}
1945
1946void ExampleParserConfiguration::InternalSwap(ExampleParserConfiguration* other) {
1947 using std::swap;
1948 _internal_metadata_.Swap(&other->_internal_metadata_);
1949 feature_map_.Swap(&other->feature_map_);
1950}
1951
1952::PROTOBUF_NAMESPACE_ID::Metadata ExampleParserConfiguration::GetMetadata() const {
1953 return GetMetadataStatic();
1954}
1955
1956
1957// @@protoc_insertion_point(namespace_scope)
1958} // namespace tensorflow
1959PROTOBUF_NAMESPACE_OPEN
1960template<> PROTOBUF_NOINLINE ::tensorflow::VarLenFeatureProto* Arena::CreateMaybeMessage< ::tensorflow::VarLenFeatureProto >(Arena* arena) {
1961 return Arena::CreateMessageInternal< ::tensorflow::VarLenFeatureProto >(arena);
1962}
1963template<> PROTOBUF_NOINLINE ::tensorflow::FixedLenFeatureProto* Arena::CreateMaybeMessage< ::tensorflow::FixedLenFeatureProto >(Arena* arena) {
1964 return Arena::CreateMessageInternal< ::tensorflow::FixedLenFeatureProto >(arena);
1965}
1966template<> PROTOBUF_NOINLINE ::tensorflow::FeatureConfiguration* Arena::CreateMaybeMessage< ::tensorflow::FeatureConfiguration >(Arena* arena) {
1967 return Arena::CreateMessageInternal< ::tensorflow::FeatureConfiguration >(arena);
1968}
1969template<> PROTOBUF_NOINLINE ::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse* Arena::CreateMaybeMessage< ::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse >(Arena* arena) {
1970 return Arena::CreateMessageInternal< ::tensorflow::ExampleParserConfiguration_FeatureMapEntry_DoNotUse >(arena);
1971}
1972template<> PROTOBUF_NOINLINE ::tensorflow::ExampleParserConfiguration* Arena::CreateMaybeMessage< ::tensorflow::ExampleParserConfiguration >(Arena* arena) {
1973 return Arena::CreateMessageInternal< ::tensorflow::ExampleParserConfiguration >(arena);
1974}
1975PROTOBUF_NAMESPACE_CLOSE
1976
1977// @@protoc_insertion_point(global_scope)
1978#include <google/protobuf/port_undef.inc>
1979