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