1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/lite/toco/model_flags.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2flite_2ftoco_2fmodel_5fflags_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/generated_enum_reflection.h>
35#include <google/protobuf/unknown_field_set.h>
36#include "tensorflow/lite/toco/types.pb.h"
37// @@protoc_insertion_point(includes)
38#include <google/protobuf/port_def.inc>
39#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto
40PROTOBUF_NAMESPACE_OPEN
41namespace internal {
42class AnyMetadata;
43} // namespace internal
44PROTOBUF_NAMESPACE_CLOSE
45
46// Internal implementation detail -- do not use these members.
47struct TableStruct_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto {
48 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
49 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
50 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
51 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
52 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[7]
53 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
54 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
55 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
56 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
57};
58extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto;
59namespace toco {
60class ArraysExtraInfo;
61class ArraysExtraInfoDefaultTypeInternal;
62extern ArraysExtraInfoDefaultTypeInternal _ArraysExtraInfo_default_instance_;
63class ArraysExtraInfo_Entry;
64class ArraysExtraInfo_EntryDefaultTypeInternal;
65extern ArraysExtraInfo_EntryDefaultTypeInternal _ArraysExtraInfo_Entry_default_instance_;
66class InputArray;
67class InputArrayDefaultTypeInternal;
68extern InputArrayDefaultTypeInternal _InputArray_default_instance_;
69class InputArrayShape;
70class InputArrayShapeDefaultTypeInternal;
71extern InputArrayShapeDefaultTypeInternal _InputArrayShape_default_instance_;
72class ModelFlags;
73class ModelFlagsDefaultTypeInternal;
74extern ModelFlagsDefaultTypeInternal _ModelFlags_default_instance_;
75class ModelFlags_ModelCheck;
76class ModelFlags_ModelCheckDefaultTypeInternal;
77extern ModelFlags_ModelCheckDefaultTypeInternal _ModelFlags_ModelCheck_default_instance_;
78class RnnState;
79class RnnStateDefaultTypeInternal;
80extern RnnStateDefaultTypeInternal _RnnState_default_instance_;
81} // namespace toco
82PROTOBUF_NAMESPACE_OPEN
83template<> ::toco::ArraysExtraInfo* Arena::CreateMaybeMessage<::toco::ArraysExtraInfo>(Arena*);
84template<> ::toco::ArraysExtraInfo_Entry* Arena::CreateMaybeMessage<::toco::ArraysExtraInfo_Entry>(Arena*);
85template<> ::toco::InputArray* Arena::CreateMaybeMessage<::toco::InputArray>(Arena*);
86template<> ::toco::InputArrayShape* Arena::CreateMaybeMessage<::toco::InputArrayShape>(Arena*);
87template<> ::toco::ModelFlags* Arena::CreateMaybeMessage<::toco::ModelFlags>(Arena*);
88template<> ::toco::ModelFlags_ModelCheck* Arena::CreateMaybeMessage<::toco::ModelFlags_ModelCheck>(Arena*);
89template<> ::toco::RnnState* Arena::CreateMaybeMessage<::toco::RnnState>(Arena*);
90PROTOBUF_NAMESPACE_CLOSE
91namespace toco {
92
93enum ModelFlags_HloFileType : int {
94 ModelFlags_HloFileType_UNKNOWN = 0,
95 ModelFlags_HloFileType_HLO_TEXT = 1,
96 ModelFlags_HloFileType_HLO_PROTO = 2
97};
98bool ModelFlags_HloFileType_IsValid(int value);
99constexpr ModelFlags_HloFileType ModelFlags_HloFileType_HloFileType_MIN = ModelFlags_HloFileType_UNKNOWN;
100constexpr ModelFlags_HloFileType ModelFlags_HloFileType_HloFileType_MAX = ModelFlags_HloFileType_HLO_PROTO;
101constexpr int ModelFlags_HloFileType_HloFileType_ARRAYSIZE = ModelFlags_HloFileType_HloFileType_MAX + 1;
102
103const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* ModelFlags_HloFileType_descriptor();
104template<typename T>
105inline const std::string& ModelFlags_HloFileType_Name(T enum_t_value) {
106 static_assert(::std::is_same<T, ModelFlags_HloFileType>::value ||
107 ::std::is_integral<T>::value,
108 "Incorrect type passed to function ModelFlags_HloFileType_Name.");
109 return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum(
110 ModelFlags_HloFileType_descriptor(), enum_t_value);
111}
112inline bool ModelFlags_HloFileType_Parse(
113 const std::string& name, ModelFlags_HloFileType* value) {
114 return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<ModelFlags_HloFileType>(
115 ModelFlags_HloFileType_descriptor(), name, value);
116}
117// ===================================================================
118
119class InputArrayShape :
120 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:toco.InputArrayShape) */ {
121 public:
122 InputArrayShape();
123 virtual ~InputArrayShape();
124
125 InputArrayShape(const InputArrayShape& from);
126 InputArrayShape(InputArrayShape&& from) noexcept
127 : InputArrayShape() {
128 *this = ::std::move(from);
129 }
130
131 inline InputArrayShape& operator=(const InputArrayShape& from) {
132 CopyFrom(from);
133 return *this;
134 }
135 inline InputArrayShape& operator=(InputArrayShape&& from) noexcept {
136 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
137 if (this != &from) InternalSwap(&from);
138 } else {
139 CopyFrom(from);
140 }
141 return *this;
142 }
143
144 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
145 return _internal_metadata_.unknown_fields();
146 }
147 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
148 return _internal_metadata_.mutable_unknown_fields();
149 }
150
151 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
152 return GetDescriptor();
153 }
154 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
155 return GetMetadataStatic().descriptor;
156 }
157 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
158 return GetMetadataStatic().reflection;
159 }
160 static const InputArrayShape& default_instance();
161
162 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
163 static inline const InputArrayShape* internal_default_instance() {
164 return reinterpret_cast<const InputArrayShape*>(
165 &_InputArrayShape_default_instance_);
166 }
167 static constexpr int kIndexInFileMessages =
168 0;
169
170 friend void swap(InputArrayShape& a, InputArrayShape& b) {
171 a.Swap(&b);
172 }
173 inline void Swap(InputArrayShape* other) {
174 if (other == this) return;
175 InternalSwap(other);
176 }
177
178 // implements Message ----------------------------------------------
179
180 inline InputArrayShape* New() const final {
181 return CreateMaybeMessage<InputArrayShape>(nullptr);
182 }
183
184 InputArrayShape* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
185 return CreateMaybeMessage<InputArrayShape>(arena);
186 }
187 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
188 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
189 void CopyFrom(const InputArrayShape& from);
190 void MergeFrom(const InputArrayShape& from);
191 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
192 bool IsInitialized() const final;
193
194 size_t ByteSizeLong() const final;
195 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
196 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
197 #else
198 bool MergePartialFromCodedStream(
199 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
200 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
201 void SerializeWithCachedSizes(
202 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
203 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
204 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
205 int GetCachedSize() const final { return _cached_size_.Get(); }
206
207 private:
208 inline void SharedCtor();
209 inline void SharedDtor();
210 void SetCachedSize(int size) const final;
211 void InternalSwap(InputArrayShape* other);
212 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
213 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
214 return "toco.InputArrayShape";
215 }
216 private:
217 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
218 return nullptr;
219 }
220 inline void* MaybeArenaPtr() const {
221 return nullptr;
222 }
223 public:
224
225 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
226 private:
227 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
228 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto);
229 return ::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto.file_level_metadata[kIndexInFileMessages];
230 }
231
232 public:
233
234 // nested types ----------------------------------------------------
235
236 // accessors -------------------------------------------------------
237
238 enum : int {
239 kDimsFieldNumber = 2,
240 kUnknownRankFieldNumber = 3,
241 };
242 // repeated int32 dims = 2;
243 int dims_size() const;
244 void clear_dims();
245 ::PROTOBUF_NAMESPACE_ID::int32 dims(int index) const;
246 void set_dims(int index, ::PROTOBUF_NAMESPACE_ID::int32 value);
247 void add_dims(::PROTOBUF_NAMESPACE_ID::int32 value);
248 const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
249 dims() const;
250 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
251 mutable_dims();
252
253 // optional bool unknown_rank = 3;
254 bool has_unknown_rank() const;
255 void clear_unknown_rank();
256 bool unknown_rank() const;
257 void set_unknown_rank(bool value);
258
259 // @@protoc_insertion_point(class_scope:toco.InputArrayShape)
260 private:
261 class _Internal;
262
263 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
264 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
265 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
266 ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > dims_;
267 bool unknown_rank_;
268 friend struct ::TableStruct_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto;
269};
270// -------------------------------------------------------------------
271
272class InputArray :
273 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:toco.InputArray) */ {
274 public:
275 InputArray();
276 virtual ~InputArray();
277
278 InputArray(const InputArray& from);
279 InputArray(InputArray&& from) noexcept
280 : InputArray() {
281 *this = ::std::move(from);
282 }
283
284 inline InputArray& operator=(const InputArray& from) {
285 CopyFrom(from);
286 return *this;
287 }
288 inline InputArray& operator=(InputArray&& from) noexcept {
289 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
290 if (this != &from) InternalSwap(&from);
291 } else {
292 CopyFrom(from);
293 }
294 return *this;
295 }
296
297 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
298 return _internal_metadata_.unknown_fields();
299 }
300 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
301 return _internal_metadata_.mutable_unknown_fields();
302 }
303
304 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
305 return GetDescriptor();
306 }
307 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
308 return GetMetadataStatic().descriptor;
309 }
310 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
311 return GetMetadataStatic().reflection;
312 }
313 static const InputArray& default_instance();
314
315 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
316 static inline const InputArray* internal_default_instance() {
317 return reinterpret_cast<const InputArray*>(
318 &_InputArray_default_instance_);
319 }
320 static constexpr int kIndexInFileMessages =
321 1;
322
323 friend void swap(InputArray& a, InputArray& b) {
324 a.Swap(&b);
325 }
326 inline void Swap(InputArray* other) {
327 if (other == this) return;
328 InternalSwap(other);
329 }
330
331 // implements Message ----------------------------------------------
332
333 inline InputArray* New() const final {
334 return CreateMaybeMessage<InputArray>(nullptr);
335 }
336
337 InputArray* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
338 return CreateMaybeMessage<InputArray>(arena);
339 }
340 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
341 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
342 void CopyFrom(const InputArray& from);
343 void MergeFrom(const InputArray& from);
344 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
345 bool IsInitialized() const final;
346
347 size_t ByteSizeLong() const final;
348 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
349 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
350 #else
351 bool MergePartialFromCodedStream(
352 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
353 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
354 void SerializeWithCachedSizes(
355 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
356 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
357 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
358 int GetCachedSize() const final { return _cached_size_.Get(); }
359
360 private:
361 inline void SharedCtor();
362 inline void SharedDtor();
363 void SetCachedSize(int size) const final;
364 void InternalSwap(InputArray* other);
365 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
366 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
367 return "toco.InputArray";
368 }
369 private:
370 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
371 return nullptr;
372 }
373 inline void* MaybeArenaPtr() const {
374 return nullptr;
375 }
376 public:
377
378 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
379 private:
380 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
381 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto);
382 return ::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto.file_level_metadata[kIndexInFileMessages];
383 }
384
385 public:
386
387 // nested types ----------------------------------------------------
388
389 // accessors -------------------------------------------------------
390
391 enum : int {
392 kNameFieldNumber = 1,
393 kShapeFieldNumber = 6,
394 kMeanValueFieldNumber = 3,
395 kDataTypeFieldNumber = 5,
396 kStdValueFieldNumber = 4,
397 };
398 // optional string name = 1;
399 bool has_name() const;
400 void clear_name();
401 const std::string& name() const;
402 void set_name(const std::string& value);
403 void set_name(std::string&& value);
404 void set_name(const char* value);
405 void set_name(const char* value, size_t size);
406 std::string* mutable_name();
407 std::string* release_name();
408 void set_allocated_name(std::string* name);
409
410 // optional .toco.InputArrayShape shape = 6;
411 bool has_shape() const;
412 void clear_shape();
413 const ::toco::InputArrayShape& shape() const;
414 ::toco::InputArrayShape* release_shape();
415 ::toco::InputArrayShape* mutable_shape();
416 void set_allocated_shape(::toco::InputArrayShape* shape);
417
418 // optional float mean_value = 3;
419 bool has_mean_value() const;
420 void clear_mean_value();
421 float mean_value() const;
422 void set_mean_value(float value);
423
424 // optional .toco.IODataType data_type = 5;
425 bool has_data_type() const;
426 void clear_data_type();
427 ::toco::IODataType data_type() const;
428 void set_data_type(::toco::IODataType value);
429
430 // optional float std_value = 4 [default = 1];
431 bool has_std_value() const;
432 void clear_std_value();
433 float std_value() const;
434 void set_std_value(float value);
435
436 // @@protoc_insertion_point(class_scope:toco.InputArray)
437 private:
438 class _Internal;
439
440 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
441 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
442 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
443 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
444 ::toco::InputArrayShape* shape_;
445 float mean_value_;
446 int data_type_;
447 float std_value_;
448 friend struct ::TableStruct_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto;
449};
450// -------------------------------------------------------------------
451
452class RnnState :
453 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:toco.RnnState) */ {
454 public:
455 RnnState();
456 virtual ~RnnState();
457
458 RnnState(const RnnState& from);
459 RnnState(RnnState&& from) noexcept
460 : RnnState() {
461 *this = ::std::move(from);
462 }
463
464 inline RnnState& operator=(const RnnState& from) {
465 CopyFrom(from);
466 return *this;
467 }
468 inline RnnState& operator=(RnnState&& from) noexcept {
469 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
470 if (this != &from) InternalSwap(&from);
471 } else {
472 CopyFrom(from);
473 }
474 return *this;
475 }
476
477 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
478 return _internal_metadata_.unknown_fields();
479 }
480 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
481 return _internal_metadata_.mutable_unknown_fields();
482 }
483
484 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
485 return GetDescriptor();
486 }
487 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
488 return GetMetadataStatic().descriptor;
489 }
490 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
491 return GetMetadataStatic().reflection;
492 }
493 static const RnnState& default_instance();
494
495 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
496 static inline const RnnState* internal_default_instance() {
497 return reinterpret_cast<const RnnState*>(
498 &_RnnState_default_instance_);
499 }
500 static constexpr int kIndexInFileMessages =
501 2;
502
503 friend void swap(RnnState& a, RnnState& b) {
504 a.Swap(&b);
505 }
506 inline void Swap(RnnState* other) {
507 if (other == this) return;
508 InternalSwap(other);
509 }
510
511 // implements Message ----------------------------------------------
512
513 inline RnnState* New() const final {
514 return CreateMaybeMessage<RnnState>(nullptr);
515 }
516
517 RnnState* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
518 return CreateMaybeMessage<RnnState>(arena);
519 }
520 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
521 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
522 void CopyFrom(const RnnState& from);
523 void MergeFrom(const RnnState& from);
524 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
525 bool IsInitialized() const final;
526
527 size_t ByteSizeLong() const final;
528 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
529 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
530 #else
531 bool MergePartialFromCodedStream(
532 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
533 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
534 void SerializeWithCachedSizes(
535 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
536 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
537 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
538 int GetCachedSize() const final { return _cached_size_.Get(); }
539
540 private:
541 inline void SharedCtor();
542 inline void SharedDtor();
543 void SetCachedSize(int size) const final;
544 void InternalSwap(RnnState* other);
545 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
546 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
547 return "toco.RnnState";
548 }
549 private:
550 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
551 return nullptr;
552 }
553 inline void* MaybeArenaPtr() const {
554 return nullptr;
555 }
556 public:
557
558 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
559 private:
560 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
561 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto);
562 return ::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto.file_level_metadata[kIndexInFileMessages];
563 }
564
565 public:
566
567 // nested types ----------------------------------------------------
568
569 // accessors -------------------------------------------------------
570
571 enum : int {
572 kStateArrayFieldNumber = 1,
573 kBackEdgeSourceArrayFieldNumber = 2,
574 kSizeFieldNumber = 3,
575 kNumDimsFieldNumber = 4,
576 kDiscardableFieldNumber = 5,
577 };
578 // optional string state_array = 1;
579 bool has_state_array() const;
580 void clear_state_array();
581 const std::string& state_array() const;
582 void set_state_array(const std::string& value);
583 void set_state_array(std::string&& value);
584 void set_state_array(const char* value);
585 void set_state_array(const char* value, size_t size);
586 std::string* mutable_state_array();
587 std::string* release_state_array();
588 void set_allocated_state_array(std::string* state_array);
589
590 // optional string back_edge_source_array = 2;
591 bool has_back_edge_source_array() const;
592 void clear_back_edge_source_array();
593 const std::string& back_edge_source_array() const;
594 void set_back_edge_source_array(const std::string& value);
595 void set_back_edge_source_array(std::string&& value);
596 void set_back_edge_source_array(const char* value);
597 void set_back_edge_source_array(const char* value, size_t size);
598 std::string* mutable_back_edge_source_array();
599 std::string* release_back_edge_source_array();
600 void set_allocated_back_edge_source_array(std::string* back_edge_source_array);
601
602 // optional int32 size = 3;
603 bool has_size() const;
604 void clear_size();
605 ::PROTOBUF_NAMESPACE_ID::int32 size() const;
606 void set_size(::PROTOBUF_NAMESPACE_ID::int32 value);
607
608 // optional int32 num_dims = 4;
609 bool has_num_dims() const;
610 void clear_num_dims();
611 ::PROTOBUF_NAMESPACE_ID::int32 num_dims() const;
612 void set_num_dims(::PROTOBUF_NAMESPACE_ID::int32 value);
613
614 // optional bool discardable = 5;
615 bool has_discardable() const;
616 void clear_discardable();
617 bool discardable() const;
618 void set_discardable(bool value);
619
620 // @@protoc_insertion_point(class_scope:toco.RnnState)
621 private:
622 class _Internal;
623
624 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
625 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
626 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
627 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr state_array_;
628 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr back_edge_source_array_;
629 ::PROTOBUF_NAMESPACE_ID::int32 size_;
630 ::PROTOBUF_NAMESPACE_ID::int32 num_dims_;
631 bool discardable_;
632 friend struct ::TableStruct_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto;
633};
634// -------------------------------------------------------------------
635
636class ArraysExtraInfo_Entry :
637 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:toco.ArraysExtraInfo.Entry) */ {
638 public:
639 ArraysExtraInfo_Entry();
640 virtual ~ArraysExtraInfo_Entry();
641
642 ArraysExtraInfo_Entry(const ArraysExtraInfo_Entry& from);
643 ArraysExtraInfo_Entry(ArraysExtraInfo_Entry&& from) noexcept
644 : ArraysExtraInfo_Entry() {
645 *this = ::std::move(from);
646 }
647
648 inline ArraysExtraInfo_Entry& operator=(const ArraysExtraInfo_Entry& from) {
649 CopyFrom(from);
650 return *this;
651 }
652 inline ArraysExtraInfo_Entry& operator=(ArraysExtraInfo_Entry&& from) noexcept {
653 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
654 if (this != &from) InternalSwap(&from);
655 } else {
656 CopyFrom(from);
657 }
658 return *this;
659 }
660
661 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
662 return _internal_metadata_.unknown_fields();
663 }
664 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
665 return _internal_metadata_.mutable_unknown_fields();
666 }
667
668 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
669 return GetDescriptor();
670 }
671 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
672 return GetMetadataStatic().descriptor;
673 }
674 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
675 return GetMetadataStatic().reflection;
676 }
677 static const ArraysExtraInfo_Entry& default_instance();
678
679 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
680 static inline const ArraysExtraInfo_Entry* internal_default_instance() {
681 return reinterpret_cast<const ArraysExtraInfo_Entry*>(
682 &_ArraysExtraInfo_Entry_default_instance_);
683 }
684 static constexpr int kIndexInFileMessages =
685 3;
686
687 friend void swap(ArraysExtraInfo_Entry& a, ArraysExtraInfo_Entry& b) {
688 a.Swap(&b);
689 }
690 inline void Swap(ArraysExtraInfo_Entry* other) {
691 if (other == this) return;
692 InternalSwap(other);
693 }
694
695 // implements Message ----------------------------------------------
696
697 inline ArraysExtraInfo_Entry* New() const final {
698 return CreateMaybeMessage<ArraysExtraInfo_Entry>(nullptr);
699 }
700
701 ArraysExtraInfo_Entry* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
702 return CreateMaybeMessage<ArraysExtraInfo_Entry>(arena);
703 }
704 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
705 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
706 void CopyFrom(const ArraysExtraInfo_Entry& from);
707 void MergeFrom(const ArraysExtraInfo_Entry& from);
708 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
709 bool IsInitialized() const final;
710
711 size_t ByteSizeLong() const final;
712 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
713 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
714 #else
715 bool MergePartialFromCodedStream(
716 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
717 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
718 void SerializeWithCachedSizes(
719 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
720 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
721 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
722 int GetCachedSize() const final { return _cached_size_.Get(); }
723
724 private:
725 inline void SharedCtor();
726 inline void SharedDtor();
727 void SetCachedSize(int size) const final;
728 void InternalSwap(ArraysExtraInfo_Entry* other);
729 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
730 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
731 return "toco.ArraysExtraInfo.Entry";
732 }
733 private:
734 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
735 return nullptr;
736 }
737 inline void* MaybeArenaPtr() const {
738 return nullptr;
739 }
740 public:
741
742 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
743 private:
744 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
745 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto);
746 return ::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto.file_level_metadata[kIndexInFileMessages];
747 }
748
749 public:
750
751 // nested types ----------------------------------------------------
752
753 // accessors -------------------------------------------------------
754
755 enum : int {
756 kNameFieldNumber = 1,
757 kNameRegexpFieldNumber = 7,
758 kShapeFieldNumber = 5,
759 kMinFieldNumber = 2,
760 kMaxFieldNumber = 3,
761 kDataTypeFieldNumber = 4,
762 kConstantFloatValueFieldNumber = 6,
763 };
764 // optional string name = 1;
765 bool has_name() const;
766 void clear_name();
767 const std::string& name() const;
768 void set_name(const std::string& value);
769 void set_name(std::string&& value);
770 void set_name(const char* value);
771 void set_name(const char* value, size_t size);
772 std::string* mutable_name();
773 std::string* release_name();
774 void set_allocated_name(std::string* name);
775
776 // optional string name_regexp = 7;
777 bool has_name_regexp() const;
778 void clear_name_regexp();
779 const std::string& name_regexp() const;
780 void set_name_regexp(const std::string& value);
781 void set_name_regexp(std::string&& value);
782 void set_name_regexp(const char* value);
783 void set_name_regexp(const char* value, size_t size);
784 std::string* mutable_name_regexp();
785 std::string* release_name_regexp();
786 void set_allocated_name_regexp(std::string* name_regexp);
787
788 // optional .toco.InputArrayShape shape = 5;
789 bool has_shape() const;
790 void clear_shape();
791 const ::toco::InputArrayShape& shape() const;
792 ::toco::InputArrayShape* release_shape();
793 ::toco::InputArrayShape* mutable_shape();
794 void set_allocated_shape(::toco::InputArrayShape* shape);
795
796 // optional double min = 2;
797 bool has_min() const;
798 void clear_min();
799 double min() const;
800 void set_min(double value);
801
802 // optional double max = 3;
803 bool has_max() const;
804 void clear_max();
805 double max() const;
806 void set_max(double value);
807
808 // optional .toco.IODataType data_type = 4;
809 bool has_data_type() const;
810 void clear_data_type();
811 ::toco::IODataType data_type() const;
812 void set_data_type(::toco::IODataType value);
813
814 // optional float constant_float_value = 6;
815 bool has_constant_float_value() const;
816 void clear_constant_float_value();
817 float constant_float_value() const;
818 void set_constant_float_value(float value);
819
820 // @@protoc_insertion_point(class_scope:toco.ArraysExtraInfo.Entry)
821 private:
822 class _Internal;
823
824 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
825 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
826 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
827 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
828 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_regexp_;
829 ::toco::InputArrayShape* shape_;
830 double min_;
831 double max_;
832 int data_type_;
833 float constant_float_value_;
834 friend struct ::TableStruct_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto;
835};
836// -------------------------------------------------------------------
837
838class ArraysExtraInfo :
839 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:toco.ArraysExtraInfo) */ {
840 public:
841 ArraysExtraInfo();
842 virtual ~ArraysExtraInfo();
843
844 ArraysExtraInfo(const ArraysExtraInfo& from);
845 ArraysExtraInfo(ArraysExtraInfo&& from) noexcept
846 : ArraysExtraInfo() {
847 *this = ::std::move(from);
848 }
849
850 inline ArraysExtraInfo& operator=(const ArraysExtraInfo& from) {
851 CopyFrom(from);
852 return *this;
853 }
854 inline ArraysExtraInfo& operator=(ArraysExtraInfo&& from) noexcept {
855 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
856 if (this != &from) InternalSwap(&from);
857 } else {
858 CopyFrom(from);
859 }
860 return *this;
861 }
862
863 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
864 return _internal_metadata_.unknown_fields();
865 }
866 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
867 return _internal_metadata_.mutable_unknown_fields();
868 }
869
870 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
871 return GetDescriptor();
872 }
873 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
874 return GetMetadataStatic().descriptor;
875 }
876 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
877 return GetMetadataStatic().reflection;
878 }
879 static const ArraysExtraInfo& default_instance();
880
881 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
882 static inline const ArraysExtraInfo* internal_default_instance() {
883 return reinterpret_cast<const ArraysExtraInfo*>(
884 &_ArraysExtraInfo_default_instance_);
885 }
886 static constexpr int kIndexInFileMessages =
887 4;
888
889 friend void swap(ArraysExtraInfo& a, ArraysExtraInfo& b) {
890 a.Swap(&b);
891 }
892 inline void Swap(ArraysExtraInfo* other) {
893 if (other == this) return;
894 InternalSwap(other);
895 }
896
897 // implements Message ----------------------------------------------
898
899 inline ArraysExtraInfo* New() const final {
900 return CreateMaybeMessage<ArraysExtraInfo>(nullptr);
901 }
902
903 ArraysExtraInfo* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
904 return CreateMaybeMessage<ArraysExtraInfo>(arena);
905 }
906 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
907 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
908 void CopyFrom(const ArraysExtraInfo& from);
909 void MergeFrom(const ArraysExtraInfo& from);
910 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
911 bool IsInitialized() const final;
912
913 size_t ByteSizeLong() const final;
914 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
915 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
916 #else
917 bool MergePartialFromCodedStream(
918 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
919 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
920 void SerializeWithCachedSizes(
921 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
922 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
923 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
924 int GetCachedSize() const final { return _cached_size_.Get(); }
925
926 private:
927 inline void SharedCtor();
928 inline void SharedDtor();
929 void SetCachedSize(int size) const final;
930 void InternalSwap(ArraysExtraInfo* other);
931 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
932 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
933 return "toco.ArraysExtraInfo";
934 }
935 private:
936 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
937 return nullptr;
938 }
939 inline void* MaybeArenaPtr() const {
940 return nullptr;
941 }
942 public:
943
944 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
945 private:
946 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
947 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto);
948 return ::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto.file_level_metadata[kIndexInFileMessages];
949 }
950
951 public:
952
953 // nested types ----------------------------------------------------
954
955 typedef ArraysExtraInfo_Entry Entry;
956
957 // accessors -------------------------------------------------------
958
959 enum : int {
960 kEntriesFieldNumber = 1,
961 };
962 // repeated .toco.ArraysExtraInfo.Entry entries = 1;
963 int entries_size() const;
964 void clear_entries();
965 ::toco::ArraysExtraInfo_Entry* mutable_entries(int index);
966 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ArraysExtraInfo_Entry >*
967 mutable_entries();
968 const ::toco::ArraysExtraInfo_Entry& entries(int index) const;
969 ::toco::ArraysExtraInfo_Entry* add_entries();
970 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ArraysExtraInfo_Entry >&
971 entries() const;
972
973 // @@protoc_insertion_point(class_scope:toco.ArraysExtraInfo)
974 private:
975 class _Internal;
976
977 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
978 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
979 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
980 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ArraysExtraInfo_Entry > entries_;
981 friend struct ::TableStruct_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto;
982};
983// -------------------------------------------------------------------
984
985class ModelFlags_ModelCheck :
986 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:toco.ModelFlags.ModelCheck) */ {
987 public:
988 ModelFlags_ModelCheck();
989 virtual ~ModelFlags_ModelCheck();
990
991 ModelFlags_ModelCheck(const ModelFlags_ModelCheck& from);
992 ModelFlags_ModelCheck(ModelFlags_ModelCheck&& from) noexcept
993 : ModelFlags_ModelCheck() {
994 *this = ::std::move(from);
995 }
996
997 inline ModelFlags_ModelCheck& operator=(const ModelFlags_ModelCheck& from) {
998 CopyFrom(from);
999 return *this;
1000 }
1001 inline ModelFlags_ModelCheck& operator=(ModelFlags_ModelCheck&& from) noexcept {
1002 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1003 if (this != &from) InternalSwap(&from);
1004 } else {
1005 CopyFrom(from);
1006 }
1007 return *this;
1008 }
1009
1010 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1011 return _internal_metadata_.unknown_fields();
1012 }
1013 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1014 return _internal_metadata_.mutable_unknown_fields();
1015 }
1016
1017 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1018 return GetDescriptor();
1019 }
1020 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1021 return GetMetadataStatic().descriptor;
1022 }
1023 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1024 return GetMetadataStatic().reflection;
1025 }
1026 static const ModelFlags_ModelCheck& default_instance();
1027
1028 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1029 static inline const ModelFlags_ModelCheck* internal_default_instance() {
1030 return reinterpret_cast<const ModelFlags_ModelCheck*>(
1031 &_ModelFlags_ModelCheck_default_instance_);
1032 }
1033 static constexpr int kIndexInFileMessages =
1034 5;
1035
1036 friend void swap(ModelFlags_ModelCheck& a, ModelFlags_ModelCheck& b) {
1037 a.Swap(&b);
1038 }
1039 inline void Swap(ModelFlags_ModelCheck* other) {
1040 if (other == this) return;
1041 InternalSwap(other);
1042 }
1043
1044 // implements Message ----------------------------------------------
1045
1046 inline ModelFlags_ModelCheck* New() const final {
1047 return CreateMaybeMessage<ModelFlags_ModelCheck>(nullptr);
1048 }
1049
1050 ModelFlags_ModelCheck* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1051 return CreateMaybeMessage<ModelFlags_ModelCheck>(arena);
1052 }
1053 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1054 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1055 void CopyFrom(const ModelFlags_ModelCheck& from);
1056 void MergeFrom(const ModelFlags_ModelCheck& from);
1057 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1058 bool IsInitialized() const final;
1059
1060 size_t ByteSizeLong() const final;
1061 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1062 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1063 #else
1064 bool MergePartialFromCodedStream(
1065 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
1066 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1067 void SerializeWithCachedSizes(
1068 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
1069 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
1070 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
1071 int GetCachedSize() const final { return _cached_size_.Get(); }
1072
1073 private:
1074 inline void SharedCtor();
1075 inline void SharedDtor();
1076 void SetCachedSize(int size) const final;
1077 void InternalSwap(ModelFlags_ModelCheck* other);
1078 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1079 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1080 return "toco.ModelFlags.ModelCheck";
1081 }
1082 private:
1083 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
1084 return nullptr;
1085 }
1086 inline void* MaybeArenaPtr() const {
1087 return nullptr;
1088 }
1089 public:
1090
1091 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1092 private:
1093 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1094 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto);
1095 return ::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto.file_level_metadata[kIndexInFileMessages];
1096 }
1097
1098 public:
1099
1100 // nested types ----------------------------------------------------
1101
1102 // accessors -------------------------------------------------------
1103
1104 enum : int {
1105 kCountTypeFieldNumber = 1,
1106 kCountMinFieldNumber = 2,
1107 kCountMaxFieldNumber = 3,
1108 };
1109 // optional string count_type = 1 [default = "None"];
1110 bool has_count_type() const;
1111 void clear_count_type();
1112 const std::string& count_type() const;
1113 void set_count_type(const std::string& value);
1114 void set_count_type(std::string&& value);
1115 void set_count_type(const char* value);
1116 void set_count_type(const char* value, size_t size);
1117 std::string* mutable_count_type();
1118 std::string* release_count_type();
1119 void set_allocated_count_type(std::string* count_type);
1120
1121 // optional int32 count_min = 2 [default = -1];
1122 bool has_count_min() const;
1123 void clear_count_min();
1124 ::PROTOBUF_NAMESPACE_ID::int32 count_min() const;
1125 void set_count_min(::PROTOBUF_NAMESPACE_ID::int32 value);
1126
1127 // optional int32 count_max = 3 [default = -1];
1128 bool has_count_max() const;
1129 void clear_count_max();
1130 ::PROTOBUF_NAMESPACE_ID::int32 count_max() const;
1131 void set_count_max(::PROTOBUF_NAMESPACE_ID::int32 value);
1132
1133 // @@protoc_insertion_point(class_scope:toco.ModelFlags.ModelCheck)
1134 private:
1135 class _Internal;
1136
1137 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
1138 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1139 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1140 public:
1141 static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> _i_give_permission_to_break_this_code_default_count_type_;
1142 private:
1143 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr count_type_;
1144 ::PROTOBUF_NAMESPACE_ID::int32 count_min_;
1145 ::PROTOBUF_NAMESPACE_ID::int32 count_max_;
1146 friend struct ::TableStruct_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto;
1147};
1148// -------------------------------------------------------------------
1149
1150class ModelFlags :
1151 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:toco.ModelFlags) */ {
1152 public:
1153 ModelFlags();
1154 virtual ~ModelFlags();
1155
1156 ModelFlags(const ModelFlags& from);
1157 ModelFlags(ModelFlags&& from) noexcept
1158 : ModelFlags() {
1159 *this = ::std::move(from);
1160 }
1161
1162 inline ModelFlags& operator=(const ModelFlags& from) {
1163 CopyFrom(from);
1164 return *this;
1165 }
1166 inline ModelFlags& operator=(ModelFlags&& from) noexcept {
1167 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
1168 if (this != &from) InternalSwap(&from);
1169 } else {
1170 CopyFrom(from);
1171 }
1172 return *this;
1173 }
1174
1175 inline const ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet& unknown_fields() const {
1176 return _internal_metadata_.unknown_fields();
1177 }
1178 inline ::PROTOBUF_NAMESPACE_ID::UnknownFieldSet* mutable_unknown_fields() {
1179 return _internal_metadata_.mutable_unknown_fields();
1180 }
1181
1182 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
1183 return GetDescriptor();
1184 }
1185 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
1186 return GetMetadataStatic().descriptor;
1187 }
1188 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
1189 return GetMetadataStatic().reflection;
1190 }
1191 static const ModelFlags& default_instance();
1192
1193 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
1194 static inline const ModelFlags* internal_default_instance() {
1195 return reinterpret_cast<const ModelFlags*>(
1196 &_ModelFlags_default_instance_);
1197 }
1198 static constexpr int kIndexInFileMessages =
1199 6;
1200
1201 friend void swap(ModelFlags& a, ModelFlags& b) {
1202 a.Swap(&b);
1203 }
1204 inline void Swap(ModelFlags* other) {
1205 if (other == this) return;
1206 InternalSwap(other);
1207 }
1208
1209 // implements Message ----------------------------------------------
1210
1211 inline ModelFlags* New() const final {
1212 return CreateMaybeMessage<ModelFlags>(nullptr);
1213 }
1214
1215 ModelFlags* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
1216 return CreateMaybeMessage<ModelFlags>(arena);
1217 }
1218 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1219 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
1220 void CopyFrom(const ModelFlags& from);
1221 void MergeFrom(const ModelFlags& from);
1222 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
1223 bool IsInitialized() const final;
1224
1225 size_t ByteSizeLong() const final;
1226 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1227 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
1228 #else
1229 bool MergePartialFromCodedStream(
1230 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
1231 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
1232 void SerializeWithCachedSizes(
1233 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
1234 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
1235 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
1236 int GetCachedSize() const final { return _cached_size_.Get(); }
1237
1238 private:
1239 inline void SharedCtor();
1240 inline void SharedDtor();
1241 void SetCachedSize(int size) const final;
1242 void InternalSwap(ModelFlags* other);
1243 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
1244 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
1245 return "toco.ModelFlags";
1246 }
1247 private:
1248 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
1249 return nullptr;
1250 }
1251 inline void* MaybeArenaPtr() const {
1252 return nullptr;
1253 }
1254 public:
1255
1256 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
1257 private:
1258 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
1259 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto);
1260 return ::descriptor_table_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto.file_level_metadata[kIndexInFileMessages];
1261 }
1262
1263 public:
1264
1265 // nested types ----------------------------------------------------
1266
1267 typedef ModelFlags_ModelCheck ModelCheck;
1268
1269 typedef ModelFlags_HloFileType HloFileType;
1270 static constexpr HloFileType UNKNOWN =
1271 ModelFlags_HloFileType_UNKNOWN;
1272 static constexpr HloFileType HLO_TEXT =
1273 ModelFlags_HloFileType_HLO_TEXT;
1274 static constexpr HloFileType HLO_PROTO =
1275 ModelFlags_HloFileType_HLO_PROTO;
1276 static inline bool HloFileType_IsValid(int value) {
1277 return ModelFlags_HloFileType_IsValid(value);
1278 }
1279 static constexpr HloFileType HloFileType_MIN =
1280 ModelFlags_HloFileType_HloFileType_MIN;
1281 static constexpr HloFileType HloFileType_MAX =
1282 ModelFlags_HloFileType_HloFileType_MAX;
1283 static constexpr int HloFileType_ARRAYSIZE =
1284 ModelFlags_HloFileType_HloFileType_ARRAYSIZE;
1285 static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor*
1286 HloFileType_descriptor() {
1287 return ModelFlags_HloFileType_descriptor();
1288 }
1289 template<typename T>
1290 static inline const std::string& HloFileType_Name(T enum_t_value) {
1291 static_assert(::std::is_same<T, HloFileType>::value ||
1292 ::std::is_integral<T>::value,
1293 "Incorrect type passed to function HloFileType_Name.");
1294 return ModelFlags_HloFileType_Name(enum_t_value);
1295 }
1296 static inline bool HloFileType_Parse(const std::string& name,
1297 HloFileType* value) {
1298 return ModelFlags_HloFileType_Parse(name, value);
1299 }
1300
1301 // accessors -------------------------------------------------------
1302
1303 enum : int {
1304 kInputArraysFieldNumber = 1,
1305 kOutputArraysFieldNumber = 2,
1306 kRnnStatesFieldNumber = 12,
1307 kModelChecksFieldNumber = 14,
1308 kSavedModelTagsFieldNumber = 22,
1309 kSavedModelExportedNamesFieldNumber = 23,
1310 kControlOutputArraysFieldNumber = 24,
1311 kSavedModelDirFieldNumber = 20,
1312 kArraysExtraInfoFieldNumber = 18,
1313 kHloFileTypeFieldNumber = 26,
1314 kVariableBatchFieldNumber = 10,
1315 kAllowNonexistentArraysFieldNumber = 16,
1316 kAllowNonasciiArraysFieldNumber = 17,
1317 kUseHloImportFieldNumber = 25,
1318 kSavedModelVersionFieldNumber = 21,
1319 kChangeConcatInputRangesFieldNumber = 19,
1320 };
1321 // repeated .toco.InputArray input_arrays = 1;
1322 int input_arrays_size() const;
1323 void clear_input_arrays();
1324 ::toco::InputArray* mutable_input_arrays(int index);
1325 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::InputArray >*
1326 mutable_input_arrays();
1327 const ::toco::InputArray& input_arrays(int index) const;
1328 ::toco::InputArray* add_input_arrays();
1329 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::InputArray >&
1330 input_arrays() const;
1331
1332 // repeated string output_arrays = 2;
1333 int output_arrays_size() const;
1334 void clear_output_arrays();
1335 const std::string& output_arrays(int index) const;
1336 std::string* mutable_output_arrays(int index);
1337 void set_output_arrays(int index, const std::string& value);
1338 void set_output_arrays(int index, std::string&& value);
1339 void set_output_arrays(int index, const char* value);
1340 void set_output_arrays(int index, const char* value, size_t size);
1341 std::string* add_output_arrays();
1342 void add_output_arrays(const std::string& value);
1343 void add_output_arrays(std::string&& value);
1344 void add_output_arrays(const char* value);
1345 void add_output_arrays(const char* value, size_t size);
1346 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& output_arrays() const;
1347 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_output_arrays();
1348
1349 // repeated .toco.RnnState rnn_states = 12;
1350 int rnn_states_size() const;
1351 void clear_rnn_states();
1352 ::toco::RnnState* mutable_rnn_states(int index);
1353 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::RnnState >*
1354 mutable_rnn_states();
1355 const ::toco::RnnState& rnn_states(int index) const;
1356 ::toco::RnnState* add_rnn_states();
1357 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::RnnState >&
1358 rnn_states() const;
1359
1360 // repeated .toco.ModelFlags.ModelCheck model_checks = 14;
1361 int model_checks_size() const;
1362 void clear_model_checks();
1363 ::toco::ModelFlags_ModelCheck* mutable_model_checks(int index);
1364 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ModelFlags_ModelCheck >*
1365 mutable_model_checks();
1366 const ::toco::ModelFlags_ModelCheck& model_checks(int index) const;
1367 ::toco::ModelFlags_ModelCheck* add_model_checks();
1368 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ModelFlags_ModelCheck >&
1369 model_checks() const;
1370
1371 // repeated string saved_model_tags = 22;
1372 int saved_model_tags_size() const;
1373 void clear_saved_model_tags();
1374 const std::string& saved_model_tags(int index) const;
1375 std::string* mutable_saved_model_tags(int index);
1376 void set_saved_model_tags(int index, const std::string& value);
1377 void set_saved_model_tags(int index, std::string&& value);
1378 void set_saved_model_tags(int index, const char* value);
1379 void set_saved_model_tags(int index, const char* value, size_t size);
1380 std::string* add_saved_model_tags();
1381 void add_saved_model_tags(const std::string& value);
1382 void add_saved_model_tags(std::string&& value);
1383 void add_saved_model_tags(const char* value);
1384 void add_saved_model_tags(const char* value, size_t size);
1385 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& saved_model_tags() const;
1386 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_saved_model_tags();
1387
1388 // repeated string saved_model_exported_names = 23;
1389 int saved_model_exported_names_size() const;
1390 void clear_saved_model_exported_names();
1391 const std::string& saved_model_exported_names(int index) const;
1392 std::string* mutable_saved_model_exported_names(int index);
1393 void set_saved_model_exported_names(int index, const std::string& value);
1394 void set_saved_model_exported_names(int index, std::string&& value);
1395 void set_saved_model_exported_names(int index, const char* value);
1396 void set_saved_model_exported_names(int index, const char* value, size_t size);
1397 std::string* add_saved_model_exported_names();
1398 void add_saved_model_exported_names(const std::string& value);
1399 void add_saved_model_exported_names(std::string&& value);
1400 void add_saved_model_exported_names(const char* value);
1401 void add_saved_model_exported_names(const char* value, size_t size);
1402 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& saved_model_exported_names() const;
1403 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_saved_model_exported_names();
1404
1405 // repeated string control_output_arrays = 24;
1406 int control_output_arrays_size() const;
1407 void clear_control_output_arrays();
1408 const std::string& control_output_arrays(int index) const;
1409 std::string* mutable_control_output_arrays(int index);
1410 void set_control_output_arrays(int index, const std::string& value);
1411 void set_control_output_arrays(int index, std::string&& value);
1412 void set_control_output_arrays(int index, const char* value);
1413 void set_control_output_arrays(int index, const char* value, size_t size);
1414 std::string* add_control_output_arrays();
1415 void add_control_output_arrays(const std::string& value);
1416 void add_control_output_arrays(std::string&& value);
1417 void add_control_output_arrays(const char* value);
1418 void add_control_output_arrays(const char* value, size_t size);
1419 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& control_output_arrays() const;
1420 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_control_output_arrays();
1421
1422 // optional string saved_model_dir = 20;
1423 bool has_saved_model_dir() const;
1424 void clear_saved_model_dir();
1425 const std::string& saved_model_dir() const;
1426 void set_saved_model_dir(const std::string& value);
1427 void set_saved_model_dir(std::string&& value);
1428 void set_saved_model_dir(const char* value);
1429 void set_saved_model_dir(const char* value, size_t size);
1430 std::string* mutable_saved_model_dir();
1431 std::string* release_saved_model_dir();
1432 void set_allocated_saved_model_dir(std::string* saved_model_dir);
1433
1434 // optional .toco.ArraysExtraInfo arrays_extra_info = 18;
1435 bool has_arrays_extra_info() const;
1436 void clear_arrays_extra_info();
1437 const ::toco::ArraysExtraInfo& arrays_extra_info() const;
1438 ::toco::ArraysExtraInfo* release_arrays_extra_info();
1439 ::toco::ArraysExtraInfo* mutable_arrays_extra_info();
1440 void set_allocated_arrays_extra_info(::toco::ArraysExtraInfo* arrays_extra_info);
1441
1442 // optional .toco.ModelFlags.HloFileType hlo_file_type = 26;
1443 bool has_hlo_file_type() const;
1444 void clear_hlo_file_type();
1445 ::toco::ModelFlags_HloFileType hlo_file_type() const;
1446 void set_hlo_file_type(::toco::ModelFlags_HloFileType value);
1447
1448 // optional bool variable_batch = 10;
1449 bool has_variable_batch() const;
1450 void clear_variable_batch();
1451 bool variable_batch() const;
1452 void set_variable_batch(bool value);
1453
1454 // optional bool allow_nonexistent_arrays = 16;
1455 bool has_allow_nonexistent_arrays() const;
1456 void clear_allow_nonexistent_arrays();
1457 bool allow_nonexistent_arrays() const;
1458 void set_allow_nonexistent_arrays(bool value);
1459
1460 // optional bool allow_nonascii_arrays = 17;
1461 bool has_allow_nonascii_arrays() const;
1462 void clear_allow_nonascii_arrays();
1463 bool allow_nonascii_arrays() const;
1464 void set_allow_nonascii_arrays(bool value);
1465
1466 // optional bool use_hlo_import = 25;
1467 bool has_use_hlo_import() const;
1468 void clear_use_hlo_import();
1469 bool use_hlo_import() const;
1470 void set_use_hlo_import(bool value);
1471
1472 // optional int32 saved_model_version = 21;
1473 bool has_saved_model_version() const;
1474 void clear_saved_model_version();
1475 ::PROTOBUF_NAMESPACE_ID::int32 saved_model_version() const;
1476 void set_saved_model_version(::PROTOBUF_NAMESPACE_ID::int32 value);
1477
1478 // optional bool change_concat_input_ranges = 19 [default = true];
1479 bool has_change_concat_input_ranges() const;
1480 void clear_change_concat_input_ranges();
1481 bool change_concat_input_ranges() const;
1482 void set_change_concat_input_ranges(bool value);
1483
1484 // @@protoc_insertion_point(class_scope:toco.ModelFlags)
1485 private:
1486 class _Internal;
1487
1488 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
1489 ::PROTOBUF_NAMESPACE_ID::internal::HasBits<1> _has_bits_;
1490 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
1491 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::InputArray > input_arrays_;
1492 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> output_arrays_;
1493 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::RnnState > rnn_states_;
1494 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ModelFlags_ModelCheck > model_checks_;
1495 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> saved_model_tags_;
1496 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> saved_model_exported_names_;
1497 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> control_output_arrays_;
1498 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr saved_model_dir_;
1499 ::toco::ArraysExtraInfo* arrays_extra_info_;
1500 int hlo_file_type_;
1501 bool variable_batch_;
1502 bool allow_nonexistent_arrays_;
1503 bool allow_nonascii_arrays_;
1504 bool use_hlo_import_;
1505 ::PROTOBUF_NAMESPACE_ID::int32 saved_model_version_;
1506 bool change_concat_input_ranges_;
1507 friend struct ::TableStruct_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto;
1508};
1509// ===================================================================
1510
1511
1512// ===================================================================
1513
1514#ifdef __GNUC__
1515 #pragma GCC diagnostic push
1516 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
1517#endif // __GNUC__
1518// InputArrayShape
1519
1520// repeated int32 dims = 2;
1521inline int InputArrayShape::dims_size() const {
1522 return dims_.size();
1523}
1524inline void InputArrayShape::clear_dims() {
1525 dims_.Clear();
1526}
1527inline ::PROTOBUF_NAMESPACE_ID::int32 InputArrayShape::dims(int index) const {
1528 // @@protoc_insertion_point(field_get:toco.InputArrayShape.dims)
1529 return dims_.Get(index);
1530}
1531inline void InputArrayShape::set_dims(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) {
1532 dims_.Set(index, value);
1533 // @@protoc_insertion_point(field_set:toco.InputArrayShape.dims)
1534}
1535inline void InputArrayShape::add_dims(::PROTOBUF_NAMESPACE_ID::int32 value) {
1536 dims_.Add(value);
1537 // @@protoc_insertion_point(field_add:toco.InputArrayShape.dims)
1538}
1539inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >&
1540InputArrayShape::dims() const {
1541 // @@protoc_insertion_point(field_list:toco.InputArrayShape.dims)
1542 return dims_;
1543}
1544inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >*
1545InputArrayShape::mutable_dims() {
1546 // @@protoc_insertion_point(field_mutable_list:toco.InputArrayShape.dims)
1547 return &dims_;
1548}
1549
1550// optional bool unknown_rank = 3;
1551inline bool InputArrayShape::has_unknown_rank() const {
1552 return (_has_bits_[0] & 0x00000001u) != 0;
1553}
1554inline void InputArrayShape::clear_unknown_rank() {
1555 unknown_rank_ = false;
1556 _has_bits_[0] &= ~0x00000001u;
1557}
1558inline bool InputArrayShape::unknown_rank() const {
1559 // @@protoc_insertion_point(field_get:toco.InputArrayShape.unknown_rank)
1560 return unknown_rank_;
1561}
1562inline void InputArrayShape::set_unknown_rank(bool value) {
1563 _has_bits_[0] |= 0x00000001u;
1564 unknown_rank_ = value;
1565 // @@protoc_insertion_point(field_set:toco.InputArrayShape.unknown_rank)
1566}
1567
1568// -------------------------------------------------------------------
1569
1570// InputArray
1571
1572// optional string name = 1;
1573inline bool InputArray::has_name() const {
1574 return (_has_bits_[0] & 0x00000001u) != 0;
1575}
1576inline void InputArray::clear_name() {
1577 name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1578 _has_bits_[0] &= ~0x00000001u;
1579}
1580inline const std::string& InputArray::name() const {
1581 // @@protoc_insertion_point(field_get:toco.InputArray.name)
1582 return name_.GetNoArena();
1583}
1584inline void InputArray::set_name(const std::string& value) {
1585 _has_bits_[0] |= 0x00000001u;
1586 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
1587 // @@protoc_insertion_point(field_set:toco.InputArray.name)
1588}
1589inline void InputArray::set_name(std::string&& value) {
1590 _has_bits_[0] |= 0x00000001u;
1591 name_.SetNoArena(
1592 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1593 // @@protoc_insertion_point(field_set_rvalue:toco.InputArray.name)
1594}
1595inline void InputArray::set_name(const char* value) {
1596 GOOGLE_DCHECK(value != nullptr);
1597 _has_bits_[0] |= 0x00000001u;
1598 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1599 // @@protoc_insertion_point(field_set_char:toco.InputArray.name)
1600}
1601inline void InputArray::set_name(const char* value, size_t size) {
1602 _has_bits_[0] |= 0x00000001u;
1603 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1604 ::std::string(reinterpret_cast<const char*>(value), size));
1605 // @@protoc_insertion_point(field_set_pointer:toco.InputArray.name)
1606}
1607inline std::string* InputArray::mutable_name() {
1608 _has_bits_[0] |= 0x00000001u;
1609 // @@protoc_insertion_point(field_mutable:toco.InputArray.name)
1610 return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1611}
1612inline std::string* InputArray::release_name() {
1613 // @@protoc_insertion_point(field_release:toco.InputArray.name)
1614 if (!has_name()) {
1615 return nullptr;
1616 }
1617 _has_bits_[0] &= ~0x00000001u;
1618 return name_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1619}
1620inline void InputArray::set_allocated_name(std::string* name) {
1621 if (name != nullptr) {
1622 _has_bits_[0] |= 0x00000001u;
1623 } else {
1624 _has_bits_[0] &= ~0x00000001u;
1625 }
1626 name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
1627 // @@protoc_insertion_point(field_set_allocated:toco.InputArray.name)
1628}
1629
1630// optional .toco.InputArrayShape shape = 6;
1631inline bool InputArray::has_shape() const {
1632 return (_has_bits_[0] & 0x00000002u) != 0;
1633}
1634inline void InputArray::clear_shape() {
1635 if (shape_ != nullptr) shape_->Clear();
1636 _has_bits_[0] &= ~0x00000002u;
1637}
1638inline const ::toco::InputArrayShape& InputArray::shape() const {
1639 const ::toco::InputArrayShape* p = shape_;
1640 // @@protoc_insertion_point(field_get:toco.InputArray.shape)
1641 return p != nullptr ? *p : *reinterpret_cast<const ::toco::InputArrayShape*>(
1642 &::toco::_InputArrayShape_default_instance_);
1643}
1644inline ::toco::InputArrayShape* InputArray::release_shape() {
1645 // @@protoc_insertion_point(field_release:toco.InputArray.shape)
1646 _has_bits_[0] &= ~0x00000002u;
1647 ::toco::InputArrayShape* temp = shape_;
1648 shape_ = nullptr;
1649 return temp;
1650}
1651inline ::toco::InputArrayShape* InputArray::mutable_shape() {
1652 _has_bits_[0] |= 0x00000002u;
1653 if (shape_ == nullptr) {
1654 auto* p = CreateMaybeMessage<::toco::InputArrayShape>(GetArenaNoVirtual());
1655 shape_ = p;
1656 }
1657 // @@protoc_insertion_point(field_mutable:toco.InputArray.shape)
1658 return shape_;
1659}
1660inline void InputArray::set_allocated_shape(::toco::InputArrayShape* shape) {
1661 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
1662 if (message_arena == nullptr) {
1663 delete shape_;
1664 }
1665 if (shape) {
1666 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
1667 if (message_arena != submessage_arena) {
1668 shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
1669 message_arena, shape, submessage_arena);
1670 }
1671 _has_bits_[0] |= 0x00000002u;
1672 } else {
1673 _has_bits_[0] &= ~0x00000002u;
1674 }
1675 shape_ = shape;
1676 // @@protoc_insertion_point(field_set_allocated:toco.InputArray.shape)
1677}
1678
1679// optional float mean_value = 3;
1680inline bool InputArray::has_mean_value() const {
1681 return (_has_bits_[0] & 0x00000004u) != 0;
1682}
1683inline void InputArray::clear_mean_value() {
1684 mean_value_ = 0;
1685 _has_bits_[0] &= ~0x00000004u;
1686}
1687inline float InputArray::mean_value() const {
1688 // @@protoc_insertion_point(field_get:toco.InputArray.mean_value)
1689 return mean_value_;
1690}
1691inline void InputArray::set_mean_value(float value) {
1692 _has_bits_[0] |= 0x00000004u;
1693 mean_value_ = value;
1694 // @@protoc_insertion_point(field_set:toco.InputArray.mean_value)
1695}
1696
1697// optional float std_value = 4 [default = 1];
1698inline bool InputArray::has_std_value() const {
1699 return (_has_bits_[0] & 0x00000010u) != 0;
1700}
1701inline void InputArray::clear_std_value() {
1702 std_value_ = 1;
1703 _has_bits_[0] &= ~0x00000010u;
1704}
1705inline float InputArray::std_value() const {
1706 // @@protoc_insertion_point(field_get:toco.InputArray.std_value)
1707 return std_value_;
1708}
1709inline void InputArray::set_std_value(float value) {
1710 _has_bits_[0] |= 0x00000010u;
1711 std_value_ = value;
1712 // @@protoc_insertion_point(field_set:toco.InputArray.std_value)
1713}
1714
1715// optional .toco.IODataType data_type = 5;
1716inline bool InputArray::has_data_type() const {
1717 return (_has_bits_[0] & 0x00000008u) != 0;
1718}
1719inline void InputArray::clear_data_type() {
1720 data_type_ = 0;
1721 _has_bits_[0] &= ~0x00000008u;
1722}
1723inline ::toco::IODataType InputArray::data_type() const {
1724 // @@protoc_insertion_point(field_get:toco.InputArray.data_type)
1725 return static_cast< ::toco::IODataType >(data_type_);
1726}
1727inline void InputArray::set_data_type(::toco::IODataType value) {
1728 assert(::toco::IODataType_IsValid(value));
1729 _has_bits_[0] |= 0x00000008u;
1730 data_type_ = value;
1731 // @@protoc_insertion_point(field_set:toco.InputArray.data_type)
1732}
1733
1734// -------------------------------------------------------------------
1735
1736// RnnState
1737
1738// optional string state_array = 1;
1739inline bool RnnState::has_state_array() const {
1740 return (_has_bits_[0] & 0x00000001u) != 0;
1741}
1742inline void RnnState::clear_state_array() {
1743 state_array_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1744 _has_bits_[0] &= ~0x00000001u;
1745}
1746inline const std::string& RnnState::state_array() const {
1747 // @@protoc_insertion_point(field_get:toco.RnnState.state_array)
1748 return state_array_.GetNoArena();
1749}
1750inline void RnnState::set_state_array(const std::string& value) {
1751 _has_bits_[0] |= 0x00000001u;
1752 state_array_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
1753 // @@protoc_insertion_point(field_set:toco.RnnState.state_array)
1754}
1755inline void RnnState::set_state_array(std::string&& value) {
1756 _has_bits_[0] |= 0x00000001u;
1757 state_array_.SetNoArena(
1758 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1759 // @@protoc_insertion_point(field_set_rvalue:toco.RnnState.state_array)
1760}
1761inline void RnnState::set_state_array(const char* value) {
1762 GOOGLE_DCHECK(value != nullptr);
1763 _has_bits_[0] |= 0x00000001u;
1764 state_array_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1765 // @@protoc_insertion_point(field_set_char:toco.RnnState.state_array)
1766}
1767inline void RnnState::set_state_array(const char* value, size_t size) {
1768 _has_bits_[0] |= 0x00000001u;
1769 state_array_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1770 ::std::string(reinterpret_cast<const char*>(value), size));
1771 // @@protoc_insertion_point(field_set_pointer:toco.RnnState.state_array)
1772}
1773inline std::string* RnnState::mutable_state_array() {
1774 _has_bits_[0] |= 0x00000001u;
1775 // @@protoc_insertion_point(field_mutable:toco.RnnState.state_array)
1776 return state_array_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1777}
1778inline std::string* RnnState::release_state_array() {
1779 // @@protoc_insertion_point(field_release:toco.RnnState.state_array)
1780 if (!has_state_array()) {
1781 return nullptr;
1782 }
1783 _has_bits_[0] &= ~0x00000001u;
1784 return state_array_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1785}
1786inline void RnnState::set_allocated_state_array(std::string* state_array) {
1787 if (state_array != nullptr) {
1788 _has_bits_[0] |= 0x00000001u;
1789 } else {
1790 _has_bits_[0] &= ~0x00000001u;
1791 }
1792 state_array_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), state_array);
1793 // @@protoc_insertion_point(field_set_allocated:toco.RnnState.state_array)
1794}
1795
1796// optional string back_edge_source_array = 2;
1797inline bool RnnState::has_back_edge_source_array() const {
1798 return (_has_bits_[0] & 0x00000002u) != 0;
1799}
1800inline void RnnState::clear_back_edge_source_array() {
1801 back_edge_source_array_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1802 _has_bits_[0] &= ~0x00000002u;
1803}
1804inline const std::string& RnnState::back_edge_source_array() const {
1805 // @@protoc_insertion_point(field_get:toco.RnnState.back_edge_source_array)
1806 return back_edge_source_array_.GetNoArena();
1807}
1808inline void RnnState::set_back_edge_source_array(const std::string& value) {
1809 _has_bits_[0] |= 0x00000002u;
1810 back_edge_source_array_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
1811 // @@protoc_insertion_point(field_set:toco.RnnState.back_edge_source_array)
1812}
1813inline void RnnState::set_back_edge_source_array(std::string&& value) {
1814 _has_bits_[0] |= 0x00000002u;
1815 back_edge_source_array_.SetNoArena(
1816 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1817 // @@protoc_insertion_point(field_set_rvalue:toco.RnnState.back_edge_source_array)
1818}
1819inline void RnnState::set_back_edge_source_array(const char* value) {
1820 GOOGLE_DCHECK(value != nullptr);
1821 _has_bits_[0] |= 0x00000002u;
1822 back_edge_source_array_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1823 // @@protoc_insertion_point(field_set_char:toco.RnnState.back_edge_source_array)
1824}
1825inline void RnnState::set_back_edge_source_array(const char* value, size_t size) {
1826 _has_bits_[0] |= 0x00000002u;
1827 back_edge_source_array_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1828 ::std::string(reinterpret_cast<const char*>(value), size));
1829 // @@protoc_insertion_point(field_set_pointer:toco.RnnState.back_edge_source_array)
1830}
1831inline std::string* RnnState::mutable_back_edge_source_array() {
1832 _has_bits_[0] |= 0x00000002u;
1833 // @@protoc_insertion_point(field_mutable:toco.RnnState.back_edge_source_array)
1834 return back_edge_source_array_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1835}
1836inline std::string* RnnState::release_back_edge_source_array() {
1837 // @@protoc_insertion_point(field_release:toco.RnnState.back_edge_source_array)
1838 if (!has_back_edge_source_array()) {
1839 return nullptr;
1840 }
1841 _has_bits_[0] &= ~0x00000002u;
1842 return back_edge_source_array_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1843}
1844inline void RnnState::set_allocated_back_edge_source_array(std::string* back_edge_source_array) {
1845 if (back_edge_source_array != nullptr) {
1846 _has_bits_[0] |= 0x00000002u;
1847 } else {
1848 _has_bits_[0] &= ~0x00000002u;
1849 }
1850 back_edge_source_array_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), back_edge_source_array);
1851 // @@protoc_insertion_point(field_set_allocated:toco.RnnState.back_edge_source_array)
1852}
1853
1854// optional bool discardable = 5;
1855inline bool RnnState::has_discardable() const {
1856 return (_has_bits_[0] & 0x00000010u) != 0;
1857}
1858inline void RnnState::clear_discardable() {
1859 discardable_ = false;
1860 _has_bits_[0] &= ~0x00000010u;
1861}
1862inline bool RnnState::discardable() const {
1863 // @@protoc_insertion_point(field_get:toco.RnnState.discardable)
1864 return discardable_;
1865}
1866inline void RnnState::set_discardable(bool value) {
1867 _has_bits_[0] |= 0x00000010u;
1868 discardable_ = value;
1869 // @@protoc_insertion_point(field_set:toco.RnnState.discardable)
1870}
1871
1872// optional int32 size = 3;
1873inline bool RnnState::has_size() const {
1874 return (_has_bits_[0] & 0x00000004u) != 0;
1875}
1876inline void RnnState::clear_size() {
1877 size_ = 0;
1878 _has_bits_[0] &= ~0x00000004u;
1879}
1880inline ::PROTOBUF_NAMESPACE_ID::int32 RnnState::size() const {
1881 // @@protoc_insertion_point(field_get:toco.RnnState.size)
1882 return size_;
1883}
1884inline void RnnState::set_size(::PROTOBUF_NAMESPACE_ID::int32 value) {
1885 _has_bits_[0] |= 0x00000004u;
1886 size_ = value;
1887 // @@protoc_insertion_point(field_set:toco.RnnState.size)
1888}
1889
1890// optional int32 num_dims = 4;
1891inline bool RnnState::has_num_dims() const {
1892 return (_has_bits_[0] & 0x00000008u) != 0;
1893}
1894inline void RnnState::clear_num_dims() {
1895 num_dims_ = 0;
1896 _has_bits_[0] &= ~0x00000008u;
1897}
1898inline ::PROTOBUF_NAMESPACE_ID::int32 RnnState::num_dims() const {
1899 // @@protoc_insertion_point(field_get:toco.RnnState.num_dims)
1900 return num_dims_;
1901}
1902inline void RnnState::set_num_dims(::PROTOBUF_NAMESPACE_ID::int32 value) {
1903 _has_bits_[0] |= 0x00000008u;
1904 num_dims_ = value;
1905 // @@protoc_insertion_point(field_set:toco.RnnState.num_dims)
1906}
1907
1908// -------------------------------------------------------------------
1909
1910// ArraysExtraInfo_Entry
1911
1912// optional string name = 1;
1913inline bool ArraysExtraInfo_Entry::has_name() const {
1914 return (_has_bits_[0] & 0x00000001u) != 0;
1915}
1916inline void ArraysExtraInfo_Entry::clear_name() {
1917 name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1918 _has_bits_[0] &= ~0x00000001u;
1919}
1920inline const std::string& ArraysExtraInfo_Entry::name() const {
1921 // @@protoc_insertion_point(field_get:toco.ArraysExtraInfo.Entry.name)
1922 return name_.GetNoArena();
1923}
1924inline void ArraysExtraInfo_Entry::set_name(const std::string& value) {
1925 _has_bits_[0] |= 0x00000001u;
1926 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
1927 // @@protoc_insertion_point(field_set:toco.ArraysExtraInfo.Entry.name)
1928}
1929inline void ArraysExtraInfo_Entry::set_name(std::string&& value) {
1930 _has_bits_[0] |= 0x00000001u;
1931 name_.SetNoArena(
1932 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1933 // @@protoc_insertion_point(field_set_rvalue:toco.ArraysExtraInfo.Entry.name)
1934}
1935inline void ArraysExtraInfo_Entry::set_name(const char* value) {
1936 GOOGLE_DCHECK(value != nullptr);
1937 _has_bits_[0] |= 0x00000001u;
1938 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1939 // @@protoc_insertion_point(field_set_char:toco.ArraysExtraInfo.Entry.name)
1940}
1941inline void ArraysExtraInfo_Entry::set_name(const char* value, size_t size) {
1942 _has_bits_[0] |= 0x00000001u;
1943 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
1944 ::std::string(reinterpret_cast<const char*>(value), size));
1945 // @@protoc_insertion_point(field_set_pointer:toco.ArraysExtraInfo.Entry.name)
1946}
1947inline std::string* ArraysExtraInfo_Entry::mutable_name() {
1948 _has_bits_[0] |= 0x00000001u;
1949 // @@protoc_insertion_point(field_mutable:toco.ArraysExtraInfo.Entry.name)
1950 return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1951}
1952inline std::string* ArraysExtraInfo_Entry::release_name() {
1953 // @@protoc_insertion_point(field_release:toco.ArraysExtraInfo.Entry.name)
1954 if (!has_name()) {
1955 return nullptr;
1956 }
1957 _has_bits_[0] &= ~0x00000001u;
1958 return name_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1959}
1960inline void ArraysExtraInfo_Entry::set_allocated_name(std::string* name) {
1961 if (name != nullptr) {
1962 _has_bits_[0] |= 0x00000001u;
1963 } else {
1964 _has_bits_[0] &= ~0x00000001u;
1965 }
1966 name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
1967 // @@protoc_insertion_point(field_set_allocated:toco.ArraysExtraInfo.Entry.name)
1968}
1969
1970// optional string name_regexp = 7;
1971inline bool ArraysExtraInfo_Entry::has_name_regexp() const {
1972 return (_has_bits_[0] & 0x00000002u) != 0;
1973}
1974inline void ArraysExtraInfo_Entry::clear_name_regexp() {
1975 name_regexp_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
1976 _has_bits_[0] &= ~0x00000002u;
1977}
1978inline const std::string& ArraysExtraInfo_Entry::name_regexp() const {
1979 // @@protoc_insertion_point(field_get:toco.ArraysExtraInfo.Entry.name_regexp)
1980 return name_regexp_.GetNoArena();
1981}
1982inline void ArraysExtraInfo_Entry::set_name_regexp(const std::string& value) {
1983 _has_bits_[0] |= 0x00000002u;
1984 name_regexp_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
1985 // @@protoc_insertion_point(field_set:toco.ArraysExtraInfo.Entry.name_regexp)
1986}
1987inline void ArraysExtraInfo_Entry::set_name_regexp(std::string&& value) {
1988 _has_bits_[0] |= 0x00000002u;
1989 name_regexp_.SetNoArena(
1990 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
1991 // @@protoc_insertion_point(field_set_rvalue:toco.ArraysExtraInfo.Entry.name_regexp)
1992}
1993inline void ArraysExtraInfo_Entry::set_name_regexp(const char* value) {
1994 GOOGLE_DCHECK(value != nullptr);
1995 _has_bits_[0] |= 0x00000002u;
1996 name_regexp_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
1997 // @@protoc_insertion_point(field_set_char:toco.ArraysExtraInfo.Entry.name_regexp)
1998}
1999inline void ArraysExtraInfo_Entry::set_name_regexp(const char* value, size_t size) {
2000 _has_bits_[0] |= 0x00000002u;
2001 name_regexp_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2002 ::std::string(reinterpret_cast<const char*>(value), size));
2003 // @@protoc_insertion_point(field_set_pointer:toco.ArraysExtraInfo.Entry.name_regexp)
2004}
2005inline std::string* ArraysExtraInfo_Entry::mutable_name_regexp() {
2006 _has_bits_[0] |= 0x00000002u;
2007 // @@protoc_insertion_point(field_mutable:toco.ArraysExtraInfo.Entry.name_regexp)
2008 return name_regexp_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2009}
2010inline std::string* ArraysExtraInfo_Entry::release_name_regexp() {
2011 // @@protoc_insertion_point(field_release:toco.ArraysExtraInfo.Entry.name_regexp)
2012 if (!has_name_regexp()) {
2013 return nullptr;
2014 }
2015 _has_bits_[0] &= ~0x00000002u;
2016 return name_regexp_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2017}
2018inline void ArraysExtraInfo_Entry::set_allocated_name_regexp(std::string* name_regexp) {
2019 if (name_regexp != nullptr) {
2020 _has_bits_[0] |= 0x00000002u;
2021 } else {
2022 _has_bits_[0] &= ~0x00000002u;
2023 }
2024 name_regexp_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name_regexp);
2025 // @@protoc_insertion_point(field_set_allocated:toco.ArraysExtraInfo.Entry.name_regexp)
2026}
2027
2028// optional double min = 2;
2029inline bool ArraysExtraInfo_Entry::has_min() const {
2030 return (_has_bits_[0] & 0x00000008u) != 0;
2031}
2032inline void ArraysExtraInfo_Entry::clear_min() {
2033 min_ = 0;
2034 _has_bits_[0] &= ~0x00000008u;
2035}
2036inline double ArraysExtraInfo_Entry::min() const {
2037 // @@protoc_insertion_point(field_get:toco.ArraysExtraInfo.Entry.min)
2038 return min_;
2039}
2040inline void ArraysExtraInfo_Entry::set_min(double value) {
2041 _has_bits_[0] |= 0x00000008u;
2042 min_ = value;
2043 // @@protoc_insertion_point(field_set:toco.ArraysExtraInfo.Entry.min)
2044}
2045
2046// optional double max = 3;
2047inline bool ArraysExtraInfo_Entry::has_max() const {
2048 return (_has_bits_[0] & 0x00000010u) != 0;
2049}
2050inline void ArraysExtraInfo_Entry::clear_max() {
2051 max_ = 0;
2052 _has_bits_[0] &= ~0x00000010u;
2053}
2054inline double ArraysExtraInfo_Entry::max() const {
2055 // @@protoc_insertion_point(field_get:toco.ArraysExtraInfo.Entry.max)
2056 return max_;
2057}
2058inline void ArraysExtraInfo_Entry::set_max(double value) {
2059 _has_bits_[0] |= 0x00000010u;
2060 max_ = value;
2061 // @@protoc_insertion_point(field_set:toco.ArraysExtraInfo.Entry.max)
2062}
2063
2064// optional .toco.IODataType data_type = 4;
2065inline bool ArraysExtraInfo_Entry::has_data_type() const {
2066 return (_has_bits_[0] & 0x00000020u) != 0;
2067}
2068inline void ArraysExtraInfo_Entry::clear_data_type() {
2069 data_type_ = 0;
2070 _has_bits_[0] &= ~0x00000020u;
2071}
2072inline ::toco::IODataType ArraysExtraInfo_Entry::data_type() const {
2073 // @@protoc_insertion_point(field_get:toco.ArraysExtraInfo.Entry.data_type)
2074 return static_cast< ::toco::IODataType >(data_type_);
2075}
2076inline void ArraysExtraInfo_Entry::set_data_type(::toco::IODataType value) {
2077 assert(::toco::IODataType_IsValid(value));
2078 _has_bits_[0] |= 0x00000020u;
2079 data_type_ = value;
2080 // @@protoc_insertion_point(field_set:toco.ArraysExtraInfo.Entry.data_type)
2081}
2082
2083// optional .toco.InputArrayShape shape = 5;
2084inline bool ArraysExtraInfo_Entry::has_shape() const {
2085 return (_has_bits_[0] & 0x00000004u) != 0;
2086}
2087inline void ArraysExtraInfo_Entry::clear_shape() {
2088 if (shape_ != nullptr) shape_->Clear();
2089 _has_bits_[0] &= ~0x00000004u;
2090}
2091inline const ::toco::InputArrayShape& ArraysExtraInfo_Entry::shape() const {
2092 const ::toco::InputArrayShape* p = shape_;
2093 // @@protoc_insertion_point(field_get:toco.ArraysExtraInfo.Entry.shape)
2094 return p != nullptr ? *p : *reinterpret_cast<const ::toco::InputArrayShape*>(
2095 &::toco::_InputArrayShape_default_instance_);
2096}
2097inline ::toco::InputArrayShape* ArraysExtraInfo_Entry::release_shape() {
2098 // @@protoc_insertion_point(field_release:toco.ArraysExtraInfo.Entry.shape)
2099 _has_bits_[0] &= ~0x00000004u;
2100 ::toco::InputArrayShape* temp = shape_;
2101 shape_ = nullptr;
2102 return temp;
2103}
2104inline ::toco::InputArrayShape* ArraysExtraInfo_Entry::mutable_shape() {
2105 _has_bits_[0] |= 0x00000004u;
2106 if (shape_ == nullptr) {
2107 auto* p = CreateMaybeMessage<::toco::InputArrayShape>(GetArenaNoVirtual());
2108 shape_ = p;
2109 }
2110 // @@protoc_insertion_point(field_mutable:toco.ArraysExtraInfo.Entry.shape)
2111 return shape_;
2112}
2113inline void ArraysExtraInfo_Entry::set_allocated_shape(::toco::InputArrayShape* shape) {
2114 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2115 if (message_arena == nullptr) {
2116 delete shape_;
2117 }
2118 if (shape) {
2119 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
2120 if (message_arena != submessage_arena) {
2121 shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2122 message_arena, shape, submessage_arena);
2123 }
2124 _has_bits_[0] |= 0x00000004u;
2125 } else {
2126 _has_bits_[0] &= ~0x00000004u;
2127 }
2128 shape_ = shape;
2129 // @@protoc_insertion_point(field_set_allocated:toco.ArraysExtraInfo.Entry.shape)
2130}
2131
2132// optional float constant_float_value = 6;
2133inline bool ArraysExtraInfo_Entry::has_constant_float_value() const {
2134 return (_has_bits_[0] & 0x00000040u) != 0;
2135}
2136inline void ArraysExtraInfo_Entry::clear_constant_float_value() {
2137 constant_float_value_ = 0;
2138 _has_bits_[0] &= ~0x00000040u;
2139}
2140inline float ArraysExtraInfo_Entry::constant_float_value() const {
2141 // @@protoc_insertion_point(field_get:toco.ArraysExtraInfo.Entry.constant_float_value)
2142 return constant_float_value_;
2143}
2144inline void ArraysExtraInfo_Entry::set_constant_float_value(float value) {
2145 _has_bits_[0] |= 0x00000040u;
2146 constant_float_value_ = value;
2147 // @@protoc_insertion_point(field_set:toco.ArraysExtraInfo.Entry.constant_float_value)
2148}
2149
2150// -------------------------------------------------------------------
2151
2152// ArraysExtraInfo
2153
2154// repeated .toco.ArraysExtraInfo.Entry entries = 1;
2155inline int ArraysExtraInfo::entries_size() const {
2156 return entries_.size();
2157}
2158inline void ArraysExtraInfo::clear_entries() {
2159 entries_.Clear();
2160}
2161inline ::toco::ArraysExtraInfo_Entry* ArraysExtraInfo::mutable_entries(int index) {
2162 // @@protoc_insertion_point(field_mutable:toco.ArraysExtraInfo.entries)
2163 return entries_.Mutable(index);
2164}
2165inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ArraysExtraInfo_Entry >*
2166ArraysExtraInfo::mutable_entries() {
2167 // @@protoc_insertion_point(field_mutable_list:toco.ArraysExtraInfo.entries)
2168 return &entries_;
2169}
2170inline const ::toco::ArraysExtraInfo_Entry& ArraysExtraInfo::entries(int index) const {
2171 // @@protoc_insertion_point(field_get:toco.ArraysExtraInfo.entries)
2172 return entries_.Get(index);
2173}
2174inline ::toco::ArraysExtraInfo_Entry* ArraysExtraInfo::add_entries() {
2175 // @@protoc_insertion_point(field_add:toco.ArraysExtraInfo.entries)
2176 return entries_.Add();
2177}
2178inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ArraysExtraInfo_Entry >&
2179ArraysExtraInfo::entries() const {
2180 // @@protoc_insertion_point(field_list:toco.ArraysExtraInfo.entries)
2181 return entries_;
2182}
2183
2184// -------------------------------------------------------------------
2185
2186// ModelFlags_ModelCheck
2187
2188// optional string count_type = 1 [default = "None"];
2189inline bool ModelFlags_ModelCheck::has_count_type() const {
2190 return (_has_bits_[0] & 0x00000001u) != 0;
2191}
2192inline void ModelFlags_ModelCheck::clear_count_type() {
2193 count_type_.ClearToDefaultNoArena(&::toco::ModelFlags_ModelCheck::_i_give_permission_to_break_this_code_default_count_type_.get());
2194 _has_bits_[0] &= ~0x00000001u;
2195}
2196inline const std::string& ModelFlags_ModelCheck::count_type() const {
2197 // @@protoc_insertion_point(field_get:toco.ModelFlags.ModelCheck.count_type)
2198 return count_type_.GetNoArena();
2199}
2200inline void ModelFlags_ModelCheck::set_count_type(const std::string& value) {
2201 _has_bits_[0] |= 0x00000001u;
2202 count_type_.SetNoArena(&::toco::ModelFlags_ModelCheck::_i_give_permission_to_break_this_code_default_count_type_.get(), value);
2203 // @@protoc_insertion_point(field_set:toco.ModelFlags.ModelCheck.count_type)
2204}
2205inline void ModelFlags_ModelCheck::set_count_type(std::string&& value) {
2206 _has_bits_[0] |= 0x00000001u;
2207 count_type_.SetNoArena(
2208 &::toco::ModelFlags_ModelCheck::_i_give_permission_to_break_this_code_default_count_type_.get(), ::std::move(value));
2209 // @@protoc_insertion_point(field_set_rvalue:toco.ModelFlags.ModelCheck.count_type)
2210}
2211inline void ModelFlags_ModelCheck::set_count_type(const char* value) {
2212 GOOGLE_DCHECK(value != nullptr);
2213 _has_bits_[0] |= 0x00000001u;
2214 count_type_.SetNoArena(&::toco::ModelFlags_ModelCheck::_i_give_permission_to_break_this_code_default_count_type_.get(), ::std::string(value));
2215 // @@protoc_insertion_point(field_set_char:toco.ModelFlags.ModelCheck.count_type)
2216}
2217inline void ModelFlags_ModelCheck::set_count_type(const char* value, size_t size) {
2218 _has_bits_[0] |= 0x00000001u;
2219 count_type_.SetNoArena(&::toco::ModelFlags_ModelCheck::_i_give_permission_to_break_this_code_default_count_type_.get(),
2220 ::std::string(reinterpret_cast<const char*>(value), size));
2221 // @@protoc_insertion_point(field_set_pointer:toco.ModelFlags.ModelCheck.count_type)
2222}
2223inline std::string* ModelFlags_ModelCheck::mutable_count_type() {
2224 _has_bits_[0] |= 0x00000001u;
2225 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.ModelCheck.count_type)
2226 return count_type_.MutableNoArena(&::toco::ModelFlags_ModelCheck::_i_give_permission_to_break_this_code_default_count_type_.get());
2227}
2228inline std::string* ModelFlags_ModelCheck::release_count_type() {
2229 // @@protoc_insertion_point(field_release:toco.ModelFlags.ModelCheck.count_type)
2230 if (!has_count_type()) {
2231 return nullptr;
2232 }
2233 _has_bits_[0] &= ~0x00000001u;
2234 return count_type_.ReleaseNonDefaultNoArena(&::toco::ModelFlags_ModelCheck::_i_give_permission_to_break_this_code_default_count_type_.get());
2235}
2236inline void ModelFlags_ModelCheck::set_allocated_count_type(std::string* count_type) {
2237 if (count_type != nullptr) {
2238 _has_bits_[0] |= 0x00000001u;
2239 } else {
2240 _has_bits_[0] &= ~0x00000001u;
2241 }
2242 count_type_.SetAllocatedNoArena(&::toco::ModelFlags_ModelCheck::_i_give_permission_to_break_this_code_default_count_type_.get(), count_type);
2243 // @@protoc_insertion_point(field_set_allocated:toco.ModelFlags.ModelCheck.count_type)
2244}
2245
2246// optional int32 count_min = 2 [default = -1];
2247inline bool ModelFlags_ModelCheck::has_count_min() const {
2248 return (_has_bits_[0] & 0x00000002u) != 0;
2249}
2250inline void ModelFlags_ModelCheck::clear_count_min() {
2251 count_min_ = -1;
2252 _has_bits_[0] &= ~0x00000002u;
2253}
2254inline ::PROTOBUF_NAMESPACE_ID::int32 ModelFlags_ModelCheck::count_min() const {
2255 // @@protoc_insertion_point(field_get:toco.ModelFlags.ModelCheck.count_min)
2256 return count_min_;
2257}
2258inline void ModelFlags_ModelCheck::set_count_min(::PROTOBUF_NAMESPACE_ID::int32 value) {
2259 _has_bits_[0] |= 0x00000002u;
2260 count_min_ = value;
2261 // @@protoc_insertion_point(field_set:toco.ModelFlags.ModelCheck.count_min)
2262}
2263
2264// optional int32 count_max = 3 [default = -1];
2265inline bool ModelFlags_ModelCheck::has_count_max() const {
2266 return (_has_bits_[0] & 0x00000004u) != 0;
2267}
2268inline void ModelFlags_ModelCheck::clear_count_max() {
2269 count_max_ = -1;
2270 _has_bits_[0] &= ~0x00000004u;
2271}
2272inline ::PROTOBUF_NAMESPACE_ID::int32 ModelFlags_ModelCheck::count_max() const {
2273 // @@protoc_insertion_point(field_get:toco.ModelFlags.ModelCheck.count_max)
2274 return count_max_;
2275}
2276inline void ModelFlags_ModelCheck::set_count_max(::PROTOBUF_NAMESPACE_ID::int32 value) {
2277 _has_bits_[0] |= 0x00000004u;
2278 count_max_ = value;
2279 // @@protoc_insertion_point(field_set:toco.ModelFlags.ModelCheck.count_max)
2280}
2281
2282// -------------------------------------------------------------------
2283
2284// ModelFlags
2285
2286// repeated .toco.InputArray input_arrays = 1;
2287inline int ModelFlags::input_arrays_size() const {
2288 return input_arrays_.size();
2289}
2290inline void ModelFlags::clear_input_arrays() {
2291 input_arrays_.Clear();
2292}
2293inline ::toco::InputArray* ModelFlags::mutable_input_arrays(int index) {
2294 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.input_arrays)
2295 return input_arrays_.Mutable(index);
2296}
2297inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::InputArray >*
2298ModelFlags::mutable_input_arrays() {
2299 // @@protoc_insertion_point(field_mutable_list:toco.ModelFlags.input_arrays)
2300 return &input_arrays_;
2301}
2302inline const ::toco::InputArray& ModelFlags::input_arrays(int index) const {
2303 // @@protoc_insertion_point(field_get:toco.ModelFlags.input_arrays)
2304 return input_arrays_.Get(index);
2305}
2306inline ::toco::InputArray* ModelFlags::add_input_arrays() {
2307 // @@protoc_insertion_point(field_add:toco.ModelFlags.input_arrays)
2308 return input_arrays_.Add();
2309}
2310inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::InputArray >&
2311ModelFlags::input_arrays() const {
2312 // @@protoc_insertion_point(field_list:toco.ModelFlags.input_arrays)
2313 return input_arrays_;
2314}
2315
2316// repeated string output_arrays = 2;
2317inline int ModelFlags::output_arrays_size() const {
2318 return output_arrays_.size();
2319}
2320inline void ModelFlags::clear_output_arrays() {
2321 output_arrays_.Clear();
2322}
2323inline const std::string& ModelFlags::output_arrays(int index) const {
2324 // @@protoc_insertion_point(field_get:toco.ModelFlags.output_arrays)
2325 return output_arrays_.Get(index);
2326}
2327inline std::string* ModelFlags::mutable_output_arrays(int index) {
2328 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.output_arrays)
2329 return output_arrays_.Mutable(index);
2330}
2331inline void ModelFlags::set_output_arrays(int index, const std::string& value) {
2332 // @@protoc_insertion_point(field_set:toco.ModelFlags.output_arrays)
2333 output_arrays_.Mutable(index)->assign(value);
2334}
2335inline void ModelFlags::set_output_arrays(int index, std::string&& value) {
2336 // @@protoc_insertion_point(field_set:toco.ModelFlags.output_arrays)
2337 output_arrays_.Mutable(index)->assign(std::move(value));
2338}
2339inline void ModelFlags::set_output_arrays(int index, const char* value) {
2340 GOOGLE_DCHECK(value != nullptr);
2341 output_arrays_.Mutable(index)->assign(value);
2342 // @@protoc_insertion_point(field_set_char:toco.ModelFlags.output_arrays)
2343}
2344inline void ModelFlags::set_output_arrays(int index, const char* value, size_t size) {
2345 output_arrays_.Mutable(index)->assign(
2346 reinterpret_cast<const char*>(value), size);
2347 // @@protoc_insertion_point(field_set_pointer:toco.ModelFlags.output_arrays)
2348}
2349inline std::string* ModelFlags::add_output_arrays() {
2350 // @@protoc_insertion_point(field_add_mutable:toco.ModelFlags.output_arrays)
2351 return output_arrays_.Add();
2352}
2353inline void ModelFlags::add_output_arrays(const std::string& value) {
2354 output_arrays_.Add()->assign(value);
2355 // @@protoc_insertion_point(field_add:toco.ModelFlags.output_arrays)
2356}
2357inline void ModelFlags::add_output_arrays(std::string&& value) {
2358 output_arrays_.Add(std::move(value));
2359 // @@protoc_insertion_point(field_add:toco.ModelFlags.output_arrays)
2360}
2361inline void ModelFlags::add_output_arrays(const char* value) {
2362 GOOGLE_DCHECK(value != nullptr);
2363 output_arrays_.Add()->assign(value);
2364 // @@protoc_insertion_point(field_add_char:toco.ModelFlags.output_arrays)
2365}
2366inline void ModelFlags::add_output_arrays(const char* value, size_t size) {
2367 output_arrays_.Add()->assign(reinterpret_cast<const char*>(value), size);
2368 // @@protoc_insertion_point(field_add_pointer:toco.ModelFlags.output_arrays)
2369}
2370inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
2371ModelFlags::output_arrays() const {
2372 // @@protoc_insertion_point(field_list:toco.ModelFlags.output_arrays)
2373 return output_arrays_;
2374}
2375inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
2376ModelFlags::mutable_output_arrays() {
2377 // @@protoc_insertion_point(field_mutable_list:toco.ModelFlags.output_arrays)
2378 return &output_arrays_;
2379}
2380
2381// repeated string control_output_arrays = 24;
2382inline int ModelFlags::control_output_arrays_size() const {
2383 return control_output_arrays_.size();
2384}
2385inline void ModelFlags::clear_control_output_arrays() {
2386 control_output_arrays_.Clear();
2387}
2388inline const std::string& ModelFlags::control_output_arrays(int index) const {
2389 // @@protoc_insertion_point(field_get:toco.ModelFlags.control_output_arrays)
2390 return control_output_arrays_.Get(index);
2391}
2392inline std::string* ModelFlags::mutable_control_output_arrays(int index) {
2393 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.control_output_arrays)
2394 return control_output_arrays_.Mutable(index);
2395}
2396inline void ModelFlags::set_control_output_arrays(int index, const std::string& value) {
2397 // @@protoc_insertion_point(field_set:toco.ModelFlags.control_output_arrays)
2398 control_output_arrays_.Mutable(index)->assign(value);
2399}
2400inline void ModelFlags::set_control_output_arrays(int index, std::string&& value) {
2401 // @@protoc_insertion_point(field_set:toco.ModelFlags.control_output_arrays)
2402 control_output_arrays_.Mutable(index)->assign(std::move(value));
2403}
2404inline void ModelFlags::set_control_output_arrays(int index, const char* value) {
2405 GOOGLE_DCHECK(value != nullptr);
2406 control_output_arrays_.Mutable(index)->assign(value);
2407 // @@protoc_insertion_point(field_set_char:toco.ModelFlags.control_output_arrays)
2408}
2409inline void ModelFlags::set_control_output_arrays(int index, const char* value, size_t size) {
2410 control_output_arrays_.Mutable(index)->assign(
2411 reinterpret_cast<const char*>(value), size);
2412 // @@protoc_insertion_point(field_set_pointer:toco.ModelFlags.control_output_arrays)
2413}
2414inline std::string* ModelFlags::add_control_output_arrays() {
2415 // @@protoc_insertion_point(field_add_mutable:toco.ModelFlags.control_output_arrays)
2416 return control_output_arrays_.Add();
2417}
2418inline void ModelFlags::add_control_output_arrays(const std::string& value) {
2419 control_output_arrays_.Add()->assign(value);
2420 // @@protoc_insertion_point(field_add:toco.ModelFlags.control_output_arrays)
2421}
2422inline void ModelFlags::add_control_output_arrays(std::string&& value) {
2423 control_output_arrays_.Add(std::move(value));
2424 // @@protoc_insertion_point(field_add:toco.ModelFlags.control_output_arrays)
2425}
2426inline void ModelFlags::add_control_output_arrays(const char* value) {
2427 GOOGLE_DCHECK(value != nullptr);
2428 control_output_arrays_.Add()->assign(value);
2429 // @@protoc_insertion_point(field_add_char:toco.ModelFlags.control_output_arrays)
2430}
2431inline void ModelFlags::add_control_output_arrays(const char* value, size_t size) {
2432 control_output_arrays_.Add()->assign(reinterpret_cast<const char*>(value), size);
2433 // @@protoc_insertion_point(field_add_pointer:toco.ModelFlags.control_output_arrays)
2434}
2435inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
2436ModelFlags::control_output_arrays() const {
2437 // @@protoc_insertion_point(field_list:toco.ModelFlags.control_output_arrays)
2438 return control_output_arrays_;
2439}
2440inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
2441ModelFlags::mutable_control_output_arrays() {
2442 // @@protoc_insertion_point(field_mutable_list:toco.ModelFlags.control_output_arrays)
2443 return &control_output_arrays_;
2444}
2445
2446// optional bool variable_batch = 10;
2447inline bool ModelFlags::has_variable_batch() const {
2448 return (_has_bits_[0] & 0x00000008u) != 0;
2449}
2450inline void ModelFlags::clear_variable_batch() {
2451 variable_batch_ = false;
2452 _has_bits_[0] &= ~0x00000008u;
2453}
2454inline bool ModelFlags::variable_batch() const {
2455 // @@protoc_insertion_point(field_get:toco.ModelFlags.variable_batch)
2456 return variable_batch_;
2457}
2458inline void ModelFlags::set_variable_batch(bool value) {
2459 _has_bits_[0] |= 0x00000008u;
2460 variable_batch_ = value;
2461 // @@protoc_insertion_point(field_set:toco.ModelFlags.variable_batch)
2462}
2463
2464// repeated .toco.RnnState rnn_states = 12;
2465inline int ModelFlags::rnn_states_size() const {
2466 return rnn_states_.size();
2467}
2468inline void ModelFlags::clear_rnn_states() {
2469 rnn_states_.Clear();
2470}
2471inline ::toco::RnnState* ModelFlags::mutable_rnn_states(int index) {
2472 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.rnn_states)
2473 return rnn_states_.Mutable(index);
2474}
2475inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::RnnState >*
2476ModelFlags::mutable_rnn_states() {
2477 // @@protoc_insertion_point(field_mutable_list:toco.ModelFlags.rnn_states)
2478 return &rnn_states_;
2479}
2480inline const ::toco::RnnState& ModelFlags::rnn_states(int index) const {
2481 // @@protoc_insertion_point(field_get:toco.ModelFlags.rnn_states)
2482 return rnn_states_.Get(index);
2483}
2484inline ::toco::RnnState* ModelFlags::add_rnn_states() {
2485 // @@protoc_insertion_point(field_add:toco.ModelFlags.rnn_states)
2486 return rnn_states_.Add();
2487}
2488inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::RnnState >&
2489ModelFlags::rnn_states() const {
2490 // @@protoc_insertion_point(field_list:toco.ModelFlags.rnn_states)
2491 return rnn_states_;
2492}
2493
2494// repeated .toco.ModelFlags.ModelCheck model_checks = 14;
2495inline int ModelFlags::model_checks_size() const {
2496 return model_checks_.size();
2497}
2498inline void ModelFlags::clear_model_checks() {
2499 model_checks_.Clear();
2500}
2501inline ::toco::ModelFlags_ModelCheck* ModelFlags::mutable_model_checks(int index) {
2502 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.model_checks)
2503 return model_checks_.Mutable(index);
2504}
2505inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ModelFlags_ModelCheck >*
2506ModelFlags::mutable_model_checks() {
2507 // @@protoc_insertion_point(field_mutable_list:toco.ModelFlags.model_checks)
2508 return &model_checks_;
2509}
2510inline const ::toco::ModelFlags_ModelCheck& ModelFlags::model_checks(int index) const {
2511 // @@protoc_insertion_point(field_get:toco.ModelFlags.model_checks)
2512 return model_checks_.Get(index);
2513}
2514inline ::toco::ModelFlags_ModelCheck* ModelFlags::add_model_checks() {
2515 // @@protoc_insertion_point(field_add:toco.ModelFlags.model_checks)
2516 return model_checks_.Add();
2517}
2518inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::toco::ModelFlags_ModelCheck >&
2519ModelFlags::model_checks() const {
2520 // @@protoc_insertion_point(field_list:toco.ModelFlags.model_checks)
2521 return model_checks_;
2522}
2523
2524// optional bool allow_nonexistent_arrays = 16;
2525inline bool ModelFlags::has_allow_nonexistent_arrays() const {
2526 return (_has_bits_[0] & 0x00000010u) != 0;
2527}
2528inline void ModelFlags::clear_allow_nonexistent_arrays() {
2529 allow_nonexistent_arrays_ = false;
2530 _has_bits_[0] &= ~0x00000010u;
2531}
2532inline bool ModelFlags::allow_nonexistent_arrays() const {
2533 // @@protoc_insertion_point(field_get:toco.ModelFlags.allow_nonexistent_arrays)
2534 return allow_nonexistent_arrays_;
2535}
2536inline void ModelFlags::set_allow_nonexistent_arrays(bool value) {
2537 _has_bits_[0] |= 0x00000010u;
2538 allow_nonexistent_arrays_ = value;
2539 // @@protoc_insertion_point(field_set:toco.ModelFlags.allow_nonexistent_arrays)
2540}
2541
2542// optional bool allow_nonascii_arrays = 17;
2543inline bool ModelFlags::has_allow_nonascii_arrays() const {
2544 return (_has_bits_[0] & 0x00000020u) != 0;
2545}
2546inline void ModelFlags::clear_allow_nonascii_arrays() {
2547 allow_nonascii_arrays_ = false;
2548 _has_bits_[0] &= ~0x00000020u;
2549}
2550inline bool ModelFlags::allow_nonascii_arrays() const {
2551 // @@protoc_insertion_point(field_get:toco.ModelFlags.allow_nonascii_arrays)
2552 return allow_nonascii_arrays_;
2553}
2554inline void ModelFlags::set_allow_nonascii_arrays(bool value) {
2555 _has_bits_[0] |= 0x00000020u;
2556 allow_nonascii_arrays_ = value;
2557 // @@protoc_insertion_point(field_set:toco.ModelFlags.allow_nonascii_arrays)
2558}
2559
2560// optional .toco.ArraysExtraInfo arrays_extra_info = 18;
2561inline bool ModelFlags::has_arrays_extra_info() const {
2562 return (_has_bits_[0] & 0x00000002u) != 0;
2563}
2564inline void ModelFlags::clear_arrays_extra_info() {
2565 if (arrays_extra_info_ != nullptr) arrays_extra_info_->Clear();
2566 _has_bits_[0] &= ~0x00000002u;
2567}
2568inline const ::toco::ArraysExtraInfo& ModelFlags::arrays_extra_info() const {
2569 const ::toco::ArraysExtraInfo* p = arrays_extra_info_;
2570 // @@protoc_insertion_point(field_get:toco.ModelFlags.arrays_extra_info)
2571 return p != nullptr ? *p : *reinterpret_cast<const ::toco::ArraysExtraInfo*>(
2572 &::toco::_ArraysExtraInfo_default_instance_);
2573}
2574inline ::toco::ArraysExtraInfo* ModelFlags::release_arrays_extra_info() {
2575 // @@protoc_insertion_point(field_release:toco.ModelFlags.arrays_extra_info)
2576 _has_bits_[0] &= ~0x00000002u;
2577 ::toco::ArraysExtraInfo* temp = arrays_extra_info_;
2578 arrays_extra_info_ = nullptr;
2579 return temp;
2580}
2581inline ::toco::ArraysExtraInfo* ModelFlags::mutable_arrays_extra_info() {
2582 _has_bits_[0] |= 0x00000002u;
2583 if (arrays_extra_info_ == nullptr) {
2584 auto* p = CreateMaybeMessage<::toco::ArraysExtraInfo>(GetArenaNoVirtual());
2585 arrays_extra_info_ = p;
2586 }
2587 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.arrays_extra_info)
2588 return arrays_extra_info_;
2589}
2590inline void ModelFlags::set_allocated_arrays_extra_info(::toco::ArraysExtraInfo* arrays_extra_info) {
2591 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
2592 if (message_arena == nullptr) {
2593 delete arrays_extra_info_;
2594 }
2595 if (arrays_extra_info) {
2596 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
2597 if (message_arena != submessage_arena) {
2598 arrays_extra_info = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
2599 message_arena, arrays_extra_info, submessage_arena);
2600 }
2601 _has_bits_[0] |= 0x00000002u;
2602 } else {
2603 _has_bits_[0] &= ~0x00000002u;
2604 }
2605 arrays_extra_info_ = arrays_extra_info;
2606 // @@protoc_insertion_point(field_set_allocated:toco.ModelFlags.arrays_extra_info)
2607}
2608
2609// optional bool change_concat_input_ranges = 19 [default = true];
2610inline bool ModelFlags::has_change_concat_input_ranges() const {
2611 return (_has_bits_[0] & 0x00000100u) != 0;
2612}
2613inline void ModelFlags::clear_change_concat_input_ranges() {
2614 change_concat_input_ranges_ = true;
2615 _has_bits_[0] &= ~0x00000100u;
2616}
2617inline bool ModelFlags::change_concat_input_ranges() const {
2618 // @@protoc_insertion_point(field_get:toco.ModelFlags.change_concat_input_ranges)
2619 return change_concat_input_ranges_;
2620}
2621inline void ModelFlags::set_change_concat_input_ranges(bool value) {
2622 _has_bits_[0] |= 0x00000100u;
2623 change_concat_input_ranges_ = value;
2624 // @@protoc_insertion_point(field_set:toco.ModelFlags.change_concat_input_ranges)
2625}
2626
2627// optional string saved_model_dir = 20;
2628inline bool ModelFlags::has_saved_model_dir() const {
2629 return (_has_bits_[0] & 0x00000001u) != 0;
2630}
2631inline void ModelFlags::clear_saved_model_dir() {
2632 saved_model_dir_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2633 _has_bits_[0] &= ~0x00000001u;
2634}
2635inline const std::string& ModelFlags::saved_model_dir() const {
2636 // @@protoc_insertion_point(field_get:toco.ModelFlags.saved_model_dir)
2637 return saved_model_dir_.GetNoArena();
2638}
2639inline void ModelFlags::set_saved_model_dir(const std::string& value) {
2640 _has_bits_[0] |= 0x00000001u;
2641 saved_model_dir_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
2642 // @@protoc_insertion_point(field_set:toco.ModelFlags.saved_model_dir)
2643}
2644inline void ModelFlags::set_saved_model_dir(std::string&& value) {
2645 _has_bits_[0] |= 0x00000001u;
2646 saved_model_dir_.SetNoArena(
2647 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
2648 // @@protoc_insertion_point(field_set_rvalue:toco.ModelFlags.saved_model_dir)
2649}
2650inline void ModelFlags::set_saved_model_dir(const char* value) {
2651 GOOGLE_DCHECK(value != nullptr);
2652 _has_bits_[0] |= 0x00000001u;
2653 saved_model_dir_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
2654 // @@protoc_insertion_point(field_set_char:toco.ModelFlags.saved_model_dir)
2655}
2656inline void ModelFlags::set_saved_model_dir(const char* value, size_t size) {
2657 _has_bits_[0] |= 0x00000001u;
2658 saved_model_dir_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
2659 ::std::string(reinterpret_cast<const char*>(value), size));
2660 // @@protoc_insertion_point(field_set_pointer:toco.ModelFlags.saved_model_dir)
2661}
2662inline std::string* ModelFlags::mutable_saved_model_dir() {
2663 _has_bits_[0] |= 0x00000001u;
2664 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.saved_model_dir)
2665 return saved_model_dir_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2666}
2667inline std::string* ModelFlags::release_saved_model_dir() {
2668 // @@protoc_insertion_point(field_release:toco.ModelFlags.saved_model_dir)
2669 if (!has_saved_model_dir()) {
2670 return nullptr;
2671 }
2672 _has_bits_[0] &= ~0x00000001u;
2673 return saved_model_dir_.ReleaseNonDefaultNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
2674}
2675inline void ModelFlags::set_allocated_saved_model_dir(std::string* saved_model_dir) {
2676 if (saved_model_dir != nullptr) {
2677 _has_bits_[0] |= 0x00000001u;
2678 } else {
2679 _has_bits_[0] &= ~0x00000001u;
2680 }
2681 saved_model_dir_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), saved_model_dir);
2682 // @@protoc_insertion_point(field_set_allocated:toco.ModelFlags.saved_model_dir)
2683}
2684
2685// optional int32 saved_model_version = 21;
2686inline bool ModelFlags::has_saved_model_version() const {
2687 return (_has_bits_[0] & 0x00000080u) != 0;
2688}
2689inline void ModelFlags::clear_saved_model_version() {
2690 saved_model_version_ = 0;
2691 _has_bits_[0] &= ~0x00000080u;
2692}
2693inline ::PROTOBUF_NAMESPACE_ID::int32 ModelFlags::saved_model_version() const {
2694 // @@protoc_insertion_point(field_get:toco.ModelFlags.saved_model_version)
2695 return saved_model_version_;
2696}
2697inline void ModelFlags::set_saved_model_version(::PROTOBUF_NAMESPACE_ID::int32 value) {
2698 _has_bits_[0] |= 0x00000080u;
2699 saved_model_version_ = value;
2700 // @@protoc_insertion_point(field_set:toco.ModelFlags.saved_model_version)
2701}
2702
2703// repeated string saved_model_tags = 22;
2704inline int ModelFlags::saved_model_tags_size() const {
2705 return saved_model_tags_.size();
2706}
2707inline void ModelFlags::clear_saved_model_tags() {
2708 saved_model_tags_.Clear();
2709}
2710inline const std::string& ModelFlags::saved_model_tags(int index) const {
2711 // @@protoc_insertion_point(field_get:toco.ModelFlags.saved_model_tags)
2712 return saved_model_tags_.Get(index);
2713}
2714inline std::string* ModelFlags::mutable_saved_model_tags(int index) {
2715 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.saved_model_tags)
2716 return saved_model_tags_.Mutable(index);
2717}
2718inline void ModelFlags::set_saved_model_tags(int index, const std::string& value) {
2719 // @@protoc_insertion_point(field_set:toco.ModelFlags.saved_model_tags)
2720 saved_model_tags_.Mutable(index)->assign(value);
2721}
2722inline void ModelFlags::set_saved_model_tags(int index, std::string&& value) {
2723 // @@protoc_insertion_point(field_set:toco.ModelFlags.saved_model_tags)
2724 saved_model_tags_.Mutable(index)->assign(std::move(value));
2725}
2726inline void ModelFlags::set_saved_model_tags(int index, const char* value) {
2727 GOOGLE_DCHECK(value != nullptr);
2728 saved_model_tags_.Mutable(index)->assign(value);
2729 // @@protoc_insertion_point(field_set_char:toco.ModelFlags.saved_model_tags)
2730}
2731inline void ModelFlags::set_saved_model_tags(int index, const char* value, size_t size) {
2732 saved_model_tags_.Mutable(index)->assign(
2733 reinterpret_cast<const char*>(value), size);
2734 // @@protoc_insertion_point(field_set_pointer:toco.ModelFlags.saved_model_tags)
2735}
2736inline std::string* ModelFlags::add_saved_model_tags() {
2737 // @@protoc_insertion_point(field_add_mutable:toco.ModelFlags.saved_model_tags)
2738 return saved_model_tags_.Add();
2739}
2740inline void ModelFlags::add_saved_model_tags(const std::string& value) {
2741 saved_model_tags_.Add()->assign(value);
2742 // @@protoc_insertion_point(field_add:toco.ModelFlags.saved_model_tags)
2743}
2744inline void ModelFlags::add_saved_model_tags(std::string&& value) {
2745 saved_model_tags_.Add(std::move(value));
2746 // @@protoc_insertion_point(field_add:toco.ModelFlags.saved_model_tags)
2747}
2748inline void ModelFlags::add_saved_model_tags(const char* value) {
2749 GOOGLE_DCHECK(value != nullptr);
2750 saved_model_tags_.Add()->assign(value);
2751 // @@protoc_insertion_point(field_add_char:toco.ModelFlags.saved_model_tags)
2752}
2753inline void ModelFlags::add_saved_model_tags(const char* value, size_t size) {
2754 saved_model_tags_.Add()->assign(reinterpret_cast<const char*>(value), size);
2755 // @@protoc_insertion_point(field_add_pointer:toco.ModelFlags.saved_model_tags)
2756}
2757inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
2758ModelFlags::saved_model_tags() const {
2759 // @@protoc_insertion_point(field_list:toco.ModelFlags.saved_model_tags)
2760 return saved_model_tags_;
2761}
2762inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
2763ModelFlags::mutable_saved_model_tags() {
2764 // @@protoc_insertion_point(field_mutable_list:toco.ModelFlags.saved_model_tags)
2765 return &saved_model_tags_;
2766}
2767
2768// repeated string saved_model_exported_names = 23;
2769inline int ModelFlags::saved_model_exported_names_size() const {
2770 return saved_model_exported_names_.size();
2771}
2772inline void ModelFlags::clear_saved_model_exported_names() {
2773 saved_model_exported_names_.Clear();
2774}
2775inline const std::string& ModelFlags::saved_model_exported_names(int index) const {
2776 // @@protoc_insertion_point(field_get:toco.ModelFlags.saved_model_exported_names)
2777 return saved_model_exported_names_.Get(index);
2778}
2779inline std::string* ModelFlags::mutable_saved_model_exported_names(int index) {
2780 // @@protoc_insertion_point(field_mutable:toco.ModelFlags.saved_model_exported_names)
2781 return saved_model_exported_names_.Mutable(index);
2782}
2783inline void ModelFlags::set_saved_model_exported_names(int index, const std::string& value) {
2784 // @@protoc_insertion_point(field_set:toco.ModelFlags.saved_model_exported_names)
2785 saved_model_exported_names_.Mutable(index)->assign(value);
2786}
2787inline void ModelFlags::set_saved_model_exported_names(int index, std::string&& value) {
2788 // @@protoc_insertion_point(field_set:toco.ModelFlags.saved_model_exported_names)
2789 saved_model_exported_names_.Mutable(index)->assign(std::move(value));
2790}
2791inline void ModelFlags::set_saved_model_exported_names(int index, const char* value) {
2792 GOOGLE_DCHECK(value != nullptr);
2793 saved_model_exported_names_.Mutable(index)->assign(value);
2794 // @@protoc_insertion_point(field_set_char:toco.ModelFlags.saved_model_exported_names)
2795}
2796inline void ModelFlags::set_saved_model_exported_names(int index, const char* value, size_t size) {
2797 saved_model_exported_names_.Mutable(index)->assign(
2798 reinterpret_cast<const char*>(value), size);
2799 // @@protoc_insertion_point(field_set_pointer:toco.ModelFlags.saved_model_exported_names)
2800}
2801inline std::string* ModelFlags::add_saved_model_exported_names() {
2802 // @@protoc_insertion_point(field_add_mutable:toco.ModelFlags.saved_model_exported_names)
2803 return saved_model_exported_names_.Add();
2804}
2805inline void ModelFlags::add_saved_model_exported_names(const std::string& value) {
2806 saved_model_exported_names_.Add()->assign(value);
2807 // @@protoc_insertion_point(field_add:toco.ModelFlags.saved_model_exported_names)
2808}
2809inline void ModelFlags::add_saved_model_exported_names(std::string&& value) {
2810 saved_model_exported_names_.Add(std::move(value));
2811 // @@protoc_insertion_point(field_add:toco.ModelFlags.saved_model_exported_names)
2812}
2813inline void ModelFlags::add_saved_model_exported_names(const char* value) {
2814 GOOGLE_DCHECK(value != nullptr);
2815 saved_model_exported_names_.Add()->assign(value);
2816 // @@protoc_insertion_point(field_add_char:toco.ModelFlags.saved_model_exported_names)
2817}
2818inline void ModelFlags::add_saved_model_exported_names(const char* value, size_t size) {
2819 saved_model_exported_names_.Add()->assign(reinterpret_cast<const char*>(value), size);
2820 // @@protoc_insertion_point(field_add_pointer:toco.ModelFlags.saved_model_exported_names)
2821}
2822inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>&
2823ModelFlags::saved_model_exported_names() const {
2824 // @@protoc_insertion_point(field_list:toco.ModelFlags.saved_model_exported_names)
2825 return saved_model_exported_names_;
2826}
2827inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>*
2828ModelFlags::mutable_saved_model_exported_names() {
2829 // @@protoc_insertion_point(field_mutable_list:toco.ModelFlags.saved_model_exported_names)
2830 return &saved_model_exported_names_;
2831}
2832
2833// optional bool use_hlo_import = 25;
2834inline bool ModelFlags::has_use_hlo_import() const {
2835 return (_has_bits_[0] & 0x00000040u) != 0;
2836}
2837inline void ModelFlags::clear_use_hlo_import() {
2838 use_hlo_import_ = false;
2839 _has_bits_[0] &= ~0x00000040u;
2840}
2841inline bool ModelFlags::use_hlo_import() const {
2842 // @@protoc_insertion_point(field_get:toco.ModelFlags.use_hlo_import)
2843 return use_hlo_import_;
2844}
2845inline void ModelFlags::set_use_hlo_import(bool value) {
2846 _has_bits_[0] |= 0x00000040u;
2847 use_hlo_import_ = value;
2848 // @@protoc_insertion_point(field_set:toco.ModelFlags.use_hlo_import)
2849}
2850
2851// optional .toco.ModelFlags.HloFileType hlo_file_type = 26;
2852inline bool ModelFlags::has_hlo_file_type() const {
2853 return (_has_bits_[0] & 0x00000004u) != 0;
2854}
2855inline void ModelFlags::clear_hlo_file_type() {
2856 hlo_file_type_ = 0;
2857 _has_bits_[0] &= ~0x00000004u;
2858}
2859inline ::toco::ModelFlags_HloFileType ModelFlags::hlo_file_type() const {
2860 // @@protoc_insertion_point(field_get:toco.ModelFlags.hlo_file_type)
2861 return static_cast< ::toco::ModelFlags_HloFileType >(hlo_file_type_);
2862}
2863inline void ModelFlags::set_hlo_file_type(::toco::ModelFlags_HloFileType value) {
2864 assert(::toco::ModelFlags_HloFileType_IsValid(value));
2865 _has_bits_[0] |= 0x00000004u;
2866 hlo_file_type_ = value;
2867 // @@protoc_insertion_point(field_set:toco.ModelFlags.hlo_file_type)
2868}
2869
2870#ifdef __GNUC__
2871 #pragma GCC diagnostic pop
2872#endif // __GNUC__
2873// -------------------------------------------------------------------
2874
2875// -------------------------------------------------------------------
2876
2877// -------------------------------------------------------------------
2878
2879// -------------------------------------------------------------------
2880
2881// -------------------------------------------------------------------
2882
2883// -------------------------------------------------------------------
2884
2885
2886// @@protoc_insertion_point(namespace_scope)
2887
2888} // namespace toco
2889
2890PROTOBUF_NAMESPACE_OPEN
2891
2892template <> struct is_proto_enum< ::toco::ModelFlags_HloFileType> : ::std::true_type {};
2893template <>
2894inline const EnumDescriptor* GetEnumDescriptor< ::toco::ModelFlags_HloFileType>() {
2895 return ::toco::ModelFlags_HloFileType_descriptor();
2896}
2897
2898PROTOBUF_NAMESPACE_CLOSE
2899
2900// @@protoc_insertion_point(global_scope)
2901
2902#include <google/protobuf/port_undef.inc>
2903#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2flite_2ftoco_2fmodel_5fflags_2eproto
2904