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