1 // Generated by the protocol buffer compiler.  DO NOT EDIT!
2 // source: tensorflow/core/framework/cost_graph.proto
3 
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto
6 
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10 
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22 
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h>  // IWYU pragma: export
31 #include <google/protobuf/extension_set.h>  // IWYU pragma: export
32 #include "tensorflow/core/framework/tensor_shape.pb.h"
33 #include "tensorflow/core/framework/types.pb.h"
34 // @@protoc_insertion_point(includes)
35 #include <google/protobuf/port_def.inc>
36 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto
37 PROTOBUF_NAMESPACE_OPEN
38 namespace internal {
39 class AnyMetadata;
40 }  // namespace internal
41 PROTOBUF_NAMESPACE_CLOSE
42 
43 // Internal implementation detail -- do not use these members.
44 struct TableStruct_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto {
45   static const ::uint32_t offsets[];
46 };
47 namespace tensorflow {
48 class CostGraphDef;
49 struct CostGraphDefDefaultTypeInternal;
50 extern CostGraphDefDefaultTypeInternal _CostGraphDef_default_instance_;
51 class CostGraphDef_AggregatedCost;
52 struct CostGraphDef_AggregatedCostDefaultTypeInternal;
53 extern CostGraphDef_AggregatedCostDefaultTypeInternal _CostGraphDef_AggregatedCost_default_instance_;
54 class CostGraphDef_Node;
55 struct CostGraphDef_NodeDefaultTypeInternal;
56 extern CostGraphDef_NodeDefaultTypeInternal _CostGraphDef_Node_default_instance_;
57 class CostGraphDef_Node_InputInfo;
58 struct CostGraphDef_Node_InputInfoDefaultTypeInternal;
59 extern CostGraphDef_Node_InputInfoDefaultTypeInternal _CostGraphDef_Node_InputInfo_default_instance_;
60 class CostGraphDef_Node_OutputInfo;
61 struct CostGraphDef_Node_OutputInfoDefaultTypeInternal;
62 extern CostGraphDef_Node_OutputInfoDefaultTypeInternal _CostGraphDef_Node_OutputInfo_default_instance_;
63 }  // namespace tensorflow
64 PROTOBUF_NAMESPACE_OPEN
65 template<> ::tensorflow::CostGraphDef* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef>(Arena*);
66 template<> ::tensorflow::CostGraphDef_AggregatedCost* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef_AggregatedCost>(Arena*);
67 template<> ::tensorflow::CostGraphDef_Node* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef_Node>(Arena*);
68 template<> ::tensorflow::CostGraphDef_Node_InputInfo* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef_Node_InputInfo>(Arena*);
69 template<> ::tensorflow::CostGraphDef_Node_OutputInfo* Arena::CreateMaybeMessage<::tensorflow::CostGraphDef_Node_OutputInfo>(Arena*);
70 PROTOBUF_NAMESPACE_CLOSE
71 namespace tensorflow {
72 
73 // ===================================================================
74 
75 class CostGraphDef_Node_InputInfo final :
76     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef.Node.InputInfo) */ {
77  public:
CostGraphDef_Node_InputInfo()78   inline CostGraphDef_Node_InputInfo() : CostGraphDef_Node_InputInfo(nullptr) {}
79   ~CostGraphDef_Node_InputInfo() override;
80   explicit PROTOBUF_CONSTEXPR CostGraphDef_Node_InputInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
81 
82   CostGraphDef_Node_InputInfo(const CostGraphDef_Node_InputInfo& from);
CostGraphDef_Node_InputInfo(CostGraphDef_Node_InputInfo && from)83   CostGraphDef_Node_InputInfo(CostGraphDef_Node_InputInfo&& from) noexcept
84     : CostGraphDef_Node_InputInfo() {
85     *this = ::std::move(from);
86   }
87 
88   inline CostGraphDef_Node_InputInfo& operator=(const CostGraphDef_Node_InputInfo& from) {
89     if (this == &from) return *this;
90     CopyFrom(from);
91     return *this;
92   }
93   inline CostGraphDef_Node_InputInfo& operator=(CostGraphDef_Node_InputInfo&& from) noexcept {
94     if (this == &from) return *this;
95     if (GetOwningArena() == from.GetOwningArena()
96   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
97         && GetOwningArena() != nullptr
98   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
99     ) {
100       InternalSwap(&from);
101     } else {
102       CopyFrom(from);
103     }
104     return *this;
105   }
106 
default_instance()107   static const CostGraphDef_Node_InputInfo& default_instance() {
108     return *internal_default_instance();
109   }
internal_default_instance()110   static inline const CostGraphDef_Node_InputInfo* internal_default_instance() {
111     return reinterpret_cast<const CostGraphDef_Node_InputInfo*>(
112                &_CostGraphDef_Node_InputInfo_default_instance_);
113   }
114   static constexpr int kIndexInFileMessages =
115     0;
116 
swap(CostGraphDef_Node_InputInfo & a,CostGraphDef_Node_InputInfo & b)117   friend void swap(CostGraphDef_Node_InputInfo& a, CostGraphDef_Node_InputInfo& b) {
118     a.Swap(&b);
119   }
Swap(CostGraphDef_Node_InputInfo * other)120   inline void Swap(CostGraphDef_Node_InputInfo* other) {
121     if (other == this) return;
122   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
123     if (GetOwningArena() != nullptr &&
124         GetOwningArena() == other->GetOwningArena()) {
125    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
126     if (GetOwningArena() == other->GetOwningArena()) {
127   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
128       InternalSwap(other);
129     } else {
130       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
131     }
132   }
133   void UnsafeArenaSwap(CostGraphDef_Node_InputInfo* other) {
134     if (other == this) return;
135     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
136     InternalSwap(other);
137   }
138 
139   // implements Message ----------------------------------------------
140 
141   CostGraphDef_Node_InputInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
142     return CreateMaybeMessage<CostGraphDef_Node_InputInfo>(arena);
143   }
144   CostGraphDef_Node_InputInfo* New() const {
145     return New(nullptr);
146   }
147   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
148   void CopyFrom(const CostGraphDef_Node_InputInfo& from);
149   void MergeFrom(const CostGraphDef_Node_InputInfo& from);
150   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
151   bool IsInitialized() const final;
152 
153   size_t ByteSizeLong() const final;
154   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
155   ::uint8_t* _InternalSerialize(
156       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
157   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
158 
159   private:
160   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
161   void SharedDtor();
162   void SetCachedSize(int size) const;
163   void InternalSwap(CostGraphDef_Node_InputInfo* other);
164 
165   private:
166   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
167   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
168     return "tensorflow.CostGraphDef.Node.InputInfo";
169   }
170   protected:
171   explicit CostGraphDef_Node_InputInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
172                        bool is_message_owned = false);
173   public:
174 
175   std::string GetTypeName() const final;
176 
177   // nested types ----------------------------------------------------
178 
179   // accessors -------------------------------------------------------
180 
181   enum : int {
182     kPrecedingNodeFieldNumber = 1,
183     kPrecedingPortFieldNumber = 2,
184   };
185   // int32 preceding_node = 1;
186   void clear_preceding_node();
187   ::int32_t preceding_node() const;
188   void set_preceding_node(::int32_t value);
189   private:
190   ::int32_t _internal_preceding_node() const;
191   void _internal_set_preceding_node(::int32_t value);
192   public:
193 
194   // int32 preceding_port = 2;
195   void clear_preceding_port();
196   ::int32_t preceding_port() const;
197   void set_preceding_port(::int32_t value);
198   private:
199   ::int32_t _internal_preceding_port() const;
200   void _internal_set_preceding_port(::int32_t value);
201   public:
202 
203   // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.InputInfo)
204  private:
205   class _Internal;
206 
207   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
208   typedef void InternalArenaConstructable_;
209   typedef void DestructorSkippable_;
210   struct Impl_ {
211     ::int32_t preceding_node_;
212     ::int32_t preceding_port_;
213     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
214   };
215   union { Impl_ _impl_; };
216   friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto;
217 };
218 // -------------------------------------------------------------------
219 
220 class CostGraphDef_Node_OutputInfo final :
221     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef.Node.OutputInfo) */ {
222  public:
CostGraphDef_Node_OutputInfo()223   inline CostGraphDef_Node_OutputInfo() : CostGraphDef_Node_OutputInfo(nullptr) {}
224   ~CostGraphDef_Node_OutputInfo() override;
225   explicit PROTOBUF_CONSTEXPR CostGraphDef_Node_OutputInfo(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
226 
227   CostGraphDef_Node_OutputInfo(const CostGraphDef_Node_OutputInfo& from);
CostGraphDef_Node_OutputInfo(CostGraphDef_Node_OutputInfo && from)228   CostGraphDef_Node_OutputInfo(CostGraphDef_Node_OutputInfo&& from) noexcept
229     : CostGraphDef_Node_OutputInfo() {
230     *this = ::std::move(from);
231   }
232 
233   inline CostGraphDef_Node_OutputInfo& operator=(const CostGraphDef_Node_OutputInfo& from) {
234     if (this == &from) return *this;
235     CopyFrom(from);
236     return *this;
237   }
238   inline CostGraphDef_Node_OutputInfo& operator=(CostGraphDef_Node_OutputInfo&& from) noexcept {
239     if (this == &from) return *this;
240     if (GetOwningArena() == from.GetOwningArena()
241   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
242         && GetOwningArena() != nullptr
243   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
244     ) {
245       InternalSwap(&from);
246     } else {
247       CopyFrom(from);
248     }
249     return *this;
250   }
251 
default_instance()252   static const CostGraphDef_Node_OutputInfo& default_instance() {
253     return *internal_default_instance();
254   }
internal_default_instance()255   static inline const CostGraphDef_Node_OutputInfo* internal_default_instance() {
256     return reinterpret_cast<const CostGraphDef_Node_OutputInfo*>(
257                &_CostGraphDef_Node_OutputInfo_default_instance_);
258   }
259   static constexpr int kIndexInFileMessages =
260     1;
261 
swap(CostGraphDef_Node_OutputInfo & a,CostGraphDef_Node_OutputInfo & b)262   friend void swap(CostGraphDef_Node_OutputInfo& a, CostGraphDef_Node_OutputInfo& b) {
263     a.Swap(&b);
264   }
Swap(CostGraphDef_Node_OutputInfo * other)265   inline void Swap(CostGraphDef_Node_OutputInfo* other) {
266     if (other == this) return;
267   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
268     if (GetOwningArena() != nullptr &&
269         GetOwningArena() == other->GetOwningArena()) {
270    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
271     if (GetOwningArena() == other->GetOwningArena()) {
272   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
273       InternalSwap(other);
274     } else {
275       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
276     }
277   }
278   void UnsafeArenaSwap(CostGraphDef_Node_OutputInfo* other) {
279     if (other == this) return;
280     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
281     InternalSwap(other);
282   }
283 
284   // implements Message ----------------------------------------------
285 
286   CostGraphDef_Node_OutputInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
287     return CreateMaybeMessage<CostGraphDef_Node_OutputInfo>(arena);
288   }
289   CostGraphDef_Node_OutputInfo* New() const {
290     return New(nullptr);
291   }
292   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
293   void CopyFrom(const CostGraphDef_Node_OutputInfo& from);
294   void MergeFrom(const CostGraphDef_Node_OutputInfo& from);
295   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
296   bool IsInitialized() const final;
297 
298   size_t ByteSizeLong() const final;
299   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
300   ::uint8_t* _InternalSerialize(
301       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
302   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
303 
304   private:
305   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
306   void SharedDtor();
307   void SetCachedSize(int size) const;
308   void InternalSwap(CostGraphDef_Node_OutputInfo* other);
309 
310   private:
311   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
312   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
313     return "tensorflow.CostGraphDef.Node.OutputInfo";
314   }
315   protected:
316   explicit CostGraphDef_Node_OutputInfo(::PROTOBUF_NAMESPACE_ID::Arena* arena,
317                        bool is_message_owned = false);
318   public:
319 
320   std::string GetTypeName() const final;
321 
322   // nested types ----------------------------------------------------
323 
324   // accessors -------------------------------------------------------
325 
326   enum : int {
327     kShapeFieldNumber = 3,
328     kSizeFieldNumber = 1,
329     kAliasInputPortFieldNumber = 2,
330     kDtypeFieldNumber = 4,
331   };
332   // .tensorflow.TensorShapeProto shape = 3;
333   bool has_shape() const;
334   private:
335   bool _internal_has_shape() const;
336   public:
337   void clear_shape();
338   const ::tensorflow::TensorShapeProto& shape() const;
339   PROTOBUF_NODISCARD ::tensorflow::TensorShapeProto* release_shape();
340   ::tensorflow::TensorShapeProto* mutable_shape();
341   void set_allocated_shape(::tensorflow::TensorShapeProto* shape);
342   private:
343   const ::tensorflow::TensorShapeProto& _internal_shape() const;
344   ::tensorflow::TensorShapeProto* _internal_mutable_shape();
345   public:
346   void unsafe_arena_set_allocated_shape(
347       ::tensorflow::TensorShapeProto* shape);
348   ::tensorflow::TensorShapeProto* unsafe_arena_release_shape();
349 
350   // int64 size = 1;
351   void clear_size();
352   ::int64_t size() const;
353   void set_size(::int64_t value);
354   private:
355   ::int64_t _internal_size() const;
356   void _internal_set_size(::int64_t value);
357   public:
358 
359   // int64 alias_input_port = 2;
360   void clear_alias_input_port();
361   ::int64_t alias_input_port() const;
362   void set_alias_input_port(::int64_t value);
363   private:
364   ::int64_t _internal_alias_input_port() const;
365   void _internal_set_alias_input_port(::int64_t value);
366   public:
367 
368   // .tensorflow.DataType dtype = 4;
369   void clear_dtype();
370   ::tensorflow::DataType dtype() const;
371   void set_dtype(::tensorflow::DataType value);
372   private:
373   ::tensorflow::DataType _internal_dtype() const;
374   void _internal_set_dtype(::tensorflow::DataType value);
375   public:
376 
377   // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node.OutputInfo)
378  private:
379   class _Internal;
380 
381   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
382   typedef void InternalArenaConstructable_;
383   typedef void DestructorSkippable_;
384   struct Impl_ {
385     ::tensorflow::TensorShapeProto* shape_;
386     ::int64_t size_;
387     ::int64_t alias_input_port_;
388     int dtype_;
389     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
390   };
391   union { Impl_ _impl_; };
392   friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto;
393 };
394 // -------------------------------------------------------------------
395 
396 class CostGraphDef_Node final :
397     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef.Node) */ {
398  public:
CostGraphDef_Node()399   inline CostGraphDef_Node() : CostGraphDef_Node(nullptr) {}
400   ~CostGraphDef_Node() override;
401   explicit PROTOBUF_CONSTEXPR CostGraphDef_Node(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
402 
403   CostGraphDef_Node(const CostGraphDef_Node& from);
CostGraphDef_Node(CostGraphDef_Node && from)404   CostGraphDef_Node(CostGraphDef_Node&& from) noexcept
405     : CostGraphDef_Node() {
406     *this = ::std::move(from);
407   }
408 
409   inline CostGraphDef_Node& operator=(const CostGraphDef_Node& from) {
410     if (this == &from) return *this;
411     CopyFrom(from);
412     return *this;
413   }
414   inline CostGraphDef_Node& operator=(CostGraphDef_Node&& from) noexcept {
415     if (this == &from) return *this;
416     if (GetOwningArena() == from.GetOwningArena()
417   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
418         && GetOwningArena() != nullptr
419   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
420     ) {
421       InternalSwap(&from);
422     } else {
423       CopyFrom(from);
424     }
425     return *this;
426   }
427 
default_instance()428   static const CostGraphDef_Node& default_instance() {
429     return *internal_default_instance();
430   }
internal_default_instance()431   static inline const CostGraphDef_Node* internal_default_instance() {
432     return reinterpret_cast<const CostGraphDef_Node*>(
433                &_CostGraphDef_Node_default_instance_);
434   }
435   static constexpr int kIndexInFileMessages =
436     2;
437 
swap(CostGraphDef_Node & a,CostGraphDef_Node & b)438   friend void swap(CostGraphDef_Node& a, CostGraphDef_Node& b) {
439     a.Swap(&b);
440   }
Swap(CostGraphDef_Node * other)441   inline void Swap(CostGraphDef_Node* other) {
442     if (other == this) return;
443   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
444     if (GetOwningArena() != nullptr &&
445         GetOwningArena() == other->GetOwningArena()) {
446    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
447     if (GetOwningArena() == other->GetOwningArena()) {
448   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
449       InternalSwap(other);
450     } else {
451       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
452     }
453   }
454   void UnsafeArenaSwap(CostGraphDef_Node* other) {
455     if (other == this) return;
456     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
457     InternalSwap(other);
458   }
459 
460   // implements Message ----------------------------------------------
461 
462   CostGraphDef_Node* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
463     return CreateMaybeMessage<CostGraphDef_Node>(arena);
464   }
465   CostGraphDef_Node* New() const {
466     return New(nullptr);
467   }
468   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
469   void CopyFrom(const CostGraphDef_Node& from);
470   void MergeFrom(const CostGraphDef_Node& from);
471   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
472   bool IsInitialized() const final;
473 
474   size_t ByteSizeLong() const final;
475   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
476   ::uint8_t* _InternalSerialize(
477       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
478   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
479 
480   private:
481   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
482   void SharedDtor();
483   void SetCachedSize(int size) const;
484   void InternalSwap(CostGraphDef_Node* other);
485 
486   private:
487   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
488   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
489     return "tensorflow.CostGraphDef.Node";
490   }
491   protected:
492   explicit CostGraphDef_Node(::PROTOBUF_NAMESPACE_ID::Arena* arena,
493                        bool is_message_owned = false);
494   public:
495 
496   std::string GetTypeName() const final;
497 
498   // nested types ----------------------------------------------------
499 
500   typedef CostGraphDef_Node_InputInfo InputInfo;
501   typedef CostGraphDef_Node_OutputInfo OutputInfo;
502 
503   // accessors -------------------------------------------------------
504 
505   enum : int {
506     kInputInfoFieldNumber = 4,
507     kOutputInfoFieldNumber = 5,
508     kControlInputFieldNumber = 8,
509     kNameFieldNumber = 1,
510     kDeviceFieldNumber = 2,
511     kTemporaryMemorySizeFieldNumber = 6,
512     kComputeCostFieldNumber = 9,
513     kIdFieldNumber = 3,
514     kIsFinalFieldNumber = 7,
515     kInaccurateFieldNumber = 17,
516     kHostTempMemorySizeFieldNumber = 10,
517     kDeviceTempMemorySizeFieldNumber = 11,
518     kPersistentMemorySizeFieldNumber = 12,
519     kComputeTimeFieldNumber = 14,
520     kMemoryTimeFieldNumber = 15,
521     kDevicePersistentMemorySizeFieldNumber = 16,
522   };
523   // repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
524   int input_info_size() const;
525   private:
526   int _internal_input_info_size() const;
527   public:
528   void clear_input_info();
529   ::tensorflow::CostGraphDef_Node_InputInfo* mutable_input_info(int index);
530   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo >*
531       mutable_input_info();
532   private:
533   const ::tensorflow::CostGraphDef_Node_InputInfo& _internal_input_info(int index) const;
534   ::tensorflow::CostGraphDef_Node_InputInfo* _internal_add_input_info();
535   public:
536   const ::tensorflow::CostGraphDef_Node_InputInfo& input_info(int index) const;
537   ::tensorflow::CostGraphDef_Node_InputInfo* add_input_info();
538   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo >&
539       input_info() const;
540 
541   // repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
542   int output_info_size() const;
543   private:
544   int _internal_output_info_size() const;
545   public:
546   void clear_output_info();
547   ::tensorflow::CostGraphDef_Node_OutputInfo* mutable_output_info(int index);
548   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo >*
549       mutable_output_info();
550   private:
551   const ::tensorflow::CostGraphDef_Node_OutputInfo& _internal_output_info(int index) const;
552   ::tensorflow::CostGraphDef_Node_OutputInfo* _internal_add_output_info();
553   public:
554   const ::tensorflow::CostGraphDef_Node_OutputInfo& output_info(int index) const;
555   ::tensorflow::CostGraphDef_Node_OutputInfo* add_output_info();
556   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo >&
557       output_info() const;
558 
559   // repeated int32 control_input = 8;
560   int control_input_size() const;
561   private:
562   int _internal_control_input_size() const;
563   public:
564   void clear_control_input();
565   private:
566   ::int32_t _internal_control_input(int index) const;
567   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
568       _internal_control_input() const;
569   void _internal_add_control_input(::int32_t value);
570   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
571       _internal_mutable_control_input();
572   public:
573   ::int32_t control_input(int index) const;
574   void set_control_input(int index, ::int32_t value);
575   void add_control_input(::int32_t value);
576   const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
577       control_input() const;
578   ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
579       mutable_control_input();
580 
581   // string name = 1;
582   void clear_name();
583   const std::string& name() const;
584   template <typename ArgT0 = const std::string&, typename... ArgT>
585   void set_name(ArgT0&& arg0, ArgT... args);
586   std::string* mutable_name();
587   PROTOBUF_NODISCARD std::string* release_name();
588   void set_allocated_name(std::string* name);
589   private:
590   const std::string& _internal_name() const;
591   inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
592   std::string* _internal_mutable_name();
593   public:
594 
595   // string device = 2;
596   void clear_device();
597   const std::string& device() const;
598   template <typename ArgT0 = const std::string&, typename... ArgT>
599   void set_device(ArgT0&& arg0, ArgT... args);
600   std::string* mutable_device();
601   PROTOBUF_NODISCARD std::string* release_device();
602   void set_allocated_device(std::string* device);
603   private:
604   const std::string& _internal_device() const;
605   inline PROTOBUF_ALWAYS_INLINE void _internal_set_device(const std::string& value);
606   std::string* _internal_mutable_device();
607   public:
608 
609   // int64 temporary_memory_size = 6;
610   void clear_temporary_memory_size();
611   ::int64_t temporary_memory_size() const;
612   void set_temporary_memory_size(::int64_t value);
613   private:
614   ::int64_t _internal_temporary_memory_size() const;
615   void _internal_set_temporary_memory_size(::int64_t value);
616   public:
617 
618   // int64 compute_cost = 9;
619   void clear_compute_cost();
620   ::int64_t compute_cost() const;
621   void set_compute_cost(::int64_t value);
622   private:
623   ::int64_t _internal_compute_cost() const;
624   void _internal_set_compute_cost(::int64_t value);
625   public:
626 
627   // int32 id = 3;
628   void clear_id();
629   ::int32_t id() const;
630   void set_id(::int32_t value);
631   private:
632   ::int32_t _internal_id() const;
633   void _internal_set_id(::int32_t value);
634   public:
635 
636   // bool is_final = 7;
637   void clear_is_final();
638   bool is_final() const;
639   void set_is_final(bool value);
640   private:
641   bool _internal_is_final() const;
642   void _internal_set_is_final(bool value);
643   public:
644 
645   // bool inaccurate = 17;
646   void clear_inaccurate();
647   bool inaccurate() const;
648   void set_inaccurate(bool value);
649   private:
650   bool _internal_inaccurate() const;
651   void _internal_set_inaccurate(bool value);
652   public:
653 
654   // int64 host_temp_memory_size = 10 [deprecated = true];
655   PROTOBUF_DEPRECATED void clear_host_temp_memory_size();
656   PROTOBUF_DEPRECATED ::int64_t host_temp_memory_size() const;
657   PROTOBUF_DEPRECATED void set_host_temp_memory_size(::int64_t value);
658   private:
659   ::int64_t _internal_host_temp_memory_size() const;
660   void _internal_set_host_temp_memory_size(::int64_t value);
661   public:
662 
663   // int64 device_temp_memory_size = 11 [deprecated = true];
664   PROTOBUF_DEPRECATED void clear_device_temp_memory_size();
665   PROTOBUF_DEPRECATED ::int64_t device_temp_memory_size() const;
666   PROTOBUF_DEPRECATED void set_device_temp_memory_size(::int64_t value);
667   private:
668   ::int64_t _internal_device_temp_memory_size() const;
669   void _internal_set_device_temp_memory_size(::int64_t value);
670   public:
671 
672   // int64 persistent_memory_size = 12;
673   void clear_persistent_memory_size();
674   ::int64_t persistent_memory_size() const;
675   void set_persistent_memory_size(::int64_t value);
676   private:
677   ::int64_t _internal_persistent_memory_size() const;
678   void _internal_set_persistent_memory_size(::int64_t value);
679   public:
680 
681   // int64 compute_time = 14;
682   void clear_compute_time();
683   ::int64_t compute_time() const;
684   void set_compute_time(::int64_t value);
685   private:
686   ::int64_t _internal_compute_time() const;
687   void _internal_set_compute_time(::int64_t value);
688   public:
689 
690   // int64 memory_time = 15;
691   void clear_memory_time();
692   ::int64_t memory_time() const;
693   void set_memory_time(::int64_t value);
694   private:
695   ::int64_t _internal_memory_time() const;
696   void _internal_set_memory_time(::int64_t value);
697   public:
698 
699   // int64 device_persistent_memory_size = 16 [deprecated = true];
700   PROTOBUF_DEPRECATED void clear_device_persistent_memory_size();
701   PROTOBUF_DEPRECATED ::int64_t device_persistent_memory_size() const;
702   PROTOBUF_DEPRECATED void set_device_persistent_memory_size(::int64_t value);
703   private:
704   ::int64_t _internal_device_persistent_memory_size() const;
705   void _internal_set_device_persistent_memory_size(::int64_t value);
706   public:
707 
708   // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.Node)
709  private:
710   class _Internal;
711 
712   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
713   typedef void InternalArenaConstructable_;
714   typedef void DestructorSkippable_;
715   struct Impl_ {
716     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo > input_info_;
717     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo > output_info_;
718     ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t > control_input_;
719     mutable std::atomic<int> _control_input_cached_byte_size_;
720     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
721     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_;
722     ::int64_t temporary_memory_size_;
723     ::int64_t compute_cost_;
724     ::int32_t id_;
725     bool is_final_;
726     bool inaccurate_;
727     ::int64_t host_temp_memory_size_;
728     ::int64_t device_temp_memory_size_;
729     ::int64_t persistent_memory_size_;
730     ::int64_t compute_time_;
731     ::int64_t memory_time_;
732     ::int64_t device_persistent_memory_size_;
733     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
734   };
735   union { Impl_ _impl_; };
736   friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto;
737 };
738 // -------------------------------------------------------------------
739 
740 class CostGraphDef_AggregatedCost final :
741     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef.AggregatedCost) */ {
742  public:
CostGraphDef_AggregatedCost()743   inline CostGraphDef_AggregatedCost() : CostGraphDef_AggregatedCost(nullptr) {}
744   ~CostGraphDef_AggregatedCost() override;
745   explicit PROTOBUF_CONSTEXPR CostGraphDef_AggregatedCost(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
746 
747   CostGraphDef_AggregatedCost(const CostGraphDef_AggregatedCost& from);
CostGraphDef_AggregatedCost(CostGraphDef_AggregatedCost && from)748   CostGraphDef_AggregatedCost(CostGraphDef_AggregatedCost&& from) noexcept
749     : CostGraphDef_AggregatedCost() {
750     *this = ::std::move(from);
751   }
752 
753   inline CostGraphDef_AggregatedCost& operator=(const CostGraphDef_AggregatedCost& from) {
754     if (this == &from) return *this;
755     CopyFrom(from);
756     return *this;
757   }
758   inline CostGraphDef_AggregatedCost& operator=(CostGraphDef_AggregatedCost&& from) noexcept {
759     if (this == &from) return *this;
760     if (GetOwningArena() == from.GetOwningArena()
761   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
762         && GetOwningArena() != nullptr
763   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
764     ) {
765       InternalSwap(&from);
766     } else {
767       CopyFrom(from);
768     }
769     return *this;
770   }
771 
default_instance()772   static const CostGraphDef_AggregatedCost& default_instance() {
773     return *internal_default_instance();
774   }
internal_default_instance()775   static inline const CostGraphDef_AggregatedCost* internal_default_instance() {
776     return reinterpret_cast<const CostGraphDef_AggregatedCost*>(
777                &_CostGraphDef_AggregatedCost_default_instance_);
778   }
779   static constexpr int kIndexInFileMessages =
780     3;
781 
swap(CostGraphDef_AggregatedCost & a,CostGraphDef_AggregatedCost & b)782   friend void swap(CostGraphDef_AggregatedCost& a, CostGraphDef_AggregatedCost& b) {
783     a.Swap(&b);
784   }
Swap(CostGraphDef_AggregatedCost * other)785   inline void Swap(CostGraphDef_AggregatedCost* other) {
786     if (other == this) return;
787   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
788     if (GetOwningArena() != nullptr &&
789         GetOwningArena() == other->GetOwningArena()) {
790    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
791     if (GetOwningArena() == other->GetOwningArena()) {
792   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
793       InternalSwap(other);
794     } else {
795       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
796     }
797   }
798   void UnsafeArenaSwap(CostGraphDef_AggregatedCost* other) {
799     if (other == this) return;
800     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
801     InternalSwap(other);
802   }
803 
804   // implements Message ----------------------------------------------
805 
806   CostGraphDef_AggregatedCost* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
807     return CreateMaybeMessage<CostGraphDef_AggregatedCost>(arena);
808   }
809   CostGraphDef_AggregatedCost* New() const {
810     return New(nullptr);
811   }
812   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
813   void CopyFrom(const CostGraphDef_AggregatedCost& from);
814   void MergeFrom(const CostGraphDef_AggregatedCost& from);
815   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
816   bool IsInitialized() const final;
817 
818   size_t ByteSizeLong() const final;
819   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
820   ::uint8_t* _InternalSerialize(
821       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
822   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
823 
824   private:
825   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
826   void SharedDtor();
827   void SetCachedSize(int size) const;
828   void InternalSwap(CostGraphDef_AggregatedCost* other);
829 
830   private:
831   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
832   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
833     return "tensorflow.CostGraphDef.AggregatedCost";
834   }
835   protected:
836   explicit CostGraphDef_AggregatedCost(::PROTOBUF_NAMESPACE_ID::Arena* arena,
837                        bool is_message_owned = false);
838   public:
839 
840   std::string GetTypeName() const final;
841 
842   // nested types ----------------------------------------------------
843 
844   // accessors -------------------------------------------------------
845 
846   enum : int {
847     kDimensionFieldNumber = 2,
848     kCostFieldNumber = 1,
849   };
850   // string dimension = 2;
851   void clear_dimension();
852   const std::string& dimension() const;
853   template <typename ArgT0 = const std::string&, typename... ArgT>
854   void set_dimension(ArgT0&& arg0, ArgT... args);
855   std::string* mutable_dimension();
856   PROTOBUF_NODISCARD std::string* release_dimension();
857   void set_allocated_dimension(std::string* dimension);
858   private:
859   const std::string& _internal_dimension() const;
860   inline PROTOBUF_ALWAYS_INLINE void _internal_set_dimension(const std::string& value);
861   std::string* _internal_mutable_dimension();
862   public:
863 
864   // float cost = 1;
865   void clear_cost();
866   float cost() const;
867   void set_cost(float value);
868   private:
869   float _internal_cost() const;
870   void _internal_set_cost(float value);
871   public:
872 
873   // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef.AggregatedCost)
874  private:
875   class _Internal;
876 
877   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
878   typedef void InternalArenaConstructable_;
879   typedef void DestructorSkippable_;
880   struct Impl_ {
881     ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr dimension_;
882     float cost_;
883     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
884   };
885   union { Impl_ _impl_; };
886   friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto;
887 };
888 // -------------------------------------------------------------------
889 
890 class CostGraphDef final :
891     public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.CostGraphDef) */ {
892  public:
CostGraphDef()893   inline CostGraphDef() : CostGraphDef(nullptr) {}
894   ~CostGraphDef() override;
895   explicit PROTOBUF_CONSTEXPR CostGraphDef(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
896 
897   CostGraphDef(const CostGraphDef& from);
CostGraphDef(CostGraphDef && from)898   CostGraphDef(CostGraphDef&& from) noexcept
899     : CostGraphDef() {
900     *this = ::std::move(from);
901   }
902 
903   inline CostGraphDef& operator=(const CostGraphDef& from) {
904     if (this == &from) return *this;
905     CopyFrom(from);
906     return *this;
907   }
908   inline CostGraphDef& operator=(CostGraphDef&& from) noexcept {
909     if (this == &from) return *this;
910     if (GetOwningArena() == from.GetOwningArena()
911   #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
912         && GetOwningArena() != nullptr
913   #endif  // !PROTOBUF_FORCE_COPY_IN_MOVE
914     ) {
915       InternalSwap(&from);
916     } else {
917       CopyFrom(from);
918     }
919     return *this;
920   }
921 
default_instance()922   static const CostGraphDef& default_instance() {
923     return *internal_default_instance();
924   }
internal_default_instance()925   static inline const CostGraphDef* internal_default_instance() {
926     return reinterpret_cast<const CostGraphDef*>(
927                &_CostGraphDef_default_instance_);
928   }
929   static constexpr int kIndexInFileMessages =
930     4;
931 
swap(CostGraphDef & a,CostGraphDef & b)932   friend void swap(CostGraphDef& a, CostGraphDef& b) {
933     a.Swap(&b);
934   }
Swap(CostGraphDef * other)935   inline void Swap(CostGraphDef* other) {
936     if (other == this) return;
937   #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
938     if (GetOwningArena() != nullptr &&
939         GetOwningArena() == other->GetOwningArena()) {
940    #else  // PROTOBUF_FORCE_COPY_IN_SWAP
941     if (GetOwningArena() == other->GetOwningArena()) {
942   #endif  // !PROTOBUF_FORCE_COPY_IN_SWAP
943       InternalSwap(other);
944     } else {
945       ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
946     }
947   }
948   void UnsafeArenaSwap(CostGraphDef* other) {
949     if (other == this) return;
950     GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
951     InternalSwap(other);
952   }
953 
954   // implements Message ----------------------------------------------
955 
956   CostGraphDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
957     return CreateMaybeMessage<CostGraphDef>(arena);
958   }
959   CostGraphDef* New() const {
960     return New(nullptr);
961   }
962   void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from)  final;
963   void CopyFrom(const CostGraphDef& from);
964   void MergeFrom(const CostGraphDef& from);
965   PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
966   bool IsInitialized() const final;
967 
968   size_t ByteSizeLong() const final;
969   const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
970   ::uint8_t* _InternalSerialize(
971       ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
972   int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
973 
974   private:
975   void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
976   void SharedDtor();
977   void SetCachedSize(int size) const;
978   void InternalSwap(CostGraphDef* other);
979 
980   private:
981   friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
982   static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
983     return "tensorflow.CostGraphDef";
984   }
985   protected:
986   explicit CostGraphDef(::PROTOBUF_NAMESPACE_ID::Arena* arena,
987                        bool is_message_owned = false);
988   public:
989 
990   std::string GetTypeName() const final;
991 
992   // nested types ----------------------------------------------------
993 
994   typedef CostGraphDef_Node Node;
995   typedef CostGraphDef_AggregatedCost AggregatedCost;
996 
997   // accessors -------------------------------------------------------
998 
999   enum : int {
1000     kNodeFieldNumber = 1,
1001     kCostFieldNumber = 2,
1002   };
1003   // repeated .tensorflow.CostGraphDef.Node node = 1;
1004   int node_size() const;
1005   private:
1006   int _internal_node_size() const;
1007   public:
1008   void clear_node();
1009   ::tensorflow::CostGraphDef_Node* mutable_node(int index);
1010   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node >*
1011       mutable_node();
1012   private:
1013   const ::tensorflow::CostGraphDef_Node& _internal_node(int index) const;
1014   ::tensorflow::CostGraphDef_Node* _internal_add_node();
1015   public:
1016   const ::tensorflow::CostGraphDef_Node& node(int index) const;
1017   ::tensorflow::CostGraphDef_Node* add_node();
1018   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node >&
1019       node() const;
1020 
1021   // repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2;
1022   int cost_size() const;
1023   private:
1024   int _internal_cost_size() const;
1025   public:
1026   void clear_cost();
1027   ::tensorflow::CostGraphDef_AggregatedCost* mutable_cost(int index);
1028   ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_AggregatedCost >*
1029       mutable_cost();
1030   private:
1031   const ::tensorflow::CostGraphDef_AggregatedCost& _internal_cost(int index) const;
1032   ::tensorflow::CostGraphDef_AggregatedCost* _internal_add_cost();
1033   public:
1034   const ::tensorflow::CostGraphDef_AggregatedCost& cost(int index) const;
1035   ::tensorflow::CostGraphDef_AggregatedCost* add_cost();
1036   const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_AggregatedCost >&
1037       cost() const;
1038 
1039   // @@protoc_insertion_point(class_scope:tensorflow.CostGraphDef)
1040  private:
1041   class _Internal;
1042 
1043   template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1044   typedef void InternalArenaConstructable_;
1045   typedef void DestructorSkippable_;
1046   struct Impl_ {
1047     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node > node_;
1048     ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_AggregatedCost > cost_;
1049     mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1050   };
1051   union { Impl_ _impl_; };
1052   friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto;
1053 };
1054 // ===================================================================
1055 
1056 
1057 // ===================================================================
1058 
1059 #ifdef __GNUC__
1060   #pragma GCC diagnostic push
1061   #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1062 #endif  // __GNUC__
1063 // CostGraphDef_Node_InputInfo
1064 
1065 // int32 preceding_node = 1;
clear_preceding_node()1066 inline void CostGraphDef_Node_InputInfo::clear_preceding_node() {
1067   _impl_.preceding_node_ = 0;
1068 }
_internal_preceding_node()1069 inline ::int32_t CostGraphDef_Node_InputInfo::_internal_preceding_node() const {
1070   return _impl_.preceding_node_;
1071 }
preceding_node()1072 inline ::int32_t CostGraphDef_Node_InputInfo::preceding_node() const {
1073   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.InputInfo.preceding_node)
1074   return _internal_preceding_node();
1075 }
_internal_set_preceding_node(::int32_t value)1076 inline void CostGraphDef_Node_InputInfo::_internal_set_preceding_node(::int32_t value) {
1077 
1078   _impl_.preceding_node_ = value;
1079 }
set_preceding_node(::int32_t value)1080 inline void CostGraphDef_Node_InputInfo::set_preceding_node(::int32_t value) {
1081   _internal_set_preceding_node(value);
1082   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.InputInfo.preceding_node)
1083 }
1084 
1085 // int32 preceding_port = 2;
clear_preceding_port()1086 inline void CostGraphDef_Node_InputInfo::clear_preceding_port() {
1087   _impl_.preceding_port_ = 0;
1088 }
_internal_preceding_port()1089 inline ::int32_t CostGraphDef_Node_InputInfo::_internal_preceding_port() const {
1090   return _impl_.preceding_port_;
1091 }
preceding_port()1092 inline ::int32_t CostGraphDef_Node_InputInfo::preceding_port() const {
1093   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.InputInfo.preceding_port)
1094   return _internal_preceding_port();
1095 }
_internal_set_preceding_port(::int32_t value)1096 inline void CostGraphDef_Node_InputInfo::_internal_set_preceding_port(::int32_t value) {
1097 
1098   _impl_.preceding_port_ = value;
1099 }
set_preceding_port(::int32_t value)1100 inline void CostGraphDef_Node_InputInfo::set_preceding_port(::int32_t value) {
1101   _internal_set_preceding_port(value);
1102   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.InputInfo.preceding_port)
1103 }
1104 
1105 // -------------------------------------------------------------------
1106 
1107 // CostGraphDef_Node_OutputInfo
1108 
1109 // int64 size = 1;
clear_size()1110 inline void CostGraphDef_Node_OutputInfo::clear_size() {
1111   _impl_.size_ = ::int64_t{0};
1112 }
_internal_size()1113 inline ::int64_t CostGraphDef_Node_OutputInfo::_internal_size() const {
1114   return _impl_.size_;
1115 }
size()1116 inline ::int64_t CostGraphDef_Node_OutputInfo::size() const {
1117   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.OutputInfo.size)
1118   return _internal_size();
1119 }
_internal_set_size(::int64_t value)1120 inline void CostGraphDef_Node_OutputInfo::_internal_set_size(::int64_t value) {
1121 
1122   _impl_.size_ = value;
1123 }
set_size(::int64_t value)1124 inline void CostGraphDef_Node_OutputInfo::set_size(::int64_t value) {
1125   _internal_set_size(value);
1126   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.OutputInfo.size)
1127 }
1128 
1129 // int64 alias_input_port = 2;
clear_alias_input_port()1130 inline void CostGraphDef_Node_OutputInfo::clear_alias_input_port() {
1131   _impl_.alias_input_port_ = ::int64_t{0};
1132 }
_internal_alias_input_port()1133 inline ::int64_t CostGraphDef_Node_OutputInfo::_internal_alias_input_port() const {
1134   return _impl_.alias_input_port_;
1135 }
alias_input_port()1136 inline ::int64_t CostGraphDef_Node_OutputInfo::alias_input_port() const {
1137   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.OutputInfo.alias_input_port)
1138   return _internal_alias_input_port();
1139 }
_internal_set_alias_input_port(::int64_t value)1140 inline void CostGraphDef_Node_OutputInfo::_internal_set_alias_input_port(::int64_t value) {
1141 
1142   _impl_.alias_input_port_ = value;
1143 }
set_alias_input_port(::int64_t value)1144 inline void CostGraphDef_Node_OutputInfo::set_alias_input_port(::int64_t value) {
1145   _internal_set_alias_input_port(value);
1146   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.OutputInfo.alias_input_port)
1147 }
1148 
1149 // .tensorflow.TensorShapeProto shape = 3;
_internal_has_shape()1150 inline bool CostGraphDef_Node_OutputInfo::_internal_has_shape() const {
1151   return this != internal_default_instance() && _impl_.shape_ != nullptr;
1152 }
has_shape()1153 inline bool CostGraphDef_Node_OutputInfo::has_shape() const {
1154   return _internal_has_shape();
1155 }
_internal_shape()1156 inline const ::tensorflow::TensorShapeProto& CostGraphDef_Node_OutputInfo::_internal_shape() const {
1157   const ::tensorflow::TensorShapeProto* p = _impl_.shape_;
1158   return p != nullptr ? *p : reinterpret_cast<const ::tensorflow::TensorShapeProto&>(
1159       ::tensorflow::_TensorShapeProto_default_instance_);
1160 }
shape()1161 inline const ::tensorflow::TensorShapeProto& CostGraphDef_Node_OutputInfo::shape() const {
1162   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.OutputInfo.shape)
1163   return _internal_shape();
1164 }
unsafe_arena_set_allocated_shape(::tensorflow::TensorShapeProto * shape)1165 inline void CostGraphDef_Node_OutputInfo::unsafe_arena_set_allocated_shape(
1166     ::tensorflow::TensorShapeProto* shape) {
1167   if (GetArenaForAllocation() == nullptr) {
1168     delete reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.shape_);
1169   }
1170   _impl_.shape_ = shape;
1171   // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CostGraphDef.Node.OutputInfo.shape)
1172 }
release_shape()1173 inline ::tensorflow::TensorShapeProto* CostGraphDef_Node_OutputInfo::release_shape() {
1174 
1175   ::tensorflow::TensorShapeProto* temp = _impl_.shape_;
1176   _impl_.shape_ = nullptr;
1177 #ifdef PROTOBUF_FORCE_COPY_IN_RELEASE
1178   auto* old =  reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(temp);
1179   temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1180   if (GetArenaForAllocation() == nullptr) { delete old; }
1181 #else  // PROTOBUF_FORCE_COPY_IN_RELEASE
1182   if (GetArenaForAllocation() != nullptr) {
1183     temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1184   }
1185 #endif  // !PROTOBUF_FORCE_COPY_IN_RELEASE
1186   return temp;
1187 }
unsafe_arena_release_shape()1188 inline ::tensorflow::TensorShapeProto* CostGraphDef_Node_OutputInfo::unsafe_arena_release_shape() {
1189   // @@protoc_insertion_point(field_release:tensorflow.CostGraphDef.Node.OutputInfo.shape)
1190 
1191   ::tensorflow::TensorShapeProto* temp = _impl_.shape_;
1192   _impl_.shape_ = nullptr;
1193   return temp;
1194 }
_internal_mutable_shape()1195 inline ::tensorflow::TensorShapeProto* CostGraphDef_Node_OutputInfo::_internal_mutable_shape() {
1196 
1197   if (_impl_.shape_ == nullptr) {
1198     auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaForAllocation());
1199     _impl_.shape_ = p;
1200   }
1201   return _impl_.shape_;
1202 }
mutable_shape()1203 inline ::tensorflow::TensorShapeProto* CostGraphDef_Node_OutputInfo::mutable_shape() {
1204   ::tensorflow::TensorShapeProto* _msg = _internal_mutable_shape();
1205   // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.OutputInfo.shape)
1206   return _msg;
1207 }
set_allocated_shape(::tensorflow::TensorShapeProto * shape)1208 inline void CostGraphDef_Node_OutputInfo::set_allocated_shape(::tensorflow::TensorShapeProto* shape) {
1209   ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
1210   if (message_arena == nullptr) {
1211     delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(_impl_.shape_);
1212   }
1213   if (shape) {
1214     ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1215         ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(
1216                 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape));
1217     if (message_arena != submessage_arena) {
1218       shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1219           message_arena, shape, submessage_arena);
1220     }
1221 
1222   } else {
1223 
1224   }
1225   _impl_.shape_ = shape;
1226   // @@protoc_insertion_point(field_set_allocated:tensorflow.CostGraphDef.Node.OutputInfo.shape)
1227 }
1228 
1229 // .tensorflow.DataType dtype = 4;
clear_dtype()1230 inline void CostGraphDef_Node_OutputInfo::clear_dtype() {
1231   _impl_.dtype_ = 0;
1232 }
_internal_dtype()1233 inline ::tensorflow::DataType CostGraphDef_Node_OutputInfo::_internal_dtype() const {
1234   return static_cast< ::tensorflow::DataType >(_impl_.dtype_);
1235 }
dtype()1236 inline ::tensorflow::DataType CostGraphDef_Node_OutputInfo::dtype() const {
1237   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.OutputInfo.dtype)
1238   return _internal_dtype();
1239 }
_internal_set_dtype(::tensorflow::DataType value)1240 inline void CostGraphDef_Node_OutputInfo::_internal_set_dtype(::tensorflow::DataType value) {
1241 
1242   _impl_.dtype_ = value;
1243 }
set_dtype(::tensorflow::DataType value)1244 inline void CostGraphDef_Node_OutputInfo::set_dtype(::tensorflow::DataType value) {
1245   _internal_set_dtype(value);
1246   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.OutputInfo.dtype)
1247 }
1248 
1249 // -------------------------------------------------------------------
1250 
1251 // CostGraphDef_Node
1252 
1253 // string name = 1;
clear_name()1254 inline void CostGraphDef_Node::clear_name() {
1255   _impl_.name_.ClearToEmpty();
1256 }
name()1257 inline const std::string& CostGraphDef_Node::name() const {
1258   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.name)
1259   return _internal_name();
1260 }
1261 template <typename ArgT0, typename... ArgT>
1262 inline PROTOBUF_ALWAYS_INLINE
set_name(ArgT0 && arg0,ArgT...args)1263 void CostGraphDef_Node::set_name(ArgT0&& arg0, ArgT... args) {
1264 
1265  _impl_.name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1266   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.name)
1267 }
mutable_name()1268 inline std::string* CostGraphDef_Node::mutable_name() {
1269   std::string* _s = _internal_mutable_name();
1270   // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.name)
1271   return _s;
1272 }
_internal_name()1273 inline const std::string& CostGraphDef_Node::_internal_name() const {
1274   return _impl_.name_.Get();
1275 }
_internal_set_name(const std::string & value)1276 inline void CostGraphDef_Node::_internal_set_name(const std::string& value) {
1277 
1278   _impl_.name_.Set(value, GetArenaForAllocation());
1279 }
_internal_mutable_name()1280 inline std::string* CostGraphDef_Node::_internal_mutable_name() {
1281 
1282   return _impl_.name_.Mutable(GetArenaForAllocation());
1283 }
release_name()1284 inline std::string* CostGraphDef_Node::release_name() {
1285   // @@protoc_insertion_point(field_release:tensorflow.CostGraphDef.Node.name)
1286   return _impl_.name_.Release();
1287 }
set_allocated_name(std::string * name)1288 inline void CostGraphDef_Node::set_allocated_name(std::string* name) {
1289   _impl_.name_.SetAllocated(name, GetArenaForAllocation());
1290 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1291   if (_impl_.name_.IsDefault()) {
1292     _impl_.name_.Set("", GetArenaForAllocation());
1293   }
1294 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1295   // @@protoc_insertion_point(field_set_allocated:tensorflow.CostGraphDef.Node.name)
1296 }
1297 
1298 // string device = 2;
clear_device()1299 inline void CostGraphDef_Node::clear_device() {
1300   _impl_.device_.ClearToEmpty();
1301 }
device()1302 inline const std::string& CostGraphDef_Node::device() const {
1303   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.device)
1304   return _internal_device();
1305 }
1306 template <typename ArgT0, typename... ArgT>
1307 inline PROTOBUF_ALWAYS_INLINE
set_device(ArgT0 && arg0,ArgT...args)1308 void CostGraphDef_Node::set_device(ArgT0&& arg0, ArgT... args) {
1309 
1310  _impl_.device_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1311   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.device)
1312 }
mutable_device()1313 inline std::string* CostGraphDef_Node::mutable_device() {
1314   std::string* _s = _internal_mutable_device();
1315   // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.device)
1316   return _s;
1317 }
_internal_device()1318 inline const std::string& CostGraphDef_Node::_internal_device() const {
1319   return _impl_.device_.Get();
1320 }
_internal_set_device(const std::string & value)1321 inline void CostGraphDef_Node::_internal_set_device(const std::string& value) {
1322 
1323   _impl_.device_.Set(value, GetArenaForAllocation());
1324 }
_internal_mutable_device()1325 inline std::string* CostGraphDef_Node::_internal_mutable_device() {
1326 
1327   return _impl_.device_.Mutable(GetArenaForAllocation());
1328 }
release_device()1329 inline std::string* CostGraphDef_Node::release_device() {
1330   // @@protoc_insertion_point(field_release:tensorflow.CostGraphDef.Node.device)
1331   return _impl_.device_.Release();
1332 }
set_allocated_device(std::string * device)1333 inline void CostGraphDef_Node::set_allocated_device(std::string* device) {
1334   _impl_.device_.SetAllocated(device, GetArenaForAllocation());
1335 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1336   if (_impl_.device_.IsDefault()) {
1337     _impl_.device_.Set("", GetArenaForAllocation());
1338   }
1339 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1340   // @@protoc_insertion_point(field_set_allocated:tensorflow.CostGraphDef.Node.device)
1341 }
1342 
1343 // int32 id = 3;
clear_id()1344 inline void CostGraphDef_Node::clear_id() {
1345   _impl_.id_ = 0;
1346 }
_internal_id()1347 inline ::int32_t CostGraphDef_Node::_internal_id() const {
1348   return _impl_.id_;
1349 }
id()1350 inline ::int32_t CostGraphDef_Node::id() const {
1351   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.id)
1352   return _internal_id();
1353 }
_internal_set_id(::int32_t value)1354 inline void CostGraphDef_Node::_internal_set_id(::int32_t value) {
1355 
1356   _impl_.id_ = value;
1357 }
set_id(::int32_t value)1358 inline void CostGraphDef_Node::set_id(::int32_t value) {
1359   _internal_set_id(value);
1360   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.id)
1361 }
1362 
1363 // repeated .tensorflow.CostGraphDef.Node.InputInfo input_info = 4;
_internal_input_info_size()1364 inline int CostGraphDef_Node::_internal_input_info_size() const {
1365   return _impl_.input_info_.size();
1366 }
input_info_size()1367 inline int CostGraphDef_Node::input_info_size() const {
1368   return _internal_input_info_size();
1369 }
clear_input_info()1370 inline void CostGraphDef_Node::clear_input_info() {
1371   _impl_.input_info_.Clear();
1372 }
mutable_input_info(int index)1373 inline ::tensorflow::CostGraphDef_Node_InputInfo* CostGraphDef_Node::mutable_input_info(int index) {
1374   // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.input_info)
1375   return _impl_.input_info_.Mutable(index);
1376 }
1377 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo >*
mutable_input_info()1378 CostGraphDef_Node::mutable_input_info() {
1379   // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.Node.input_info)
1380   return &_impl_.input_info_;
1381 }
_internal_input_info(int index)1382 inline const ::tensorflow::CostGraphDef_Node_InputInfo& CostGraphDef_Node::_internal_input_info(int index) const {
1383   return _impl_.input_info_.Get(index);
1384 }
input_info(int index)1385 inline const ::tensorflow::CostGraphDef_Node_InputInfo& CostGraphDef_Node::input_info(int index) const {
1386   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.input_info)
1387   return _internal_input_info(index);
1388 }
_internal_add_input_info()1389 inline ::tensorflow::CostGraphDef_Node_InputInfo* CostGraphDef_Node::_internal_add_input_info() {
1390   return _impl_.input_info_.Add();
1391 }
add_input_info()1392 inline ::tensorflow::CostGraphDef_Node_InputInfo* CostGraphDef_Node::add_input_info() {
1393   ::tensorflow::CostGraphDef_Node_InputInfo* _add = _internal_add_input_info();
1394   // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.Node.input_info)
1395   return _add;
1396 }
1397 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_InputInfo >&
input_info()1398 CostGraphDef_Node::input_info() const {
1399   // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.Node.input_info)
1400   return _impl_.input_info_;
1401 }
1402 
1403 // repeated .tensorflow.CostGraphDef.Node.OutputInfo output_info = 5;
_internal_output_info_size()1404 inline int CostGraphDef_Node::_internal_output_info_size() const {
1405   return _impl_.output_info_.size();
1406 }
output_info_size()1407 inline int CostGraphDef_Node::output_info_size() const {
1408   return _internal_output_info_size();
1409 }
clear_output_info()1410 inline void CostGraphDef_Node::clear_output_info() {
1411   _impl_.output_info_.Clear();
1412 }
mutable_output_info(int index)1413 inline ::tensorflow::CostGraphDef_Node_OutputInfo* CostGraphDef_Node::mutable_output_info(int index) {
1414   // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.Node.output_info)
1415   return _impl_.output_info_.Mutable(index);
1416 }
1417 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo >*
mutable_output_info()1418 CostGraphDef_Node::mutable_output_info() {
1419   // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.Node.output_info)
1420   return &_impl_.output_info_;
1421 }
_internal_output_info(int index)1422 inline const ::tensorflow::CostGraphDef_Node_OutputInfo& CostGraphDef_Node::_internal_output_info(int index) const {
1423   return _impl_.output_info_.Get(index);
1424 }
output_info(int index)1425 inline const ::tensorflow::CostGraphDef_Node_OutputInfo& CostGraphDef_Node::output_info(int index) const {
1426   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.output_info)
1427   return _internal_output_info(index);
1428 }
_internal_add_output_info()1429 inline ::tensorflow::CostGraphDef_Node_OutputInfo* CostGraphDef_Node::_internal_add_output_info() {
1430   return _impl_.output_info_.Add();
1431 }
add_output_info()1432 inline ::tensorflow::CostGraphDef_Node_OutputInfo* CostGraphDef_Node::add_output_info() {
1433   ::tensorflow::CostGraphDef_Node_OutputInfo* _add = _internal_add_output_info();
1434   // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.Node.output_info)
1435   return _add;
1436 }
1437 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node_OutputInfo >&
output_info()1438 CostGraphDef_Node::output_info() const {
1439   // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.Node.output_info)
1440   return _impl_.output_info_;
1441 }
1442 
1443 // int64 temporary_memory_size = 6;
clear_temporary_memory_size()1444 inline void CostGraphDef_Node::clear_temporary_memory_size() {
1445   _impl_.temporary_memory_size_ = ::int64_t{0};
1446 }
_internal_temporary_memory_size()1447 inline ::int64_t CostGraphDef_Node::_internal_temporary_memory_size() const {
1448   return _impl_.temporary_memory_size_;
1449 }
temporary_memory_size()1450 inline ::int64_t CostGraphDef_Node::temporary_memory_size() const {
1451   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.temporary_memory_size)
1452   return _internal_temporary_memory_size();
1453 }
_internal_set_temporary_memory_size(::int64_t value)1454 inline void CostGraphDef_Node::_internal_set_temporary_memory_size(::int64_t value) {
1455 
1456   _impl_.temporary_memory_size_ = value;
1457 }
set_temporary_memory_size(::int64_t value)1458 inline void CostGraphDef_Node::set_temporary_memory_size(::int64_t value) {
1459   _internal_set_temporary_memory_size(value);
1460   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.temporary_memory_size)
1461 }
1462 
1463 // int64 persistent_memory_size = 12;
clear_persistent_memory_size()1464 inline void CostGraphDef_Node::clear_persistent_memory_size() {
1465   _impl_.persistent_memory_size_ = ::int64_t{0};
1466 }
_internal_persistent_memory_size()1467 inline ::int64_t CostGraphDef_Node::_internal_persistent_memory_size() const {
1468   return _impl_.persistent_memory_size_;
1469 }
persistent_memory_size()1470 inline ::int64_t CostGraphDef_Node::persistent_memory_size() const {
1471   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.persistent_memory_size)
1472   return _internal_persistent_memory_size();
1473 }
_internal_set_persistent_memory_size(::int64_t value)1474 inline void CostGraphDef_Node::_internal_set_persistent_memory_size(::int64_t value) {
1475 
1476   _impl_.persistent_memory_size_ = value;
1477 }
set_persistent_memory_size(::int64_t value)1478 inline void CostGraphDef_Node::set_persistent_memory_size(::int64_t value) {
1479   _internal_set_persistent_memory_size(value);
1480   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.persistent_memory_size)
1481 }
1482 
1483 // int64 host_temp_memory_size = 10 [deprecated = true];
clear_host_temp_memory_size()1484 inline void CostGraphDef_Node::clear_host_temp_memory_size() {
1485   _impl_.host_temp_memory_size_ = ::int64_t{0};
1486 }
_internal_host_temp_memory_size()1487 inline ::int64_t CostGraphDef_Node::_internal_host_temp_memory_size() const {
1488   return _impl_.host_temp_memory_size_;
1489 }
host_temp_memory_size()1490 inline ::int64_t CostGraphDef_Node::host_temp_memory_size() const {
1491   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.host_temp_memory_size)
1492   return _internal_host_temp_memory_size();
1493 }
_internal_set_host_temp_memory_size(::int64_t value)1494 inline void CostGraphDef_Node::_internal_set_host_temp_memory_size(::int64_t value) {
1495 
1496   _impl_.host_temp_memory_size_ = value;
1497 }
set_host_temp_memory_size(::int64_t value)1498 inline void CostGraphDef_Node::set_host_temp_memory_size(::int64_t value) {
1499   _internal_set_host_temp_memory_size(value);
1500   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.host_temp_memory_size)
1501 }
1502 
1503 // int64 device_temp_memory_size = 11 [deprecated = true];
clear_device_temp_memory_size()1504 inline void CostGraphDef_Node::clear_device_temp_memory_size() {
1505   _impl_.device_temp_memory_size_ = ::int64_t{0};
1506 }
_internal_device_temp_memory_size()1507 inline ::int64_t CostGraphDef_Node::_internal_device_temp_memory_size() const {
1508   return _impl_.device_temp_memory_size_;
1509 }
device_temp_memory_size()1510 inline ::int64_t CostGraphDef_Node::device_temp_memory_size() const {
1511   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.device_temp_memory_size)
1512   return _internal_device_temp_memory_size();
1513 }
_internal_set_device_temp_memory_size(::int64_t value)1514 inline void CostGraphDef_Node::_internal_set_device_temp_memory_size(::int64_t value) {
1515 
1516   _impl_.device_temp_memory_size_ = value;
1517 }
set_device_temp_memory_size(::int64_t value)1518 inline void CostGraphDef_Node::set_device_temp_memory_size(::int64_t value) {
1519   _internal_set_device_temp_memory_size(value);
1520   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.device_temp_memory_size)
1521 }
1522 
1523 // int64 device_persistent_memory_size = 16 [deprecated = true];
clear_device_persistent_memory_size()1524 inline void CostGraphDef_Node::clear_device_persistent_memory_size() {
1525   _impl_.device_persistent_memory_size_ = ::int64_t{0};
1526 }
_internal_device_persistent_memory_size()1527 inline ::int64_t CostGraphDef_Node::_internal_device_persistent_memory_size() const {
1528   return _impl_.device_persistent_memory_size_;
1529 }
device_persistent_memory_size()1530 inline ::int64_t CostGraphDef_Node::device_persistent_memory_size() const {
1531   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.device_persistent_memory_size)
1532   return _internal_device_persistent_memory_size();
1533 }
_internal_set_device_persistent_memory_size(::int64_t value)1534 inline void CostGraphDef_Node::_internal_set_device_persistent_memory_size(::int64_t value) {
1535 
1536   _impl_.device_persistent_memory_size_ = value;
1537 }
set_device_persistent_memory_size(::int64_t value)1538 inline void CostGraphDef_Node::set_device_persistent_memory_size(::int64_t value) {
1539   _internal_set_device_persistent_memory_size(value);
1540   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.device_persistent_memory_size)
1541 }
1542 
1543 // int64 compute_cost = 9;
clear_compute_cost()1544 inline void CostGraphDef_Node::clear_compute_cost() {
1545   _impl_.compute_cost_ = ::int64_t{0};
1546 }
_internal_compute_cost()1547 inline ::int64_t CostGraphDef_Node::_internal_compute_cost() const {
1548   return _impl_.compute_cost_;
1549 }
compute_cost()1550 inline ::int64_t CostGraphDef_Node::compute_cost() const {
1551   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.compute_cost)
1552   return _internal_compute_cost();
1553 }
_internal_set_compute_cost(::int64_t value)1554 inline void CostGraphDef_Node::_internal_set_compute_cost(::int64_t value) {
1555 
1556   _impl_.compute_cost_ = value;
1557 }
set_compute_cost(::int64_t value)1558 inline void CostGraphDef_Node::set_compute_cost(::int64_t value) {
1559   _internal_set_compute_cost(value);
1560   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.compute_cost)
1561 }
1562 
1563 // int64 compute_time = 14;
clear_compute_time()1564 inline void CostGraphDef_Node::clear_compute_time() {
1565   _impl_.compute_time_ = ::int64_t{0};
1566 }
_internal_compute_time()1567 inline ::int64_t CostGraphDef_Node::_internal_compute_time() const {
1568   return _impl_.compute_time_;
1569 }
compute_time()1570 inline ::int64_t CostGraphDef_Node::compute_time() const {
1571   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.compute_time)
1572   return _internal_compute_time();
1573 }
_internal_set_compute_time(::int64_t value)1574 inline void CostGraphDef_Node::_internal_set_compute_time(::int64_t value) {
1575 
1576   _impl_.compute_time_ = value;
1577 }
set_compute_time(::int64_t value)1578 inline void CostGraphDef_Node::set_compute_time(::int64_t value) {
1579   _internal_set_compute_time(value);
1580   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.compute_time)
1581 }
1582 
1583 // int64 memory_time = 15;
clear_memory_time()1584 inline void CostGraphDef_Node::clear_memory_time() {
1585   _impl_.memory_time_ = ::int64_t{0};
1586 }
_internal_memory_time()1587 inline ::int64_t CostGraphDef_Node::_internal_memory_time() const {
1588   return _impl_.memory_time_;
1589 }
memory_time()1590 inline ::int64_t CostGraphDef_Node::memory_time() const {
1591   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.memory_time)
1592   return _internal_memory_time();
1593 }
_internal_set_memory_time(::int64_t value)1594 inline void CostGraphDef_Node::_internal_set_memory_time(::int64_t value) {
1595 
1596   _impl_.memory_time_ = value;
1597 }
set_memory_time(::int64_t value)1598 inline void CostGraphDef_Node::set_memory_time(::int64_t value) {
1599   _internal_set_memory_time(value);
1600   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.memory_time)
1601 }
1602 
1603 // bool is_final = 7;
clear_is_final()1604 inline void CostGraphDef_Node::clear_is_final() {
1605   _impl_.is_final_ = false;
1606 }
_internal_is_final()1607 inline bool CostGraphDef_Node::_internal_is_final() const {
1608   return _impl_.is_final_;
1609 }
is_final()1610 inline bool CostGraphDef_Node::is_final() const {
1611   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.is_final)
1612   return _internal_is_final();
1613 }
_internal_set_is_final(bool value)1614 inline void CostGraphDef_Node::_internal_set_is_final(bool value) {
1615 
1616   _impl_.is_final_ = value;
1617 }
set_is_final(bool value)1618 inline void CostGraphDef_Node::set_is_final(bool value) {
1619   _internal_set_is_final(value);
1620   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.is_final)
1621 }
1622 
1623 // repeated int32 control_input = 8;
_internal_control_input_size()1624 inline int CostGraphDef_Node::_internal_control_input_size() const {
1625   return _impl_.control_input_.size();
1626 }
control_input_size()1627 inline int CostGraphDef_Node::control_input_size() const {
1628   return _internal_control_input_size();
1629 }
clear_control_input()1630 inline void CostGraphDef_Node::clear_control_input() {
1631   _impl_.control_input_.Clear();
1632 }
_internal_control_input(int index)1633 inline ::int32_t CostGraphDef_Node::_internal_control_input(int index) const {
1634   return _impl_.control_input_.Get(index);
1635 }
control_input(int index)1636 inline ::int32_t CostGraphDef_Node::control_input(int index) const {
1637   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.control_input)
1638   return _internal_control_input(index);
1639 }
set_control_input(int index,::int32_t value)1640 inline void CostGraphDef_Node::set_control_input(int index, ::int32_t value) {
1641   _impl_.control_input_.Set(index, value);
1642   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.control_input)
1643 }
_internal_add_control_input(::int32_t value)1644 inline void CostGraphDef_Node::_internal_add_control_input(::int32_t value) {
1645   _impl_.control_input_.Add(value);
1646 }
add_control_input(::int32_t value)1647 inline void CostGraphDef_Node::add_control_input(::int32_t value) {
1648   _internal_add_control_input(value);
1649   // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.Node.control_input)
1650 }
1651 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
_internal_control_input()1652 CostGraphDef_Node::_internal_control_input() const {
1653   return _impl_.control_input_;
1654 }
1655 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >&
control_input()1656 CostGraphDef_Node::control_input() const {
1657   // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.Node.control_input)
1658   return _internal_control_input();
1659 }
1660 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
_internal_mutable_control_input()1661 CostGraphDef_Node::_internal_mutable_control_input() {
1662   return &_impl_.control_input_;
1663 }
1664 inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::int32_t >*
mutable_control_input()1665 CostGraphDef_Node::mutable_control_input() {
1666   // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.Node.control_input)
1667   return _internal_mutable_control_input();
1668 }
1669 
1670 // bool inaccurate = 17;
clear_inaccurate()1671 inline void CostGraphDef_Node::clear_inaccurate() {
1672   _impl_.inaccurate_ = false;
1673 }
_internal_inaccurate()1674 inline bool CostGraphDef_Node::_internal_inaccurate() const {
1675   return _impl_.inaccurate_;
1676 }
inaccurate()1677 inline bool CostGraphDef_Node::inaccurate() const {
1678   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.Node.inaccurate)
1679   return _internal_inaccurate();
1680 }
_internal_set_inaccurate(bool value)1681 inline void CostGraphDef_Node::_internal_set_inaccurate(bool value) {
1682 
1683   _impl_.inaccurate_ = value;
1684 }
set_inaccurate(bool value)1685 inline void CostGraphDef_Node::set_inaccurate(bool value) {
1686   _internal_set_inaccurate(value);
1687   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.Node.inaccurate)
1688 }
1689 
1690 // -------------------------------------------------------------------
1691 
1692 // CostGraphDef_AggregatedCost
1693 
1694 // float cost = 1;
clear_cost()1695 inline void CostGraphDef_AggregatedCost::clear_cost() {
1696   _impl_.cost_ = 0;
1697 }
_internal_cost()1698 inline float CostGraphDef_AggregatedCost::_internal_cost() const {
1699   return _impl_.cost_;
1700 }
cost()1701 inline float CostGraphDef_AggregatedCost::cost() const {
1702   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.AggregatedCost.cost)
1703   return _internal_cost();
1704 }
_internal_set_cost(float value)1705 inline void CostGraphDef_AggregatedCost::_internal_set_cost(float value) {
1706 
1707   _impl_.cost_ = value;
1708 }
set_cost(float value)1709 inline void CostGraphDef_AggregatedCost::set_cost(float value) {
1710   _internal_set_cost(value);
1711   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.AggregatedCost.cost)
1712 }
1713 
1714 // string dimension = 2;
clear_dimension()1715 inline void CostGraphDef_AggregatedCost::clear_dimension() {
1716   _impl_.dimension_.ClearToEmpty();
1717 }
dimension()1718 inline const std::string& CostGraphDef_AggregatedCost::dimension() const {
1719   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.AggregatedCost.dimension)
1720   return _internal_dimension();
1721 }
1722 template <typename ArgT0, typename... ArgT>
1723 inline PROTOBUF_ALWAYS_INLINE
set_dimension(ArgT0 && arg0,ArgT...args)1724 void CostGraphDef_AggregatedCost::set_dimension(ArgT0&& arg0, ArgT... args) {
1725 
1726  _impl_.dimension_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
1727   // @@protoc_insertion_point(field_set:tensorflow.CostGraphDef.AggregatedCost.dimension)
1728 }
mutable_dimension()1729 inline std::string* CostGraphDef_AggregatedCost::mutable_dimension() {
1730   std::string* _s = _internal_mutable_dimension();
1731   // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.AggregatedCost.dimension)
1732   return _s;
1733 }
_internal_dimension()1734 inline const std::string& CostGraphDef_AggregatedCost::_internal_dimension() const {
1735   return _impl_.dimension_.Get();
1736 }
_internal_set_dimension(const std::string & value)1737 inline void CostGraphDef_AggregatedCost::_internal_set_dimension(const std::string& value) {
1738 
1739   _impl_.dimension_.Set(value, GetArenaForAllocation());
1740 }
_internal_mutable_dimension()1741 inline std::string* CostGraphDef_AggregatedCost::_internal_mutable_dimension() {
1742 
1743   return _impl_.dimension_.Mutable(GetArenaForAllocation());
1744 }
release_dimension()1745 inline std::string* CostGraphDef_AggregatedCost::release_dimension() {
1746   // @@protoc_insertion_point(field_release:tensorflow.CostGraphDef.AggregatedCost.dimension)
1747   return _impl_.dimension_.Release();
1748 }
set_allocated_dimension(std::string * dimension)1749 inline void CostGraphDef_AggregatedCost::set_allocated_dimension(std::string* dimension) {
1750   _impl_.dimension_.SetAllocated(dimension, GetArenaForAllocation());
1751 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
1752   if (_impl_.dimension_.IsDefault()) {
1753     _impl_.dimension_.Set("", GetArenaForAllocation());
1754   }
1755 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
1756   // @@protoc_insertion_point(field_set_allocated:tensorflow.CostGraphDef.AggregatedCost.dimension)
1757 }
1758 
1759 // -------------------------------------------------------------------
1760 
1761 // CostGraphDef
1762 
1763 // repeated .tensorflow.CostGraphDef.Node node = 1;
_internal_node_size()1764 inline int CostGraphDef::_internal_node_size() const {
1765   return _impl_.node_.size();
1766 }
node_size()1767 inline int CostGraphDef::node_size() const {
1768   return _internal_node_size();
1769 }
clear_node()1770 inline void CostGraphDef::clear_node() {
1771   _impl_.node_.Clear();
1772 }
mutable_node(int index)1773 inline ::tensorflow::CostGraphDef_Node* CostGraphDef::mutable_node(int index) {
1774   // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.node)
1775   return _impl_.node_.Mutable(index);
1776 }
1777 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node >*
mutable_node()1778 CostGraphDef::mutable_node() {
1779   // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.node)
1780   return &_impl_.node_;
1781 }
_internal_node(int index)1782 inline const ::tensorflow::CostGraphDef_Node& CostGraphDef::_internal_node(int index) const {
1783   return _impl_.node_.Get(index);
1784 }
node(int index)1785 inline const ::tensorflow::CostGraphDef_Node& CostGraphDef::node(int index) const {
1786   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.node)
1787   return _internal_node(index);
1788 }
_internal_add_node()1789 inline ::tensorflow::CostGraphDef_Node* CostGraphDef::_internal_add_node() {
1790   return _impl_.node_.Add();
1791 }
add_node()1792 inline ::tensorflow::CostGraphDef_Node* CostGraphDef::add_node() {
1793   ::tensorflow::CostGraphDef_Node* _add = _internal_add_node();
1794   // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.node)
1795   return _add;
1796 }
1797 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_Node >&
node()1798 CostGraphDef::node() const {
1799   // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.node)
1800   return _impl_.node_;
1801 }
1802 
1803 // repeated .tensorflow.CostGraphDef.AggregatedCost cost = 2;
_internal_cost_size()1804 inline int CostGraphDef::_internal_cost_size() const {
1805   return _impl_.cost_.size();
1806 }
cost_size()1807 inline int CostGraphDef::cost_size() const {
1808   return _internal_cost_size();
1809 }
clear_cost()1810 inline void CostGraphDef::clear_cost() {
1811   _impl_.cost_.Clear();
1812 }
mutable_cost(int index)1813 inline ::tensorflow::CostGraphDef_AggregatedCost* CostGraphDef::mutable_cost(int index) {
1814   // @@protoc_insertion_point(field_mutable:tensorflow.CostGraphDef.cost)
1815   return _impl_.cost_.Mutable(index);
1816 }
1817 inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_AggregatedCost >*
mutable_cost()1818 CostGraphDef::mutable_cost() {
1819   // @@protoc_insertion_point(field_mutable_list:tensorflow.CostGraphDef.cost)
1820   return &_impl_.cost_;
1821 }
_internal_cost(int index)1822 inline const ::tensorflow::CostGraphDef_AggregatedCost& CostGraphDef::_internal_cost(int index) const {
1823   return _impl_.cost_.Get(index);
1824 }
cost(int index)1825 inline const ::tensorflow::CostGraphDef_AggregatedCost& CostGraphDef::cost(int index) const {
1826   // @@protoc_insertion_point(field_get:tensorflow.CostGraphDef.cost)
1827   return _internal_cost(index);
1828 }
_internal_add_cost()1829 inline ::tensorflow::CostGraphDef_AggregatedCost* CostGraphDef::_internal_add_cost() {
1830   return _impl_.cost_.Add();
1831 }
add_cost()1832 inline ::tensorflow::CostGraphDef_AggregatedCost* CostGraphDef::add_cost() {
1833   ::tensorflow::CostGraphDef_AggregatedCost* _add = _internal_add_cost();
1834   // @@protoc_insertion_point(field_add:tensorflow.CostGraphDef.cost)
1835   return _add;
1836 }
1837 inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CostGraphDef_AggregatedCost >&
cost()1838 CostGraphDef::cost() const {
1839   // @@protoc_insertion_point(field_list:tensorflow.CostGraphDef.cost)
1840   return _impl_.cost_;
1841 }
1842 
1843 #ifdef __GNUC__
1844   #pragma GCC diagnostic pop
1845 #endif  // __GNUC__
1846 // -------------------------------------------------------------------
1847 
1848 // -------------------------------------------------------------------
1849 
1850 // -------------------------------------------------------------------
1851 
1852 // -------------------------------------------------------------------
1853 
1854 
1855 // @@protoc_insertion_point(namespace_scope)
1856 
1857 }  // namespace tensorflow
1858 
1859 // @@protoc_insertion_point(global_scope)
1860 
1861 #include <google/protobuf/port_undef.inc>
1862 #endif  // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fcost_5fgraph_2eproto
1863