1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/saved_object_graph.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_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/generated_enum_reflection.h> |
38 | #include <google/protobuf/unknown_field_set.h> |
39 | #include <google/protobuf/any.pb.h> |
40 | #include "tensorflow/core/framework/tensor_shape.pb.h" |
41 | #include "tensorflow/core/framework/types.pb.h" |
42 | #include "tensorflow/core/framework/variable.pb.h" |
43 | #include "tensorflow/core/framework/versions.pb.h" |
44 | #include "tensorflow/core/protobuf/struct.pb.h" |
45 | #include "tensorflow/core/protobuf/trackable_object_graph.pb.h" |
46 | // @@protoc_insertion_point(includes) |
47 | #include <google/protobuf/port_def.inc> |
48 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto |
49 | PROTOBUF_NAMESPACE_OPEN |
50 | namespace internal { |
51 | class AnyMetadata; |
52 | } // namespace internal |
53 | PROTOBUF_NAMESPACE_CLOSE |
54 | |
55 | // Internal implementation detail -- do not use these members. |
56 | struct TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto { |
57 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
58 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
59 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
60 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
61 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[15] |
62 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
63 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
64 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
65 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
66 | }; |
67 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
68 | namespace tensorflow { |
69 | class CapturedTensor; |
70 | class CapturedTensorDefaultTypeInternal; |
71 | extern CapturedTensorDefaultTypeInternal _CapturedTensor_default_instance_; |
72 | class FunctionSpec; |
73 | class FunctionSpecDefaultTypeInternal; |
74 | extern FunctionSpecDefaultTypeInternal _FunctionSpec_default_instance_; |
75 | class SaveableObject; |
76 | class SaveableObjectDefaultTypeInternal; |
77 | extern SaveableObjectDefaultTypeInternal _SaveableObject_default_instance_; |
78 | class SavedAsset; |
79 | class SavedAssetDefaultTypeInternal; |
80 | extern SavedAssetDefaultTypeInternal _SavedAsset_default_instance_; |
81 | class SavedBareConcreteFunction; |
82 | class SavedBareConcreteFunctionDefaultTypeInternal; |
83 | extern SavedBareConcreteFunctionDefaultTypeInternal _SavedBareConcreteFunction_default_instance_; |
84 | class SavedConcreteFunction; |
85 | class SavedConcreteFunctionDefaultTypeInternal; |
86 | extern SavedConcreteFunctionDefaultTypeInternal _SavedConcreteFunction_default_instance_; |
87 | class SavedConstant; |
88 | class SavedConstantDefaultTypeInternal; |
89 | extern SavedConstantDefaultTypeInternal _SavedConstant_default_instance_; |
90 | class SavedFunction; |
91 | class SavedFunctionDefaultTypeInternal; |
92 | extern SavedFunctionDefaultTypeInternal _SavedFunction_default_instance_; |
93 | class SavedObject; |
94 | class SavedObjectDefaultTypeInternal; |
95 | extern SavedObjectDefaultTypeInternal _SavedObject_default_instance_; |
96 | class SavedObjectGraph; |
97 | class SavedObjectGraphDefaultTypeInternal; |
98 | extern SavedObjectGraphDefaultTypeInternal _SavedObjectGraph_default_instance_; |
99 | class SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse; |
100 | class SavedObjectGraph_ConcreteFunctionsEntry_DoNotUseDefaultTypeInternal; |
101 | extern SavedObjectGraph_ConcreteFunctionsEntry_DoNotUseDefaultTypeInternal _SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse_default_instance_; |
102 | class SavedObject_SaveableObjectsEntry_DoNotUse; |
103 | class SavedObject_SaveableObjectsEntry_DoNotUseDefaultTypeInternal; |
104 | extern SavedObject_SaveableObjectsEntry_DoNotUseDefaultTypeInternal _SavedObject_SaveableObjectsEntry_DoNotUse_default_instance_; |
105 | class SavedResource; |
106 | class SavedResourceDefaultTypeInternal; |
107 | extern SavedResourceDefaultTypeInternal _SavedResource_default_instance_; |
108 | class SavedUserObject; |
109 | class SavedUserObjectDefaultTypeInternal; |
110 | extern SavedUserObjectDefaultTypeInternal _SavedUserObject_default_instance_; |
111 | class SavedVariable; |
112 | class SavedVariableDefaultTypeInternal; |
113 | extern SavedVariableDefaultTypeInternal _SavedVariable_default_instance_; |
114 | } // namespace tensorflow |
115 | PROTOBUF_NAMESPACE_OPEN |
116 | template<> ::tensorflow::CapturedTensor* Arena::CreateMaybeMessage<::tensorflow::CapturedTensor>(Arena*); |
117 | template<> ::tensorflow::FunctionSpec* Arena::CreateMaybeMessage<::tensorflow::FunctionSpec>(Arena*); |
118 | template<> ::tensorflow::SaveableObject* Arena::CreateMaybeMessage<::tensorflow::SaveableObject>(Arena*); |
119 | template<> ::tensorflow::SavedAsset* Arena::CreateMaybeMessage<::tensorflow::SavedAsset>(Arena*); |
120 | template<> ::tensorflow::SavedBareConcreteFunction* Arena::CreateMaybeMessage<::tensorflow::SavedBareConcreteFunction>(Arena*); |
121 | template<> ::tensorflow::SavedConcreteFunction* Arena::CreateMaybeMessage<::tensorflow::SavedConcreteFunction>(Arena*); |
122 | template<> ::tensorflow::SavedConstant* Arena::CreateMaybeMessage<::tensorflow::SavedConstant>(Arena*); |
123 | template<> ::tensorflow::SavedFunction* Arena::CreateMaybeMessage<::tensorflow::SavedFunction>(Arena*); |
124 | template<> ::tensorflow::SavedObject* Arena::CreateMaybeMessage<::tensorflow::SavedObject>(Arena*); |
125 | template<> ::tensorflow::SavedObjectGraph* Arena::CreateMaybeMessage<::tensorflow::SavedObjectGraph>(Arena*); |
126 | template<> ::tensorflow::SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse>(Arena*); |
127 | template<> ::tensorflow::SavedObject_SaveableObjectsEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::SavedObject_SaveableObjectsEntry_DoNotUse>(Arena*); |
128 | template<> ::tensorflow::SavedResource* Arena::CreateMaybeMessage<::tensorflow::SavedResource>(Arena*); |
129 | template<> ::tensorflow::SavedUserObject* Arena::CreateMaybeMessage<::tensorflow::SavedUserObject>(Arena*); |
130 | template<> ::tensorflow::SavedVariable* Arena::CreateMaybeMessage<::tensorflow::SavedVariable>(Arena*); |
131 | PROTOBUF_NAMESPACE_CLOSE |
132 | namespace tensorflow { |
133 | |
134 | enum FunctionSpec_JitCompile : int { |
135 | FunctionSpec_JitCompile_DEFAULT = 0, |
136 | FunctionSpec_JitCompile_ON = 1, |
137 | FunctionSpec_JitCompile_OFF = 2, |
138 | FunctionSpec_JitCompile_FunctionSpec_JitCompile_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
139 | FunctionSpec_JitCompile_FunctionSpec_JitCompile_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
140 | }; |
141 | bool FunctionSpec_JitCompile_IsValid(int value); |
142 | constexpr FunctionSpec_JitCompile FunctionSpec_JitCompile_JitCompile_MIN = FunctionSpec_JitCompile_DEFAULT; |
143 | constexpr FunctionSpec_JitCompile FunctionSpec_JitCompile_JitCompile_MAX = FunctionSpec_JitCompile_OFF; |
144 | constexpr int FunctionSpec_JitCompile_JitCompile_ARRAYSIZE = FunctionSpec_JitCompile_JitCompile_MAX + 1; |
145 | |
146 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* FunctionSpec_JitCompile_descriptor(); |
147 | template<typename T> |
148 | inline const std::string& FunctionSpec_JitCompile_Name(T enum_t_value) { |
149 | static_assert(::std::is_same<T, FunctionSpec_JitCompile>::value || |
150 | ::std::is_integral<T>::value, |
151 | "Incorrect type passed to function FunctionSpec_JitCompile_Name." ); |
152 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
153 | FunctionSpec_JitCompile_descriptor(), enum_t_value); |
154 | } |
155 | inline bool FunctionSpec_JitCompile_Parse( |
156 | const std::string& name, FunctionSpec_JitCompile* value) { |
157 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<FunctionSpec_JitCompile>( |
158 | FunctionSpec_JitCompile_descriptor(), name, value); |
159 | } |
160 | // =================================================================== |
161 | |
162 | class SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse, |
163 | std::string, ::tensorflow::SavedConcreteFunction, |
164 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
165 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
166 | 0 > { |
167 | public: |
168 | typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse, |
169 | std::string, ::tensorflow::SavedConcreteFunction, |
170 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
171 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
172 | 0 > SuperType; |
173 | SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse(); |
174 | SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
175 | void MergeFrom(const SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse& other); |
176 | static const SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse*>(&_SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse_default_instance_); } |
177 | static bool ValidateKey(std::string* s) { |
178 | return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.SavedObjectGraph.ConcreteFunctionsEntry.key" ); |
179 | } |
180 | static bool ValidateValue(void*) { return true; } |
181 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; |
182 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
183 | private: |
184 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
185 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
186 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[0]; |
187 | } |
188 | |
189 | public: |
190 | }; |
191 | |
192 | // ------------------------------------------------------------------- |
193 | |
194 | class SavedObjectGraph : |
195 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedObjectGraph) */ { |
196 | public: |
197 | SavedObjectGraph(); |
198 | virtual ~SavedObjectGraph(); |
199 | |
200 | SavedObjectGraph(const SavedObjectGraph& from); |
201 | SavedObjectGraph(SavedObjectGraph&& from) noexcept |
202 | : SavedObjectGraph() { |
203 | *this = ::std::move(from); |
204 | } |
205 | |
206 | inline SavedObjectGraph& operator=(const SavedObjectGraph& from) { |
207 | CopyFrom(from); |
208 | return *this; |
209 | } |
210 | inline SavedObjectGraph& operator=(SavedObjectGraph&& from) noexcept { |
211 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
212 | if (this != &from) InternalSwap(&from); |
213 | } else { |
214 | CopyFrom(from); |
215 | } |
216 | return *this; |
217 | } |
218 | |
219 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
220 | return GetArenaNoVirtual(); |
221 | } |
222 | inline void* GetMaybeArenaPointer() const final { |
223 | return MaybeArenaPtr(); |
224 | } |
225 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
226 | return GetDescriptor(); |
227 | } |
228 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
229 | return GetMetadataStatic().descriptor; |
230 | } |
231 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
232 | return GetMetadataStatic().reflection; |
233 | } |
234 | static const SavedObjectGraph& default_instance(); |
235 | |
236 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
237 | static inline const SavedObjectGraph* internal_default_instance() { |
238 | return reinterpret_cast<const SavedObjectGraph*>( |
239 | &_SavedObjectGraph_default_instance_); |
240 | } |
241 | static constexpr int kIndexInFileMessages = |
242 | 1; |
243 | |
244 | friend void swap(SavedObjectGraph& a, SavedObjectGraph& b) { |
245 | a.Swap(&b); |
246 | } |
247 | inline void Swap(SavedObjectGraph* other) { |
248 | if (other == this) return; |
249 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
250 | InternalSwap(other); |
251 | } else { |
252 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
253 | } |
254 | } |
255 | void UnsafeArenaSwap(SavedObjectGraph* other) { |
256 | if (other == this) return; |
257 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
258 | InternalSwap(other); |
259 | } |
260 | |
261 | // implements Message ---------------------------------------------- |
262 | |
263 | inline SavedObjectGraph* New() const final { |
264 | return CreateMaybeMessage<SavedObjectGraph>(nullptr); |
265 | } |
266 | |
267 | SavedObjectGraph* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
268 | return CreateMaybeMessage<SavedObjectGraph>(arena); |
269 | } |
270 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
271 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
272 | void CopyFrom(const SavedObjectGraph& from); |
273 | void MergeFrom(const SavedObjectGraph& from); |
274 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
275 | bool IsInitialized() const final; |
276 | |
277 | size_t ByteSizeLong() const final; |
278 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
279 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
280 | #else |
281 | bool MergePartialFromCodedStream( |
282 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
283 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
284 | void SerializeWithCachedSizes( |
285 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
286 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
287 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
288 | int GetCachedSize() const final { return _cached_size_.Get(); } |
289 | |
290 | private: |
291 | inline void SharedCtor(); |
292 | inline void SharedDtor(); |
293 | void SetCachedSize(int size) const final; |
294 | void InternalSwap(SavedObjectGraph* other); |
295 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
296 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
297 | return "tensorflow.SavedObjectGraph" ; |
298 | } |
299 | protected: |
300 | explicit SavedObjectGraph(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
301 | private: |
302 | static void ArenaDtor(void* object); |
303 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
304 | private: |
305 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
306 | return _internal_metadata_.arena(); |
307 | } |
308 | inline void* MaybeArenaPtr() const { |
309 | return _internal_metadata_.raw_arena_ptr(); |
310 | } |
311 | public: |
312 | |
313 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
314 | private: |
315 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
316 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
317 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
318 | } |
319 | |
320 | public: |
321 | |
322 | // nested types ---------------------------------------------------- |
323 | |
324 | |
325 | // accessors ------------------------------------------------------- |
326 | |
327 | enum : int { |
328 | kNodesFieldNumber = 1, |
329 | kConcreteFunctionsFieldNumber = 2, |
330 | }; |
331 | // repeated .tensorflow.SavedObject nodes = 1; |
332 | int nodes_size() const; |
333 | void clear_nodes(); |
334 | ::tensorflow::SavedObject* mutable_nodes(int index); |
335 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedObject >* |
336 | mutable_nodes(); |
337 | const ::tensorflow::SavedObject& nodes(int index) const; |
338 | ::tensorflow::SavedObject* add_nodes(); |
339 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedObject >& |
340 | nodes() const; |
341 | |
342 | // map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; |
343 | int concrete_functions_size() const; |
344 | void clear_concrete_functions(); |
345 | const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SavedConcreteFunction >& |
346 | concrete_functions() const; |
347 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SavedConcreteFunction >* |
348 | mutable_concrete_functions(); |
349 | |
350 | // @@protoc_insertion_point(class_scope:tensorflow.SavedObjectGraph) |
351 | private: |
352 | class _Internal; |
353 | |
354 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
355 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
356 | typedef void InternalArenaConstructable_; |
357 | typedef void DestructorSkippable_; |
358 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedObject > nodes_; |
359 | ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
360 | SavedObjectGraph_ConcreteFunctionsEntry_DoNotUse, |
361 | std::string, ::tensorflow::SavedConcreteFunction, |
362 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
363 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
364 | 0 > concrete_functions_; |
365 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
366 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
367 | }; |
368 | // ------------------------------------------------------------------- |
369 | |
370 | class SavedObject_SaveableObjectsEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<SavedObject_SaveableObjectsEntry_DoNotUse, |
371 | std::string, ::tensorflow::SaveableObject, |
372 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
373 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
374 | 0 > { |
375 | public: |
376 | typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<SavedObject_SaveableObjectsEntry_DoNotUse, |
377 | std::string, ::tensorflow::SaveableObject, |
378 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
379 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
380 | 0 > SuperType; |
381 | SavedObject_SaveableObjectsEntry_DoNotUse(); |
382 | SavedObject_SaveableObjectsEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
383 | void MergeFrom(const SavedObject_SaveableObjectsEntry_DoNotUse& other); |
384 | static const SavedObject_SaveableObjectsEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const SavedObject_SaveableObjectsEntry_DoNotUse*>(&_SavedObject_SaveableObjectsEntry_DoNotUse_default_instance_); } |
385 | static bool ValidateKey(std::string* s) { |
386 | return ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(s->data(), s->size(), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::PARSE, "tensorflow.SavedObject.SaveableObjectsEntry.key" ); |
387 | } |
388 | static bool ValidateValue(void*) { return true; } |
389 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; |
390 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
391 | private: |
392 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
393 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
394 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[2]; |
395 | } |
396 | |
397 | public: |
398 | }; |
399 | |
400 | // ------------------------------------------------------------------- |
401 | |
402 | class SavedObject : |
403 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedObject) */ { |
404 | public: |
405 | SavedObject(); |
406 | virtual ~SavedObject(); |
407 | |
408 | SavedObject(const SavedObject& from); |
409 | SavedObject(SavedObject&& from) noexcept |
410 | : SavedObject() { |
411 | *this = ::std::move(from); |
412 | } |
413 | |
414 | inline SavedObject& operator=(const SavedObject& from) { |
415 | CopyFrom(from); |
416 | return *this; |
417 | } |
418 | inline SavedObject& operator=(SavedObject&& from) noexcept { |
419 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
420 | if (this != &from) InternalSwap(&from); |
421 | } else { |
422 | CopyFrom(from); |
423 | } |
424 | return *this; |
425 | } |
426 | |
427 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
428 | return GetArenaNoVirtual(); |
429 | } |
430 | inline void* GetMaybeArenaPointer() const final { |
431 | return MaybeArenaPtr(); |
432 | } |
433 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
434 | return GetDescriptor(); |
435 | } |
436 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
437 | return GetMetadataStatic().descriptor; |
438 | } |
439 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
440 | return GetMetadataStatic().reflection; |
441 | } |
442 | static const SavedObject& default_instance(); |
443 | |
444 | enum KindCase { |
445 | kUserObject = 4, |
446 | kAsset = 5, |
447 | kFunction = 6, |
448 | kVariable = 7, |
449 | kBareConcreteFunction = 8, |
450 | kConstant = 9, |
451 | kResource = 10, |
452 | kCapturedTensor = 12, |
453 | KIND_NOT_SET = 0, |
454 | }; |
455 | |
456 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
457 | static inline const SavedObject* internal_default_instance() { |
458 | return reinterpret_cast<const SavedObject*>( |
459 | &_SavedObject_default_instance_); |
460 | } |
461 | static constexpr int kIndexInFileMessages = |
462 | 3; |
463 | |
464 | friend void swap(SavedObject& a, SavedObject& b) { |
465 | a.Swap(&b); |
466 | } |
467 | inline void Swap(SavedObject* other) { |
468 | if (other == this) return; |
469 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
470 | InternalSwap(other); |
471 | } else { |
472 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
473 | } |
474 | } |
475 | void UnsafeArenaSwap(SavedObject* other) { |
476 | if (other == this) return; |
477 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
478 | InternalSwap(other); |
479 | } |
480 | |
481 | // implements Message ---------------------------------------------- |
482 | |
483 | inline SavedObject* New() const final { |
484 | return CreateMaybeMessage<SavedObject>(nullptr); |
485 | } |
486 | |
487 | SavedObject* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
488 | return CreateMaybeMessage<SavedObject>(arena); |
489 | } |
490 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
491 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
492 | void CopyFrom(const SavedObject& from); |
493 | void MergeFrom(const SavedObject& from); |
494 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
495 | bool IsInitialized() const final; |
496 | |
497 | size_t ByteSizeLong() const final; |
498 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
499 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
500 | #else |
501 | bool MergePartialFromCodedStream( |
502 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
503 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
504 | void SerializeWithCachedSizes( |
505 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
506 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
507 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
508 | int GetCachedSize() const final { return _cached_size_.Get(); } |
509 | |
510 | private: |
511 | inline void SharedCtor(); |
512 | inline void SharedDtor(); |
513 | void SetCachedSize(int size) const final; |
514 | void InternalSwap(SavedObject* other); |
515 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
516 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
517 | return "tensorflow.SavedObject" ; |
518 | } |
519 | protected: |
520 | explicit SavedObject(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
521 | private: |
522 | static void ArenaDtor(void* object); |
523 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
524 | private: |
525 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
526 | return _internal_metadata_.arena(); |
527 | } |
528 | inline void* MaybeArenaPtr() const { |
529 | return _internal_metadata_.raw_arena_ptr(); |
530 | } |
531 | public: |
532 | |
533 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
534 | private: |
535 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
536 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
537 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
538 | } |
539 | |
540 | public: |
541 | |
542 | // nested types ---------------------------------------------------- |
543 | |
544 | |
545 | // accessors ------------------------------------------------------- |
546 | |
547 | enum : int { |
548 | kChildrenFieldNumber = 1, |
549 | kSlotVariablesFieldNumber = 3, |
550 | kSaveableObjectsFieldNumber = 11, |
551 | kDependenciesFieldNumber = 15, |
552 | kRegisteredNameFieldNumber = 13, |
553 | kRegisteredSaverFieldNumber = 16, |
554 | kSerializedUserProtoFieldNumber = 14, |
555 | kUserObjectFieldNumber = 4, |
556 | kAssetFieldNumber = 5, |
557 | kFunctionFieldNumber = 6, |
558 | kVariableFieldNumber = 7, |
559 | kBareConcreteFunctionFieldNumber = 8, |
560 | kConstantFieldNumber = 9, |
561 | kResourceFieldNumber = 10, |
562 | kCapturedTensorFieldNumber = 12, |
563 | }; |
564 | // repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; |
565 | int children_size() const; |
566 | void clear_children(); |
567 | ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference* mutable_children(int index); |
568 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference >* |
569 | mutable_children(); |
570 | const ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference& children(int index) const; |
571 | ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference* add_children(); |
572 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference >& |
573 | children() const; |
574 | |
575 | // repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; |
576 | int slot_variables_size() const; |
577 | void clear_slot_variables(); |
578 | ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference* mutable_slot_variables(int index); |
579 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference >* |
580 | mutable_slot_variables(); |
581 | const ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference& slot_variables(int index) const; |
582 | ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference* add_slot_variables(); |
583 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference >& |
584 | slot_variables() const; |
585 | |
586 | // map<string, .tensorflow.SaveableObject> saveable_objects = 11; |
587 | int saveable_objects_size() const; |
588 | void clear_saveable_objects(); |
589 | const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SaveableObject >& |
590 | saveable_objects() const; |
591 | ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SaveableObject >* |
592 | mutable_saveable_objects(); |
593 | |
594 | // repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; |
595 | int dependencies_size() const; |
596 | void clear_dependencies(); |
597 | ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference* mutable_dependencies(int index); |
598 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference >* |
599 | mutable_dependencies(); |
600 | const ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference& dependencies(int index) const; |
601 | ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference* add_dependencies(); |
602 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference >& |
603 | dependencies() const; |
604 | |
605 | // string registered_name = 13; |
606 | void clear_registered_name(); |
607 | const std::string& registered_name() const; |
608 | void set_registered_name(const std::string& value); |
609 | void set_registered_name(std::string&& value); |
610 | void set_registered_name(const char* value); |
611 | void set_registered_name(const char* value, size_t size); |
612 | std::string* mutable_registered_name(); |
613 | std::string* release_registered_name(); |
614 | void set_allocated_registered_name(std::string* registered_name); |
615 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
616 | " string fields are deprecated and will be removed in a" |
617 | " future release." ) |
618 | std::string* unsafe_arena_release_registered_name(); |
619 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
620 | " string fields are deprecated and will be removed in a" |
621 | " future release." ) |
622 | void unsafe_arena_set_allocated_registered_name( |
623 | std::string* registered_name); |
624 | |
625 | // string registered_saver = 16; |
626 | void clear_registered_saver(); |
627 | const std::string& registered_saver() const; |
628 | void set_registered_saver(const std::string& value); |
629 | void set_registered_saver(std::string&& value); |
630 | void set_registered_saver(const char* value); |
631 | void set_registered_saver(const char* value, size_t size); |
632 | std::string* mutable_registered_saver(); |
633 | std::string* release_registered_saver(); |
634 | void set_allocated_registered_saver(std::string* registered_saver); |
635 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
636 | " string fields are deprecated and will be removed in a" |
637 | " future release." ) |
638 | std::string* unsafe_arena_release_registered_saver(); |
639 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
640 | " string fields are deprecated and will be removed in a" |
641 | " future release." ) |
642 | void unsafe_arena_set_allocated_registered_saver( |
643 | std::string* registered_saver); |
644 | |
645 | // .google.protobuf.Any serialized_user_proto = 14; |
646 | bool has_serialized_user_proto() const; |
647 | void clear_serialized_user_proto(); |
648 | const PROTOBUF_NAMESPACE_ID::Any& serialized_user_proto() const; |
649 | PROTOBUF_NAMESPACE_ID::Any* release_serialized_user_proto(); |
650 | PROTOBUF_NAMESPACE_ID::Any* mutable_serialized_user_proto(); |
651 | void set_allocated_serialized_user_proto(PROTOBUF_NAMESPACE_ID::Any* serialized_user_proto); |
652 | void unsafe_arena_set_allocated_serialized_user_proto( |
653 | PROTOBUF_NAMESPACE_ID::Any* serialized_user_proto); |
654 | PROTOBUF_NAMESPACE_ID::Any* unsafe_arena_release_serialized_user_proto(); |
655 | |
656 | // .tensorflow.SavedUserObject user_object = 4; |
657 | bool has_user_object() const; |
658 | void clear_user_object(); |
659 | const ::tensorflow::SavedUserObject& user_object() const; |
660 | ::tensorflow::SavedUserObject* release_user_object(); |
661 | ::tensorflow::SavedUserObject* mutable_user_object(); |
662 | void set_allocated_user_object(::tensorflow::SavedUserObject* user_object); |
663 | void unsafe_arena_set_allocated_user_object( |
664 | ::tensorflow::SavedUserObject* user_object); |
665 | ::tensorflow::SavedUserObject* unsafe_arena_release_user_object(); |
666 | |
667 | // .tensorflow.SavedAsset asset = 5; |
668 | bool has_asset() const; |
669 | void clear_asset(); |
670 | const ::tensorflow::SavedAsset& asset() const; |
671 | ::tensorflow::SavedAsset* release_asset(); |
672 | ::tensorflow::SavedAsset* mutable_asset(); |
673 | void set_allocated_asset(::tensorflow::SavedAsset* asset); |
674 | void unsafe_arena_set_allocated_asset( |
675 | ::tensorflow::SavedAsset* asset); |
676 | ::tensorflow::SavedAsset* unsafe_arena_release_asset(); |
677 | |
678 | // .tensorflow.SavedFunction function = 6; |
679 | bool has_function() const; |
680 | void clear_function(); |
681 | const ::tensorflow::SavedFunction& function() const; |
682 | ::tensorflow::SavedFunction* release_function(); |
683 | ::tensorflow::SavedFunction* mutable_function(); |
684 | void set_allocated_function(::tensorflow::SavedFunction* function); |
685 | void unsafe_arena_set_allocated_function( |
686 | ::tensorflow::SavedFunction* function); |
687 | ::tensorflow::SavedFunction* unsafe_arena_release_function(); |
688 | |
689 | // .tensorflow.SavedVariable variable = 7; |
690 | bool has_variable() const; |
691 | void clear_variable(); |
692 | const ::tensorflow::SavedVariable& variable() const; |
693 | ::tensorflow::SavedVariable* release_variable(); |
694 | ::tensorflow::SavedVariable* mutable_variable(); |
695 | void set_allocated_variable(::tensorflow::SavedVariable* variable); |
696 | void unsafe_arena_set_allocated_variable( |
697 | ::tensorflow::SavedVariable* variable); |
698 | ::tensorflow::SavedVariable* unsafe_arena_release_variable(); |
699 | |
700 | // .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; |
701 | bool has_bare_concrete_function() const; |
702 | void clear_bare_concrete_function(); |
703 | const ::tensorflow::SavedBareConcreteFunction& bare_concrete_function() const; |
704 | ::tensorflow::SavedBareConcreteFunction* release_bare_concrete_function(); |
705 | ::tensorflow::SavedBareConcreteFunction* mutable_bare_concrete_function(); |
706 | void set_allocated_bare_concrete_function(::tensorflow::SavedBareConcreteFunction* bare_concrete_function); |
707 | void unsafe_arena_set_allocated_bare_concrete_function( |
708 | ::tensorflow::SavedBareConcreteFunction* bare_concrete_function); |
709 | ::tensorflow::SavedBareConcreteFunction* unsafe_arena_release_bare_concrete_function(); |
710 | |
711 | // .tensorflow.SavedConstant constant = 9; |
712 | bool has_constant() const; |
713 | void clear_constant(); |
714 | const ::tensorflow::SavedConstant& constant() const; |
715 | ::tensorflow::SavedConstant* release_constant(); |
716 | ::tensorflow::SavedConstant* mutable_constant(); |
717 | void set_allocated_constant(::tensorflow::SavedConstant* constant); |
718 | void unsafe_arena_set_allocated_constant( |
719 | ::tensorflow::SavedConstant* constant); |
720 | ::tensorflow::SavedConstant* unsafe_arena_release_constant(); |
721 | |
722 | // .tensorflow.SavedResource resource = 10; |
723 | bool has_resource() const; |
724 | void clear_resource(); |
725 | const ::tensorflow::SavedResource& resource() const; |
726 | ::tensorflow::SavedResource* release_resource(); |
727 | ::tensorflow::SavedResource* mutable_resource(); |
728 | void set_allocated_resource(::tensorflow::SavedResource* resource); |
729 | void unsafe_arena_set_allocated_resource( |
730 | ::tensorflow::SavedResource* resource); |
731 | ::tensorflow::SavedResource* unsafe_arena_release_resource(); |
732 | |
733 | // .tensorflow.CapturedTensor captured_tensor = 12; |
734 | bool has_captured_tensor() const; |
735 | void clear_captured_tensor(); |
736 | const ::tensorflow::CapturedTensor& captured_tensor() const; |
737 | ::tensorflow::CapturedTensor* release_captured_tensor(); |
738 | ::tensorflow::CapturedTensor* mutable_captured_tensor(); |
739 | void set_allocated_captured_tensor(::tensorflow::CapturedTensor* captured_tensor); |
740 | void unsafe_arena_set_allocated_captured_tensor( |
741 | ::tensorflow::CapturedTensor* captured_tensor); |
742 | ::tensorflow::CapturedTensor* unsafe_arena_release_captured_tensor(); |
743 | |
744 | void clear_kind(); |
745 | KindCase kind_case() const; |
746 | // @@protoc_insertion_point(class_scope:tensorflow.SavedObject) |
747 | private: |
748 | class _Internal; |
749 | void set_has_user_object(); |
750 | void set_has_asset(); |
751 | void set_has_function(); |
752 | void set_has_variable(); |
753 | void set_has_bare_concrete_function(); |
754 | void set_has_constant(); |
755 | void set_has_resource(); |
756 | void set_has_captured_tensor(); |
757 | |
758 | inline bool has_kind() const; |
759 | inline void clear_has_kind(); |
760 | |
761 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
762 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
763 | typedef void InternalArenaConstructable_; |
764 | typedef void DestructorSkippable_; |
765 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference > children_; |
766 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference > slot_variables_; |
767 | ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
768 | SavedObject_SaveableObjectsEntry_DoNotUse, |
769 | std::string, ::tensorflow::SaveableObject, |
770 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_STRING, |
771 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
772 | 0 > saveable_objects_; |
773 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference > dependencies_; |
774 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr registered_name_; |
775 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr registered_saver_; |
776 | PROTOBUF_NAMESPACE_ID::Any* serialized_user_proto_; |
777 | union KindUnion { |
778 | KindUnion() {} |
779 | ::tensorflow::SavedUserObject* user_object_; |
780 | ::tensorflow::SavedAsset* asset_; |
781 | ::tensorflow::SavedFunction* function_; |
782 | ::tensorflow::SavedVariable* variable_; |
783 | ::tensorflow::SavedBareConcreteFunction* bare_concrete_function_; |
784 | ::tensorflow::SavedConstant* constant_; |
785 | ::tensorflow::SavedResource* resource_; |
786 | ::tensorflow::CapturedTensor* captured_tensor_; |
787 | } kind_; |
788 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
789 | ::PROTOBUF_NAMESPACE_ID::uint32 _oneof_case_[1]; |
790 | |
791 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
792 | }; |
793 | // ------------------------------------------------------------------- |
794 | |
795 | class SavedUserObject : |
796 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedUserObject) */ { |
797 | public: |
798 | SavedUserObject(); |
799 | virtual ~SavedUserObject(); |
800 | |
801 | SavedUserObject(const SavedUserObject& from); |
802 | SavedUserObject(SavedUserObject&& from) noexcept |
803 | : SavedUserObject() { |
804 | *this = ::std::move(from); |
805 | } |
806 | |
807 | inline SavedUserObject& operator=(const SavedUserObject& from) { |
808 | CopyFrom(from); |
809 | return *this; |
810 | } |
811 | inline SavedUserObject& operator=(SavedUserObject&& from) noexcept { |
812 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
813 | if (this != &from) InternalSwap(&from); |
814 | } else { |
815 | CopyFrom(from); |
816 | } |
817 | return *this; |
818 | } |
819 | |
820 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
821 | return GetArenaNoVirtual(); |
822 | } |
823 | inline void* GetMaybeArenaPointer() const final { |
824 | return MaybeArenaPtr(); |
825 | } |
826 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
827 | return GetDescriptor(); |
828 | } |
829 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
830 | return GetMetadataStatic().descriptor; |
831 | } |
832 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
833 | return GetMetadataStatic().reflection; |
834 | } |
835 | static const SavedUserObject& default_instance(); |
836 | |
837 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
838 | static inline const SavedUserObject* internal_default_instance() { |
839 | return reinterpret_cast<const SavedUserObject*>( |
840 | &_SavedUserObject_default_instance_); |
841 | } |
842 | static constexpr int kIndexInFileMessages = |
843 | 4; |
844 | |
845 | friend void swap(SavedUserObject& a, SavedUserObject& b) { |
846 | a.Swap(&b); |
847 | } |
848 | inline void Swap(SavedUserObject* other) { |
849 | if (other == this) return; |
850 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
851 | InternalSwap(other); |
852 | } else { |
853 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
854 | } |
855 | } |
856 | void UnsafeArenaSwap(SavedUserObject* other) { |
857 | if (other == this) return; |
858 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
859 | InternalSwap(other); |
860 | } |
861 | |
862 | // implements Message ---------------------------------------------- |
863 | |
864 | inline SavedUserObject* New() const final { |
865 | return CreateMaybeMessage<SavedUserObject>(nullptr); |
866 | } |
867 | |
868 | SavedUserObject* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
869 | return CreateMaybeMessage<SavedUserObject>(arena); |
870 | } |
871 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
872 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
873 | void CopyFrom(const SavedUserObject& from); |
874 | void MergeFrom(const SavedUserObject& from); |
875 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
876 | bool IsInitialized() const final; |
877 | |
878 | size_t ByteSizeLong() const final; |
879 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
880 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
881 | #else |
882 | bool MergePartialFromCodedStream( |
883 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
884 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
885 | void SerializeWithCachedSizes( |
886 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
887 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
888 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
889 | int GetCachedSize() const final { return _cached_size_.Get(); } |
890 | |
891 | private: |
892 | inline void SharedCtor(); |
893 | inline void SharedDtor(); |
894 | void SetCachedSize(int size) const final; |
895 | void InternalSwap(SavedUserObject* other); |
896 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
897 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
898 | return "tensorflow.SavedUserObject" ; |
899 | } |
900 | protected: |
901 | explicit SavedUserObject(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
902 | private: |
903 | static void ArenaDtor(void* object); |
904 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
905 | private: |
906 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
907 | return _internal_metadata_.arena(); |
908 | } |
909 | inline void* MaybeArenaPtr() const { |
910 | return _internal_metadata_.raw_arena_ptr(); |
911 | } |
912 | public: |
913 | |
914 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
915 | private: |
916 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
917 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
918 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
919 | } |
920 | |
921 | public: |
922 | |
923 | // nested types ---------------------------------------------------- |
924 | |
925 | // accessors ------------------------------------------------------- |
926 | |
927 | enum : int { |
928 | kIdentifierFieldNumber = 1, |
929 | kMetadataFieldNumber = 3, |
930 | kVersionFieldNumber = 2, |
931 | }; |
932 | // string identifier = 1; |
933 | void clear_identifier(); |
934 | const std::string& identifier() const; |
935 | void set_identifier(const std::string& value); |
936 | void set_identifier(std::string&& value); |
937 | void set_identifier(const char* value); |
938 | void set_identifier(const char* value, size_t size); |
939 | std::string* mutable_identifier(); |
940 | std::string* release_identifier(); |
941 | void set_allocated_identifier(std::string* identifier); |
942 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
943 | " string fields are deprecated and will be removed in a" |
944 | " future release." ) |
945 | std::string* unsafe_arena_release_identifier(); |
946 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
947 | " string fields are deprecated and will be removed in a" |
948 | " future release." ) |
949 | void unsafe_arena_set_allocated_identifier( |
950 | std::string* identifier); |
951 | |
952 | // string metadata = 3 [deprecated = true]; |
953 | PROTOBUF_DEPRECATED void clear_metadata(); |
954 | PROTOBUF_DEPRECATED const std::string& metadata() const; |
955 | PROTOBUF_DEPRECATED void set_metadata(const std::string& value); |
956 | PROTOBUF_DEPRECATED void set_metadata(std::string&& value); |
957 | PROTOBUF_DEPRECATED void set_metadata(const char* value); |
958 | PROTOBUF_DEPRECATED void set_metadata(const char* value, size_t size); |
959 | PROTOBUF_DEPRECATED std::string* mutable_metadata(); |
960 | PROTOBUF_DEPRECATED std::string* release_metadata(); |
961 | PROTOBUF_DEPRECATED void set_allocated_metadata(std::string* metadata); |
962 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
963 | " string fields are deprecated and will be removed in a" |
964 | " future release." ) |
965 | std::string* unsafe_arena_release_metadata(); |
966 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
967 | " string fields are deprecated and will be removed in a" |
968 | " future release." ) |
969 | void unsafe_arena_set_allocated_metadata( |
970 | std::string* metadata); |
971 | |
972 | // .tensorflow.VersionDef version = 2; |
973 | bool has_version() const; |
974 | void clear_version(); |
975 | const ::tensorflow::VersionDef& version() const; |
976 | ::tensorflow::VersionDef* release_version(); |
977 | ::tensorflow::VersionDef* mutable_version(); |
978 | void set_allocated_version(::tensorflow::VersionDef* version); |
979 | void unsafe_arena_set_allocated_version( |
980 | ::tensorflow::VersionDef* version); |
981 | ::tensorflow::VersionDef* unsafe_arena_release_version(); |
982 | |
983 | // @@protoc_insertion_point(class_scope:tensorflow.SavedUserObject) |
984 | private: |
985 | class _Internal; |
986 | |
987 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
988 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
989 | typedef void InternalArenaConstructable_; |
990 | typedef void DestructorSkippable_; |
991 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr identifier_; |
992 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr metadata_; |
993 | ::tensorflow::VersionDef* version_; |
994 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
995 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
996 | }; |
997 | // ------------------------------------------------------------------- |
998 | |
999 | class SavedAsset : |
1000 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedAsset) */ { |
1001 | public: |
1002 | SavedAsset(); |
1003 | virtual ~SavedAsset(); |
1004 | |
1005 | SavedAsset(const SavedAsset& from); |
1006 | SavedAsset(SavedAsset&& from) noexcept |
1007 | : SavedAsset() { |
1008 | *this = ::std::move(from); |
1009 | } |
1010 | |
1011 | inline SavedAsset& operator=(const SavedAsset& from) { |
1012 | CopyFrom(from); |
1013 | return *this; |
1014 | } |
1015 | inline SavedAsset& operator=(SavedAsset&& from) noexcept { |
1016 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1017 | if (this != &from) InternalSwap(&from); |
1018 | } else { |
1019 | CopyFrom(from); |
1020 | } |
1021 | return *this; |
1022 | } |
1023 | |
1024 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1025 | return GetArenaNoVirtual(); |
1026 | } |
1027 | inline void* GetMaybeArenaPointer() const final { |
1028 | return MaybeArenaPtr(); |
1029 | } |
1030 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1031 | return GetDescriptor(); |
1032 | } |
1033 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1034 | return GetMetadataStatic().descriptor; |
1035 | } |
1036 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1037 | return GetMetadataStatic().reflection; |
1038 | } |
1039 | static const SavedAsset& default_instance(); |
1040 | |
1041 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1042 | static inline const SavedAsset* internal_default_instance() { |
1043 | return reinterpret_cast<const SavedAsset*>( |
1044 | &_SavedAsset_default_instance_); |
1045 | } |
1046 | static constexpr int kIndexInFileMessages = |
1047 | 5; |
1048 | |
1049 | friend void swap(SavedAsset& a, SavedAsset& b) { |
1050 | a.Swap(&b); |
1051 | } |
1052 | inline void Swap(SavedAsset* other) { |
1053 | if (other == this) return; |
1054 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1055 | InternalSwap(other); |
1056 | } else { |
1057 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1058 | } |
1059 | } |
1060 | void UnsafeArenaSwap(SavedAsset* other) { |
1061 | if (other == this) return; |
1062 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1063 | InternalSwap(other); |
1064 | } |
1065 | |
1066 | // implements Message ---------------------------------------------- |
1067 | |
1068 | inline SavedAsset* New() const final { |
1069 | return CreateMaybeMessage<SavedAsset>(nullptr); |
1070 | } |
1071 | |
1072 | SavedAsset* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1073 | return CreateMaybeMessage<SavedAsset>(arena); |
1074 | } |
1075 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1076 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1077 | void CopyFrom(const SavedAsset& from); |
1078 | void MergeFrom(const SavedAsset& from); |
1079 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1080 | bool IsInitialized() const final; |
1081 | |
1082 | size_t ByteSizeLong() const final; |
1083 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1084 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1085 | #else |
1086 | bool MergePartialFromCodedStream( |
1087 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1088 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1089 | void SerializeWithCachedSizes( |
1090 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1091 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1092 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1093 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1094 | |
1095 | private: |
1096 | inline void SharedCtor(); |
1097 | inline void SharedDtor(); |
1098 | void SetCachedSize(int size) const final; |
1099 | void InternalSwap(SavedAsset* other); |
1100 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1101 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1102 | return "tensorflow.SavedAsset" ; |
1103 | } |
1104 | protected: |
1105 | explicit SavedAsset(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1106 | private: |
1107 | static void ArenaDtor(void* object); |
1108 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1109 | private: |
1110 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1111 | return _internal_metadata_.arena(); |
1112 | } |
1113 | inline void* MaybeArenaPtr() const { |
1114 | return _internal_metadata_.raw_arena_ptr(); |
1115 | } |
1116 | public: |
1117 | |
1118 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1119 | private: |
1120 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1121 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
1122 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
1123 | } |
1124 | |
1125 | public: |
1126 | |
1127 | // nested types ---------------------------------------------------- |
1128 | |
1129 | // accessors ------------------------------------------------------- |
1130 | |
1131 | enum : int { |
1132 | kAssetFileDefIndexFieldNumber = 1, |
1133 | }; |
1134 | // int32 asset_file_def_index = 1; |
1135 | void clear_asset_file_def_index(); |
1136 | ::PROTOBUF_NAMESPACE_ID::int32 asset_file_def_index() const; |
1137 | void set_asset_file_def_index(::PROTOBUF_NAMESPACE_ID::int32 value); |
1138 | |
1139 | // @@protoc_insertion_point(class_scope:tensorflow.SavedAsset) |
1140 | private: |
1141 | class _Internal; |
1142 | |
1143 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1144 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1145 | typedef void InternalArenaConstructable_; |
1146 | typedef void DestructorSkippable_; |
1147 | ::PROTOBUF_NAMESPACE_ID::int32 asset_file_def_index_; |
1148 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1149 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
1150 | }; |
1151 | // ------------------------------------------------------------------- |
1152 | |
1153 | class SavedFunction : |
1154 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedFunction) */ { |
1155 | public: |
1156 | SavedFunction(); |
1157 | virtual ~SavedFunction(); |
1158 | |
1159 | SavedFunction(const SavedFunction& from); |
1160 | SavedFunction(SavedFunction&& from) noexcept |
1161 | : SavedFunction() { |
1162 | *this = ::std::move(from); |
1163 | } |
1164 | |
1165 | inline SavedFunction& operator=(const SavedFunction& from) { |
1166 | CopyFrom(from); |
1167 | return *this; |
1168 | } |
1169 | inline SavedFunction& operator=(SavedFunction&& from) noexcept { |
1170 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1171 | if (this != &from) InternalSwap(&from); |
1172 | } else { |
1173 | CopyFrom(from); |
1174 | } |
1175 | return *this; |
1176 | } |
1177 | |
1178 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1179 | return GetArenaNoVirtual(); |
1180 | } |
1181 | inline void* GetMaybeArenaPointer() const final { |
1182 | return MaybeArenaPtr(); |
1183 | } |
1184 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1185 | return GetDescriptor(); |
1186 | } |
1187 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1188 | return GetMetadataStatic().descriptor; |
1189 | } |
1190 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1191 | return GetMetadataStatic().reflection; |
1192 | } |
1193 | static const SavedFunction& default_instance(); |
1194 | |
1195 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1196 | static inline const SavedFunction* internal_default_instance() { |
1197 | return reinterpret_cast<const SavedFunction*>( |
1198 | &_SavedFunction_default_instance_); |
1199 | } |
1200 | static constexpr int kIndexInFileMessages = |
1201 | 6; |
1202 | |
1203 | friend void swap(SavedFunction& a, SavedFunction& b) { |
1204 | a.Swap(&b); |
1205 | } |
1206 | inline void Swap(SavedFunction* other) { |
1207 | if (other == this) return; |
1208 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1209 | InternalSwap(other); |
1210 | } else { |
1211 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1212 | } |
1213 | } |
1214 | void UnsafeArenaSwap(SavedFunction* other) { |
1215 | if (other == this) return; |
1216 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1217 | InternalSwap(other); |
1218 | } |
1219 | |
1220 | // implements Message ---------------------------------------------- |
1221 | |
1222 | inline SavedFunction* New() const final { |
1223 | return CreateMaybeMessage<SavedFunction>(nullptr); |
1224 | } |
1225 | |
1226 | SavedFunction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1227 | return CreateMaybeMessage<SavedFunction>(arena); |
1228 | } |
1229 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1230 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1231 | void CopyFrom(const SavedFunction& from); |
1232 | void MergeFrom(const SavedFunction& from); |
1233 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1234 | bool IsInitialized() const final; |
1235 | |
1236 | size_t ByteSizeLong() const final; |
1237 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1238 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1239 | #else |
1240 | bool MergePartialFromCodedStream( |
1241 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1242 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1243 | void SerializeWithCachedSizes( |
1244 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1245 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1246 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1247 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1248 | |
1249 | private: |
1250 | inline void SharedCtor(); |
1251 | inline void SharedDtor(); |
1252 | void SetCachedSize(int size) const final; |
1253 | void InternalSwap(SavedFunction* other); |
1254 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1255 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1256 | return "tensorflow.SavedFunction" ; |
1257 | } |
1258 | protected: |
1259 | explicit SavedFunction(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1260 | private: |
1261 | static void ArenaDtor(void* object); |
1262 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1263 | private: |
1264 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1265 | return _internal_metadata_.arena(); |
1266 | } |
1267 | inline void* MaybeArenaPtr() const { |
1268 | return _internal_metadata_.raw_arena_ptr(); |
1269 | } |
1270 | public: |
1271 | |
1272 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1273 | private: |
1274 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1275 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
1276 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
1277 | } |
1278 | |
1279 | public: |
1280 | |
1281 | // nested types ---------------------------------------------------- |
1282 | |
1283 | // accessors ------------------------------------------------------- |
1284 | |
1285 | enum : int { |
1286 | kConcreteFunctionsFieldNumber = 1, |
1287 | kFunctionSpecFieldNumber = 2, |
1288 | }; |
1289 | // repeated string concrete_functions = 1; |
1290 | int concrete_functions_size() const; |
1291 | void clear_concrete_functions(); |
1292 | const std::string& concrete_functions(int index) const; |
1293 | std::string* mutable_concrete_functions(int index); |
1294 | void set_concrete_functions(int index, const std::string& value); |
1295 | void set_concrete_functions(int index, std::string&& value); |
1296 | void set_concrete_functions(int index, const char* value); |
1297 | void set_concrete_functions(int index, const char* value, size_t size); |
1298 | std::string* add_concrete_functions(); |
1299 | void add_concrete_functions(const std::string& value); |
1300 | void add_concrete_functions(std::string&& value); |
1301 | void add_concrete_functions(const char* value); |
1302 | void add_concrete_functions(const char* value, size_t size); |
1303 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& concrete_functions() const; |
1304 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_concrete_functions(); |
1305 | |
1306 | // .tensorflow.FunctionSpec function_spec = 2; |
1307 | bool has_function_spec() const; |
1308 | void clear_function_spec(); |
1309 | const ::tensorflow::FunctionSpec& function_spec() const; |
1310 | ::tensorflow::FunctionSpec* release_function_spec(); |
1311 | ::tensorflow::FunctionSpec* mutable_function_spec(); |
1312 | void set_allocated_function_spec(::tensorflow::FunctionSpec* function_spec); |
1313 | void unsafe_arena_set_allocated_function_spec( |
1314 | ::tensorflow::FunctionSpec* function_spec); |
1315 | ::tensorflow::FunctionSpec* unsafe_arena_release_function_spec(); |
1316 | |
1317 | // @@protoc_insertion_point(class_scope:tensorflow.SavedFunction) |
1318 | private: |
1319 | class _Internal; |
1320 | |
1321 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1322 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1323 | typedef void InternalArenaConstructable_; |
1324 | typedef void DestructorSkippable_; |
1325 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> concrete_functions_; |
1326 | ::tensorflow::FunctionSpec* function_spec_; |
1327 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1328 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
1329 | }; |
1330 | // ------------------------------------------------------------------- |
1331 | |
1332 | class CapturedTensor : |
1333 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.CapturedTensor) */ { |
1334 | public: |
1335 | CapturedTensor(); |
1336 | virtual ~CapturedTensor(); |
1337 | |
1338 | CapturedTensor(const CapturedTensor& from); |
1339 | CapturedTensor(CapturedTensor&& from) noexcept |
1340 | : CapturedTensor() { |
1341 | *this = ::std::move(from); |
1342 | } |
1343 | |
1344 | inline CapturedTensor& operator=(const CapturedTensor& from) { |
1345 | CopyFrom(from); |
1346 | return *this; |
1347 | } |
1348 | inline CapturedTensor& operator=(CapturedTensor&& from) noexcept { |
1349 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1350 | if (this != &from) InternalSwap(&from); |
1351 | } else { |
1352 | CopyFrom(from); |
1353 | } |
1354 | return *this; |
1355 | } |
1356 | |
1357 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1358 | return GetArenaNoVirtual(); |
1359 | } |
1360 | inline void* GetMaybeArenaPointer() const final { |
1361 | return MaybeArenaPtr(); |
1362 | } |
1363 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1364 | return GetDescriptor(); |
1365 | } |
1366 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1367 | return GetMetadataStatic().descriptor; |
1368 | } |
1369 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1370 | return GetMetadataStatic().reflection; |
1371 | } |
1372 | static const CapturedTensor& default_instance(); |
1373 | |
1374 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1375 | static inline const CapturedTensor* internal_default_instance() { |
1376 | return reinterpret_cast<const CapturedTensor*>( |
1377 | &_CapturedTensor_default_instance_); |
1378 | } |
1379 | static constexpr int kIndexInFileMessages = |
1380 | 7; |
1381 | |
1382 | friend void swap(CapturedTensor& a, CapturedTensor& b) { |
1383 | a.Swap(&b); |
1384 | } |
1385 | inline void Swap(CapturedTensor* other) { |
1386 | if (other == this) return; |
1387 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1388 | InternalSwap(other); |
1389 | } else { |
1390 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1391 | } |
1392 | } |
1393 | void UnsafeArenaSwap(CapturedTensor* other) { |
1394 | if (other == this) return; |
1395 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1396 | InternalSwap(other); |
1397 | } |
1398 | |
1399 | // implements Message ---------------------------------------------- |
1400 | |
1401 | inline CapturedTensor* New() const final { |
1402 | return CreateMaybeMessage<CapturedTensor>(nullptr); |
1403 | } |
1404 | |
1405 | CapturedTensor* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1406 | return CreateMaybeMessage<CapturedTensor>(arena); |
1407 | } |
1408 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1409 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1410 | void CopyFrom(const CapturedTensor& from); |
1411 | void MergeFrom(const CapturedTensor& from); |
1412 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1413 | bool IsInitialized() const final; |
1414 | |
1415 | size_t ByteSizeLong() const final; |
1416 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1417 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1418 | #else |
1419 | bool MergePartialFromCodedStream( |
1420 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1421 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1422 | void SerializeWithCachedSizes( |
1423 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1424 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1425 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1426 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1427 | |
1428 | private: |
1429 | inline void SharedCtor(); |
1430 | inline void SharedDtor(); |
1431 | void SetCachedSize(int size) const final; |
1432 | void InternalSwap(CapturedTensor* other); |
1433 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1434 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1435 | return "tensorflow.CapturedTensor" ; |
1436 | } |
1437 | protected: |
1438 | explicit CapturedTensor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1439 | private: |
1440 | static void ArenaDtor(void* object); |
1441 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1442 | private: |
1443 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1444 | return _internal_metadata_.arena(); |
1445 | } |
1446 | inline void* MaybeArenaPtr() const { |
1447 | return _internal_metadata_.raw_arena_ptr(); |
1448 | } |
1449 | public: |
1450 | |
1451 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1452 | private: |
1453 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1454 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
1455 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
1456 | } |
1457 | |
1458 | public: |
1459 | |
1460 | // nested types ---------------------------------------------------- |
1461 | |
1462 | // accessors ------------------------------------------------------- |
1463 | |
1464 | enum : int { |
1465 | kNameFieldNumber = 1, |
1466 | kConcreteFunctionFieldNumber = 2, |
1467 | }; |
1468 | // string name = 1; |
1469 | void clear_name(); |
1470 | const std::string& name() const; |
1471 | void set_name(const std::string& value); |
1472 | void set_name(std::string&& value); |
1473 | void set_name(const char* value); |
1474 | void set_name(const char* value, size_t size); |
1475 | std::string* mutable_name(); |
1476 | std::string* release_name(); |
1477 | void set_allocated_name(std::string* name); |
1478 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1479 | " string fields are deprecated and will be removed in a" |
1480 | " future release." ) |
1481 | std::string* unsafe_arena_release_name(); |
1482 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1483 | " string fields are deprecated and will be removed in a" |
1484 | " future release." ) |
1485 | void unsafe_arena_set_allocated_name( |
1486 | std::string* name); |
1487 | |
1488 | // string concrete_function = 2; |
1489 | void clear_concrete_function(); |
1490 | const std::string& concrete_function() const; |
1491 | void set_concrete_function(const std::string& value); |
1492 | void set_concrete_function(std::string&& value); |
1493 | void set_concrete_function(const char* value); |
1494 | void set_concrete_function(const char* value, size_t size); |
1495 | std::string* mutable_concrete_function(); |
1496 | std::string* release_concrete_function(); |
1497 | void set_allocated_concrete_function(std::string* concrete_function); |
1498 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1499 | " string fields are deprecated and will be removed in a" |
1500 | " future release." ) |
1501 | std::string* unsafe_arena_release_concrete_function(); |
1502 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1503 | " string fields are deprecated and will be removed in a" |
1504 | " future release." ) |
1505 | void unsafe_arena_set_allocated_concrete_function( |
1506 | std::string* concrete_function); |
1507 | |
1508 | // @@protoc_insertion_point(class_scope:tensorflow.CapturedTensor) |
1509 | private: |
1510 | class _Internal; |
1511 | |
1512 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1513 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1514 | typedef void InternalArenaConstructable_; |
1515 | typedef void DestructorSkippable_; |
1516 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
1517 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr concrete_function_; |
1518 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1519 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
1520 | }; |
1521 | // ------------------------------------------------------------------- |
1522 | |
1523 | class SavedConcreteFunction : |
1524 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedConcreteFunction) */ { |
1525 | public: |
1526 | SavedConcreteFunction(); |
1527 | virtual ~SavedConcreteFunction(); |
1528 | |
1529 | SavedConcreteFunction(const SavedConcreteFunction& from); |
1530 | SavedConcreteFunction(SavedConcreteFunction&& from) noexcept |
1531 | : SavedConcreteFunction() { |
1532 | *this = ::std::move(from); |
1533 | } |
1534 | |
1535 | inline SavedConcreteFunction& operator=(const SavedConcreteFunction& from) { |
1536 | CopyFrom(from); |
1537 | return *this; |
1538 | } |
1539 | inline SavedConcreteFunction& operator=(SavedConcreteFunction&& from) noexcept { |
1540 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1541 | if (this != &from) InternalSwap(&from); |
1542 | } else { |
1543 | CopyFrom(from); |
1544 | } |
1545 | return *this; |
1546 | } |
1547 | |
1548 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1549 | return GetArenaNoVirtual(); |
1550 | } |
1551 | inline void* GetMaybeArenaPointer() const final { |
1552 | return MaybeArenaPtr(); |
1553 | } |
1554 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1555 | return GetDescriptor(); |
1556 | } |
1557 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1558 | return GetMetadataStatic().descriptor; |
1559 | } |
1560 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1561 | return GetMetadataStatic().reflection; |
1562 | } |
1563 | static const SavedConcreteFunction& default_instance(); |
1564 | |
1565 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1566 | static inline const SavedConcreteFunction* internal_default_instance() { |
1567 | return reinterpret_cast<const SavedConcreteFunction*>( |
1568 | &_SavedConcreteFunction_default_instance_); |
1569 | } |
1570 | static constexpr int kIndexInFileMessages = |
1571 | 8; |
1572 | |
1573 | friend void swap(SavedConcreteFunction& a, SavedConcreteFunction& b) { |
1574 | a.Swap(&b); |
1575 | } |
1576 | inline void Swap(SavedConcreteFunction* other) { |
1577 | if (other == this) return; |
1578 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1579 | InternalSwap(other); |
1580 | } else { |
1581 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1582 | } |
1583 | } |
1584 | void UnsafeArenaSwap(SavedConcreteFunction* other) { |
1585 | if (other == this) return; |
1586 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1587 | InternalSwap(other); |
1588 | } |
1589 | |
1590 | // implements Message ---------------------------------------------- |
1591 | |
1592 | inline SavedConcreteFunction* New() const final { |
1593 | return CreateMaybeMessage<SavedConcreteFunction>(nullptr); |
1594 | } |
1595 | |
1596 | SavedConcreteFunction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1597 | return CreateMaybeMessage<SavedConcreteFunction>(arena); |
1598 | } |
1599 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1600 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1601 | void CopyFrom(const SavedConcreteFunction& from); |
1602 | void MergeFrom(const SavedConcreteFunction& from); |
1603 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1604 | bool IsInitialized() const final; |
1605 | |
1606 | size_t ByteSizeLong() const final; |
1607 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1608 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1609 | #else |
1610 | bool MergePartialFromCodedStream( |
1611 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1612 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1613 | void SerializeWithCachedSizes( |
1614 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1615 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1616 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1617 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1618 | |
1619 | private: |
1620 | inline void SharedCtor(); |
1621 | inline void SharedDtor(); |
1622 | void SetCachedSize(int size) const final; |
1623 | void InternalSwap(SavedConcreteFunction* other); |
1624 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1625 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1626 | return "tensorflow.SavedConcreteFunction" ; |
1627 | } |
1628 | protected: |
1629 | explicit SavedConcreteFunction(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1630 | private: |
1631 | static void ArenaDtor(void* object); |
1632 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1633 | private: |
1634 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1635 | return _internal_metadata_.arena(); |
1636 | } |
1637 | inline void* MaybeArenaPtr() const { |
1638 | return _internal_metadata_.raw_arena_ptr(); |
1639 | } |
1640 | public: |
1641 | |
1642 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1643 | private: |
1644 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1645 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
1646 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
1647 | } |
1648 | |
1649 | public: |
1650 | |
1651 | // nested types ---------------------------------------------------- |
1652 | |
1653 | // accessors ------------------------------------------------------- |
1654 | |
1655 | enum : int { |
1656 | kBoundInputsFieldNumber = 2, |
1657 | kCanonicalizedInputSignatureFieldNumber = 3, |
1658 | kOutputSignatureFieldNumber = 4, |
1659 | }; |
1660 | // repeated int32 bound_inputs = 2; |
1661 | int bound_inputs_size() const; |
1662 | void clear_bound_inputs(); |
1663 | ::PROTOBUF_NAMESPACE_ID::int32 bound_inputs(int index) const; |
1664 | void set_bound_inputs(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); |
1665 | void add_bound_inputs(::PROTOBUF_NAMESPACE_ID::int32 value); |
1666 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
1667 | bound_inputs() const; |
1668 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
1669 | mutable_bound_inputs(); |
1670 | |
1671 | // .tensorflow.StructuredValue canonicalized_input_signature = 3; |
1672 | bool has_canonicalized_input_signature() const; |
1673 | void clear_canonicalized_input_signature(); |
1674 | const ::tensorflow::StructuredValue& canonicalized_input_signature() const; |
1675 | ::tensorflow::StructuredValue* release_canonicalized_input_signature(); |
1676 | ::tensorflow::StructuredValue* mutable_canonicalized_input_signature(); |
1677 | void set_allocated_canonicalized_input_signature(::tensorflow::StructuredValue* canonicalized_input_signature); |
1678 | void unsafe_arena_set_allocated_canonicalized_input_signature( |
1679 | ::tensorflow::StructuredValue* canonicalized_input_signature); |
1680 | ::tensorflow::StructuredValue* unsafe_arena_release_canonicalized_input_signature(); |
1681 | |
1682 | // .tensorflow.StructuredValue output_signature = 4; |
1683 | bool has_output_signature() const; |
1684 | void clear_output_signature(); |
1685 | const ::tensorflow::StructuredValue& output_signature() const; |
1686 | ::tensorflow::StructuredValue* release_output_signature(); |
1687 | ::tensorflow::StructuredValue* mutable_output_signature(); |
1688 | void set_allocated_output_signature(::tensorflow::StructuredValue* output_signature); |
1689 | void unsafe_arena_set_allocated_output_signature( |
1690 | ::tensorflow::StructuredValue* output_signature); |
1691 | ::tensorflow::StructuredValue* unsafe_arena_release_output_signature(); |
1692 | |
1693 | // @@protoc_insertion_point(class_scope:tensorflow.SavedConcreteFunction) |
1694 | private: |
1695 | class _Internal; |
1696 | |
1697 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1698 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1699 | typedef void InternalArenaConstructable_; |
1700 | typedef void DestructorSkippable_; |
1701 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > bound_inputs_; |
1702 | mutable std::atomic<int> _bound_inputs_cached_byte_size_; |
1703 | ::tensorflow::StructuredValue* canonicalized_input_signature_; |
1704 | ::tensorflow::StructuredValue* output_signature_; |
1705 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1706 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
1707 | }; |
1708 | // ------------------------------------------------------------------- |
1709 | |
1710 | class SavedBareConcreteFunction : |
1711 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedBareConcreteFunction) */ { |
1712 | public: |
1713 | SavedBareConcreteFunction(); |
1714 | virtual ~SavedBareConcreteFunction(); |
1715 | |
1716 | SavedBareConcreteFunction(const SavedBareConcreteFunction& from); |
1717 | SavedBareConcreteFunction(SavedBareConcreteFunction&& from) noexcept |
1718 | : SavedBareConcreteFunction() { |
1719 | *this = ::std::move(from); |
1720 | } |
1721 | |
1722 | inline SavedBareConcreteFunction& operator=(const SavedBareConcreteFunction& from) { |
1723 | CopyFrom(from); |
1724 | return *this; |
1725 | } |
1726 | inline SavedBareConcreteFunction& operator=(SavedBareConcreteFunction&& from) noexcept { |
1727 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1728 | if (this != &from) InternalSwap(&from); |
1729 | } else { |
1730 | CopyFrom(from); |
1731 | } |
1732 | return *this; |
1733 | } |
1734 | |
1735 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1736 | return GetArenaNoVirtual(); |
1737 | } |
1738 | inline void* GetMaybeArenaPointer() const final { |
1739 | return MaybeArenaPtr(); |
1740 | } |
1741 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1742 | return GetDescriptor(); |
1743 | } |
1744 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1745 | return GetMetadataStatic().descriptor; |
1746 | } |
1747 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1748 | return GetMetadataStatic().reflection; |
1749 | } |
1750 | static const SavedBareConcreteFunction& default_instance(); |
1751 | |
1752 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1753 | static inline const SavedBareConcreteFunction* internal_default_instance() { |
1754 | return reinterpret_cast<const SavedBareConcreteFunction*>( |
1755 | &_SavedBareConcreteFunction_default_instance_); |
1756 | } |
1757 | static constexpr int kIndexInFileMessages = |
1758 | 9; |
1759 | |
1760 | friend void swap(SavedBareConcreteFunction& a, SavedBareConcreteFunction& b) { |
1761 | a.Swap(&b); |
1762 | } |
1763 | inline void Swap(SavedBareConcreteFunction* other) { |
1764 | if (other == this) return; |
1765 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1766 | InternalSwap(other); |
1767 | } else { |
1768 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1769 | } |
1770 | } |
1771 | void UnsafeArenaSwap(SavedBareConcreteFunction* other) { |
1772 | if (other == this) return; |
1773 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1774 | InternalSwap(other); |
1775 | } |
1776 | |
1777 | // implements Message ---------------------------------------------- |
1778 | |
1779 | inline SavedBareConcreteFunction* New() const final { |
1780 | return CreateMaybeMessage<SavedBareConcreteFunction>(nullptr); |
1781 | } |
1782 | |
1783 | SavedBareConcreteFunction* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1784 | return CreateMaybeMessage<SavedBareConcreteFunction>(arena); |
1785 | } |
1786 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1787 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1788 | void CopyFrom(const SavedBareConcreteFunction& from); |
1789 | void MergeFrom(const SavedBareConcreteFunction& from); |
1790 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1791 | bool IsInitialized() const final; |
1792 | |
1793 | size_t ByteSizeLong() const final; |
1794 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1795 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
1796 | #else |
1797 | bool MergePartialFromCodedStream( |
1798 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
1799 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
1800 | void SerializeWithCachedSizes( |
1801 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
1802 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
1803 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
1804 | int GetCachedSize() const final { return _cached_size_.Get(); } |
1805 | |
1806 | private: |
1807 | inline void SharedCtor(); |
1808 | inline void SharedDtor(); |
1809 | void SetCachedSize(int size) const final; |
1810 | void InternalSwap(SavedBareConcreteFunction* other); |
1811 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
1812 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
1813 | return "tensorflow.SavedBareConcreteFunction" ; |
1814 | } |
1815 | protected: |
1816 | explicit SavedBareConcreteFunction(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1817 | private: |
1818 | static void ArenaDtor(void* object); |
1819 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
1820 | private: |
1821 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
1822 | return _internal_metadata_.arena(); |
1823 | } |
1824 | inline void* MaybeArenaPtr() const { |
1825 | return _internal_metadata_.raw_arena_ptr(); |
1826 | } |
1827 | public: |
1828 | |
1829 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
1830 | private: |
1831 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
1832 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
1833 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
1834 | } |
1835 | |
1836 | public: |
1837 | |
1838 | // nested types ---------------------------------------------------- |
1839 | |
1840 | // accessors ------------------------------------------------------- |
1841 | |
1842 | enum : int { |
1843 | kArgumentKeywordsFieldNumber = 2, |
1844 | kConcreteFunctionNameFieldNumber = 1, |
1845 | kFunctionSpecFieldNumber = 4, |
1846 | kAllowedPositionalArgumentsFieldNumber = 3, |
1847 | }; |
1848 | // repeated string argument_keywords = 2; |
1849 | int argument_keywords_size() const; |
1850 | void clear_argument_keywords(); |
1851 | const std::string& argument_keywords(int index) const; |
1852 | std::string* mutable_argument_keywords(int index); |
1853 | void set_argument_keywords(int index, const std::string& value); |
1854 | void set_argument_keywords(int index, std::string&& value); |
1855 | void set_argument_keywords(int index, const char* value); |
1856 | void set_argument_keywords(int index, const char* value, size_t size); |
1857 | std::string* add_argument_keywords(); |
1858 | void add_argument_keywords(const std::string& value); |
1859 | void add_argument_keywords(std::string&& value); |
1860 | void add_argument_keywords(const char* value); |
1861 | void add_argument_keywords(const char* value, size_t size); |
1862 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& argument_keywords() const; |
1863 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_argument_keywords(); |
1864 | |
1865 | // string concrete_function_name = 1; |
1866 | void clear_concrete_function_name(); |
1867 | const std::string& concrete_function_name() const; |
1868 | void set_concrete_function_name(const std::string& value); |
1869 | void set_concrete_function_name(std::string&& value); |
1870 | void set_concrete_function_name(const char* value); |
1871 | void set_concrete_function_name(const char* value, size_t size); |
1872 | std::string* mutable_concrete_function_name(); |
1873 | std::string* release_concrete_function_name(); |
1874 | void set_allocated_concrete_function_name(std::string* concrete_function_name); |
1875 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1876 | " string fields are deprecated and will be removed in a" |
1877 | " future release." ) |
1878 | std::string* unsafe_arena_release_concrete_function_name(); |
1879 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
1880 | " string fields are deprecated and will be removed in a" |
1881 | " future release." ) |
1882 | void unsafe_arena_set_allocated_concrete_function_name( |
1883 | std::string* concrete_function_name); |
1884 | |
1885 | // .tensorflow.FunctionSpec function_spec = 4; |
1886 | bool has_function_spec() const; |
1887 | void clear_function_spec(); |
1888 | const ::tensorflow::FunctionSpec& function_spec() const; |
1889 | ::tensorflow::FunctionSpec* release_function_spec(); |
1890 | ::tensorflow::FunctionSpec* mutable_function_spec(); |
1891 | void set_allocated_function_spec(::tensorflow::FunctionSpec* function_spec); |
1892 | void unsafe_arena_set_allocated_function_spec( |
1893 | ::tensorflow::FunctionSpec* function_spec); |
1894 | ::tensorflow::FunctionSpec* unsafe_arena_release_function_spec(); |
1895 | |
1896 | // int64 allowed_positional_arguments = 3; |
1897 | void clear_allowed_positional_arguments(); |
1898 | ::PROTOBUF_NAMESPACE_ID::int64 allowed_positional_arguments() const; |
1899 | void set_allowed_positional_arguments(::PROTOBUF_NAMESPACE_ID::int64 value); |
1900 | |
1901 | // @@protoc_insertion_point(class_scope:tensorflow.SavedBareConcreteFunction) |
1902 | private: |
1903 | class _Internal; |
1904 | |
1905 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
1906 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
1907 | typedef void InternalArenaConstructable_; |
1908 | typedef void DestructorSkippable_; |
1909 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> argument_keywords_; |
1910 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr concrete_function_name_; |
1911 | ::tensorflow::FunctionSpec* function_spec_; |
1912 | ::PROTOBUF_NAMESPACE_ID::int64 allowed_positional_arguments_; |
1913 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
1914 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
1915 | }; |
1916 | // ------------------------------------------------------------------- |
1917 | |
1918 | class SavedConstant : |
1919 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedConstant) */ { |
1920 | public: |
1921 | SavedConstant(); |
1922 | virtual ~SavedConstant(); |
1923 | |
1924 | SavedConstant(const SavedConstant& from); |
1925 | SavedConstant(SavedConstant&& from) noexcept |
1926 | : SavedConstant() { |
1927 | *this = ::std::move(from); |
1928 | } |
1929 | |
1930 | inline SavedConstant& operator=(const SavedConstant& from) { |
1931 | CopyFrom(from); |
1932 | return *this; |
1933 | } |
1934 | inline SavedConstant& operator=(SavedConstant&& from) noexcept { |
1935 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
1936 | if (this != &from) InternalSwap(&from); |
1937 | } else { |
1938 | CopyFrom(from); |
1939 | } |
1940 | return *this; |
1941 | } |
1942 | |
1943 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
1944 | return GetArenaNoVirtual(); |
1945 | } |
1946 | inline void* GetMaybeArenaPointer() const final { |
1947 | return MaybeArenaPtr(); |
1948 | } |
1949 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
1950 | return GetDescriptor(); |
1951 | } |
1952 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
1953 | return GetMetadataStatic().descriptor; |
1954 | } |
1955 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
1956 | return GetMetadataStatic().reflection; |
1957 | } |
1958 | static const SavedConstant& default_instance(); |
1959 | |
1960 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
1961 | static inline const SavedConstant* internal_default_instance() { |
1962 | return reinterpret_cast<const SavedConstant*>( |
1963 | &_SavedConstant_default_instance_); |
1964 | } |
1965 | static constexpr int kIndexInFileMessages = |
1966 | 10; |
1967 | |
1968 | friend void swap(SavedConstant& a, SavedConstant& b) { |
1969 | a.Swap(&b); |
1970 | } |
1971 | inline void Swap(SavedConstant* other) { |
1972 | if (other == this) return; |
1973 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
1974 | InternalSwap(other); |
1975 | } else { |
1976 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
1977 | } |
1978 | } |
1979 | void UnsafeArenaSwap(SavedConstant* other) { |
1980 | if (other == this) return; |
1981 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
1982 | InternalSwap(other); |
1983 | } |
1984 | |
1985 | // implements Message ---------------------------------------------- |
1986 | |
1987 | inline SavedConstant* New() const final { |
1988 | return CreateMaybeMessage<SavedConstant>(nullptr); |
1989 | } |
1990 | |
1991 | SavedConstant* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
1992 | return CreateMaybeMessage<SavedConstant>(arena); |
1993 | } |
1994 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1995 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
1996 | void CopyFrom(const SavedConstant& from); |
1997 | void MergeFrom(const SavedConstant& from); |
1998 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
1999 | bool IsInitialized() const final; |
2000 | |
2001 | size_t ByteSizeLong() const final; |
2002 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2003 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2004 | #else |
2005 | bool MergePartialFromCodedStream( |
2006 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
2007 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2008 | void SerializeWithCachedSizes( |
2009 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
2010 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
2011 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
2012 | int GetCachedSize() const final { return _cached_size_.Get(); } |
2013 | |
2014 | private: |
2015 | inline void SharedCtor(); |
2016 | inline void SharedDtor(); |
2017 | void SetCachedSize(int size) const final; |
2018 | void InternalSwap(SavedConstant* other); |
2019 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2020 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2021 | return "tensorflow.SavedConstant" ; |
2022 | } |
2023 | protected: |
2024 | explicit SavedConstant(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2025 | private: |
2026 | static void ArenaDtor(void* object); |
2027 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2028 | private: |
2029 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
2030 | return _internal_metadata_.arena(); |
2031 | } |
2032 | inline void* MaybeArenaPtr() const { |
2033 | return _internal_metadata_.raw_arena_ptr(); |
2034 | } |
2035 | public: |
2036 | |
2037 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2038 | private: |
2039 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
2040 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
2041 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
2042 | } |
2043 | |
2044 | public: |
2045 | |
2046 | // nested types ---------------------------------------------------- |
2047 | |
2048 | // accessors ------------------------------------------------------- |
2049 | |
2050 | enum : int { |
2051 | kOperationFieldNumber = 1, |
2052 | }; |
2053 | // string operation = 1; |
2054 | void clear_operation(); |
2055 | const std::string& operation() const; |
2056 | void set_operation(const std::string& value); |
2057 | void set_operation(std::string&& value); |
2058 | void set_operation(const char* value); |
2059 | void set_operation(const char* value, size_t size); |
2060 | std::string* mutable_operation(); |
2061 | std::string* release_operation(); |
2062 | void set_allocated_operation(std::string* operation); |
2063 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
2064 | " string fields are deprecated and will be removed in a" |
2065 | " future release." ) |
2066 | std::string* unsafe_arena_release_operation(); |
2067 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
2068 | " string fields are deprecated and will be removed in a" |
2069 | " future release." ) |
2070 | void unsafe_arena_set_allocated_operation( |
2071 | std::string* operation); |
2072 | |
2073 | // @@protoc_insertion_point(class_scope:tensorflow.SavedConstant) |
2074 | private: |
2075 | class _Internal; |
2076 | |
2077 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
2078 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2079 | typedef void InternalArenaConstructable_; |
2080 | typedef void DestructorSkippable_; |
2081 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr operation_; |
2082 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2083 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
2084 | }; |
2085 | // ------------------------------------------------------------------- |
2086 | |
2087 | class SavedVariable : |
2088 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedVariable) */ { |
2089 | public: |
2090 | SavedVariable(); |
2091 | virtual ~SavedVariable(); |
2092 | |
2093 | SavedVariable(const SavedVariable& from); |
2094 | SavedVariable(SavedVariable&& from) noexcept |
2095 | : SavedVariable() { |
2096 | *this = ::std::move(from); |
2097 | } |
2098 | |
2099 | inline SavedVariable& operator=(const SavedVariable& from) { |
2100 | CopyFrom(from); |
2101 | return *this; |
2102 | } |
2103 | inline SavedVariable& operator=(SavedVariable&& from) noexcept { |
2104 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2105 | if (this != &from) InternalSwap(&from); |
2106 | } else { |
2107 | CopyFrom(from); |
2108 | } |
2109 | return *this; |
2110 | } |
2111 | |
2112 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
2113 | return GetArenaNoVirtual(); |
2114 | } |
2115 | inline void* GetMaybeArenaPointer() const final { |
2116 | return MaybeArenaPtr(); |
2117 | } |
2118 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2119 | return GetDescriptor(); |
2120 | } |
2121 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2122 | return GetMetadataStatic().descriptor; |
2123 | } |
2124 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2125 | return GetMetadataStatic().reflection; |
2126 | } |
2127 | static const SavedVariable& default_instance(); |
2128 | |
2129 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
2130 | static inline const SavedVariable* internal_default_instance() { |
2131 | return reinterpret_cast<const SavedVariable*>( |
2132 | &_SavedVariable_default_instance_); |
2133 | } |
2134 | static constexpr int kIndexInFileMessages = |
2135 | 11; |
2136 | |
2137 | friend void swap(SavedVariable& a, SavedVariable& b) { |
2138 | a.Swap(&b); |
2139 | } |
2140 | inline void Swap(SavedVariable* other) { |
2141 | if (other == this) return; |
2142 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
2143 | InternalSwap(other); |
2144 | } else { |
2145 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2146 | } |
2147 | } |
2148 | void UnsafeArenaSwap(SavedVariable* other) { |
2149 | if (other == this) return; |
2150 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
2151 | InternalSwap(other); |
2152 | } |
2153 | |
2154 | // implements Message ---------------------------------------------- |
2155 | |
2156 | inline SavedVariable* New() const final { |
2157 | return CreateMaybeMessage<SavedVariable>(nullptr); |
2158 | } |
2159 | |
2160 | SavedVariable* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
2161 | return CreateMaybeMessage<SavedVariable>(arena); |
2162 | } |
2163 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
2164 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
2165 | void CopyFrom(const SavedVariable& from); |
2166 | void MergeFrom(const SavedVariable& from); |
2167 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2168 | bool IsInitialized() const final; |
2169 | |
2170 | size_t ByteSizeLong() const final; |
2171 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2172 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2173 | #else |
2174 | bool MergePartialFromCodedStream( |
2175 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
2176 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2177 | void SerializeWithCachedSizes( |
2178 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
2179 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
2180 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
2181 | int GetCachedSize() const final { return _cached_size_.Get(); } |
2182 | |
2183 | private: |
2184 | inline void SharedCtor(); |
2185 | inline void SharedDtor(); |
2186 | void SetCachedSize(int size) const final; |
2187 | void InternalSwap(SavedVariable* other); |
2188 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2189 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2190 | return "tensorflow.SavedVariable" ; |
2191 | } |
2192 | protected: |
2193 | explicit SavedVariable(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2194 | private: |
2195 | static void ArenaDtor(void* object); |
2196 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2197 | private: |
2198 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
2199 | return _internal_metadata_.arena(); |
2200 | } |
2201 | inline void* MaybeArenaPtr() const { |
2202 | return _internal_metadata_.raw_arena_ptr(); |
2203 | } |
2204 | public: |
2205 | |
2206 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2207 | private: |
2208 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
2209 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
2210 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
2211 | } |
2212 | |
2213 | public: |
2214 | |
2215 | // nested types ---------------------------------------------------- |
2216 | |
2217 | // accessors ------------------------------------------------------- |
2218 | |
2219 | enum : int { |
2220 | kExperimentalDistributedVariableComponentsFieldNumber = 8, |
2221 | kNameFieldNumber = 6, |
2222 | kDeviceFieldNumber = 7, |
2223 | kShapeFieldNumber = 2, |
2224 | kDtypeFieldNumber = 1, |
2225 | kTrainableFieldNumber = 3, |
2226 | kSynchronizationFieldNumber = 4, |
2227 | kAggregationFieldNumber = 5, |
2228 | }; |
2229 | // repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; |
2230 | int experimental_distributed_variable_components_size() const; |
2231 | void clear_experimental_distributed_variable_components(); |
2232 | ::tensorflow::SavedVariable* mutable_experimental_distributed_variable_components(int index); |
2233 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedVariable >* |
2234 | mutable_experimental_distributed_variable_components(); |
2235 | const ::tensorflow::SavedVariable& experimental_distributed_variable_components(int index) const; |
2236 | ::tensorflow::SavedVariable* add_experimental_distributed_variable_components(); |
2237 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedVariable >& |
2238 | experimental_distributed_variable_components() const; |
2239 | |
2240 | // string name = 6; |
2241 | void clear_name(); |
2242 | const std::string& name() const; |
2243 | void set_name(const std::string& value); |
2244 | void set_name(std::string&& value); |
2245 | void set_name(const char* value); |
2246 | void set_name(const char* value, size_t size); |
2247 | std::string* mutable_name(); |
2248 | std::string* release_name(); |
2249 | void set_allocated_name(std::string* name); |
2250 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
2251 | " string fields are deprecated and will be removed in a" |
2252 | " future release." ) |
2253 | std::string* unsafe_arena_release_name(); |
2254 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
2255 | " string fields are deprecated and will be removed in a" |
2256 | " future release." ) |
2257 | void unsafe_arena_set_allocated_name( |
2258 | std::string* name); |
2259 | |
2260 | // string device = 7; |
2261 | void clear_device(); |
2262 | const std::string& device() const; |
2263 | void set_device(const std::string& value); |
2264 | void set_device(std::string&& value); |
2265 | void set_device(const char* value); |
2266 | void set_device(const char* value, size_t size); |
2267 | std::string* mutable_device(); |
2268 | std::string* release_device(); |
2269 | void set_allocated_device(std::string* device); |
2270 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
2271 | " string fields are deprecated and will be removed in a" |
2272 | " future release." ) |
2273 | std::string* unsafe_arena_release_device(); |
2274 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
2275 | " string fields are deprecated and will be removed in a" |
2276 | " future release." ) |
2277 | void unsafe_arena_set_allocated_device( |
2278 | std::string* device); |
2279 | |
2280 | // .tensorflow.TensorShapeProto shape = 2; |
2281 | bool has_shape() const; |
2282 | void clear_shape(); |
2283 | const ::tensorflow::TensorShapeProto& shape() const; |
2284 | ::tensorflow::TensorShapeProto* release_shape(); |
2285 | ::tensorflow::TensorShapeProto* mutable_shape(); |
2286 | void set_allocated_shape(::tensorflow::TensorShapeProto* shape); |
2287 | void unsafe_arena_set_allocated_shape( |
2288 | ::tensorflow::TensorShapeProto* shape); |
2289 | ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); |
2290 | |
2291 | // .tensorflow.DataType dtype = 1; |
2292 | void clear_dtype(); |
2293 | ::tensorflow::DataType dtype() const; |
2294 | void set_dtype(::tensorflow::DataType value); |
2295 | |
2296 | // bool trainable = 3; |
2297 | void clear_trainable(); |
2298 | bool trainable() const; |
2299 | void set_trainable(bool value); |
2300 | |
2301 | // .tensorflow.VariableSynchronization synchronization = 4; |
2302 | void clear_synchronization(); |
2303 | ::tensorflow::VariableSynchronization synchronization() const; |
2304 | void set_synchronization(::tensorflow::VariableSynchronization value); |
2305 | |
2306 | // .tensorflow.VariableAggregation aggregation = 5; |
2307 | void clear_aggregation(); |
2308 | ::tensorflow::VariableAggregation aggregation() const; |
2309 | void set_aggregation(::tensorflow::VariableAggregation value); |
2310 | |
2311 | // @@protoc_insertion_point(class_scope:tensorflow.SavedVariable) |
2312 | private: |
2313 | class _Internal; |
2314 | |
2315 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
2316 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2317 | typedef void InternalArenaConstructable_; |
2318 | typedef void DestructorSkippable_; |
2319 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedVariable > experimental_distributed_variable_components_; |
2320 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
2321 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_; |
2322 | ::tensorflow::TensorShapeProto* shape_; |
2323 | int dtype_; |
2324 | bool trainable_; |
2325 | int synchronization_; |
2326 | int aggregation_; |
2327 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2328 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
2329 | }; |
2330 | // ------------------------------------------------------------------- |
2331 | |
2332 | class FunctionSpec : |
2333 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.FunctionSpec) */ { |
2334 | public: |
2335 | FunctionSpec(); |
2336 | virtual ~FunctionSpec(); |
2337 | |
2338 | FunctionSpec(const FunctionSpec& from); |
2339 | FunctionSpec(FunctionSpec&& from) noexcept |
2340 | : FunctionSpec() { |
2341 | *this = ::std::move(from); |
2342 | } |
2343 | |
2344 | inline FunctionSpec& operator=(const FunctionSpec& from) { |
2345 | CopyFrom(from); |
2346 | return *this; |
2347 | } |
2348 | inline FunctionSpec& operator=(FunctionSpec&& from) noexcept { |
2349 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2350 | if (this != &from) InternalSwap(&from); |
2351 | } else { |
2352 | CopyFrom(from); |
2353 | } |
2354 | return *this; |
2355 | } |
2356 | |
2357 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
2358 | return GetArenaNoVirtual(); |
2359 | } |
2360 | inline void* GetMaybeArenaPointer() const final { |
2361 | return MaybeArenaPtr(); |
2362 | } |
2363 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2364 | return GetDescriptor(); |
2365 | } |
2366 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2367 | return GetMetadataStatic().descriptor; |
2368 | } |
2369 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2370 | return GetMetadataStatic().reflection; |
2371 | } |
2372 | static const FunctionSpec& default_instance(); |
2373 | |
2374 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
2375 | static inline const FunctionSpec* internal_default_instance() { |
2376 | return reinterpret_cast<const FunctionSpec*>( |
2377 | &_FunctionSpec_default_instance_); |
2378 | } |
2379 | static constexpr int kIndexInFileMessages = |
2380 | 12; |
2381 | |
2382 | friend void swap(FunctionSpec& a, FunctionSpec& b) { |
2383 | a.Swap(&b); |
2384 | } |
2385 | inline void Swap(FunctionSpec* other) { |
2386 | if (other == this) return; |
2387 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
2388 | InternalSwap(other); |
2389 | } else { |
2390 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2391 | } |
2392 | } |
2393 | void UnsafeArenaSwap(FunctionSpec* other) { |
2394 | if (other == this) return; |
2395 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
2396 | InternalSwap(other); |
2397 | } |
2398 | |
2399 | // implements Message ---------------------------------------------- |
2400 | |
2401 | inline FunctionSpec* New() const final { |
2402 | return CreateMaybeMessage<FunctionSpec>(nullptr); |
2403 | } |
2404 | |
2405 | FunctionSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
2406 | return CreateMaybeMessage<FunctionSpec>(arena); |
2407 | } |
2408 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
2409 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
2410 | void CopyFrom(const FunctionSpec& from); |
2411 | void MergeFrom(const FunctionSpec& from); |
2412 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2413 | bool IsInitialized() const final; |
2414 | |
2415 | size_t ByteSizeLong() const final; |
2416 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2417 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2418 | #else |
2419 | bool MergePartialFromCodedStream( |
2420 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
2421 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2422 | void SerializeWithCachedSizes( |
2423 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
2424 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
2425 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
2426 | int GetCachedSize() const final { return _cached_size_.Get(); } |
2427 | |
2428 | private: |
2429 | inline void SharedCtor(); |
2430 | inline void SharedDtor(); |
2431 | void SetCachedSize(int size) const final; |
2432 | void InternalSwap(FunctionSpec* other); |
2433 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2434 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2435 | return "tensorflow.FunctionSpec" ; |
2436 | } |
2437 | protected: |
2438 | explicit FunctionSpec(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2439 | private: |
2440 | static void ArenaDtor(void* object); |
2441 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2442 | private: |
2443 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
2444 | return _internal_metadata_.arena(); |
2445 | } |
2446 | inline void* MaybeArenaPtr() const { |
2447 | return _internal_metadata_.raw_arena_ptr(); |
2448 | } |
2449 | public: |
2450 | |
2451 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2452 | private: |
2453 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
2454 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
2455 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
2456 | } |
2457 | |
2458 | public: |
2459 | |
2460 | // nested types ---------------------------------------------------- |
2461 | |
2462 | typedef FunctionSpec_JitCompile JitCompile; |
2463 | static constexpr JitCompile DEFAULT = |
2464 | FunctionSpec_JitCompile_DEFAULT; |
2465 | static constexpr JitCompile ON = |
2466 | FunctionSpec_JitCompile_ON; |
2467 | static constexpr JitCompile OFF = |
2468 | FunctionSpec_JitCompile_OFF; |
2469 | static inline bool JitCompile_IsValid(int value) { |
2470 | return FunctionSpec_JitCompile_IsValid(value); |
2471 | } |
2472 | static constexpr JitCompile JitCompile_MIN = |
2473 | FunctionSpec_JitCompile_JitCompile_MIN; |
2474 | static constexpr JitCompile JitCompile_MAX = |
2475 | FunctionSpec_JitCompile_JitCompile_MAX; |
2476 | static constexpr int JitCompile_ARRAYSIZE = |
2477 | FunctionSpec_JitCompile_JitCompile_ARRAYSIZE; |
2478 | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
2479 | JitCompile_descriptor() { |
2480 | return FunctionSpec_JitCompile_descriptor(); |
2481 | } |
2482 | template<typename T> |
2483 | static inline const std::string& JitCompile_Name(T enum_t_value) { |
2484 | static_assert(::std::is_same<T, JitCompile>::value || |
2485 | ::std::is_integral<T>::value, |
2486 | "Incorrect type passed to function JitCompile_Name." ); |
2487 | return FunctionSpec_JitCompile_Name(enum_t_value); |
2488 | } |
2489 | static inline bool JitCompile_Parse(const std::string& name, |
2490 | JitCompile* value) { |
2491 | return FunctionSpec_JitCompile_Parse(name, value); |
2492 | } |
2493 | |
2494 | // accessors ------------------------------------------------------- |
2495 | |
2496 | enum : int { |
2497 | kFullargspecFieldNumber = 1, |
2498 | kInputSignatureFieldNumber = 5, |
2499 | kIsMethodFieldNumber = 2, |
2500 | kJitCompileFieldNumber = 6, |
2501 | }; |
2502 | // .tensorflow.StructuredValue fullargspec = 1; |
2503 | bool has_fullargspec() const; |
2504 | void clear_fullargspec(); |
2505 | const ::tensorflow::StructuredValue& fullargspec() const; |
2506 | ::tensorflow::StructuredValue* release_fullargspec(); |
2507 | ::tensorflow::StructuredValue* mutable_fullargspec(); |
2508 | void set_allocated_fullargspec(::tensorflow::StructuredValue* fullargspec); |
2509 | void unsafe_arena_set_allocated_fullargspec( |
2510 | ::tensorflow::StructuredValue* fullargspec); |
2511 | ::tensorflow::StructuredValue* unsafe_arena_release_fullargspec(); |
2512 | |
2513 | // .tensorflow.StructuredValue input_signature = 5; |
2514 | bool has_input_signature() const; |
2515 | void clear_input_signature(); |
2516 | const ::tensorflow::StructuredValue& input_signature() const; |
2517 | ::tensorflow::StructuredValue* release_input_signature(); |
2518 | ::tensorflow::StructuredValue* mutable_input_signature(); |
2519 | void set_allocated_input_signature(::tensorflow::StructuredValue* input_signature); |
2520 | void unsafe_arena_set_allocated_input_signature( |
2521 | ::tensorflow::StructuredValue* input_signature); |
2522 | ::tensorflow::StructuredValue* unsafe_arena_release_input_signature(); |
2523 | |
2524 | // bool is_method = 2; |
2525 | void clear_is_method(); |
2526 | bool is_method() const; |
2527 | void set_is_method(bool value); |
2528 | |
2529 | // .tensorflow.FunctionSpec.JitCompile jit_compile = 6; |
2530 | void clear_jit_compile(); |
2531 | ::tensorflow::FunctionSpec_JitCompile jit_compile() const; |
2532 | void set_jit_compile(::tensorflow::FunctionSpec_JitCompile value); |
2533 | |
2534 | // @@protoc_insertion_point(class_scope:tensorflow.FunctionSpec) |
2535 | private: |
2536 | class _Internal; |
2537 | |
2538 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
2539 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2540 | typedef void InternalArenaConstructable_; |
2541 | typedef void DestructorSkippable_; |
2542 | ::tensorflow::StructuredValue* fullargspec_; |
2543 | ::tensorflow::StructuredValue* input_signature_; |
2544 | bool is_method_; |
2545 | int jit_compile_; |
2546 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2547 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
2548 | }; |
2549 | // ------------------------------------------------------------------- |
2550 | |
2551 | class SavedResource : |
2552 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedResource) */ { |
2553 | public: |
2554 | SavedResource(); |
2555 | virtual ~SavedResource(); |
2556 | |
2557 | SavedResource(const SavedResource& from); |
2558 | SavedResource(SavedResource&& from) noexcept |
2559 | : SavedResource() { |
2560 | *this = ::std::move(from); |
2561 | } |
2562 | |
2563 | inline SavedResource& operator=(const SavedResource& from) { |
2564 | CopyFrom(from); |
2565 | return *this; |
2566 | } |
2567 | inline SavedResource& operator=(SavedResource&& from) noexcept { |
2568 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2569 | if (this != &from) InternalSwap(&from); |
2570 | } else { |
2571 | CopyFrom(from); |
2572 | } |
2573 | return *this; |
2574 | } |
2575 | |
2576 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
2577 | return GetArenaNoVirtual(); |
2578 | } |
2579 | inline void* GetMaybeArenaPointer() const final { |
2580 | return MaybeArenaPtr(); |
2581 | } |
2582 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2583 | return GetDescriptor(); |
2584 | } |
2585 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2586 | return GetMetadataStatic().descriptor; |
2587 | } |
2588 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2589 | return GetMetadataStatic().reflection; |
2590 | } |
2591 | static const SavedResource& default_instance(); |
2592 | |
2593 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
2594 | static inline const SavedResource* internal_default_instance() { |
2595 | return reinterpret_cast<const SavedResource*>( |
2596 | &_SavedResource_default_instance_); |
2597 | } |
2598 | static constexpr int kIndexInFileMessages = |
2599 | 13; |
2600 | |
2601 | friend void swap(SavedResource& a, SavedResource& b) { |
2602 | a.Swap(&b); |
2603 | } |
2604 | inline void Swap(SavedResource* other) { |
2605 | if (other == this) return; |
2606 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
2607 | InternalSwap(other); |
2608 | } else { |
2609 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2610 | } |
2611 | } |
2612 | void UnsafeArenaSwap(SavedResource* other) { |
2613 | if (other == this) return; |
2614 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
2615 | InternalSwap(other); |
2616 | } |
2617 | |
2618 | // implements Message ---------------------------------------------- |
2619 | |
2620 | inline SavedResource* New() const final { |
2621 | return CreateMaybeMessage<SavedResource>(nullptr); |
2622 | } |
2623 | |
2624 | SavedResource* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
2625 | return CreateMaybeMessage<SavedResource>(arena); |
2626 | } |
2627 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
2628 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
2629 | void CopyFrom(const SavedResource& from); |
2630 | void MergeFrom(const SavedResource& from); |
2631 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2632 | bool IsInitialized() const final; |
2633 | |
2634 | size_t ByteSizeLong() const final; |
2635 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2636 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2637 | #else |
2638 | bool MergePartialFromCodedStream( |
2639 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
2640 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2641 | void SerializeWithCachedSizes( |
2642 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
2643 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
2644 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
2645 | int GetCachedSize() const final { return _cached_size_.Get(); } |
2646 | |
2647 | private: |
2648 | inline void SharedCtor(); |
2649 | inline void SharedDtor(); |
2650 | void SetCachedSize(int size) const final; |
2651 | void InternalSwap(SavedResource* other); |
2652 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2653 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2654 | return "tensorflow.SavedResource" ; |
2655 | } |
2656 | protected: |
2657 | explicit SavedResource(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2658 | private: |
2659 | static void ArenaDtor(void* object); |
2660 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2661 | private: |
2662 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
2663 | return _internal_metadata_.arena(); |
2664 | } |
2665 | inline void* MaybeArenaPtr() const { |
2666 | return _internal_metadata_.raw_arena_ptr(); |
2667 | } |
2668 | public: |
2669 | |
2670 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2671 | private: |
2672 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
2673 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
2674 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
2675 | } |
2676 | |
2677 | public: |
2678 | |
2679 | // nested types ---------------------------------------------------- |
2680 | |
2681 | // accessors ------------------------------------------------------- |
2682 | |
2683 | enum : int { |
2684 | kDeviceFieldNumber = 1, |
2685 | }; |
2686 | // string device = 1; |
2687 | void clear_device(); |
2688 | const std::string& device() const; |
2689 | void set_device(const std::string& value); |
2690 | void set_device(std::string&& value); |
2691 | void set_device(const char* value); |
2692 | void set_device(const char* value, size_t size); |
2693 | std::string* mutable_device(); |
2694 | std::string* release_device(); |
2695 | void set_allocated_device(std::string* device); |
2696 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
2697 | " string fields are deprecated and will be removed in a" |
2698 | " future release." ) |
2699 | std::string* unsafe_arena_release_device(); |
2700 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
2701 | " string fields are deprecated and will be removed in a" |
2702 | " future release." ) |
2703 | void unsafe_arena_set_allocated_device( |
2704 | std::string* device); |
2705 | |
2706 | // @@protoc_insertion_point(class_scope:tensorflow.SavedResource) |
2707 | private: |
2708 | class _Internal; |
2709 | |
2710 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
2711 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2712 | typedef void InternalArenaConstructable_; |
2713 | typedef void DestructorSkippable_; |
2714 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr device_; |
2715 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2716 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
2717 | }; |
2718 | // ------------------------------------------------------------------- |
2719 | |
2720 | class SaveableObject : |
2721 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SaveableObject) */ { |
2722 | public: |
2723 | SaveableObject(); |
2724 | virtual ~SaveableObject(); |
2725 | |
2726 | SaveableObject(const SaveableObject& from); |
2727 | SaveableObject(SaveableObject&& from) noexcept |
2728 | : SaveableObject() { |
2729 | *this = ::std::move(from); |
2730 | } |
2731 | |
2732 | inline SaveableObject& operator=(const SaveableObject& from) { |
2733 | CopyFrom(from); |
2734 | return *this; |
2735 | } |
2736 | inline SaveableObject& operator=(SaveableObject&& from) noexcept { |
2737 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
2738 | if (this != &from) InternalSwap(&from); |
2739 | } else { |
2740 | CopyFrom(from); |
2741 | } |
2742 | return *this; |
2743 | } |
2744 | |
2745 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
2746 | return GetArenaNoVirtual(); |
2747 | } |
2748 | inline void* GetMaybeArenaPointer() const final { |
2749 | return MaybeArenaPtr(); |
2750 | } |
2751 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
2752 | return GetDescriptor(); |
2753 | } |
2754 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
2755 | return GetMetadataStatic().descriptor; |
2756 | } |
2757 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
2758 | return GetMetadataStatic().reflection; |
2759 | } |
2760 | static const SaveableObject& default_instance(); |
2761 | |
2762 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
2763 | static inline const SaveableObject* internal_default_instance() { |
2764 | return reinterpret_cast<const SaveableObject*>( |
2765 | &_SaveableObject_default_instance_); |
2766 | } |
2767 | static constexpr int kIndexInFileMessages = |
2768 | 14; |
2769 | |
2770 | friend void swap(SaveableObject& a, SaveableObject& b) { |
2771 | a.Swap(&b); |
2772 | } |
2773 | inline void Swap(SaveableObject* other) { |
2774 | if (other == this) return; |
2775 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
2776 | InternalSwap(other); |
2777 | } else { |
2778 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
2779 | } |
2780 | } |
2781 | void UnsafeArenaSwap(SaveableObject* other) { |
2782 | if (other == this) return; |
2783 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
2784 | InternalSwap(other); |
2785 | } |
2786 | |
2787 | // implements Message ---------------------------------------------- |
2788 | |
2789 | inline SaveableObject* New() const final { |
2790 | return CreateMaybeMessage<SaveableObject>(nullptr); |
2791 | } |
2792 | |
2793 | SaveableObject* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
2794 | return CreateMaybeMessage<SaveableObject>(arena); |
2795 | } |
2796 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
2797 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
2798 | void CopyFrom(const SaveableObject& from); |
2799 | void MergeFrom(const SaveableObject& from); |
2800 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
2801 | bool IsInitialized() const final; |
2802 | |
2803 | size_t ByteSizeLong() const final; |
2804 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2805 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
2806 | #else |
2807 | bool MergePartialFromCodedStream( |
2808 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
2809 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
2810 | void SerializeWithCachedSizes( |
2811 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
2812 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
2813 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
2814 | int GetCachedSize() const final { return _cached_size_.Get(); } |
2815 | |
2816 | private: |
2817 | inline void SharedCtor(); |
2818 | inline void SharedDtor(); |
2819 | void SetCachedSize(int size) const final; |
2820 | void InternalSwap(SaveableObject* other); |
2821 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
2822 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
2823 | return "tensorflow.SaveableObject" ; |
2824 | } |
2825 | protected: |
2826 | explicit SaveableObject(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2827 | private: |
2828 | static void ArenaDtor(void* object); |
2829 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
2830 | private: |
2831 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
2832 | return _internal_metadata_.arena(); |
2833 | } |
2834 | inline void* MaybeArenaPtr() const { |
2835 | return _internal_metadata_.raw_arena_ptr(); |
2836 | } |
2837 | public: |
2838 | |
2839 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
2840 | private: |
2841 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
2842 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto); |
2843 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto.file_level_metadata[kIndexInFileMessages]; |
2844 | } |
2845 | |
2846 | public: |
2847 | |
2848 | // nested types ---------------------------------------------------- |
2849 | |
2850 | // accessors ------------------------------------------------------- |
2851 | |
2852 | enum : int { |
2853 | kSaveFunctionFieldNumber = 2, |
2854 | kRestoreFunctionFieldNumber = 3, |
2855 | }; |
2856 | // int32 save_function = 2; |
2857 | void clear_save_function(); |
2858 | ::PROTOBUF_NAMESPACE_ID::int32 save_function() const; |
2859 | void set_save_function(::PROTOBUF_NAMESPACE_ID::int32 value); |
2860 | |
2861 | // int32 restore_function = 3; |
2862 | void clear_restore_function(); |
2863 | ::PROTOBUF_NAMESPACE_ID::int32 restore_function() const; |
2864 | void set_restore_function(::PROTOBUF_NAMESPACE_ID::int32 value); |
2865 | |
2866 | // @@protoc_insertion_point(class_scope:tensorflow.SaveableObject) |
2867 | private: |
2868 | class _Internal; |
2869 | |
2870 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
2871 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
2872 | typedef void InternalArenaConstructable_; |
2873 | typedef void DestructorSkippable_; |
2874 | ::PROTOBUF_NAMESPACE_ID::int32 save_function_; |
2875 | ::PROTOBUF_NAMESPACE_ID::int32 restore_function_; |
2876 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
2877 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto; |
2878 | }; |
2879 | // =================================================================== |
2880 | |
2881 | |
2882 | // =================================================================== |
2883 | |
2884 | #ifdef __GNUC__ |
2885 | #pragma GCC diagnostic push |
2886 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
2887 | #endif // __GNUC__ |
2888 | // ------------------------------------------------------------------- |
2889 | |
2890 | // SavedObjectGraph |
2891 | |
2892 | // repeated .tensorflow.SavedObject nodes = 1; |
2893 | inline int SavedObjectGraph::nodes_size() const { |
2894 | return nodes_.size(); |
2895 | } |
2896 | inline void SavedObjectGraph::clear_nodes() { |
2897 | nodes_.Clear(); |
2898 | } |
2899 | inline ::tensorflow::SavedObject* SavedObjectGraph::mutable_nodes(int index) { |
2900 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObjectGraph.nodes) |
2901 | return nodes_.Mutable(index); |
2902 | } |
2903 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedObject >* |
2904 | SavedObjectGraph::mutable_nodes() { |
2905 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedObjectGraph.nodes) |
2906 | return &nodes_; |
2907 | } |
2908 | inline const ::tensorflow::SavedObject& SavedObjectGraph::nodes(int index) const { |
2909 | // @@protoc_insertion_point(field_get:tensorflow.SavedObjectGraph.nodes) |
2910 | return nodes_.Get(index); |
2911 | } |
2912 | inline ::tensorflow::SavedObject* SavedObjectGraph::add_nodes() { |
2913 | // @@protoc_insertion_point(field_add:tensorflow.SavedObjectGraph.nodes) |
2914 | return nodes_.Add(); |
2915 | } |
2916 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedObject >& |
2917 | SavedObjectGraph::nodes() const { |
2918 | // @@protoc_insertion_point(field_list:tensorflow.SavedObjectGraph.nodes) |
2919 | return nodes_; |
2920 | } |
2921 | |
2922 | // map<string, .tensorflow.SavedConcreteFunction> concrete_functions = 2; |
2923 | inline int SavedObjectGraph::concrete_functions_size() const { |
2924 | return concrete_functions_.size(); |
2925 | } |
2926 | inline void SavedObjectGraph::clear_concrete_functions() { |
2927 | concrete_functions_.Clear(); |
2928 | } |
2929 | inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SavedConcreteFunction >& |
2930 | SavedObjectGraph::concrete_functions() const { |
2931 | // @@protoc_insertion_point(field_map:tensorflow.SavedObjectGraph.concrete_functions) |
2932 | return concrete_functions_.GetMap(); |
2933 | } |
2934 | inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SavedConcreteFunction >* |
2935 | SavedObjectGraph::mutable_concrete_functions() { |
2936 | // @@protoc_insertion_point(field_mutable_map:tensorflow.SavedObjectGraph.concrete_functions) |
2937 | return concrete_functions_.MutableMap(); |
2938 | } |
2939 | |
2940 | // ------------------------------------------------------------------- |
2941 | |
2942 | // ------------------------------------------------------------------- |
2943 | |
2944 | // SavedObject |
2945 | |
2946 | // repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference children = 1; |
2947 | inline int SavedObject::children_size() const { |
2948 | return children_.size(); |
2949 | } |
2950 | inline ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference* SavedObject::mutable_children(int index) { |
2951 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.children) |
2952 | return children_.Mutable(index); |
2953 | } |
2954 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference >* |
2955 | SavedObject::mutable_children() { |
2956 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedObject.children) |
2957 | return &children_; |
2958 | } |
2959 | inline const ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference& SavedObject::children(int index) const { |
2960 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.children) |
2961 | return children_.Get(index); |
2962 | } |
2963 | inline ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference* SavedObject::add_children() { |
2964 | // @@protoc_insertion_point(field_add:tensorflow.SavedObject.children) |
2965 | return children_.Add(); |
2966 | } |
2967 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference >& |
2968 | SavedObject::children() const { |
2969 | // @@protoc_insertion_point(field_list:tensorflow.SavedObject.children) |
2970 | return children_; |
2971 | } |
2972 | |
2973 | // repeated .tensorflow.TrackableObjectGraph.TrackableObject.ObjectReference dependencies = 15; |
2974 | inline int SavedObject::dependencies_size() const { |
2975 | return dependencies_.size(); |
2976 | } |
2977 | inline ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference* SavedObject::mutable_dependencies(int index) { |
2978 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.dependencies) |
2979 | return dependencies_.Mutable(index); |
2980 | } |
2981 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference >* |
2982 | SavedObject::mutable_dependencies() { |
2983 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedObject.dependencies) |
2984 | return &dependencies_; |
2985 | } |
2986 | inline const ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference& SavedObject::dependencies(int index) const { |
2987 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.dependencies) |
2988 | return dependencies_.Get(index); |
2989 | } |
2990 | inline ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference* SavedObject::add_dependencies() { |
2991 | // @@protoc_insertion_point(field_add:tensorflow.SavedObject.dependencies) |
2992 | return dependencies_.Add(); |
2993 | } |
2994 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_ObjectReference >& |
2995 | SavedObject::dependencies() const { |
2996 | // @@protoc_insertion_point(field_list:tensorflow.SavedObject.dependencies) |
2997 | return dependencies_; |
2998 | } |
2999 | |
3000 | // repeated .tensorflow.TrackableObjectGraph.TrackableObject.SlotVariableReference slot_variables = 3; |
3001 | inline int SavedObject::slot_variables_size() const { |
3002 | return slot_variables_.size(); |
3003 | } |
3004 | inline ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference* SavedObject::mutable_slot_variables(int index) { |
3005 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.slot_variables) |
3006 | return slot_variables_.Mutable(index); |
3007 | } |
3008 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference >* |
3009 | SavedObject::mutable_slot_variables() { |
3010 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedObject.slot_variables) |
3011 | return &slot_variables_; |
3012 | } |
3013 | inline const ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference& SavedObject::slot_variables(int index) const { |
3014 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.slot_variables) |
3015 | return slot_variables_.Get(index); |
3016 | } |
3017 | inline ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference* SavedObject::add_slot_variables() { |
3018 | // @@protoc_insertion_point(field_add:tensorflow.SavedObject.slot_variables) |
3019 | return slot_variables_.Add(); |
3020 | } |
3021 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TrackableObjectGraph_TrackableObject_SlotVariableReference >& |
3022 | SavedObject::slot_variables() const { |
3023 | // @@protoc_insertion_point(field_list:tensorflow.SavedObject.slot_variables) |
3024 | return slot_variables_; |
3025 | } |
3026 | |
3027 | // .tensorflow.SavedUserObject user_object = 4; |
3028 | inline bool SavedObject::has_user_object() const { |
3029 | return kind_case() == kUserObject; |
3030 | } |
3031 | inline void SavedObject::set_has_user_object() { |
3032 | _oneof_case_[0] = kUserObject; |
3033 | } |
3034 | inline void SavedObject::clear_user_object() { |
3035 | if (has_user_object()) { |
3036 | if (GetArenaNoVirtual() == nullptr) { |
3037 | delete kind_.user_object_; |
3038 | } |
3039 | clear_has_kind(); |
3040 | } |
3041 | } |
3042 | inline ::tensorflow::SavedUserObject* SavedObject::release_user_object() { |
3043 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.user_object) |
3044 | if (has_user_object()) { |
3045 | clear_has_kind(); |
3046 | ::tensorflow::SavedUserObject* temp = kind_.user_object_; |
3047 | if (GetArenaNoVirtual() != nullptr) { |
3048 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3049 | } |
3050 | kind_.user_object_ = nullptr; |
3051 | return temp; |
3052 | } else { |
3053 | return nullptr; |
3054 | } |
3055 | } |
3056 | inline const ::tensorflow::SavedUserObject& SavedObject::user_object() const { |
3057 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.user_object) |
3058 | return has_user_object() |
3059 | ? *kind_.user_object_ |
3060 | : *reinterpret_cast< ::tensorflow::SavedUserObject*>(&::tensorflow::_SavedUserObject_default_instance_); |
3061 | } |
3062 | inline ::tensorflow::SavedUserObject* SavedObject::unsafe_arena_release_user_object() { |
3063 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.user_object) |
3064 | if (has_user_object()) { |
3065 | clear_has_kind(); |
3066 | ::tensorflow::SavedUserObject* temp = kind_.user_object_; |
3067 | kind_.user_object_ = nullptr; |
3068 | return temp; |
3069 | } else { |
3070 | return nullptr; |
3071 | } |
3072 | } |
3073 | inline void SavedObject::unsafe_arena_set_allocated_user_object(::tensorflow::SavedUserObject* user_object) { |
3074 | clear_kind(); |
3075 | if (user_object) { |
3076 | set_has_user_object(); |
3077 | kind_.user_object_ = user_object; |
3078 | } |
3079 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.user_object) |
3080 | } |
3081 | inline ::tensorflow::SavedUserObject* SavedObject::mutable_user_object() { |
3082 | if (!has_user_object()) { |
3083 | clear_kind(); |
3084 | set_has_user_object(); |
3085 | kind_.user_object_ = CreateMaybeMessage< ::tensorflow::SavedUserObject >( |
3086 | GetArenaNoVirtual()); |
3087 | } |
3088 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.user_object) |
3089 | return kind_.user_object_; |
3090 | } |
3091 | |
3092 | // .tensorflow.SavedAsset asset = 5; |
3093 | inline bool SavedObject::has_asset() const { |
3094 | return kind_case() == kAsset; |
3095 | } |
3096 | inline void SavedObject::set_has_asset() { |
3097 | _oneof_case_[0] = kAsset; |
3098 | } |
3099 | inline void SavedObject::clear_asset() { |
3100 | if (has_asset()) { |
3101 | if (GetArenaNoVirtual() == nullptr) { |
3102 | delete kind_.asset_; |
3103 | } |
3104 | clear_has_kind(); |
3105 | } |
3106 | } |
3107 | inline ::tensorflow::SavedAsset* SavedObject::release_asset() { |
3108 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.asset) |
3109 | if (has_asset()) { |
3110 | clear_has_kind(); |
3111 | ::tensorflow::SavedAsset* temp = kind_.asset_; |
3112 | if (GetArenaNoVirtual() != nullptr) { |
3113 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3114 | } |
3115 | kind_.asset_ = nullptr; |
3116 | return temp; |
3117 | } else { |
3118 | return nullptr; |
3119 | } |
3120 | } |
3121 | inline const ::tensorflow::SavedAsset& SavedObject::asset() const { |
3122 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.asset) |
3123 | return has_asset() |
3124 | ? *kind_.asset_ |
3125 | : *reinterpret_cast< ::tensorflow::SavedAsset*>(&::tensorflow::_SavedAsset_default_instance_); |
3126 | } |
3127 | inline ::tensorflow::SavedAsset* SavedObject::unsafe_arena_release_asset() { |
3128 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.asset) |
3129 | if (has_asset()) { |
3130 | clear_has_kind(); |
3131 | ::tensorflow::SavedAsset* temp = kind_.asset_; |
3132 | kind_.asset_ = nullptr; |
3133 | return temp; |
3134 | } else { |
3135 | return nullptr; |
3136 | } |
3137 | } |
3138 | inline void SavedObject::unsafe_arena_set_allocated_asset(::tensorflow::SavedAsset* asset) { |
3139 | clear_kind(); |
3140 | if (asset) { |
3141 | set_has_asset(); |
3142 | kind_.asset_ = asset; |
3143 | } |
3144 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.asset) |
3145 | } |
3146 | inline ::tensorflow::SavedAsset* SavedObject::mutable_asset() { |
3147 | if (!has_asset()) { |
3148 | clear_kind(); |
3149 | set_has_asset(); |
3150 | kind_.asset_ = CreateMaybeMessage< ::tensorflow::SavedAsset >( |
3151 | GetArenaNoVirtual()); |
3152 | } |
3153 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.asset) |
3154 | return kind_.asset_; |
3155 | } |
3156 | |
3157 | // .tensorflow.SavedFunction function = 6; |
3158 | inline bool SavedObject::has_function() const { |
3159 | return kind_case() == kFunction; |
3160 | } |
3161 | inline void SavedObject::set_has_function() { |
3162 | _oneof_case_[0] = kFunction; |
3163 | } |
3164 | inline void SavedObject::clear_function() { |
3165 | if (has_function()) { |
3166 | if (GetArenaNoVirtual() == nullptr) { |
3167 | delete kind_.function_; |
3168 | } |
3169 | clear_has_kind(); |
3170 | } |
3171 | } |
3172 | inline ::tensorflow::SavedFunction* SavedObject::release_function() { |
3173 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.function) |
3174 | if (has_function()) { |
3175 | clear_has_kind(); |
3176 | ::tensorflow::SavedFunction* temp = kind_.function_; |
3177 | if (GetArenaNoVirtual() != nullptr) { |
3178 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3179 | } |
3180 | kind_.function_ = nullptr; |
3181 | return temp; |
3182 | } else { |
3183 | return nullptr; |
3184 | } |
3185 | } |
3186 | inline const ::tensorflow::SavedFunction& SavedObject::function() const { |
3187 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.function) |
3188 | return has_function() |
3189 | ? *kind_.function_ |
3190 | : *reinterpret_cast< ::tensorflow::SavedFunction*>(&::tensorflow::_SavedFunction_default_instance_); |
3191 | } |
3192 | inline ::tensorflow::SavedFunction* SavedObject::unsafe_arena_release_function() { |
3193 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.function) |
3194 | if (has_function()) { |
3195 | clear_has_kind(); |
3196 | ::tensorflow::SavedFunction* temp = kind_.function_; |
3197 | kind_.function_ = nullptr; |
3198 | return temp; |
3199 | } else { |
3200 | return nullptr; |
3201 | } |
3202 | } |
3203 | inline void SavedObject::unsafe_arena_set_allocated_function(::tensorflow::SavedFunction* function) { |
3204 | clear_kind(); |
3205 | if (function) { |
3206 | set_has_function(); |
3207 | kind_.function_ = function; |
3208 | } |
3209 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.function) |
3210 | } |
3211 | inline ::tensorflow::SavedFunction* SavedObject::mutable_function() { |
3212 | if (!has_function()) { |
3213 | clear_kind(); |
3214 | set_has_function(); |
3215 | kind_.function_ = CreateMaybeMessage< ::tensorflow::SavedFunction >( |
3216 | GetArenaNoVirtual()); |
3217 | } |
3218 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.function) |
3219 | return kind_.function_; |
3220 | } |
3221 | |
3222 | // .tensorflow.SavedVariable variable = 7; |
3223 | inline bool SavedObject::has_variable() const { |
3224 | return kind_case() == kVariable; |
3225 | } |
3226 | inline void SavedObject::set_has_variable() { |
3227 | _oneof_case_[0] = kVariable; |
3228 | } |
3229 | inline void SavedObject::clear_variable() { |
3230 | if (has_variable()) { |
3231 | if (GetArenaNoVirtual() == nullptr) { |
3232 | delete kind_.variable_; |
3233 | } |
3234 | clear_has_kind(); |
3235 | } |
3236 | } |
3237 | inline ::tensorflow::SavedVariable* SavedObject::release_variable() { |
3238 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.variable) |
3239 | if (has_variable()) { |
3240 | clear_has_kind(); |
3241 | ::tensorflow::SavedVariable* temp = kind_.variable_; |
3242 | if (GetArenaNoVirtual() != nullptr) { |
3243 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3244 | } |
3245 | kind_.variable_ = nullptr; |
3246 | return temp; |
3247 | } else { |
3248 | return nullptr; |
3249 | } |
3250 | } |
3251 | inline const ::tensorflow::SavedVariable& SavedObject::variable() const { |
3252 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.variable) |
3253 | return has_variable() |
3254 | ? *kind_.variable_ |
3255 | : *reinterpret_cast< ::tensorflow::SavedVariable*>(&::tensorflow::_SavedVariable_default_instance_); |
3256 | } |
3257 | inline ::tensorflow::SavedVariable* SavedObject::unsafe_arena_release_variable() { |
3258 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.variable) |
3259 | if (has_variable()) { |
3260 | clear_has_kind(); |
3261 | ::tensorflow::SavedVariable* temp = kind_.variable_; |
3262 | kind_.variable_ = nullptr; |
3263 | return temp; |
3264 | } else { |
3265 | return nullptr; |
3266 | } |
3267 | } |
3268 | inline void SavedObject::unsafe_arena_set_allocated_variable(::tensorflow::SavedVariable* variable) { |
3269 | clear_kind(); |
3270 | if (variable) { |
3271 | set_has_variable(); |
3272 | kind_.variable_ = variable; |
3273 | } |
3274 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.variable) |
3275 | } |
3276 | inline ::tensorflow::SavedVariable* SavedObject::mutable_variable() { |
3277 | if (!has_variable()) { |
3278 | clear_kind(); |
3279 | set_has_variable(); |
3280 | kind_.variable_ = CreateMaybeMessage< ::tensorflow::SavedVariable >( |
3281 | GetArenaNoVirtual()); |
3282 | } |
3283 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.variable) |
3284 | return kind_.variable_; |
3285 | } |
3286 | |
3287 | // .tensorflow.SavedBareConcreteFunction bare_concrete_function = 8; |
3288 | inline bool SavedObject::has_bare_concrete_function() const { |
3289 | return kind_case() == kBareConcreteFunction; |
3290 | } |
3291 | inline void SavedObject::set_has_bare_concrete_function() { |
3292 | _oneof_case_[0] = kBareConcreteFunction; |
3293 | } |
3294 | inline void SavedObject::clear_bare_concrete_function() { |
3295 | if (has_bare_concrete_function()) { |
3296 | if (GetArenaNoVirtual() == nullptr) { |
3297 | delete kind_.bare_concrete_function_; |
3298 | } |
3299 | clear_has_kind(); |
3300 | } |
3301 | } |
3302 | inline ::tensorflow::SavedBareConcreteFunction* SavedObject::release_bare_concrete_function() { |
3303 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.bare_concrete_function) |
3304 | if (has_bare_concrete_function()) { |
3305 | clear_has_kind(); |
3306 | ::tensorflow::SavedBareConcreteFunction* temp = kind_.bare_concrete_function_; |
3307 | if (GetArenaNoVirtual() != nullptr) { |
3308 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3309 | } |
3310 | kind_.bare_concrete_function_ = nullptr; |
3311 | return temp; |
3312 | } else { |
3313 | return nullptr; |
3314 | } |
3315 | } |
3316 | inline const ::tensorflow::SavedBareConcreteFunction& SavedObject::bare_concrete_function() const { |
3317 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.bare_concrete_function) |
3318 | return has_bare_concrete_function() |
3319 | ? *kind_.bare_concrete_function_ |
3320 | : *reinterpret_cast< ::tensorflow::SavedBareConcreteFunction*>(&::tensorflow::_SavedBareConcreteFunction_default_instance_); |
3321 | } |
3322 | inline ::tensorflow::SavedBareConcreteFunction* SavedObject::unsafe_arena_release_bare_concrete_function() { |
3323 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.bare_concrete_function) |
3324 | if (has_bare_concrete_function()) { |
3325 | clear_has_kind(); |
3326 | ::tensorflow::SavedBareConcreteFunction* temp = kind_.bare_concrete_function_; |
3327 | kind_.bare_concrete_function_ = nullptr; |
3328 | return temp; |
3329 | } else { |
3330 | return nullptr; |
3331 | } |
3332 | } |
3333 | inline void SavedObject::unsafe_arena_set_allocated_bare_concrete_function(::tensorflow::SavedBareConcreteFunction* bare_concrete_function) { |
3334 | clear_kind(); |
3335 | if (bare_concrete_function) { |
3336 | set_has_bare_concrete_function(); |
3337 | kind_.bare_concrete_function_ = bare_concrete_function; |
3338 | } |
3339 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.bare_concrete_function) |
3340 | } |
3341 | inline ::tensorflow::SavedBareConcreteFunction* SavedObject::mutable_bare_concrete_function() { |
3342 | if (!has_bare_concrete_function()) { |
3343 | clear_kind(); |
3344 | set_has_bare_concrete_function(); |
3345 | kind_.bare_concrete_function_ = CreateMaybeMessage< ::tensorflow::SavedBareConcreteFunction >( |
3346 | GetArenaNoVirtual()); |
3347 | } |
3348 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.bare_concrete_function) |
3349 | return kind_.bare_concrete_function_; |
3350 | } |
3351 | |
3352 | // .tensorflow.SavedConstant constant = 9; |
3353 | inline bool SavedObject::has_constant() const { |
3354 | return kind_case() == kConstant; |
3355 | } |
3356 | inline void SavedObject::set_has_constant() { |
3357 | _oneof_case_[0] = kConstant; |
3358 | } |
3359 | inline void SavedObject::clear_constant() { |
3360 | if (has_constant()) { |
3361 | if (GetArenaNoVirtual() == nullptr) { |
3362 | delete kind_.constant_; |
3363 | } |
3364 | clear_has_kind(); |
3365 | } |
3366 | } |
3367 | inline ::tensorflow::SavedConstant* SavedObject::release_constant() { |
3368 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.constant) |
3369 | if (has_constant()) { |
3370 | clear_has_kind(); |
3371 | ::tensorflow::SavedConstant* temp = kind_.constant_; |
3372 | if (GetArenaNoVirtual() != nullptr) { |
3373 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3374 | } |
3375 | kind_.constant_ = nullptr; |
3376 | return temp; |
3377 | } else { |
3378 | return nullptr; |
3379 | } |
3380 | } |
3381 | inline const ::tensorflow::SavedConstant& SavedObject::constant() const { |
3382 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.constant) |
3383 | return has_constant() |
3384 | ? *kind_.constant_ |
3385 | : *reinterpret_cast< ::tensorflow::SavedConstant*>(&::tensorflow::_SavedConstant_default_instance_); |
3386 | } |
3387 | inline ::tensorflow::SavedConstant* SavedObject::unsafe_arena_release_constant() { |
3388 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.constant) |
3389 | if (has_constant()) { |
3390 | clear_has_kind(); |
3391 | ::tensorflow::SavedConstant* temp = kind_.constant_; |
3392 | kind_.constant_ = nullptr; |
3393 | return temp; |
3394 | } else { |
3395 | return nullptr; |
3396 | } |
3397 | } |
3398 | inline void SavedObject::unsafe_arena_set_allocated_constant(::tensorflow::SavedConstant* constant) { |
3399 | clear_kind(); |
3400 | if (constant) { |
3401 | set_has_constant(); |
3402 | kind_.constant_ = constant; |
3403 | } |
3404 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.constant) |
3405 | } |
3406 | inline ::tensorflow::SavedConstant* SavedObject::mutable_constant() { |
3407 | if (!has_constant()) { |
3408 | clear_kind(); |
3409 | set_has_constant(); |
3410 | kind_.constant_ = CreateMaybeMessage< ::tensorflow::SavedConstant >( |
3411 | GetArenaNoVirtual()); |
3412 | } |
3413 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.constant) |
3414 | return kind_.constant_; |
3415 | } |
3416 | |
3417 | // .tensorflow.SavedResource resource = 10; |
3418 | inline bool SavedObject::has_resource() const { |
3419 | return kind_case() == kResource; |
3420 | } |
3421 | inline void SavedObject::set_has_resource() { |
3422 | _oneof_case_[0] = kResource; |
3423 | } |
3424 | inline void SavedObject::clear_resource() { |
3425 | if (has_resource()) { |
3426 | if (GetArenaNoVirtual() == nullptr) { |
3427 | delete kind_.resource_; |
3428 | } |
3429 | clear_has_kind(); |
3430 | } |
3431 | } |
3432 | inline ::tensorflow::SavedResource* SavedObject::release_resource() { |
3433 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.resource) |
3434 | if (has_resource()) { |
3435 | clear_has_kind(); |
3436 | ::tensorflow::SavedResource* temp = kind_.resource_; |
3437 | if (GetArenaNoVirtual() != nullptr) { |
3438 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3439 | } |
3440 | kind_.resource_ = nullptr; |
3441 | return temp; |
3442 | } else { |
3443 | return nullptr; |
3444 | } |
3445 | } |
3446 | inline const ::tensorflow::SavedResource& SavedObject::resource() const { |
3447 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.resource) |
3448 | return has_resource() |
3449 | ? *kind_.resource_ |
3450 | : *reinterpret_cast< ::tensorflow::SavedResource*>(&::tensorflow::_SavedResource_default_instance_); |
3451 | } |
3452 | inline ::tensorflow::SavedResource* SavedObject::unsafe_arena_release_resource() { |
3453 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.resource) |
3454 | if (has_resource()) { |
3455 | clear_has_kind(); |
3456 | ::tensorflow::SavedResource* temp = kind_.resource_; |
3457 | kind_.resource_ = nullptr; |
3458 | return temp; |
3459 | } else { |
3460 | return nullptr; |
3461 | } |
3462 | } |
3463 | inline void SavedObject::unsafe_arena_set_allocated_resource(::tensorflow::SavedResource* resource) { |
3464 | clear_kind(); |
3465 | if (resource) { |
3466 | set_has_resource(); |
3467 | kind_.resource_ = resource; |
3468 | } |
3469 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.resource) |
3470 | } |
3471 | inline ::tensorflow::SavedResource* SavedObject::mutable_resource() { |
3472 | if (!has_resource()) { |
3473 | clear_kind(); |
3474 | set_has_resource(); |
3475 | kind_.resource_ = CreateMaybeMessage< ::tensorflow::SavedResource >( |
3476 | GetArenaNoVirtual()); |
3477 | } |
3478 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.resource) |
3479 | return kind_.resource_; |
3480 | } |
3481 | |
3482 | // .tensorflow.CapturedTensor captured_tensor = 12; |
3483 | inline bool SavedObject::has_captured_tensor() const { |
3484 | return kind_case() == kCapturedTensor; |
3485 | } |
3486 | inline void SavedObject::set_has_captured_tensor() { |
3487 | _oneof_case_[0] = kCapturedTensor; |
3488 | } |
3489 | inline void SavedObject::clear_captured_tensor() { |
3490 | if (has_captured_tensor()) { |
3491 | if (GetArenaNoVirtual() == nullptr) { |
3492 | delete kind_.captured_tensor_; |
3493 | } |
3494 | clear_has_kind(); |
3495 | } |
3496 | } |
3497 | inline ::tensorflow::CapturedTensor* SavedObject::release_captured_tensor() { |
3498 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.captured_tensor) |
3499 | if (has_captured_tensor()) { |
3500 | clear_has_kind(); |
3501 | ::tensorflow::CapturedTensor* temp = kind_.captured_tensor_; |
3502 | if (GetArenaNoVirtual() != nullptr) { |
3503 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3504 | } |
3505 | kind_.captured_tensor_ = nullptr; |
3506 | return temp; |
3507 | } else { |
3508 | return nullptr; |
3509 | } |
3510 | } |
3511 | inline const ::tensorflow::CapturedTensor& SavedObject::captured_tensor() const { |
3512 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.captured_tensor) |
3513 | return has_captured_tensor() |
3514 | ? *kind_.captured_tensor_ |
3515 | : *reinterpret_cast< ::tensorflow::CapturedTensor*>(&::tensorflow::_CapturedTensor_default_instance_); |
3516 | } |
3517 | inline ::tensorflow::CapturedTensor* SavedObject::unsafe_arena_release_captured_tensor() { |
3518 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.captured_tensor) |
3519 | if (has_captured_tensor()) { |
3520 | clear_has_kind(); |
3521 | ::tensorflow::CapturedTensor* temp = kind_.captured_tensor_; |
3522 | kind_.captured_tensor_ = nullptr; |
3523 | return temp; |
3524 | } else { |
3525 | return nullptr; |
3526 | } |
3527 | } |
3528 | inline void SavedObject::unsafe_arena_set_allocated_captured_tensor(::tensorflow::CapturedTensor* captured_tensor) { |
3529 | clear_kind(); |
3530 | if (captured_tensor) { |
3531 | set_has_captured_tensor(); |
3532 | kind_.captured_tensor_ = captured_tensor; |
3533 | } |
3534 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.captured_tensor) |
3535 | } |
3536 | inline ::tensorflow::CapturedTensor* SavedObject::mutable_captured_tensor() { |
3537 | if (!has_captured_tensor()) { |
3538 | clear_kind(); |
3539 | set_has_captured_tensor(); |
3540 | kind_.captured_tensor_ = CreateMaybeMessage< ::tensorflow::CapturedTensor >( |
3541 | GetArenaNoVirtual()); |
3542 | } |
3543 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.captured_tensor) |
3544 | return kind_.captured_tensor_; |
3545 | } |
3546 | |
3547 | // map<string, .tensorflow.SaveableObject> saveable_objects = 11; |
3548 | inline int SavedObject::saveable_objects_size() const { |
3549 | return saveable_objects_.size(); |
3550 | } |
3551 | inline void SavedObject::clear_saveable_objects() { |
3552 | saveable_objects_.Clear(); |
3553 | } |
3554 | inline const ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SaveableObject >& |
3555 | SavedObject::saveable_objects() const { |
3556 | // @@protoc_insertion_point(field_map:tensorflow.SavedObject.saveable_objects) |
3557 | return saveable_objects_.GetMap(); |
3558 | } |
3559 | inline ::PROTOBUF_NAMESPACE_ID::Map< std::string, ::tensorflow::SaveableObject >* |
3560 | SavedObject::mutable_saveable_objects() { |
3561 | // @@protoc_insertion_point(field_mutable_map:tensorflow.SavedObject.saveable_objects) |
3562 | return saveable_objects_.MutableMap(); |
3563 | } |
3564 | |
3565 | // string registered_name = 13; |
3566 | inline void SavedObject::clear_registered_name() { |
3567 | registered_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3568 | } |
3569 | inline const std::string& SavedObject::registered_name() const { |
3570 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.registered_name) |
3571 | return registered_name_.Get(); |
3572 | } |
3573 | inline void SavedObject::set_registered_name(const std::string& value) { |
3574 | |
3575 | registered_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
3576 | // @@protoc_insertion_point(field_set:tensorflow.SavedObject.registered_name) |
3577 | } |
3578 | inline void SavedObject::set_registered_name(std::string&& value) { |
3579 | |
3580 | registered_name_.Set( |
3581 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
3582 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedObject.registered_name) |
3583 | } |
3584 | inline void SavedObject::set_registered_name(const char* value) { |
3585 | GOOGLE_DCHECK(value != nullptr); |
3586 | |
3587 | registered_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
3588 | GetArenaNoVirtual()); |
3589 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedObject.registered_name) |
3590 | } |
3591 | inline void SavedObject::set_registered_name(const char* value, |
3592 | size_t size) { |
3593 | |
3594 | registered_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
3595 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
3596 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedObject.registered_name) |
3597 | } |
3598 | inline std::string* SavedObject::mutable_registered_name() { |
3599 | |
3600 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.registered_name) |
3601 | return registered_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3602 | } |
3603 | inline std::string* SavedObject::release_registered_name() { |
3604 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.registered_name) |
3605 | |
3606 | return registered_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3607 | } |
3608 | inline void SavedObject::set_allocated_registered_name(std::string* registered_name) { |
3609 | if (registered_name != nullptr) { |
3610 | |
3611 | } else { |
3612 | |
3613 | } |
3614 | registered_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), registered_name, |
3615 | GetArenaNoVirtual()); |
3616 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedObject.registered_name) |
3617 | } |
3618 | inline std::string* SavedObject::unsafe_arena_release_registered_name() { |
3619 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.registered_name) |
3620 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3621 | |
3622 | return registered_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3623 | GetArenaNoVirtual()); |
3624 | } |
3625 | inline void SavedObject::unsafe_arena_set_allocated_registered_name( |
3626 | std::string* registered_name) { |
3627 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3628 | if (registered_name != nullptr) { |
3629 | |
3630 | } else { |
3631 | |
3632 | } |
3633 | registered_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3634 | registered_name, GetArenaNoVirtual()); |
3635 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.registered_name) |
3636 | } |
3637 | |
3638 | // .google.protobuf.Any serialized_user_proto = 14; |
3639 | inline bool SavedObject::has_serialized_user_proto() const { |
3640 | return this != internal_default_instance() && serialized_user_proto_ != nullptr; |
3641 | } |
3642 | inline const PROTOBUF_NAMESPACE_ID::Any& SavedObject::serialized_user_proto() const { |
3643 | const PROTOBUF_NAMESPACE_ID::Any* p = serialized_user_proto_; |
3644 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.serialized_user_proto) |
3645 | return p != nullptr ? *p : *reinterpret_cast<const PROTOBUF_NAMESPACE_ID::Any*>( |
3646 | &PROTOBUF_NAMESPACE_ID::_Any_default_instance_); |
3647 | } |
3648 | inline PROTOBUF_NAMESPACE_ID::Any* SavedObject::release_serialized_user_proto() { |
3649 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.serialized_user_proto) |
3650 | |
3651 | PROTOBUF_NAMESPACE_ID::Any* temp = serialized_user_proto_; |
3652 | if (GetArenaNoVirtual() != nullptr) { |
3653 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3654 | } |
3655 | serialized_user_proto_ = nullptr; |
3656 | return temp; |
3657 | } |
3658 | inline PROTOBUF_NAMESPACE_ID::Any* SavedObject::unsafe_arena_release_serialized_user_proto() { |
3659 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.serialized_user_proto) |
3660 | |
3661 | PROTOBUF_NAMESPACE_ID::Any* temp = serialized_user_proto_; |
3662 | serialized_user_proto_ = nullptr; |
3663 | return temp; |
3664 | } |
3665 | inline PROTOBUF_NAMESPACE_ID::Any* SavedObject::mutable_serialized_user_proto() { |
3666 | |
3667 | if (serialized_user_proto_ == nullptr) { |
3668 | auto* p = CreateMaybeMessage<PROTOBUF_NAMESPACE_ID::Any>(GetArenaNoVirtual()); |
3669 | serialized_user_proto_ = p; |
3670 | } |
3671 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.serialized_user_proto) |
3672 | return serialized_user_proto_; |
3673 | } |
3674 | inline void SavedObject::set_allocated_serialized_user_proto(PROTOBUF_NAMESPACE_ID::Any* serialized_user_proto) { |
3675 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
3676 | if (message_arena == nullptr) { |
3677 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(serialized_user_proto_); |
3678 | } |
3679 | if (serialized_user_proto) { |
3680 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
3681 | if (message_arena != submessage_arena) { |
3682 | serialized_user_proto = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3683 | message_arena, serialized_user_proto, submessage_arena); |
3684 | } |
3685 | |
3686 | } else { |
3687 | |
3688 | } |
3689 | serialized_user_proto_ = serialized_user_proto; |
3690 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedObject.serialized_user_proto) |
3691 | } |
3692 | |
3693 | // string registered_saver = 16; |
3694 | inline void SavedObject::clear_registered_saver() { |
3695 | registered_saver_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3696 | } |
3697 | inline const std::string& SavedObject::registered_saver() const { |
3698 | // @@protoc_insertion_point(field_get:tensorflow.SavedObject.registered_saver) |
3699 | return registered_saver_.Get(); |
3700 | } |
3701 | inline void SavedObject::set_registered_saver(const std::string& value) { |
3702 | |
3703 | registered_saver_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
3704 | // @@protoc_insertion_point(field_set:tensorflow.SavedObject.registered_saver) |
3705 | } |
3706 | inline void SavedObject::set_registered_saver(std::string&& value) { |
3707 | |
3708 | registered_saver_.Set( |
3709 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
3710 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedObject.registered_saver) |
3711 | } |
3712 | inline void SavedObject::set_registered_saver(const char* value) { |
3713 | GOOGLE_DCHECK(value != nullptr); |
3714 | |
3715 | registered_saver_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
3716 | GetArenaNoVirtual()); |
3717 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedObject.registered_saver) |
3718 | } |
3719 | inline void SavedObject::set_registered_saver(const char* value, |
3720 | size_t size) { |
3721 | |
3722 | registered_saver_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
3723 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
3724 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedObject.registered_saver) |
3725 | } |
3726 | inline std::string* SavedObject::mutable_registered_saver() { |
3727 | |
3728 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedObject.registered_saver) |
3729 | return registered_saver_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3730 | } |
3731 | inline std::string* SavedObject::release_registered_saver() { |
3732 | // @@protoc_insertion_point(field_release:tensorflow.SavedObject.registered_saver) |
3733 | |
3734 | return registered_saver_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3735 | } |
3736 | inline void SavedObject::set_allocated_registered_saver(std::string* registered_saver) { |
3737 | if (registered_saver != nullptr) { |
3738 | |
3739 | } else { |
3740 | |
3741 | } |
3742 | registered_saver_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), registered_saver, |
3743 | GetArenaNoVirtual()); |
3744 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedObject.registered_saver) |
3745 | } |
3746 | inline std::string* SavedObject::unsafe_arena_release_registered_saver() { |
3747 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedObject.registered_saver) |
3748 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3749 | |
3750 | return registered_saver_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3751 | GetArenaNoVirtual()); |
3752 | } |
3753 | inline void SavedObject::unsafe_arena_set_allocated_registered_saver( |
3754 | std::string* registered_saver) { |
3755 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3756 | if (registered_saver != nullptr) { |
3757 | |
3758 | } else { |
3759 | |
3760 | } |
3761 | registered_saver_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3762 | registered_saver, GetArenaNoVirtual()); |
3763 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedObject.registered_saver) |
3764 | } |
3765 | |
3766 | inline bool SavedObject::has_kind() const { |
3767 | return kind_case() != KIND_NOT_SET; |
3768 | } |
3769 | inline void SavedObject::clear_has_kind() { |
3770 | _oneof_case_[0] = KIND_NOT_SET; |
3771 | } |
3772 | inline SavedObject::KindCase SavedObject::kind_case() const { |
3773 | return SavedObject::KindCase(_oneof_case_[0]); |
3774 | } |
3775 | // ------------------------------------------------------------------- |
3776 | |
3777 | // SavedUserObject |
3778 | |
3779 | // string identifier = 1; |
3780 | inline void SavedUserObject::clear_identifier() { |
3781 | identifier_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3782 | } |
3783 | inline const std::string& SavedUserObject::identifier() const { |
3784 | // @@protoc_insertion_point(field_get:tensorflow.SavedUserObject.identifier) |
3785 | return identifier_.Get(); |
3786 | } |
3787 | inline void SavedUserObject::set_identifier(const std::string& value) { |
3788 | |
3789 | identifier_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
3790 | // @@protoc_insertion_point(field_set:tensorflow.SavedUserObject.identifier) |
3791 | } |
3792 | inline void SavedUserObject::set_identifier(std::string&& value) { |
3793 | |
3794 | identifier_.Set( |
3795 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
3796 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedUserObject.identifier) |
3797 | } |
3798 | inline void SavedUserObject::set_identifier(const char* value) { |
3799 | GOOGLE_DCHECK(value != nullptr); |
3800 | |
3801 | identifier_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
3802 | GetArenaNoVirtual()); |
3803 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedUserObject.identifier) |
3804 | } |
3805 | inline void SavedUserObject::set_identifier(const char* value, |
3806 | size_t size) { |
3807 | |
3808 | identifier_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
3809 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
3810 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedUserObject.identifier) |
3811 | } |
3812 | inline std::string* SavedUserObject::mutable_identifier() { |
3813 | |
3814 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedUserObject.identifier) |
3815 | return identifier_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3816 | } |
3817 | inline std::string* SavedUserObject::release_identifier() { |
3818 | // @@protoc_insertion_point(field_release:tensorflow.SavedUserObject.identifier) |
3819 | |
3820 | return identifier_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3821 | } |
3822 | inline void SavedUserObject::set_allocated_identifier(std::string* identifier) { |
3823 | if (identifier != nullptr) { |
3824 | |
3825 | } else { |
3826 | |
3827 | } |
3828 | identifier_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), identifier, |
3829 | GetArenaNoVirtual()); |
3830 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedUserObject.identifier) |
3831 | } |
3832 | inline std::string* SavedUserObject::unsafe_arena_release_identifier() { |
3833 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedUserObject.identifier) |
3834 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3835 | |
3836 | return identifier_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3837 | GetArenaNoVirtual()); |
3838 | } |
3839 | inline void SavedUserObject::unsafe_arena_set_allocated_identifier( |
3840 | std::string* identifier) { |
3841 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3842 | if (identifier != nullptr) { |
3843 | |
3844 | } else { |
3845 | |
3846 | } |
3847 | identifier_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3848 | identifier, GetArenaNoVirtual()); |
3849 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedUserObject.identifier) |
3850 | } |
3851 | |
3852 | // .tensorflow.VersionDef version = 2; |
3853 | inline bool SavedUserObject::has_version() const { |
3854 | return this != internal_default_instance() && version_ != nullptr; |
3855 | } |
3856 | inline const ::tensorflow::VersionDef& SavedUserObject::version() const { |
3857 | const ::tensorflow::VersionDef* p = version_; |
3858 | // @@protoc_insertion_point(field_get:tensorflow.SavedUserObject.version) |
3859 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::VersionDef*>( |
3860 | &::tensorflow::_VersionDef_default_instance_); |
3861 | } |
3862 | inline ::tensorflow::VersionDef* SavedUserObject::release_version() { |
3863 | // @@protoc_insertion_point(field_release:tensorflow.SavedUserObject.version) |
3864 | |
3865 | ::tensorflow::VersionDef* temp = version_; |
3866 | if (GetArenaNoVirtual() != nullptr) { |
3867 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
3868 | } |
3869 | version_ = nullptr; |
3870 | return temp; |
3871 | } |
3872 | inline ::tensorflow::VersionDef* SavedUserObject::unsafe_arena_release_version() { |
3873 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedUserObject.version) |
3874 | |
3875 | ::tensorflow::VersionDef* temp = version_; |
3876 | version_ = nullptr; |
3877 | return temp; |
3878 | } |
3879 | inline ::tensorflow::VersionDef* SavedUserObject::mutable_version() { |
3880 | |
3881 | if (version_ == nullptr) { |
3882 | auto* p = CreateMaybeMessage<::tensorflow::VersionDef>(GetArenaNoVirtual()); |
3883 | version_ = p; |
3884 | } |
3885 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedUserObject.version) |
3886 | return version_; |
3887 | } |
3888 | inline void SavedUserObject::set_allocated_version(::tensorflow::VersionDef* version) { |
3889 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
3890 | if (message_arena == nullptr) { |
3891 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(version_); |
3892 | } |
3893 | if (version) { |
3894 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
3895 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(version)->GetArena(); |
3896 | if (message_arena != submessage_arena) { |
3897 | version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
3898 | message_arena, version, submessage_arena); |
3899 | } |
3900 | |
3901 | } else { |
3902 | |
3903 | } |
3904 | version_ = version; |
3905 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedUserObject.version) |
3906 | } |
3907 | |
3908 | // string metadata = 3 [deprecated = true]; |
3909 | inline void SavedUserObject::clear_metadata() { |
3910 | metadata_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3911 | } |
3912 | inline const std::string& SavedUserObject::metadata() const { |
3913 | // @@protoc_insertion_point(field_get:tensorflow.SavedUserObject.metadata) |
3914 | return metadata_.Get(); |
3915 | } |
3916 | inline void SavedUserObject::set_metadata(const std::string& value) { |
3917 | |
3918 | metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
3919 | // @@protoc_insertion_point(field_set:tensorflow.SavedUserObject.metadata) |
3920 | } |
3921 | inline void SavedUserObject::set_metadata(std::string&& value) { |
3922 | |
3923 | metadata_.Set( |
3924 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
3925 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedUserObject.metadata) |
3926 | } |
3927 | inline void SavedUserObject::set_metadata(const char* value) { |
3928 | GOOGLE_DCHECK(value != nullptr); |
3929 | |
3930 | metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
3931 | GetArenaNoVirtual()); |
3932 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedUserObject.metadata) |
3933 | } |
3934 | inline void SavedUserObject::set_metadata(const char* value, |
3935 | size_t size) { |
3936 | |
3937 | metadata_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
3938 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
3939 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedUserObject.metadata) |
3940 | } |
3941 | inline std::string* SavedUserObject::mutable_metadata() { |
3942 | |
3943 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedUserObject.metadata) |
3944 | return metadata_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3945 | } |
3946 | inline std::string* SavedUserObject::release_metadata() { |
3947 | // @@protoc_insertion_point(field_release:tensorflow.SavedUserObject.metadata) |
3948 | |
3949 | return metadata_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
3950 | } |
3951 | inline void SavedUserObject::set_allocated_metadata(std::string* metadata) { |
3952 | if (metadata != nullptr) { |
3953 | |
3954 | } else { |
3955 | |
3956 | } |
3957 | metadata_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), metadata, |
3958 | GetArenaNoVirtual()); |
3959 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedUserObject.metadata) |
3960 | } |
3961 | inline std::string* SavedUserObject::unsafe_arena_release_metadata() { |
3962 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedUserObject.metadata) |
3963 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3964 | |
3965 | return metadata_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3966 | GetArenaNoVirtual()); |
3967 | } |
3968 | inline void SavedUserObject::unsafe_arena_set_allocated_metadata( |
3969 | std::string* metadata) { |
3970 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
3971 | if (metadata != nullptr) { |
3972 | |
3973 | } else { |
3974 | |
3975 | } |
3976 | metadata_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
3977 | metadata, GetArenaNoVirtual()); |
3978 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedUserObject.metadata) |
3979 | } |
3980 | |
3981 | // ------------------------------------------------------------------- |
3982 | |
3983 | // SavedAsset |
3984 | |
3985 | // int32 asset_file_def_index = 1; |
3986 | inline void SavedAsset::clear_asset_file_def_index() { |
3987 | asset_file_def_index_ = 0; |
3988 | } |
3989 | inline ::PROTOBUF_NAMESPACE_ID::int32 SavedAsset::asset_file_def_index() const { |
3990 | // @@protoc_insertion_point(field_get:tensorflow.SavedAsset.asset_file_def_index) |
3991 | return asset_file_def_index_; |
3992 | } |
3993 | inline void SavedAsset::set_asset_file_def_index(::PROTOBUF_NAMESPACE_ID::int32 value) { |
3994 | |
3995 | asset_file_def_index_ = value; |
3996 | // @@protoc_insertion_point(field_set:tensorflow.SavedAsset.asset_file_def_index) |
3997 | } |
3998 | |
3999 | // ------------------------------------------------------------------- |
4000 | |
4001 | // SavedFunction |
4002 | |
4003 | // repeated string concrete_functions = 1; |
4004 | inline int SavedFunction::concrete_functions_size() const { |
4005 | return concrete_functions_.size(); |
4006 | } |
4007 | inline void SavedFunction::clear_concrete_functions() { |
4008 | concrete_functions_.Clear(); |
4009 | } |
4010 | inline const std::string& SavedFunction::concrete_functions(int index) const { |
4011 | // @@protoc_insertion_point(field_get:tensorflow.SavedFunction.concrete_functions) |
4012 | return concrete_functions_.Get(index); |
4013 | } |
4014 | inline std::string* SavedFunction::mutable_concrete_functions(int index) { |
4015 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedFunction.concrete_functions) |
4016 | return concrete_functions_.Mutable(index); |
4017 | } |
4018 | inline void SavedFunction::set_concrete_functions(int index, const std::string& value) { |
4019 | // @@protoc_insertion_point(field_set:tensorflow.SavedFunction.concrete_functions) |
4020 | concrete_functions_.Mutable(index)->assign(value); |
4021 | } |
4022 | inline void SavedFunction::set_concrete_functions(int index, std::string&& value) { |
4023 | // @@protoc_insertion_point(field_set:tensorflow.SavedFunction.concrete_functions) |
4024 | concrete_functions_.Mutable(index)->assign(std::move(value)); |
4025 | } |
4026 | inline void SavedFunction::set_concrete_functions(int index, const char* value) { |
4027 | GOOGLE_DCHECK(value != nullptr); |
4028 | concrete_functions_.Mutable(index)->assign(value); |
4029 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedFunction.concrete_functions) |
4030 | } |
4031 | inline void SavedFunction::set_concrete_functions(int index, const char* value, size_t size) { |
4032 | concrete_functions_.Mutable(index)->assign( |
4033 | reinterpret_cast<const char*>(value), size); |
4034 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedFunction.concrete_functions) |
4035 | } |
4036 | inline std::string* SavedFunction::add_concrete_functions() { |
4037 | // @@protoc_insertion_point(field_add_mutable:tensorflow.SavedFunction.concrete_functions) |
4038 | return concrete_functions_.Add(); |
4039 | } |
4040 | inline void SavedFunction::add_concrete_functions(const std::string& value) { |
4041 | concrete_functions_.Add()->assign(value); |
4042 | // @@protoc_insertion_point(field_add:tensorflow.SavedFunction.concrete_functions) |
4043 | } |
4044 | inline void SavedFunction::add_concrete_functions(std::string&& value) { |
4045 | concrete_functions_.Add(std::move(value)); |
4046 | // @@protoc_insertion_point(field_add:tensorflow.SavedFunction.concrete_functions) |
4047 | } |
4048 | inline void SavedFunction::add_concrete_functions(const char* value) { |
4049 | GOOGLE_DCHECK(value != nullptr); |
4050 | concrete_functions_.Add()->assign(value); |
4051 | // @@protoc_insertion_point(field_add_char:tensorflow.SavedFunction.concrete_functions) |
4052 | } |
4053 | inline void SavedFunction::add_concrete_functions(const char* value, size_t size) { |
4054 | concrete_functions_.Add()->assign(reinterpret_cast<const char*>(value), size); |
4055 | // @@protoc_insertion_point(field_add_pointer:tensorflow.SavedFunction.concrete_functions) |
4056 | } |
4057 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
4058 | SavedFunction::concrete_functions() const { |
4059 | // @@protoc_insertion_point(field_list:tensorflow.SavedFunction.concrete_functions) |
4060 | return concrete_functions_; |
4061 | } |
4062 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
4063 | SavedFunction::mutable_concrete_functions() { |
4064 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedFunction.concrete_functions) |
4065 | return &concrete_functions_; |
4066 | } |
4067 | |
4068 | // .tensorflow.FunctionSpec function_spec = 2; |
4069 | inline bool SavedFunction::has_function_spec() const { |
4070 | return this != internal_default_instance() && function_spec_ != nullptr; |
4071 | } |
4072 | inline void SavedFunction::clear_function_spec() { |
4073 | if (GetArenaNoVirtual() == nullptr && function_spec_ != nullptr) { |
4074 | delete function_spec_; |
4075 | } |
4076 | function_spec_ = nullptr; |
4077 | } |
4078 | inline const ::tensorflow::FunctionSpec& SavedFunction::function_spec() const { |
4079 | const ::tensorflow::FunctionSpec* p = function_spec_; |
4080 | // @@protoc_insertion_point(field_get:tensorflow.SavedFunction.function_spec) |
4081 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::FunctionSpec*>( |
4082 | &::tensorflow::_FunctionSpec_default_instance_); |
4083 | } |
4084 | inline ::tensorflow::FunctionSpec* SavedFunction::release_function_spec() { |
4085 | // @@protoc_insertion_point(field_release:tensorflow.SavedFunction.function_spec) |
4086 | |
4087 | ::tensorflow::FunctionSpec* temp = function_spec_; |
4088 | if (GetArenaNoVirtual() != nullptr) { |
4089 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4090 | } |
4091 | function_spec_ = nullptr; |
4092 | return temp; |
4093 | } |
4094 | inline ::tensorflow::FunctionSpec* SavedFunction::unsafe_arena_release_function_spec() { |
4095 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedFunction.function_spec) |
4096 | |
4097 | ::tensorflow::FunctionSpec* temp = function_spec_; |
4098 | function_spec_ = nullptr; |
4099 | return temp; |
4100 | } |
4101 | inline ::tensorflow::FunctionSpec* SavedFunction::mutable_function_spec() { |
4102 | |
4103 | if (function_spec_ == nullptr) { |
4104 | auto* p = CreateMaybeMessage<::tensorflow::FunctionSpec>(GetArenaNoVirtual()); |
4105 | function_spec_ = p; |
4106 | } |
4107 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedFunction.function_spec) |
4108 | return function_spec_; |
4109 | } |
4110 | inline void SavedFunction::set_allocated_function_spec(::tensorflow::FunctionSpec* function_spec) { |
4111 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
4112 | if (message_arena == nullptr) { |
4113 | delete function_spec_; |
4114 | } |
4115 | if (function_spec) { |
4116 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
4117 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(function_spec); |
4118 | if (message_arena != submessage_arena) { |
4119 | function_spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
4120 | message_arena, function_spec, submessage_arena); |
4121 | } |
4122 | |
4123 | } else { |
4124 | |
4125 | } |
4126 | function_spec_ = function_spec; |
4127 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedFunction.function_spec) |
4128 | } |
4129 | |
4130 | // ------------------------------------------------------------------- |
4131 | |
4132 | // CapturedTensor |
4133 | |
4134 | // string name = 1; |
4135 | inline void CapturedTensor::clear_name() { |
4136 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4137 | } |
4138 | inline const std::string& CapturedTensor::name() const { |
4139 | // @@protoc_insertion_point(field_get:tensorflow.CapturedTensor.name) |
4140 | return name_.Get(); |
4141 | } |
4142 | inline void CapturedTensor::set_name(const std::string& value) { |
4143 | |
4144 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
4145 | // @@protoc_insertion_point(field_set:tensorflow.CapturedTensor.name) |
4146 | } |
4147 | inline void CapturedTensor::set_name(std::string&& value) { |
4148 | |
4149 | name_.Set( |
4150 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
4151 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.CapturedTensor.name) |
4152 | } |
4153 | inline void CapturedTensor::set_name(const char* value) { |
4154 | GOOGLE_DCHECK(value != nullptr); |
4155 | |
4156 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
4157 | GetArenaNoVirtual()); |
4158 | // @@protoc_insertion_point(field_set_char:tensorflow.CapturedTensor.name) |
4159 | } |
4160 | inline void CapturedTensor::set_name(const char* value, |
4161 | size_t size) { |
4162 | |
4163 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
4164 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
4165 | // @@protoc_insertion_point(field_set_pointer:tensorflow.CapturedTensor.name) |
4166 | } |
4167 | inline std::string* CapturedTensor::mutable_name() { |
4168 | |
4169 | // @@protoc_insertion_point(field_mutable:tensorflow.CapturedTensor.name) |
4170 | return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4171 | } |
4172 | inline std::string* CapturedTensor::release_name() { |
4173 | // @@protoc_insertion_point(field_release:tensorflow.CapturedTensor.name) |
4174 | |
4175 | return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4176 | } |
4177 | inline void CapturedTensor::set_allocated_name(std::string* name) { |
4178 | if (name != nullptr) { |
4179 | |
4180 | } else { |
4181 | |
4182 | } |
4183 | name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, |
4184 | GetArenaNoVirtual()); |
4185 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CapturedTensor.name) |
4186 | } |
4187 | inline std::string* CapturedTensor::unsafe_arena_release_name() { |
4188 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CapturedTensor.name) |
4189 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4190 | |
4191 | return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4192 | GetArenaNoVirtual()); |
4193 | } |
4194 | inline void CapturedTensor::unsafe_arena_set_allocated_name( |
4195 | std::string* name) { |
4196 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4197 | if (name != nullptr) { |
4198 | |
4199 | } else { |
4200 | |
4201 | } |
4202 | name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4203 | name, GetArenaNoVirtual()); |
4204 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CapturedTensor.name) |
4205 | } |
4206 | |
4207 | // string concrete_function = 2; |
4208 | inline void CapturedTensor::clear_concrete_function() { |
4209 | concrete_function_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4210 | } |
4211 | inline const std::string& CapturedTensor::concrete_function() const { |
4212 | // @@protoc_insertion_point(field_get:tensorflow.CapturedTensor.concrete_function) |
4213 | return concrete_function_.Get(); |
4214 | } |
4215 | inline void CapturedTensor::set_concrete_function(const std::string& value) { |
4216 | |
4217 | concrete_function_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
4218 | // @@protoc_insertion_point(field_set:tensorflow.CapturedTensor.concrete_function) |
4219 | } |
4220 | inline void CapturedTensor::set_concrete_function(std::string&& value) { |
4221 | |
4222 | concrete_function_.Set( |
4223 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
4224 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.CapturedTensor.concrete_function) |
4225 | } |
4226 | inline void CapturedTensor::set_concrete_function(const char* value) { |
4227 | GOOGLE_DCHECK(value != nullptr); |
4228 | |
4229 | concrete_function_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
4230 | GetArenaNoVirtual()); |
4231 | // @@protoc_insertion_point(field_set_char:tensorflow.CapturedTensor.concrete_function) |
4232 | } |
4233 | inline void CapturedTensor::set_concrete_function(const char* value, |
4234 | size_t size) { |
4235 | |
4236 | concrete_function_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
4237 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
4238 | // @@protoc_insertion_point(field_set_pointer:tensorflow.CapturedTensor.concrete_function) |
4239 | } |
4240 | inline std::string* CapturedTensor::mutable_concrete_function() { |
4241 | |
4242 | // @@protoc_insertion_point(field_mutable:tensorflow.CapturedTensor.concrete_function) |
4243 | return concrete_function_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4244 | } |
4245 | inline std::string* CapturedTensor::release_concrete_function() { |
4246 | // @@protoc_insertion_point(field_release:tensorflow.CapturedTensor.concrete_function) |
4247 | |
4248 | return concrete_function_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4249 | } |
4250 | inline void CapturedTensor::set_allocated_concrete_function(std::string* concrete_function) { |
4251 | if (concrete_function != nullptr) { |
4252 | |
4253 | } else { |
4254 | |
4255 | } |
4256 | concrete_function_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), concrete_function, |
4257 | GetArenaNoVirtual()); |
4258 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CapturedTensor.concrete_function) |
4259 | } |
4260 | inline std::string* CapturedTensor::unsafe_arena_release_concrete_function() { |
4261 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CapturedTensor.concrete_function) |
4262 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4263 | |
4264 | return concrete_function_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4265 | GetArenaNoVirtual()); |
4266 | } |
4267 | inline void CapturedTensor::unsafe_arena_set_allocated_concrete_function( |
4268 | std::string* concrete_function) { |
4269 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4270 | if (concrete_function != nullptr) { |
4271 | |
4272 | } else { |
4273 | |
4274 | } |
4275 | concrete_function_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4276 | concrete_function, GetArenaNoVirtual()); |
4277 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.CapturedTensor.concrete_function) |
4278 | } |
4279 | |
4280 | // ------------------------------------------------------------------- |
4281 | |
4282 | // SavedConcreteFunction |
4283 | |
4284 | // repeated int32 bound_inputs = 2; |
4285 | inline int SavedConcreteFunction::bound_inputs_size() const { |
4286 | return bound_inputs_.size(); |
4287 | } |
4288 | inline void SavedConcreteFunction::clear_bound_inputs() { |
4289 | bound_inputs_.Clear(); |
4290 | } |
4291 | inline ::PROTOBUF_NAMESPACE_ID::int32 SavedConcreteFunction::bound_inputs(int index) const { |
4292 | // @@protoc_insertion_point(field_get:tensorflow.SavedConcreteFunction.bound_inputs) |
4293 | return bound_inputs_.Get(index); |
4294 | } |
4295 | inline void SavedConcreteFunction::set_bound_inputs(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { |
4296 | bound_inputs_.Set(index, value); |
4297 | // @@protoc_insertion_point(field_set:tensorflow.SavedConcreteFunction.bound_inputs) |
4298 | } |
4299 | inline void SavedConcreteFunction::add_bound_inputs(::PROTOBUF_NAMESPACE_ID::int32 value) { |
4300 | bound_inputs_.Add(value); |
4301 | // @@protoc_insertion_point(field_add:tensorflow.SavedConcreteFunction.bound_inputs) |
4302 | } |
4303 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
4304 | SavedConcreteFunction::bound_inputs() const { |
4305 | // @@protoc_insertion_point(field_list:tensorflow.SavedConcreteFunction.bound_inputs) |
4306 | return bound_inputs_; |
4307 | } |
4308 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
4309 | SavedConcreteFunction::mutable_bound_inputs() { |
4310 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedConcreteFunction.bound_inputs) |
4311 | return &bound_inputs_; |
4312 | } |
4313 | |
4314 | // .tensorflow.StructuredValue canonicalized_input_signature = 3; |
4315 | inline bool SavedConcreteFunction::has_canonicalized_input_signature() const { |
4316 | return this != internal_default_instance() && canonicalized_input_signature_ != nullptr; |
4317 | } |
4318 | inline const ::tensorflow::StructuredValue& SavedConcreteFunction::canonicalized_input_signature() const { |
4319 | const ::tensorflow::StructuredValue* p = canonicalized_input_signature_; |
4320 | // @@protoc_insertion_point(field_get:tensorflow.SavedConcreteFunction.canonicalized_input_signature) |
4321 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::StructuredValue*>( |
4322 | &::tensorflow::_StructuredValue_default_instance_); |
4323 | } |
4324 | inline ::tensorflow::StructuredValue* SavedConcreteFunction::release_canonicalized_input_signature() { |
4325 | // @@protoc_insertion_point(field_release:tensorflow.SavedConcreteFunction.canonicalized_input_signature) |
4326 | |
4327 | ::tensorflow::StructuredValue* temp = canonicalized_input_signature_; |
4328 | if (GetArenaNoVirtual() != nullptr) { |
4329 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4330 | } |
4331 | canonicalized_input_signature_ = nullptr; |
4332 | return temp; |
4333 | } |
4334 | inline ::tensorflow::StructuredValue* SavedConcreteFunction::unsafe_arena_release_canonicalized_input_signature() { |
4335 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedConcreteFunction.canonicalized_input_signature) |
4336 | |
4337 | ::tensorflow::StructuredValue* temp = canonicalized_input_signature_; |
4338 | canonicalized_input_signature_ = nullptr; |
4339 | return temp; |
4340 | } |
4341 | inline ::tensorflow::StructuredValue* SavedConcreteFunction::mutable_canonicalized_input_signature() { |
4342 | |
4343 | if (canonicalized_input_signature_ == nullptr) { |
4344 | auto* p = CreateMaybeMessage<::tensorflow::StructuredValue>(GetArenaNoVirtual()); |
4345 | canonicalized_input_signature_ = p; |
4346 | } |
4347 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedConcreteFunction.canonicalized_input_signature) |
4348 | return canonicalized_input_signature_; |
4349 | } |
4350 | inline void SavedConcreteFunction::set_allocated_canonicalized_input_signature(::tensorflow::StructuredValue* canonicalized_input_signature) { |
4351 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
4352 | if (message_arena == nullptr) { |
4353 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(canonicalized_input_signature_); |
4354 | } |
4355 | if (canonicalized_input_signature) { |
4356 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
4357 | if (message_arena != submessage_arena) { |
4358 | canonicalized_input_signature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
4359 | message_arena, canonicalized_input_signature, submessage_arena); |
4360 | } |
4361 | |
4362 | } else { |
4363 | |
4364 | } |
4365 | canonicalized_input_signature_ = canonicalized_input_signature; |
4366 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedConcreteFunction.canonicalized_input_signature) |
4367 | } |
4368 | |
4369 | // .tensorflow.StructuredValue output_signature = 4; |
4370 | inline bool SavedConcreteFunction::has_output_signature() const { |
4371 | return this != internal_default_instance() && output_signature_ != nullptr; |
4372 | } |
4373 | inline const ::tensorflow::StructuredValue& SavedConcreteFunction::output_signature() const { |
4374 | const ::tensorflow::StructuredValue* p = output_signature_; |
4375 | // @@protoc_insertion_point(field_get:tensorflow.SavedConcreteFunction.output_signature) |
4376 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::StructuredValue*>( |
4377 | &::tensorflow::_StructuredValue_default_instance_); |
4378 | } |
4379 | inline ::tensorflow::StructuredValue* SavedConcreteFunction::release_output_signature() { |
4380 | // @@protoc_insertion_point(field_release:tensorflow.SavedConcreteFunction.output_signature) |
4381 | |
4382 | ::tensorflow::StructuredValue* temp = output_signature_; |
4383 | if (GetArenaNoVirtual() != nullptr) { |
4384 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4385 | } |
4386 | output_signature_ = nullptr; |
4387 | return temp; |
4388 | } |
4389 | inline ::tensorflow::StructuredValue* SavedConcreteFunction::unsafe_arena_release_output_signature() { |
4390 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedConcreteFunction.output_signature) |
4391 | |
4392 | ::tensorflow::StructuredValue* temp = output_signature_; |
4393 | output_signature_ = nullptr; |
4394 | return temp; |
4395 | } |
4396 | inline ::tensorflow::StructuredValue* SavedConcreteFunction::mutable_output_signature() { |
4397 | |
4398 | if (output_signature_ == nullptr) { |
4399 | auto* p = CreateMaybeMessage<::tensorflow::StructuredValue>(GetArenaNoVirtual()); |
4400 | output_signature_ = p; |
4401 | } |
4402 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedConcreteFunction.output_signature) |
4403 | return output_signature_; |
4404 | } |
4405 | inline void SavedConcreteFunction::set_allocated_output_signature(::tensorflow::StructuredValue* output_signature) { |
4406 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
4407 | if (message_arena == nullptr) { |
4408 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(output_signature_); |
4409 | } |
4410 | if (output_signature) { |
4411 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
4412 | if (message_arena != submessage_arena) { |
4413 | output_signature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
4414 | message_arena, output_signature, submessage_arena); |
4415 | } |
4416 | |
4417 | } else { |
4418 | |
4419 | } |
4420 | output_signature_ = output_signature; |
4421 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedConcreteFunction.output_signature) |
4422 | } |
4423 | |
4424 | // ------------------------------------------------------------------- |
4425 | |
4426 | // SavedBareConcreteFunction |
4427 | |
4428 | // string concrete_function_name = 1; |
4429 | inline void SavedBareConcreteFunction::clear_concrete_function_name() { |
4430 | concrete_function_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4431 | } |
4432 | inline const std::string& SavedBareConcreteFunction::concrete_function_name() const { |
4433 | // @@protoc_insertion_point(field_get:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4434 | return concrete_function_name_.Get(); |
4435 | } |
4436 | inline void SavedBareConcreteFunction::set_concrete_function_name(const std::string& value) { |
4437 | |
4438 | concrete_function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
4439 | // @@protoc_insertion_point(field_set:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4440 | } |
4441 | inline void SavedBareConcreteFunction::set_concrete_function_name(std::string&& value) { |
4442 | |
4443 | concrete_function_name_.Set( |
4444 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
4445 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4446 | } |
4447 | inline void SavedBareConcreteFunction::set_concrete_function_name(const char* value) { |
4448 | GOOGLE_DCHECK(value != nullptr); |
4449 | |
4450 | concrete_function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
4451 | GetArenaNoVirtual()); |
4452 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4453 | } |
4454 | inline void SavedBareConcreteFunction::set_concrete_function_name(const char* value, |
4455 | size_t size) { |
4456 | |
4457 | concrete_function_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
4458 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
4459 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4460 | } |
4461 | inline std::string* SavedBareConcreteFunction::mutable_concrete_function_name() { |
4462 | |
4463 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4464 | return concrete_function_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4465 | } |
4466 | inline std::string* SavedBareConcreteFunction::release_concrete_function_name() { |
4467 | // @@protoc_insertion_point(field_release:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4468 | |
4469 | return concrete_function_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4470 | } |
4471 | inline void SavedBareConcreteFunction::set_allocated_concrete_function_name(std::string* concrete_function_name) { |
4472 | if (concrete_function_name != nullptr) { |
4473 | |
4474 | } else { |
4475 | |
4476 | } |
4477 | concrete_function_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), concrete_function_name, |
4478 | GetArenaNoVirtual()); |
4479 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4480 | } |
4481 | inline std::string* SavedBareConcreteFunction::unsafe_arena_release_concrete_function_name() { |
4482 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4483 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4484 | |
4485 | return concrete_function_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4486 | GetArenaNoVirtual()); |
4487 | } |
4488 | inline void SavedBareConcreteFunction::unsafe_arena_set_allocated_concrete_function_name( |
4489 | std::string* concrete_function_name) { |
4490 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4491 | if (concrete_function_name != nullptr) { |
4492 | |
4493 | } else { |
4494 | |
4495 | } |
4496 | concrete_function_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4497 | concrete_function_name, GetArenaNoVirtual()); |
4498 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedBareConcreteFunction.concrete_function_name) |
4499 | } |
4500 | |
4501 | // repeated string argument_keywords = 2; |
4502 | inline int SavedBareConcreteFunction::argument_keywords_size() const { |
4503 | return argument_keywords_.size(); |
4504 | } |
4505 | inline void SavedBareConcreteFunction::clear_argument_keywords() { |
4506 | argument_keywords_.Clear(); |
4507 | } |
4508 | inline const std::string& SavedBareConcreteFunction::argument_keywords(int index) const { |
4509 | // @@protoc_insertion_point(field_get:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4510 | return argument_keywords_.Get(index); |
4511 | } |
4512 | inline std::string* SavedBareConcreteFunction::mutable_argument_keywords(int index) { |
4513 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4514 | return argument_keywords_.Mutable(index); |
4515 | } |
4516 | inline void SavedBareConcreteFunction::set_argument_keywords(int index, const std::string& value) { |
4517 | // @@protoc_insertion_point(field_set:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4518 | argument_keywords_.Mutable(index)->assign(value); |
4519 | } |
4520 | inline void SavedBareConcreteFunction::set_argument_keywords(int index, std::string&& value) { |
4521 | // @@protoc_insertion_point(field_set:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4522 | argument_keywords_.Mutable(index)->assign(std::move(value)); |
4523 | } |
4524 | inline void SavedBareConcreteFunction::set_argument_keywords(int index, const char* value) { |
4525 | GOOGLE_DCHECK(value != nullptr); |
4526 | argument_keywords_.Mutable(index)->assign(value); |
4527 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4528 | } |
4529 | inline void SavedBareConcreteFunction::set_argument_keywords(int index, const char* value, size_t size) { |
4530 | argument_keywords_.Mutable(index)->assign( |
4531 | reinterpret_cast<const char*>(value), size); |
4532 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4533 | } |
4534 | inline std::string* SavedBareConcreteFunction::add_argument_keywords() { |
4535 | // @@protoc_insertion_point(field_add_mutable:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4536 | return argument_keywords_.Add(); |
4537 | } |
4538 | inline void SavedBareConcreteFunction::add_argument_keywords(const std::string& value) { |
4539 | argument_keywords_.Add()->assign(value); |
4540 | // @@protoc_insertion_point(field_add:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4541 | } |
4542 | inline void SavedBareConcreteFunction::add_argument_keywords(std::string&& value) { |
4543 | argument_keywords_.Add(std::move(value)); |
4544 | // @@protoc_insertion_point(field_add:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4545 | } |
4546 | inline void SavedBareConcreteFunction::add_argument_keywords(const char* value) { |
4547 | GOOGLE_DCHECK(value != nullptr); |
4548 | argument_keywords_.Add()->assign(value); |
4549 | // @@protoc_insertion_point(field_add_char:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4550 | } |
4551 | inline void SavedBareConcreteFunction::add_argument_keywords(const char* value, size_t size) { |
4552 | argument_keywords_.Add()->assign(reinterpret_cast<const char*>(value), size); |
4553 | // @@protoc_insertion_point(field_add_pointer:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4554 | } |
4555 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
4556 | SavedBareConcreteFunction::argument_keywords() const { |
4557 | // @@protoc_insertion_point(field_list:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4558 | return argument_keywords_; |
4559 | } |
4560 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
4561 | SavedBareConcreteFunction::mutable_argument_keywords() { |
4562 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedBareConcreteFunction.argument_keywords) |
4563 | return &argument_keywords_; |
4564 | } |
4565 | |
4566 | // int64 allowed_positional_arguments = 3; |
4567 | inline void SavedBareConcreteFunction::clear_allowed_positional_arguments() { |
4568 | allowed_positional_arguments_ = PROTOBUF_LONGLONG(0); |
4569 | } |
4570 | inline ::PROTOBUF_NAMESPACE_ID::int64 SavedBareConcreteFunction::allowed_positional_arguments() const { |
4571 | // @@protoc_insertion_point(field_get:tensorflow.SavedBareConcreteFunction.allowed_positional_arguments) |
4572 | return allowed_positional_arguments_; |
4573 | } |
4574 | inline void SavedBareConcreteFunction::set_allowed_positional_arguments(::PROTOBUF_NAMESPACE_ID::int64 value) { |
4575 | |
4576 | allowed_positional_arguments_ = value; |
4577 | // @@protoc_insertion_point(field_set:tensorflow.SavedBareConcreteFunction.allowed_positional_arguments) |
4578 | } |
4579 | |
4580 | // .tensorflow.FunctionSpec function_spec = 4; |
4581 | inline bool SavedBareConcreteFunction::has_function_spec() const { |
4582 | return this != internal_default_instance() && function_spec_ != nullptr; |
4583 | } |
4584 | inline void SavedBareConcreteFunction::clear_function_spec() { |
4585 | if (GetArenaNoVirtual() == nullptr && function_spec_ != nullptr) { |
4586 | delete function_spec_; |
4587 | } |
4588 | function_spec_ = nullptr; |
4589 | } |
4590 | inline const ::tensorflow::FunctionSpec& SavedBareConcreteFunction::function_spec() const { |
4591 | const ::tensorflow::FunctionSpec* p = function_spec_; |
4592 | // @@protoc_insertion_point(field_get:tensorflow.SavedBareConcreteFunction.function_spec) |
4593 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::FunctionSpec*>( |
4594 | &::tensorflow::_FunctionSpec_default_instance_); |
4595 | } |
4596 | inline ::tensorflow::FunctionSpec* SavedBareConcreteFunction::release_function_spec() { |
4597 | // @@protoc_insertion_point(field_release:tensorflow.SavedBareConcreteFunction.function_spec) |
4598 | |
4599 | ::tensorflow::FunctionSpec* temp = function_spec_; |
4600 | if (GetArenaNoVirtual() != nullptr) { |
4601 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4602 | } |
4603 | function_spec_ = nullptr; |
4604 | return temp; |
4605 | } |
4606 | inline ::tensorflow::FunctionSpec* SavedBareConcreteFunction::unsafe_arena_release_function_spec() { |
4607 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedBareConcreteFunction.function_spec) |
4608 | |
4609 | ::tensorflow::FunctionSpec* temp = function_spec_; |
4610 | function_spec_ = nullptr; |
4611 | return temp; |
4612 | } |
4613 | inline ::tensorflow::FunctionSpec* SavedBareConcreteFunction::mutable_function_spec() { |
4614 | |
4615 | if (function_spec_ == nullptr) { |
4616 | auto* p = CreateMaybeMessage<::tensorflow::FunctionSpec>(GetArenaNoVirtual()); |
4617 | function_spec_ = p; |
4618 | } |
4619 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedBareConcreteFunction.function_spec) |
4620 | return function_spec_; |
4621 | } |
4622 | inline void SavedBareConcreteFunction::set_allocated_function_spec(::tensorflow::FunctionSpec* function_spec) { |
4623 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
4624 | if (message_arena == nullptr) { |
4625 | delete function_spec_; |
4626 | } |
4627 | if (function_spec) { |
4628 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
4629 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(function_spec); |
4630 | if (message_arena != submessage_arena) { |
4631 | function_spec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
4632 | message_arena, function_spec, submessage_arena); |
4633 | } |
4634 | |
4635 | } else { |
4636 | |
4637 | } |
4638 | function_spec_ = function_spec; |
4639 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedBareConcreteFunction.function_spec) |
4640 | } |
4641 | |
4642 | // ------------------------------------------------------------------- |
4643 | |
4644 | // SavedConstant |
4645 | |
4646 | // string operation = 1; |
4647 | inline void SavedConstant::clear_operation() { |
4648 | operation_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4649 | } |
4650 | inline const std::string& SavedConstant::operation() const { |
4651 | // @@protoc_insertion_point(field_get:tensorflow.SavedConstant.operation) |
4652 | return operation_.Get(); |
4653 | } |
4654 | inline void SavedConstant::set_operation(const std::string& value) { |
4655 | |
4656 | operation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
4657 | // @@protoc_insertion_point(field_set:tensorflow.SavedConstant.operation) |
4658 | } |
4659 | inline void SavedConstant::set_operation(std::string&& value) { |
4660 | |
4661 | operation_.Set( |
4662 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
4663 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedConstant.operation) |
4664 | } |
4665 | inline void SavedConstant::set_operation(const char* value) { |
4666 | GOOGLE_DCHECK(value != nullptr); |
4667 | |
4668 | operation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
4669 | GetArenaNoVirtual()); |
4670 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedConstant.operation) |
4671 | } |
4672 | inline void SavedConstant::set_operation(const char* value, |
4673 | size_t size) { |
4674 | |
4675 | operation_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
4676 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
4677 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedConstant.operation) |
4678 | } |
4679 | inline std::string* SavedConstant::mutable_operation() { |
4680 | |
4681 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedConstant.operation) |
4682 | return operation_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4683 | } |
4684 | inline std::string* SavedConstant::release_operation() { |
4685 | // @@protoc_insertion_point(field_release:tensorflow.SavedConstant.operation) |
4686 | |
4687 | return operation_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4688 | } |
4689 | inline void SavedConstant::set_allocated_operation(std::string* operation) { |
4690 | if (operation != nullptr) { |
4691 | |
4692 | } else { |
4693 | |
4694 | } |
4695 | operation_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), operation, |
4696 | GetArenaNoVirtual()); |
4697 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedConstant.operation) |
4698 | } |
4699 | inline std::string* SavedConstant::unsafe_arena_release_operation() { |
4700 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedConstant.operation) |
4701 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4702 | |
4703 | return operation_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4704 | GetArenaNoVirtual()); |
4705 | } |
4706 | inline void SavedConstant::unsafe_arena_set_allocated_operation( |
4707 | std::string* operation) { |
4708 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4709 | if (operation != nullptr) { |
4710 | |
4711 | } else { |
4712 | |
4713 | } |
4714 | operation_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4715 | operation, GetArenaNoVirtual()); |
4716 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedConstant.operation) |
4717 | } |
4718 | |
4719 | // ------------------------------------------------------------------- |
4720 | |
4721 | // SavedVariable |
4722 | |
4723 | // .tensorflow.DataType dtype = 1; |
4724 | inline void SavedVariable::clear_dtype() { |
4725 | dtype_ = 0; |
4726 | } |
4727 | inline ::tensorflow::DataType SavedVariable::dtype() const { |
4728 | // @@protoc_insertion_point(field_get:tensorflow.SavedVariable.dtype) |
4729 | return static_cast< ::tensorflow::DataType >(dtype_); |
4730 | } |
4731 | inline void SavedVariable::set_dtype(::tensorflow::DataType value) { |
4732 | |
4733 | dtype_ = value; |
4734 | // @@protoc_insertion_point(field_set:tensorflow.SavedVariable.dtype) |
4735 | } |
4736 | |
4737 | // .tensorflow.TensorShapeProto shape = 2; |
4738 | inline bool SavedVariable::has_shape() const { |
4739 | return this != internal_default_instance() && shape_ != nullptr; |
4740 | } |
4741 | inline const ::tensorflow::TensorShapeProto& SavedVariable::shape() const { |
4742 | const ::tensorflow::TensorShapeProto* p = shape_; |
4743 | // @@protoc_insertion_point(field_get:tensorflow.SavedVariable.shape) |
4744 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>( |
4745 | &::tensorflow::_TensorShapeProto_default_instance_); |
4746 | } |
4747 | inline ::tensorflow::TensorShapeProto* SavedVariable::release_shape() { |
4748 | // @@protoc_insertion_point(field_release:tensorflow.SavedVariable.shape) |
4749 | |
4750 | ::tensorflow::TensorShapeProto* temp = shape_; |
4751 | if (GetArenaNoVirtual() != nullptr) { |
4752 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
4753 | } |
4754 | shape_ = nullptr; |
4755 | return temp; |
4756 | } |
4757 | inline ::tensorflow::TensorShapeProto* SavedVariable::unsafe_arena_release_shape() { |
4758 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedVariable.shape) |
4759 | |
4760 | ::tensorflow::TensorShapeProto* temp = shape_; |
4761 | shape_ = nullptr; |
4762 | return temp; |
4763 | } |
4764 | inline ::tensorflow::TensorShapeProto* SavedVariable::mutable_shape() { |
4765 | |
4766 | if (shape_ == nullptr) { |
4767 | auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); |
4768 | shape_ = p; |
4769 | } |
4770 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedVariable.shape) |
4771 | return shape_; |
4772 | } |
4773 | inline void SavedVariable::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { |
4774 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
4775 | if (message_arena == nullptr) { |
4776 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_); |
4777 | } |
4778 | if (shape) { |
4779 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
4780 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape)->GetArena(); |
4781 | if (message_arena != submessage_arena) { |
4782 | shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
4783 | message_arena, shape, submessage_arena); |
4784 | } |
4785 | |
4786 | } else { |
4787 | |
4788 | } |
4789 | shape_ = shape; |
4790 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedVariable.shape) |
4791 | } |
4792 | |
4793 | // bool trainable = 3; |
4794 | inline void SavedVariable::clear_trainable() { |
4795 | trainable_ = false; |
4796 | } |
4797 | inline bool SavedVariable::trainable() const { |
4798 | // @@protoc_insertion_point(field_get:tensorflow.SavedVariable.trainable) |
4799 | return trainable_; |
4800 | } |
4801 | inline void SavedVariable::set_trainable(bool value) { |
4802 | |
4803 | trainable_ = value; |
4804 | // @@protoc_insertion_point(field_set:tensorflow.SavedVariable.trainable) |
4805 | } |
4806 | |
4807 | // .tensorflow.VariableSynchronization synchronization = 4; |
4808 | inline void SavedVariable::clear_synchronization() { |
4809 | synchronization_ = 0; |
4810 | } |
4811 | inline ::tensorflow::VariableSynchronization SavedVariable::synchronization() const { |
4812 | // @@protoc_insertion_point(field_get:tensorflow.SavedVariable.synchronization) |
4813 | return static_cast< ::tensorflow::VariableSynchronization >(synchronization_); |
4814 | } |
4815 | inline void SavedVariable::set_synchronization(::tensorflow::VariableSynchronization value) { |
4816 | |
4817 | synchronization_ = value; |
4818 | // @@protoc_insertion_point(field_set:tensorflow.SavedVariable.synchronization) |
4819 | } |
4820 | |
4821 | // .tensorflow.VariableAggregation aggregation = 5; |
4822 | inline void SavedVariable::clear_aggregation() { |
4823 | aggregation_ = 0; |
4824 | } |
4825 | inline ::tensorflow::VariableAggregation SavedVariable::aggregation() const { |
4826 | // @@protoc_insertion_point(field_get:tensorflow.SavedVariable.aggregation) |
4827 | return static_cast< ::tensorflow::VariableAggregation >(aggregation_); |
4828 | } |
4829 | inline void SavedVariable::set_aggregation(::tensorflow::VariableAggregation value) { |
4830 | |
4831 | aggregation_ = value; |
4832 | // @@protoc_insertion_point(field_set:tensorflow.SavedVariable.aggregation) |
4833 | } |
4834 | |
4835 | // string name = 6; |
4836 | inline void SavedVariable::clear_name() { |
4837 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4838 | } |
4839 | inline const std::string& SavedVariable::name() const { |
4840 | // @@protoc_insertion_point(field_get:tensorflow.SavedVariable.name) |
4841 | return name_.Get(); |
4842 | } |
4843 | inline void SavedVariable::set_name(const std::string& value) { |
4844 | |
4845 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
4846 | // @@protoc_insertion_point(field_set:tensorflow.SavedVariable.name) |
4847 | } |
4848 | inline void SavedVariable::set_name(std::string&& value) { |
4849 | |
4850 | name_.Set( |
4851 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
4852 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedVariable.name) |
4853 | } |
4854 | inline void SavedVariable::set_name(const char* value) { |
4855 | GOOGLE_DCHECK(value != nullptr); |
4856 | |
4857 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
4858 | GetArenaNoVirtual()); |
4859 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedVariable.name) |
4860 | } |
4861 | inline void SavedVariable::set_name(const char* value, |
4862 | size_t size) { |
4863 | |
4864 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
4865 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
4866 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedVariable.name) |
4867 | } |
4868 | inline std::string* SavedVariable::mutable_name() { |
4869 | |
4870 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedVariable.name) |
4871 | return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4872 | } |
4873 | inline std::string* SavedVariable::release_name() { |
4874 | // @@protoc_insertion_point(field_release:tensorflow.SavedVariable.name) |
4875 | |
4876 | return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4877 | } |
4878 | inline void SavedVariable::set_allocated_name(std::string* name) { |
4879 | if (name != nullptr) { |
4880 | |
4881 | } else { |
4882 | |
4883 | } |
4884 | name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, |
4885 | GetArenaNoVirtual()); |
4886 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedVariable.name) |
4887 | } |
4888 | inline std::string* SavedVariable::unsafe_arena_release_name() { |
4889 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedVariable.name) |
4890 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4891 | |
4892 | return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4893 | GetArenaNoVirtual()); |
4894 | } |
4895 | inline void SavedVariable::unsafe_arena_set_allocated_name( |
4896 | std::string* name) { |
4897 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4898 | if (name != nullptr) { |
4899 | |
4900 | } else { |
4901 | |
4902 | } |
4903 | name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4904 | name, GetArenaNoVirtual()); |
4905 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedVariable.name) |
4906 | } |
4907 | |
4908 | // string device = 7; |
4909 | inline void SavedVariable::clear_device() { |
4910 | device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4911 | } |
4912 | inline const std::string& SavedVariable::device() const { |
4913 | // @@protoc_insertion_point(field_get:tensorflow.SavedVariable.device) |
4914 | return device_.Get(); |
4915 | } |
4916 | inline void SavedVariable::set_device(const std::string& value) { |
4917 | |
4918 | device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
4919 | // @@protoc_insertion_point(field_set:tensorflow.SavedVariable.device) |
4920 | } |
4921 | inline void SavedVariable::set_device(std::string&& value) { |
4922 | |
4923 | device_.Set( |
4924 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
4925 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedVariable.device) |
4926 | } |
4927 | inline void SavedVariable::set_device(const char* value) { |
4928 | GOOGLE_DCHECK(value != nullptr); |
4929 | |
4930 | device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
4931 | GetArenaNoVirtual()); |
4932 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedVariable.device) |
4933 | } |
4934 | inline void SavedVariable::set_device(const char* value, |
4935 | size_t size) { |
4936 | |
4937 | device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
4938 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
4939 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedVariable.device) |
4940 | } |
4941 | inline std::string* SavedVariable::mutable_device() { |
4942 | |
4943 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedVariable.device) |
4944 | return device_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4945 | } |
4946 | inline std::string* SavedVariable::release_device() { |
4947 | // @@protoc_insertion_point(field_release:tensorflow.SavedVariable.device) |
4948 | |
4949 | return device_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
4950 | } |
4951 | inline void SavedVariable::set_allocated_device(std::string* device) { |
4952 | if (device != nullptr) { |
4953 | |
4954 | } else { |
4955 | |
4956 | } |
4957 | device_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device, |
4958 | GetArenaNoVirtual()); |
4959 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedVariable.device) |
4960 | } |
4961 | inline std::string* SavedVariable::unsafe_arena_release_device() { |
4962 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedVariable.device) |
4963 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4964 | |
4965 | return device_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4966 | GetArenaNoVirtual()); |
4967 | } |
4968 | inline void SavedVariable::unsafe_arena_set_allocated_device( |
4969 | std::string* device) { |
4970 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
4971 | if (device != nullptr) { |
4972 | |
4973 | } else { |
4974 | |
4975 | } |
4976 | device_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
4977 | device, GetArenaNoVirtual()); |
4978 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedVariable.device) |
4979 | } |
4980 | |
4981 | // repeated .tensorflow.SavedVariable experimental_distributed_variable_components = 8; |
4982 | inline int SavedVariable::experimental_distributed_variable_components_size() const { |
4983 | return experimental_distributed_variable_components_.size(); |
4984 | } |
4985 | inline void SavedVariable::clear_experimental_distributed_variable_components() { |
4986 | experimental_distributed_variable_components_.Clear(); |
4987 | } |
4988 | inline ::tensorflow::SavedVariable* SavedVariable::mutable_experimental_distributed_variable_components(int index) { |
4989 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedVariable.experimental_distributed_variable_components) |
4990 | return experimental_distributed_variable_components_.Mutable(index); |
4991 | } |
4992 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedVariable >* |
4993 | SavedVariable::mutable_experimental_distributed_variable_components() { |
4994 | // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedVariable.experimental_distributed_variable_components) |
4995 | return &experimental_distributed_variable_components_; |
4996 | } |
4997 | inline const ::tensorflow::SavedVariable& SavedVariable::experimental_distributed_variable_components(int index) const { |
4998 | // @@protoc_insertion_point(field_get:tensorflow.SavedVariable.experimental_distributed_variable_components) |
4999 | return experimental_distributed_variable_components_.Get(index); |
5000 | } |
5001 | inline ::tensorflow::SavedVariable* SavedVariable::add_experimental_distributed_variable_components() { |
5002 | // @@protoc_insertion_point(field_add:tensorflow.SavedVariable.experimental_distributed_variable_components) |
5003 | return experimental_distributed_variable_components_.Add(); |
5004 | } |
5005 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::SavedVariable >& |
5006 | SavedVariable::experimental_distributed_variable_components() const { |
5007 | // @@protoc_insertion_point(field_list:tensorflow.SavedVariable.experimental_distributed_variable_components) |
5008 | return experimental_distributed_variable_components_; |
5009 | } |
5010 | |
5011 | // ------------------------------------------------------------------- |
5012 | |
5013 | // FunctionSpec |
5014 | |
5015 | // .tensorflow.StructuredValue fullargspec = 1; |
5016 | inline bool FunctionSpec::has_fullargspec() const { |
5017 | return this != internal_default_instance() && fullargspec_ != nullptr; |
5018 | } |
5019 | inline const ::tensorflow::StructuredValue& FunctionSpec::fullargspec() const { |
5020 | const ::tensorflow::StructuredValue* p = fullargspec_; |
5021 | // @@protoc_insertion_point(field_get:tensorflow.FunctionSpec.fullargspec) |
5022 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::StructuredValue*>( |
5023 | &::tensorflow::_StructuredValue_default_instance_); |
5024 | } |
5025 | inline ::tensorflow::StructuredValue* FunctionSpec::release_fullargspec() { |
5026 | // @@protoc_insertion_point(field_release:tensorflow.FunctionSpec.fullargspec) |
5027 | |
5028 | ::tensorflow::StructuredValue* temp = fullargspec_; |
5029 | if (GetArenaNoVirtual() != nullptr) { |
5030 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5031 | } |
5032 | fullargspec_ = nullptr; |
5033 | return temp; |
5034 | } |
5035 | inline ::tensorflow::StructuredValue* FunctionSpec::unsafe_arena_release_fullargspec() { |
5036 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionSpec.fullargspec) |
5037 | |
5038 | ::tensorflow::StructuredValue* temp = fullargspec_; |
5039 | fullargspec_ = nullptr; |
5040 | return temp; |
5041 | } |
5042 | inline ::tensorflow::StructuredValue* FunctionSpec::mutable_fullargspec() { |
5043 | |
5044 | if (fullargspec_ == nullptr) { |
5045 | auto* p = CreateMaybeMessage<::tensorflow::StructuredValue>(GetArenaNoVirtual()); |
5046 | fullargspec_ = p; |
5047 | } |
5048 | // @@protoc_insertion_point(field_mutable:tensorflow.FunctionSpec.fullargspec) |
5049 | return fullargspec_; |
5050 | } |
5051 | inline void FunctionSpec::set_allocated_fullargspec(::tensorflow::StructuredValue* fullargspec) { |
5052 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
5053 | if (message_arena == nullptr) { |
5054 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(fullargspec_); |
5055 | } |
5056 | if (fullargspec) { |
5057 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
5058 | if (message_arena != submessage_arena) { |
5059 | fullargspec = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5060 | message_arena, fullargspec, submessage_arena); |
5061 | } |
5062 | |
5063 | } else { |
5064 | |
5065 | } |
5066 | fullargspec_ = fullargspec; |
5067 | // @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionSpec.fullargspec) |
5068 | } |
5069 | |
5070 | // bool is_method = 2; |
5071 | inline void FunctionSpec::clear_is_method() { |
5072 | is_method_ = false; |
5073 | } |
5074 | inline bool FunctionSpec::is_method() const { |
5075 | // @@protoc_insertion_point(field_get:tensorflow.FunctionSpec.is_method) |
5076 | return is_method_; |
5077 | } |
5078 | inline void FunctionSpec::set_is_method(bool value) { |
5079 | |
5080 | is_method_ = value; |
5081 | // @@protoc_insertion_point(field_set:tensorflow.FunctionSpec.is_method) |
5082 | } |
5083 | |
5084 | // .tensorflow.StructuredValue input_signature = 5; |
5085 | inline bool FunctionSpec::has_input_signature() const { |
5086 | return this != internal_default_instance() && input_signature_ != nullptr; |
5087 | } |
5088 | inline const ::tensorflow::StructuredValue& FunctionSpec::input_signature() const { |
5089 | const ::tensorflow::StructuredValue* p = input_signature_; |
5090 | // @@protoc_insertion_point(field_get:tensorflow.FunctionSpec.input_signature) |
5091 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::StructuredValue*>( |
5092 | &::tensorflow::_StructuredValue_default_instance_); |
5093 | } |
5094 | inline ::tensorflow::StructuredValue* FunctionSpec::release_input_signature() { |
5095 | // @@protoc_insertion_point(field_release:tensorflow.FunctionSpec.input_signature) |
5096 | |
5097 | ::tensorflow::StructuredValue* temp = input_signature_; |
5098 | if (GetArenaNoVirtual() != nullptr) { |
5099 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
5100 | } |
5101 | input_signature_ = nullptr; |
5102 | return temp; |
5103 | } |
5104 | inline ::tensorflow::StructuredValue* FunctionSpec::unsafe_arena_release_input_signature() { |
5105 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FunctionSpec.input_signature) |
5106 | |
5107 | ::tensorflow::StructuredValue* temp = input_signature_; |
5108 | input_signature_ = nullptr; |
5109 | return temp; |
5110 | } |
5111 | inline ::tensorflow::StructuredValue* FunctionSpec::mutable_input_signature() { |
5112 | |
5113 | if (input_signature_ == nullptr) { |
5114 | auto* p = CreateMaybeMessage<::tensorflow::StructuredValue>(GetArenaNoVirtual()); |
5115 | input_signature_ = p; |
5116 | } |
5117 | // @@protoc_insertion_point(field_mutable:tensorflow.FunctionSpec.input_signature) |
5118 | return input_signature_; |
5119 | } |
5120 | inline void FunctionSpec::set_allocated_input_signature(::tensorflow::StructuredValue* input_signature) { |
5121 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
5122 | if (message_arena == nullptr) { |
5123 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(input_signature_); |
5124 | } |
5125 | if (input_signature) { |
5126 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
5127 | if (message_arena != submessage_arena) { |
5128 | input_signature = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
5129 | message_arena, input_signature, submessage_arena); |
5130 | } |
5131 | |
5132 | } else { |
5133 | |
5134 | } |
5135 | input_signature_ = input_signature; |
5136 | // @@protoc_insertion_point(field_set_allocated:tensorflow.FunctionSpec.input_signature) |
5137 | } |
5138 | |
5139 | // .tensorflow.FunctionSpec.JitCompile jit_compile = 6; |
5140 | inline void FunctionSpec::clear_jit_compile() { |
5141 | jit_compile_ = 0; |
5142 | } |
5143 | inline ::tensorflow::FunctionSpec_JitCompile FunctionSpec::jit_compile() const { |
5144 | // @@protoc_insertion_point(field_get:tensorflow.FunctionSpec.jit_compile) |
5145 | return static_cast< ::tensorflow::FunctionSpec_JitCompile >(jit_compile_); |
5146 | } |
5147 | inline void FunctionSpec::set_jit_compile(::tensorflow::FunctionSpec_JitCompile value) { |
5148 | |
5149 | jit_compile_ = value; |
5150 | // @@protoc_insertion_point(field_set:tensorflow.FunctionSpec.jit_compile) |
5151 | } |
5152 | |
5153 | // ------------------------------------------------------------------- |
5154 | |
5155 | // SavedResource |
5156 | |
5157 | // string device = 1; |
5158 | inline void SavedResource::clear_device() { |
5159 | device_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5160 | } |
5161 | inline const std::string& SavedResource::device() const { |
5162 | // @@protoc_insertion_point(field_get:tensorflow.SavedResource.device) |
5163 | return device_.Get(); |
5164 | } |
5165 | inline void SavedResource::set_device(const std::string& value) { |
5166 | |
5167 | device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
5168 | // @@protoc_insertion_point(field_set:tensorflow.SavedResource.device) |
5169 | } |
5170 | inline void SavedResource::set_device(std::string&& value) { |
5171 | |
5172 | device_.Set( |
5173 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
5174 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.SavedResource.device) |
5175 | } |
5176 | inline void SavedResource::set_device(const char* value) { |
5177 | GOOGLE_DCHECK(value != nullptr); |
5178 | |
5179 | device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
5180 | GetArenaNoVirtual()); |
5181 | // @@protoc_insertion_point(field_set_char:tensorflow.SavedResource.device) |
5182 | } |
5183 | inline void SavedResource::set_device(const char* value, |
5184 | size_t size) { |
5185 | |
5186 | device_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
5187 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
5188 | // @@protoc_insertion_point(field_set_pointer:tensorflow.SavedResource.device) |
5189 | } |
5190 | inline std::string* SavedResource::mutable_device() { |
5191 | |
5192 | // @@protoc_insertion_point(field_mutable:tensorflow.SavedResource.device) |
5193 | return device_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5194 | } |
5195 | inline std::string* SavedResource::release_device() { |
5196 | // @@protoc_insertion_point(field_release:tensorflow.SavedResource.device) |
5197 | |
5198 | return device_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
5199 | } |
5200 | inline void SavedResource::set_allocated_device(std::string* device) { |
5201 | if (device != nullptr) { |
5202 | |
5203 | } else { |
5204 | |
5205 | } |
5206 | device_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), device, |
5207 | GetArenaNoVirtual()); |
5208 | // @@protoc_insertion_point(field_set_allocated:tensorflow.SavedResource.device) |
5209 | } |
5210 | inline std::string* SavedResource::unsafe_arena_release_device() { |
5211 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.SavedResource.device) |
5212 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
5213 | |
5214 | return device_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5215 | GetArenaNoVirtual()); |
5216 | } |
5217 | inline void SavedResource::unsafe_arena_set_allocated_device( |
5218 | std::string* device) { |
5219 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
5220 | if (device != nullptr) { |
5221 | |
5222 | } else { |
5223 | |
5224 | } |
5225 | device_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
5226 | device, GetArenaNoVirtual()); |
5227 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.SavedResource.device) |
5228 | } |
5229 | |
5230 | // ------------------------------------------------------------------- |
5231 | |
5232 | // SaveableObject |
5233 | |
5234 | // int32 save_function = 2; |
5235 | inline void SaveableObject::clear_save_function() { |
5236 | save_function_ = 0; |
5237 | } |
5238 | inline ::PROTOBUF_NAMESPACE_ID::int32 SaveableObject::save_function() const { |
5239 | // @@protoc_insertion_point(field_get:tensorflow.SaveableObject.save_function) |
5240 | return save_function_; |
5241 | } |
5242 | inline void SaveableObject::set_save_function(::PROTOBUF_NAMESPACE_ID::int32 value) { |
5243 | |
5244 | save_function_ = value; |
5245 | // @@protoc_insertion_point(field_set:tensorflow.SaveableObject.save_function) |
5246 | } |
5247 | |
5248 | // int32 restore_function = 3; |
5249 | inline void SaveableObject::clear_restore_function() { |
5250 | restore_function_ = 0; |
5251 | } |
5252 | inline ::PROTOBUF_NAMESPACE_ID::int32 SaveableObject::restore_function() const { |
5253 | // @@protoc_insertion_point(field_get:tensorflow.SaveableObject.restore_function) |
5254 | return restore_function_; |
5255 | } |
5256 | inline void SaveableObject::set_restore_function(::PROTOBUF_NAMESPACE_ID::int32 value) { |
5257 | |
5258 | restore_function_ = value; |
5259 | // @@protoc_insertion_point(field_set:tensorflow.SaveableObject.restore_function) |
5260 | } |
5261 | |
5262 | #ifdef __GNUC__ |
5263 | #pragma GCC diagnostic pop |
5264 | #endif // __GNUC__ |
5265 | // ------------------------------------------------------------------- |
5266 | |
5267 | // ------------------------------------------------------------------- |
5268 | |
5269 | // ------------------------------------------------------------------- |
5270 | |
5271 | // ------------------------------------------------------------------- |
5272 | |
5273 | // ------------------------------------------------------------------- |
5274 | |
5275 | // ------------------------------------------------------------------- |
5276 | |
5277 | // ------------------------------------------------------------------- |
5278 | |
5279 | // ------------------------------------------------------------------- |
5280 | |
5281 | // ------------------------------------------------------------------- |
5282 | |
5283 | // ------------------------------------------------------------------- |
5284 | |
5285 | // ------------------------------------------------------------------- |
5286 | |
5287 | // ------------------------------------------------------------------- |
5288 | |
5289 | // ------------------------------------------------------------------- |
5290 | |
5291 | // ------------------------------------------------------------------- |
5292 | |
5293 | |
5294 | // @@protoc_insertion_point(namespace_scope) |
5295 | |
5296 | } // namespace tensorflow |
5297 | |
5298 | PROTOBUF_NAMESPACE_OPEN |
5299 | |
5300 | template <> struct is_proto_enum< ::tensorflow::FunctionSpec_JitCompile> : ::std::true_type {}; |
5301 | template <> |
5302 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::FunctionSpec_JitCompile>() { |
5303 | return ::tensorflow::FunctionSpec_JitCompile_descriptor(); |
5304 | } |
5305 | |
5306 | PROTOBUF_NAMESPACE_CLOSE |
5307 | |
5308 | // @@protoc_insertion_point(global_scope) |
5309 | |
5310 | #include <google/protobuf/port_undef.inc> |
5311 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaved_5fobject_5fgraph_2eproto |
5312 | |