1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/snapshot.proto |
3 | |
4 | #include "tensorflow/core/protobuf/snapshot.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> |
18 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto; |
19 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto; |
20 | extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto; |
21 | namespace tensorflow { |
22 | namespace data { |
23 | namespace experimental { |
24 | class SnapshotRecordDefaultTypeInternal { |
25 | public: |
26 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SnapshotRecord> _instance; |
27 | } _SnapshotRecord_default_instance_; |
28 | class SnapshotMetadataRecordDefaultTypeInternal { |
29 | public: |
30 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SnapshotMetadataRecord> _instance; |
31 | } _SnapshotMetadataRecord_default_instance_; |
32 | class TensorMetadataDefaultTypeInternal { |
33 | public: |
34 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<TensorMetadata> _instance; |
35 | } _TensorMetadata_default_instance_; |
36 | class SnapshotTensorMetadataDefaultTypeInternal { |
37 | public: |
38 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SnapshotTensorMetadata> _instance; |
39 | } _SnapshotTensorMetadata_default_instance_; |
40 | } // namespace experimental |
41 | } // namespace data |
42 | } // namespace tensorflow |
43 | static void InitDefaultsscc_info_SnapshotMetadataRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto() { |
44 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
45 | |
46 | { |
47 | void* ptr = &::tensorflow::data::experimental::_SnapshotMetadataRecord_default_instance_; |
48 | new (ptr) ::tensorflow::data::experimental::SnapshotMetadataRecord(); |
49 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
50 | } |
51 | ::tensorflow::data::experimental::SnapshotMetadataRecord::InitAsDefaultInstance(); |
52 | } |
53 | |
54 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SnapshotMetadataRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto = |
55 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_SnapshotMetadataRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto}, {}}; |
56 | |
57 | static void InitDefaultsscc_info_SnapshotRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto() { |
58 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
59 | |
60 | { |
61 | void* ptr = &::tensorflow::data::experimental::_SnapshotRecord_default_instance_; |
62 | new (ptr) ::tensorflow::data::experimental::SnapshotRecord(); |
63 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
64 | } |
65 | ::tensorflow::data::experimental::SnapshotRecord::InitAsDefaultInstance(); |
66 | } |
67 | |
68 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SnapshotRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto = |
69 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SnapshotRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto}, { |
70 | &scc_info_TensorProto_tensorflow_2fcore_2fframework_2ftensor_2eproto.base,}}; |
71 | |
72 | static void InitDefaultsscc_info_SnapshotTensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto() { |
73 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
74 | |
75 | { |
76 | void* ptr = &::tensorflow::data::experimental::_SnapshotTensorMetadata_default_instance_; |
77 | new (ptr) ::tensorflow::data::experimental::SnapshotTensorMetadata(); |
78 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
79 | } |
80 | ::tensorflow::data::experimental::SnapshotTensorMetadata::InitAsDefaultInstance(); |
81 | } |
82 | |
83 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_SnapshotTensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto = |
84 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_SnapshotTensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto}, { |
85 | &scc_info_TensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base,}}; |
86 | |
87 | static void InitDefaultsscc_info_TensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto() { |
88 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
89 | |
90 | { |
91 | void* ptr = &::tensorflow::data::experimental::_TensorMetadata_default_instance_; |
92 | new (ptr) ::tensorflow::data::experimental::TensorMetadata(); |
93 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
94 | } |
95 | ::tensorflow::data::experimental::TensorMetadata::InitAsDefaultInstance(); |
96 | } |
97 | |
98 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_TensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto = |
99 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_TensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto}, { |
100 | &scc_info_TensorShapeProto_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.base,}}; |
101 | |
102 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto[4]; |
103 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto = nullptr; |
104 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto = nullptr; |
105 | |
106 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
107 | ~0u, // no _has_bits_ |
108 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotRecord, _internal_metadata_), |
109 | ~0u, // no _extensions_ |
110 | ~0u, // no _oneof_case_ |
111 | ~0u, // no _weak_field_map_ |
112 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotRecord, tensor_), |
113 | ~0u, // no _has_bits_ |
114 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotMetadataRecord, _internal_metadata_), |
115 | ~0u, // no _extensions_ |
116 | ~0u, // no _oneof_case_ |
117 | ~0u, // no _weak_field_map_ |
118 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotMetadataRecord, graph_hash_), |
119 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotMetadataRecord, run_id_), |
120 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotMetadataRecord, creation_timestamp_), |
121 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotMetadataRecord, version_), |
122 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotMetadataRecord, dtype_), |
123 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotMetadataRecord, num_elements_), |
124 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotMetadataRecord, finalized_), |
125 | ~0u, // no _has_bits_ |
126 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::TensorMetadata, _internal_metadata_), |
127 | ~0u, // no _extensions_ |
128 | ~0u, // no _oneof_case_ |
129 | ~0u, // no _weak_field_map_ |
130 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::TensorMetadata, tensor_shape_), |
131 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::TensorMetadata, tensor_size_bytes_), |
132 | ~0u, // no _has_bits_ |
133 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotTensorMetadata, _internal_metadata_), |
134 | ~0u, // no _extensions_ |
135 | ~0u, // no _oneof_case_ |
136 | ~0u, // no _weak_field_map_ |
137 | PROTOBUF_FIELD_OFFSET(::tensorflow::data::experimental::SnapshotTensorMetadata, tensor_metadata_), |
138 | }; |
139 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
140 | { 0, -1, sizeof(::tensorflow::data::experimental::SnapshotRecord)}, |
141 | { 6, -1, sizeof(::tensorflow::data::experimental::SnapshotMetadataRecord)}, |
142 | { 18, -1, sizeof(::tensorflow::data::experimental::TensorMetadata)}, |
143 | { 25, -1, sizeof(::tensorflow::data::experimental::SnapshotTensorMetadata)}, |
144 | }; |
145 | |
146 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
147 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::data::experimental::_SnapshotRecord_default_instance_), |
148 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::data::experimental::_SnapshotMetadataRecord_default_instance_), |
149 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::data::experimental::_TensorMetadata_default_instance_), |
150 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::data::experimental::_SnapshotTensorMetadata_default_instance_), |
151 | }; |
152 | |
153 | const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
154 | "\n\'tensorflow/core/protobuf/snapshot.prot" |
155 | "o\022\034tensorflow.data.experimental\032&tensorf" |
156 | "low/core/framework/tensor.proto\032,tensorf" |
157 | "low/core/framework/tensor_shape.proto\032%t" |
158 | "ensorflow/core/framework/types.proto\"9\n\016" |
159 | "SnapshotRecord\022\'\n\006tensor\030\001 \003(\0132\027.tensorf" |
160 | "low.TensorProto\"\270\001\n\026SnapshotMetadataReco" |
161 | "rd\022\022\n\ngraph_hash\030\001 \001(\t\022\016\n\006run_id\030\002 \001(\t\022\032" |
162 | "\n\022creation_timestamp\030\003 \001(\003\022\017\n\007version\030\004 " |
163 | "\001(\003\022#\n\005dtype\030\005 \003(\0162\024.tensorflow.DataType" |
164 | "\022\024\n\014num_elements\030\006 \001(\003\022\022\n\tfinalized\030\350\007 \001" |
165 | "(\010\"_\n\016TensorMetadata\0222\n\014tensor_shape\030\002 \001" |
166 | "(\0132\034.tensorflow.TensorShapeProto\022\031\n\021tens" |
167 | "or_size_bytes\030\003 \001(\003\"_\n\026SnapshotTensorMet" |
168 | "adata\022E\n\017tensor_metadata\030\001 \003(\0132,.tensorf" |
169 | "low.data.experimental.TensorMetadataBWZU" |
170 | "github.com/tensorflow/tensorflow/tensorf" |
171 | "low/go/core/protobuf/for_core_protos_go_" |
172 | "protob\006proto3" |
173 | ; |
174 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto_deps[3] = { |
175 | &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_2eproto, |
176 | &::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto, |
177 | &::descriptor_table_tensorflow_2fcore_2fframework_2ftypes_2eproto, |
178 | }; |
179 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto_sccs[4] = { |
180 | &scc_info_SnapshotMetadataRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base, |
181 | &scc_info_SnapshotRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base, |
182 | &scc_info_SnapshotTensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base, |
183 | &scc_info_TensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base, |
184 | }; |
185 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto_once; |
186 | static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto_initialized = false; |
187 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto = { |
188 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto, "tensorflow/core/protobuf/snapshot.proto" , 733, |
189 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto_deps, 4, 3, |
190 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto::offsets, |
191 | file_level_metadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto, 4, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto, |
192 | }; |
193 | |
194 | // Force running AddDescriptors() at dynamic initialization time. |
195 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto), true); |
196 | namespace tensorflow { |
197 | namespace data { |
198 | namespace experimental { |
199 | |
200 | // =================================================================== |
201 | |
202 | void SnapshotRecord::InitAsDefaultInstance() { |
203 | } |
204 | class SnapshotRecord::_Internal { |
205 | public: |
206 | }; |
207 | |
208 | void SnapshotRecord::clear_tensor() { |
209 | tensor_.Clear(); |
210 | } |
211 | SnapshotRecord::SnapshotRecord() |
212 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
213 | SharedCtor(); |
214 | // @@protoc_insertion_point(constructor:tensorflow.data.experimental.SnapshotRecord) |
215 | } |
216 | SnapshotRecord::SnapshotRecord(const SnapshotRecord& from) |
217 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
218 | _internal_metadata_(nullptr), |
219 | tensor_(from.tensor_) { |
220 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
221 | // @@protoc_insertion_point(copy_constructor:tensorflow.data.experimental.SnapshotRecord) |
222 | } |
223 | |
224 | void SnapshotRecord::SharedCtor() { |
225 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SnapshotRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base); |
226 | } |
227 | |
228 | SnapshotRecord::~SnapshotRecord() { |
229 | // @@protoc_insertion_point(destructor:tensorflow.data.experimental.SnapshotRecord) |
230 | SharedDtor(); |
231 | } |
232 | |
233 | void SnapshotRecord::SharedDtor() { |
234 | } |
235 | |
236 | void SnapshotRecord::SetCachedSize(int size) const { |
237 | _cached_size_.Set(size); |
238 | } |
239 | const SnapshotRecord& SnapshotRecord::default_instance() { |
240 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SnapshotRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base); |
241 | return *internal_default_instance(); |
242 | } |
243 | |
244 | |
245 | void SnapshotRecord::Clear() { |
246 | // @@protoc_insertion_point(message_clear_start:tensorflow.data.experimental.SnapshotRecord) |
247 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
248 | // Prevent compiler warnings about cached_has_bits being unused |
249 | (void) cached_has_bits; |
250 | |
251 | tensor_.Clear(); |
252 | _internal_metadata_.Clear(); |
253 | } |
254 | |
255 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
256 | const char* SnapshotRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
257 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
258 | while (!ctx->Done(&ptr)) { |
259 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
260 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
261 | CHK_(ptr); |
262 | switch (tag >> 3) { |
263 | // repeated .tensorflow.TensorProto tensor = 1; |
264 | case 1: |
265 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
266 | ptr -= 1; |
267 | do { |
268 | ptr += 1; |
269 | ptr = ctx->ParseMessage(add_tensor(), ptr); |
270 | CHK_(ptr); |
271 | if (!ctx->DataAvailable(ptr)) break; |
272 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
273 | } else goto handle_unusual; |
274 | continue; |
275 | default: { |
276 | handle_unusual: |
277 | if ((tag & 7) == 4 || tag == 0) { |
278 | ctx->SetLastTag(tag); |
279 | goto success; |
280 | } |
281 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
282 | CHK_(ptr != nullptr); |
283 | continue; |
284 | } |
285 | } // switch |
286 | } // while |
287 | success: |
288 | return ptr; |
289 | failure: |
290 | ptr = nullptr; |
291 | goto success; |
292 | #undef CHK_ |
293 | } |
294 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
295 | bool SnapshotRecord::MergePartialFromCodedStream( |
296 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
297 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
298 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
299 | // @@protoc_insertion_point(parse_start:tensorflow.data.experimental.SnapshotRecord) |
300 | for (;;) { |
301 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
302 | tag = p.first; |
303 | if (!p.second) goto handle_unusual; |
304 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
305 | // repeated .tensorflow.TensorProto tensor = 1; |
306 | case 1: { |
307 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
308 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
309 | input, add_tensor())); |
310 | } else { |
311 | goto handle_unusual; |
312 | } |
313 | break; |
314 | } |
315 | |
316 | default: { |
317 | handle_unusual: |
318 | if (tag == 0) { |
319 | goto success; |
320 | } |
321 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
322 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
323 | break; |
324 | } |
325 | } |
326 | } |
327 | success: |
328 | // @@protoc_insertion_point(parse_success:tensorflow.data.experimental.SnapshotRecord) |
329 | return true; |
330 | failure: |
331 | // @@protoc_insertion_point(parse_failure:tensorflow.data.experimental.SnapshotRecord) |
332 | return false; |
333 | #undef DO_ |
334 | } |
335 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
336 | |
337 | void SnapshotRecord::SerializeWithCachedSizes( |
338 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
339 | // @@protoc_insertion_point(serialize_start:tensorflow.data.experimental.SnapshotRecord) |
340 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
341 | (void) cached_has_bits; |
342 | |
343 | // repeated .tensorflow.TensorProto tensor = 1; |
344 | for (unsigned int i = 0, |
345 | n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) { |
346 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
347 | 1, |
348 | this->tensor(static_cast<int>(i)), |
349 | output); |
350 | } |
351 | |
352 | if (_internal_metadata_.have_unknown_fields()) { |
353 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
354 | _internal_metadata_.unknown_fields(), output); |
355 | } |
356 | // @@protoc_insertion_point(serialize_end:tensorflow.data.experimental.SnapshotRecord) |
357 | } |
358 | |
359 | ::PROTOBUF_NAMESPACE_ID::uint8* SnapshotRecord::InternalSerializeWithCachedSizesToArray( |
360 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
361 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.data.experimental.SnapshotRecord) |
362 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
363 | (void) cached_has_bits; |
364 | |
365 | // repeated .tensorflow.TensorProto tensor = 1; |
366 | for (unsigned int i = 0, |
367 | n = static_cast<unsigned int>(this->tensor_size()); i < n; i++) { |
368 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
369 | InternalWriteMessageToArray( |
370 | 1, this->tensor(static_cast<int>(i)), target); |
371 | } |
372 | |
373 | if (_internal_metadata_.have_unknown_fields()) { |
374 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
375 | _internal_metadata_.unknown_fields(), target); |
376 | } |
377 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.data.experimental.SnapshotRecord) |
378 | return target; |
379 | } |
380 | |
381 | size_t SnapshotRecord::ByteSizeLong() const { |
382 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.data.experimental.SnapshotRecord) |
383 | size_t total_size = 0; |
384 | |
385 | if (_internal_metadata_.have_unknown_fields()) { |
386 | total_size += |
387 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
388 | _internal_metadata_.unknown_fields()); |
389 | } |
390 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
391 | // Prevent compiler warnings about cached_has_bits being unused |
392 | (void) cached_has_bits; |
393 | |
394 | // repeated .tensorflow.TensorProto tensor = 1; |
395 | { |
396 | unsigned int count = static_cast<unsigned int>(this->tensor_size()); |
397 | total_size += 1UL * count; |
398 | for (unsigned int i = 0; i < count; i++) { |
399 | total_size += |
400 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
401 | this->tensor(static_cast<int>(i))); |
402 | } |
403 | } |
404 | |
405 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
406 | SetCachedSize(cached_size); |
407 | return total_size; |
408 | } |
409 | |
410 | void SnapshotRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
411 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.data.experimental.SnapshotRecord) |
412 | GOOGLE_DCHECK_NE(&from, this); |
413 | const SnapshotRecord* source = |
414 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SnapshotRecord>( |
415 | &from); |
416 | if (source == nullptr) { |
417 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.data.experimental.SnapshotRecord) |
418 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
419 | } else { |
420 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.data.experimental.SnapshotRecord) |
421 | MergeFrom(*source); |
422 | } |
423 | } |
424 | |
425 | void SnapshotRecord::MergeFrom(const SnapshotRecord& from) { |
426 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.data.experimental.SnapshotRecord) |
427 | GOOGLE_DCHECK_NE(&from, this); |
428 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
429 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
430 | (void) cached_has_bits; |
431 | |
432 | tensor_.MergeFrom(from.tensor_); |
433 | } |
434 | |
435 | void SnapshotRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
436 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.data.experimental.SnapshotRecord) |
437 | if (&from == this) return; |
438 | Clear(); |
439 | MergeFrom(from); |
440 | } |
441 | |
442 | void SnapshotRecord::CopyFrom(const SnapshotRecord& from) { |
443 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.data.experimental.SnapshotRecord) |
444 | if (&from == this) return; |
445 | Clear(); |
446 | MergeFrom(from); |
447 | } |
448 | |
449 | bool SnapshotRecord::IsInitialized() const { |
450 | return true; |
451 | } |
452 | |
453 | void SnapshotRecord::InternalSwap(SnapshotRecord* other) { |
454 | using std::swap; |
455 | _internal_metadata_.Swap(&other->_internal_metadata_); |
456 | CastToBase(&tensor_)->InternalSwap(CastToBase(&other->tensor_)); |
457 | } |
458 | |
459 | ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotRecord::GetMetadata() const { |
460 | return GetMetadataStatic(); |
461 | } |
462 | |
463 | |
464 | // =================================================================== |
465 | |
466 | void SnapshotMetadataRecord::InitAsDefaultInstance() { |
467 | } |
468 | class SnapshotMetadataRecord::_Internal { |
469 | public: |
470 | }; |
471 | |
472 | SnapshotMetadataRecord::SnapshotMetadataRecord() |
473 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
474 | SharedCtor(); |
475 | // @@protoc_insertion_point(constructor:tensorflow.data.experimental.SnapshotMetadataRecord) |
476 | } |
477 | SnapshotMetadataRecord::SnapshotMetadataRecord(const SnapshotMetadataRecord& from) |
478 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
479 | _internal_metadata_(nullptr), |
480 | dtype_(from.dtype_) { |
481 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
482 | graph_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
483 | if (!from.graph_hash().empty()) { |
484 | graph_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_hash_); |
485 | } |
486 | run_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
487 | if (!from.run_id().empty()) { |
488 | run_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.run_id_); |
489 | } |
490 | ::memcpy(&creation_timestamp_, &from.creation_timestamp_, |
491 | static_cast<size_t>(reinterpret_cast<char*>(&finalized_) - |
492 | reinterpret_cast<char*>(&creation_timestamp_)) + sizeof(finalized_)); |
493 | // @@protoc_insertion_point(copy_constructor:tensorflow.data.experimental.SnapshotMetadataRecord) |
494 | } |
495 | |
496 | void SnapshotMetadataRecord::SharedCtor() { |
497 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SnapshotMetadataRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base); |
498 | graph_hash_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
499 | run_id_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
500 | ::memset(&creation_timestamp_, 0, static_cast<size_t>( |
501 | reinterpret_cast<char*>(&finalized_) - |
502 | reinterpret_cast<char*>(&creation_timestamp_)) + sizeof(finalized_)); |
503 | } |
504 | |
505 | SnapshotMetadataRecord::~SnapshotMetadataRecord() { |
506 | // @@protoc_insertion_point(destructor:tensorflow.data.experimental.SnapshotMetadataRecord) |
507 | SharedDtor(); |
508 | } |
509 | |
510 | void SnapshotMetadataRecord::SharedDtor() { |
511 | graph_hash_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
512 | run_id_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
513 | } |
514 | |
515 | void SnapshotMetadataRecord::SetCachedSize(int size) const { |
516 | _cached_size_.Set(size); |
517 | } |
518 | const SnapshotMetadataRecord& SnapshotMetadataRecord::default_instance() { |
519 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SnapshotMetadataRecord_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base); |
520 | return *internal_default_instance(); |
521 | } |
522 | |
523 | |
524 | void SnapshotMetadataRecord::Clear() { |
525 | // @@protoc_insertion_point(message_clear_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
526 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
527 | // Prevent compiler warnings about cached_has_bits being unused |
528 | (void) cached_has_bits; |
529 | |
530 | dtype_.Clear(); |
531 | graph_hash_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
532 | run_id_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
533 | ::memset(&creation_timestamp_, 0, static_cast<size_t>( |
534 | reinterpret_cast<char*>(&finalized_) - |
535 | reinterpret_cast<char*>(&creation_timestamp_)) + sizeof(finalized_)); |
536 | _internal_metadata_.Clear(); |
537 | } |
538 | |
539 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
540 | const char* SnapshotMetadataRecord::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
541 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
542 | while (!ctx->Done(&ptr)) { |
543 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
544 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
545 | CHK_(ptr); |
546 | switch (tag >> 3) { |
547 | // string graph_hash = 1; |
548 | case 1: |
549 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
550 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_hash(), ptr, ctx, "tensorflow.data.experimental.SnapshotMetadataRecord.graph_hash" ); |
551 | CHK_(ptr); |
552 | } else goto handle_unusual; |
553 | continue; |
554 | // string run_id = 2; |
555 | case 2: |
556 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
557 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_run_id(), ptr, ctx, "tensorflow.data.experimental.SnapshotMetadataRecord.run_id" ); |
558 | CHK_(ptr); |
559 | } else goto handle_unusual; |
560 | continue; |
561 | // int64 creation_timestamp = 3; |
562 | case 3: |
563 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
564 | creation_timestamp_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
565 | CHK_(ptr); |
566 | } else goto handle_unusual; |
567 | continue; |
568 | // int64 version = 4; |
569 | case 4: |
570 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) { |
571 | version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
572 | CHK_(ptr); |
573 | } else goto handle_unusual; |
574 | continue; |
575 | // repeated .tensorflow.DataType dtype = 5; |
576 | case 5: |
577 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) { |
578 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedEnumParser(mutable_dtype(), ptr, ctx); |
579 | CHK_(ptr); |
580 | } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40) { |
581 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
582 | CHK_(ptr); |
583 | add_dtype(static_cast<::tensorflow::DataType>(val)); |
584 | } else goto handle_unusual; |
585 | continue; |
586 | // int64 num_elements = 6; |
587 | case 6: |
588 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 48)) { |
589 | num_elements_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
590 | CHK_(ptr); |
591 | } else goto handle_unusual; |
592 | continue; |
593 | // bool finalized = 1000; |
594 | case 1000: |
595 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 64)) { |
596 | finalized_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
597 | CHK_(ptr); |
598 | } else goto handle_unusual; |
599 | continue; |
600 | default: { |
601 | handle_unusual: |
602 | if ((tag & 7) == 4 || tag == 0) { |
603 | ctx->SetLastTag(tag); |
604 | goto success; |
605 | } |
606 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
607 | CHK_(ptr != nullptr); |
608 | continue; |
609 | } |
610 | } // switch |
611 | } // while |
612 | success: |
613 | return ptr; |
614 | failure: |
615 | ptr = nullptr; |
616 | goto success; |
617 | #undef CHK_ |
618 | } |
619 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
620 | bool SnapshotMetadataRecord::MergePartialFromCodedStream( |
621 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
622 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
623 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
624 | // @@protoc_insertion_point(parse_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
625 | for (;;) { |
626 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(16383u); |
627 | tag = p.first; |
628 | if (!p.second) goto handle_unusual; |
629 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
630 | // string graph_hash = 1; |
631 | case 1: { |
632 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
633 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
634 | input, this->mutable_graph_hash())); |
635 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
636 | this->graph_hash().data(), static_cast<int>(this->graph_hash().length()), |
637 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
638 | "tensorflow.data.experimental.SnapshotMetadataRecord.graph_hash" )); |
639 | } else { |
640 | goto handle_unusual; |
641 | } |
642 | break; |
643 | } |
644 | |
645 | // string run_id = 2; |
646 | case 2: { |
647 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
648 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString( |
649 | input, this->mutable_run_id())); |
650 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
651 | this->run_id().data(), static_cast<int>(this->run_id().length()), |
652 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, |
653 | "tensorflow.data.experimental.SnapshotMetadataRecord.run_id" )); |
654 | } else { |
655 | goto handle_unusual; |
656 | } |
657 | break; |
658 | } |
659 | |
660 | // int64 creation_timestamp = 3; |
661 | case 3: { |
662 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
663 | |
664 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
665 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
666 | input, &creation_timestamp_))); |
667 | } else { |
668 | goto handle_unusual; |
669 | } |
670 | break; |
671 | } |
672 | |
673 | // int64 version = 4; |
674 | case 4: { |
675 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) { |
676 | |
677 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
678 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
679 | input, &version_))); |
680 | } else { |
681 | goto handle_unusual; |
682 | } |
683 | break; |
684 | } |
685 | |
686 | // repeated .tensorflow.DataType dtype = 5; |
687 | case 5: { |
688 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) { |
689 | ::PROTOBUF_NAMESPACE_ID::uint32 length; |
690 | DO_(input->ReadVarint32(&length)); |
691 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream::Limit limit = input->PushLimit(static_cast<int>(length)); |
692 | while (input->BytesUntilLimit() > 0) { |
693 | int value = 0; |
694 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
695 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
696 | input, &value))); |
697 | add_dtype(static_cast< ::tensorflow::DataType >(value)); |
698 | } |
699 | input->PopLimit(limit); |
700 | } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) { |
701 | int value = 0; |
702 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
703 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
704 | input, &value))); |
705 | add_dtype(static_cast< ::tensorflow::DataType >(value)); |
706 | } else { |
707 | goto handle_unusual; |
708 | } |
709 | break; |
710 | } |
711 | |
712 | // int64 num_elements = 6; |
713 | case 6: { |
714 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (48 & 0xFF)) { |
715 | |
716 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
717 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
718 | input, &num_elements_))); |
719 | } else { |
720 | goto handle_unusual; |
721 | } |
722 | break; |
723 | } |
724 | |
725 | // bool finalized = 1000; |
726 | case 1000: { |
727 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8000 & 0xFF)) { |
728 | |
729 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
730 | bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>( |
731 | input, &finalized_))); |
732 | } else { |
733 | goto handle_unusual; |
734 | } |
735 | break; |
736 | } |
737 | |
738 | default: { |
739 | handle_unusual: |
740 | if (tag == 0) { |
741 | goto success; |
742 | } |
743 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
744 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
745 | break; |
746 | } |
747 | } |
748 | } |
749 | success: |
750 | // @@protoc_insertion_point(parse_success:tensorflow.data.experimental.SnapshotMetadataRecord) |
751 | return true; |
752 | failure: |
753 | // @@protoc_insertion_point(parse_failure:tensorflow.data.experimental.SnapshotMetadataRecord) |
754 | return false; |
755 | #undef DO_ |
756 | } |
757 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
758 | |
759 | void SnapshotMetadataRecord::SerializeWithCachedSizes( |
760 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
761 | // @@protoc_insertion_point(serialize_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
762 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
763 | (void) cached_has_bits; |
764 | |
765 | // string graph_hash = 1; |
766 | if (this->graph_hash().size() > 0) { |
767 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
768 | this->graph_hash().data(), static_cast<int>(this->graph_hash().length()), |
769 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
770 | "tensorflow.data.experimental.SnapshotMetadataRecord.graph_hash" ); |
771 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
772 | 1, this->graph_hash(), output); |
773 | } |
774 | |
775 | // string run_id = 2; |
776 | if (this->run_id().size() > 0) { |
777 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
778 | this->run_id().data(), static_cast<int>(this->run_id().length()), |
779 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
780 | "tensorflow.data.experimental.SnapshotMetadataRecord.run_id" ); |
781 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased( |
782 | 2, this->run_id(), output); |
783 | } |
784 | |
785 | // int64 creation_timestamp = 3; |
786 | if (this->creation_timestamp() != 0) { |
787 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->creation_timestamp(), output); |
788 | } |
789 | |
790 | // int64 version = 4; |
791 | if (this->version() != 0) { |
792 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(4, this->version(), output); |
793 | } |
794 | |
795 | // repeated .tensorflow.DataType dtype = 5; |
796 | if (this->dtype_size() > 0) { |
797 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag( |
798 | 5, |
799 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
800 | output); |
801 | output->WriteVarint32(_dtype_cached_byte_size_.load( |
802 | std::memory_order_relaxed)); |
803 | } |
804 | for (int i = 0, n = this->dtype_size(); i < n; i++) { |
805 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumNoTag( |
806 | this->dtype(i), output); |
807 | } |
808 | |
809 | // int64 num_elements = 6; |
810 | if (this->num_elements() != 0) { |
811 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(6, this->num_elements(), output); |
812 | } |
813 | |
814 | // bool finalized = 1000; |
815 | if (this->finalized() != 0) { |
816 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(1000, this->finalized(), output); |
817 | } |
818 | |
819 | if (_internal_metadata_.have_unknown_fields()) { |
820 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
821 | _internal_metadata_.unknown_fields(), output); |
822 | } |
823 | // @@protoc_insertion_point(serialize_end:tensorflow.data.experimental.SnapshotMetadataRecord) |
824 | } |
825 | |
826 | ::PROTOBUF_NAMESPACE_ID::uint8* SnapshotMetadataRecord::InternalSerializeWithCachedSizesToArray( |
827 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
828 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
829 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
830 | (void) cached_has_bits; |
831 | |
832 | // string graph_hash = 1; |
833 | if (this->graph_hash().size() > 0) { |
834 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
835 | this->graph_hash().data(), static_cast<int>(this->graph_hash().length()), |
836 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
837 | "tensorflow.data.experimental.SnapshotMetadataRecord.graph_hash" ); |
838 | target = |
839 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
840 | 1, this->graph_hash(), target); |
841 | } |
842 | |
843 | // string run_id = 2; |
844 | if (this->run_id().size() > 0) { |
845 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String( |
846 | this->run_id().data(), static_cast<int>(this->run_id().length()), |
847 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, |
848 | "tensorflow.data.experimental.SnapshotMetadataRecord.run_id" ); |
849 | target = |
850 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray( |
851 | 2, this->run_id(), target); |
852 | } |
853 | |
854 | // int64 creation_timestamp = 3; |
855 | if (this->creation_timestamp() != 0) { |
856 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->creation_timestamp(), target); |
857 | } |
858 | |
859 | // int64 version = 4; |
860 | if (this->version() != 0) { |
861 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(4, this->version(), target); |
862 | } |
863 | |
864 | // repeated .tensorflow.DataType dtype = 5; |
865 | if (this->dtype_size() > 0) { |
866 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( |
867 | 5, |
868 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
869 | target); |
870 | target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( _dtype_cached_byte_size_.load(std::memory_order_relaxed), |
871 | target); |
872 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumNoTagToArray( |
873 | this->dtype_, target); |
874 | } |
875 | |
876 | // int64 num_elements = 6; |
877 | if (this->num_elements() != 0) { |
878 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(6, this->num_elements(), target); |
879 | } |
880 | |
881 | // bool finalized = 1000; |
882 | if (this->finalized() != 0) { |
883 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1000, this->finalized(), target); |
884 | } |
885 | |
886 | if (_internal_metadata_.have_unknown_fields()) { |
887 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
888 | _internal_metadata_.unknown_fields(), target); |
889 | } |
890 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.data.experimental.SnapshotMetadataRecord) |
891 | return target; |
892 | } |
893 | |
894 | size_t SnapshotMetadataRecord::ByteSizeLong() const { |
895 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
896 | size_t total_size = 0; |
897 | |
898 | if (_internal_metadata_.have_unknown_fields()) { |
899 | total_size += |
900 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
901 | _internal_metadata_.unknown_fields()); |
902 | } |
903 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
904 | // Prevent compiler warnings about cached_has_bits being unused |
905 | (void) cached_has_bits; |
906 | |
907 | // repeated .tensorflow.DataType dtype = 5; |
908 | { |
909 | size_t data_size = 0; |
910 | unsigned int count = static_cast<unsigned int>(this->dtype_size());for (unsigned int i = 0; i < count; i++) { |
911 | data_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize( |
912 | this->dtype(static_cast<int>(i))); |
913 | } |
914 | if (data_size > 0) { |
915 | total_size += 1 + |
916 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
917 | static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); |
918 | } |
919 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); |
920 | _dtype_cached_byte_size_.store(cached_size, |
921 | std::memory_order_relaxed); |
922 | total_size += data_size; |
923 | } |
924 | |
925 | // string graph_hash = 1; |
926 | if (this->graph_hash().size() > 0) { |
927 | total_size += 1 + |
928 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
929 | this->graph_hash()); |
930 | } |
931 | |
932 | // string run_id = 2; |
933 | if (this->run_id().size() > 0) { |
934 | total_size += 1 + |
935 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize( |
936 | this->run_id()); |
937 | } |
938 | |
939 | // int64 creation_timestamp = 3; |
940 | if (this->creation_timestamp() != 0) { |
941 | total_size += 1 + |
942 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
943 | this->creation_timestamp()); |
944 | } |
945 | |
946 | // int64 version = 4; |
947 | if (this->version() != 0) { |
948 | total_size += 1 + |
949 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
950 | this->version()); |
951 | } |
952 | |
953 | // int64 num_elements = 6; |
954 | if (this->num_elements() != 0) { |
955 | total_size += 1 + |
956 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
957 | this->num_elements()); |
958 | } |
959 | |
960 | // bool finalized = 1000; |
961 | if (this->finalized() != 0) { |
962 | total_size += 2 + 1; |
963 | } |
964 | |
965 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
966 | SetCachedSize(cached_size); |
967 | return total_size; |
968 | } |
969 | |
970 | void SnapshotMetadataRecord::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
971 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
972 | GOOGLE_DCHECK_NE(&from, this); |
973 | const SnapshotMetadataRecord* source = |
974 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SnapshotMetadataRecord>( |
975 | &from); |
976 | if (source == nullptr) { |
977 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.data.experimental.SnapshotMetadataRecord) |
978 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
979 | } else { |
980 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.data.experimental.SnapshotMetadataRecord) |
981 | MergeFrom(*source); |
982 | } |
983 | } |
984 | |
985 | void SnapshotMetadataRecord::MergeFrom(const SnapshotMetadataRecord& from) { |
986 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
987 | GOOGLE_DCHECK_NE(&from, this); |
988 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
989 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
990 | (void) cached_has_bits; |
991 | |
992 | dtype_.MergeFrom(from.dtype_); |
993 | if (from.graph_hash().size() > 0) { |
994 | |
995 | graph_hash_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_hash_); |
996 | } |
997 | if (from.run_id().size() > 0) { |
998 | |
999 | run_id_.AssignWithDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.run_id_); |
1000 | } |
1001 | if (from.creation_timestamp() != 0) { |
1002 | set_creation_timestamp(from.creation_timestamp()); |
1003 | } |
1004 | if (from.version() != 0) { |
1005 | set_version(from.version()); |
1006 | } |
1007 | if (from.num_elements() != 0) { |
1008 | set_num_elements(from.num_elements()); |
1009 | } |
1010 | if (from.finalized() != 0) { |
1011 | set_finalized(from.finalized()); |
1012 | } |
1013 | } |
1014 | |
1015 | void SnapshotMetadataRecord::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1016 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
1017 | if (&from == this) return; |
1018 | Clear(); |
1019 | MergeFrom(from); |
1020 | } |
1021 | |
1022 | void SnapshotMetadataRecord::CopyFrom(const SnapshotMetadataRecord& from) { |
1023 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.data.experimental.SnapshotMetadataRecord) |
1024 | if (&from == this) return; |
1025 | Clear(); |
1026 | MergeFrom(from); |
1027 | } |
1028 | |
1029 | bool SnapshotMetadataRecord::IsInitialized() const { |
1030 | return true; |
1031 | } |
1032 | |
1033 | void SnapshotMetadataRecord::InternalSwap(SnapshotMetadataRecord* other) { |
1034 | using std::swap; |
1035 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1036 | dtype_.InternalSwap(&other->dtype_); |
1037 | graph_hash_.Swap(&other->graph_hash_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1038 | GetArenaNoVirtual()); |
1039 | run_id_.Swap(&other->run_id_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1040 | GetArenaNoVirtual()); |
1041 | swap(creation_timestamp_, other->creation_timestamp_); |
1042 | swap(version_, other->version_); |
1043 | swap(num_elements_, other->num_elements_); |
1044 | swap(finalized_, other->finalized_); |
1045 | } |
1046 | |
1047 | ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotMetadataRecord::GetMetadata() const { |
1048 | return GetMetadataStatic(); |
1049 | } |
1050 | |
1051 | |
1052 | // =================================================================== |
1053 | |
1054 | void TensorMetadata::InitAsDefaultInstance() { |
1055 | ::tensorflow::data::experimental::_TensorMetadata_default_instance_._instance.get_mutable()->tensor_shape_ = const_cast< ::tensorflow::TensorShapeProto*>( |
1056 | ::tensorflow::TensorShapeProto::internal_default_instance()); |
1057 | } |
1058 | class TensorMetadata::_Internal { |
1059 | public: |
1060 | static const ::tensorflow::TensorShapeProto& tensor_shape(const TensorMetadata* msg); |
1061 | }; |
1062 | |
1063 | const ::tensorflow::TensorShapeProto& |
1064 | TensorMetadata::_Internal::tensor_shape(const TensorMetadata* msg) { |
1065 | return *msg->tensor_shape_; |
1066 | } |
1067 | void TensorMetadata::clear_tensor_shape() { |
1068 | if (GetArenaNoVirtual() == nullptr && tensor_shape_ != nullptr) { |
1069 | delete tensor_shape_; |
1070 | } |
1071 | tensor_shape_ = nullptr; |
1072 | } |
1073 | TensorMetadata::TensorMetadata() |
1074 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1075 | SharedCtor(); |
1076 | // @@protoc_insertion_point(constructor:tensorflow.data.experimental.TensorMetadata) |
1077 | } |
1078 | TensorMetadata::TensorMetadata(const TensorMetadata& from) |
1079 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1080 | _internal_metadata_(nullptr) { |
1081 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1082 | if (from.has_tensor_shape()) { |
1083 | tensor_shape_ = new ::tensorflow::TensorShapeProto(*from.tensor_shape_); |
1084 | } else { |
1085 | tensor_shape_ = nullptr; |
1086 | } |
1087 | tensor_size_bytes_ = from.tensor_size_bytes_; |
1088 | // @@protoc_insertion_point(copy_constructor:tensorflow.data.experimental.TensorMetadata) |
1089 | } |
1090 | |
1091 | void TensorMetadata::SharedCtor() { |
1092 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_TensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base); |
1093 | ::memset(&tensor_shape_, 0, static_cast<size_t>( |
1094 | reinterpret_cast<char*>(&tensor_size_bytes_) - |
1095 | reinterpret_cast<char*>(&tensor_shape_)) + sizeof(tensor_size_bytes_)); |
1096 | } |
1097 | |
1098 | TensorMetadata::~TensorMetadata() { |
1099 | // @@protoc_insertion_point(destructor:tensorflow.data.experimental.TensorMetadata) |
1100 | SharedDtor(); |
1101 | } |
1102 | |
1103 | void TensorMetadata::SharedDtor() { |
1104 | if (this != internal_default_instance()) delete tensor_shape_; |
1105 | } |
1106 | |
1107 | void TensorMetadata::SetCachedSize(int size) const { |
1108 | _cached_size_.Set(size); |
1109 | } |
1110 | const TensorMetadata& TensorMetadata::default_instance() { |
1111 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_TensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base); |
1112 | return *internal_default_instance(); |
1113 | } |
1114 | |
1115 | |
1116 | void TensorMetadata::Clear() { |
1117 | // @@protoc_insertion_point(message_clear_start:tensorflow.data.experimental.TensorMetadata) |
1118 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1119 | // Prevent compiler warnings about cached_has_bits being unused |
1120 | (void) cached_has_bits; |
1121 | |
1122 | if (GetArenaNoVirtual() == nullptr && tensor_shape_ != nullptr) { |
1123 | delete tensor_shape_; |
1124 | } |
1125 | tensor_shape_ = nullptr; |
1126 | tensor_size_bytes_ = PROTOBUF_LONGLONG(0); |
1127 | _internal_metadata_.Clear(); |
1128 | } |
1129 | |
1130 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1131 | const char* TensorMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1132 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1133 | while (!ctx->Done(&ptr)) { |
1134 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1135 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1136 | CHK_(ptr); |
1137 | switch (tag >> 3) { |
1138 | // .tensorflow.TensorShapeProto tensor_shape = 2; |
1139 | case 2: |
1140 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) { |
1141 | ptr = ctx->ParseMessage(mutable_tensor_shape(), ptr); |
1142 | CHK_(ptr); |
1143 | } else goto handle_unusual; |
1144 | continue; |
1145 | // int64 tensor_size_bytes = 3; |
1146 | case 3: |
1147 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) { |
1148 | tensor_size_bytes_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
1149 | CHK_(ptr); |
1150 | } else goto handle_unusual; |
1151 | continue; |
1152 | default: { |
1153 | handle_unusual: |
1154 | if ((tag & 7) == 4 || tag == 0) { |
1155 | ctx->SetLastTag(tag); |
1156 | goto success; |
1157 | } |
1158 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1159 | CHK_(ptr != nullptr); |
1160 | continue; |
1161 | } |
1162 | } // switch |
1163 | } // while |
1164 | success: |
1165 | return ptr; |
1166 | failure: |
1167 | ptr = nullptr; |
1168 | goto success; |
1169 | #undef CHK_ |
1170 | } |
1171 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1172 | bool TensorMetadata::MergePartialFromCodedStream( |
1173 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1174 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1175 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1176 | // @@protoc_insertion_point(parse_start:tensorflow.data.experimental.TensorMetadata) |
1177 | for (;;) { |
1178 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1179 | tag = p.first; |
1180 | if (!p.second) goto handle_unusual; |
1181 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1182 | // .tensorflow.TensorShapeProto tensor_shape = 2; |
1183 | case 2: { |
1184 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) { |
1185 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1186 | input, mutable_tensor_shape())); |
1187 | } else { |
1188 | goto handle_unusual; |
1189 | } |
1190 | break; |
1191 | } |
1192 | |
1193 | // int64 tensor_size_bytes = 3; |
1194 | case 3: { |
1195 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
1196 | |
1197 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
1198 | ::PROTOBUF_NAMESPACE_ID::int64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT64>( |
1199 | input, &tensor_size_bytes_))); |
1200 | } else { |
1201 | goto handle_unusual; |
1202 | } |
1203 | break; |
1204 | } |
1205 | |
1206 | default: { |
1207 | handle_unusual: |
1208 | if (tag == 0) { |
1209 | goto success; |
1210 | } |
1211 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1212 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1213 | break; |
1214 | } |
1215 | } |
1216 | } |
1217 | success: |
1218 | // @@protoc_insertion_point(parse_success:tensorflow.data.experimental.TensorMetadata) |
1219 | return true; |
1220 | failure: |
1221 | // @@protoc_insertion_point(parse_failure:tensorflow.data.experimental.TensorMetadata) |
1222 | return false; |
1223 | #undef DO_ |
1224 | } |
1225 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1226 | |
1227 | void TensorMetadata::SerializeWithCachedSizes( |
1228 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1229 | // @@protoc_insertion_point(serialize_start:tensorflow.data.experimental.TensorMetadata) |
1230 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1231 | (void) cached_has_bits; |
1232 | |
1233 | // .tensorflow.TensorShapeProto tensor_shape = 2; |
1234 | if (this->has_tensor_shape()) { |
1235 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1236 | 2, _Internal::tensor_shape(this), output); |
1237 | } |
1238 | |
1239 | // int64 tensor_size_bytes = 3; |
1240 | if (this->tensor_size_bytes() != 0) { |
1241 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64(3, this->tensor_size_bytes(), output); |
1242 | } |
1243 | |
1244 | if (_internal_metadata_.have_unknown_fields()) { |
1245 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1246 | _internal_metadata_.unknown_fields(), output); |
1247 | } |
1248 | // @@protoc_insertion_point(serialize_end:tensorflow.data.experimental.TensorMetadata) |
1249 | } |
1250 | |
1251 | ::PROTOBUF_NAMESPACE_ID::uint8* TensorMetadata::InternalSerializeWithCachedSizesToArray( |
1252 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1253 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.data.experimental.TensorMetadata) |
1254 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1255 | (void) cached_has_bits; |
1256 | |
1257 | // .tensorflow.TensorShapeProto tensor_shape = 2; |
1258 | if (this->has_tensor_shape()) { |
1259 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1260 | InternalWriteMessageToArray( |
1261 | 2, _Internal::tensor_shape(this), target); |
1262 | } |
1263 | |
1264 | // int64 tensor_size_bytes = 3; |
1265 | if (this->tensor_size_bytes() != 0) { |
1266 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt64ToArray(3, this->tensor_size_bytes(), target); |
1267 | } |
1268 | |
1269 | if (_internal_metadata_.have_unknown_fields()) { |
1270 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1271 | _internal_metadata_.unknown_fields(), target); |
1272 | } |
1273 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.data.experimental.TensorMetadata) |
1274 | return target; |
1275 | } |
1276 | |
1277 | size_t TensorMetadata::ByteSizeLong() const { |
1278 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.data.experimental.TensorMetadata) |
1279 | size_t total_size = 0; |
1280 | |
1281 | if (_internal_metadata_.have_unknown_fields()) { |
1282 | total_size += |
1283 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1284 | _internal_metadata_.unknown_fields()); |
1285 | } |
1286 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1287 | // Prevent compiler warnings about cached_has_bits being unused |
1288 | (void) cached_has_bits; |
1289 | |
1290 | // .tensorflow.TensorShapeProto tensor_shape = 2; |
1291 | if (this->has_tensor_shape()) { |
1292 | total_size += 1 + |
1293 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1294 | *tensor_shape_); |
1295 | } |
1296 | |
1297 | // int64 tensor_size_bytes = 3; |
1298 | if (this->tensor_size_bytes() != 0) { |
1299 | total_size += 1 + |
1300 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int64Size( |
1301 | this->tensor_size_bytes()); |
1302 | } |
1303 | |
1304 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1305 | SetCachedSize(cached_size); |
1306 | return total_size; |
1307 | } |
1308 | |
1309 | void TensorMetadata::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1310 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.data.experimental.TensorMetadata) |
1311 | GOOGLE_DCHECK_NE(&from, this); |
1312 | const TensorMetadata* source = |
1313 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<TensorMetadata>( |
1314 | &from); |
1315 | if (source == nullptr) { |
1316 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.data.experimental.TensorMetadata) |
1317 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1318 | } else { |
1319 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.data.experimental.TensorMetadata) |
1320 | MergeFrom(*source); |
1321 | } |
1322 | } |
1323 | |
1324 | void TensorMetadata::MergeFrom(const TensorMetadata& from) { |
1325 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.data.experimental.TensorMetadata) |
1326 | GOOGLE_DCHECK_NE(&from, this); |
1327 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1328 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1329 | (void) cached_has_bits; |
1330 | |
1331 | if (from.has_tensor_shape()) { |
1332 | mutable_tensor_shape()->::tensorflow::TensorShapeProto::MergeFrom(from.tensor_shape()); |
1333 | } |
1334 | if (from.tensor_size_bytes() != 0) { |
1335 | set_tensor_size_bytes(from.tensor_size_bytes()); |
1336 | } |
1337 | } |
1338 | |
1339 | void TensorMetadata::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1340 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.data.experimental.TensorMetadata) |
1341 | if (&from == this) return; |
1342 | Clear(); |
1343 | MergeFrom(from); |
1344 | } |
1345 | |
1346 | void TensorMetadata::CopyFrom(const TensorMetadata& from) { |
1347 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.data.experimental.TensorMetadata) |
1348 | if (&from == this) return; |
1349 | Clear(); |
1350 | MergeFrom(from); |
1351 | } |
1352 | |
1353 | bool TensorMetadata::IsInitialized() const { |
1354 | return true; |
1355 | } |
1356 | |
1357 | void TensorMetadata::InternalSwap(TensorMetadata* other) { |
1358 | using std::swap; |
1359 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1360 | swap(tensor_shape_, other->tensor_shape_); |
1361 | swap(tensor_size_bytes_, other->tensor_size_bytes_); |
1362 | } |
1363 | |
1364 | ::PROTOBUF_NAMESPACE_ID::Metadata TensorMetadata::GetMetadata() const { |
1365 | return GetMetadataStatic(); |
1366 | } |
1367 | |
1368 | |
1369 | // =================================================================== |
1370 | |
1371 | void SnapshotTensorMetadata::InitAsDefaultInstance() { |
1372 | } |
1373 | class SnapshotTensorMetadata::_Internal { |
1374 | public: |
1375 | }; |
1376 | |
1377 | SnapshotTensorMetadata::SnapshotTensorMetadata() |
1378 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
1379 | SharedCtor(); |
1380 | // @@protoc_insertion_point(constructor:tensorflow.data.experimental.SnapshotTensorMetadata) |
1381 | } |
1382 | SnapshotTensorMetadata::SnapshotTensorMetadata(const SnapshotTensorMetadata& from) |
1383 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
1384 | _internal_metadata_(nullptr), |
1385 | tensor_metadata_(from.tensor_metadata_) { |
1386 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1387 | // @@protoc_insertion_point(copy_constructor:tensorflow.data.experimental.SnapshotTensorMetadata) |
1388 | } |
1389 | |
1390 | void SnapshotTensorMetadata::SharedCtor() { |
1391 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SnapshotTensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base); |
1392 | } |
1393 | |
1394 | SnapshotTensorMetadata::~SnapshotTensorMetadata() { |
1395 | // @@protoc_insertion_point(destructor:tensorflow.data.experimental.SnapshotTensorMetadata) |
1396 | SharedDtor(); |
1397 | } |
1398 | |
1399 | void SnapshotTensorMetadata::SharedDtor() { |
1400 | } |
1401 | |
1402 | void SnapshotTensorMetadata::SetCachedSize(int size) const { |
1403 | _cached_size_.Set(size); |
1404 | } |
1405 | const SnapshotTensorMetadata& SnapshotTensorMetadata::default_instance() { |
1406 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SnapshotTensorMetadata_tensorflow_2fcore_2fprotobuf_2fsnapshot_2eproto.base); |
1407 | return *internal_default_instance(); |
1408 | } |
1409 | |
1410 | |
1411 | void SnapshotTensorMetadata::Clear() { |
1412 | // @@protoc_insertion_point(message_clear_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1413 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1414 | // Prevent compiler warnings about cached_has_bits being unused |
1415 | (void) cached_has_bits; |
1416 | |
1417 | tensor_metadata_.Clear(); |
1418 | _internal_metadata_.Clear(); |
1419 | } |
1420 | |
1421 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1422 | const char* SnapshotTensorMetadata::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
1423 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
1424 | while (!ctx->Done(&ptr)) { |
1425 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1426 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
1427 | CHK_(ptr); |
1428 | switch (tag >> 3) { |
1429 | // repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; |
1430 | case 1: |
1431 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) { |
1432 | ptr -= 1; |
1433 | do { |
1434 | ptr += 1; |
1435 | ptr = ctx->ParseMessage(add_tensor_metadata(), ptr); |
1436 | CHK_(ptr); |
1437 | if (!ctx->DataAvailable(ptr)) break; |
1438 | } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10); |
1439 | } else goto handle_unusual; |
1440 | continue; |
1441 | default: { |
1442 | handle_unusual: |
1443 | if ((tag & 7) == 4 || tag == 0) { |
1444 | ctx->SetLastTag(tag); |
1445 | goto success; |
1446 | } |
1447 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
1448 | CHK_(ptr != nullptr); |
1449 | continue; |
1450 | } |
1451 | } // switch |
1452 | } // while |
1453 | success: |
1454 | return ptr; |
1455 | failure: |
1456 | ptr = nullptr; |
1457 | goto success; |
1458 | #undef CHK_ |
1459 | } |
1460 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1461 | bool SnapshotTensorMetadata::MergePartialFromCodedStream( |
1462 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
1463 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
1464 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
1465 | // @@protoc_insertion_point(parse_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1466 | for (;;) { |
1467 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
1468 | tag = p.first; |
1469 | if (!p.second) goto handle_unusual; |
1470 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
1471 | // repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; |
1472 | case 1: { |
1473 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) { |
1474 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage( |
1475 | input, add_tensor_metadata())); |
1476 | } else { |
1477 | goto handle_unusual; |
1478 | } |
1479 | break; |
1480 | } |
1481 | |
1482 | default: { |
1483 | handle_unusual: |
1484 | if (tag == 0) { |
1485 | goto success; |
1486 | } |
1487 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
1488 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
1489 | break; |
1490 | } |
1491 | } |
1492 | } |
1493 | success: |
1494 | // @@protoc_insertion_point(parse_success:tensorflow.data.experimental.SnapshotTensorMetadata) |
1495 | return true; |
1496 | failure: |
1497 | // @@protoc_insertion_point(parse_failure:tensorflow.data.experimental.SnapshotTensorMetadata) |
1498 | return false; |
1499 | #undef DO_ |
1500 | } |
1501 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1502 | |
1503 | void SnapshotTensorMetadata::SerializeWithCachedSizes( |
1504 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
1505 | // @@protoc_insertion_point(serialize_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1506 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1507 | (void) cached_has_bits; |
1508 | |
1509 | // repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; |
1510 | for (unsigned int i = 0, |
1511 | n = static_cast<unsigned int>(this->tensor_metadata_size()); i < n; i++) { |
1512 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray( |
1513 | 1, |
1514 | this->tensor_metadata(static_cast<int>(i)), |
1515 | output); |
1516 | } |
1517 | |
1518 | if (_internal_metadata_.have_unknown_fields()) { |
1519 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
1520 | _internal_metadata_.unknown_fields(), output); |
1521 | } |
1522 | // @@protoc_insertion_point(serialize_end:tensorflow.data.experimental.SnapshotTensorMetadata) |
1523 | } |
1524 | |
1525 | ::PROTOBUF_NAMESPACE_ID::uint8* SnapshotTensorMetadata::InternalSerializeWithCachedSizesToArray( |
1526 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
1527 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1528 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1529 | (void) cached_has_bits; |
1530 | |
1531 | // repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; |
1532 | for (unsigned int i = 0, |
1533 | n = static_cast<unsigned int>(this->tensor_metadata_size()); i < n; i++) { |
1534 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
1535 | InternalWriteMessageToArray( |
1536 | 1, this->tensor_metadata(static_cast<int>(i)), target); |
1537 | } |
1538 | |
1539 | if (_internal_metadata_.have_unknown_fields()) { |
1540 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
1541 | _internal_metadata_.unknown_fields(), target); |
1542 | } |
1543 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.data.experimental.SnapshotTensorMetadata) |
1544 | return target; |
1545 | } |
1546 | |
1547 | size_t SnapshotTensorMetadata::ByteSizeLong() const { |
1548 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1549 | size_t total_size = 0; |
1550 | |
1551 | if (_internal_metadata_.have_unknown_fields()) { |
1552 | total_size += |
1553 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
1554 | _internal_metadata_.unknown_fields()); |
1555 | } |
1556 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1557 | // Prevent compiler warnings about cached_has_bits being unused |
1558 | (void) cached_has_bits; |
1559 | |
1560 | // repeated .tensorflow.data.experimental.TensorMetadata tensor_metadata = 1; |
1561 | { |
1562 | unsigned int count = static_cast<unsigned int>(this->tensor_metadata_size()); |
1563 | total_size += 1UL * count; |
1564 | for (unsigned int i = 0; i < count; i++) { |
1565 | total_size += |
1566 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize( |
1567 | this->tensor_metadata(static_cast<int>(i))); |
1568 | } |
1569 | } |
1570 | |
1571 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
1572 | SetCachedSize(cached_size); |
1573 | return total_size; |
1574 | } |
1575 | |
1576 | void SnapshotTensorMetadata::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1577 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1578 | GOOGLE_DCHECK_NE(&from, this); |
1579 | const SnapshotTensorMetadata* source = |
1580 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SnapshotTensorMetadata>( |
1581 | &from); |
1582 | if (source == nullptr) { |
1583 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.data.experimental.SnapshotTensorMetadata) |
1584 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
1585 | } else { |
1586 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.data.experimental.SnapshotTensorMetadata) |
1587 | MergeFrom(*source); |
1588 | } |
1589 | } |
1590 | |
1591 | void SnapshotTensorMetadata::MergeFrom(const SnapshotTensorMetadata& from) { |
1592 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1593 | GOOGLE_DCHECK_NE(&from, this); |
1594 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
1595 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
1596 | (void) cached_has_bits; |
1597 | |
1598 | tensor_metadata_.MergeFrom(from.tensor_metadata_); |
1599 | } |
1600 | |
1601 | void SnapshotTensorMetadata::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
1602 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1603 | if (&from == this) return; |
1604 | Clear(); |
1605 | MergeFrom(from); |
1606 | } |
1607 | |
1608 | void SnapshotTensorMetadata::CopyFrom(const SnapshotTensorMetadata& from) { |
1609 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.data.experimental.SnapshotTensorMetadata) |
1610 | if (&from == this) return; |
1611 | Clear(); |
1612 | MergeFrom(from); |
1613 | } |
1614 | |
1615 | bool SnapshotTensorMetadata::IsInitialized() const { |
1616 | return true; |
1617 | } |
1618 | |
1619 | void SnapshotTensorMetadata::InternalSwap(SnapshotTensorMetadata* other) { |
1620 | using std::swap; |
1621 | _internal_metadata_.Swap(&other->_internal_metadata_); |
1622 | CastToBase(&tensor_metadata_)->InternalSwap(CastToBase(&other->tensor_metadata_)); |
1623 | } |
1624 | |
1625 | ::PROTOBUF_NAMESPACE_ID::Metadata SnapshotTensorMetadata::GetMetadata() const { |
1626 | return GetMetadataStatic(); |
1627 | } |
1628 | |
1629 | |
1630 | // @@protoc_insertion_point(namespace_scope) |
1631 | } // namespace experimental |
1632 | } // namespace data |
1633 | } // namespace tensorflow |
1634 | PROTOBUF_NAMESPACE_OPEN |
1635 | template<> PROTOBUF_NOINLINE ::tensorflow::data::experimental::SnapshotRecord* Arena::CreateMaybeMessage< ::tensorflow::data::experimental::SnapshotRecord >(Arena* arena) { |
1636 | return Arena::CreateInternal< ::tensorflow::data::experimental::SnapshotRecord >(arena); |
1637 | } |
1638 | template<> PROTOBUF_NOINLINE ::tensorflow::data::experimental::SnapshotMetadataRecord* Arena::CreateMaybeMessage< ::tensorflow::data::experimental::SnapshotMetadataRecord >(Arena* arena) { |
1639 | return Arena::CreateInternal< ::tensorflow::data::experimental::SnapshotMetadataRecord >(arena); |
1640 | } |
1641 | template<> PROTOBUF_NOINLINE ::tensorflow::data::experimental::TensorMetadata* Arena::CreateMaybeMessage< ::tensorflow::data::experimental::TensorMetadata >(Arena* arena) { |
1642 | return Arena::CreateInternal< ::tensorflow::data::experimental::TensorMetadata >(arena); |
1643 | } |
1644 | template<> PROTOBUF_NOINLINE ::tensorflow::data::experimental::SnapshotTensorMetadata* Arena::CreateMaybeMessage< ::tensorflow::data::experimental::SnapshotTensorMetadata >(Arena* arena) { |
1645 | return Arena::CreateInternal< ::tensorflow::data::experimental::SnapshotTensorMetadata >(arena); |
1646 | } |
1647 | PROTOBUF_NAMESPACE_CLOSE |
1648 | |
1649 | // @@protoc_insertion_point(global_scope) |
1650 | #include <google/protobuf/port_undef.inc> |
1651 | |