1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/core_platform_payloads.proto |
3 | |
4 | #include "tensorflow/core/protobuf/core_platform_payloads.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 | namespace core { |
20 | namespace platform { |
21 | class ErrorSourceProtoDefaultTypeInternal { |
22 | public: |
23 | ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ErrorSourceProto> _instance; |
24 | } _ErrorSourceProto_default_instance_; |
25 | } // namespace platform |
26 | } // namespace core |
27 | } // namespace tensorflow |
28 | static void InitDefaultsscc_info_ErrorSourceProto_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto() { |
29 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
30 | |
31 | { |
32 | void* ptr = &::tensorflow::core::platform::_ErrorSourceProto_default_instance_; |
33 | new (ptr) ::tensorflow::core::platform::ErrorSourceProto(); |
34 | ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr); |
35 | } |
36 | ::tensorflow::core::platform::ErrorSourceProto::InitAsDefaultInstance(); |
37 | } |
38 | |
39 | ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ErrorSourceProto_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto = |
40 | {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ErrorSourceProto_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto}, {}}; |
41 | |
42 | static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto[1]; |
43 | static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto[1]; |
44 | static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto = nullptr; |
45 | |
46 | const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
47 | ~0u, // no _has_bits_ |
48 | PROTOBUF_FIELD_OFFSET(::tensorflow::core::platform::ErrorSourceProto, _internal_metadata_), |
49 | ~0u, // no _extensions_ |
50 | ~0u, // no _oneof_case_ |
51 | ~0u, // no _weak_field_map_ |
52 | PROTOBUF_FIELD_OFFSET(::tensorflow::core::platform::ErrorSourceProto, error_source_), |
53 | }; |
54 | static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = { |
55 | { 0, -1, sizeof(::tensorflow::core::platform::ErrorSourceProto)}, |
56 | }; |
57 | |
58 | static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = { |
59 | reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::core::platform::_ErrorSourceProto_default_instance_), |
60 | }; |
61 | |
62 | const char descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = |
63 | "\n5tensorflow/core/protobuf/core_platform" |
64 | "_payloads.proto\022\030tensorflow.core.platfor" |
65 | "m\"\354\001\n\020ErrorSourceProto\022L\n\014error_source\030\001" |
66 | " \001(\01626.tensorflow.core.platform.ErrorSou" |
67 | "rceProto.ErrorSource\"\211\001\n\013ErrorSource\022\013\n\007" |
68 | "UNKNOWN\020\000\022\022\n\016TPU_COMPILE_OP\020\001\022\021\n\rTF_XLA_" |
69 | "BRIDGE\020\002\022\027\n\023MLIR_BRIDGE_PHASE_1\020\003\022\027\n\023MLI" |
70 | "R_BRIDGE_PHASE_2\020\004\022\024\n\020EAGER_REMOTE_MGR\020\005" |
71 | "BZZUgithub.com/tensorflow/tensorflow/ten" |
72 | "sorflow/go/core/protobuf/for_core_protos" |
73 | "_go_proto\370\001\001b\006proto3" |
74 | ; |
75 | static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto_deps[1] = { |
76 | }; |
77 | static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto_sccs[1] = { |
78 | &scc_info_ErrorSourceProto_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto.base, |
79 | }; |
80 | static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto_once; |
81 | static bool descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto_initialized = false; |
82 | const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto = { |
83 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto, "tensorflow/core/protobuf/core_platform_payloads.proto" , 420, |
84 | &descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto_once, descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto_deps, 1, 0, |
85 | schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto::offsets, |
86 | file_level_metadata_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto, 1, file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto, |
87 | }; |
88 | |
89 | // Force running AddDescriptors() at dynamic initialization time. |
90 | static bool dynamic_init_dummy_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto), true); |
91 | namespace tensorflow { |
92 | namespace core { |
93 | namespace platform { |
94 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ErrorSourceProto_ErrorSource_descriptor() { |
95 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto); |
96 | return file_level_enum_descriptors_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto[0]; |
97 | } |
98 | bool ErrorSourceProto_ErrorSource_IsValid(int value) { |
99 | switch (value) { |
100 | case 0: |
101 | case 1: |
102 | case 2: |
103 | case 3: |
104 | case 4: |
105 | case 5: |
106 | return true; |
107 | default: |
108 | return false; |
109 | } |
110 | } |
111 | |
112 | #if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
113 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto::UNKNOWN; |
114 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto::TPU_COMPILE_OP; |
115 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto::TF_XLA_BRIDGE; |
116 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto::MLIR_BRIDGE_PHASE_1; |
117 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto::MLIR_BRIDGE_PHASE_2; |
118 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto::EAGER_REMOTE_MGR; |
119 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto::ErrorSource_MIN; |
120 | constexpr ErrorSourceProto_ErrorSource ErrorSourceProto::ErrorSource_MAX; |
121 | constexpr int ErrorSourceProto::ErrorSource_ARRAYSIZE; |
122 | #endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900) |
123 | |
124 | // =================================================================== |
125 | |
126 | void ErrorSourceProto::InitAsDefaultInstance() { |
127 | } |
128 | class ErrorSourceProto::_Internal { |
129 | public: |
130 | }; |
131 | |
132 | ErrorSourceProto::ErrorSourceProto() |
133 | : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) { |
134 | SharedCtor(); |
135 | // @@protoc_insertion_point(constructor:tensorflow.core.platform.ErrorSourceProto) |
136 | } |
137 | ErrorSourceProto::ErrorSourceProto(::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.core.platform.ErrorSourceProto) |
143 | } |
144 | ErrorSourceProto::ErrorSourceProto(const ErrorSourceProto& from) |
145 | : ::PROTOBUF_NAMESPACE_ID::Message(), |
146 | _internal_metadata_(nullptr) { |
147 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
148 | error_source_ = from.error_source_; |
149 | // @@protoc_insertion_point(copy_constructor:tensorflow.core.platform.ErrorSourceProto) |
150 | } |
151 | |
152 | void ErrorSourceProto::SharedCtor() { |
153 | error_source_ = 0; |
154 | } |
155 | |
156 | ErrorSourceProto::~ErrorSourceProto() { |
157 | // @@protoc_insertion_point(destructor:tensorflow.core.platform.ErrorSourceProto) |
158 | SharedDtor(); |
159 | } |
160 | |
161 | void ErrorSourceProto::SharedDtor() { |
162 | GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr); |
163 | } |
164 | |
165 | void ErrorSourceProto::ArenaDtor(void* object) { |
166 | ErrorSourceProto* _this = reinterpret_cast< ErrorSourceProto* >(object); |
167 | (void)_this; |
168 | } |
169 | void ErrorSourceProto::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) { |
170 | } |
171 | void ErrorSourceProto::SetCachedSize(int size) const { |
172 | _cached_size_.Set(size); |
173 | } |
174 | const ErrorSourceProto& ErrorSourceProto::default_instance() { |
175 | ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ErrorSourceProto_tensorflow_2fcore_2fprotobuf_2fcore_5fplatform_5fpayloads_2eproto.base); |
176 | return *internal_default_instance(); |
177 | } |
178 | |
179 | |
180 | void ErrorSourceProto::Clear() { |
181 | // @@protoc_insertion_point(message_clear_start:tensorflow.core.platform.ErrorSourceProto) |
182 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
183 | // Prevent compiler warnings about cached_has_bits being unused |
184 | (void) cached_has_bits; |
185 | |
186 | error_source_ = 0; |
187 | _internal_metadata_.Clear(); |
188 | } |
189 | |
190 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
191 | const char* ErrorSourceProto::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) { |
192 | #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure |
193 | ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena; |
194 | while (!ctx->Done(&ptr)) { |
195 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
196 | ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag); |
197 | CHK_(ptr); |
198 | switch (tag >> 3) { |
199 | // .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; |
200 | case 1: |
201 | if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) { |
202 | ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr); |
203 | CHK_(ptr); |
204 | set_error_source(static_cast<::tensorflow::core::platform::ErrorSourceProto_ErrorSource>(val)); |
205 | } else goto handle_unusual; |
206 | continue; |
207 | default: { |
208 | handle_unusual: |
209 | if ((tag & 7) == 4 || tag == 0) { |
210 | ctx->SetLastTag(tag); |
211 | goto success; |
212 | } |
213 | ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx); |
214 | CHK_(ptr != nullptr); |
215 | continue; |
216 | } |
217 | } // switch |
218 | } // while |
219 | success: |
220 | return ptr; |
221 | failure: |
222 | ptr = nullptr; |
223 | goto success; |
224 | #undef CHK_ |
225 | } |
226 | #else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
227 | bool ErrorSourceProto::MergePartialFromCodedStream( |
228 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) { |
229 | #define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure |
230 | ::PROTOBUF_NAMESPACE_ID::uint32 tag; |
231 | // @@protoc_insertion_point(parse_start:tensorflow.core.platform.ErrorSourceProto) |
232 | for (;;) { |
233 | ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u); |
234 | tag = p.first; |
235 | if (!p.second) goto handle_unusual; |
236 | switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) { |
237 | // .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; |
238 | case 1: { |
239 | if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (8 & 0xFF)) { |
240 | int value = 0; |
241 | DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive< |
242 | int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>( |
243 | input, &value))); |
244 | set_error_source(static_cast< ::tensorflow::core::platform::ErrorSourceProto_ErrorSource >(value)); |
245 | } else { |
246 | goto handle_unusual; |
247 | } |
248 | break; |
249 | } |
250 | |
251 | default: { |
252 | handle_unusual: |
253 | if (tag == 0) { |
254 | goto success; |
255 | } |
256 | DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField( |
257 | input, tag, _internal_metadata_.mutable_unknown_fields())); |
258 | break; |
259 | } |
260 | } |
261 | } |
262 | success: |
263 | // @@protoc_insertion_point(parse_success:tensorflow.core.platform.ErrorSourceProto) |
264 | return true; |
265 | failure: |
266 | // @@protoc_insertion_point(parse_failure:tensorflow.core.platform.ErrorSourceProto) |
267 | return false; |
268 | #undef DO_ |
269 | } |
270 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
271 | |
272 | void ErrorSourceProto::SerializeWithCachedSizes( |
273 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const { |
274 | // @@protoc_insertion_point(serialize_start:tensorflow.core.platform.ErrorSourceProto) |
275 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
276 | (void) cached_has_bits; |
277 | |
278 | // .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; |
279 | if (this->error_source() != 0) { |
280 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum( |
281 | 1, this->error_source(), output); |
282 | } |
283 | |
284 | if (_internal_metadata_.have_unknown_fields()) { |
285 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields( |
286 | _internal_metadata_.unknown_fields(), output); |
287 | } |
288 | // @@protoc_insertion_point(serialize_end:tensorflow.core.platform.ErrorSourceProto) |
289 | } |
290 | |
291 | ::PROTOBUF_NAMESPACE_ID::uint8* ErrorSourceProto::InternalSerializeWithCachedSizesToArray( |
292 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const { |
293 | // @@protoc_insertion_point(serialize_to_array_start:tensorflow.core.platform.ErrorSourceProto) |
294 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
295 | (void) cached_has_bits; |
296 | |
297 | // .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; |
298 | if (this->error_source() != 0) { |
299 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray( |
300 | 1, this->error_source(), target); |
301 | } |
302 | |
303 | if (_internal_metadata_.have_unknown_fields()) { |
304 | target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray( |
305 | _internal_metadata_.unknown_fields(), target); |
306 | } |
307 | // @@protoc_insertion_point(serialize_to_array_end:tensorflow.core.platform.ErrorSourceProto) |
308 | return target; |
309 | } |
310 | |
311 | size_t ErrorSourceProto::ByteSizeLong() const { |
312 | // @@protoc_insertion_point(message_byte_size_start:tensorflow.core.platform.ErrorSourceProto) |
313 | size_t total_size = 0; |
314 | |
315 | if (_internal_metadata_.have_unknown_fields()) { |
316 | total_size += |
317 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize( |
318 | _internal_metadata_.unknown_fields()); |
319 | } |
320 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
321 | // Prevent compiler warnings about cached_has_bits being unused |
322 | (void) cached_has_bits; |
323 | |
324 | // .tensorflow.core.platform.ErrorSourceProto.ErrorSource error_source = 1; |
325 | if (this->error_source() != 0) { |
326 | total_size += 1 + |
327 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->error_source()); |
328 | } |
329 | |
330 | int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size); |
331 | SetCachedSize(cached_size); |
332 | return total_size; |
333 | } |
334 | |
335 | void ErrorSourceProto::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
336 | // @@protoc_insertion_point(generalized_merge_from_start:tensorflow.core.platform.ErrorSourceProto) |
337 | GOOGLE_DCHECK_NE(&from, this); |
338 | const ErrorSourceProto* source = |
339 | ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ErrorSourceProto>( |
340 | &from); |
341 | if (source == nullptr) { |
342 | // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.core.platform.ErrorSourceProto) |
343 | ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this); |
344 | } else { |
345 | // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.core.platform.ErrorSourceProto) |
346 | MergeFrom(*source); |
347 | } |
348 | } |
349 | |
350 | void ErrorSourceProto::MergeFrom(const ErrorSourceProto& from) { |
351 | // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.core.platform.ErrorSourceProto) |
352 | GOOGLE_DCHECK_NE(&from, this); |
353 | _internal_metadata_.MergeFrom(from._internal_metadata_); |
354 | ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0; |
355 | (void) cached_has_bits; |
356 | |
357 | if (from.error_source() != 0) { |
358 | set_error_source(from.error_source()); |
359 | } |
360 | } |
361 | |
362 | void ErrorSourceProto::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) { |
363 | // @@protoc_insertion_point(generalized_copy_from_start:tensorflow.core.platform.ErrorSourceProto) |
364 | if (&from == this) return; |
365 | Clear(); |
366 | MergeFrom(from); |
367 | } |
368 | |
369 | void ErrorSourceProto::CopyFrom(const ErrorSourceProto& from) { |
370 | // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.core.platform.ErrorSourceProto) |
371 | if (&from == this) return; |
372 | Clear(); |
373 | MergeFrom(from); |
374 | } |
375 | |
376 | bool ErrorSourceProto::IsInitialized() const { |
377 | return true; |
378 | } |
379 | |
380 | void ErrorSourceProto::InternalSwap(ErrorSourceProto* other) { |
381 | using std::swap; |
382 | _internal_metadata_.Swap(&other->_internal_metadata_); |
383 | swap(error_source_, other->error_source_); |
384 | } |
385 | |
386 | ::PROTOBUF_NAMESPACE_ID::Metadata ErrorSourceProto::GetMetadata() const { |
387 | return GetMetadataStatic(); |
388 | } |
389 | |
390 | |
391 | // @@protoc_insertion_point(namespace_scope) |
392 | } // namespace platform |
393 | } // namespace core |
394 | } // namespace tensorflow |
395 | PROTOBUF_NAMESPACE_OPEN |
396 | template<> PROTOBUF_NOINLINE ::tensorflow::core::platform::ErrorSourceProto* Arena::CreateMaybeMessage< ::tensorflow::core::platform::ErrorSourceProto >(Arena* arena) { |
397 | return Arena::CreateMessageInternal< ::tensorflow::core::platform::ErrorSourceProto >(arena); |
398 | } |
399 | PROTOBUF_NAMESPACE_CLOSE |
400 | |
401 | // @@protoc_insertion_point(global_scope) |
402 | #include <google/protobuf/port_undef.inc> |
403 | |