1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: tensorflow/core/framework/api_def.proto
3 
4 #include "tensorflow/core/framework/api_def.pb.h"
5 
6 #include <algorithm>
7 #include <cstdint>
8 
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/io/zero_copy_stream_impl_lite.h>
13 // @@protoc_insertion_point(includes)
14 #include <google/protobuf/port_def.inc>
15 
16 PROTOBUF_PRAGMA_INIT_SEG
17 
18 namespace _pb = ::PROTOBUF_NAMESPACE_ID;
19 namespace _pbi = _pb::internal;
20 
21 namespace tensorflow {
ApiDef_Endpoint(::_pbi::ConstantInitialized)22 PROTOBUF_CONSTEXPR ApiDef_Endpoint::ApiDef_Endpoint(
23     ::_pbi::ConstantInitialized): _impl_{
24     /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
25   , /*decltype(_impl_.deprecated_)*/false
26   , /*decltype(_impl_.deprecation_version_)*/0
27   , /*decltype(_impl_._cached_size_)*/{}} {}
28 struct ApiDef_EndpointDefaultTypeInternal {
ApiDef_EndpointDefaultTypeInternaltensorflow::ApiDef_EndpointDefaultTypeInternal29   PROTOBUF_CONSTEXPR ApiDef_EndpointDefaultTypeInternal()
30       : _instance(::_pbi::ConstantInitialized{}) {}
~ApiDef_EndpointDefaultTypeInternaltensorflow::ApiDef_EndpointDefaultTypeInternal31   ~ApiDef_EndpointDefaultTypeInternal() {}
32   union {  // NOLINT(misc-non-private-member-variables-in-classes)
33     ApiDef_Endpoint _instance;
34   };
35 };
36 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApiDef_EndpointDefaultTypeInternal _ApiDef_Endpoint_default_instance_;
ApiDef_Arg(::_pbi::ConstantInitialized)37 PROTOBUF_CONSTEXPR ApiDef_Arg::ApiDef_Arg(
38     ::_pbi::ConstantInitialized): _impl_{
39     /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
40   , /*decltype(_impl_.rename_to_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
41   , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
42   , /*decltype(_impl_._cached_size_)*/{}} {}
43 struct ApiDef_ArgDefaultTypeInternal {
ApiDef_ArgDefaultTypeInternaltensorflow::ApiDef_ArgDefaultTypeInternal44   PROTOBUF_CONSTEXPR ApiDef_ArgDefaultTypeInternal()
45       : _instance(::_pbi::ConstantInitialized{}) {}
~ApiDef_ArgDefaultTypeInternaltensorflow::ApiDef_ArgDefaultTypeInternal46   ~ApiDef_ArgDefaultTypeInternal() {}
47   union {  // NOLINT(misc-non-private-member-variables-in-classes)
48     ApiDef_Arg _instance;
49   };
50 };
51 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApiDef_ArgDefaultTypeInternal _ApiDef_Arg_default_instance_;
ApiDef_Attr(::_pbi::ConstantInitialized)52 PROTOBUF_CONSTEXPR ApiDef_Attr::ApiDef_Attr(
53     ::_pbi::ConstantInitialized): _impl_{
54     /*decltype(_impl_.name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
55   , /*decltype(_impl_.rename_to_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
56   , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
57   , /*decltype(_impl_.default_value_)*/nullptr
58   , /*decltype(_impl_._cached_size_)*/{}} {}
59 struct ApiDef_AttrDefaultTypeInternal {
ApiDef_AttrDefaultTypeInternaltensorflow::ApiDef_AttrDefaultTypeInternal60   PROTOBUF_CONSTEXPR ApiDef_AttrDefaultTypeInternal()
61       : _instance(::_pbi::ConstantInitialized{}) {}
~ApiDef_AttrDefaultTypeInternaltensorflow::ApiDef_AttrDefaultTypeInternal62   ~ApiDef_AttrDefaultTypeInternal() {}
63   union {  // NOLINT(misc-non-private-member-variables-in-classes)
64     ApiDef_Attr _instance;
65   };
66 };
67 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApiDef_AttrDefaultTypeInternal _ApiDef_Attr_default_instance_;
ApiDef(::_pbi::ConstantInitialized)68 PROTOBUF_CONSTEXPR ApiDef::ApiDef(
69     ::_pbi::ConstantInitialized): _impl_{
70     /*decltype(_impl_.endpoint_)*/{}
71   , /*decltype(_impl_.in_arg_)*/{}
72   , /*decltype(_impl_.out_arg_)*/{}
73   , /*decltype(_impl_.attr_)*/{}
74   , /*decltype(_impl_.arg_order_)*/{}
75   , /*decltype(_impl_.graph_op_name_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
76   , /*decltype(_impl_.summary_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
77   , /*decltype(_impl_.description_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
78   , /*decltype(_impl_.description_prefix_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
79   , /*decltype(_impl_.description_suffix_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
80   , /*decltype(_impl_.deprecation_message_)*/{&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}}
81   , /*decltype(_impl_.visibility_)*/0
82   , /*decltype(_impl_.deprecation_version_)*/0
83   , /*decltype(_impl_._cached_size_)*/{}} {}
84 struct ApiDefDefaultTypeInternal {
ApiDefDefaultTypeInternaltensorflow::ApiDefDefaultTypeInternal85   PROTOBUF_CONSTEXPR ApiDefDefaultTypeInternal()
86       : _instance(::_pbi::ConstantInitialized{}) {}
~ApiDefDefaultTypeInternaltensorflow::ApiDefDefaultTypeInternal87   ~ApiDefDefaultTypeInternal() {}
88   union {  // NOLINT(misc-non-private-member-variables-in-classes)
89     ApiDef _instance;
90   };
91 };
92 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApiDefDefaultTypeInternal _ApiDef_default_instance_;
ApiDefs(::_pbi::ConstantInitialized)93 PROTOBUF_CONSTEXPR ApiDefs::ApiDefs(
94     ::_pbi::ConstantInitialized): _impl_{
95     /*decltype(_impl_.op_)*/{}
96   , /*decltype(_impl_._cached_size_)*/{}} {}
97 struct ApiDefsDefaultTypeInternal {
ApiDefsDefaultTypeInternaltensorflow::ApiDefsDefaultTypeInternal98   PROTOBUF_CONSTEXPR ApiDefsDefaultTypeInternal()
99       : _instance(::_pbi::ConstantInitialized{}) {}
~ApiDefsDefaultTypeInternaltensorflow::ApiDefsDefaultTypeInternal100   ~ApiDefsDefaultTypeInternal() {}
101   union {  // NOLINT(misc-non-private-member-variables-in-classes)
102     ApiDefs _instance;
103   };
104 };
105 PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ApiDefsDefaultTypeInternal _ApiDefs_default_instance_;
106 }  // namespace tensorflow
107 namespace tensorflow {
ApiDef_Visibility_IsValid(int value)108 bool ApiDef_Visibility_IsValid(int value) {
109   switch (value) {
110     case 0:
111     case 1:
112     case 2:
113     case 3:
114       return true;
115     default:
116       return false;
117   }
118 }
119 
120 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> ApiDef_Visibility_strings[4] = {};
121 
122 static const char ApiDef_Visibility_names[] =
123   "DEFAULT_VISIBILITY"
124   "HIDDEN"
125   "SKIP"
126   "VISIBLE";
127 
128 static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry ApiDef_Visibility_entries[] = {
129   { {ApiDef_Visibility_names + 0, 18}, 0 },
130   { {ApiDef_Visibility_names + 18, 6}, 3 },
131   { {ApiDef_Visibility_names + 24, 4}, 2 },
132   { {ApiDef_Visibility_names + 28, 7}, 1 },
133 };
134 
135 static const int ApiDef_Visibility_entries_by_number[] = {
136   0, // 0 -> DEFAULT_VISIBILITY
137   3, // 1 -> VISIBLE
138   2, // 2 -> SKIP
139   1, // 3 -> HIDDEN
140 };
141 
ApiDef_Visibility_Name(ApiDef_Visibility value)142 const std::string& ApiDef_Visibility_Name(
143     ApiDef_Visibility value) {
144   static const bool dummy =
145       ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
146           ApiDef_Visibility_entries,
147           ApiDef_Visibility_entries_by_number,
148           4, ApiDef_Visibility_strings);
149   (void) dummy;
150   int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
151       ApiDef_Visibility_entries,
152       ApiDef_Visibility_entries_by_number,
153       4, value);
154   return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString() :
155                      ApiDef_Visibility_strings[idx].get();
156 }
ApiDef_Visibility_Parse(::PROTOBUF_NAMESPACE_ID::ConstStringParam name,ApiDef_Visibility * value)157 bool ApiDef_Visibility_Parse(
158     ::PROTOBUF_NAMESPACE_ID::ConstStringParam name, ApiDef_Visibility* value) {
159   int int_value;
160   bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
161       ApiDef_Visibility_entries, 4, name, &int_value);
162   if (success) {
163     *value = static_cast<ApiDef_Visibility>(int_value);
164   }
165   return success;
166 }
167 #if (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
168 constexpr ApiDef_Visibility ApiDef::DEFAULT_VISIBILITY;
169 constexpr ApiDef_Visibility ApiDef::VISIBLE;
170 constexpr ApiDef_Visibility ApiDef::SKIP;
171 constexpr ApiDef_Visibility ApiDef::HIDDEN;
172 constexpr ApiDef_Visibility ApiDef::Visibility_MIN;
173 constexpr ApiDef_Visibility ApiDef::Visibility_MAX;
174 constexpr int ApiDef::Visibility_ARRAYSIZE;
175 #endif  // (__cplusplus < 201703) && (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
176 
177 // ===================================================================
178 
179 class ApiDef_Endpoint::_Internal {
180  public:
181 };
182 
ApiDef_Endpoint(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)183 ApiDef_Endpoint::ApiDef_Endpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena,
184                          bool is_message_owned)
185   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
186   SharedCtor(arena, is_message_owned);
187   // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDef.Endpoint)
188 }
ApiDef_Endpoint(const ApiDef_Endpoint & from)189 ApiDef_Endpoint::ApiDef_Endpoint(const ApiDef_Endpoint& from)
190   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
191   ApiDef_Endpoint* const _this = this; (void)_this;
192   new (&_impl_) Impl_{
193       decltype(_impl_.name_){}
194     , decltype(_impl_.deprecated_){}
195     , decltype(_impl_.deprecation_version_){}
196     , /*decltype(_impl_._cached_size_)*/{}};
197 
198   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
199   _impl_.name_.InitDefault();
200   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
201     _impl_.name_.Set("", GetArenaForAllocation());
202   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
203   if (!from._internal_name().empty()) {
204     _this->_impl_.name_.Set(from._internal_name(),
205       _this->GetArenaForAllocation());
206   }
207   ::memcpy(&_impl_.deprecated_, &from._impl_.deprecated_,
208     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.deprecation_version_) -
209     reinterpret_cast<char*>(&_impl_.deprecated_)) + sizeof(_impl_.deprecation_version_));
210   // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDef.Endpoint)
211 }
212 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)213 inline void ApiDef_Endpoint::SharedCtor(
214     ::_pb::Arena* arena, bool is_message_owned) {
215   (void)arena;
216   (void)is_message_owned;
217   new (&_impl_) Impl_{
218       decltype(_impl_.name_){}
219     , decltype(_impl_.deprecated_){false}
220     , decltype(_impl_.deprecation_version_){0}
221     , /*decltype(_impl_._cached_size_)*/{}
222   };
223   _impl_.name_.InitDefault();
224   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
225     _impl_.name_.Set("", GetArenaForAllocation());
226   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
227 }
228 
~ApiDef_Endpoint()229 ApiDef_Endpoint::~ApiDef_Endpoint() {
230   // @@protoc_insertion_point(destructor:tensorflow.ApiDef.Endpoint)
231   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
232   (void)arena;
233     return;
234   }
235   SharedDtor();
236 }
237 
SharedDtor()238 inline void ApiDef_Endpoint::SharedDtor() {
239   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
240   _impl_.name_.Destroy();
241 }
242 
SetCachedSize(int size) const243 void ApiDef_Endpoint::SetCachedSize(int size) const {
244   _impl_._cached_size_.Set(size);
245 }
246 
Clear()247 void ApiDef_Endpoint::Clear() {
248 // @@protoc_insertion_point(message_clear_start:tensorflow.ApiDef.Endpoint)
249   ::uint32_t cached_has_bits = 0;
250   // Prevent compiler warnings about cached_has_bits being unused
251   (void) cached_has_bits;
252 
253   _impl_.name_.ClearToEmpty();
254   ::memset(&_impl_.deprecated_, 0, static_cast<size_t>(
255       reinterpret_cast<char*>(&_impl_.deprecation_version_) -
256       reinterpret_cast<char*>(&_impl_.deprecated_)) + sizeof(_impl_.deprecation_version_));
257   _internal_metadata_.Clear<std::string>();
258 }
259 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)260 const char* ApiDef_Endpoint::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
261 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
262   while (!ctx->Done(&ptr)) {
263     ::uint32_t tag;
264     ptr = ::_pbi::ReadTag(ptr, &tag);
265     switch (tag >> 3) {
266       // string name = 1;
267       case 1:
268         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
269           auto str = _internal_mutable_name();
270           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
271           CHK_(ptr);
272           CHK_(::_pbi::VerifyUTF8(str, nullptr));
273         } else {
274           goto handle_unusual;
275         }
276         continue;
277       // bool deprecated = 3;
278       case 3:
279         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
280           _impl_.deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
281           CHK_(ptr);
282         } else {
283           goto handle_unusual;
284         }
285         continue;
286       // int32 deprecation_version = 4;
287       case 4:
288         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
289           _impl_.deprecation_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
290           CHK_(ptr);
291         } else {
292           goto handle_unusual;
293         }
294         continue;
295       default:
296         goto handle_unusual;
297     }  // switch
298   handle_unusual:
299     if ((tag == 0) || ((tag & 7) == 4)) {
300       CHK_(ptr);
301       ctx->SetLastTag(tag);
302       goto message_done;
303     }
304     ptr = UnknownFieldParse(
305         tag,
306         _internal_metadata_.mutable_unknown_fields<std::string>(),
307         ptr, ctx);
308     CHK_(ptr != nullptr);
309   }  // while
310 message_done:
311   return ptr;
312 failure:
313   ptr = nullptr;
314   goto message_done;
315 #undef CHK_
316 }
317 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const318 ::uint8_t* ApiDef_Endpoint::_InternalSerialize(
319     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
320   // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDef.Endpoint)
321   ::uint32_t cached_has_bits = 0;
322   (void) cached_has_bits;
323 
324   // string name = 1;
325   if (!this->_internal_name().empty()) {
326     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
327       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
328       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
329       "tensorflow.ApiDef.Endpoint.name");
330     target = stream->WriteStringMaybeAliased(
331         1, this->_internal_name(), target);
332   }
333 
334   // bool deprecated = 3;
335   if (this->_internal_deprecated() != 0) {
336     target = stream->EnsureSpace(target);
337     target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_deprecated(), target);
338   }
339 
340   // int32 deprecation_version = 4;
341   if (this->_internal_deprecation_version() != 0) {
342     target = stream->EnsureSpace(target);
343     target = ::_pbi::WireFormatLite::WriteInt32ToArray(4, this->_internal_deprecation_version(), target);
344   }
345 
346   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
347     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
348         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
349   }
350   // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDef.Endpoint)
351   return target;
352 }
353 
ByteSizeLong() const354 size_t ApiDef_Endpoint::ByteSizeLong() const {
355 // @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDef.Endpoint)
356   size_t total_size = 0;
357 
358   ::uint32_t cached_has_bits = 0;
359   // Prevent compiler warnings about cached_has_bits being unused
360   (void) cached_has_bits;
361 
362   // string name = 1;
363   if (!this->_internal_name().empty()) {
364     total_size += 1 +
365       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
366         this->_internal_name());
367   }
368 
369   // bool deprecated = 3;
370   if (this->_internal_deprecated() != 0) {
371     total_size += 1 + 1;
372   }
373 
374   // int32 deprecation_version = 4;
375   if (this->_internal_deprecation_version() != 0) {
376     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_deprecation_version());
377   }
378 
379   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
380     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
381   }
382   int cached_size = ::_pbi::ToCachedSize(total_size);
383   SetCachedSize(cached_size);
384   return total_size;
385 }
386 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)387 void ApiDef_Endpoint::CheckTypeAndMergeFrom(
388     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
389   MergeFrom(*::_pbi::DownCast<const ApiDef_Endpoint*>(
390       &from));
391 }
392 
MergeFrom(const ApiDef_Endpoint & from)393 void ApiDef_Endpoint::MergeFrom(const ApiDef_Endpoint& from) {
394   ApiDef_Endpoint* const _this = this;
395   // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDef.Endpoint)
396   GOOGLE_DCHECK_NE(&from, _this);
397   ::uint32_t cached_has_bits = 0;
398   (void) cached_has_bits;
399 
400   if (!from._internal_name().empty()) {
401     _this->_internal_set_name(from._internal_name());
402   }
403   if (from._internal_deprecated() != 0) {
404     _this->_internal_set_deprecated(from._internal_deprecated());
405   }
406   if (from._internal_deprecation_version() != 0) {
407     _this->_internal_set_deprecation_version(from._internal_deprecation_version());
408   }
409   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
410 }
411 
CopyFrom(const ApiDef_Endpoint & from)412 void ApiDef_Endpoint::CopyFrom(const ApiDef_Endpoint& from) {
413 // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDef.Endpoint)
414   if (&from == this) return;
415   Clear();
416   MergeFrom(from);
417 }
418 
IsInitialized() const419 bool ApiDef_Endpoint::IsInitialized() const {
420   return true;
421 }
422 
InternalSwap(ApiDef_Endpoint * other)423 void ApiDef_Endpoint::InternalSwap(ApiDef_Endpoint* other) {
424   using std::swap;
425   auto* lhs_arena = GetArenaForAllocation();
426   auto* rhs_arena = other->GetArenaForAllocation();
427   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
428   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
429       &_impl_.name_, lhs_arena,
430       &other->_impl_.name_, rhs_arena
431   );
432   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
433       PROTOBUF_FIELD_OFFSET(ApiDef_Endpoint, _impl_.deprecation_version_)
434       + sizeof(ApiDef_Endpoint::_impl_.deprecation_version_)  // NOLINT
435       - PROTOBUF_FIELD_OFFSET(ApiDef_Endpoint, _impl_.deprecated_)>(
436           reinterpret_cast<char*>(&_impl_.deprecated_),
437           reinterpret_cast<char*>(&other->_impl_.deprecated_));
438 }
439 
GetTypeName() const440 std::string ApiDef_Endpoint::GetTypeName() const {
441   return "tensorflow.ApiDef.Endpoint";
442 }
443 
444 
445 // ===================================================================
446 
447 class ApiDef_Arg::_Internal {
448  public:
449 };
450 
ApiDef_Arg(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)451 ApiDef_Arg::ApiDef_Arg(::PROTOBUF_NAMESPACE_ID::Arena* arena,
452                          bool is_message_owned)
453   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
454   SharedCtor(arena, is_message_owned);
455   // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDef.Arg)
456 }
ApiDef_Arg(const ApiDef_Arg & from)457 ApiDef_Arg::ApiDef_Arg(const ApiDef_Arg& from)
458   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
459   ApiDef_Arg* const _this = this; (void)_this;
460   new (&_impl_) Impl_{
461       decltype(_impl_.name_){}
462     , decltype(_impl_.rename_to_){}
463     , decltype(_impl_.description_){}
464     , /*decltype(_impl_._cached_size_)*/{}};
465 
466   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
467   _impl_.name_.InitDefault();
468   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
469     _impl_.name_.Set("", GetArenaForAllocation());
470   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
471   if (!from._internal_name().empty()) {
472     _this->_impl_.name_.Set(from._internal_name(),
473       _this->GetArenaForAllocation());
474   }
475   _impl_.rename_to_.InitDefault();
476   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
477     _impl_.rename_to_.Set("", GetArenaForAllocation());
478   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
479   if (!from._internal_rename_to().empty()) {
480     _this->_impl_.rename_to_.Set(from._internal_rename_to(),
481       _this->GetArenaForAllocation());
482   }
483   _impl_.description_.InitDefault();
484   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
485     _impl_.description_.Set("", GetArenaForAllocation());
486   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
487   if (!from._internal_description().empty()) {
488     _this->_impl_.description_.Set(from._internal_description(),
489       _this->GetArenaForAllocation());
490   }
491   // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDef.Arg)
492 }
493 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)494 inline void ApiDef_Arg::SharedCtor(
495     ::_pb::Arena* arena, bool is_message_owned) {
496   (void)arena;
497   (void)is_message_owned;
498   new (&_impl_) Impl_{
499       decltype(_impl_.name_){}
500     , decltype(_impl_.rename_to_){}
501     , decltype(_impl_.description_){}
502     , /*decltype(_impl_._cached_size_)*/{}
503   };
504   _impl_.name_.InitDefault();
505   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
506     _impl_.name_.Set("", GetArenaForAllocation());
507   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
508   _impl_.rename_to_.InitDefault();
509   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
510     _impl_.rename_to_.Set("", GetArenaForAllocation());
511   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
512   _impl_.description_.InitDefault();
513   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
514     _impl_.description_.Set("", GetArenaForAllocation());
515   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
516 }
517 
~ApiDef_Arg()518 ApiDef_Arg::~ApiDef_Arg() {
519   // @@protoc_insertion_point(destructor:tensorflow.ApiDef.Arg)
520   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
521   (void)arena;
522     return;
523   }
524   SharedDtor();
525 }
526 
SharedDtor()527 inline void ApiDef_Arg::SharedDtor() {
528   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
529   _impl_.name_.Destroy();
530   _impl_.rename_to_.Destroy();
531   _impl_.description_.Destroy();
532 }
533 
SetCachedSize(int size) const534 void ApiDef_Arg::SetCachedSize(int size) const {
535   _impl_._cached_size_.Set(size);
536 }
537 
Clear()538 void ApiDef_Arg::Clear() {
539 // @@protoc_insertion_point(message_clear_start:tensorflow.ApiDef.Arg)
540   ::uint32_t cached_has_bits = 0;
541   // Prevent compiler warnings about cached_has_bits being unused
542   (void) cached_has_bits;
543 
544   _impl_.name_.ClearToEmpty();
545   _impl_.rename_to_.ClearToEmpty();
546   _impl_.description_.ClearToEmpty();
547   _internal_metadata_.Clear<std::string>();
548 }
549 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)550 const char* ApiDef_Arg::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
551 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
552   while (!ctx->Done(&ptr)) {
553     ::uint32_t tag;
554     ptr = ::_pbi::ReadTag(ptr, &tag);
555     switch (tag >> 3) {
556       // string name = 1;
557       case 1:
558         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
559           auto str = _internal_mutable_name();
560           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
561           CHK_(ptr);
562           CHK_(::_pbi::VerifyUTF8(str, nullptr));
563         } else {
564           goto handle_unusual;
565         }
566         continue;
567       // string rename_to = 2;
568       case 2:
569         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
570           auto str = _internal_mutable_rename_to();
571           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
572           CHK_(ptr);
573           CHK_(::_pbi::VerifyUTF8(str, nullptr));
574         } else {
575           goto handle_unusual;
576         }
577         continue;
578       // string description = 3;
579       case 3:
580         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
581           auto str = _internal_mutable_description();
582           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
583           CHK_(ptr);
584           CHK_(::_pbi::VerifyUTF8(str, nullptr));
585         } else {
586           goto handle_unusual;
587         }
588         continue;
589       default:
590         goto handle_unusual;
591     }  // switch
592   handle_unusual:
593     if ((tag == 0) || ((tag & 7) == 4)) {
594       CHK_(ptr);
595       ctx->SetLastTag(tag);
596       goto message_done;
597     }
598     ptr = UnknownFieldParse(
599         tag,
600         _internal_metadata_.mutable_unknown_fields<std::string>(),
601         ptr, ctx);
602     CHK_(ptr != nullptr);
603   }  // while
604 message_done:
605   return ptr;
606 failure:
607   ptr = nullptr;
608   goto message_done;
609 #undef CHK_
610 }
611 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const612 ::uint8_t* ApiDef_Arg::_InternalSerialize(
613     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
614   // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDef.Arg)
615   ::uint32_t cached_has_bits = 0;
616   (void) cached_has_bits;
617 
618   // string name = 1;
619   if (!this->_internal_name().empty()) {
620     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
621       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
622       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
623       "tensorflow.ApiDef.Arg.name");
624     target = stream->WriteStringMaybeAliased(
625         1, this->_internal_name(), target);
626   }
627 
628   // string rename_to = 2;
629   if (!this->_internal_rename_to().empty()) {
630     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
631       this->_internal_rename_to().data(), static_cast<int>(this->_internal_rename_to().length()),
632       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
633       "tensorflow.ApiDef.Arg.rename_to");
634     target = stream->WriteStringMaybeAliased(
635         2, this->_internal_rename_to(), target);
636   }
637 
638   // string description = 3;
639   if (!this->_internal_description().empty()) {
640     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
641       this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
642       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
643       "tensorflow.ApiDef.Arg.description");
644     target = stream->WriteStringMaybeAliased(
645         3, this->_internal_description(), target);
646   }
647 
648   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
649     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
650         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
651   }
652   // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDef.Arg)
653   return target;
654 }
655 
ByteSizeLong() const656 size_t ApiDef_Arg::ByteSizeLong() const {
657 // @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDef.Arg)
658   size_t total_size = 0;
659 
660   ::uint32_t cached_has_bits = 0;
661   // Prevent compiler warnings about cached_has_bits being unused
662   (void) cached_has_bits;
663 
664   // string name = 1;
665   if (!this->_internal_name().empty()) {
666     total_size += 1 +
667       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
668         this->_internal_name());
669   }
670 
671   // string rename_to = 2;
672   if (!this->_internal_rename_to().empty()) {
673     total_size += 1 +
674       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
675         this->_internal_rename_to());
676   }
677 
678   // string description = 3;
679   if (!this->_internal_description().empty()) {
680     total_size += 1 +
681       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
682         this->_internal_description());
683   }
684 
685   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
686     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
687   }
688   int cached_size = ::_pbi::ToCachedSize(total_size);
689   SetCachedSize(cached_size);
690   return total_size;
691 }
692 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)693 void ApiDef_Arg::CheckTypeAndMergeFrom(
694     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
695   MergeFrom(*::_pbi::DownCast<const ApiDef_Arg*>(
696       &from));
697 }
698 
MergeFrom(const ApiDef_Arg & from)699 void ApiDef_Arg::MergeFrom(const ApiDef_Arg& from) {
700   ApiDef_Arg* const _this = this;
701   // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDef.Arg)
702   GOOGLE_DCHECK_NE(&from, _this);
703   ::uint32_t cached_has_bits = 0;
704   (void) cached_has_bits;
705 
706   if (!from._internal_name().empty()) {
707     _this->_internal_set_name(from._internal_name());
708   }
709   if (!from._internal_rename_to().empty()) {
710     _this->_internal_set_rename_to(from._internal_rename_to());
711   }
712   if (!from._internal_description().empty()) {
713     _this->_internal_set_description(from._internal_description());
714   }
715   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
716 }
717 
CopyFrom(const ApiDef_Arg & from)718 void ApiDef_Arg::CopyFrom(const ApiDef_Arg& from) {
719 // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDef.Arg)
720   if (&from == this) return;
721   Clear();
722   MergeFrom(from);
723 }
724 
IsInitialized() const725 bool ApiDef_Arg::IsInitialized() const {
726   return true;
727 }
728 
InternalSwap(ApiDef_Arg * other)729 void ApiDef_Arg::InternalSwap(ApiDef_Arg* other) {
730   using std::swap;
731   auto* lhs_arena = GetArenaForAllocation();
732   auto* rhs_arena = other->GetArenaForAllocation();
733   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
734   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
735       &_impl_.name_, lhs_arena,
736       &other->_impl_.name_, rhs_arena
737   );
738   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
739       &_impl_.rename_to_, lhs_arena,
740       &other->_impl_.rename_to_, rhs_arena
741   );
742   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
743       &_impl_.description_, lhs_arena,
744       &other->_impl_.description_, rhs_arena
745   );
746 }
747 
GetTypeName() const748 std::string ApiDef_Arg::GetTypeName() const {
749   return "tensorflow.ApiDef.Arg";
750 }
751 
752 
753 // ===================================================================
754 
755 class ApiDef_Attr::_Internal {
756  public:
757   static const ::tensorflow::AttrValue& default_value(const ApiDef_Attr* msg);
758 };
759 
760 const ::tensorflow::AttrValue&
default_value(const ApiDef_Attr * msg)761 ApiDef_Attr::_Internal::default_value(const ApiDef_Attr* msg) {
762   return *msg->_impl_.default_value_;
763 }
clear_default_value()764 void ApiDef_Attr::clear_default_value() {
765   if (GetArenaForAllocation() == nullptr && _impl_.default_value_ != nullptr) {
766     delete _impl_.default_value_;
767   }
768   _impl_.default_value_ = nullptr;
769 }
ApiDef_Attr(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)770 ApiDef_Attr::ApiDef_Attr(::PROTOBUF_NAMESPACE_ID::Arena* arena,
771                          bool is_message_owned)
772   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
773   SharedCtor(arena, is_message_owned);
774   // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDef.Attr)
775 }
ApiDef_Attr(const ApiDef_Attr & from)776 ApiDef_Attr::ApiDef_Attr(const ApiDef_Attr& from)
777   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
778   ApiDef_Attr* const _this = this; (void)_this;
779   new (&_impl_) Impl_{
780       decltype(_impl_.name_){}
781     , decltype(_impl_.rename_to_){}
782     , decltype(_impl_.description_){}
783     , decltype(_impl_.default_value_){nullptr}
784     , /*decltype(_impl_._cached_size_)*/{}};
785 
786   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
787   _impl_.name_.InitDefault();
788   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
789     _impl_.name_.Set("", GetArenaForAllocation());
790   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
791   if (!from._internal_name().empty()) {
792     _this->_impl_.name_.Set(from._internal_name(),
793       _this->GetArenaForAllocation());
794   }
795   _impl_.rename_to_.InitDefault();
796   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
797     _impl_.rename_to_.Set("", GetArenaForAllocation());
798   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
799   if (!from._internal_rename_to().empty()) {
800     _this->_impl_.rename_to_.Set(from._internal_rename_to(),
801       _this->GetArenaForAllocation());
802   }
803   _impl_.description_.InitDefault();
804   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
805     _impl_.description_.Set("", GetArenaForAllocation());
806   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
807   if (!from._internal_description().empty()) {
808     _this->_impl_.description_.Set(from._internal_description(),
809       _this->GetArenaForAllocation());
810   }
811   if (from._internal_has_default_value()) {
812     _this->_impl_.default_value_ = new ::tensorflow::AttrValue(*from._impl_.default_value_);
813   }
814   // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDef.Attr)
815 }
816 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)817 inline void ApiDef_Attr::SharedCtor(
818     ::_pb::Arena* arena, bool is_message_owned) {
819   (void)arena;
820   (void)is_message_owned;
821   new (&_impl_) Impl_{
822       decltype(_impl_.name_){}
823     , decltype(_impl_.rename_to_){}
824     , decltype(_impl_.description_){}
825     , decltype(_impl_.default_value_){nullptr}
826     , /*decltype(_impl_._cached_size_)*/{}
827   };
828   _impl_.name_.InitDefault();
829   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
830     _impl_.name_.Set("", GetArenaForAllocation());
831   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
832   _impl_.rename_to_.InitDefault();
833   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
834     _impl_.rename_to_.Set("", GetArenaForAllocation());
835   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
836   _impl_.description_.InitDefault();
837   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
838     _impl_.description_.Set("", GetArenaForAllocation());
839   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
840 }
841 
~ApiDef_Attr()842 ApiDef_Attr::~ApiDef_Attr() {
843   // @@protoc_insertion_point(destructor:tensorflow.ApiDef.Attr)
844   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
845   (void)arena;
846     return;
847   }
848   SharedDtor();
849 }
850 
SharedDtor()851 inline void ApiDef_Attr::SharedDtor() {
852   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
853   _impl_.name_.Destroy();
854   _impl_.rename_to_.Destroy();
855   _impl_.description_.Destroy();
856   if (this != internal_default_instance()) delete _impl_.default_value_;
857 }
858 
SetCachedSize(int size) const859 void ApiDef_Attr::SetCachedSize(int size) const {
860   _impl_._cached_size_.Set(size);
861 }
862 
Clear()863 void ApiDef_Attr::Clear() {
864 // @@protoc_insertion_point(message_clear_start:tensorflow.ApiDef.Attr)
865   ::uint32_t cached_has_bits = 0;
866   // Prevent compiler warnings about cached_has_bits being unused
867   (void) cached_has_bits;
868 
869   _impl_.name_.ClearToEmpty();
870   _impl_.rename_to_.ClearToEmpty();
871   _impl_.description_.ClearToEmpty();
872   if (GetArenaForAllocation() == nullptr && _impl_.default_value_ != nullptr) {
873     delete _impl_.default_value_;
874   }
875   _impl_.default_value_ = nullptr;
876   _internal_metadata_.Clear<std::string>();
877 }
878 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)879 const char* ApiDef_Attr::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
880 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
881   while (!ctx->Done(&ptr)) {
882     ::uint32_t tag;
883     ptr = ::_pbi::ReadTag(ptr, &tag);
884     switch (tag >> 3) {
885       // string name = 1;
886       case 1:
887         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
888           auto str = _internal_mutable_name();
889           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
890           CHK_(ptr);
891           CHK_(::_pbi::VerifyUTF8(str, nullptr));
892         } else {
893           goto handle_unusual;
894         }
895         continue;
896       // string rename_to = 2;
897       case 2:
898         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
899           auto str = _internal_mutable_rename_to();
900           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
901           CHK_(ptr);
902           CHK_(::_pbi::VerifyUTF8(str, nullptr));
903         } else {
904           goto handle_unusual;
905         }
906         continue;
907       // .tensorflow.AttrValue default_value = 3;
908       case 3:
909         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
910           ptr = ctx->ParseMessage(_internal_mutable_default_value(), ptr);
911           CHK_(ptr);
912         } else {
913           goto handle_unusual;
914         }
915         continue;
916       // string description = 4;
917       case 4:
918         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
919           auto str = _internal_mutable_description();
920           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
921           CHK_(ptr);
922           CHK_(::_pbi::VerifyUTF8(str, nullptr));
923         } else {
924           goto handle_unusual;
925         }
926         continue;
927       default:
928         goto handle_unusual;
929     }  // switch
930   handle_unusual:
931     if ((tag == 0) || ((tag & 7) == 4)) {
932       CHK_(ptr);
933       ctx->SetLastTag(tag);
934       goto message_done;
935     }
936     ptr = UnknownFieldParse(
937         tag,
938         _internal_metadata_.mutable_unknown_fields<std::string>(),
939         ptr, ctx);
940     CHK_(ptr != nullptr);
941   }  // while
942 message_done:
943   return ptr;
944 failure:
945   ptr = nullptr;
946   goto message_done;
947 #undef CHK_
948 }
949 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const950 ::uint8_t* ApiDef_Attr::_InternalSerialize(
951     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
952   // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDef.Attr)
953   ::uint32_t cached_has_bits = 0;
954   (void) cached_has_bits;
955 
956   // string name = 1;
957   if (!this->_internal_name().empty()) {
958     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
959       this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
960       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
961       "tensorflow.ApiDef.Attr.name");
962     target = stream->WriteStringMaybeAliased(
963         1, this->_internal_name(), target);
964   }
965 
966   // string rename_to = 2;
967   if (!this->_internal_rename_to().empty()) {
968     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
969       this->_internal_rename_to().data(), static_cast<int>(this->_internal_rename_to().length()),
970       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
971       "tensorflow.ApiDef.Attr.rename_to");
972     target = stream->WriteStringMaybeAliased(
973         2, this->_internal_rename_to(), target);
974   }
975 
976   // .tensorflow.AttrValue default_value = 3;
977   if (this->_internal_has_default_value()) {
978     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
979       InternalWriteMessage(3, _Internal::default_value(this),
980         _Internal::default_value(this).GetCachedSize(), target, stream);
981   }
982 
983   // string description = 4;
984   if (!this->_internal_description().empty()) {
985     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
986       this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
987       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
988       "tensorflow.ApiDef.Attr.description");
989     target = stream->WriteStringMaybeAliased(
990         4, this->_internal_description(), target);
991   }
992 
993   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
994     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
995         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
996   }
997   // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDef.Attr)
998   return target;
999 }
1000 
ByteSizeLong() const1001 size_t ApiDef_Attr::ByteSizeLong() const {
1002 // @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDef.Attr)
1003   size_t total_size = 0;
1004 
1005   ::uint32_t cached_has_bits = 0;
1006   // Prevent compiler warnings about cached_has_bits being unused
1007   (void) cached_has_bits;
1008 
1009   // string name = 1;
1010   if (!this->_internal_name().empty()) {
1011     total_size += 1 +
1012       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1013         this->_internal_name());
1014   }
1015 
1016   // string rename_to = 2;
1017   if (!this->_internal_rename_to().empty()) {
1018     total_size += 1 +
1019       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1020         this->_internal_rename_to());
1021   }
1022 
1023   // string description = 4;
1024   if (!this->_internal_description().empty()) {
1025     total_size += 1 +
1026       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1027         this->_internal_description());
1028   }
1029 
1030   // .tensorflow.AttrValue default_value = 3;
1031   if (this->_internal_has_default_value()) {
1032     total_size += 1 +
1033       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1034         *_impl_.default_value_);
1035   }
1036 
1037   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1038     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1039   }
1040   int cached_size = ::_pbi::ToCachedSize(total_size);
1041   SetCachedSize(cached_size);
1042   return total_size;
1043 }
1044 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1045 void ApiDef_Attr::CheckTypeAndMergeFrom(
1046     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1047   MergeFrom(*::_pbi::DownCast<const ApiDef_Attr*>(
1048       &from));
1049 }
1050 
MergeFrom(const ApiDef_Attr & from)1051 void ApiDef_Attr::MergeFrom(const ApiDef_Attr& from) {
1052   ApiDef_Attr* const _this = this;
1053   // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDef.Attr)
1054   GOOGLE_DCHECK_NE(&from, _this);
1055   ::uint32_t cached_has_bits = 0;
1056   (void) cached_has_bits;
1057 
1058   if (!from._internal_name().empty()) {
1059     _this->_internal_set_name(from._internal_name());
1060   }
1061   if (!from._internal_rename_to().empty()) {
1062     _this->_internal_set_rename_to(from._internal_rename_to());
1063   }
1064   if (!from._internal_description().empty()) {
1065     _this->_internal_set_description(from._internal_description());
1066   }
1067   if (from._internal_has_default_value()) {
1068     _this->_internal_mutable_default_value()->::tensorflow::AttrValue::MergeFrom(
1069         from._internal_default_value());
1070   }
1071   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1072 }
1073 
CopyFrom(const ApiDef_Attr & from)1074 void ApiDef_Attr::CopyFrom(const ApiDef_Attr& from) {
1075 // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDef.Attr)
1076   if (&from == this) return;
1077   Clear();
1078   MergeFrom(from);
1079 }
1080 
IsInitialized() const1081 bool ApiDef_Attr::IsInitialized() const {
1082   return true;
1083 }
1084 
InternalSwap(ApiDef_Attr * other)1085 void ApiDef_Attr::InternalSwap(ApiDef_Attr* other) {
1086   using std::swap;
1087   auto* lhs_arena = GetArenaForAllocation();
1088   auto* rhs_arena = other->GetArenaForAllocation();
1089   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1090   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1091       &_impl_.name_, lhs_arena,
1092       &other->_impl_.name_, rhs_arena
1093   );
1094   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1095       &_impl_.rename_to_, lhs_arena,
1096       &other->_impl_.rename_to_, rhs_arena
1097   );
1098   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1099       &_impl_.description_, lhs_arena,
1100       &other->_impl_.description_, rhs_arena
1101   );
1102   swap(_impl_.default_value_, other->_impl_.default_value_);
1103 }
1104 
GetTypeName() const1105 std::string ApiDef_Attr::GetTypeName() const {
1106   return "tensorflow.ApiDef.Attr";
1107 }
1108 
1109 
1110 // ===================================================================
1111 
1112 class ApiDef::_Internal {
1113  public:
1114 };
1115 
ApiDef(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1116 ApiDef::ApiDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1117                          bool is_message_owned)
1118   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1119   SharedCtor(arena, is_message_owned);
1120   // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDef)
1121 }
ApiDef(const ApiDef & from)1122 ApiDef::ApiDef(const ApiDef& from)
1123   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1124   ApiDef* const _this = this; (void)_this;
1125   new (&_impl_) Impl_{
1126       decltype(_impl_.endpoint_){from._impl_.endpoint_}
1127     , decltype(_impl_.in_arg_){from._impl_.in_arg_}
1128     , decltype(_impl_.out_arg_){from._impl_.out_arg_}
1129     , decltype(_impl_.attr_){from._impl_.attr_}
1130     , decltype(_impl_.arg_order_){from._impl_.arg_order_}
1131     , decltype(_impl_.graph_op_name_){}
1132     , decltype(_impl_.summary_){}
1133     , decltype(_impl_.description_){}
1134     , decltype(_impl_.description_prefix_){}
1135     , decltype(_impl_.description_suffix_){}
1136     , decltype(_impl_.deprecation_message_){}
1137     , decltype(_impl_.visibility_){}
1138     , decltype(_impl_.deprecation_version_){}
1139     , /*decltype(_impl_._cached_size_)*/{}};
1140 
1141   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1142   _impl_.graph_op_name_.InitDefault();
1143   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1144     _impl_.graph_op_name_.Set("", GetArenaForAllocation());
1145   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1146   if (!from._internal_graph_op_name().empty()) {
1147     _this->_impl_.graph_op_name_.Set(from._internal_graph_op_name(),
1148       _this->GetArenaForAllocation());
1149   }
1150   _impl_.summary_.InitDefault();
1151   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1152     _impl_.summary_.Set("", GetArenaForAllocation());
1153   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1154   if (!from._internal_summary().empty()) {
1155     _this->_impl_.summary_.Set(from._internal_summary(),
1156       _this->GetArenaForAllocation());
1157   }
1158   _impl_.description_.InitDefault();
1159   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1160     _impl_.description_.Set("", GetArenaForAllocation());
1161   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1162   if (!from._internal_description().empty()) {
1163     _this->_impl_.description_.Set(from._internal_description(),
1164       _this->GetArenaForAllocation());
1165   }
1166   _impl_.description_prefix_.InitDefault();
1167   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1168     _impl_.description_prefix_.Set("", GetArenaForAllocation());
1169   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1170   if (!from._internal_description_prefix().empty()) {
1171     _this->_impl_.description_prefix_.Set(from._internal_description_prefix(),
1172       _this->GetArenaForAllocation());
1173   }
1174   _impl_.description_suffix_.InitDefault();
1175   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1176     _impl_.description_suffix_.Set("", GetArenaForAllocation());
1177   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1178   if (!from._internal_description_suffix().empty()) {
1179     _this->_impl_.description_suffix_.Set(from._internal_description_suffix(),
1180       _this->GetArenaForAllocation());
1181   }
1182   _impl_.deprecation_message_.InitDefault();
1183   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1184     _impl_.deprecation_message_.Set("", GetArenaForAllocation());
1185   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1186   if (!from._internal_deprecation_message().empty()) {
1187     _this->_impl_.deprecation_message_.Set(from._internal_deprecation_message(),
1188       _this->GetArenaForAllocation());
1189   }
1190   ::memcpy(&_impl_.visibility_, &from._impl_.visibility_,
1191     static_cast<size_t>(reinterpret_cast<char*>(&_impl_.deprecation_version_) -
1192     reinterpret_cast<char*>(&_impl_.visibility_)) + sizeof(_impl_.deprecation_version_));
1193   // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDef)
1194 }
1195 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1196 inline void ApiDef::SharedCtor(
1197     ::_pb::Arena* arena, bool is_message_owned) {
1198   (void)arena;
1199   (void)is_message_owned;
1200   new (&_impl_) Impl_{
1201       decltype(_impl_.endpoint_){arena}
1202     , decltype(_impl_.in_arg_){arena}
1203     , decltype(_impl_.out_arg_){arena}
1204     , decltype(_impl_.attr_){arena}
1205     , decltype(_impl_.arg_order_){arena}
1206     , decltype(_impl_.graph_op_name_){}
1207     , decltype(_impl_.summary_){}
1208     , decltype(_impl_.description_){}
1209     , decltype(_impl_.description_prefix_){}
1210     , decltype(_impl_.description_suffix_){}
1211     , decltype(_impl_.deprecation_message_){}
1212     , decltype(_impl_.visibility_){0}
1213     , decltype(_impl_.deprecation_version_){0}
1214     , /*decltype(_impl_._cached_size_)*/{}
1215   };
1216   _impl_.graph_op_name_.InitDefault();
1217   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1218     _impl_.graph_op_name_.Set("", GetArenaForAllocation());
1219   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1220   _impl_.summary_.InitDefault();
1221   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1222     _impl_.summary_.Set("", GetArenaForAllocation());
1223   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1224   _impl_.description_.InitDefault();
1225   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1226     _impl_.description_.Set("", GetArenaForAllocation());
1227   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1228   _impl_.description_prefix_.InitDefault();
1229   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1230     _impl_.description_prefix_.Set("", GetArenaForAllocation());
1231   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1232   _impl_.description_suffix_.InitDefault();
1233   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1234     _impl_.description_suffix_.Set("", GetArenaForAllocation());
1235   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1236   _impl_.deprecation_message_.InitDefault();
1237   #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1238     _impl_.deprecation_message_.Set("", GetArenaForAllocation());
1239   #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1240 }
1241 
~ApiDef()1242 ApiDef::~ApiDef() {
1243   // @@protoc_insertion_point(destructor:tensorflow.ApiDef)
1244   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1245   (void)arena;
1246     return;
1247   }
1248   SharedDtor();
1249 }
1250 
SharedDtor()1251 inline void ApiDef::SharedDtor() {
1252   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1253   _impl_.endpoint_.~RepeatedPtrField();
1254   _impl_.in_arg_.~RepeatedPtrField();
1255   _impl_.out_arg_.~RepeatedPtrField();
1256   _impl_.attr_.~RepeatedPtrField();
1257   _impl_.arg_order_.~RepeatedPtrField();
1258   _impl_.graph_op_name_.Destroy();
1259   _impl_.summary_.Destroy();
1260   _impl_.description_.Destroy();
1261   _impl_.description_prefix_.Destroy();
1262   _impl_.description_suffix_.Destroy();
1263   _impl_.deprecation_message_.Destroy();
1264 }
1265 
SetCachedSize(int size) const1266 void ApiDef::SetCachedSize(int size) const {
1267   _impl_._cached_size_.Set(size);
1268 }
1269 
Clear()1270 void ApiDef::Clear() {
1271 // @@protoc_insertion_point(message_clear_start:tensorflow.ApiDef)
1272   ::uint32_t cached_has_bits = 0;
1273   // Prevent compiler warnings about cached_has_bits being unused
1274   (void) cached_has_bits;
1275 
1276   _impl_.endpoint_.Clear();
1277   _impl_.in_arg_.Clear();
1278   _impl_.out_arg_.Clear();
1279   _impl_.attr_.Clear();
1280   _impl_.arg_order_.Clear();
1281   _impl_.graph_op_name_.ClearToEmpty();
1282   _impl_.summary_.ClearToEmpty();
1283   _impl_.description_.ClearToEmpty();
1284   _impl_.description_prefix_.ClearToEmpty();
1285   _impl_.description_suffix_.ClearToEmpty();
1286   _impl_.deprecation_message_.ClearToEmpty();
1287   ::memset(&_impl_.visibility_, 0, static_cast<size_t>(
1288       reinterpret_cast<char*>(&_impl_.deprecation_version_) -
1289       reinterpret_cast<char*>(&_impl_.visibility_)) + sizeof(_impl_.deprecation_version_));
1290   _internal_metadata_.Clear<std::string>();
1291 }
1292 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1293 const char* ApiDef::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1294 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1295   while (!ctx->Done(&ptr)) {
1296     ::uint32_t tag;
1297     ptr = ::_pbi::ReadTag(ptr, &tag);
1298     switch (tag >> 3) {
1299       // string graph_op_name = 1;
1300       case 1:
1301         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
1302           auto str = _internal_mutable_graph_op_name();
1303           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1304           CHK_(ptr);
1305           CHK_(::_pbi::VerifyUTF8(str, nullptr));
1306         } else {
1307           goto handle_unusual;
1308         }
1309         continue;
1310       // .tensorflow.ApiDef.Visibility visibility = 2;
1311       case 2:
1312         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 16)) {
1313           ::uint64_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
1314           CHK_(ptr);
1315           _internal_set_visibility(static_cast<::tensorflow::ApiDef_Visibility>(val));
1316         } else {
1317           goto handle_unusual;
1318         }
1319         continue;
1320       // repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
1321       case 3:
1322         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
1323           ptr -= 1;
1324           do {
1325             ptr += 1;
1326             ptr = ctx->ParseMessage(_internal_add_endpoint(), ptr);
1327             CHK_(ptr);
1328             if (!ctx->DataAvailable(ptr)) break;
1329           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
1330         } else {
1331           goto handle_unusual;
1332         }
1333         continue;
1334       // repeated .tensorflow.ApiDef.Arg in_arg = 4;
1335       case 4:
1336         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
1337           ptr -= 1;
1338           do {
1339             ptr += 1;
1340             ptr = ctx->ParseMessage(_internal_add_in_arg(), ptr);
1341             CHK_(ptr);
1342             if (!ctx->DataAvailable(ptr)) break;
1343           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
1344         } else {
1345           goto handle_unusual;
1346         }
1347         continue;
1348       // repeated .tensorflow.ApiDef.Arg out_arg = 5;
1349       case 5:
1350         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
1351           ptr -= 1;
1352           do {
1353             ptr += 1;
1354             ptr = ctx->ParseMessage(_internal_add_out_arg(), ptr);
1355             CHK_(ptr);
1356             if (!ctx->DataAvailable(ptr)) break;
1357           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
1358         } else {
1359           goto handle_unusual;
1360         }
1361         continue;
1362       // repeated .tensorflow.ApiDef.Attr attr = 6;
1363       case 6:
1364         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
1365           ptr -= 1;
1366           do {
1367             ptr += 1;
1368             ptr = ctx->ParseMessage(_internal_add_attr(), ptr);
1369             CHK_(ptr);
1370             if (!ctx->DataAvailable(ptr)) break;
1371           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
1372         } else {
1373           goto handle_unusual;
1374         }
1375         continue;
1376       // string summary = 7;
1377       case 7:
1378         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
1379           auto str = _internal_mutable_summary();
1380           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1381           CHK_(ptr);
1382           CHK_(::_pbi::VerifyUTF8(str, nullptr));
1383         } else {
1384           goto handle_unusual;
1385         }
1386         continue;
1387       // string description = 8;
1388       case 8:
1389         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 66)) {
1390           auto str = _internal_mutable_description();
1391           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1392           CHK_(ptr);
1393           CHK_(::_pbi::VerifyUTF8(str, nullptr));
1394         } else {
1395           goto handle_unusual;
1396         }
1397         continue;
1398       // string description_prefix = 9;
1399       case 9:
1400         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 74)) {
1401           auto str = _internal_mutable_description_prefix();
1402           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1403           CHK_(ptr);
1404           CHK_(::_pbi::VerifyUTF8(str, nullptr));
1405         } else {
1406           goto handle_unusual;
1407         }
1408         continue;
1409       // string description_suffix = 10;
1410       case 10:
1411         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 82)) {
1412           auto str = _internal_mutable_description_suffix();
1413           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1414           CHK_(ptr);
1415           CHK_(::_pbi::VerifyUTF8(str, nullptr));
1416         } else {
1417           goto handle_unusual;
1418         }
1419         continue;
1420       // repeated string arg_order = 11;
1421       case 11:
1422         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 90)) {
1423           ptr -= 1;
1424           do {
1425             ptr += 1;
1426             auto str = _internal_add_arg_order();
1427             ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1428             CHK_(ptr);
1429             CHK_(::_pbi::VerifyUTF8(str, nullptr));
1430             if (!ctx->DataAvailable(ptr)) break;
1431           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr));
1432         } else {
1433           goto handle_unusual;
1434         }
1435         continue;
1436       // string deprecation_message = 12;
1437       case 12:
1438         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 98)) {
1439           auto str = _internal_mutable_deprecation_message();
1440           ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
1441           CHK_(ptr);
1442           CHK_(::_pbi::VerifyUTF8(str, nullptr));
1443         } else {
1444           goto handle_unusual;
1445         }
1446         continue;
1447       // int32 deprecation_version = 13;
1448       case 13:
1449         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 104)) {
1450           _impl_.deprecation_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
1451           CHK_(ptr);
1452         } else {
1453           goto handle_unusual;
1454         }
1455         continue;
1456       default:
1457         goto handle_unusual;
1458     }  // switch
1459   handle_unusual:
1460     if ((tag == 0) || ((tag & 7) == 4)) {
1461       CHK_(ptr);
1462       ctx->SetLastTag(tag);
1463       goto message_done;
1464     }
1465     ptr = UnknownFieldParse(
1466         tag,
1467         _internal_metadata_.mutable_unknown_fields<std::string>(),
1468         ptr, ctx);
1469     CHK_(ptr != nullptr);
1470   }  // while
1471 message_done:
1472   return ptr;
1473 failure:
1474   ptr = nullptr;
1475   goto message_done;
1476 #undef CHK_
1477 }
1478 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1479 ::uint8_t* ApiDef::_InternalSerialize(
1480     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1481   // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDef)
1482   ::uint32_t cached_has_bits = 0;
1483   (void) cached_has_bits;
1484 
1485   // string graph_op_name = 1;
1486   if (!this->_internal_graph_op_name().empty()) {
1487     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1488       this->_internal_graph_op_name().data(), static_cast<int>(this->_internal_graph_op_name().length()),
1489       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1490       "tensorflow.ApiDef.graph_op_name");
1491     target = stream->WriteStringMaybeAliased(
1492         1, this->_internal_graph_op_name(), target);
1493   }
1494 
1495   // .tensorflow.ApiDef.Visibility visibility = 2;
1496   if (this->_internal_visibility() != 0) {
1497     target = stream->EnsureSpace(target);
1498     target = ::_pbi::WireFormatLite::WriteEnumToArray(
1499       2, this->_internal_visibility(), target);
1500   }
1501 
1502   // repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
1503   for (unsigned i = 0,
1504       n = static_cast<unsigned>(this->_internal_endpoint_size()); i < n; i++) {
1505     const auto& repfield = this->_internal_endpoint(i);
1506     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1507         InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
1508   }
1509 
1510   // repeated .tensorflow.ApiDef.Arg in_arg = 4;
1511   for (unsigned i = 0,
1512       n = static_cast<unsigned>(this->_internal_in_arg_size()); i < n; i++) {
1513     const auto& repfield = this->_internal_in_arg(i);
1514     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1515         InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
1516   }
1517 
1518   // repeated .tensorflow.ApiDef.Arg out_arg = 5;
1519   for (unsigned i = 0,
1520       n = static_cast<unsigned>(this->_internal_out_arg_size()); i < n; i++) {
1521     const auto& repfield = this->_internal_out_arg(i);
1522     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1523         InternalWriteMessage(5, repfield, repfield.GetCachedSize(), target, stream);
1524   }
1525 
1526   // repeated .tensorflow.ApiDef.Attr attr = 6;
1527   for (unsigned i = 0,
1528       n = static_cast<unsigned>(this->_internal_attr_size()); i < n; i++) {
1529     const auto& repfield = this->_internal_attr(i);
1530     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1531         InternalWriteMessage(6, repfield, repfield.GetCachedSize(), target, stream);
1532   }
1533 
1534   // string summary = 7;
1535   if (!this->_internal_summary().empty()) {
1536     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1537       this->_internal_summary().data(), static_cast<int>(this->_internal_summary().length()),
1538       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1539       "tensorflow.ApiDef.summary");
1540     target = stream->WriteStringMaybeAliased(
1541         7, this->_internal_summary(), target);
1542   }
1543 
1544   // string description = 8;
1545   if (!this->_internal_description().empty()) {
1546     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1547       this->_internal_description().data(), static_cast<int>(this->_internal_description().length()),
1548       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1549       "tensorflow.ApiDef.description");
1550     target = stream->WriteStringMaybeAliased(
1551         8, this->_internal_description(), target);
1552   }
1553 
1554   // string description_prefix = 9;
1555   if (!this->_internal_description_prefix().empty()) {
1556     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1557       this->_internal_description_prefix().data(), static_cast<int>(this->_internal_description_prefix().length()),
1558       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1559       "tensorflow.ApiDef.description_prefix");
1560     target = stream->WriteStringMaybeAliased(
1561         9, this->_internal_description_prefix(), target);
1562   }
1563 
1564   // string description_suffix = 10;
1565   if (!this->_internal_description_suffix().empty()) {
1566     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1567       this->_internal_description_suffix().data(), static_cast<int>(this->_internal_description_suffix().length()),
1568       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1569       "tensorflow.ApiDef.description_suffix");
1570     target = stream->WriteStringMaybeAliased(
1571         10, this->_internal_description_suffix(), target);
1572   }
1573 
1574   // repeated string arg_order = 11;
1575   for (int i = 0, n = this->_internal_arg_order_size(); i < n; i++) {
1576     const auto& s = this->_internal_arg_order(i);
1577     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1578       s.data(), static_cast<int>(s.length()),
1579       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1580       "tensorflow.ApiDef.arg_order");
1581     target = stream->WriteString(11, s, target);
1582   }
1583 
1584   // string deprecation_message = 12;
1585   if (!this->_internal_deprecation_message().empty()) {
1586     ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1587       this->_internal_deprecation_message().data(), static_cast<int>(this->_internal_deprecation_message().length()),
1588       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1589       "tensorflow.ApiDef.deprecation_message");
1590     target = stream->WriteStringMaybeAliased(
1591         12, this->_internal_deprecation_message(), target);
1592   }
1593 
1594   // int32 deprecation_version = 13;
1595   if (this->_internal_deprecation_version() != 0) {
1596     target = stream->EnsureSpace(target);
1597     target = ::_pbi::WireFormatLite::WriteInt32ToArray(13, this->_internal_deprecation_version(), target);
1598   }
1599 
1600   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1601     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1602         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1603   }
1604   // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDef)
1605   return target;
1606 }
1607 
ByteSizeLong() const1608 size_t ApiDef::ByteSizeLong() const {
1609 // @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDef)
1610   size_t total_size = 0;
1611 
1612   ::uint32_t cached_has_bits = 0;
1613   // Prevent compiler warnings about cached_has_bits being unused
1614   (void) cached_has_bits;
1615 
1616   // repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
1617   total_size += 1UL * this->_internal_endpoint_size();
1618   for (const auto& msg : this->_impl_.endpoint_) {
1619     total_size +=
1620       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1621   }
1622 
1623   // repeated .tensorflow.ApiDef.Arg in_arg = 4;
1624   total_size += 1UL * this->_internal_in_arg_size();
1625   for (const auto& msg : this->_impl_.in_arg_) {
1626     total_size +=
1627       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1628   }
1629 
1630   // repeated .tensorflow.ApiDef.Arg out_arg = 5;
1631   total_size += 1UL * this->_internal_out_arg_size();
1632   for (const auto& msg : this->_impl_.out_arg_) {
1633     total_size +=
1634       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1635   }
1636 
1637   // repeated .tensorflow.ApiDef.Attr attr = 6;
1638   total_size += 1UL * this->_internal_attr_size();
1639   for (const auto& msg : this->_impl_.attr_) {
1640     total_size +=
1641       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1642   }
1643 
1644   // repeated string arg_order = 11;
1645   total_size += 1 *
1646       ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_impl_.arg_order_.size());
1647   for (int i = 0, n = _impl_.arg_order_.size(); i < n; i++) {
1648     total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1649       _impl_.arg_order_.Get(i));
1650   }
1651 
1652   // string graph_op_name = 1;
1653   if (!this->_internal_graph_op_name().empty()) {
1654     total_size += 1 +
1655       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1656         this->_internal_graph_op_name());
1657   }
1658 
1659   // string summary = 7;
1660   if (!this->_internal_summary().empty()) {
1661     total_size += 1 +
1662       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1663         this->_internal_summary());
1664   }
1665 
1666   // string description = 8;
1667   if (!this->_internal_description().empty()) {
1668     total_size += 1 +
1669       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1670         this->_internal_description());
1671   }
1672 
1673   // string description_prefix = 9;
1674   if (!this->_internal_description_prefix().empty()) {
1675     total_size += 1 +
1676       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1677         this->_internal_description_prefix());
1678   }
1679 
1680   // string description_suffix = 10;
1681   if (!this->_internal_description_suffix().empty()) {
1682     total_size += 1 +
1683       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1684         this->_internal_description_suffix());
1685   }
1686 
1687   // string deprecation_message = 12;
1688   if (!this->_internal_deprecation_message().empty()) {
1689     total_size += 1 +
1690       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1691         this->_internal_deprecation_message());
1692   }
1693 
1694   // .tensorflow.ApiDef.Visibility visibility = 2;
1695   if (this->_internal_visibility() != 0) {
1696     total_size += 1 +
1697       ::_pbi::WireFormatLite::EnumSize(this->_internal_visibility());
1698   }
1699 
1700   // int32 deprecation_version = 13;
1701   if (this->_internal_deprecation_version() != 0) {
1702     total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(this->_internal_deprecation_version());
1703   }
1704 
1705   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1706     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1707   }
1708   int cached_size = ::_pbi::ToCachedSize(total_size);
1709   SetCachedSize(cached_size);
1710   return total_size;
1711 }
1712 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1713 void ApiDef::CheckTypeAndMergeFrom(
1714     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1715   MergeFrom(*::_pbi::DownCast<const ApiDef*>(
1716       &from));
1717 }
1718 
MergeFrom(const ApiDef & from)1719 void ApiDef::MergeFrom(const ApiDef& from) {
1720   ApiDef* const _this = this;
1721   // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDef)
1722   GOOGLE_DCHECK_NE(&from, _this);
1723   ::uint32_t cached_has_bits = 0;
1724   (void) cached_has_bits;
1725 
1726   _this->_impl_.endpoint_.MergeFrom(from._impl_.endpoint_);
1727   _this->_impl_.in_arg_.MergeFrom(from._impl_.in_arg_);
1728   _this->_impl_.out_arg_.MergeFrom(from._impl_.out_arg_);
1729   _this->_impl_.attr_.MergeFrom(from._impl_.attr_);
1730   _this->_impl_.arg_order_.MergeFrom(from._impl_.arg_order_);
1731   if (!from._internal_graph_op_name().empty()) {
1732     _this->_internal_set_graph_op_name(from._internal_graph_op_name());
1733   }
1734   if (!from._internal_summary().empty()) {
1735     _this->_internal_set_summary(from._internal_summary());
1736   }
1737   if (!from._internal_description().empty()) {
1738     _this->_internal_set_description(from._internal_description());
1739   }
1740   if (!from._internal_description_prefix().empty()) {
1741     _this->_internal_set_description_prefix(from._internal_description_prefix());
1742   }
1743   if (!from._internal_description_suffix().empty()) {
1744     _this->_internal_set_description_suffix(from._internal_description_suffix());
1745   }
1746   if (!from._internal_deprecation_message().empty()) {
1747     _this->_internal_set_deprecation_message(from._internal_deprecation_message());
1748   }
1749   if (from._internal_visibility() != 0) {
1750     _this->_internal_set_visibility(from._internal_visibility());
1751   }
1752   if (from._internal_deprecation_version() != 0) {
1753     _this->_internal_set_deprecation_version(from._internal_deprecation_version());
1754   }
1755   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1756 }
1757 
CopyFrom(const ApiDef & from)1758 void ApiDef::CopyFrom(const ApiDef& from) {
1759 // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDef)
1760   if (&from == this) return;
1761   Clear();
1762   MergeFrom(from);
1763 }
1764 
IsInitialized() const1765 bool ApiDef::IsInitialized() const {
1766   return true;
1767 }
1768 
InternalSwap(ApiDef * other)1769 void ApiDef::InternalSwap(ApiDef* other) {
1770   using std::swap;
1771   auto* lhs_arena = GetArenaForAllocation();
1772   auto* rhs_arena = other->GetArenaForAllocation();
1773   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1774   _impl_.endpoint_.InternalSwap(&other->_impl_.endpoint_);
1775   _impl_.in_arg_.InternalSwap(&other->_impl_.in_arg_);
1776   _impl_.out_arg_.InternalSwap(&other->_impl_.out_arg_);
1777   _impl_.attr_.InternalSwap(&other->_impl_.attr_);
1778   _impl_.arg_order_.InternalSwap(&other->_impl_.arg_order_);
1779   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1780       &_impl_.graph_op_name_, lhs_arena,
1781       &other->_impl_.graph_op_name_, rhs_arena
1782   );
1783   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1784       &_impl_.summary_, lhs_arena,
1785       &other->_impl_.summary_, rhs_arena
1786   );
1787   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1788       &_impl_.description_, lhs_arena,
1789       &other->_impl_.description_, rhs_arena
1790   );
1791   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1792       &_impl_.description_prefix_, lhs_arena,
1793       &other->_impl_.description_prefix_, rhs_arena
1794   );
1795   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1796       &_impl_.description_suffix_, lhs_arena,
1797       &other->_impl_.description_suffix_, rhs_arena
1798   );
1799   ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
1800       &_impl_.deprecation_message_, lhs_arena,
1801       &other->_impl_.deprecation_message_, rhs_arena
1802   );
1803   ::PROTOBUF_NAMESPACE_ID::internal::memswap<
1804       PROTOBUF_FIELD_OFFSET(ApiDef, _impl_.deprecation_version_)
1805       + sizeof(ApiDef::_impl_.deprecation_version_)  // NOLINT
1806       - PROTOBUF_FIELD_OFFSET(ApiDef, _impl_.visibility_)>(
1807           reinterpret_cast<char*>(&_impl_.visibility_),
1808           reinterpret_cast<char*>(&other->_impl_.visibility_));
1809 }
1810 
GetTypeName() const1811 std::string ApiDef::GetTypeName() const {
1812   return "tensorflow.ApiDef";
1813 }
1814 
1815 
1816 // ===================================================================
1817 
1818 class ApiDefs::_Internal {
1819  public:
1820 };
1821 
ApiDefs(::PROTOBUF_NAMESPACE_ID::Arena * arena,bool is_message_owned)1822 ApiDefs::ApiDefs(::PROTOBUF_NAMESPACE_ID::Arena* arena,
1823                          bool is_message_owned)
1824   : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena, is_message_owned) {
1825   SharedCtor(arena, is_message_owned);
1826   // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDefs)
1827 }
ApiDefs(const ApiDefs & from)1828 ApiDefs::ApiDefs(const ApiDefs& from)
1829   : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
1830   ApiDefs* const _this = this; (void)_this;
1831   new (&_impl_) Impl_{
1832       decltype(_impl_.op_){from._impl_.op_}
1833     , /*decltype(_impl_._cached_size_)*/{}};
1834 
1835   _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1836   // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDefs)
1837 }
1838 
SharedCtor(::_pb::Arena * arena,bool is_message_owned)1839 inline void ApiDefs::SharedCtor(
1840     ::_pb::Arena* arena, bool is_message_owned) {
1841   (void)arena;
1842   (void)is_message_owned;
1843   new (&_impl_) Impl_{
1844       decltype(_impl_.op_){arena}
1845     , /*decltype(_impl_._cached_size_)*/{}
1846   };
1847 }
1848 
~ApiDefs()1849 ApiDefs::~ApiDefs() {
1850   // @@protoc_insertion_point(destructor:tensorflow.ApiDefs)
1851   if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
1852   (void)arena;
1853     return;
1854   }
1855   SharedDtor();
1856 }
1857 
SharedDtor()1858 inline void ApiDefs::SharedDtor() {
1859   GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
1860   _impl_.op_.~RepeatedPtrField();
1861 }
1862 
SetCachedSize(int size) const1863 void ApiDefs::SetCachedSize(int size) const {
1864   _impl_._cached_size_.Set(size);
1865 }
1866 
Clear()1867 void ApiDefs::Clear() {
1868 // @@protoc_insertion_point(message_clear_start:tensorflow.ApiDefs)
1869   ::uint32_t cached_has_bits = 0;
1870   // Prevent compiler warnings about cached_has_bits being unused
1871   (void) cached_has_bits;
1872 
1873   _impl_.op_.Clear();
1874   _internal_metadata_.Clear<std::string>();
1875 }
1876 
_InternalParse(const char * ptr,::_pbi::ParseContext * ctx)1877 const char* ApiDefs::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
1878 #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1879   while (!ctx->Done(&ptr)) {
1880     ::uint32_t tag;
1881     ptr = ::_pbi::ReadTag(ptr, &tag);
1882     switch (tag >> 3) {
1883       // repeated .tensorflow.ApiDef op = 1;
1884       case 1:
1885         if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
1886           ptr -= 1;
1887           do {
1888             ptr += 1;
1889             ptr = ctx->ParseMessage(_internal_add_op(), ptr);
1890             CHK_(ptr);
1891             if (!ctx->DataAvailable(ptr)) break;
1892           } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(ptr));
1893         } else {
1894           goto handle_unusual;
1895         }
1896         continue;
1897       default:
1898         goto handle_unusual;
1899     }  // switch
1900   handle_unusual:
1901     if ((tag == 0) || ((tag & 7) == 4)) {
1902       CHK_(ptr);
1903       ctx->SetLastTag(tag);
1904       goto message_done;
1905     }
1906     ptr = UnknownFieldParse(
1907         tag,
1908         _internal_metadata_.mutable_unknown_fields<std::string>(),
1909         ptr, ctx);
1910     CHK_(ptr != nullptr);
1911   }  // while
1912 message_done:
1913   return ptr;
1914 failure:
1915   ptr = nullptr;
1916   goto message_done;
1917 #undef CHK_
1918 }
1919 
_InternalSerialize(::uint8_t * target,::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream * stream) const1920 ::uint8_t* ApiDefs::_InternalSerialize(
1921     ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
1922   // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDefs)
1923   ::uint32_t cached_has_bits = 0;
1924   (void) cached_has_bits;
1925 
1926   // repeated .tensorflow.ApiDef op = 1;
1927   for (unsigned i = 0,
1928       n = static_cast<unsigned>(this->_internal_op_size()); i < n; i++) {
1929     const auto& repfield = this->_internal_op(i);
1930     target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1931         InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
1932   }
1933 
1934   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1935     target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
1936         static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
1937   }
1938   // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDefs)
1939   return target;
1940 }
1941 
ByteSizeLong() const1942 size_t ApiDefs::ByteSizeLong() const {
1943 // @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDefs)
1944   size_t total_size = 0;
1945 
1946   ::uint32_t cached_has_bits = 0;
1947   // Prevent compiler warnings about cached_has_bits being unused
1948   (void) cached_has_bits;
1949 
1950   // repeated .tensorflow.ApiDef op = 1;
1951   total_size += 1UL * this->_internal_op_size();
1952   for (const auto& msg : this->_impl_.op_) {
1953     total_size +=
1954       ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
1955   }
1956 
1957   if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
1958     total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
1959   }
1960   int cached_size = ::_pbi::ToCachedSize(total_size);
1961   SetCachedSize(cached_size);
1962   return total_size;
1963 }
1964 
CheckTypeAndMergeFrom(const::PROTOBUF_NAMESPACE_ID::MessageLite & from)1965 void ApiDefs::CheckTypeAndMergeFrom(
1966     const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
1967   MergeFrom(*::_pbi::DownCast<const ApiDefs*>(
1968       &from));
1969 }
1970 
MergeFrom(const ApiDefs & from)1971 void ApiDefs::MergeFrom(const ApiDefs& from) {
1972   ApiDefs* const _this = this;
1973   // @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDefs)
1974   GOOGLE_DCHECK_NE(&from, _this);
1975   ::uint32_t cached_has_bits = 0;
1976   (void) cached_has_bits;
1977 
1978   _this->_impl_.op_.MergeFrom(from._impl_.op_);
1979   _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
1980 }
1981 
CopyFrom(const ApiDefs & from)1982 void ApiDefs::CopyFrom(const ApiDefs& from) {
1983 // @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDefs)
1984   if (&from == this) return;
1985   Clear();
1986   MergeFrom(from);
1987 }
1988 
IsInitialized() const1989 bool ApiDefs::IsInitialized() const {
1990   return true;
1991 }
1992 
InternalSwap(ApiDefs * other)1993 void ApiDefs::InternalSwap(ApiDefs* other) {
1994   using std::swap;
1995   _internal_metadata_.InternalSwap(&other->_internal_metadata_);
1996   _impl_.op_.InternalSwap(&other->_impl_.op_);
1997 }
1998 
GetTypeName() const1999 std::string ApiDefs::GetTypeName() const {
2000   return "tensorflow.ApiDefs";
2001 }
2002 
2003 
2004 // @@protoc_insertion_point(namespace_scope)
2005 }  // namespace tensorflow
2006 PROTOBUF_NAMESPACE_OPEN
2007 template<> PROTOBUF_NOINLINE ::tensorflow::ApiDef_Endpoint*
CreateMaybeMessage(Arena * arena)2008 Arena::CreateMaybeMessage< ::tensorflow::ApiDef_Endpoint >(Arena* arena) {
2009   return Arena::CreateMessageInternal< ::tensorflow::ApiDef_Endpoint >(arena);
2010 }
2011 template<> PROTOBUF_NOINLINE ::tensorflow::ApiDef_Arg*
CreateMaybeMessage(Arena * arena)2012 Arena::CreateMaybeMessage< ::tensorflow::ApiDef_Arg >(Arena* arena) {
2013   return Arena::CreateMessageInternal< ::tensorflow::ApiDef_Arg >(arena);
2014 }
2015 template<> PROTOBUF_NOINLINE ::tensorflow::ApiDef_Attr*
CreateMaybeMessage(Arena * arena)2016 Arena::CreateMaybeMessage< ::tensorflow::ApiDef_Attr >(Arena* arena) {
2017   return Arena::CreateMessageInternal< ::tensorflow::ApiDef_Attr >(arena);
2018 }
2019 template<> PROTOBUF_NOINLINE ::tensorflow::ApiDef*
CreateMaybeMessage(Arena * arena)2020 Arena::CreateMaybeMessage< ::tensorflow::ApiDef >(Arena* arena) {
2021   return Arena::CreateMessageInternal< ::tensorflow::ApiDef >(arena);
2022 }
2023 template<> PROTOBUF_NOINLINE ::tensorflow::ApiDefs*
CreateMaybeMessage(Arena * arena)2024 Arena::CreateMaybeMessage< ::tensorflow::ApiDefs >(Arena* arena) {
2025   return Arena::CreateMessageInternal< ::tensorflow::ApiDefs >(arena);
2026 }
2027 PROTOBUF_NAMESPACE_CLOSE
2028 
2029 // @@protoc_insertion_point(global_scope)
2030 #include <google/protobuf/port_undef.inc>
2031