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
8#include <google/protobuf/stubs/common.h>
9#include <google/protobuf/io/coded_stream.h>
10#include <google/protobuf/extension_set.h>
11#include <google/protobuf/wire_format_lite.h>
12#include <google/protobuf/descriptor.h>
13#include <google/protobuf/generated_message_reflection.h>
14#include <google/protobuf/reflection_ops.h>
15#include <google/protobuf/wire_format.h>
16// @@protoc_insertion_point(includes)
17#include <google/protobuf/port_def.inc>
18extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_ApiDef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto;
19extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ApiDef_Arg_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto;
20extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ApiDef_Attr_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto;
21extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ApiDef_Endpoint_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto;
22extern PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<2> scc_info_AttrValue_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto;
23namespace tensorflow {
24class ApiDef_EndpointDefaultTypeInternal {
25 public:
26 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ApiDef_Endpoint> _instance;
27} _ApiDef_Endpoint_default_instance_;
28class ApiDef_ArgDefaultTypeInternal {
29 public:
30 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ApiDef_Arg> _instance;
31} _ApiDef_Arg_default_instance_;
32class ApiDef_AttrDefaultTypeInternal {
33 public:
34 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ApiDef_Attr> _instance;
35} _ApiDef_Attr_default_instance_;
36class ApiDefDefaultTypeInternal {
37 public:
38 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ApiDef> _instance;
39} _ApiDef_default_instance_;
40class ApiDefsDefaultTypeInternal {
41 public:
42 ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ApiDefs> _instance;
43} _ApiDefs_default_instance_;
44} // namespace tensorflow
45static void InitDefaultsscc_info_ApiDef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto() {
46 GOOGLE_PROTOBUF_VERIFY_VERSION;
47
48 {
49 void* ptr = &::tensorflow::_ApiDef_default_instance_;
50 new (ptr) ::tensorflow::ApiDef();
51 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
52 }
53 ::tensorflow::ApiDef::InitAsDefaultInstance();
54}
55
56::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<3> scc_info_ApiDef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto =
57 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 3, InitDefaultsscc_info_ApiDef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto}, {
58 &scc_info_ApiDef_Endpoint_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,
59 &scc_info_ApiDef_Arg_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,
60 &scc_info_ApiDef_Attr_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,}};
61
62static void InitDefaultsscc_info_ApiDef_Arg_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto() {
63 GOOGLE_PROTOBUF_VERIFY_VERSION;
64
65 {
66 void* ptr = &::tensorflow::_ApiDef_Arg_default_instance_;
67 new (ptr) ::tensorflow::ApiDef_Arg();
68 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
69 }
70 ::tensorflow::ApiDef_Arg::InitAsDefaultInstance();
71}
72
73::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ApiDef_Arg_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto =
74 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ApiDef_Arg_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto}, {}};
75
76static void InitDefaultsscc_info_ApiDef_Attr_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto() {
77 GOOGLE_PROTOBUF_VERIFY_VERSION;
78
79 {
80 void* ptr = &::tensorflow::_ApiDef_Attr_default_instance_;
81 new (ptr) ::tensorflow::ApiDef_Attr();
82 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
83 }
84 ::tensorflow::ApiDef_Attr::InitAsDefaultInstance();
85}
86
87::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ApiDef_Attr_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto =
88 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ApiDef_Attr_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto}, {
89 &scc_info_AttrValue_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto.base,}};
90
91static void InitDefaultsscc_info_ApiDef_Endpoint_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto() {
92 GOOGLE_PROTOBUF_VERIFY_VERSION;
93
94 {
95 void* ptr = &::tensorflow::_ApiDef_Endpoint_default_instance_;
96 new (ptr) ::tensorflow::ApiDef_Endpoint();
97 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
98 }
99 ::tensorflow::ApiDef_Endpoint::InitAsDefaultInstance();
100}
101
102::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ApiDef_Endpoint_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto =
103 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsscc_info_ApiDef_Endpoint_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto}, {}};
104
105static void InitDefaultsscc_info_ApiDefs_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto() {
106 GOOGLE_PROTOBUF_VERIFY_VERSION;
107
108 {
109 void* ptr = &::tensorflow::_ApiDefs_default_instance_;
110 new (ptr) ::tensorflow::ApiDefs();
111 ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
112 }
113 ::tensorflow::ApiDefs::InitAsDefaultInstance();
114}
115
116::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<1> scc_info_ApiDefs_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto =
117 {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsscc_info_ApiDefs_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto}, {
118 &scc_info_ApiDef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,}};
119
120static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto[5];
121static const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* file_level_enum_descriptors_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto[1];
122static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto = nullptr;
123
124const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
125 ~0u, // no _has_bits_
126 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Endpoint, _internal_metadata_),
127 ~0u, // no _extensions_
128 ~0u, // no _oneof_case_
129 ~0u, // no _weak_field_map_
130 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Endpoint, name_),
131 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Endpoint, deprecated_),
132 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Endpoint, deprecation_version_),
133 ~0u, // no _has_bits_
134 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Arg, _internal_metadata_),
135 ~0u, // no _extensions_
136 ~0u, // no _oneof_case_
137 ~0u, // no _weak_field_map_
138 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Arg, name_),
139 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Arg, rename_to_),
140 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Arg, description_),
141 ~0u, // no _has_bits_
142 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Attr, _internal_metadata_),
143 ~0u, // no _extensions_
144 ~0u, // no _oneof_case_
145 ~0u, // no _weak_field_map_
146 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Attr, name_),
147 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Attr, rename_to_),
148 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Attr, default_value_),
149 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef_Attr, description_),
150 ~0u, // no _has_bits_
151 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, _internal_metadata_),
152 ~0u, // no _extensions_
153 ~0u, // no _oneof_case_
154 ~0u, // no _weak_field_map_
155 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, graph_op_name_),
156 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, deprecation_message_),
157 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, deprecation_version_),
158 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, visibility_),
159 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, endpoint_),
160 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, in_arg_),
161 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, out_arg_),
162 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, arg_order_),
163 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, attr_),
164 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, summary_),
165 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, description_),
166 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, description_prefix_),
167 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDef, description_suffix_),
168 ~0u, // no _has_bits_
169 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDefs, _internal_metadata_),
170 ~0u, // no _extensions_
171 ~0u, // no _oneof_case_
172 ~0u, // no _weak_field_map_
173 PROTOBUF_FIELD_OFFSET(::tensorflow::ApiDefs, op_),
174};
175static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
176 { 0, -1, sizeof(::tensorflow::ApiDef_Endpoint)},
177 { 8, -1, sizeof(::tensorflow::ApiDef_Arg)},
178 { 16, -1, sizeof(::tensorflow::ApiDef_Attr)},
179 { 25, -1, sizeof(::tensorflow::ApiDef)},
180 { 43, -1, sizeof(::tensorflow::ApiDefs)},
181};
182
183static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
184 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ApiDef_Endpoint_default_instance_),
185 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ApiDef_Arg_default_instance_),
186 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ApiDef_Attr_default_instance_),
187 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ApiDef_default_instance_),
188 reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::tensorflow::_ApiDefs_default_instance_),
189};
190
191const char descriptor_table_protodef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
192 "\n\'tensorflow/core/framework/api_def.prot"
193 "o\022\ntensorflow\032*tensorflow/core/framework"
194 "/attr_value.proto\"\341\005\n\006ApiDef\022\025\n\rgraph_op"
195 "_name\030\001 \001(\t\022\033\n\023deprecation_message\030\014 \001(\t"
196 "\022\033\n\023deprecation_version\030\r \001(\005\0221\n\nvisibil"
197 "ity\030\002 \001(\0162\035.tensorflow.ApiDef.Visibility"
198 "\022-\n\010endpoint\030\003 \003(\0132\033.tensorflow.ApiDef.E"
199 "ndpoint\022&\n\006in_arg\030\004 \003(\0132\026.tensorflow.Api"
200 "Def.Arg\022\'\n\007out_arg\030\005 \003(\0132\026.tensorflow.Ap"
201 "iDef.Arg\022\021\n\targ_order\030\013 \003(\t\022%\n\004attr\030\006 \003("
202 "\0132\027.tensorflow.ApiDef.Attr\022\017\n\007summary\030\007 "
203 "\001(\t\022\023\n\013description\030\010 \001(\t\022\032\n\022description_"
204 "prefix\030\t \001(\t\022\032\n\022description_suffix\030\n \001(\t"
205 "\032I\n\010Endpoint\022\014\n\004name\030\001 \001(\t\022\022\n\ndeprecated"
206 "\030\003 \001(\010\022\033\n\023deprecation_version\030\004 \001(\005\032;\n\003A"
207 "rg\022\014\n\004name\030\001 \001(\t\022\021\n\trename_to\030\002 \001(\t\022\023\n\013d"
208 "escription\030\003 \001(\t\032j\n\004Attr\022\014\n\004name\030\001 \001(\t\022\021"
209 "\n\trename_to\030\002 \001(\t\022,\n\rdefault_value\030\003 \001(\013"
210 "2\025.tensorflow.AttrValue\022\023\n\013description\030\004"
211 " \001(\t\"G\n\nVisibility\022\026\n\022DEFAULT_VISIBILITY"
212 "\020\000\022\013\n\007VISIBLE\020\001\022\010\n\004SKIP\020\002\022\n\n\006HIDDEN\020\003\")\n"
213 "\007ApiDefs\022\036\n\002op\030\001 \003(\0132\022.tensorflow.ApiDef"
214 "B}\n\030org.tensorflow.frameworkB\014ApiDefProt"
215 "osP\001ZNgithub.com/tensorflow/tensorflow/t"
216 "ensorflow/go/core/framework/api_def_go_p"
217 "roto\370\001\001b\006proto3"
218 ;
219static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto_deps[1] = {
220 &::descriptor_table_tensorflow_2fcore_2fframework_2fattr_5fvalue_2eproto,
221};
222static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto_sccs[5] = {
223 &scc_info_ApiDef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,
224 &scc_info_ApiDef_Arg_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,
225 &scc_info_ApiDef_Attr_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,
226 &scc_info_ApiDef_Endpoint_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,
227 &scc_info_ApiDefs_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base,
228};
229static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto_once;
230static bool descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto_initialized = false;
231const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto = {
232 &descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto_initialized, descriptor_table_protodef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto, "tensorflow/core/framework/api_def.proto", 1015,
233 &descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto_once, descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto_sccs, descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto_deps, 5, 1,
234 schemas, file_default_instances, TableStruct_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto::offsets,
235 file_level_metadata_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto, 5, file_level_enum_descriptors_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto, file_level_service_descriptors_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto,
236};
237
238// Force running AddDescriptors() at dynamic initialization time.
239static bool dynamic_init_dummy_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto = ( ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto), true);
240namespace tensorflow {
241const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ApiDef_Visibility_descriptor() {
242 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&descriptor_table_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto);
243 return file_level_enum_descriptors_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto[0];
244}
245bool ApiDef_Visibility_IsValid(int value) {
246 switch (value) {
247 case 0:
248 case 1:
249 case 2:
250 case 3:
251 return true;
252 default:
253 return false;
254 }
255}
256
257#if (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
258constexpr ApiDef_Visibility ApiDef::DEFAULT_VISIBILITY;
259constexpr ApiDef_Visibility ApiDef::VISIBLE;
260constexpr ApiDef_Visibility ApiDef::SKIP;
261constexpr ApiDef_Visibility ApiDef::HIDDEN;
262constexpr ApiDef_Visibility ApiDef::Visibility_MIN;
263constexpr ApiDef_Visibility ApiDef::Visibility_MAX;
264constexpr int ApiDef::Visibility_ARRAYSIZE;
265#endif // (__cplusplus < 201703) && (!defined(_MSC_VER) || _MSC_VER >= 1900)
266
267// ===================================================================
268
269void ApiDef_Endpoint::InitAsDefaultInstance() {
270}
271class ApiDef_Endpoint::_Internal {
272 public:
273};
274
275ApiDef_Endpoint::ApiDef_Endpoint()
276 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
277 SharedCtor();
278 // @@protoc_insertion_point(constructor:tensorflow.ApiDef.Endpoint)
279}
280ApiDef_Endpoint::ApiDef_Endpoint(::PROTOBUF_NAMESPACE_ID::Arena* arena)
281 : ::PROTOBUF_NAMESPACE_ID::Message(),
282 _internal_metadata_(arena) {
283 SharedCtor();
284 RegisterArenaDtor(arena);
285 // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDef.Endpoint)
286}
287ApiDef_Endpoint::ApiDef_Endpoint(const ApiDef_Endpoint& from)
288 : ::PROTOBUF_NAMESPACE_ID::Message(),
289 _internal_metadata_(nullptr) {
290 _internal_metadata_.MergeFrom(from._internal_metadata_);
291 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
292 if (!from.name().empty()) {
293 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
294 GetArenaNoVirtual());
295 }
296 ::memcpy(&deprecated_, &from.deprecated_,
297 static_cast<size_t>(reinterpret_cast<char*>(&deprecation_version_) -
298 reinterpret_cast<char*>(&deprecated_)) + sizeof(deprecation_version_));
299 // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDef.Endpoint)
300}
301
302void ApiDef_Endpoint::SharedCtor() {
303 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ApiDef_Endpoint_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
304 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
305 ::memset(&deprecated_, 0, static_cast<size_t>(
306 reinterpret_cast<char*>(&deprecation_version_) -
307 reinterpret_cast<char*>(&deprecated_)) + sizeof(deprecation_version_));
308}
309
310ApiDef_Endpoint::~ApiDef_Endpoint() {
311 // @@protoc_insertion_point(destructor:tensorflow.ApiDef.Endpoint)
312 SharedDtor();
313}
314
315void ApiDef_Endpoint::SharedDtor() {
316 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
317 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
318}
319
320void ApiDef_Endpoint::ArenaDtor(void* object) {
321 ApiDef_Endpoint* _this = reinterpret_cast< ApiDef_Endpoint* >(object);
322 (void)_this;
323}
324void ApiDef_Endpoint::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
325}
326void ApiDef_Endpoint::SetCachedSize(int size) const {
327 _cached_size_.Set(size);
328}
329const ApiDef_Endpoint& ApiDef_Endpoint::default_instance() {
330 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ApiDef_Endpoint_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
331 return *internal_default_instance();
332}
333
334
335void ApiDef_Endpoint::Clear() {
336// @@protoc_insertion_point(message_clear_start:tensorflow.ApiDef.Endpoint)
337 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
338 // Prevent compiler warnings about cached_has_bits being unused
339 (void) cached_has_bits;
340
341 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
342 ::memset(&deprecated_, 0, static_cast<size_t>(
343 reinterpret_cast<char*>(&deprecation_version_) -
344 reinterpret_cast<char*>(&deprecated_)) + sizeof(deprecation_version_));
345 _internal_metadata_.Clear();
346}
347
348#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
349const char* ApiDef_Endpoint::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
350#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
351 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
352 while (!ctx->Done(&ptr)) {
353 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
354 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
355 CHK_(ptr);
356 switch (tag >> 3) {
357 // string name = 1;
358 case 1:
359 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
360 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.ApiDef.Endpoint.name");
361 CHK_(ptr);
362 } else goto handle_unusual;
363 continue;
364 // bool deprecated = 3;
365 case 3:
366 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
367 deprecated_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
368 CHK_(ptr);
369 } else goto handle_unusual;
370 continue;
371 // int32 deprecation_version = 4;
372 case 4:
373 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
374 deprecation_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
375 CHK_(ptr);
376 } else goto handle_unusual;
377 continue;
378 default: {
379 handle_unusual:
380 if ((tag & 7) == 4 || tag == 0) {
381 ctx->SetLastTag(tag);
382 goto success;
383 }
384 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
385 CHK_(ptr != nullptr);
386 continue;
387 }
388 } // switch
389 } // while
390success:
391 return ptr;
392failure:
393 ptr = nullptr;
394 goto success;
395#undef CHK_
396}
397#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
398bool ApiDef_Endpoint::MergePartialFromCodedStream(
399 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
400#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
401 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
402 // @@protoc_insertion_point(parse_start:tensorflow.ApiDef.Endpoint)
403 for (;;) {
404 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
405 tag = p.first;
406 if (!p.second) goto handle_unusual;
407 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
408 // string name = 1;
409 case 1: {
410 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
411 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
412 input, this->mutable_name()));
413 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
414 this->name().data(), static_cast<int>(this->name().length()),
415 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
416 "tensorflow.ApiDef.Endpoint.name"));
417 } else {
418 goto handle_unusual;
419 }
420 break;
421 }
422
423 // bool deprecated = 3;
424 case 3: {
425 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (24 & 0xFF)) {
426
427 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
428 bool, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_BOOL>(
429 input, &deprecated_)));
430 } else {
431 goto handle_unusual;
432 }
433 break;
434 }
435
436 // int32 deprecation_version = 4;
437 case 4: {
438 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (32 & 0xFF)) {
439
440 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
441 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
442 input, &deprecation_version_)));
443 } else {
444 goto handle_unusual;
445 }
446 break;
447 }
448
449 default: {
450 handle_unusual:
451 if (tag == 0) {
452 goto success;
453 }
454 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
455 input, tag, _internal_metadata_.mutable_unknown_fields()));
456 break;
457 }
458 }
459 }
460success:
461 // @@protoc_insertion_point(parse_success:tensorflow.ApiDef.Endpoint)
462 return true;
463failure:
464 // @@protoc_insertion_point(parse_failure:tensorflow.ApiDef.Endpoint)
465 return false;
466#undef DO_
467}
468#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
469
470void ApiDef_Endpoint::SerializeWithCachedSizes(
471 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
472 // @@protoc_insertion_point(serialize_start:tensorflow.ApiDef.Endpoint)
473 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
474 (void) cached_has_bits;
475
476 // string name = 1;
477 if (this->name().size() > 0) {
478 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
479 this->name().data(), static_cast<int>(this->name().length()),
480 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
481 "tensorflow.ApiDef.Endpoint.name");
482 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
483 1, this->name(), output);
484 }
485
486 // bool deprecated = 3;
487 if (this->deprecated() != 0) {
488 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBool(3, this->deprecated(), output);
489 }
490
491 // int32 deprecation_version = 4;
492 if (this->deprecation_version() != 0) {
493 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(4, this->deprecation_version(), output);
494 }
495
496 if (_internal_metadata_.have_unknown_fields()) {
497 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
498 _internal_metadata_.unknown_fields(), output);
499 }
500 // @@protoc_insertion_point(serialize_end:tensorflow.ApiDef.Endpoint)
501}
502
503::PROTOBUF_NAMESPACE_ID::uint8* ApiDef_Endpoint::InternalSerializeWithCachedSizesToArray(
504 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
505 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDef.Endpoint)
506 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
507 (void) cached_has_bits;
508
509 // string name = 1;
510 if (this->name().size() > 0) {
511 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
512 this->name().data(), static_cast<int>(this->name().length()),
513 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
514 "tensorflow.ApiDef.Endpoint.name");
515 target =
516 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
517 1, this->name(), target);
518 }
519
520 // bool deprecated = 3;
521 if (this->deprecated() != 0) {
522 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->deprecated(), target);
523 }
524
525 // int32 deprecation_version = 4;
526 if (this->deprecation_version() != 0) {
527 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->deprecation_version(), target);
528 }
529
530 if (_internal_metadata_.have_unknown_fields()) {
531 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
532 _internal_metadata_.unknown_fields(), target);
533 }
534 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDef.Endpoint)
535 return target;
536}
537
538size_t ApiDef_Endpoint::ByteSizeLong() const {
539// @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDef.Endpoint)
540 size_t total_size = 0;
541
542 if (_internal_metadata_.have_unknown_fields()) {
543 total_size +=
544 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
545 _internal_metadata_.unknown_fields());
546 }
547 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
548 // Prevent compiler warnings about cached_has_bits being unused
549 (void) cached_has_bits;
550
551 // string name = 1;
552 if (this->name().size() > 0) {
553 total_size += 1 +
554 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
555 this->name());
556 }
557
558 // bool deprecated = 3;
559 if (this->deprecated() != 0) {
560 total_size += 1 + 1;
561 }
562
563 // int32 deprecation_version = 4;
564 if (this->deprecation_version() != 0) {
565 total_size += 1 +
566 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
567 this->deprecation_version());
568 }
569
570 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
571 SetCachedSize(cached_size);
572 return total_size;
573}
574
575void ApiDef_Endpoint::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
576// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ApiDef.Endpoint)
577 GOOGLE_DCHECK_NE(&from, this);
578 const ApiDef_Endpoint* source =
579 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ApiDef_Endpoint>(
580 &from);
581 if (source == nullptr) {
582 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ApiDef.Endpoint)
583 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
584 } else {
585 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ApiDef.Endpoint)
586 MergeFrom(*source);
587 }
588}
589
590void ApiDef_Endpoint::MergeFrom(const ApiDef_Endpoint& from) {
591// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDef.Endpoint)
592 GOOGLE_DCHECK_NE(&from, this);
593 _internal_metadata_.MergeFrom(from._internal_metadata_);
594 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
595 (void) cached_has_bits;
596
597 if (from.name().size() > 0) {
598 set_name(from.name());
599 }
600 if (from.deprecated() != 0) {
601 set_deprecated(from.deprecated());
602 }
603 if (from.deprecation_version() != 0) {
604 set_deprecation_version(from.deprecation_version());
605 }
606}
607
608void ApiDef_Endpoint::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
609// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ApiDef.Endpoint)
610 if (&from == this) return;
611 Clear();
612 MergeFrom(from);
613}
614
615void ApiDef_Endpoint::CopyFrom(const ApiDef_Endpoint& from) {
616// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDef.Endpoint)
617 if (&from == this) return;
618 Clear();
619 MergeFrom(from);
620}
621
622bool ApiDef_Endpoint::IsInitialized() const {
623 return true;
624}
625
626void ApiDef_Endpoint::InternalSwap(ApiDef_Endpoint* other) {
627 using std::swap;
628 _internal_metadata_.Swap(&other->_internal_metadata_);
629 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
630 GetArenaNoVirtual());
631 swap(deprecated_, other->deprecated_);
632 swap(deprecation_version_, other->deprecation_version_);
633}
634
635::PROTOBUF_NAMESPACE_ID::Metadata ApiDef_Endpoint::GetMetadata() const {
636 return GetMetadataStatic();
637}
638
639
640// ===================================================================
641
642void ApiDef_Arg::InitAsDefaultInstance() {
643}
644class ApiDef_Arg::_Internal {
645 public:
646};
647
648ApiDef_Arg::ApiDef_Arg()
649 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
650 SharedCtor();
651 // @@protoc_insertion_point(constructor:tensorflow.ApiDef.Arg)
652}
653ApiDef_Arg::ApiDef_Arg(::PROTOBUF_NAMESPACE_ID::Arena* arena)
654 : ::PROTOBUF_NAMESPACE_ID::Message(),
655 _internal_metadata_(arena) {
656 SharedCtor();
657 RegisterArenaDtor(arena);
658 // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDef.Arg)
659}
660ApiDef_Arg::ApiDef_Arg(const ApiDef_Arg& from)
661 : ::PROTOBUF_NAMESPACE_ID::Message(),
662 _internal_metadata_(nullptr) {
663 _internal_metadata_.MergeFrom(from._internal_metadata_);
664 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
665 if (!from.name().empty()) {
666 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
667 GetArenaNoVirtual());
668 }
669 rename_to_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
670 if (!from.rename_to().empty()) {
671 rename_to_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.rename_to(),
672 GetArenaNoVirtual());
673 }
674 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
675 if (!from.description().empty()) {
676 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description(),
677 GetArenaNoVirtual());
678 }
679 // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDef.Arg)
680}
681
682void ApiDef_Arg::SharedCtor() {
683 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ApiDef_Arg_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
684 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
685 rename_to_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
686 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
687}
688
689ApiDef_Arg::~ApiDef_Arg() {
690 // @@protoc_insertion_point(destructor:tensorflow.ApiDef.Arg)
691 SharedDtor();
692}
693
694void ApiDef_Arg::SharedDtor() {
695 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
696 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
697 rename_to_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
698 description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
699}
700
701void ApiDef_Arg::ArenaDtor(void* object) {
702 ApiDef_Arg* _this = reinterpret_cast< ApiDef_Arg* >(object);
703 (void)_this;
704}
705void ApiDef_Arg::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
706}
707void ApiDef_Arg::SetCachedSize(int size) const {
708 _cached_size_.Set(size);
709}
710const ApiDef_Arg& ApiDef_Arg::default_instance() {
711 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ApiDef_Arg_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
712 return *internal_default_instance();
713}
714
715
716void ApiDef_Arg::Clear() {
717// @@protoc_insertion_point(message_clear_start:tensorflow.ApiDef.Arg)
718 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
719 // Prevent compiler warnings about cached_has_bits being unused
720 (void) cached_has_bits;
721
722 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
723 rename_to_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
724 description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
725 _internal_metadata_.Clear();
726}
727
728#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
729const char* ApiDef_Arg::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
730#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
731 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
732 while (!ctx->Done(&ptr)) {
733 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
734 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
735 CHK_(ptr);
736 switch (tag >> 3) {
737 // string name = 1;
738 case 1:
739 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
740 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.ApiDef.Arg.name");
741 CHK_(ptr);
742 } else goto handle_unusual;
743 continue;
744 // string rename_to = 2;
745 case 2:
746 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
747 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_rename_to(), ptr, ctx, "tensorflow.ApiDef.Arg.rename_to");
748 CHK_(ptr);
749 } else goto handle_unusual;
750 continue;
751 // string description = 3;
752 case 3:
753 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
754 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_description(), ptr, ctx, "tensorflow.ApiDef.Arg.description");
755 CHK_(ptr);
756 } else goto handle_unusual;
757 continue;
758 default: {
759 handle_unusual:
760 if ((tag & 7) == 4 || tag == 0) {
761 ctx->SetLastTag(tag);
762 goto success;
763 }
764 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
765 CHK_(ptr != nullptr);
766 continue;
767 }
768 } // switch
769 } // while
770success:
771 return ptr;
772failure:
773 ptr = nullptr;
774 goto success;
775#undef CHK_
776}
777#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
778bool ApiDef_Arg::MergePartialFromCodedStream(
779 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
780#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
781 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
782 // @@protoc_insertion_point(parse_start:tensorflow.ApiDef.Arg)
783 for (;;) {
784 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
785 tag = p.first;
786 if (!p.second) goto handle_unusual;
787 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
788 // string name = 1;
789 case 1: {
790 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
791 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
792 input, this->mutable_name()));
793 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
794 this->name().data(), static_cast<int>(this->name().length()),
795 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
796 "tensorflow.ApiDef.Arg.name"));
797 } else {
798 goto handle_unusual;
799 }
800 break;
801 }
802
803 // string rename_to = 2;
804 case 2: {
805 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
806 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
807 input, this->mutable_rename_to()));
808 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
809 this->rename_to().data(), static_cast<int>(this->rename_to().length()),
810 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
811 "tensorflow.ApiDef.Arg.rename_to"));
812 } else {
813 goto handle_unusual;
814 }
815 break;
816 }
817
818 // string description = 3;
819 case 3: {
820 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
821 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
822 input, this->mutable_description()));
823 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
824 this->description().data(), static_cast<int>(this->description().length()),
825 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
826 "tensorflow.ApiDef.Arg.description"));
827 } else {
828 goto handle_unusual;
829 }
830 break;
831 }
832
833 default: {
834 handle_unusual:
835 if (tag == 0) {
836 goto success;
837 }
838 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
839 input, tag, _internal_metadata_.mutable_unknown_fields()));
840 break;
841 }
842 }
843 }
844success:
845 // @@protoc_insertion_point(parse_success:tensorflow.ApiDef.Arg)
846 return true;
847failure:
848 // @@protoc_insertion_point(parse_failure:tensorflow.ApiDef.Arg)
849 return false;
850#undef DO_
851}
852#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
853
854void ApiDef_Arg::SerializeWithCachedSizes(
855 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
856 // @@protoc_insertion_point(serialize_start:tensorflow.ApiDef.Arg)
857 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
858 (void) cached_has_bits;
859
860 // string name = 1;
861 if (this->name().size() > 0) {
862 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
863 this->name().data(), static_cast<int>(this->name().length()),
864 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
865 "tensorflow.ApiDef.Arg.name");
866 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
867 1, this->name(), output);
868 }
869
870 // string rename_to = 2;
871 if (this->rename_to().size() > 0) {
872 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
873 this->rename_to().data(), static_cast<int>(this->rename_to().length()),
874 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
875 "tensorflow.ApiDef.Arg.rename_to");
876 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
877 2, this->rename_to(), output);
878 }
879
880 // string description = 3;
881 if (this->description().size() > 0) {
882 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
883 this->description().data(), static_cast<int>(this->description().length()),
884 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
885 "tensorflow.ApiDef.Arg.description");
886 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
887 3, this->description(), output);
888 }
889
890 if (_internal_metadata_.have_unknown_fields()) {
891 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
892 _internal_metadata_.unknown_fields(), output);
893 }
894 // @@protoc_insertion_point(serialize_end:tensorflow.ApiDef.Arg)
895}
896
897::PROTOBUF_NAMESPACE_ID::uint8* ApiDef_Arg::InternalSerializeWithCachedSizesToArray(
898 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
899 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDef.Arg)
900 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
901 (void) cached_has_bits;
902
903 // string name = 1;
904 if (this->name().size() > 0) {
905 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
906 this->name().data(), static_cast<int>(this->name().length()),
907 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
908 "tensorflow.ApiDef.Arg.name");
909 target =
910 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
911 1, this->name(), target);
912 }
913
914 // string rename_to = 2;
915 if (this->rename_to().size() > 0) {
916 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
917 this->rename_to().data(), static_cast<int>(this->rename_to().length()),
918 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
919 "tensorflow.ApiDef.Arg.rename_to");
920 target =
921 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
922 2, this->rename_to(), target);
923 }
924
925 // string description = 3;
926 if (this->description().size() > 0) {
927 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
928 this->description().data(), static_cast<int>(this->description().length()),
929 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
930 "tensorflow.ApiDef.Arg.description");
931 target =
932 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
933 3, this->description(), target);
934 }
935
936 if (_internal_metadata_.have_unknown_fields()) {
937 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
938 _internal_metadata_.unknown_fields(), target);
939 }
940 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDef.Arg)
941 return target;
942}
943
944size_t ApiDef_Arg::ByteSizeLong() const {
945// @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDef.Arg)
946 size_t total_size = 0;
947
948 if (_internal_metadata_.have_unknown_fields()) {
949 total_size +=
950 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
951 _internal_metadata_.unknown_fields());
952 }
953 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
954 // Prevent compiler warnings about cached_has_bits being unused
955 (void) cached_has_bits;
956
957 // string name = 1;
958 if (this->name().size() > 0) {
959 total_size += 1 +
960 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
961 this->name());
962 }
963
964 // string rename_to = 2;
965 if (this->rename_to().size() > 0) {
966 total_size += 1 +
967 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
968 this->rename_to());
969 }
970
971 // string description = 3;
972 if (this->description().size() > 0) {
973 total_size += 1 +
974 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
975 this->description());
976 }
977
978 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
979 SetCachedSize(cached_size);
980 return total_size;
981}
982
983void ApiDef_Arg::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
984// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ApiDef.Arg)
985 GOOGLE_DCHECK_NE(&from, this);
986 const ApiDef_Arg* source =
987 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ApiDef_Arg>(
988 &from);
989 if (source == nullptr) {
990 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ApiDef.Arg)
991 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
992 } else {
993 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ApiDef.Arg)
994 MergeFrom(*source);
995 }
996}
997
998void ApiDef_Arg::MergeFrom(const ApiDef_Arg& from) {
999// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDef.Arg)
1000 GOOGLE_DCHECK_NE(&from, this);
1001 _internal_metadata_.MergeFrom(from._internal_metadata_);
1002 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1003 (void) cached_has_bits;
1004
1005 if (from.name().size() > 0) {
1006 set_name(from.name());
1007 }
1008 if (from.rename_to().size() > 0) {
1009 set_rename_to(from.rename_to());
1010 }
1011 if (from.description().size() > 0) {
1012 set_description(from.description());
1013 }
1014}
1015
1016void ApiDef_Arg::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1017// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ApiDef.Arg)
1018 if (&from == this) return;
1019 Clear();
1020 MergeFrom(from);
1021}
1022
1023void ApiDef_Arg::CopyFrom(const ApiDef_Arg& from) {
1024// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDef.Arg)
1025 if (&from == this) return;
1026 Clear();
1027 MergeFrom(from);
1028}
1029
1030bool ApiDef_Arg::IsInitialized() const {
1031 return true;
1032}
1033
1034void ApiDef_Arg::InternalSwap(ApiDef_Arg* other) {
1035 using std::swap;
1036 _internal_metadata_.Swap(&other->_internal_metadata_);
1037 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1038 GetArenaNoVirtual());
1039 rename_to_.Swap(&other->rename_to_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1040 GetArenaNoVirtual());
1041 description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1042 GetArenaNoVirtual());
1043}
1044
1045::PROTOBUF_NAMESPACE_ID::Metadata ApiDef_Arg::GetMetadata() const {
1046 return GetMetadataStatic();
1047}
1048
1049
1050// ===================================================================
1051
1052void ApiDef_Attr::InitAsDefaultInstance() {
1053 ::tensorflow::_ApiDef_Attr_default_instance_._instance.get_mutable()->default_value_ = const_cast< ::tensorflow::AttrValue*>(
1054 ::tensorflow::AttrValue::internal_default_instance());
1055}
1056class ApiDef_Attr::_Internal {
1057 public:
1058 static const ::tensorflow::AttrValue& default_value(const ApiDef_Attr* msg);
1059};
1060
1061const ::tensorflow::AttrValue&
1062ApiDef_Attr::_Internal::default_value(const ApiDef_Attr* msg) {
1063 return *msg->default_value_;
1064}
1065void ApiDef_Attr::unsafe_arena_set_allocated_default_value(
1066 ::tensorflow::AttrValue* default_value) {
1067 if (GetArenaNoVirtual() == nullptr) {
1068 delete default_value_;
1069 }
1070 default_value_ = default_value;
1071 if (default_value) {
1072
1073 } else {
1074
1075 }
1076 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.ApiDef.Attr.default_value)
1077}
1078void ApiDef_Attr::clear_default_value() {
1079 if (GetArenaNoVirtual() == nullptr && default_value_ != nullptr) {
1080 delete default_value_;
1081 }
1082 default_value_ = nullptr;
1083}
1084ApiDef_Attr::ApiDef_Attr()
1085 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1086 SharedCtor();
1087 // @@protoc_insertion_point(constructor:tensorflow.ApiDef.Attr)
1088}
1089ApiDef_Attr::ApiDef_Attr(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1090 : ::PROTOBUF_NAMESPACE_ID::Message(),
1091 _internal_metadata_(arena) {
1092 SharedCtor();
1093 RegisterArenaDtor(arena);
1094 // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDef.Attr)
1095}
1096ApiDef_Attr::ApiDef_Attr(const ApiDef_Attr& from)
1097 : ::PROTOBUF_NAMESPACE_ID::Message(),
1098 _internal_metadata_(nullptr) {
1099 _internal_metadata_.MergeFrom(from._internal_metadata_);
1100 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1101 if (!from.name().empty()) {
1102 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.name(),
1103 GetArenaNoVirtual());
1104 }
1105 rename_to_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1106 if (!from.rename_to().empty()) {
1107 rename_to_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.rename_to(),
1108 GetArenaNoVirtual());
1109 }
1110 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1111 if (!from.description().empty()) {
1112 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description(),
1113 GetArenaNoVirtual());
1114 }
1115 if (from.has_default_value()) {
1116 default_value_ = new ::tensorflow::AttrValue(*from.default_value_);
1117 } else {
1118 default_value_ = nullptr;
1119 }
1120 // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDef.Attr)
1121}
1122
1123void ApiDef_Attr::SharedCtor() {
1124 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ApiDef_Attr_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
1125 name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1126 rename_to_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1127 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1128 default_value_ = nullptr;
1129}
1130
1131ApiDef_Attr::~ApiDef_Attr() {
1132 // @@protoc_insertion_point(destructor:tensorflow.ApiDef.Attr)
1133 SharedDtor();
1134}
1135
1136void ApiDef_Attr::SharedDtor() {
1137 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1138 name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1139 rename_to_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1140 description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1141 if (this != internal_default_instance()) delete default_value_;
1142}
1143
1144void ApiDef_Attr::ArenaDtor(void* object) {
1145 ApiDef_Attr* _this = reinterpret_cast< ApiDef_Attr* >(object);
1146 (void)_this;
1147}
1148void ApiDef_Attr::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1149}
1150void ApiDef_Attr::SetCachedSize(int size) const {
1151 _cached_size_.Set(size);
1152}
1153const ApiDef_Attr& ApiDef_Attr::default_instance() {
1154 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ApiDef_Attr_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
1155 return *internal_default_instance();
1156}
1157
1158
1159void ApiDef_Attr::Clear() {
1160// @@protoc_insertion_point(message_clear_start:tensorflow.ApiDef.Attr)
1161 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1162 // Prevent compiler warnings about cached_has_bits being unused
1163 (void) cached_has_bits;
1164
1165 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1166 rename_to_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1167 description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1168 if (GetArenaNoVirtual() == nullptr && default_value_ != nullptr) {
1169 delete default_value_;
1170 }
1171 default_value_ = nullptr;
1172 _internal_metadata_.Clear();
1173}
1174
1175#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1176const char* ApiDef_Attr::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1177#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1178 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1179 while (!ctx->Done(&ptr)) {
1180 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1181 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1182 CHK_(ptr);
1183 switch (tag >> 3) {
1184 // string name = 1;
1185 case 1:
1186 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1187 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_name(), ptr, ctx, "tensorflow.ApiDef.Attr.name");
1188 CHK_(ptr);
1189 } else goto handle_unusual;
1190 continue;
1191 // string rename_to = 2;
1192 case 2:
1193 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
1194 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_rename_to(), ptr, ctx, "tensorflow.ApiDef.Attr.rename_to");
1195 CHK_(ptr);
1196 } else goto handle_unusual;
1197 continue;
1198 // .tensorflow.AttrValue default_value = 3;
1199 case 3:
1200 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1201 ptr = ctx->ParseMessage(mutable_default_value(), ptr);
1202 CHK_(ptr);
1203 } else goto handle_unusual;
1204 continue;
1205 // string description = 4;
1206 case 4:
1207 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1208 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_description(), ptr, ctx, "tensorflow.ApiDef.Attr.description");
1209 CHK_(ptr);
1210 } else goto handle_unusual;
1211 continue;
1212 default: {
1213 handle_unusual:
1214 if ((tag & 7) == 4 || tag == 0) {
1215 ctx->SetLastTag(tag);
1216 goto success;
1217 }
1218 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1219 CHK_(ptr != nullptr);
1220 continue;
1221 }
1222 } // switch
1223 } // while
1224success:
1225 return ptr;
1226failure:
1227 ptr = nullptr;
1228 goto success;
1229#undef CHK_
1230}
1231#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1232bool ApiDef_Attr::MergePartialFromCodedStream(
1233 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1234#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1235 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1236 // @@protoc_insertion_point(parse_start:tensorflow.ApiDef.Attr)
1237 for (;;) {
1238 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1239 tag = p.first;
1240 if (!p.second) goto handle_unusual;
1241 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1242 // string name = 1;
1243 case 1: {
1244 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1245 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1246 input, this->mutable_name()));
1247 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1248 this->name().data(), static_cast<int>(this->name().length()),
1249 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1250 "tensorflow.ApiDef.Attr.name"));
1251 } else {
1252 goto handle_unusual;
1253 }
1254 break;
1255 }
1256
1257 // string rename_to = 2;
1258 case 2: {
1259 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (18 & 0xFF)) {
1260 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1261 input, this->mutable_rename_to()));
1262 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1263 this->rename_to().data(), static_cast<int>(this->rename_to().length()),
1264 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1265 "tensorflow.ApiDef.Attr.rename_to"));
1266 } else {
1267 goto handle_unusual;
1268 }
1269 break;
1270 }
1271
1272 // .tensorflow.AttrValue default_value = 3;
1273 case 3: {
1274 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
1275 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1276 input, mutable_default_value()));
1277 } else {
1278 goto handle_unusual;
1279 }
1280 break;
1281 }
1282
1283 // string description = 4;
1284 case 4: {
1285 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
1286 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1287 input, this->mutable_description()));
1288 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1289 this->description().data(), static_cast<int>(this->description().length()),
1290 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1291 "tensorflow.ApiDef.Attr.description"));
1292 } else {
1293 goto handle_unusual;
1294 }
1295 break;
1296 }
1297
1298 default: {
1299 handle_unusual:
1300 if (tag == 0) {
1301 goto success;
1302 }
1303 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
1304 input, tag, _internal_metadata_.mutable_unknown_fields()));
1305 break;
1306 }
1307 }
1308 }
1309success:
1310 // @@protoc_insertion_point(parse_success:tensorflow.ApiDef.Attr)
1311 return true;
1312failure:
1313 // @@protoc_insertion_point(parse_failure:tensorflow.ApiDef.Attr)
1314 return false;
1315#undef DO_
1316}
1317#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1318
1319void ApiDef_Attr::SerializeWithCachedSizes(
1320 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
1321 // @@protoc_insertion_point(serialize_start:tensorflow.ApiDef.Attr)
1322 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1323 (void) cached_has_bits;
1324
1325 // string name = 1;
1326 if (this->name().size() > 0) {
1327 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1328 this->name().data(), static_cast<int>(this->name().length()),
1329 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1330 "tensorflow.ApiDef.Attr.name");
1331 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1332 1, this->name(), output);
1333 }
1334
1335 // string rename_to = 2;
1336 if (this->rename_to().size() > 0) {
1337 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1338 this->rename_to().data(), static_cast<int>(this->rename_to().length()),
1339 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1340 "tensorflow.ApiDef.Attr.rename_to");
1341 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1342 2, this->rename_to(), output);
1343 }
1344
1345 // .tensorflow.AttrValue default_value = 3;
1346 if (this->has_default_value()) {
1347 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
1348 3, _Internal::default_value(this), output);
1349 }
1350
1351 // string description = 4;
1352 if (this->description().size() > 0) {
1353 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1354 this->description().data(), static_cast<int>(this->description().length()),
1355 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1356 "tensorflow.ApiDef.Attr.description");
1357 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
1358 4, this->description(), output);
1359 }
1360
1361 if (_internal_metadata_.have_unknown_fields()) {
1362 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
1363 _internal_metadata_.unknown_fields(), output);
1364 }
1365 // @@protoc_insertion_point(serialize_end:tensorflow.ApiDef.Attr)
1366}
1367
1368::PROTOBUF_NAMESPACE_ID::uint8* ApiDef_Attr::InternalSerializeWithCachedSizesToArray(
1369 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
1370 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDef.Attr)
1371 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1372 (void) cached_has_bits;
1373
1374 // string name = 1;
1375 if (this->name().size() > 0) {
1376 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1377 this->name().data(), static_cast<int>(this->name().length()),
1378 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1379 "tensorflow.ApiDef.Attr.name");
1380 target =
1381 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1382 1, this->name(), target);
1383 }
1384
1385 // string rename_to = 2;
1386 if (this->rename_to().size() > 0) {
1387 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1388 this->rename_to().data(), static_cast<int>(this->rename_to().length()),
1389 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1390 "tensorflow.ApiDef.Attr.rename_to");
1391 target =
1392 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1393 2, this->rename_to(), target);
1394 }
1395
1396 // .tensorflow.AttrValue default_value = 3;
1397 if (this->has_default_value()) {
1398 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
1399 InternalWriteMessageToArray(
1400 3, _Internal::default_value(this), target);
1401 }
1402
1403 // string description = 4;
1404 if (this->description().size() > 0) {
1405 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1406 this->description().data(), static_cast<int>(this->description().length()),
1407 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
1408 "tensorflow.ApiDef.Attr.description");
1409 target =
1410 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
1411 4, this->description(), target);
1412 }
1413
1414 if (_internal_metadata_.have_unknown_fields()) {
1415 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
1416 _internal_metadata_.unknown_fields(), target);
1417 }
1418 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDef.Attr)
1419 return target;
1420}
1421
1422size_t ApiDef_Attr::ByteSizeLong() const {
1423// @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDef.Attr)
1424 size_t total_size = 0;
1425
1426 if (_internal_metadata_.have_unknown_fields()) {
1427 total_size +=
1428 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
1429 _internal_metadata_.unknown_fields());
1430 }
1431 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1432 // Prevent compiler warnings about cached_has_bits being unused
1433 (void) cached_has_bits;
1434
1435 // string name = 1;
1436 if (this->name().size() > 0) {
1437 total_size += 1 +
1438 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1439 this->name());
1440 }
1441
1442 // string rename_to = 2;
1443 if (this->rename_to().size() > 0) {
1444 total_size += 1 +
1445 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1446 this->rename_to());
1447 }
1448
1449 // string description = 4;
1450 if (this->description().size() > 0) {
1451 total_size += 1 +
1452 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
1453 this->description());
1454 }
1455
1456 // .tensorflow.AttrValue default_value = 3;
1457 if (this->has_default_value()) {
1458 total_size += 1 +
1459 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
1460 *default_value_);
1461 }
1462
1463 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
1464 SetCachedSize(cached_size);
1465 return total_size;
1466}
1467
1468void ApiDef_Attr::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1469// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ApiDef.Attr)
1470 GOOGLE_DCHECK_NE(&from, this);
1471 const ApiDef_Attr* source =
1472 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ApiDef_Attr>(
1473 &from);
1474 if (source == nullptr) {
1475 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ApiDef.Attr)
1476 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
1477 } else {
1478 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ApiDef.Attr)
1479 MergeFrom(*source);
1480 }
1481}
1482
1483void ApiDef_Attr::MergeFrom(const ApiDef_Attr& from) {
1484// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDef.Attr)
1485 GOOGLE_DCHECK_NE(&from, this);
1486 _internal_metadata_.MergeFrom(from._internal_metadata_);
1487 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1488 (void) cached_has_bits;
1489
1490 if (from.name().size() > 0) {
1491 set_name(from.name());
1492 }
1493 if (from.rename_to().size() > 0) {
1494 set_rename_to(from.rename_to());
1495 }
1496 if (from.description().size() > 0) {
1497 set_description(from.description());
1498 }
1499 if (from.has_default_value()) {
1500 mutable_default_value()->::tensorflow::AttrValue::MergeFrom(from.default_value());
1501 }
1502}
1503
1504void ApiDef_Attr::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
1505// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ApiDef.Attr)
1506 if (&from == this) return;
1507 Clear();
1508 MergeFrom(from);
1509}
1510
1511void ApiDef_Attr::CopyFrom(const ApiDef_Attr& from) {
1512// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDef.Attr)
1513 if (&from == this) return;
1514 Clear();
1515 MergeFrom(from);
1516}
1517
1518bool ApiDef_Attr::IsInitialized() const {
1519 return true;
1520}
1521
1522void ApiDef_Attr::InternalSwap(ApiDef_Attr* other) {
1523 using std::swap;
1524 _internal_metadata_.Swap(&other->_internal_metadata_);
1525 name_.Swap(&other->name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1526 GetArenaNoVirtual());
1527 rename_to_.Swap(&other->rename_to_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1528 GetArenaNoVirtual());
1529 description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1530 GetArenaNoVirtual());
1531 swap(default_value_, other->default_value_);
1532}
1533
1534::PROTOBUF_NAMESPACE_ID::Metadata ApiDef_Attr::GetMetadata() const {
1535 return GetMetadataStatic();
1536}
1537
1538
1539// ===================================================================
1540
1541void ApiDef::InitAsDefaultInstance() {
1542}
1543class ApiDef::_Internal {
1544 public:
1545};
1546
1547ApiDef::ApiDef()
1548 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
1549 SharedCtor();
1550 // @@protoc_insertion_point(constructor:tensorflow.ApiDef)
1551}
1552ApiDef::ApiDef(::PROTOBUF_NAMESPACE_ID::Arena* arena)
1553 : ::PROTOBUF_NAMESPACE_ID::Message(),
1554 _internal_metadata_(arena),
1555 endpoint_(arena),
1556 in_arg_(arena),
1557 out_arg_(arena),
1558 attr_(arena),
1559 arg_order_(arena) {
1560 SharedCtor();
1561 RegisterArenaDtor(arena);
1562 // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDef)
1563}
1564ApiDef::ApiDef(const ApiDef& from)
1565 : ::PROTOBUF_NAMESPACE_ID::Message(),
1566 _internal_metadata_(nullptr),
1567 endpoint_(from.endpoint_),
1568 in_arg_(from.in_arg_),
1569 out_arg_(from.out_arg_),
1570 attr_(from.attr_),
1571 arg_order_(from.arg_order_) {
1572 _internal_metadata_.MergeFrom(from._internal_metadata_);
1573 graph_op_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1574 if (!from.graph_op_name().empty()) {
1575 graph_op_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.graph_op_name(),
1576 GetArenaNoVirtual());
1577 }
1578 summary_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1579 if (!from.summary().empty()) {
1580 summary_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.summary(),
1581 GetArenaNoVirtual());
1582 }
1583 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1584 if (!from.description().empty()) {
1585 description_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description(),
1586 GetArenaNoVirtual());
1587 }
1588 description_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1589 if (!from.description_prefix().empty()) {
1590 description_prefix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description_prefix(),
1591 GetArenaNoVirtual());
1592 }
1593 description_suffix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1594 if (!from.description_suffix().empty()) {
1595 description_suffix_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.description_suffix(),
1596 GetArenaNoVirtual());
1597 }
1598 deprecation_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1599 if (!from.deprecation_message().empty()) {
1600 deprecation_message_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from.deprecation_message(),
1601 GetArenaNoVirtual());
1602 }
1603 ::memcpy(&visibility_, &from.visibility_,
1604 static_cast<size_t>(reinterpret_cast<char*>(&deprecation_version_) -
1605 reinterpret_cast<char*>(&visibility_)) + sizeof(deprecation_version_));
1606 // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDef)
1607}
1608
1609void ApiDef::SharedCtor() {
1610 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ApiDef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
1611 graph_op_name_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1612 summary_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1613 description_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1614 description_prefix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1615 description_suffix_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1616 deprecation_message_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1617 ::memset(&visibility_, 0, static_cast<size_t>(
1618 reinterpret_cast<char*>(&deprecation_version_) -
1619 reinterpret_cast<char*>(&visibility_)) + sizeof(deprecation_version_));
1620}
1621
1622ApiDef::~ApiDef() {
1623 // @@protoc_insertion_point(destructor:tensorflow.ApiDef)
1624 SharedDtor();
1625}
1626
1627void ApiDef::SharedDtor() {
1628 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
1629 graph_op_name_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1630 summary_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1631 description_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1632 description_prefix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1633 description_suffix_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1634 deprecation_message_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1635}
1636
1637void ApiDef::ArenaDtor(void* object) {
1638 ApiDef* _this = reinterpret_cast< ApiDef* >(object);
1639 (void)_this;
1640}
1641void ApiDef::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
1642}
1643void ApiDef::SetCachedSize(int size) const {
1644 _cached_size_.Set(size);
1645}
1646const ApiDef& ApiDef::default_instance() {
1647 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ApiDef_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
1648 return *internal_default_instance();
1649}
1650
1651
1652void ApiDef::Clear() {
1653// @@protoc_insertion_point(message_clear_start:tensorflow.ApiDef)
1654 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
1655 // Prevent compiler warnings about cached_has_bits being unused
1656 (void) cached_has_bits;
1657
1658 endpoint_.Clear();
1659 in_arg_.Clear();
1660 out_arg_.Clear();
1661 attr_.Clear();
1662 arg_order_.Clear();
1663 graph_op_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1664 summary_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1665 description_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1666 description_prefix_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1667 description_suffix_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1668 deprecation_message_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1669 ::memset(&visibility_, 0, static_cast<size_t>(
1670 reinterpret_cast<char*>(&deprecation_version_) -
1671 reinterpret_cast<char*>(&visibility_)) + sizeof(deprecation_version_));
1672 _internal_metadata_.Clear();
1673}
1674
1675#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1676const char* ApiDef::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
1677#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
1678 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
1679 while (!ctx->Done(&ptr)) {
1680 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1681 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
1682 CHK_(ptr);
1683 switch (tag >> 3) {
1684 // string graph_op_name = 1;
1685 case 1:
1686 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
1687 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_graph_op_name(), ptr, ctx, "tensorflow.ApiDef.graph_op_name");
1688 CHK_(ptr);
1689 } else goto handle_unusual;
1690 continue;
1691 // .tensorflow.ApiDef.Visibility visibility = 2;
1692 case 2:
1693 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
1694 ::PROTOBUF_NAMESPACE_ID::uint64 val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1695 CHK_(ptr);
1696 set_visibility(static_cast<::tensorflow::ApiDef_Visibility>(val));
1697 } else goto handle_unusual;
1698 continue;
1699 // repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
1700 case 3:
1701 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
1702 ptr -= 1;
1703 do {
1704 ptr += 1;
1705 ptr = ctx->ParseMessage(add_endpoint(), ptr);
1706 CHK_(ptr);
1707 if (!ctx->DataAvailable(ptr)) break;
1708 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 26);
1709 } else goto handle_unusual;
1710 continue;
1711 // repeated .tensorflow.ApiDef.Arg in_arg = 4;
1712 case 4:
1713 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
1714 ptr -= 1;
1715 do {
1716 ptr += 1;
1717 ptr = ctx->ParseMessage(add_in_arg(), ptr);
1718 CHK_(ptr);
1719 if (!ctx->DataAvailable(ptr)) break;
1720 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 34);
1721 } else goto handle_unusual;
1722 continue;
1723 // repeated .tensorflow.ApiDef.Arg out_arg = 5;
1724 case 5:
1725 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
1726 ptr -= 1;
1727 do {
1728 ptr += 1;
1729 ptr = ctx->ParseMessage(add_out_arg(), ptr);
1730 CHK_(ptr);
1731 if (!ctx->DataAvailable(ptr)) break;
1732 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 42);
1733 } else goto handle_unusual;
1734 continue;
1735 // repeated .tensorflow.ApiDef.Attr attr = 6;
1736 case 6:
1737 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
1738 ptr -= 1;
1739 do {
1740 ptr += 1;
1741 ptr = ctx->ParseMessage(add_attr(), ptr);
1742 CHK_(ptr);
1743 if (!ctx->DataAvailable(ptr)) break;
1744 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 50);
1745 } else goto handle_unusual;
1746 continue;
1747 // string summary = 7;
1748 case 7:
1749 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 58)) {
1750 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_summary(), ptr, ctx, "tensorflow.ApiDef.summary");
1751 CHK_(ptr);
1752 } else goto handle_unusual;
1753 continue;
1754 // string description = 8;
1755 case 8:
1756 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 66)) {
1757 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_description(), ptr, ctx, "tensorflow.ApiDef.description");
1758 CHK_(ptr);
1759 } else goto handle_unusual;
1760 continue;
1761 // string description_prefix = 9;
1762 case 9:
1763 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 74)) {
1764 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_description_prefix(), ptr, ctx, "tensorflow.ApiDef.description_prefix");
1765 CHK_(ptr);
1766 } else goto handle_unusual;
1767 continue;
1768 // string description_suffix = 10;
1769 case 10:
1770 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 82)) {
1771 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_description_suffix(), ptr, ctx, "tensorflow.ApiDef.description_suffix");
1772 CHK_(ptr);
1773 } else goto handle_unusual;
1774 continue;
1775 // repeated string arg_order = 11;
1776 case 11:
1777 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 90)) {
1778 ptr -= 1;
1779 do {
1780 ptr += 1;
1781 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(add_arg_order(), ptr, ctx, "tensorflow.ApiDef.arg_order");
1782 CHK_(ptr);
1783 if (!ctx->DataAvailable(ptr)) break;
1784 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 90);
1785 } else goto handle_unusual;
1786 continue;
1787 // string deprecation_message = 12;
1788 case 12:
1789 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 98)) {
1790 ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParserUTF8(mutable_deprecation_message(), ptr, ctx, "tensorflow.ApiDef.deprecation_message");
1791 CHK_(ptr);
1792 } else goto handle_unusual;
1793 continue;
1794 // int32 deprecation_version = 13;
1795 case 13:
1796 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 104)) {
1797 deprecation_version_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint(&ptr);
1798 CHK_(ptr);
1799 } else goto handle_unusual;
1800 continue;
1801 default: {
1802 handle_unusual:
1803 if ((tag & 7) == 4 || tag == 0) {
1804 ctx->SetLastTag(tag);
1805 goto success;
1806 }
1807 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
1808 CHK_(ptr != nullptr);
1809 continue;
1810 }
1811 } // switch
1812 } // while
1813success:
1814 return ptr;
1815failure:
1816 ptr = nullptr;
1817 goto success;
1818#undef CHK_
1819}
1820#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1821bool ApiDef::MergePartialFromCodedStream(
1822 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
1823#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
1824 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
1825 // @@protoc_insertion_point(parse_start:tensorflow.ApiDef)
1826 for (;;) {
1827 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
1828 tag = p.first;
1829 if (!p.second) goto handle_unusual;
1830 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1831 // string graph_op_name = 1;
1832 case 1: {
1833 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
1834 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1835 input, this->mutable_graph_op_name()));
1836 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1837 this->graph_op_name().data(), static_cast<int>(this->graph_op_name().length()),
1838 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1839 "tensorflow.ApiDef.graph_op_name"));
1840 } else {
1841 goto handle_unusual;
1842 }
1843 break;
1844 }
1845
1846 // .tensorflow.ApiDef.Visibility visibility = 2;
1847 case 2: {
1848 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (16 & 0xFF)) {
1849 int value = 0;
1850 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
1851 int, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_ENUM>(
1852 input, &value)));
1853 set_visibility(static_cast< ::tensorflow::ApiDef_Visibility >(value));
1854 } else {
1855 goto handle_unusual;
1856 }
1857 break;
1858 }
1859
1860 // repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
1861 case 3: {
1862 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (26 & 0xFF)) {
1863 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1864 input, add_endpoint()));
1865 } else {
1866 goto handle_unusual;
1867 }
1868 break;
1869 }
1870
1871 // repeated .tensorflow.ApiDef.Arg in_arg = 4;
1872 case 4: {
1873 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (34 & 0xFF)) {
1874 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1875 input, add_in_arg()));
1876 } else {
1877 goto handle_unusual;
1878 }
1879 break;
1880 }
1881
1882 // repeated .tensorflow.ApiDef.Arg out_arg = 5;
1883 case 5: {
1884 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (42 & 0xFF)) {
1885 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1886 input, add_out_arg()));
1887 } else {
1888 goto handle_unusual;
1889 }
1890 break;
1891 }
1892
1893 // repeated .tensorflow.ApiDef.Attr attr = 6;
1894 case 6: {
1895 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (50 & 0xFF)) {
1896 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
1897 input, add_attr()));
1898 } else {
1899 goto handle_unusual;
1900 }
1901 break;
1902 }
1903
1904 // string summary = 7;
1905 case 7: {
1906 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (58 & 0xFF)) {
1907 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1908 input, this->mutable_summary()));
1909 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1910 this->summary().data(), static_cast<int>(this->summary().length()),
1911 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1912 "tensorflow.ApiDef.summary"));
1913 } else {
1914 goto handle_unusual;
1915 }
1916 break;
1917 }
1918
1919 // string description = 8;
1920 case 8: {
1921 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (66 & 0xFF)) {
1922 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1923 input, this->mutable_description()));
1924 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1925 this->description().data(), static_cast<int>(this->description().length()),
1926 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1927 "tensorflow.ApiDef.description"));
1928 } else {
1929 goto handle_unusual;
1930 }
1931 break;
1932 }
1933
1934 // string description_prefix = 9;
1935 case 9: {
1936 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (74 & 0xFF)) {
1937 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1938 input, this->mutable_description_prefix()));
1939 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1940 this->description_prefix().data(), static_cast<int>(this->description_prefix().length()),
1941 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1942 "tensorflow.ApiDef.description_prefix"));
1943 } else {
1944 goto handle_unusual;
1945 }
1946 break;
1947 }
1948
1949 // string description_suffix = 10;
1950 case 10: {
1951 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (82 & 0xFF)) {
1952 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1953 input, this->mutable_description_suffix()));
1954 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1955 this->description_suffix().data(), static_cast<int>(this->description_suffix().length()),
1956 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1957 "tensorflow.ApiDef.description_suffix"));
1958 } else {
1959 goto handle_unusual;
1960 }
1961 break;
1962 }
1963
1964 // repeated string arg_order = 11;
1965 case 11: {
1966 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (90 & 0xFF)) {
1967 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1968 input, this->add_arg_order()));
1969 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1970 this->arg_order(this->arg_order_size() - 1).data(),
1971 static_cast<int>(this->arg_order(this->arg_order_size() - 1).length()),
1972 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1973 "tensorflow.ApiDef.arg_order"));
1974 } else {
1975 goto handle_unusual;
1976 }
1977 break;
1978 }
1979
1980 // string deprecation_message = 12;
1981 case 12: {
1982 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (98 & 0xFF)) {
1983 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadString(
1984 input, this->mutable_deprecation_message()));
1985 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
1986 this->deprecation_message().data(), static_cast<int>(this->deprecation_message().length()),
1987 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE,
1988 "tensorflow.ApiDef.deprecation_message"));
1989 } else {
1990 goto handle_unusual;
1991 }
1992 break;
1993 }
1994
1995 // int32 deprecation_version = 13;
1996 case 13: {
1997 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (104 & 0xFF)) {
1998
1999 DO_((::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadPrimitive<
2000 ::PROTOBUF_NAMESPACE_ID::int32, ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32>(
2001 input, &deprecation_version_)));
2002 } else {
2003 goto handle_unusual;
2004 }
2005 break;
2006 }
2007
2008 default: {
2009 handle_unusual:
2010 if (tag == 0) {
2011 goto success;
2012 }
2013 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2014 input, tag, _internal_metadata_.mutable_unknown_fields()));
2015 break;
2016 }
2017 }
2018 }
2019success:
2020 // @@protoc_insertion_point(parse_success:tensorflow.ApiDef)
2021 return true;
2022failure:
2023 // @@protoc_insertion_point(parse_failure:tensorflow.ApiDef)
2024 return false;
2025#undef DO_
2026}
2027#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2028
2029void ApiDef::SerializeWithCachedSizes(
2030 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2031 // @@protoc_insertion_point(serialize_start:tensorflow.ApiDef)
2032 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2033 (void) cached_has_bits;
2034
2035 // string graph_op_name = 1;
2036 if (this->graph_op_name().size() > 0) {
2037 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2038 this->graph_op_name().data(), static_cast<int>(this->graph_op_name().length()),
2039 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2040 "tensorflow.ApiDef.graph_op_name");
2041 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2042 1, this->graph_op_name(), output);
2043 }
2044
2045 // .tensorflow.ApiDef.Visibility visibility = 2;
2046 if (this->visibility() != 0) {
2047 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnum(
2048 2, this->visibility(), output);
2049 }
2050
2051 // repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
2052 for (unsigned int i = 0,
2053 n = static_cast<unsigned int>(this->endpoint_size()); i < n; i++) {
2054 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2055 3,
2056 this->endpoint(static_cast<int>(i)),
2057 output);
2058 }
2059
2060 // repeated .tensorflow.ApiDef.Arg in_arg = 4;
2061 for (unsigned int i = 0,
2062 n = static_cast<unsigned int>(this->in_arg_size()); i < n; i++) {
2063 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2064 4,
2065 this->in_arg(static_cast<int>(i)),
2066 output);
2067 }
2068
2069 // repeated .tensorflow.ApiDef.Arg out_arg = 5;
2070 for (unsigned int i = 0,
2071 n = static_cast<unsigned int>(this->out_arg_size()); i < n; i++) {
2072 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2073 5,
2074 this->out_arg(static_cast<int>(i)),
2075 output);
2076 }
2077
2078 // repeated .tensorflow.ApiDef.Attr attr = 6;
2079 for (unsigned int i = 0,
2080 n = static_cast<unsigned int>(this->attr_size()); i < n; i++) {
2081 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2082 6,
2083 this->attr(static_cast<int>(i)),
2084 output);
2085 }
2086
2087 // string summary = 7;
2088 if (this->summary().size() > 0) {
2089 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2090 this->summary().data(), static_cast<int>(this->summary().length()),
2091 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2092 "tensorflow.ApiDef.summary");
2093 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2094 7, this->summary(), output);
2095 }
2096
2097 // string description = 8;
2098 if (this->description().size() > 0) {
2099 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2100 this->description().data(), static_cast<int>(this->description().length()),
2101 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2102 "tensorflow.ApiDef.description");
2103 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2104 8, this->description(), output);
2105 }
2106
2107 // string description_prefix = 9;
2108 if (this->description_prefix().size() > 0) {
2109 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2110 this->description_prefix().data(), static_cast<int>(this->description_prefix().length()),
2111 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2112 "tensorflow.ApiDef.description_prefix");
2113 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2114 9, this->description_prefix(), output);
2115 }
2116
2117 // string description_suffix = 10;
2118 if (this->description_suffix().size() > 0) {
2119 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2120 this->description_suffix().data(), static_cast<int>(this->description_suffix().length()),
2121 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2122 "tensorflow.ApiDef.description_suffix");
2123 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2124 10, this->description_suffix(), output);
2125 }
2126
2127 // repeated string arg_order = 11;
2128 for (int i = 0, n = this->arg_order_size(); i < n; i++) {
2129 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2130 this->arg_order(i).data(), static_cast<int>(this->arg_order(i).length()),
2131 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2132 "tensorflow.ApiDef.arg_order");
2133 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteString(
2134 11, this->arg_order(i), output);
2135 }
2136
2137 // string deprecation_message = 12;
2138 if (this->deprecation_message().size() > 0) {
2139 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2140 this->deprecation_message().data(), static_cast<int>(this->deprecation_message().length()),
2141 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2142 "tensorflow.ApiDef.deprecation_message");
2143 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringMaybeAliased(
2144 12, this->deprecation_message(), output);
2145 }
2146
2147 // int32 deprecation_version = 13;
2148 if (this->deprecation_version() != 0) {
2149 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32(13, this->deprecation_version(), output);
2150 }
2151
2152 if (_internal_metadata_.have_unknown_fields()) {
2153 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2154 _internal_metadata_.unknown_fields(), output);
2155 }
2156 // @@protoc_insertion_point(serialize_end:tensorflow.ApiDef)
2157}
2158
2159::PROTOBUF_NAMESPACE_ID::uint8* ApiDef::InternalSerializeWithCachedSizesToArray(
2160 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2161 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDef)
2162 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2163 (void) cached_has_bits;
2164
2165 // string graph_op_name = 1;
2166 if (this->graph_op_name().size() > 0) {
2167 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2168 this->graph_op_name().data(), static_cast<int>(this->graph_op_name().length()),
2169 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2170 "tensorflow.ApiDef.graph_op_name");
2171 target =
2172 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2173 1, this->graph_op_name(), target);
2174 }
2175
2176 // .tensorflow.ApiDef.Visibility visibility = 2;
2177 if (this->visibility() != 0) {
2178 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteEnumToArray(
2179 2, this->visibility(), target);
2180 }
2181
2182 // repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
2183 for (unsigned int i = 0,
2184 n = static_cast<unsigned int>(this->endpoint_size()); i < n; i++) {
2185 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2186 InternalWriteMessageToArray(
2187 3, this->endpoint(static_cast<int>(i)), target);
2188 }
2189
2190 // repeated .tensorflow.ApiDef.Arg in_arg = 4;
2191 for (unsigned int i = 0,
2192 n = static_cast<unsigned int>(this->in_arg_size()); i < n; i++) {
2193 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2194 InternalWriteMessageToArray(
2195 4, this->in_arg(static_cast<int>(i)), target);
2196 }
2197
2198 // repeated .tensorflow.ApiDef.Arg out_arg = 5;
2199 for (unsigned int i = 0,
2200 n = static_cast<unsigned int>(this->out_arg_size()); i < n; i++) {
2201 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2202 InternalWriteMessageToArray(
2203 5, this->out_arg(static_cast<int>(i)), target);
2204 }
2205
2206 // repeated .tensorflow.ApiDef.Attr attr = 6;
2207 for (unsigned int i = 0,
2208 n = static_cast<unsigned int>(this->attr_size()); i < n; i++) {
2209 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2210 InternalWriteMessageToArray(
2211 6, this->attr(static_cast<int>(i)), target);
2212 }
2213
2214 // string summary = 7;
2215 if (this->summary().size() > 0) {
2216 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2217 this->summary().data(), static_cast<int>(this->summary().length()),
2218 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2219 "tensorflow.ApiDef.summary");
2220 target =
2221 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2222 7, this->summary(), target);
2223 }
2224
2225 // string description = 8;
2226 if (this->description().size() > 0) {
2227 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2228 this->description().data(), static_cast<int>(this->description().length()),
2229 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2230 "tensorflow.ApiDef.description");
2231 target =
2232 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2233 8, this->description(), target);
2234 }
2235
2236 // string description_prefix = 9;
2237 if (this->description_prefix().size() > 0) {
2238 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2239 this->description_prefix().data(), static_cast<int>(this->description_prefix().length()),
2240 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2241 "tensorflow.ApiDef.description_prefix");
2242 target =
2243 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2244 9, this->description_prefix(), target);
2245 }
2246
2247 // string description_suffix = 10;
2248 if (this->description_suffix().size() > 0) {
2249 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2250 this->description_suffix().data(), static_cast<int>(this->description_suffix().length()),
2251 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2252 "tensorflow.ApiDef.description_suffix");
2253 target =
2254 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2255 10, this->description_suffix(), target);
2256 }
2257
2258 // repeated string arg_order = 11;
2259 for (int i = 0, n = this->arg_order_size(); i < n; i++) {
2260 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2261 this->arg_order(i).data(), static_cast<int>(this->arg_order(i).length()),
2262 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2263 "tensorflow.ApiDef.arg_order");
2264 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2265 WriteStringToArray(11, this->arg_order(i), target);
2266 }
2267
2268 // string deprecation_message = 12;
2269 if (this->deprecation_message().size() > 0) {
2270 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
2271 this->deprecation_message().data(), static_cast<int>(this->deprecation_message().length()),
2272 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
2273 "tensorflow.ApiDef.deprecation_message");
2274 target =
2275 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteStringToArray(
2276 12, this->deprecation_message(), target);
2277 }
2278
2279 // int32 deprecation_version = 13;
2280 if (this->deprecation_version() != 0) {
2281 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(13, this->deprecation_version(), target);
2282 }
2283
2284 if (_internal_metadata_.have_unknown_fields()) {
2285 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2286 _internal_metadata_.unknown_fields(), target);
2287 }
2288 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDef)
2289 return target;
2290}
2291
2292size_t ApiDef::ByteSizeLong() const {
2293// @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDef)
2294 size_t total_size = 0;
2295
2296 if (_internal_metadata_.have_unknown_fields()) {
2297 total_size +=
2298 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2299 _internal_metadata_.unknown_fields());
2300 }
2301 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2302 // Prevent compiler warnings about cached_has_bits being unused
2303 (void) cached_has_bits;
2304
2305 // repeated .tensorflow.ApiDef.Endpoint endpoint = 3;
2306 {
2307 unsigned int count = static_cast<unsigned int>(this->endpoint_size());
2308 total_size += 1UL * count;
2309 for (unsigned int i = 0; i < count; i++) {
2310 total_size +=
2311 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2312 this->endpoint(static_cast<int>(i)));
2313 }
2314 }
2315
2316 // repeated .tensorflow.ApiDef.Arg in_arg = 4;
2317 {
2318 unsigned int count = static_cast<unsigned int>(this->in_arg_size());
2319 total_size += 1UL * count;
2320 for (unsigned int i = 0; i < count; i++) {
2321 total_size +=
2322 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2323 this->in_arg(static_cast<int>(i)));
2324 }
2325 }
2326
2327 // repeated .tensorflow.ApiDef.Arg out_arg = 5;
2328 {
2329 unsigned int count = static_cast<unsigned int>(this->out_arg_size());
2330 total_size += 1UL * count;
2331 for (unsigned int i = 0; i < count; i++) {
2332 total_size +=
2333 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2334 this->out_arg(static_cast<int>(i)));
2335 }
2336 }
2337
2338 // repeated .tensorflow.ApiDef.Attr attr = 6;
2339 {
2340 unsigned int count = static_cast<unsigned int>(this->attr_size());
2341 total_size += 1UL * count;
2342 for (unsigned int i = 0; i < count; i++) {
2343 total_size +=
2344 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2345 this->attr(static_cast<int>(i)));
2346 }
2347 }
2348
2349 // repeated string arg_order = 11;
2350 total_size += 1 *
2351 ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(this->arg_order_size());
2352 for (int i = 0, n = this->arg_order_size(); i < n; i++) {
2353 total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2354 this->arg_order(i));
2355 }
2356
2357 // string graph_op_name = 1;
2358 if (this->graph_op_name().size() > 0) {
2359 total_size += 1 +
2360 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2361 this->graph_op_name());
2362 }
2363
2364 // string summary = 7;
2365 if (this->summary().size() > 0) {
2366 total_size += 1 +
2367 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2368 this->summary());
2369 }
2370
2371 // string description = 8;
2372 if (this->description().size() > 0) {
2373 total_size += 1 +
2374 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2375 this->description());
2376 }
2377
2378 // string description_prefix = 9;
2379 if (this->description_prefix().size() > 0) {
2380 total_size += 1 +
2381 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2382 this->description_prefix());
2383 }
2384
2385 // string description_suffix = 10;
2386 if (this->description_suffix().size() > 0) {
2387 total_size += 1 +
2388 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2389 this->description_suffix());
2390 }
2391
2392 // string deprecation_message = 12;
2393 if (this->deprecation_message().size() > 0) {
2394 total_size += 1 +
2395 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
2396 this->deprecation_message());
2397 }
2398
2399 // .tensorflow.ApiDef.Visibility visibility = 2;
2400 if (this->visibility() != 0) {
2401 total_size += 1 +
2402 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::EnumSize(this->visibility());
2403 }
2404
2405 // int32 deprecation_version = 13;
2406 if (this->deprecation_version() != 0) {
2407 total_size += 1 +
2408 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
2409 this->deprecation_version());
2410 }
2411
2412 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2413 SetCachedSize(cached_size);
2414 return total_size;
2415}
2416
2417void ApiDef::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2418// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ApiDef)
2419 GOOGLE_DCHECK_NE(&from, this);
2420 const ApiDef* source =
2421 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ApiDef>(
2422 &from);
2423 if (source == nullptr) {
2424 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ApiDef)
2425 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2426 } else {
2427 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ApiDef)
2428 MergeFrom(*source);
2429 }
2430}
2431
2432void ApiDef::MergeFrom(const ApiDef& from) {
2433// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDef)
2434 GOOGLE_DCHECK_NE(&from, this);
2435 _internal_metadata_.MergeFrom(from._internal_metadata_);
2436 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2437 (void) cached_has_bits;
2438
2439 endpoint_.MergeFrom(from.endpoint_);
2440 in_arg_.MergeFrom(from.in_arg_);
2441 out_arg_.MergeFrom(from.out_arg_);
2442 attr_.MergeFrom(from.attr_);
2443 arg_order_.MergeFrom(from.arg_order_);
2444 if (from.graph_op_name().size() > 0) {
2445 set_graph_op_name(from.graph_op_name());
2446 }
2447 if (from.summary().size() > 0) {
2448 set_summary(from.summary());
2449 }
2450 if (from.description().size() > 0) {
2451 set_description(from.description());
2452 }
2453 if (from.description_prefix().size() > 0) {
2454 set_description_prefix(from.description_prefix());
2455 }
2456 if (from.description_suffix().size() > 0) {
2457 set_description_suffix(from.description_suffix());
2458 }
2459 if (from.deprecation_message().size() > 0) {
2460 set_deprecation_message(from.deprecation_message());
2461 }
2462 if (from.visibility() != 0) {
2463 set_visibility(from.visibility());
2464 }
2465 if (from.deprecation_version() != 0) {
2466 set_deprecation_version(from.deprecation_version());
2467 }
2468}
2469
2470void ApiDef::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2471// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ApiDef)
2472 if (&from == this) return;
2473 Clear();
2474 MergeFrom(from);
2475}
2476
2477void ApiDef::CopyFrom(const ApiDef& from) {
2478// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDef)
2479 if (&from == this) return;
2480 Clear();
2481 MergeFrom(from);
2482}
2483
2484bool ApiDef::IsInitialized() const {
2485 return true;
2486}
2487
2488void ApiDef::InternalSwap(ApiDef* other) {
2489 using std::swap;
2490 _internal_metadata_.Swap(&other->_internal_metadata_);
2491 CastToBase(&endpoint_)->InternalSwap(CastToBase(&other->endpoint_));
2492 CastToBase(&in_arg_)->InternalSwap(CastToBase(&other->in_arg_));
2493 CastToBase(&out_arg_)->InternalSwap(CastToBase(&other->out_arg_));
2494 CastToBase(&attr_)->InternalSwap(CastToBase(&other->attr_));
2495 arg_order_.InternalSwap(CastToBase(&other->arg_order_));
2496 graph_op_name_.Swap(&other->graph_op_name_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2497 GetArenaNoVirtual());
2498 summary_.Swap(&other->summary_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2499 GetArenaNoVirtual());
2500 description_.Swap(&other->description_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2501 GetArenaNoVirtual());
2502 description_prefix_.Swap(&other->description_prefix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2503 GetArenaNoVirtual());
2504 description_suffix_.Swap(&other->description_suffix_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2505 GetArenaNoVirtual());
2506 deprecation_message_.Swap(&other->deprecation_message_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2507 GetArenaNoVirtual());
2508 swap(visibility_, other->visibility_);
2509 swap(deprecation_version_, other->deprecation_version_);
2510}
2511
2512::PROTOBUF_NAMESPACE_ID::Metadata ApiDef::GetMetadata() const {
2513 return GetMetadataStatic();
2514}
2515
2516
2517// ===================================================================
2518
2519void ApiDefs::InitAsDefaultInstance() {
2520}
2521class ApiDefs::_Internal {
2522 public:
2523};
2524
2525ApiDefs::ApiDefs()
2526 : ::PROTOBUF_NAMESPACE_ID::Message(), _internal_metadata_(nullptr) {
2527 SharedCtor();
2528 // @@protoc_insertion_point(constructor:tensorflow.ApiDefs)
2529}
2530ApiDefs::ApiDefs(::PROTOBUF_NAMESPACE_ID::Arena* arena)
2531 : ::PROTOBUF_NAMESPACE_ID::Message(),
2532 _internal_metadata_(arena),
2533 op_(arena) {
2534 SharedCtor();
2535 RegisterArenaDtor(arena);
2536 // @@protoc_insertion_point(arena_constructor:tensorflow.ApiDefs)
2537}
2538ApiDefs::ApiDefs(const ApiDefs& from)
2539 : ::PROTOBUF_NAMESPACE_ID::Message(),
2540 _internal_metadata_(nullptr),
2541 op_(from.op_) {
2542 _internal_metadata_.MergeFrom(from._internal_metadata_);
2543 // @@protoc_insertion_point(copy_constructor:tensorflow.ApiDefs)
2544}
2545
2546void ApiDefs::SharedCtor() {
2547 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_ApiDefs_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
2548}
2549
2550ApiDefs::~ApiDefs() {
2551 // @@protoc_insertion_point(destructor:tensorflow.ApiDefs)
2552 SharedDtor();
2553}
2554
2555void ApiDefs::SharedDtor() {
2556 GOOGLE_DCHECK(GetArenaNoVirtual() == nullptr);
2557}
2558
2559void ApiDefs::ArenaDtor(void* object) {
2560 ApiDefs* _this = reinterpret_cast< ApiDefs* >(object);
2561 (void)_this;
2562}
2563void ApiDefs::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
2564}
2565void ApiDefs::SetCachedSize(int size) const {
2566 _cached_size_.Set(size);
2567}
2568const ApiDefs& ApiDefs::default_instance() {
2569 ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ApiDefs_tensorflow_2fcore_2fframework_2fapi_5fdef_2eproto.base);
2570 return *internal_default_instance();
2571}
2572
2573
2574void ApiDefs::Clear() {
2575// @@protoc_insertion_point(message_clear_start:tensorflow.ApiDefs)
2576 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2577 // Prevent compiler warnings about cached_has_bits being unused
2578 (void) cached_has_bits;
2579
2580 op_.Clear();
2581 _internal_metadata_.Clear();
2582}
2583
2584#if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2585const char* ApiDefs::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
2586#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
2587 ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArenaNoVirtual(); (void)arena;
2588 while (!ctx->Done(&ptr)) {
2589 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2590 ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
2591 CHK_(ptr);
2592 switch (tag >> 3) {
2593 // repeated .tensorflow.ApiDef op = 1;
2594 case 1:
2595 if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
2596 ptr -= 1;
2597 do {
2598 ptr += 1;
2599 ptr = ctx->ParseMessage(add_op(), ptr);
2600 CHK_(ptr);
2601 if (!ctx->DataAvailable(ptr)) break;
2602 } while (::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<::PROTOBUF_NAMESPACE_ID::uint8>(ptr) == 10);
2603 } else goto handle_unusual;
2604 continue;
2605 default: {
2606 handle_unusual:
2607 if ((tag & 7) == 4 || tag == 0) {
2608 ctx->SetLastTag(tag);
2609 goto success;
2610 }
2611 ptr = UnknownFieldParse(tag, &_internal_metadata_, ptr, ctx);
2612 CHK_(ptr != nullptr);
2613 continue;
2614 }
2615 } // switch
2616 } // while
2617success:
2618 return ptr;
2619failure:
2620 ptr = nullptr;
2621 goto success;
2622#undef CHK_
2623}
2624#else // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2625bool ApiDefs::MergePartialFromCodedStream(
2626 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) {
2627#define DO_(EXPRESSION) if (!PROTOBUF_PREDICT_TRUE(EXPRESSION)) goto failure
2628 ::PROTOBUF_NAMESPACE_ID::uint32 tag;
2629 // @@protoc_insertion_point(parse_start:tensorflow.ApiDefs)
2630 for (;;) {
2631 ::std::pair<::PROTOBUF_NAMESPACE_ID::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
2632 tag = p.first;
2633 if (!p.second) goto handle_unusual;
2634 switch (::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2635 // repeated .tensorflow.ApiDef op = 1;
2636 case 1: {
2637 if (static_cast< ::PROTOBUF_NAMESPACE_ID::uint8>(tag) == (10 & 0xFF)) {
2638 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::ReadMessage(
2639 input, add_op()));
2640 } else {
2641 goto handle_unusual;
2642 }
2643 break;
2644 }
2645
2646 default: {
2647 handle_unusual:
2648 if (tag == 0) {
2649 goto success;
2650 }
2651 DO_(::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SkipField(
2652 input, tag, _internal_metadata_.mutable_unknown_fields()));
2653 break;
2654 }
2655 }
2656 }
2657success:
2658 // @@protoc_insertion_point(parse_success:tensorflow.ApiDefs)
2659 return true;
2660failure:
2661 // @@protoc_insertion_point(parse_failure:tensorflow.ApiDefs)
2662 return false;
2663#undef DO_
2664}
2665#endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
2666
2667void ApiDefs::SerializeWithCachedSizes(
2668 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const {
2669 // @@protoc_insertion_point(serialize_start:tensorflow.ApiDefs)
2670 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2671 (void) cached_has_bits;
2672
2673 // repeated .tensorflow.ApiDef op = 1;
2674 for (unsigned int i = 0,
2675 n = static_cast<unsigned int>(this->op_size()); i < n; i++) {
2676 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteMessageMaybeToArray(
2677 1,
2678 this->op(static_cast<int>(i)),
2679 output);
2680 }
2681
2682 if (_internal_metadata_.have_unknown_fields()) {
2683 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFields(
2684 _internal_metadata_.unknown_fields(), output);
2685 }
2686 // @@protoc_insertion_point(serialize_end:tensorflow.ApiDefs)
2687}
2688
2689::PROTOBUF_NAMESPACE_ID::uint8* ApiDefs::InternalSerializeWithCachedSizesToArray(
2690 ::PROTOBUF_NAMESPACE_ID::uint8* target) const {
2691 // @@protoc_insertion_point(serialize_to_array_start:tensorflow.ApiDefs)
2692 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2693 (void) cached_has_bits;
2694
2695 // repeated .tensorflow.ApiDef op = 1;
2696 for (unsigned int i = 0,
2697 n = static_cast<unsigned int>(this->op_size()); i < n; i++) {
2698 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
2699 InternalWriteMessageToArray(
2700 1, this->op(static_cast<int>(i)), target);
2701 }
2702
2703 if (_internal_metadata_.have_unknown_fields()) {
2704 target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SerializeUnknownFieldsToArray(
2705 _internal_metadata_.unknown_fields(), target);
2706 }
2707 // @@protoc_insertion_point(serialize_to_array_end:tensorflow.ApiDefs)
2708 return target;
2709}
2710
2711size_t ApiDefs::ByteSizeLong() const {
2712// @@protoc_insertion_point(message_byte_size_start:tensorflow.ApiDefs)
2713 size_t total_size = 0;
2714
2715 if (_internal_metadata_.have_unknown_fields()) {
2716 total_size +=
2717 ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::ComputeUnknownFieldsSize(
2718 _internal_metadata_.unknown_fields());
2719 }
2720 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2721 // Prevent compiler warnings about cached_has_bits being unused
2722 (void) cached_has_bits;
2723
2724 // repeated .tensorflow.ApiDef op = 1;
2725 {
2726 unsigned int count = static_cast<unsigned int>(this->op_size());
2727 total_size += 1UL * count;
2728 for (unsigned int i = 0; i < count; i++) {
2729 total_size +=
2730 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
2731 this->op(static_cast<int>(i)));
2732 }
2733 }
2734
2735 int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
2736 SetCachedSize(cached_size);
2737 return total_size;
2738}
2739
2740void ApiDefs::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2741// @@protoc_insertion_point(generalized_merge_from_start:tensorflow.ApiDefs)
2742 GOOGLE_DCHECK_NE(&from, this);
2743 const ApiDefs* source =
2744 ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ApiDefs>(
2745 &from);
2746 if (source == nullptr) {
2747 // @@protoc_insertion_point(generalized_merge_from_cast_fail:tensorflow.ApiDefs)
2748 ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
2749 } else {
2750 // @@protoc_insertion_point(generalized_merge_from_cast_success:tensorflow.ApiDefs)
2751 MergeFrom(*source);
2752 }
2753}
2754
2755void ApiDefs::MergeFrom(const ApiDefs& from) {
2756// @@protoc_insertion_point(class_specific_merge_from_start:tensorflow.ApiDefs)
2757 GOOGLE_DCHECK_NE(&from, this);
2758 _internal_metadata_.MergeFrom(from._internal_metadata_);
2759 ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
2760 (void) cached_has_bits;
2761
2762 op_.MergeFrom(from.op_);
2763}
2764
2765void ApiDefs::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
2766// @@protoc_insertion_point(generalized_copy_from_start:tensorflow.ApiDefs)
2767 if (&from == this) return;
2768 Clear();
2769 MergeFrom(from);
2770}
2771
2772void ApiDefs::CopyFrom(const ApiDefs& from) {
2773// @@protoc_insertion_point(class_specific_copy_from_start:tensorflow.ApiDefs)
2774 if (&from == this) return;
2775 Clear();
2776 MergeFrom(from);
2777}
2778
2779bool ApiDefs::IsInitialized() const {
2780 return true;
2781}
2782
2783void ApiDefs::InternalSwap(ApiDefs* other) {
2784 using std::swap;
2785 _internal_metadata_.Swap(&other->_internal_metadata_);
2786 CastToBase(&op_)->InternalSwap(CastToBase(&other->op_));
2787}
2788
2789::PROTOBUF_NAMESPACE_ID::Metadata ApiDefs::GetMetadata() const {
2790 return GetMetadataStatic();
2791}
2792
2793
2794// @@protoc_insertion_point(namespace_scope)
2795} // namespace tensorflow
2796PROTOBUF_NAMESPACE_OPEN
2797template<> PROTOBUF_NOINLINE ::tensorflow::ApiDef_Endpoint* Arena::CreateMaybeMessage< ::tensorflow::ApiDef_Endpoint >(Arena* arena) {
2798 return Arena::CreateMessageInternal< ::tensorflow::ApiDef_Endpoint >(arena);
2799}
2800template<> PROTOBUF_NOINLINE ::tensorflow::ApiDef_Arg* Arena::CreateMaybeMessage< ::tensorflow::ApiDef_Arg >(Arena* arena) {
2801 return Arena::CreateMessageInternal< ::tensorflow::ApiDef_Arg >(arena);
2802}
2803template<> PROTOBUF_NOINLINE ::tensorflow::ApiDef_Attr* Arena::CreateMaybeMessage< ::tensorflow::ApiDef_Attr >(Arena* arena) {
2804 return Arena::CreateMessageInternal< ::tensorflow::ApiDef_Attr >(arena);
2805}
2806template<> PROTOBUF_NOINLINE ::tensorflow::ApiDef* Arena::CreateMaybeMessage< ::tensorflow::ApiDef >(Arena* arena) {
2807 return Arena::CreateMessageInternal< ::tensorflow::ApiDef >(arena);
2808}
2809template<> PROTOBUF_NOINLINE ::tensorflow::ApiDefs* Arena::CreateMaybeMessage< ::tensorflow::ApiDefs >(Arena* arena) {
2810 return Arena::CreateMessageInternal< ::tensorflow::ApiDefs >(arena);
2811}
2812PROTOBUF_NAMESPACE_CLOSE
2813
2814// @@protoc_insertion_point(global_scope)
2815#include <google/protobuf/port_undef.inc>
2816