1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/framework/versions.proto |
3 | |
4 | #include "tensorflow/core/framework/versions.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 | namespace tensorflow { |
19 | class VersionDefDefaultTypeInternal { |
20 | public: |
21 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<VersionDef> _instance; |
22 | } _VersionDef_default_instance_; |
23 | } // namespace tensorflow |
24 | static void InitDefaultsscc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto() { |
25 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
26 | |
27 | { |
28 | void* ptr = &::tensorflow::_VersionDef_default_instance_; |
29 | new (ptr) ::tensorflow::VersionDef(); |
30 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
31 | } |
32 | ::tensorflow::VersionDef::InitAsDefaultInstance(); |
33 | } |
34 | |
35 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto = |
36 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto}, {}}; |
37 | |
38 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fframework_2fversions_2eproto[1]; |
39 | static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_tensorflow_2fcore_2fframework_2fversions_2eproto = nullptr; |
40 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fframework_2fversions_2eproto = nullptr; |
41 | |
42 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fframework_2fversions_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
43 | ~0u, // no _has_bits_ |
44 | PROTOBUF_FIELD_OFFSET(::tensorflow::VersionDef, _internal_metadata_), |
45 | ~0u, // no _extensions_ |
46 | ~0u, // no _oneof_case_ |
47 | ~0u, // no _weak_field_map_ |
48 | PROTOBUF_FIELD_OFFSET(::tensorflow::VersionDef, producer_), |
49 | PROTOBUF_FIELD_OFFSET(::tensorflow::VersionDef, min_consumer_), |
50 | PROTOBUF_FIELD_OFFSET(::tensorflow::VersionDef, bad_consumers_), |
51 | }; |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
53 | { 0, -1, sizeof(::tensorflow::VersionDef)}, |
54 | }; |
55 | |
56 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
57 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_VersionDef_default_instance_), |
58 | }; |
59 | |
60 | const char descriptor_table_protodef_tensorflow_2fcore_2fframework_2fversions_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
61 | "\n(tensorflow/core/framework/versions.pro" |
62 | "to\022\ntensorflow\"K\n\nVersionDef\022\020\n\010producer" |
63 | "\030\001 \001(\005\022\024\n\014min_consumer\030\002 \001(\005\022\025\n\rbad_cons" |
64 | "umers\030\003 \003(\005B\200\001\n\030org.tensorflow.framework" |
65 | "B\016VersionsProtosP\001ZOgithub.com/tensorflo" |
66 | "w/tensorflow/tensorflow/go/core/framewor" |
67 | "k/versions_go_proto\370\001\001b\006proto3" |
68 | ; |
69 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto_deps[1] = { |
70 | }; |
71 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto_sccs[1] = { |
72 | &scc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto.base, |
73 | }; |
74 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto_once; |
75 | static bool descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto_initialized = false; |
76 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto = { |
77 | &descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fframework_2fversions_2eproto, "tensorflow/core/framework/versions.proto" , 270, |
78 | &descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto_once, descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto_deps, 1, 0, |
79 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fframework_2fversions_2eproto::offsets, |
80 | file_level_metadata_tensorflow_2fcore_2fframework_2fversions_2eproto, 1, file_level_enum_descriptors_tensorflow_2fcore_2fframework_2fversions_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fframework_2fversions_2eproto, |
81 | }; |
82 | |
83 | // Force running AddDescriptors() at dynamic initialization time. |
84 | static bool dynamic_init_dummy_tensorflow_2fcore_2fframework_2fversions_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto), true); |
85 | namespace tensorflow { |
86 | |
87 | // =================================================================== |
88 | |
89 | void VersionDef::InitAsDefaultInstance() { |
90 | } |
91 | class VersionDef::_Internal { |
92 | public: |
93 | }; |
94 | |
95 | VersionDef::VersionDef() |
96 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
97 | SharedCtor(); |
98 | // @@protoc_insertion_point(constructor:tensorflow.VersionDef) |
99 | } |
100 | VersionDef::VersionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena) |
101 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
102 | _internal_metadata_(arena), |
103 | bad_consumers_(arena) { |
104 | SharedCtor(); |
105 | RegisterArenaDtor(arena); |
106 | // @@protoc_insertion_point(arena_constructor:tensorflow.VersionDef) |
107 | } |
108 | VersionDef::VersionDef(const VersionDef& from) |
109 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
110 | _internal_metadata_(nullptr), |
111 | bad_consumers_(from.bad_consumers_) { |
112 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
113 | ::memcpy(&producer_, &from.producer_, |
114 | static_cast<size_t>(reinterpret_cast<char*>(&min_consumer_) - |
115 | reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_)); |
116 | // @@protoc_insertion_point(copy_constructor:tensorflow.VersionDef) |
117 | } |
118 | |
119 | void VersionDef::SharedCtor() { |
120 | ::memset(&producer_, 0, static_cast<size_t>( |
121 | reinterpret_cast<char*>(&min_consumer_) - |
122 | reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_)); |
123 | } |
124 | |
125 | VersionDef::~VersionDef() { |
126 | // @@protoc_insertion_point(destructor:tensorflow.VersionDef) |
127 | SharedDtor(); |
128 | } |
129 | |
130 | void VersionDef::SharedDtor() { |
131 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
132 | } |
133 | |
134 | void VersionDef::ArenaDtor(void* object) { |
135 | VersionDef* _this = reinterpret_cast< VersionDef* >(object); |
136 | (void)_this; |
137 | } |
138 | void VersionDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
139 | } |
140 | void VersionDef::SetCachedSize(int size) const { |
141 | _cached_size_.Set(size); |
142 | } |
143 | const VersionDef& VersionDef::default_instance() { |
144 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_VersionDef_tensorflow_2fcore_2fframework_2fversions_2eproto.base); |
145 | return *internal_default_instance(); |
146 | } |
147 | |
148 | |
149 | void VersionDef::Clear() { |
150 | // @@protoc_insertion_point(message_clear_start:tensorflow.VersionDef) |
151 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
152 | // Prevent compiler warnings about cached_has_bits being unused |
153 | (void) cached_has_bits; |
154 | |
155 | bad_consumers_.Clear(); |
156 | ::memset(&producer_, 0, static_cast<size_t>( |
157 | reinterpret_cast<char*>(&min_consumer_) - |
158 | reinterpret_cast<char*>(&producer_)) + sizeof(min_consumer_)); |
159 | _internal_metadata_.Clear(); |
160 | } |
161 | |
162 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
163 | const char* VersionDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
164 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
165 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
166 | while (!ctx->Done(&ptr)) { |
167 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
168 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
169 | CHK_(ptr); |
170 | switch (tag >> 3) { |
171 | // int32 producer = 1; |
172 | case 1: |
173 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
174 | producer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
175 | CHK_(ptr); |
176 | } else goto handle_unusual; |
177 | continue; |
178 | // int32 min_consumer = 2; |
179 | case 2: |
180 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) { |
181 | min_consumer_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
182 | CHK_(ptr); |
183 | } else goto handle_unusual; |
184 | continue; |
185 | // repeated int32 bad_consumers = 3; |
186 | case 3: |
187 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) { |
188 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(mutable_bad_consumers(), ptr, ctx); |
189 | CHK_(ptr); |
190 | } else if (static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24) { |
191 | add_bad_consumers(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr)); |
192 | CHK_(ptr); |
193 | } else goto handle_unusual; |
194 | continue; |
195 | default: { |
196 | handle_unusual: |
197 | if ((tag & 7) == 4 || tag == 0) { |
198 | ctx->SetLastTag(tag); |
199 | goto success; |
200 | } |
201 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
202 | CHK_(ptr != nullptr); |
203 | continue; |
204 | } |
205 | } // switch |
206 | } // while |
207 | success: |
208 | return ptr; |
209 | failure: |
210 | ptr = nullptr; |
211 | goto success; |
212 | #undef CHK_ |
213 | } |
214 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
215 | bool VersionDef::MergePartialFromCodedStream( |
216 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
217 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
218 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
219 | // @@protoc_insertion_point(parse_start:tensorflow.VersionDef) |
220 | for (;;) { |
221 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
222 | tag = p.first; |
223 | if (!p.second) goto handle_unusual; |
224 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
225 | // int32 producer = 1; |
226 | case 1: { |
227 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
228 | |
229 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
230 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
231 | input, &producer_))); |
232 | } else { |
233 | goto handle_unusual; |
234 | } |
235 | break; |
236 | } |
237 | |
238 | // int32 min_consumer = 2; |
239 | case 2: { |
240 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) { |
241 | |
242 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
243 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
244 | input, &min_consumer_))); |
245 | } else { |
246 | goto handle_unusual; |
247 | } |
248 | break; |
249 | } |
250 | |
251 | // repeated int32 bad_consumers = 3; |
252 | case 3: { |
253 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) { |
254 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPackedPrimitive< |
255 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
256 | input, this->mutable_bad_consumers()))); |
257 | } else if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) { |
258 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadRepeatedPrimitiveNoInline< |
259 | ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>( |
260 | 1, 26u, input, this->mutable_bad_consumers()))); |
261 | } else { |
262 | goto handle_unusual; |
263 | } |
264 | break; |
265 | } |
266 | |
267 | default: { |
268 | handle_unusual: |
269 | if (tag == 0) { |
270 | goto success; |
271 | } |
272 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
273 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
274 | break; |
275 | } |
276 | } |
277 | } |
278 | success: |
279 | // @@protoc_insertion_point(parse_success:tensorflow.VersionDef) |
280 | return true; |
281 | failure: |
282 | // @@protoc_insertion_point(parse_failure:tensorflow.VersionDef) |
283 | return false; |
284 | #undef DO_ |
285 | } |
286 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
287 | |
288 | void VersionDef::SerializeWithCachedSizes( |
289 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
290 | // @@protoc_insertion_point(serialize_start:tensorflow.VersionDef) |
291 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
292 | (void) cached_has_bits; |
293 | |
294 | // int32 producer = 1; |
295 | if (this->producer() != 0) { |
296 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(1, this->producer(), output); |
297 | } |
298 | |
299 | // int32 min_consumer = 2; |
300 | if (this->min_consumer() != 0) { |
301 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(2, this->min_consumer(), output); |
302 | } |
303 | |
304 | // repeated int32 bad_consumers = 3; |
305 | if (this->bad_consumers_size() > 0) { |
306 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTag(3, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, output); |
307 | output->WriteVarint32(_bad_consumers_cached_byte_size_.load( |
308 | std::memory_order_relaxed)); |
309 | } |
310 | for (int i = 0, n = this->bad_consumers_size(); i < n; i++) { |
311 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32NoTag( |
312 | this->bad_consumers(i), output); |
313 | } |
314 | |
315 | if (_internal_metadata_.have_unknown_fields()) { |
316 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
317 | _internal_metadata_.unknown_fields(), output); |
318 | } |
319 | // @@protoc_insertion_point(serialize_end:tensorflow.VersionDef) |
320 | } |
321 | |
322 | ::PROTOBUF_NAMESPACE_ID::uint8* VersionDef::InternalSerializeWithCachedSizesToArray( |
323 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
324 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.VersionDef) |
325 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
326 | (void) cached_has_bits; |
327 | |
328 | // int32 producer = 1; |
329 | if (this->producer() != 0) { |
330 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->producer(), target); |
331 | } |
332 | |
333 | // int32 min_consumer = 2; |
334 | if (this->min_consumer() != 0) { |
335 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->min_consumer(), target); |
336 | } |
337 | |
338 | // repeated int32 bad_consumers = 3; |
339 | if (this->bad_consumers_size() > 0) { |
340 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteTagToArray( |
341 | 3, |
342 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED, |
343 | target); |
344 | target = ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream::WriteVarint32ToArray( |
345 | _bad_consumers_cached_byte_size_.load(std::memory_order_relaxed), |
346 | target); |
347 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
348 | WriteInt32NoTagToArray(this->bad_consumers_, target); |
349 | } |
350 | |
351 | if (_internal_metadata_.have_unknown_fields()) { |
352 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
353 | _internal_metadata_.unknown_fields(), target); |
354 | } |
355 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.VersionDef) |
356 | return target; |
357 | } |
358 | |
359 | size_t VersionDef::ByteSizeLong() const { |
360 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.VersionDef) |
361 | size_t total_size = 0; |
362 | |
363 | if (_internal_metadata_.have_unknown_fields()) { |
364 | total_size += |
365 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
366 | _internal_metadata_.unknown_fields()); |
367 | } |
368 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
369 | // Prevent compiler warnings about cached_has_bits being unused |
370 | (void) cached_has_bits; |
371 | |
372 | // repeated int32 bad_consumers = 3; |
373 | { |
374 | size_t data_size = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite:: |
375 | Int32Size(this->bad_consumers_); |
376 | if (data_size > 0) { |
377 | total_size += 1 + |
378 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
379 | static_cast<::PROTOBUF_NAMESPACE_ID::int32>(data_size)); |
380 | } |
381 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(data_size); |
382 | _bad_consumers_cached_byte_size_.store(cached_size, |
383 | std::memory_order_relaxed); |
384 | total_size += data_size; |
385 | } |
386 | |
387 | // int32 producer = 1; |
388 | if (this->producer() != 0) { |
389 | total_size += 1 + |
390 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
391 | this->producer()); |
392 | } |
393 | |
394 | // int32 min_consumer = 2; |
395 | if (this->min_consumer() != 0) { |
396 | total_size += 1 + |
397 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size( |
398 | this->min_consumer()); |
399 | } |
400 | |
401 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
402 | SetCachedSize(cached_size); |
403 | return total_size; |
404 | } |
405 | |
406 | void VersionDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
407 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.VersionDef) |
408 | GOOGLE_DCHECK_NE(&from, this); |
409 | const VersionDef* source = |
410 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<VersionDef>( |
411 | &from); |
412 | if (source == nullptr) { |
413 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.VersionDef) |
414 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
415 | } else { |
416 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.VersionDef) |
417 | MergeFrom(*source); |
418 | } |
419 | } |
420 | |
421 | void VersionDef::MergeFrom(const VersionDef& from) { |
422 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.VersionDef) |
423 | GOOGLE_DCHECK_NE(&from, this); |
424 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
425 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
426 | (void) cached_has_bits; |
427 | |
428 | bad_consumers_.MergeFrom(from.bad_consumers_); |
429 | if (from.producer() != 0) { |
430 | set_producer(from.producer()); |
431 | } |
432 | if (from.min_consumer() != 0) { |
433 | set_min_consumer(from.min_consumer()); |
434 | } |
435 | } |
436 | |
437 | void VersionDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
438 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.VersionDef) |
439 | if (&from == this) return; |
440 | Clear(); |
441 | MergeFrom(from); |
442 | } |
443 | |
444 | void VersionDef::CopyFrom(const VersionDef& from) { |
445 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.VersionDef) |
446 | if (&from == this) return; |
447 | Clear(); |
448 | MergeFrom(from); |
449 | } |
450 | |
451 | bool VersionDef::IsInitialized() const { |
452 | return true; |
453 | } |
454 | |
455 | void VersionDef::InternalSwap(VersionDef* other) { |
456 | using std::swap; |
457 | _internal_metadata_.Swap(&other->_internal_metadata_); |
458 | bad_consumers_.InternalSwap(&other->bad_consumers_); |
459 | swap(producer_, other->producer_); |
460 | swap(min_consumer_, other->min_consumer_); |
461 | } |
462 | |
463 | ::PROTOBUF_NAMESPACE_ID::Metadata VersionDef::GetMetadata() const { |
464 | return GetMetadataStatic(); |
465 | } |
466 | |
467 | |
468 | // @@protoc_insertion_point(namespace_scope) |
469 | } // namespace tensorflow |
470 | PROTOBUF_NAMESPACE_OPEN |
471 | template<> PROTOBUF_NOINLINE ::tensorflow::VersionDef* Arena::CreateMaybeMessage< ::tensorflow::VersionDef >(Arena* arena) { |
472 | return Arena::CreateMessageInternal< ::tensorflow::VersionDef >(arena); |
473 | } |
474 | PROTOBUF_NAMESPACE_CLOSE |
475 | |
476 | // @@protoc_insertion_point(global_scope) |
477 | #include <google/protobuf/port_undef.inc> |
478 | |