1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/framework/function.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffunction_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffunction_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/map.h> // IWYU pragma: export
35#include <google/protobuf/map_entry.h>
36#include <google/protobuf/map_field_inl.h>
37#include <google/protobuf/unknown_field_set.h>
38#include "tensorflow/core/framework/attr_value.pb.h"
39#include "tensorflow/core/framework/node_def.pb.h"
40#include "tensorflow/core/framework/op_def.pb.h"
41// @@protoc_insertion_point(includes)
42#include <google/protobuf/port_def.inc>
43#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ffunction_2eproto
44PROTOBUF_NAMESPACE_OPEN
45namespace internal {
46class AnyMetadata;
47} // namespace internal
48PROTOBUF_NAMESPACE_CLOSE
49
50// Internal implementation detail -- do not use these members.
51struct TableStruct_tensorflow_2fcore_2fframework_2ffunction_2eproto {
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
53 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
55 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
56 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[11]
57 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
58 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
59 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
60 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
61};
62extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto;
63namespace tensorflow {
64class FunctionDef;
65class FunctionDefDefaultTypeInternal;
66extern FunctionDefDefaultTypeInternal _FunctionDef_default_instance_;
67class FunctionDefLibrary;
68class FunctionDefLibraryDefaultTypeInternal;
69extern FunctionDefLibraryDefaultTypeInternal _FunctionDefLibrary_default_instance_;
70class FunctionDef_ArgAttrEntry_DoNotUse;
71class FunctionDef_ArgAttrEntry_DoNotUseDefaultTypeInternal;
72extern FunctionDef_ArgAttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_ArgAttrEntry_DoNotUse_default_instance_;
73class FunctionDef_ArgAttrs;
74class FunctionDef_ArgAttrsDefaultTypeInternal;
75extern FunctionDef_ArgAttrsDefaultTypeInternal _FunctionDef_ArgAttrs_default_instance_;
76class FunctionDef_ArgAttrs_AttrEntry_DoNotUse;
77class FunctionDef_ArgAttrs_AttrEntry_DoNotUseDefaultTypeInternal;
78extern FunctionDef_ArgAttrs_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_ArgAttrs_AttrEntry_DoNotUse_default_instance_;
79class FunctionDef_AttrEntry_DoNotUse;
80class FunctionDef_AttrEntry_DoNotUseDefaultTypeInternal;
81extern FunctionDef_AttrEntry_DoNotUseDefaultTypeInternal _FunctionDef_AttrEntry_DoNotUse_default_instance_;
82class FunctionDef_ControlRetEntry_DoNotUse;
83class FunctionDef_ControlRetEntry_DoNotUseDefaultTypeInternal;
84extern FunctionDef_ControlRetEntry_DoNotUseDefaultTypeInternal _FunctionDef_ControlRetEntry_DoNotUse_default_instance_;
85class FunctionDef_ResourceArgUniqueIdEntry_DoNotUse;
86class FunctionDef_ResourceArgUniqueIdEntry_DoNotUseDefaultTypeInternal;
87extern FunctionDef_ResourceArgUniqueIdEntry_DoNotUseDefaultTypeInternal _FunctionDef_ResourceArgUniqueIdEntry_DoNotUse_default_instance_;
88class FunctionDef_RetEntry_DoNotUse;
89class FunctionDef_RetEntry_DoNotUseDefaultTypeInternal;
90extern FunctionDef_RetEntry_DoNotUseDefaultTypeInternal _FunctionDef_RetEntry_DoNotUse_default_instance_;
91class GradientDef;
92class GradientDefDefaultTypeInternal;
93extern GradientDefDefaultTypeInternal _GradientDef_default_instance_;
94class RegisteredGradient;
95class RegisteredGradientDefaultTypeInternal;
96extern RegisteredGradientDefaultTypeInternal _RegisteredGradient_default_instance_;
97} // namespace tensorflow
98PROTOBUF_NAMESPACE_OPEN
99template<> ::tensorflow::FunctionDef* Arena::CreateMaybeMessage<::tensorflow::FunctionDef>(Arena*);
100template<> ::tensorflow::FunctionDefLibrary* Arena::CreateMaybeMessage<::tensorflow::FunctionDefLibrary>(Arena*);
101template<> ::tensorflow::FunctionDef_ArgAttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_ArgAttrEntry_DoNotUse>(Arena*);
102template<> ::tensorflow::FunctionDef_ArgAttrs* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_ArgAttrs>(Arena*);
103template<> ::tensorflow::FunctionDef_ArgAttrs_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_ArgAttrs_AttrEntry_DoNotUse>(Arena*);
104template<> ::tensorflow::FunctionDef_AttrEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_AttrEntry_DoNotUse>(Arena*);
105template<> ::tensorflow::FunctionDef_ControlRetEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_ControlRetEntry_DoNotUse>(Arena*);
106template<> ::tensorflow::FunctionDef_ResourceArgUniqueIdEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_ResourceArgUniqueIdEntry_DoNotUse>(Arena*);
107template<> ::tensorflow::FunctionDef_RetEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::FunctionDef_RetEntry_DoNotUse>(Arena*);
108template<> ::tensorflow::GradientDef* Arena::CreateMaybeMessage<::tensorflow::GradientDef>(Arena*);
109template<> ::tensorflow::RegisteredGradient* Arena::CreateMaybeMessage<::tensorflow::RegisteredGradient>(Arena*);
110PROTOBUF_NAMESPACE_CLOSE
111namespace tensorflow {
112
113// ===================================================================
114
115class FunctionDefLibrary :
116 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDefLibrary) */ {
117 public:
118 FunctionDefLibrary();
119 virtual ~FunctionDefLibrary();
120
121 FunctionDefLibrary(const FunctionDefLibrary& from);
122 FunctionDefLibrary(FunctionDefLibrary&& from) noexcept
123 : FunctionDefLibrary() {
124 *this = ::std::move(from);
125 }
126
127 inline FunctionDefLibrary& operator=(const FunctionDefLibrary& from) {
128 CopyFrom(from);
129 return *this;
130 }
131 inline FunctionDefLibrary& operator=(FunctionDefLibrary&& from) noexcept {
132 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
133 if (this != &from) InternalSwap(&from);
134 } else {
135 CopyFrom(from);
136 }
137 return *this;
138 }
139
140 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
141 return GetArenaNoVirtual();
142 }
143 inline void* GetMaybeArenaPointer() const final {
144 return MaybeArenaPtr();
145 }
146 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
147 return GetDescriptor();
148 }
149 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
150 return GetMetadataStatic().descriptor;
151 }
152 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
153 return GetMetadataStatic().reflection;
154 }
155 static const FunctionDefLibrary& default_instance();
156
157 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
158 static inline const FunctionDefLibrary* internal_default_instance() {
159 return reinterpret_cast<const FunctionDefLibrary*>(
160 &_FunctionDefLibrary_default_instance_);
161 }
162 static constexpr int kIndexInFileMessages =
163 0;
164
165 friend void swap(FunctionDefLibrary& a, FunctionDefLibrary& b) {
166 a.Swap(&b);
167 }
168 inline void Swap(FunctionDefLibrary* other) {
169 if (other == this) return;
170 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
171 InternalSwap(other);
172 } else {
173 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
174 }
175 }
176 void UnsafeArenaSwap(FunctionDefLibrary* other) {
177 if (other == this) return;
178 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
179 InternalSwap(other);
180 }
181
182 // implements Message ----------------------------------------------
183
184 inline FunctionDefLibrary* New() const final {
185 return CreateMaybeMessage<FunctionDefLibrary>(nullptr);
186 }
187
188 FunctionDefLibrary* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
189 return CreateMaybeMessage<FunctionDefLibrary>(arena);
190 }
191 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
192 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
193 void CopyFrom(const FunctionDefLibrary& from);
194 void MergeFrom(const FunctionDefLibrary& from);
195 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
196 bool IsInitialized() const final;
197
198 size_t ByteSizeLong() const final;
199 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
200 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
201 #else
202 bool MergePartialFromCodedStream(
203 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
204 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
205 void SerializeWithCachedSizes(
206 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
207 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
208 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
209 int GetCachedSize() const final { return _cached_size_.Get(); }
210
211 private:
212 inline void SharedCtor();
213 inline void SharedDtor();
214 void SetCachedSize(int size) const final;
215 void InternalSwap(FunctionDefLibrary* other);
216 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
217 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
218 return "tensorflow.FunctionDefLibrary";
219 }
220 protected:
221 explicit FunctionDefLibrary(::PROTOBUF_NAMESPACE_ID::Arena* arena);
222 private:
223 static void ArenaDtor(void* object);
224 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
225 private:
226 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
227 return _internal_metadata_.arena();
228 }
229 inline void* MaybeArenaPtr() const {
230 return _internal_metadata_.raw_arena_ptr();
231 }
232 public:
233
234 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
235 private:
236 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
237 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
238 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[kIndexInFileMessages];
239 }
240
241 public:
242
243 // nested types ----------------------------------------------------
244
245 // accessors -------------------------------------------------------
246
247 enum : int {
248 kFunctionFieldNumber = 1,
249 kGradientFieldNumber = 2,
250 kRegisteredGradientsFieldNumber = 3,
251 };
252 // repeated .tensorflow.FunctionDef function = 1;
253 int function_size() const;
254 void clear_function();
255 ::tensorflow::FunctionDef* mutable_function(int index);
256 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FunctionDef >*
257 mutable_function();
258 const ::tensorflow::FunctionDef& function(int index) const;
259 ::tensorflow::FunctionDef* add_function();
260 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FunctionDef >&
261 function() const;
262
263 // repeated .tensorflow.GradientDef gradient = 2;
264 int gradient_size() const;
265 void clear_gradient();
266 ::tensorflow::GradientDef* mutable_gradient(int index);
267 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GradientDef >*
268 mutable_gradient();
269 const ::tensorflow::GradientDef& gradient(int index) const;
270 ::tensorflow::GradientDef* add_gradient();
271 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GradientDef >&
272 gradient() const;
273
274 // repeated .tensorflow.RegisteredGradient registered_gradients = 3;
275 int registered_gradients_size() const;
276 void clear_registered_gradients();
277 ::tensorflow::RegisteredGradient* mutable_registered_gradients(int index);
278 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::RegisteredGradient >*
279 mutable_registered_gradients();
280 const ::tensorflow::RegisteredGradient& registered_gradients(int index) const;
281 ::tensorflow::RegisteredGradient* add_registered_gradients();
282 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::RegisteredGradient >&
283 registered_gradients() const;
284
285 // @@protoc_insertion_point(class_scope:tensorflow.FunctionDefLibrary)
286 private:
287 class _Internal;
288
289 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
290 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
291 typedef void InternalArenaConstructable_;
292 typedef void DestructorSkippable_;
293 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FunctionDef > function_;
294 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GradientDef > gradient_;
295 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::RegisteredGradient > registered_gradients_;
296 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
297 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ffunction_2eproto;
298};
299// -------------------------------------------------------------------
300
301class FunctionDef_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_AttrEntry_DoNotUse,
302 std::string, ::tensorflow::AttrValue,
303 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
304 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
305 0 > {
306public:
307 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_AttrEntry_DoNotUse,
308 std::string, ::tensorflow::AttrValue,
309 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
310 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
311 0 > SuperType;
312 FunctionDef_AttrEntry_DoNotUse();
313 FunctionDef_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
314 void MergeFrom(const FunctionDef_AttrEntry_DoNotUse& other);
315 static const FunctionDef_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FunctionDef_AttrEntry_DoNotUse*>(&_FunctionDef_AttrEntry_DoNotUse_default_instance_); }
316 static bool ValidateKey(std::string* s) {
317 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.AttrEntry.key");
318 }
319 static bool ValidateValue(void*) { return true; }
320 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
321 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
322 private:
323 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
324 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
325 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[1];
326 }
327
328 public:
329};
330
331// -------------------------------------------------------------------
332
333class FunctionDef_ArgAttrs_AttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_ArgAttrs_AttrEntry_DoNotUse,
334 std::string, ::tensorflow::AttrValue,
335 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
336 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
337 0 > {
338public:
339 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_ArgAttrs_AttrEntry_DoNotUse,
340 std::string, ::tensorflow::AttrValue,
341 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
342 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
343 0 > SuperType;
344 FunctionDef_ArgAttrs_AttrEntry_DoNotUse();
345 FunctionDef_ArgAttrs_AttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
346 void MergeFrom(const FunctionDef_ArgAttrs_AttrEntry_DoNotUse& other);
347 static const FunctionDef_ArgAttrs_AttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FunctionDef_ArgAttrs_AttrEntry_DoNotUse*>(&_FunctionDef_ArgAttrs_AttrEntry_DoNotUse_default_instance_); }
348 static bool ValidateKey(std::string* s) {
349 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.ArgAttrs.AttrEntry.key");
350 }
351 static bool ValidateValue(void*) { return true; }
352 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
353 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
354 private:
355 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
356 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
357 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[2];
358 }
359
360 public:
361};
362
363// -------------------------------------------------------------------
364
365class FunctionDef_ArgAttrs :
366 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDef.ArgAttrs) */ {
367 public:
368 FunctionDef_ArgAttrs();
369 virtual ~FunctionDef_ArgAttrs();
370
371 FunctionDef_ArgAttrs(const FunctionDef_ArgAttrs& from);
372 FunctionDef_ArgAttrs(FunctionDef_ArgAttrs&& from) noexcept
373 : FunctionDef_ArgAttrs() {
374 *this = ::std::move(from);
375 }
376
377 inline FunctionDef_ArgAttrs& operator=(const FunctionDef_ArgAttrs& from) {
378 CopyFrom(from);
379 return *this;
380 }
381 inline FunctionDef_ArgAttrs& operator=(FunctionDef_ArgAttrs&& from) noexcept {
382 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
383 if (this != &from) InternalSwap(&from);
384 } else {
385 CopyFrom(from);
386 }
387 return *this;
388 }
389
390 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
391 return GetArenaNoVirtual();
392 }
393 inline void* GetMaybeArenaPointer() const final {
394 return MaybeArenaPtr();
395 }
396 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
397 return GetDescriptor();
398 }
399 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
400 return GetMetadataStatic().descriptor;
401 }
402 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
403 return GetMetadataStatic().reflection;
404 }
405 static const FunctionDef_ArgAttrs& default_instance();
406
407 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
408 static inline const FunctionDef_ArgAttrs* internal_default_instance() {
409 return reinterpret_cast<const FunctionDef_ArgAttrs*>(
410 &_FunctionDef_ArgAttrs_default_instance_);
411 }
412 static constexpr int kIndexInFileMessages =
413 3;
414
415 friend void swap(FunctionDef_ArgAttrs& a, FunctionDef_ArgAttrs& b) {
416 a.Swap(&b);
417 }
418 inline void Swap(FunctionDef_ArgAttrs* other) {
419 if (other == this) return;
420 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
421 InternalSwap(other);
422 } else {
423 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
424 }
425 }
426 void UnsafeArenaSwap(FunctionDef_ArgAttrs* other) {
427 if (other == this) return;
428 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
429 InternalSwap(other);
430 }
431
432 // implements Message ----------------------------------------------
433
434 inline FunctionDef_ArgAttrs* New() const final {
435 return CreateMaybeMessage<FunctionDef_ArgAttrs>(nullptr);
436 }
437
438 FunctionDef_ArgAttrs* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
439 return CreateMaybeMessage<FunctionDef_ArgAttrs>(arena);
440 }
441 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
442 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
443 void CopyFrom(const FunctionDef_ArgAttrs& from);
444 void MergeFrom(const FunctionDef_ArgAttrs& from);
445 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
446 bool IsInitialized() const final;
447
448 size_t ByteSizeLong() const final;
449 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
450 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
451 #else
452 bool MergePartialFromCodedStream(
453 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
454 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
455 void SerializeWithCachedSizes(
456 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
457 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
458 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
459 int GetCachedSize() const final { return _cached_size_.Get(); }
460
461 private:
462 inline void SharedCtor();
463 inline void SharedDtor();
464 void SetCachedSize(int size) const final;
465 void InternalSwap(FunctionDef_ArgAttrs* other);
466 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
467 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
468 return "tensorflow.FunctionDef.ArgAttrs";
469 }
470 protected:
471 explicit FunctionDef_ArgAttrs(::PROTOBUF_NAMESPACE_ID::Arena* arena);
472 private:
473 static void ArenaDtor(void* object);
474 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
475 private:
476 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
477 return _internal_metadata_.arena();
478 }
479 inline void* MaybeArenaPtr() const {
480 return _internal_metadata_.raw_arena_ptr();
481 }
482 public:
483
484 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
485 private:
486 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
487 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
488 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[kIndexInFileMessages];
489 }
490
491 public:
492
493 // nested types ----------------------------------------------------
494
495
496 // accessors -------------------------------------------------------
497
498 enum : int {
499 kAttrFieldNumber = 1,
500 };
501 // map<string, .tensorflow.AttrValue> attr = 1;
502 int attr_size() const;
503 void clear_attr();
504 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
505 attr() const;
506 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
507 mutable_attr();
508
509 // @@protoc_insertion_point(class_scope:tensorflow.FunctionDef.ArgAttrs)
510 private:
511 class _Internal;
512
513 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
514 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
515 typedef void InternalArenaConstructable_;
516 typedef void DestructorSkippable_;
517 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
518 FunctionDef_ArgAttrs_AttrEntry_DoNotUse,
519 std::string, ::tensorflow::AttrValue,
520 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
521 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
522 0 > attr_;
523 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
524 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ffunction_2eproto;
525};
526// -------------------------------------------------------------------
527
528class FunctionDef_ArgAttrEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_ArgAttrEntry_DoNotUse,
529 ::PROTOBUF_NAMESPACE_ID::uint32, ::tensorflow::FunctionDef_ArgAttrs,
530 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
531 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
532 0 > {
533public:
534 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_ArgAttrEntry_DoNotUse,
535 ::PROTOBUF_NAMESPACE_ID::uint32, ::tensorflow::FunctionDef_ArgAttrs,
536 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
537 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
538 0 > SuperType;
539 FunctionDef_ArgAttrEntry_DoNotUse();
540 FunctionDef_ArgAttrEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
541 void MergeFrom(const FunctionDef_ArgAttrEntry_DoNotUse& other);
542 static const FunctionDef_ArgAttrEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FunctionDef_ArgAttrEntry_DoNotUse*>(&_FunctionDef_ArgAttrEntry_DoNotUse_default_instance_); }
543 static bool ValidateKey(void*) { return true; }
544 static bool ValidateValue(void*) { return true; }
545 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
546 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
547 private:
548 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
549 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
550 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[4];
551 }
552
553 public:
554};
555
556// -------------------------------------------------------------------
557
558class FunctionDef_ResourceArgUniqueIdEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_ResourceArgUniqueIdEntry_DoNotUse,
559 ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::uint32,
560 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
561 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
562 0 > {
563public:
564 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_ResourceArgUniqueIdEntry_DoNotUse,
565 ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::uint32,
566 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
567 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
568 0 > SuperType;
569 FunctionDef_ResourceArgUniqueIdEntry_DoNotUse();
570 FunctionDef_ResourceArgUniqueIdEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
571 void MergeFrom(const FunctionDef_ResourceArgUniqueIdEntry_DoNotUse& other);
572 static const FunctionDef_ResourceArgUniqueIdEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FunctionDef_ResourceArgUniqueIdEntry_DoNotUse*>(&_FunctionDef_ResourceArgUniqueIdEntry_DoNotUse_default_instance_); }
573 static bool ValidateKey(void*) { return true; }
574 static bool ValidateValue(void*) { return true; }
575 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
576 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
577 private:
578 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
579 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
580 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[5];
581 }
582
583 public:
584};
585
586// -------------------------------------------------------------------
587
588class FunctionDef_RetEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_RetEntry_DoNotUse,
589 std::string, std::string,
590 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
591 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
592 0 > {
593public:
594 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_RetEntry_DoNotUse,
595 std::string, std::string,
596 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
597 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
598 0 > SuperType;
599 FunctionDef_RetEntry_DoNotUse();
600 FunctionDef_RetEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
601 void MergeFrom(const FunctionDef_RetEntry_DoNotUse& other);
602 static const FunctionDef_RetEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FunctionDef_RetEntry_DoNotUse*>(&_FunctionDef_RetEntry_DoNotUse_default_instance_); }
603 static bool ValidateKey(std::string* s) {
604 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.RetEntry.key");
605 }
606 static bool ValidateValue(std::string* s) {
607 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.RetEntry.value");
608 }
609 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
610 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
611 private:
612 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
613 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
614 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[6];
615 }
616
617 public:
618};
619
620// -------------------------------------------------------------------
621
622class FunctionDef_ControlRetEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_ControlRetEntry_DoNotUse,
623 std::string, std::string,
624 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
625 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
626 0 > {
627public:
628 typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<FunctionDef_ControlRetEntry_DoNotUse,
629 std::string, std::string,
630 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
631 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
632 0 > SuperType;
633 FunctionDef_ControlRetEntry_DoNotUse();
634 FunctionDef_ControlRetEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena);
635 void MergeFrom(const FunctionDef_ControlRetEntry_DoNotUse& other);
636 static const FunctionDef_ControlRetEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const FunctionDef_ControlRetEntry_DoNotUse*>(&_FunctionDef_ControlRetEntry_DoNotUse_default_instance_); }
637 static bool ValidateKey(std::string* s) {
638 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.ControlRetEntry.key");
639 }
640 static bool ValidateValue(std::string* s) {
641 return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.FunctionDef.ControlRetEntry.value");
642 }
643 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final;
644 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
645 private:
646 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
647 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
648 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[7];
649 }
650
651 public:
652};
653
654// -------------------------------------------------------------------
655
656class FunctionDef :
657 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionDef) */ {
658 public:
659 FunctionDef();
660 virtual ~FunctionDef();
661
662 FunctionDef(const FunctionDef& from);
663 FunctionDef(FunctionDef&& from) noexcept
664 : FunctionDef() {
665 *this = ::std::move(from);
666 }
667
668 inline FunctionDef& operator=(const FunctionDef& from) {
669 CopyFrom(from);
670 return *this;
671 }
672 inline FunctionDef& operator=(FunctionDef&& from) noexcept {
673 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
674 if (this != &from) InternalSwap(&from);
675 } else {
676 CopyFrom(from);
677 }
678 return *this;
679 }
680
681 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
682 return GetArenaNoVirtual();
683 }
684 inline void* GetMaybeArenaPointer() const final {
685 return MaybeArenaPtr();
686 }
687 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
688 return GetDescriptor();
689 }
690 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
691 return GetMetadataStatic().descriptor;
692 }
693 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
694 return GetMetadataStatic().reflection;
695 }
696 static const FunctionDef& default_instance();
697
698 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
699 static inline const FunctionDef* internal_default_instance() {
700 return reinterpret_cast<const FunctionDef*>(
701 &_FunctionDef_default_instance_);
702 }
703 static constexpr int kIndexInFileMessages =
704 8;
705
706 friend void swap(FunctionDef& a, FunctionDef& b) {
707 a.Swap(&b);
708 }
709 inline void Swap(FunctionDef* other) {
710 if (other == this) return;
711 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
712 InternalSwap(other);
713 } else {
714 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
715 }
716 }
717 void UnsafeArenaSwap(FunctionDef* other) {
718 if (other == this) return;
719 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
720 InternalSwap(other);
721 }
722
723 // implements Message ----------------------------------------------
724
725 inline FunctionDef* New() const final {
726 return CreateMaybeMessage<FunctionDef>(nullptr);
727 }
728
729 FunctionDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
730 return CreateMaybeMessage<FunctionDef>(arena);
731 }
732 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
733 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
734 void CopyFrom(const FunctionDef& from);
735 void MergeFrom(const FunctionDef& from);
736 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
737 bool IsInitialized() const final;
738
739 size_t ByteSizeLong() const final;
740 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
741 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
742 #else
743 bool MergePartialFromCodedStream(
744 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
745 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
746 void SerializeWithCachedSizes(
747 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
748 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
749 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
750 int GetCachedSize() const final { return _cached_size_.Get(); }
751
752 private:
753 inline void SharedCtor();
754 inline void SharedDtor();
755 void SetCachedSize(int size) const final;
756 void InternalSwap(FunctionDef* other);
757 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
758 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
759 return "tensorflow.FunctionDef";
760 }
761 protected:
762 explicit FunctionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena);
763 private:
764 static void ArenaDtor(void* object);
765 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
766 private:
767 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
768 return _internal_metadata_.arena();
769 }
770 inline void* MaybeArenaPtr() const {
771 return _internal_metadata_.raw_arena_ptr();
772 }
773 public:
774
775 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
776 private:
777 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
778 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
779 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[kIndexInFileMessages];
780 }
781
782 public:
783
784 // nested types ----------------------------------------------------
785
786 typedef FunctionDef_ArgAttrs ArgAttrs;
787
788 // accessors -------------------------------------------------------
789
790 enum : int {
791 kNodeDefFieldNumber = 3,
792 kRetFieldNumber = 4,
793 kAttrFieldNumber = 5,
794 kControlRetFieldNumber = 6,
795 kArgAttrFieldNumber = 7,
796 kResourceArgUniqueIdFieldNumber = 8,
797 kSignatureFieldNumber = 1,
798 };
799 // repeated .tensorflow.NodeDef node_def = 3;
800 int node_def_size() const;
801 void clear_node_def();
802 ::tensorflow::NodeDef* mutable_node_def(int index);
803 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >*
804 mutable_node_def();
805 const ::tensorflow::NodeDef& node_def(int index) const;
806 ::tensorflow::NodeDef* add_node_def();
807 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >&
808 node_def() const;
809
810 // map<string, string> ret = 4;
811 int ret_size() const;
812 void clear_ret();
813 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
814 ret() const;
815 ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
816 mutable_ret();
817
818 // map<string, .tensorflow.AttrValue> attr = 5;
819 int attr_size() const;
820 void clear_attr();
821 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
822 attr() const;
823 ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
824 mutable_attr();
825
826 // map<string, string> control_ret = 6;
827 int control_ret_size() const;
828 void clear_control_ret();
829 const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
830 control_ret() const;
831 ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
832 mutable_control_ret();
833
834 // map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
835 int arg_attr_size() const;
836 void clear_arg_attr();
837 const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::uint32, ::tensorflow::FunctionDef_ArgAttrs >&
838 arg_attr() const;
839 ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::uint32, ::tensorflow::FunctionDef_ArgAttrs >*
840 mutable_arg_attr();
841
842 // map<uint32, uint32> resource_arg_unique_id = 8;
843 int resource_arg_unique_id_size() const;
844 void clear_resource_arg_unique_id();
845 const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::uint32 >&
846 resource_arg_unique_id() const;
847 ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::uint32 >*
848 mutable_resource_arg_unique_id();
849
850 // .tensorflow.OpDef signature = 1;
851 bool has_signature() const;
852 void clear_signature();
853 const ::tensorflow::OpDef& signature() const;
854 ::tensorflow::OpDef* release_signature();
855 ::tensorflow::OpDef* mutable_signature();
856 void set_allocated_signature(::tensorflow::OpDef* signature);
857 void unsafe_arena_set_allocated_signature(
858 ::tensorflow::OpDef* signature);
859 ::tensorflow::OpDef* unsafe_arena_release_signature();
860
861 // @@protoc_insertion_point(class_scope:tensorflow.FunctionDef)
862 private:
863 class _Internal;
864
865 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
866 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
867 typedef void InternalArenaConstructable_;
868 typedef void DestructorSkippable_;
869 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef > node_def_;
870 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
871 FunctionDef_RetEntry_DoNotUse,
872 std::string, std::string,
873 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
874 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
875 0 > ret_;
876 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
877 FunctionDef_AttrEntry_DoNotUse,
878 std::string, ::tensorflow::AttrValue,
879 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
880 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
881 0 > attr_;
882 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
883 FunctionDef_ControlRetEntry_DoNotUse,
884 std::string, std::string,
885 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
886 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING,
887 0 > control_ret_;
888 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
889 FunctionDef_ArgAttrEntry_DoNotUse,
890 ::PROTOBUF_NAMESPACE_ID::uint32, ::tensorflow::FunctionDef_ArgAttrs,
891 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
892 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE,
893 0 > arg_attr_;
894 ::PROTOBUF_NAMESPACE_ID::internal::MapField<
895 FunctionDef_ResourceArgUniqueIdEntry_DoNotUse,
896 ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::uint32,
897 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
898 ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_UINT32,
899 0 > resource_arg_unique_id_;
900 ::tensorflow::OpDef* signature_;
901 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
902 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ffunction_2eproto;
903};
904// -------------------------------------------------------------------
905
906class GradientDef :
907 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.GradientDef) */ {
908 public:
909 GradientDef();
910 virtual ~GradientDef();
911
912 GradientDef(const GradientDef& from);
913 GradientDef(GradientDef&& from) noexcept
914 : GradientDef() {
915 *this = ::std::move(from);
916 }
917
918 inline GradientDef& operator=(const GradientDef& from) {
919 CopyFrom(from);
920 return *this;
921 }
922 inline GradientDef& operator=(GradientDef&& from) noexcept {
923 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
924 if (this != &from) InternalSwap(&from);
925 } else {
926 CopyFrom(from);
927 }
928 return *this;
929 }
930
931 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
932 return GetArenaNoVirtual();
933 }
934 inline void* GetMaybeArenaPointer() const final {
935 return MaybeArenaPtr();
936 }
937 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
938 return GetDescriptor();
939 }
940 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
941 return GetMetadataStatic().descriptor;
942 }
943 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
944 return GetMetadataStatic().reflection;
945 }
946 static const GradientDef& default_instance();
947
948 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
949 static inline const GradientDef* internal_default_instance() {
950 return reinterpret_cast<const GradientDef*>(
951 &_GradientDef_default_instance_);
952 }
953 static constexpr int kIndexInFileMessages =
954 9;
955
956 friend void swap(GradientDef& a, GradientDef& b) {
957 a.Swap(&b);
958 }
959 inline void Swap(GradientDef* other) {
960 if (other == this) return;
961 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
962 InternalSwap(other);
963 } else {
964 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
965 }
966 }
967 void UnsafeArenaSwap(GradientDef* other) {
968 if (other == this) return;
969 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
970 InternalSwap(other);
971 }
972
973 // implements Message ----------------------------------------------
974
975 inline GradientDef* New() const final {
976 return CreateMaybeMessage<GradientDef>(nullptr);
977 }
978
979 GradientDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
980 return CreateMaybeMessage<GradientDef>(arena);
981 }
982 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
983 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
984 void CopyFrom(const GradientDef& from);
985 void MergeFrom(const GradientDef& from);
986 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
987 bool IsInitialized() const final;
988
989 size_t ByteSizeLong() const final;
990 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
991 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
992 #else
993 bool MergePartialFromCodedStream(
994 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
995 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
996 void SerializeWithCachedSizes(
997 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
998 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
999 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
1000 int GetCachedSize() const final { return _cached_size_.Get(); }
1001
1002 private:
1003 inline void SharedCtor();
1004 inline void SharedDtor();
1005 void SetCachedSize(int size) const final;
1006 void InternalSwap(GradientDef* other);
1007 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1008 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1009 return "tensorflow.GradientDef";
1010 }
1011 protected:
1012 explicit GradientDef(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1013 private:
1014 static void ArenaDtor(void* object);
1015 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1016 private:
1017 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
1018 return _internal_metadata_.arena();
1019 }
1020 inline void* MaybeArenaPtr() const {
1021 return _internal_metadata_.raw_arena_ptr();
1022 }
1023 public:
1024
1025 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1026 private:
1027 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1028 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
1029 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[kIndexInFileMessages];
1030 }
1031
1032 public:
1033
1034 // nested types ----------------------------------------------------
1035
1036 // accessors -------------------------------------------------------
1037
1038 enum : int {
1039 kFunctionNameFieldNumber = 1,
1040 kGradientFuncFieldNumber = 2,
1041 };
1042 // string function_name = 1;
1043 void clear_function_name();
1044 const std::string& function_name() const;
1045 void set_function_name(const std::string& value);
1046 void set_function_name(std::string&& value);
1047 void set_function_name(const char* value);
1048 void set_function_name(const char* value, size_t size);
1049 std::string* mutable_function_name();
1050 std::string* release_function_name();
1051 void set_allocated_function_name(std::string* function_name);
1052 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
1053 " string fields are deprecated and will be removed in a"
1054 " future release.")
1055 std::string* unsafe_arena_release_function_name();
1056 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
1057 " string fields are deprecated and will be removed in a"
1058 " future release.")
1059 void unsafe_arena_set_allocated_function_name(
1060 std::string* function_name);
1061
1062 // string gradient_func = 2;
1063 void clear_gradient_func();
1064 const std::string& gradient_func() const;
1065 void set_gradient_func(const std::string& value);
1066 void set_gradient_func(std::string&& value);
1067 void set_gradient_func(const char* value);
1068 void set_gradient_func(const char* value, size_t size);
1069 std::string* mutable_gradient_func();
1070 std::string* release_gradient_func();
1071 void set_allocated_gradient_func(std::string* gradient_func);
1072 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
1073 " string fields are deprecated and will be removed in a"
1074 " future release.")
1075 std::string* unsafe_arena_release_gradient_func();
1076 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
1077 " string fields are deprecated and will be removed in a"
1078 " future release.")
1079 void unsafe_arena_set_allocated_gradient_func(
1080 std::string* gradient_func);
1081
1082 // @@protoc_insertion_point(class_scope:tensorflow.GradientDef)
1083 private:
1084 class _Internal;
1085
1086 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
1087 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1088 typedef void InternalArenaConstructable_;
1089 typedef void DestructorSkippable_;
1090 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr function_name_;
1091 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gradient_func_;
1092 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1093 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ffunction_2eproto;
1094};
1095// -------------------------------------------------------------------
1096
1097class RegisteredGradient :
1098 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.RegisteredGradient) */ {
1099 public:
1100 RegisteredGradient();
1101 virtual ~RegisteredGradient();
1102
1103 RegisteredGradient(const RegisteredGradient& from);
1104 RegisteredGradient(RegisteredGradient&& from) noexcept
1105 : RegisteredGradient() {
1106 *this = ::std::move(from);
1107 }
1108
1109 inline RegisteredGradient& operator=(const RegisteredGradient& from) {
1110 CopyFrom(from);
1111 return *this;
1112 }
1113 inline RegisteredGradient& operator=(RegisteredGradient&& from) noexcept {
1114 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1115 if (this != &from) InternalSwap(&from);
1116 } else {
1117 CopyFrom(from);
1118 }
1119 return *this;
1120 }
1121
1122 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
1123 return GetArenaNoVirtual();
1124 }
1125 inline void* GetMaybeArenaPointer() const final {
1126 return MaybeArenaPtr();
1127 }
1128 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1129 return GetDescriptor();
1130 }
1131 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1132 return GetMetadataStatic().descriptor;
1133 }
1134 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1135 return GetMetadataStatic().reflection;
1136 }
1137 static const RegisteredGradient& default_instance();
1138
1139 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1140 static inline const RegisteredGradient* internal_default_instance() {
1141 return reinterpret_cast<const RegisteredGradient*>(
1142 &_RegisteredGradient_default_instance_);
1143 }
1144 static constexpr int kIndexInFileMessages =
1145 10;
1146
1147 friend void swap(RegisteredGradient& a, RegisteredGradient& b) {
1148 a.Swap(&b);
1149 }
1150 inline void Swap(RegisteredGradient* other) {
1151 if (other == this) return;
1152 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
1153 InternalSwap(other);
1154 } else {
1155 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
1156 }
1157 }
1158 void UnsafeArenaSwap(RegisteredGradient* other) {
1159 if (other == this) return;
1160 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
1161 InternalSwap(other);
1162 }
1163
1164 // implements Message ----------------------------------------------
1165
1166 inline RegisteredGradient* New() const final {
1167 return CreateMaybeMessage<RegisteredGradient>(nullptr);
1168 }
1169
1170 RegisteredGradient* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1171 return CreateMaybeMessage<RegisteredGradient>(arena);
1172 }
1173 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1174 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1175 void CopyFrom(const RegisteredGradient& from);
1176 void MergeFrom(const RegisteredGradient& from);
1177 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1178 bool IsInitialized() const final;
1179
1180 size_t ByteSizeLong() const final;
1181 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1182 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1183 #else
1184 bool MergePartialFromCodedStream(
1185 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
1186 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1187 void SerializeWithCachedSizes(
1188 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
1189 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
1190 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
1191 int GetCachedSize() const final { return _cached_size_.Get(); }
1192
1193 private:
1194 inline void SharedCtor();
1195 inline void SharedDtor();
1196 void SetCachedSize(int size) const final;
1197 void InternalSwap(RegisteredGradient* other);
1198 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1199 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1200 return "tensorflow.RegisteredGradient";
1201 }
1202 protected:
1203 explicit RegisteredGradient(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1204 private:
1205 static void ArenaDtor(void* object);
1206 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
1207 private:
1208 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
1209 return _internal_metadata_.arena();
1210 }
1211 inline void* MaybeArenaPtr() const {
1212 return _internal_metadata_.raw_arena_ptr();
1213 }
1214 public:
1215
1216 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1217 private:
1218 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1219 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto);
1220 return ::descriptor_table_tensorflow_2fcore_2fframework_2ffunction_2eproto.file_level_metadata[kIndexInFileMessages];
1221 }
1222
1223 public:
1224
1225 // nested types ----------------------------------------------------
1226
1227 // accessors -------------------------------------------------------
1228
1229 enum : int {
1230 kGradientFuncFieldNumber = 1,
1231 kRegisteredOpTypeFieldNumber = 2,
1232 };
1233 // string gradient_func = 1;
1234 void clear_gradient_func();
1235 const std::string& gradient_func() const;
1236 void set_gradient_func(const std::string& value);
1237 void set_gradient_func(std::string&& value);
1238 void set_gradient_func(const char* value);
1239 void set_gradient_func(const char* value, size_t size);
1240 std::string* mutable_gradient_func();
1241 std::string* release_gradient_func();
1242 void set_allocated_gradient_func(std::string* gradient_func);
1243 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
1244 " string fields are deprecated and will be removed in a"
1245 " future release.")
1246 std::string* unsafe_arena_release_gradient_func();
1247 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
1248 " string fields are deprecated and will be removed in a"
1249 " future release.")
1250 void unsafe_arena_set_allocated_gradient_func(
1251 std::string* gradient_func);
1252
1253 // string registered_op_type = 2;
1254 void clear_registered_op_type();
1255 const std::string& registered_op_type() const;
1256 void set_registered_op_type(const std::string& value);
1257 void set_registered_op_type(std::string&& value);
1258 void set_registered_op_type(const char* value);
1259 void set_registered_op_type(const char* value, size_t size);
1260 std::string* mutable_registered_op_type();
1261 std::string* release_registered_op_type();
1262 void set_allocated_registered_op_type(std::string* registered_op_type);
1263 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
1264 " string fields are deprecated and will be removed in a"
1265 " future release.")
1266 std::string* unsafe_arena_release_registered_op_type();
1267 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
1268 " string fields are deprecated and will be removed in a"
1269 " future release.")
1270 void unsafe_arena_set_allocated_registered_op_type(
1271 std::string* registered_op_type);
1272
1273 // @@protoc_insertion_point(class_scope:tensorflow.RegisteredGradient)
1274 private:
1275 class _Internal;
1276
1277 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
1278 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
1279 typedef void InternalArenaConstructable_;
1280 typedef void DestructorSkippable_;
1281 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr gradient_func_;
1282 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr registered_op_type_;
1283 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1284 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ffunction_2eproto;
1285};
1286// ===================================================================
1287
1288
1289// ===================================================================
1290
1291#ifdef __GNUC__
1292 #pragma GCC diagnostic push
1293 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1294#endif // __GNUC__
1295// FunctionDefLibrary
1296
1297// repeated .tensorflow.FunctionDef function = 1;
1298inline int FunctionDefLibrary::function_size() const {
1299 return function_.size();
1300}
1301inline void FunctionDefLibrary::clear_function() {
1302 function_.Clear();
1303}
1304inline ::tensorflow::FunctionDef* FunctionDefLibrary::mutable_function(int index) {
1305 // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.function)
1306 return function_.Mutable(index);
1307}
1308inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FunctionDef >*
1309FunctionDefLibrary::mutable_function() {
1310 // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.function)
1311 return &function_;
1312}
1313inline const ::tensorflow::FunctionDef& FunctionDefLibrary::function(int index) const {
1314 // @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.function)
1315 return function_.Get(index);
1316}
1317inline ::tensorflow::FunctionDef* FunctionDefLibrary::add_function() {
1318 // @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.function)
1319 return function_.Add();
1320}
1321inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::FunctionDef >&
1322FunctionDefLibrary::function() const {
1323 // @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.function)
1324 return function_;
1325}
1326
1327// repeated .tensorflow.GradientDef gradient = 2;
1328inline int FunctionDefLibrary::gradient_size() const {
1329 return gradient_.size();
1330}
1331inline void FunctionDefLibrary::clear_gradient() {
1332 gradient_.Clear();
1333}
1334inline ::tensorflow::GradientDef* FunctionDefLibrary::mutable_gradient(int index) {
1335 // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.gradient)
1336 return gradient_.Mutable(index);
1337}
1338inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GradientDef >*
1339FunctionDefLibrary::mutable_gradient() {
1340 // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.gradient)
1341 return &gradient_;
1342}
1343inline const ::tensorflow::GradientDef& FunctionDefLibrary::gradient(int index) const {
1344 // @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.gradient)
1345 return gradient_.Get(index);
1346}
1347inline ::tensorflow::GradientDef* FunctionDefLibrary::add_gradient() {
1348 // @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.gradient)
1349 return gradient_.Add();
1350}
1351inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::GradientDef >&
1352FunctionDefLibrary::gradient() const {
1353 // @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.gradient)
1354 return gradient_;
1355}
1356
1357// repeated .tensorflow.RegisteredGradient registered_gradients = 3;
1358inline int FunctionDefLibrary::registered_gradients_size() const {
1359 return registered_gradients_.size();
1360}
1361inline void FunctionDefLibrary::clear_registered_gradients() {
1362 registered_gradients_.Clear();
1363}
1364inline ::tensorflow::RegisteredGradient* FunctionDefLibrary::mutable_registered_gradients(int index) {
1365 // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDefLibrary.registered_gradients)
1366 return registered_gradients_.Mutable(index);
1367}
1368inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::RegisteredGradient >*
1369FunctionDefLibrary::mutable_registered_gradients() {
1370 // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDefLibrary.registered_gradients)
1371 return &registered_gradients_;
1372}
1373inline const ::tensorflow::RegisteredGradient& FunctionDefLibrary::registered_gradients(int index) const {
1374 // @@protoc_insertion_point(field_get:tensorflow.FunctionDefLibrary.registered_gradients)
1375 return registered_gradients_.Get(index);
1376}
1377inline ::tensorflow::RegisteredGradient* FunctionDefLibrary::add_registered_gradients() {
1378 // @@protoc_insertion_point(field_add:tensorflow.FunctionDefLibrary.registered_gradients)
1379 return registered_gradients_.Add();
1380}
1381inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::RegisteredGradient >&
1382FunctionDefLibrary::registered_gradients() const {
1383 // @@protoc_insertion_point(field_list:tensorflow.FunctionDefLibrary.registered_gradients)
1384 return registered_gradients_;
1385}
1386
1387// -------------------------------------------------------------------
1388
1389// -------------------------------------------------------------------
1390
1391// -------------------------------------------------------------------
1392
1393// FunctionDef_ArgAttrs
1394
1395// map<string, .tensorflow.AttrValue> attr = 1;
1396inline int FunctionDef_ArgAttrs::attr_size() const {
1397 return attr_.size();
1398}
1399inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
1400FunctionDef_ArgAttrs::attr() const {
1401 // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.ArgAttrs.attr)
1402 return attr_.GetMap();
1403}
1404inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
1405FunctionDef_ArgAttrs::mutable_attr() {
1406 // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.ArgAttrs.attr)
1407 return attr_.MutableMap();
1408}
1409
1410// -------------------------------------------------------------------
1411
1412// -------------------------------------------------------------------
1413
1414// -------------------------------------------------------------------
1415
1416// -------------------------------------------------------------------
1417
1418// -------------------------------------------------------------------
1419
1420// FunctionDef
1421
1422// .tensorflow.OpDef signature = 1;
1423inline bool FunctionDef::has_signature() const {
1424 return this != internal_default_instance() && signature_ != nullptr;
1425}
1426inline const ::tensorflow::OpDef& FunctionDef::signature() const {
1427 const ::tensorflow::OpDef* p = signature_;
1428 // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.signature)
1429 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::OpDef*>(
1430 &::tensorflow::_OpDef_default_instance_);
1431}
1432inline ::tensorflow::OpDef* FunctionDef::release_signature() {
1433 // @@protoc_insertion_point(field_release:tensorflow.FunctionDef.signature)
1434
1435 ::tensorflow::OpDef* temp = signature_;
1436 if (GetArenaNoVirtual() != nullptr) {
1437 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
1438 }
1439 signature_ = nullptr;
1440 return temp;
1441}
1442inline ::tensorflow::OpDef* FunctionDef::unsafe_arena_release_signature() {
1443 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionDef.signature)
1444
1445 ::tensorflow::OpDef* temp = signature_;
1446 signature_ = nullptr;
1447 return temp;
1448}
1449inline ::tensorflow::OpDef* FunctionDef::mutable_signature() {
1450
1451 if (signature_ == nullptr) {
1452 auto* p = CreateMaybeMessage<::tensorflow::OpDef>(GetArenaNoVirtual());
1453 signature_ = p;
1454 }
1455 // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.signature)
1456 return signature_;
1457}
1458inline void FunctionDef::set_allocated_signature(::tensorflow::OpDef* signature) {
1459 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1460 if (message_arena == nullptr) {
1461 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(signature_);
1462 }
1463 if (signature) {
1464 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
1465 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(signature)->GetArena();
1466 if (message_arena != submessage_arena) {
1467 signature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1468 message_arena, signature, submessage_arena);
1469 }
1470
1471 } else {
1472
1473 }
1474 signature_ = signature;
1475 // @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionDef.signature)
1476}
1477
1478// map<string, .tensorflow.AttrValue> attr = 5;
1479inline int FunctionDef::attr_size() const {
1480 return attr_.size();
1481}
1482inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >&
1483FunctionDef::attr() const {
1484 // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.attr)
1485 return attr_.GetMap();
1486}
1487inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::AttrValue >*
1488FunctionDef::mutable_attr() {
1489 // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.attr)
1490 return attr_.MutableMap();
1491}
1492
1493// map<uint32, .tensorflow.FunctionDef.ArgAttrs> arg_attr = 7;
1494inline int FunctionDef::arg_attr_size() const {
1495 return arg_attr_.size();
1496}
1497inline void FunctionDef::clear_arg_attr() {
1498 arg_attr_.Clear();
1499}
1500inline const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::uint32, ::tensorflow::FunctionDef_ArgAttrs >&
1501FunctionDef::arg_attr() const {
1502 // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.arg_attr)
1503 return arg_attr_.GetMap();
1504}
1505inline ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::uint32, ::tensorflow::FunctionDef_ArgAttrs >*
1506FunctionDef::mutable_arg_attr() {
1507 // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.arg_attr)
1508 return arg_attr_.MutableMap();
1509}
1510
1511// map<uint32, uint32> resource_arg_unique_id = 8;
1512inline int FunctionDef::resource_arg_unique_id_size() const {
1513 return resource_arg_unique_id_.size();
1514}
1515inline void FunctionDef::clear_resource_arg_unique_id() {
1516 resource_arg_unique_id_.Clear();
1517}
1518inline const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::uint32 >&
1519FunctionDef::resource_arg_unique_id() const {
1520 // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.resource_arg_unique_id)
1521 return resource_arg_unique_id_.GetMap();
1522}
1523inline ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::uint32, ::PROTOBUF_NAMESPACE_ID::uint32 >*
1524FunctionDef::mutable_resource_arg_unique_id() {
1525 // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.resource_arg_unique_id)
1526 return resource_arg_unique_id_.MutableMap();
1527}
1528
1529// repeated .tensorflow.NodeDef node_def = 3;
1530inline int FunctionDef::node_def_size() const {
1531 return node_def_.size();
1532}
1533inline ::tensorflow::NodeDef* FunctionDef::mutable_node_def(int index) {
1534 // @@protoc_insertion_point(field_mutable:tensorflow.FunctionDef.node_def)
1535 return node_def_.Mutable(index);
1536}
1537inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >*
1538FunctionDef::mutable_node_def() {
1539 // @@protoc_insertion_point(field_mutable_list:tensorflow.FunctionDef.node_def)
1540 return &node_def_;
1541}
1542inline const ::tensorflow::NodeDef& FunctionDef::node_def(int index) const {
1543 // @@protoc_insertion_point(field_get:tensorflow.FunctionDef.node_def)
1544 return node_def_.Get(index);
1545}
1546inline ::tensorflow::NodeDef* FunctionDef::add_node_def() {
1547 // @@protoc_insertion_point(field_add:tensorflow.FunctionDef.node_def)
1548 return node_def_.Add();
1549}
1550inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::NodeDef >&
1551FunctionDef::node_def() const {
1552 // @@protoc_insertion_point(field_list:tensorflow.FunctionDef.node_def)
1553 return node_def_;
1554}
1555
1556// map<string, string> ret = 4;
1557inline int FunctionDef::ret_size() const {
1558 return ret_.size();
1559}
1560inline void FunctionDef::clear_ret() {
1561 ret_.Clear();
1562}
1563inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
1564FunctionDef::ret() const {
1565 // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.ret)
1566 return ret_.GetMap();
1567}
1568inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
1569FunctionDef::mutable_ret() {
1570 // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.ret)
1571 return ret_.MutableMap();
1572}
1573
1574// map<string, string> control_ret = 6;
1575inline int FunctionDef::control_ret_size() const {
1576 return control_ret_.size();
1577}
1578inline void FunctionDef::clear_control_ret() {
1579 control_ret_.Clear();
1580}
1581inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >&
1582FunctionDef::control_ret() const {
1583 // @@protoc_insertion_point(field_map:tensorflow.FunctionDef.control_ret)
1584 return control_ret_.GetMap();
1585}
1586inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, std::string >*
1587FunctionDef::mutable_control_ret() {
1588 // @@protoc_insertion_point(field_mutable_map:tensorflow.FunctionDef.control_ret)
1589 return control_ret_.MutableMap();
1590}
1591
1592// -------------------------------------------------------------------
1593
1594// GradientDef
1595
1596// string function_name = 1;
1597inline void GradientDef::clear_function_name() {
1598 function_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1599}
1600inline const std::string& GradientDef::function_name() const {
1601 // @@protoc_insertion_point(field_get:tensorflow.GradientDef.function_name)
1602 return function_name_.Get();
1603}
1604inline void GradientDef::set_function_name(const std::string& value) {
1605
1606 function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1607 // @@protoc_insertion_point(field_set:tensorflow.GradientDef.function_name)
1608}
1609inline void GradientDef::set_function_name(std::string&& value) {
1610
1611 function_name_.Set(
1612 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1613 // @@protoc_insertion_point(field_set_rvalue:tensorflow.GradientDef.function_name)
1614}
1615inline void GradientDef::set_function_name(const char* value) {
1616 GOOGLE_DCHECK(value != nullptr);
1617
1618 function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1619 GetArenaNoVirtual());
1620 // @@protoc_insertion_point(field_set_char:tensorflow.GradientDef.function_name)
1621}
1622inline void GradientDef::set_function_name(const char* value,
1623 size_t size) {
1624
1625 function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1626 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1627 // @@protoc_insertion_point(field_set_pointer:tensorflow.GradientDef.function_name)
1628}
1629inline std::string* GradientDef::mutable_function_name() {
1630
1631 // @@protoc_insertion_point(field_mutable:tensorflow.GradientDef.function_name)
1632 return function_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1633}
1634inline std::string* GradientDef::release_function_name() {
1635 // @@protoc_insertion_point(field_release:tensorflow.GradientDef.function_name)
1636
1637 return function_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1638}
1639inline void GradientDef::set_allocated_function_name(std::string* function_name) {
1640 if (function_name != nullptr) {
1641
1642 } else {
1643
1644 }
1645 function_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), function_name,
1646 GetArenaNoVirtual());
1647 // @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.function_name)
1648}
1649inline std::string* GradientDef::unsafe_arena_release_function_name() {
1650 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.function_name)
1651 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1652
1653 return function_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1654 GetArenaNoVirtual());
1655}
1656inline void GradientDef::unsafe_arena_set_allocated_function_name(
1657 std::string* function_name) {
1658 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1659 if (function_name != nullptr) {
1660
1661 } else {
1662
1663 }
1664 function_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1665 function_name, GetArenaNoVirtual());
1666 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.function_name)
1667}
1668
1669// string gradient_func = 2;
1670inline void GradientDef::clear_gradient_func() {
1671 gradient_func_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1672}
1673inline const std::string& GradientDef::gradient_func() const {
1674 // @@protoc_insertion_point(field_get:tensorflow.GradientDef.gradient_func)
1675 return gradient_func_.Get();
1676}
1677inline void GradientDef::set_gradient_func(const std::string& value) {
1678
1679 gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1680 // @@protoc_insertion_point(field_set:tensorflow.GradientDef.gradient_func)
1681}
1682inline void GradientDef::set_gradient_func(std::string&& value) {
1683
1684 gradient_func_.Set(
1685 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1686 // @@protoc_insertion_point(field_set_rvalue:tensorflow.GradientDef.gradient_func)
1687}
1688inline void GradientDef::set_gradient_func(const char* value) {
1689 GOOGLE_DCHECK(value != nullptr);
1690
1691 gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1692 GetArenaNoVirtual());
1693 // @@protoc_insertion_point(field_set_char:tensorflow.GradientDef.gradient_func)
1694}
1695inline void GradientDef::set_gradient_func(const char* value,
1696 size_t size) {
1697
1698 gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1699 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1700 // @@protoc_insertion_point(field_set_pointer:tensorflow.GradientDef.gradient_func)
1701}
1702inline std::string* GradientDef::mutable_gradient_func() {
1703
1704 // @@protoc_insertion_point(field_mutable:tensorflow.GradientDef.gradient_func)
1705 return gradient_func_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1706}
1707inline std::string* GradientDef::release_gradient_func() {
1708 // @@protoc_insertion_point(field_release:tensorflow.GradientDef.gradient_func)
1709
1710 return gradient_func_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1711}
1712inline void GradientDef::set_allocated_gradient_func(std::string* gradient_func) {
1713 if (gradient_func != nullptr) {
1714
1715 } else {
1716
1717 }
1718 gradient_func_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), gradient_func,
1719 GetArenaNoVirtual());
1720 // @@protoc_insertion_point(field_set_allocated:tensorflow.GradientDef.gradient_func)
1721}
1722inline std::string* GradientDef::unsafe_arena_release_gradient_func() {
1723 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.GradientDef.gradient_func)
1724 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1725
1726 return gradient_func_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1727 GetArenaNoVirtual());
1728}
1729inline void GradientDef::unsafe_arena_set_allocated_gradient_func(
1730 std::string* gradient_func) {
1731 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1732 if (gradient_func != nullptr) {
1733
1734 } else {
1735
1736 }
1737 gradient_func_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1738 gradient_func, GetArenaNoVirtual());
1739 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.GradientDef.gradient_func)
1740}
1741
1742// -------------------------------------------------------------------
1743
1744// RegisteredGradient
1745
1746// string gradient_func = 1;
1747inline void RegisteredGradient::clear_gradient_func() {
1748 gradient_func_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1749}
1750inline const std::string& RegisteredGradient::gradient_func() const {
1751 // @@protoc_insertion_point(field_get:tensorflow.RegisteredGradient.gradient_func)
1752 return gradient_func_.Get();
1753}
1754inline void RegisteredGradient::set_gradient_func(const std::string& value) {
1755
1756 gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1757 // @@protoc_insertion_point(field_set:tensorflow.RegisteredGradient.gradient_func)
1758}
1759inline void RegisteredGradient::set_gradient_func(std::string&& value) {
1760
1761 gradient_func_.Set(
1762 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1763 // @@protoc_insertion_point(field_set_rvalue:tensorflow.RegisteredGradient.gradient_func)
1764}
1765inline void RegisteredGradient::set_gradient_func(const char* value) {
1766 GOOGLE_DCHECK(value != nullptr);
1767
1768 gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1769 GetArenaNoVirtual());
1770 // @@protoc_insertion_point(field_set_char:tensorflow.RegisteredGradient.gradient_func)
1771}
1772inline void RegisteredGradient::set_gradient_func(const char* value,
1773 size_t size) {
1774
1775 gradient_func_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1776 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1777 // @@protoc_insertion_point(field_set_pointer:tensorflow.RegisteredGradient.gradient_func)
1778}
1779inline std::string* RegisteredGradient::mutable_gradient_func() {
1780
1781 // @@protoc_insertion_point(field_mutable:tensorflow.RegisteredGradient.gradient_func)
1782 return gradient_func_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1783}
1784inline std::string* RegisteredGradient::release_gradient_func() {
1785 // @@protoc_insertion_point(field_release:tensorflow.RegisteredGradient.gradient_func)
1786
1787 return gradient_func_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1788}
1789inline void RegisteredGradient::set_allocated_gradient_func(std::string* gradient_func) {
1790 if (gradient_func != nullptr) {
1791
1792 } else {
1793
1794 }
1795 gradient_func_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), gradient_func,
1796 GetArenaNoVirtual());
1797 // @@protoc_insertion_point(field_set_allocated:tensorflow.RegisteredGradient.gradient_func)
1798}
1799inline std::string* RegisteredGradient::unsafe_arena_release_gradient_func() {
1800 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.RegisteredGradient.gradient_func)
1801 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1802
1803 return gradient_func_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1804 GetArenaNoVirtual());
1805}
1806inline void RegisteredGradient::unsafe_arena_set_allocated_gradient_func(
1807 std::string* gradient_func) {
1808 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1809 if (gradient_func != nullptr) {
1810
1811 } else {
1812
1813 }
1814 gradient_func_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1815 gradient_func, GetArenaNoVirtual());
1816 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RegisteredGradient.gradient_func)
1817}
1818
1819// string registered_op_type = 2;
1820inline void RegisteredGradient::clear_registered_op_type() {
1821 registered_op_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1822}
1823inline const std::string& RegisteredGradient::registered_op_type() const {
1824 // @@protoc_insertion_point(field_get:tensorflow.RegisteredGradient.registered_op_type)
1825 return registered_op_type_.Get();
1826}
1827inline void RegisteredGradient::set_registered_op_type(const std::string& value) {
1828
1829 registered_op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
1830 // @@protoc_insertion_point(field_set:tensorflow.RegisteredGradient.registered_op_type)
1831}
1832inline void RegisteredGradient::set_registered_op_type(std::string&& value) {
1833
1834 registered_op_type_.Set(
1835 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
1836 // @@protoc_insertion_point(field_set_rvalue:tensorflow.RegisteredGradient.registered_op_type)
1837}
1838inline void RegisteredGradient::set_registered_op_type(const char* value) {
1839 GOOGLE_DCHECK(value != nullptr);
1840
1841 registered_op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
1842 GetArenaNoVirtual());
1843 // @@protoc_insertion_point(field_set_char:tensorflow.RegisteredGradient.registered_op_type)
1844}
1845inline void RegisteredGradient::set_registered_op_type(const char* value,
1846 size_t size) {
1847
1848 registered_op_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
1849 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
1850 // @@protoc_insertion_point(field_set_pointer:tensorflow.RegisteredGradient.registered_op_type)
1851}
1852inline std::string* RegisteredGradient::mutable_registered_op_type() {
1853
1854 // @@protoc_insertion_point(field_mutable:tensorflow.RegisteredGradient.registered_op_type)
1855 return registered_op_type_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1856}
1857inline std::string* RegisteredGradient::release_registered_op_type() {
1858 // @@protoc_insertion_point(field_release:tensorflow.RegisteredGradient.registered_op_type)
1859
1860 return registered_op_type_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
1861}
1862inline void RegisteredGradient::set_allocated_registered_op_type(std::string* registered_op_type) {
1863 if (registered_op_type != nullptr) {
1864
1865 } else {
1866
1867 }
1868 registered_op_type_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), registered_op_type,
1869 GetArenaNoVirtual());
1870 // @@protoc_insertion_point(field_set_allocated:tensorflow.RegisteredGradient.registered_op_type)
1871}
1872inline std::string* RegisteredGradient::unsafe_arena_release_registered_op_type() {
1873 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.RegisteredGradient.registered_op_type)
1874 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1875
1876 return registered_op_type_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1877 GetArenaNoVirtual());
1878}
1879inline void RegisteredGradient::unsafe_arena_set_allocated_registered_op_type(
1880 std::string* registered_op_type) {
1881 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
1882 if (registered_op_type != nullptr) {
1883
1884 } else {
1885
1886 }
1887 registered_op_type_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1888 registered_op_type, GetArenaNoVirtual());
1889 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.RegisteredGradient.registered_op_type)
1890}
1891
1892#ifdef __GNUC__
1893 #pragma GCC diagnostic pop
1894#endif // __GNUC__
1895// -------------------------------------------------------------------
1896
1897// -------------------------------------------------------------------
1898
1899// -------------------------------------------------------------------
1900
1901// -------------------------------------------------------------------
1902
1903// -------------------------------------------------------------------
1904
1905// -------------------------------------------------------------------
1906
1907// -------------------------------------------------------------------
1908
1909// -------------------------------------------------------------------
1910
1911// -------------------------------------------------------------------
1912
1913// -------------------------------------------------------------------
1914
1915
1916// @@protoc_insertion_point(namespace_scope)
1917
1918} // namespace tensorflow
1919
1920// @@protoc_insertion_point(global_scope)
1921
1922#include <google/protobuf/port_undef.inc>
1923#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ffunction_2eproto
1924