1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/fingerprint.proto
3
4#include "tensorflow/core/protobuf/fingerprint.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_2fframework_2fversions_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto;
19namespace tensorflow {
20class FingerprintDefDefaultTypeInternal {
21 public:
22 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<FingerprintDef> _instance;
23} _FingerprintDef_default_instance_;
24} // namespace tensorflow
25static void InitDefaultsscc_info_FingerprintDef_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto() {
26 GOOGLE_PROTOBUF_VERIFY_VERSION;
27
28 {
29 void* ptr = &::tensorflow::_FingerprintDef_default_instance_;
30 new (ptr) ::tensorflow::FingerprintDef();
31 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
32 }
33 ::tensorflow::FingerprintDef::InitAsDefaultInstance();
34}
35
36::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_FingerprintDef_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto =
37 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_FingerprintDef_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto}, {
38 &scc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto.base,}};
39
40static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto[1];
41static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto = nullptr;
42static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto = nullptr;
43
44const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
45 ~0u, // no _has_bits_
46 PROTOBUF_FIELD_OFFSET(::tensorflow::FingerprintDef, _internal_metadata_),
47 ~0u, // no _extensions_
48 ~0u, // no _oneof_case_
49 ~0u, // no _weak_field_map_
50 PROTOBUF_FIELD_OFFSET(::tensorflow::FingerprintDef, graph_def_checksum_),
51 PROTOBUF_FIELD_OFFSET(::tensorflow::FingerprintDef, graph_def_program_hash_),
52 PROTOBUF_FIELD_OFFSET(::tensorflow::FingerprintDef, signature_def_hash_),
53 PROTOBUF_FIELD_OFFSET(::tensorflow::FingerprintDef, saved_object_graph_hash_),
54 PROTOBUF_FIELD_OFFSET(::tensorflow::FingerprintDef, checkpoint_hash_),
55 PROTOBUF_FIELD_OFFSET(::tensorflow::FingerprintDef, version_),
56};
57static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
58 { 0, -1, sizeof(::tensorflow::FingerprintDef)},
59};
60
61static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
62 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_FingerprintDef_default_instance_),
63};
64
65const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
66 "\n*tensorflow/core/protobuf/fingerprint.p"
67 "roto\022\ntensorflow\032(tensorflow/core/framew"
68 "ork/versions.proto\"\313\001\n\016FingerprintDef\022\032\n"
69 "\022graph_def_checksum\030\001 \001(\004\022\036\n\026graph_def_p"
70 "rogram_hash\030\002 \001(\004\022\032\n\022signature_def_hash\030"
71 "\003 \001(\004\022\037\n\027saved_object_graph_hash\030\004 \001(\004\022\027"
72 "\n\017checkpoint_hash\030\005 \001(\004\022\'\n\007version\030\006 \001(\013"
73 "2\026.tensorflow.VersionDefB\211\001\n\030org.tensorf"
74 "low.frameworkB\021FingerprintProtosP\001ZUgith"
75 "ub.com/tensorflow/tensorflow/tensorflow/"
76 "go/core/protobuf/for_core_protos_go_prot"
77 "o\370\001\001b\006proto3"
78 ;
79static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto_deps[1] = {
80 &::descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto,
81};
82static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto_sccs[1] = {
83 &scc_info_FingerprintDef_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto.base,
84};
85static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto_once;
86static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto_initialized = false;
87const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto = {
88 &descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto, "tensorflow/core/protobuf/fingerprint.proto", 452,
89 &descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto_deps, 1, 1,
90 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto::offsets,
91 file_level_metadata_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto, 1, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto,
92};
93
94// Force running AddDescriptors() at dynamic initialization time.
95static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto), true);
96namespace tensorflow {
97
98// ===================================================================
99
100void FingerprintDef::InitAsDefaultInstance() {
101 ::tensorflow::_FingerprintDef_default_instance_._instance.get_mutable()->version_ = const_cast< ::tensorflow::VersionDef*>(
102 ::tensorflow::VersionDef::internal_default_instance());
103}
104class FingerprintDef::_Internal {
105 public:
106 static const ::tensorflow::VersionDef& version(const FingerprintDef* msg);
107};
108
109const ::tensorflow::VersionDef&
110FingerprintDef::_Internal::version(const FingerprintDef* msg) {
111 return *msg->version_;
112}
113void FingerprintDef::unsafe_arena_set_allocated_version(
114 ::tensorflow::VersionDef* version) {
115 if (GetArenaNoVirtual() == nullptr) {
116 delete version_;
117 }
118 version_ = version;
119 if (version) {
120
121 } else {
122
123 }
124 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.FingerprintDef.version)
125}
126void FingerprintDef::clear_version() {
127 if (GetArenaNoVirtual() == nullptr && version_ != nullptr) {
128 delete version_;
129 }
130 version_ = nullptr;
131}
132FingerprintDef::FingerprintDef()
133 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
134 SharedCtor();
135 // @@protoc_insertion_point(constructor:tensorflow.FingerprintDef)
136}
137FingerprintDef::FingerprintDef(::PROTOBUF_NAMESPACE_ID::Arena* arena)
138 : ::PROTOBUF_NAMESPACE_ID::Message(),
139 _internal_metadata_(arena) {
140 SharedCtor();
141 RegisterArenaDtor(arena);
142 // @@protoc_insertion_point(arena_constructor:tensorflow.FingerprintDef)
143}
144FingerprintDef::FingerprintDef(const FingerprintDef& from)
145 : ::PROTOBUF_NAMESPACE_ID::Message(),
146 _internal_metadata_(nullptr) {
147 _internal_metadata_.MergeFrom(from._internal_metadata_);
148 if (from.has_version()) {
149 version_ = new ::tensorflow::VersionDef(*from.version_);
150 } else {
151 version_ = nullptr;
152 }
153 ::memcpy(&graph_def_checksum_, &from.graph_def_checksum_,
154 static_cast<size_t>(reinterpret_cast<char*>(&checkpoint_hash_) -
155 reinterpret_cast<char*>(&graph_def_checksum_)) + sizeof(checkpoint_hash_));
156 // @@protoc_insertion_point(copy_constructor:tensorflow.FingerprintDef)
157}
158
159void FingerprintDef::SharedCtor() {
160 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_FingerprintDef_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto.base);
161 ::memset(&version_, 0, static_cast<size_t>(
162 reinterpret_cast<char*>(&checkpoint_hash_) -
163 reinterpret_cast<char*>(&version_)) + sizeof(checkpoint_hash_));
164}
165
166FingerprintDef::~FingerprintDef() {
167 // @@protoc_insertion_point(destructor:tensorflow.FingerprintDef)
168 SharedDtor();
169}
170
171void FingerprintDef::SharedDtor() {
172 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
173 if (this != internal_default_instance()) delete version_;
174}
175
176void FingerprintDef::ArenaDtor(void* object) {
177 FingerprintDef* _this = reinterpret_cast< FingerprintDef* >(object);
178 (void)_this;
179}
180void FingerprintDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
181}
182void FingerprintDef::SetCachedSize(int size) const {
183 _cached_size_.Set(size);
184}
185const FingerprintDef& FingerprintDef::default_instance() {
186 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_FingerprintDef_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto.base);
187 return *internal_default_instance();
188}
189
190
191void FingerprintDef::Clear() {
192// @@protoc_insertion_point(message_clear_start:tensorflow.FingerprintDef)
193 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
194 // Prevent compiler warnings about cached_has_bits being unused
195 (void) cached_has_bits;
196
197 if (GetArenaNoVirtual() == nullptr && version_ != nullptr) {
198 delete version_;
199 }
200 version_ = nullptr;
201 ::memset(&graph_def_checksum_, 0, static_cast<size_t>(
202 reinterpret_cast<char*>(&checkpoint_hash_) -
203 reinterpret_cast<char*>(&graph_def_checksum_)) + sizeof(checkpoint_hash_));
204 _internal_metadata_.Clear();
205}
206
207#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
208const char* FingerprintDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
209#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
210 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
211 while (!ctx->Done(&ptr)) {
212 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
213 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
214 CHK_(ptr);
215 switch (tag >> 3) {
216 // uint64 graph_def_checksum = 1;
217 case 1:
218 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
219 graph_def_checksum_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
220 CHK_(ptr);
221 } else goto handle_unusual;
222 continue;
223 // uint64 graph_def_program_hash = 2;
224 case 2:
225 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
226 graph_def_program_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
227 CHK_(ptr);
228 } else goto handle_unusual;
229 continue;
230 // uint64 signature_def_hash = 3;
231 case 3:
232 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
233 signature_def_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
234 CHK_(ptr);
235 } else goto handle_unusual;
236 continue;
237 // uint64 saved_object_graph_hash = 4;
238 case 4:
239 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
240 saved_object_graph_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
241 CHK_(ptr);
242 } else goto handle_unusual;
243 continue;
244 // uint64 checkpoint_hash = 5;
245 case 5:
246 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
247 checkpoint_hash_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
248 CHK_(ptr);
249 } else goto handle_unusual;
250 continue;
251 // .tensorflow.VersionDef version = 6;
252 case 6:
253 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
254 ptr = ctx->ParseMessage(mutable_version(), ptr);
255 CHK_(ptr);
256 } else goto handle_unusual;
257 continue;
258 default: {
259 handle_unusual:
260 if ((tag & 7) == 4 || tag == 0) {
261 ctx->SetLastTag(tag);
262 goto success;
263 }
264 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
265 CHK_(ptr != nullptr);
266 continue;
267 }
268 } // switch
269 } // while
270success:
271 return ptr;
272failure:
273 ptr = nullptr;
274 goto success;
275#undef CHK_
276}
277#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
278bool FingerprintDef::MergePartialFromCodedStream(
279 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
280#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
281 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
282 // @@protoc_insertion_point(parse_start:tensorflow.FingerprintDef)
283 for (;;) {
284 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
285 tag = p.first;
286 if (!p.second) goto handle_unusual;
287 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
288 // uint64 graph_def_checksum = 1;
289 case 1: {
290 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) {
291
292 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
293 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
294 input, &graph_def_checksum_)));
295 } else {
296 goto handle_unusual;
297 }
298 break;
299 }
300
301 // uint64 graph_def_program_hash = 2;
302 case 2: {
303 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
304
305 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
306 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
307 input, &graph_def_program_hash_)));
308 } else {
309 goto handle_unusual;
310 }
311 break;
312 }
313
314 // uint64 signature_def_hash = 3;
315 case 3: {
316 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
317
318 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
319 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
320 input, &signature_def_hash_)));
321 } else {
322 goto handle_unusual;
323 }
324 break;
325 }
326
327 // uint64 saved_object_graph_hash = 4;
328 case 4: {
329 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
330
331 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
332 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
333 input, &saved_object_graph_hash_)));
334 } else {
335 goto handle_unusual;
336 }
337 break;
338 }
339
340 // uint64 checkpoint_hash = 5;
341 case 5: {
342 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (40 & 0xFF)) {
343
344 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
345 ::PROTOBUF_NAMESPACE_ID::uint64, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT64>(
346 input, &checkpoint_hash_)));
347 } else {
348 goto handle_unusual;
349 }
350 break;
351 }
352
353 // .tensorflow.VersionDef version = 6;
354 case 6: {
355 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
356 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
357 input, mutable_version()));
358 } else {
359 goto handle_unusual;
360 }
361 break;
362 }
363
364 default: {
365 handle_unusual:
366 if (tag == 0) {
367 goto success;
368 }
369 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
370 input, tag, _internal_metadata_.mutable_unknown_fields()));
371 break;
372 }
373 }
374 }
375success:
376 // @@protoc_insertion_point(parse_success:tensorflow.FingerprintDef)
377 return true;
378failure:
379 // @@protoc_insertion_point(parse_failure:tensorflow.FingerprintDef)
380 return false;
381#undef DO_
382}
383#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
384
385void FingerprintDef::SerializeWithCachedSizes(
386 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
387 // @@protoc_insertion_point(serialize_start:tensorflow.FingerprintDef)
388 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
389 (void) cached_has_bits;
390
391 // uint64 graph_def_checksum = 1;
392 if (this->graph_def_checksum() != 0) {
393 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(1, this->graph_def_checksum(), output);
394 }
395
396 // uint64 graph_def_program_hash = 2;
397 if (this->graph_def_program_hash() != 0) {
398 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(2, this->graph_def_program_hash(), output);
399 }
400
401 // uint64 signature_def_hash = 3;
402 if (this->signature_def_hash() != 0) {
403 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(3, this->signature_def_hash(), output);
404 }
405
406 // uint64 saved_object_graph_hash = 4;
407 if (this->saved_object_graph_hash() != 0) {
408 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(4, this->saved_object_graph_hash(), output);
409 }
410
411 // uint64 checkpoint_hash = 5;
412 if (this->checkpoint_hash() != 0) {
413 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64(5, this->checkpoint_hash(), output);
414 }
415
416 // .tensorflow.VersionDef version = 6;
417 if (this->has_version()) {
418 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
419 6, _Internal::version(this), output);
420 }
421
422 if (_internal_metadata_.have_unknown_fields()) {
423 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
424 _internal_metadata_.unknown_fields(), output);
425 }
426 // @@protoc_insertion_point(serialize_end:tensorflow.FingerprintDef)
427}
428
429::PROTOBUF_NAMESPACE_ID::uint8* FingerprintDef::InternalSerializeWithCachedSizesToArray(
430 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
431 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.FingerprintDef)
432 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
433 (void) cached_has_bits;
434
435 // uint64 graph_def_checksum = 1;
436 if (this->graph_def_checksum() != 0) {
437 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(1, this->graph_def_checksum(), target);
438 }
439
440 // uint64 graph_def_program_hash = 2;
441 if (this->graph_def_program_hash() != 0) {
442 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(2, this->graph_def_program_hash(), target);
443 }
444
445 // uint64 signature_def_hash = 3;
446 if (this->signature_def_hash() != 0) {
447 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(3, this->signature_def_hash(), target);
448 }
449
450 // uint64 saved_object_graph_hash = 4;
451 if (this->saved_object_graph_hash() != 0) {
452 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(4, this->saved_object_graph_hash(), target);
453 }
454
455 // uint64 checkpoint_hash = 5;
456 if (this->checkpoint_hash() != 0) {
457 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteUInt64ToArray(5, this->checkpoint_hash(), target);
458 }
459
460 // .tensorflow.VersionDef version = 6;
461 if (this->has_version()) {
462 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
463 InternalWriteMessageToArray(
464 6, _Internal::version(this), target);
465 }
466
467 if (_internal_metadata_.have_unknown_fields()) {
468 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
469 _internal_metadata_.unknown_fields(), target);
470 }
471 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.FingerprintDef)
472 return target;
473}
474
475size_t FingerprintDef::ByteSizeLong() const {
476// @@protoc_insertion_point(message_byte_size_start:tensorflow.FingerprintDef)
477 size_t total_size = 0;
478
479 if (_internal_metadata_.have_unknown_fields()) {
480 total_size +=
481 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
482 _internal_metadata_.unknown_fields());
483 }
484 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
485 // Prevent compiler warnings about cached_has_bits being unused
486 (void) cached_has_bits;
487
488 // .tensorflow.VersionDef version = 6;
489 if (this->has_version()) {
490 total_size += 1 +
491 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
492 *version_);
493 }
494
495 // uint64 graph_def_checksum = 1;
496 if (this->graph_def_checksum() != 0) {
497 total_size += 1 +
498 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
499 this->graph_def_checksum());
500 }
501
502 // uint64 graph_def_program_hash = 2;
503 if (this->graph_def_program_hash() != 0) {
504 total_size += 1 +
505 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
506 this->graph_def_program_hash());
507 }
508
509 // uint64 signature_def_hash = 3;
510 if (this->signature_def_hash() != 0) {
511 total_size += 1 +
512 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
513 this->signature_def_hash());
514 }
515
516 // uint64 saved_object_graph_hash = 4;
517 if (this->saved_object_graph_hash() != 0) {
518 total_size += 1 +
519 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
520 this->saved_object_graph_hash());
521 }
522
523 // uint64 checkpoint_hash = 5;
524 if (this->checkpoint_hash() != 0) {
525 total_size += 1 +
526 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::UInt64Size(
527 this->checkpoint_hash());
528 }
529
530 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
531 SetCachedSize(cached_size);
532 return total_size;
533}
534
535void FingerprintDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
536// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.FingerprintDef)
537 GOOGLE_DCHECK_NE(&from, this);
538 const FingerprintDef* source =
539 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<FingerprintDef>(
540 &from);
541 if (source == nullptr) {
542 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.FingerprintDef)
543 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
544 } else {
545 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.FingerprintDef)
546 MergeFrom(*source);
547 }
548}
549
550void FingerprintDef::MergeFrom(const FingerprintDef& from) {
551// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.FingerprintDef)
552 GOOGLE_DCHECK_NE(&from, this);
553 _internal_metadata_.MergeFrom(from._internal_metadata_);
554 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
555 (void) cached_has_bits;
556
557 if (from.has_version()) {
558 mutable_version()->::tensorflow::VersionDef::MergeFrom(from.version());
559 }
560 if (from.graph_def_checksum() != 0) {
561 set_graph_def_checksum(from.graph_def_checksum());
562 }
563 if (from.graph_def_program_hash() != 0) {
564 set_graph_def_program_hash(from.graph_def_program_hash());
565 }
566 if (from.signature_def_hash() != 0) {
567 set_signature_def_hash(from.signature_def_hash());
568 }
569 if (from.saved_object_graph_hash() != 0) {
570 set_saved_object_graph_hash(from.saved_object_graph_hash());
571 }
572 if (from.checkpoint_hash() != 0) {
573 set_checkpoint_hash(from.checkpoint_hash());
574 }
575}
576
577void FingerprintDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
578// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.FingerprintDef)
579 if (&from == this) return;
580 Clear();
581 MergeFrom(from);
582}
583
584void FingerprintDef::CopyFrom(const FingerprintDef& from) {
585// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.FingerprintDef)
586 if (&from == this) return;
587 Clear();
588 MergeFrom(from);
589}
590
591bool FingerprintDef::IsInitialized() const {
592 return true;
593}
594
595void FingerprintDef::InternalSwap(FingerprintDef* other) {
596 using std::swap;
597 _internal_metadata_.Swap(&other->_internal_metadata_);
598 swap(version_, other->version_);
599 swap(graph_def_checksum_, other->graph_def_checksum_);
600 swap(graph_def_program_hash_, other->graph_def_program_hash_);
601 swap(signature_def_hash_, other->signature_def_hash_);
602 swap(saved_object_graph_hash_, other->saved_object_graph_hash_);
603 swap(checkpoint_hash_, other->checkpoint_hash_);
604}
605
606::PROTOBUF_NAMESPACE_ID::Metadata FingerprintDef::GetMetadata() const {
607 return GetMetadataStatic();
608}
609
610
611// @@protoc_insertion_point(namespace_scope)
612} // namespace tensorflow
613PROTOBUF_NAMESPACE_OPEN
614template<> PROTOBUF_NOINLINE ::tensorflow::FingerprintDef* Arena::CreateMaybeMessage< ::tensorflow::FingerprintDef >(Arena* arena) {
615 return Arena::CreateMessageInternal< ::tensorflow::FingerprintDef >(arena);
616}
617PROTOBUF_NAMESPACE_CLOSE
618
619// @@protoc_insertion_point(global_scope)
620#include <google/protobuf/port_undef.inc>
621