tesseract  5.0.0
tfnetwork.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tfnetwork.proto
3 
4 #ifndef PROTOBUF_INCLUDED_tfnetwork_2eproto
5 #define PROTOBUF_INCLUDED_tfnetwork_2eproto
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 3006001
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 3006001 < GOOGLE_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/arena.h>
23 #include <google/protobuf/arenastring.h>
24 #include <google/protobuf/extension_set.h> // IWYU pragma: export
25 #include <google/protobuf/generated_message_table_driven.h>
26 #include <google/protobuf/generated_message_util.h>
27 #include <google/protobuf/inlined_string_field.h>
28 #include <google/protobuf/io/coded_stream.h>
29 #include <google/protobuf/message.h>
30 #include <google/protobuf/metadata.h>
31 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
32 #include <google/protobuf/unknown_field_set.h>
33 #include "tensorflow/core/framework/graph.pb.h"
34 // @@protoc_insertion_point(includes)
35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_tfnetwork_2eproto
36 
38 // Internal implementation detail -- do not use these members.
39 struct TableStruct {
40  static const ::google::protobuf::internal::ParseTableField entries[];
41  static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
42  static const ::google::protobuf::internal::ParseTable schema[1];
43  static const ::google::protobuf::internal::FieldMetadata field_metadata[];
44  static const ::google::protobuf::internal::SerializationTable serialization_table[];
45  static const ::google::protobuf::uint32 offsets[];
46 };
47 void AddDescriptors();
48 } // namespace protobuf_tfnetwork_2eproto
49 namespace tesseract {
50 class TFNetworkModel;
51 class TFNetworkModelDefaultTypeInternal;
53 } // namespace tesseract
54 namespace google {
55 namespace protobuf {
56 template <>
57 ::tesseract::TFNetworkModel *Arena::CreateMaybeMessage<::tesseract::TFNetworkModel>(Arena *);
58 } // namespace protobuf
59 } // namespace google
60 namespace tesseract {
61 
62 // ===================================================================
63 
65  : public ::google::protobuf::
66  Message /* @@protoc_insertion_point(class_definition:tesseract.TFNetworkModel)
67  */
68 {
69 public:
71  virtual ~TFNetworkModel();
72 
73  TFNetworkModel(const TFNetworkModel &from);
74 
75  inline TFNetworkModel &operator=(const TFNetworkModel &from) {
76  CopyFrom(from);
77  return *this;
78  }
79 #if LANG_CXX11
80  TFNetworkModel(TFNetworkModel &&from) noexcept : TFNetworkModel() {
81  *this = ::std::move(from);
82  }
83 
84  inline TFNetworkModel &operator=(TFNetworkModel &&from) noexcept {
85  if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
86  if (this != &from)
87  InternalSwap(&from);
88  } else {
89  CopyFrom(from);
90  }
91  return *this;
92  }
93 #endif
94  static const ::google::protobuf::Descriptor *descriptor();
95  static const TFNetworkModel &default_instance();
96 
97  static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
98  static inline const TFNetworkModel *internal_default_instance() {
99  return reinterpret_cast<const TFNetworkModel *>(&_TFNetworkModel_default_instance_);
100  }
101  static constexpr int kIndexInFileMessages = 0;
102 
103  void Swap(TFNetworkModel *other);
104  friend void swap(TFNetworkModel &a, TFNetworkModel &b) {
105  a.Swap(&b);
106  }
107 
108  // implements Message ----------------------------------------------
109 
110  inline TFNetworkModel *New() const final {
111  return CreateMaybeMessage<TFNetworkModel>(NULL);
112  }
113 
114  TFNetworkModel *New(::google::protobuf::Arena *arena) const final {
115  return CreateMaybeMessage<TFNetworkModel>(arena);
116  }
117  void CopyFrom(const ::google::protobuf::Message &from) final;
118  void MergeFrom(const ::google::protobuf::Message &from) final;
119  void CopyFrom(const TFNetworkModel &from);
120  void MergeFrom(const TFNetworkModel &from);
121  void Clear() final;
122  bool IsInitialized() const final;
123 
124  size_t ByteSizeLong() const final;
125  bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final;
126  void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final;
128  bool deterministic, ::google::protobuf::uint8 *target) const final;
129  int GetCachedSize() const final {
130  return _cached_size_.Get();
131  }
132 
133 private:
134  void SharedCtor();
135  void SharedDtor();
136  void SetCachedSize(int size) const final;
137  void InternalSwap(TFNetworkModel *other);
138 
139 private:
140  inline ::google::protobuf::Arena *GetArenaNoVirtual() const {
141  return NULL;
142  }
143  inline void *MaybeArenaPtr() const {
144  return NULL;
145  }
146 
147 public:
148  ::google::protobuf::Metadata GetMetadata() const final;
149 
150  // nested types ----------------------------------------------------
151 
152  // accessors -------------------------------------------------------
153 
154  // string spec = 3;
155  void clear_spec();
156  static const int kSpecFieldNumber = 3;
157  const ::std::string &spec() const;
158  void set_spec(const ::std::string &value);
159 #if LANG_CXX11
160  void set_spec(::std::string &&value);
161 #endif
162  void set_spec(const char *value);
163  void set_spec(const char *value, size_t size);
164  ::std::string *mutable_spec();
165  ::std::string *release_spec();
166  void set_allocated_spec(::std::string *spec);
167 
168  // string image_input = 11;
169  void clear_image_input();
170  static const int kImageInputFieldNumber = 11;
171  const ::std::string &image_input() const;
172  void set_image_input(const ::std::string &value);
173 #if LANG_CXX11
174  void set_image_input(::std::string &&value);
175 #endif
176  void set_image_input(const char *value);
177  void set_image_input(const char *value, size_t size);
178  ::std::string *mutable_image_input();
179  ::std::string *release_image_input();
180  void set_allocated_image_input(::std::string *image_input);
181 
182  // string image_widths = 12;
183  void clear_image_widths();
184  static const int kImageWidthsFieldNumber = 12;
185  const ::std::string &image_widths() const;
186  void set_image_widths(const ::std::string &value);
187 #if LANG_CXX11
188  void set_image_widths(::std::string &&value);
189 #endif
190  void set_image_widths(const char *value);
191  void set_image_widths(const char *value, size_t size);
192  ::std::string *mutable_image_widths();
193  ::std::string *release_image_widths();
194  void set_allocated_image_widths(::std::string *image_widths);
195 
196  // string image_heights = 13;
197  void clear_image_heights();
198  static const int kImageHeightsFieldNumber = 13;
199  const ::std::string &image_heights() const;
200  void set_image_heights(const ::std::string &value);
201 #if LANG_CXX11
202  void set_image_heights(::std::string &&value);
203 #endif
204  void set_image_heights(const char *value);
205  void set_image_heights(const char *value, size_t size);
206  ::std::string *mutable_image_heights();
207  ::std::string *release_image_heights();
208  void set_allocated_image_heights(::std::string *image_heights);
209 
210  // string output_layer = 14;
211  void clear_output_layer();
212  static const int kOutputLayerFieldNumber = 14;
213  const ::std::string &output_layer() const;
214  void set_output_layer(const ::std::string &value);
215 #if LANG_CXX11
216  void set_output_layer(::std::string &&value);
217 #endif
218  void set_output_layer(const char *value);
219  void set_output_layer(const char *value, size_t size);
220  ::std::string *mutable_output_layer();
221  ::std::string *release_output_layer();
222  void set_allocated_output_layer(::std::string *output_layer);
223 
224  // .tensorflow.GraphDef graph = 1;
225  bool has_graph() const;
226  void clear_graph();
227  static const int kGraphFieldNumber = 1;
228 
229 private:
230  const ::tensorflow::GraphDef &_internal_graph() const;
231 
232 public:
233  const ::tensorflow::GraphDef &graph() const;
234  ::tensorflow::GraphDef *release_graph();
235  ::tensorflow::GraphDef *mutable_graph();
236  void set_allocated_graph(::tensorflow::GraphDef *graph);
237 
238  // int64 global_step = 2;
239  void clear_global_step();
240  static const int kGlobalStepFieldNumber = 2;
241  ::google::protobuf::int64 global_step() const;
242  void set_global_step(::google::protobuf::int64 value);
243 
244  // int32 depth = 4;
245  void clear_depth();
246  static const int kDepthFieldNumber = 4;
247  ::google::protobuf::int32 depth() const;
248  void set_depth(::google::protobuf::int32 value);
249 
250  // int32 x_size = 5;
251  void clear_x_size();
252  static const int kXSizeFieldNumber = 5;
253  ::google::protobuf::int32 x_size() const;
254  void set_x_size(::google::protobuf::int32 value);
255 
256  // int32 y_size = 6;
257  void clear_y_size();
258  static const int kYSizeFieldNumber = 6;
259  ::google::protobuf::int32 y_size() const;
260  void set_y_size(::google::protobuf::int32 value);
261 
262  // int32 batch_size = 8;
263  void clear_batch_size();
264  static const int kBatchSizeFieldNumber = 8;
265  ::google::protobuf::int32 batch_size() const;
266  void set_batch_size(::google::protobuf::int32 value);
267 
268  // int32 num_classes = 9;
269  void clear_num_classes();
270  static const int kNumClassesFieldNumber = 9;
271  ::google::protobuf::int32 num_classes() const;
272  void set_num_classes(::google::protobuf::int32 value);
273 
274  // bool using_ctc = 10;
275  void clear_using_ctc();
276  static const int kUsingCtcFieldNumber = 10;
277  bool using_ctc() const;
278  void set_using_ctc(bool value);
279 
280  // @@protoc_insertion_point(class_scope:tesseract.TFNetworkModel)
281 private:
282  ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
283  ::google::protobuf::internal::ArenaStringPtr spec_;
284  ::google::protobuf::internal::ArenaStringPtr image_input_;
285  ::google::protobuf::internal::ArenaStringPtr image_widths_;
286  ::google::protobuf::internal::ArenaStringPtr image_heights_;
287  ::google::protobuf::internal::ArenaStringPtr output_layer_;
288  ::tensorflow::GraphDef *graph_;
289  ::google::protobuf::int64 global_step_;
290  ::google::protobuf::int32 depth_;
291  ::google::protobuf::int32 x_size_;
292  ::google::protobuf::int32 y_size_;
293  ::google::protobuf::int32 batch_size_;
294  ::google::protobuf::int32 num_classes_;
295  bool using_ctc_;
296  mutable ::google::protobuf::internal::CachedSize _cached_size_;
297  friend struct ::protobuf_tfnetwork_2eproto::TableStruct;
298 };
299 // ===================================================================
300 
301 // ===================================================================
302 
303 #ifdef __GNUC__
304 # pragma GCC diagnostic push
305 # pragma GCC diagnostic ignored "-Wstrict-aliasing"
306 #endif // __GNUC__
307 // TFNetworkModel
308 
309 // .tensorflow.GraphDef graph = 1;
310 inline bool TFNetworkModel::has_graph() const {
311  return this != internal_default_instance() && graph_ != NULL;
312 }
313 inline const ::tensorflow::GraphDef &TFNetworkModel::_internal_graph() const {
314  return *graph_;
315 }
316 inline const ::tensorflow::GraphDef &TFNetworkModel::graph() const {
317  const ::tensorflow::GraphDef *p = graph_;
318  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.graph)
319  return p != NULL ? *p
320  : *reinterpret_cast<const ::tensorflow::GraphDef *>(
321  &::tensorflow::_GraphDef_default_instance_);
322 }
323 inline ::tensorflow::GraphDef *TFNetworkModel::release_graph() {
324  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.graph)
325 
326  ::tensorflow::GraphDef *temp = graph_;
327  graph_ = NULL;
328  return temp;
329 }
330 inline ::tensorflow::GraphDef *TFNetworkModel::mutable_graph() {
331  if (graph_ == NULL) {
332  auto *p = CreateMaybeMessage<::tensorflow::GraphDef>(GetArenaNoVirtual());
333  graph_ = p;
334  }
335  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.graph)
336  return graph_;
337 }
338 inline void TFNetworkModel::set_allocated_graph(::tensorflow::GraphDef *graph) {
339  ::google::protobuf::Arena *message_arena = GetArenaNoVirtual();
340  if (message_arena == NULL) {
341  delete reinterpret_cast<::google::protobuf::MessageLite *>(graph_);
342  }
343  if (graph) {
344  ::google::protobuf::Arena *submessage_arena =
345  reinterpret_cast<::google::protobuf::MessageLite *>(graph)->GetArena();
346  if (message_arena != submessage_arena) {
347  graph = ::google::protobuf::internal::GetOwnedMessage(message_arena, graph, submessage_arena);
348  }
349 
350  } else {
351  }
352  graph_ = graph;
353  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.graph)
354 }
355 
356 // int64 global_step = 2;
358  global_step_ = GOOGLE_LONGLONG(0);
359 }
360 inline ::google::protobuf::int64 TFNetworkModel::global_step() const {
361  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.global_step)
362  return global_step_;
363 }
364 inline void TFNetworkModel::set_global_step(::google::protobuf::int64 value) {
365  global_step_ = value;
366  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.global_step)
367 }
368 
369 // string spec = 3;
371  spec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
372 }
373 inline const ::std::string &TFNetworkModel::spec() const {
374  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.spec)
375  return spec_.GetNoArena();
376 }
377 inline void TFNetworkModel::set_spec(const ::std::string &value) {
378  spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
379  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.spec)
380 }
381 #if LANG_CXX11
382 inline void TFNetworkModel::set_spec(::std::string &&value) {
383  spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
384  ::std::move(value));
385  // @@protoc_insertion_point(field_set_rvalue:tesseract.TFNetworkModel.spec)
386 }
387 #endif
388 inline void TFNetworkModel::set_spec(const char *value) {
389  GOOGLE_DCHECK(value != NULL);
390 
391  spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
392  ::std::string(value));
393  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.spec)
394 }
395 inline void TFNetworkModel::set_spec(const char *value, size_t size) {
396  spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
397  ::std::string(reinterpret_cast<const char *>(value), size));
398  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.spec)
399 }
400 inline ::std::string *TFNetworkModel::mutable_spec() {
401  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.spec)
402  return spec_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
403 }
404 inline ::std::string *TFNetworkModel::release_spec() {
405  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.spec)
406 
407  return spec_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
408 }
409 inline void TFNetworkModel::set_allocated_spec(::std::string *spec) {
410  if (spec != NULL) {
411  } else {
412  }
413  spec_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spec);
414  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.spec)
415 }
416 
417 // int32 depth = 4;
419  depth_ = 0;
420 }
421 inline ::google::protobuf::int32 TFNetworkModel::depth() const {
422  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.depth)
423  return depth_;
424 }
425 inline void TFNetworkModel::set_depth(::google::protobuf::int32 value) {
426  depth_ = value;
427  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.depth)
428 }
429 
430 // int32 x_size = 5;
432  x_size_ = 0;
433 }
434 inline ::google::protobuf::int32 TFNetworkModel::x_size() const {
435  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.x_size)
436  return x_size_;
437 }
438 inline void TFNetworkModel::set_x_size(::google::protobuf::int32 value) {
439  x_size_ = value;
440  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.x_size)
441 }
442 
443 // int32 y_size = 6;
445  y_size_ = 0;
446 }
447 inline ::google::protobuf::int32 TFNetworkModel::y_size() const {
448  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.y_size)
449  return y_size_;
450 }
451 inline void TFNetworkModel::set_y_size(::google::protobuf::int32 value) {
452  y_size_ = value;
453  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.y_size)
454 }
455 
456 // int32 batch_size = 8;
458  batch_size_ = 0;
459 }
460 inline ::google::protobuf::int32 TFNetworkModel::batch_size() const {
461  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.batch_size)
462  return batch_size_;
463 }
464 inline void TFNetworkModel::set_batch_size(::google::protobuf::int32 value) {
465  batch_size_ = value;
466  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.batch_size)
467 }
468 
469 // int32 num_classes = 9;
471  num_classes_ = 0;
472 }
473 inline ::google::protobuf::int32 TFNetworkModel::num_classes() const {
474  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.num_classes)
475  return num_classes_;
476 }
477 inline void TFNetworkModel::set_num_classes(::google::protobuf::int32 value) {
478  num_classes_ = value;
479  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.num_classes)
480 }
481 
482 // bool using_ctc = 10;
484  using_ctc_ = false;
485 }
486 inline bool TFNetworkModel::using_ctc() const {
487  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.using_ctc)
488  return using_ctc_;
489 }
490 inline void TFNetworkModel::set_using_ctc(bool value) {
491  using_ctc_ = value;
492  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.using_ctc)
493 }
494 
495 // string image_input = 11;
497  image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
498 }
499 inline const ::std::string &TFNetworkModel::image_input() const {
500  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_input)
501  return image_input_.GetNoArena();
502 }
503 inline void TFNetworkModel::set_image_input(const ::std::string &value) {
504  image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
505  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_input)
506 }
507 #if LANG_CXX11
508 inline void TFNetworkModel::set_image_input(::std::string &&value) {
509  image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
510  ::std::move(value));
511  // @@protoc_insertion_point(field_set_rvalue:tesseract.TFNetworkModel.image_input)
512 }
513 #endif
514 inline void TFNetworkModel::set_image_input(const char *value) {
515  GOOGLE_DCHECK(value != NULL);
516 
517  image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
518  ::std::string(value));
519  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_input)
520 }
521 inline void TFNetworkModel::set_image_input(const char *value, size_t size) {
522  image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
523  ::std::string(reinterpret_cast<const char *>(value), size));
524  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_input)
525 }
526 inline ::std::string *TFNetworkModel::mutable_image_input() {
527  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_input)
528  return image_input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
529 }
530 inline ::std::string *TFNetworkModel::release_image_input() {
531  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_input)
532 
533  return image_input_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
534 }
535 inline void TFNetworkModel::set_allocated_image_input(::std::string *image_input) {
536  if (image_input != NULL) {
537  } else {
538  }
539  image_input_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
540  image_input);
541  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_input)
542 }
543 
544 // string image_widths = 12;
546  image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
547 }
548 inline const ::std::string &TFNetworkModel::image_widths() const {
549  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_widths)
550  return image_widths_.GetNoArena();
551 }
552 inline void TFNetworkModel::set_image_widths(const ::std::string &value) {
553  image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
554  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_widths)
555 }
556 #if LANG_CXX11
557 inline void TFNetworkModel::set_image_widths(::std::string &&value) {
558  image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
559  ::std::move(value));
560  // @@protoc_insertion_point(field_set_rvalue:tesseract.TFNetworkModel.image_widths)
561 }
562 #endif
563 inline void TFNetworkModel::set_image_widths(const char *value) {
564  GOOGLE_DCHECK(value != NULL);
565 
566  image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
567  ::std::string(value));
568  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_widths)
569 }
570 inline void TFNetworkModel::set_image_widths(const char *value, size_t size) {
571  image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
572  ::std::string(reinterpret_cast<const char *>(value), size));
573  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_widths)
574 }
575 inline ::std::string *TFNetworkModel::mutable_image_widths() {
576  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_widths)
577  return image_widths_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
578 }
579 inline ::std::string *TFNetworkModel::release_image_widths() {
580  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_widths)
581 
582  return image_widths_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
583 }
584 inline void TFNetworkModel::set_allocated_image_widths(::std::string *image_widths) {
585  if (image_widths != NULL) {
586  } else {
587  }
588  image_widths_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
589  image_widths);
590  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_widths)
591 }
592 
593 // string image_heights = 13;
595  image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
596 }
597 inline const ::std::string &TFNetworkModel::image_heights() const {
598  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_heights)
599  return image_heights_.GetNoArena();
600 }
601 inline void TFNetworkModel::set_image_heights(const ::std::string &value) {
602  image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
603  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.image_heights)
604 }
605 #if LANG_CXX11
606 inline void TFNetworkModel::set_image_heights(::std::string &&value) {
607  image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
608  ::std::move(value));
609  // @@protoc_insertion_point(field_set_rvalue:tesseract.TFNetworkModel.image_heights)
610 }
611 #endif
612 inline void TFNetworkModel::set_image_heights(const char *value) {
613  GOOGLE_DCHECK(value != NULL);
614 
615  image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
616  ::std::string(value));
617  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.image_heights)
618 }
619 inline void TFNetworkModel::set_image_heights(const char *value, size_t size) {
620  image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
621  ::std::string(reinterpret_cast<const char *>(value), size));
622  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.image_heights)
623 }
624 inline ::std::string *TFNetworkModel::mutable_image_heights() {
625  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_heights)
626  return image_heights_.MutableNoArena(
627  &::google::protobuf::internal::GetEmptyStringAlreadyInited());
628 }
629 inline ::std::string *TFNetworkModel::release_image_heights() {
630  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_heights)
631 
632  return image_heights_.ReleaseNoArena(
633  &::google::protobuf::internal::GetEmptyStringAlreadyInited());
634 }
635 inline void TFNetworkModel::set_allocated_image_heights(::std::string *image_heights) {
636  if (image_heights != NULL) {
637  } else {
638  }
639  image_heights_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
640  image_heights);
641  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.image_heights)
642 }
643 
644 // string output_layer = 14;
646  output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
647 }
648 inline const ::std::string &TFNetworkModel::output_layer() const {
649  // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.output_layer)
650  return output_layer_.GetNoArena();
651 }
652 inline void TFNetworkModel::set_output_layer(const ::std::string &value) {
653  output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
654  // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.output_layer)
655 }
656 #if LANG_CXX11
657 inline void TFNetworkModel::set_output_layer(::std::string &&value) {
658  output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
659  ::std::move(value));
660  // @@protoc_insertion_point(field_set_rvalue:tesseract.TFNetworkModel.output_layer)
661 }
662 #endif
663 inline void TFNetworkModel::set_output_layer(const char *value) {
664  GOOGLE_DCHECK(value != NULL);
665 
666  output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
667  ::std::string(value));
668  // @@protoc_insertion_point(field_set_char:tesseract.TFNetworkModel.output_layer)
669 }
670 inline void TFNetworkModel::set_output_layer(const char *value, size_t size) {
671  output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
672  ::std::string(reinterpret_cast<const char *>(value), size));
673  // @@protoc_insertion_point(field_set_pointer:tesseract.TFNetworkModel.output_layer)
674 }
675 inline ::std::string *TFNetworkModel::mutable_output_layer() {
676  // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.output_layer)
677  return output_layer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
678 }
679 inline ::std::string *TFNetworkModel::release_output_layer() {
680  // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.output_layer)
681 
682  return output_layer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
683 }
684 inline void TFNetworkModel::set_allocated_output_layer(::std::string *output_layer) {
685  if (output_layer != NULL) {
686  } else {
687  }
688  output_layer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
689  output_layer);
690  // @@protoc_insertion_point(field_set_allocated:tesseract.TFNetworkModel.output_layer)
691 }
692 
693 #ifdef __GNUC__
694 # pragma GCC diagnostic pop
695 #endif // __GNUC__
696 
697 // @@protoc_insertion_point(namespace_scope)
698 
699 } // namespace tesseract
700 
701 // @@protoc_insertion_point(global_scope)
702 
703 #endif // PROTOBUF_INCLUDED_tfnetwork_2eproto
class tesseract::TFNetworkModelDefaultTypeInternal _TFNetworkModel_default_instance_
Definition: tfnetwork.pb.h:51
static const ::google::protobuf::internal::ParseTable schema[1]
Definition: tfnetwork.pb.h:42
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
Definition: tfnetwork.pb.h:43
static const ::google::protobuf::uint32 offsets[]
Definition: tfnetwork.pb.h:45
static const ::google::protobuf::internal::ParseTableField entries[]
Definition: tfnetwork.pb.h:40
static const ::google::protobuf::internal::SerializationTable serialization_table[]
Definition: tfnetwork.pb.h:44
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
Definition: tfnetwork.pb.h:41
static const ::google::protobuf::Descriptor * descriptor()
static const int kYSizeFieldNumber
Definition: tfnetwork.pb.h:258
bool IsInitialized() const final
const ::std::string & image_heights() const
Definition: tfnetwork.pb.h:597
void set_spec(const ::std::string &value)
Definition: tfnetwork.pb.h:377
const ::std::string & output_layer() const
Definition: tfnetwork.pb.h:648
void set_x_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:438
static const int kUsingCtcFieldNumber
Definition: tfnetwork.pb.h:276
::google::protobuf::Metadata GetMetadata() const final
static const int kBatchSizeFieldNumber
Definition: tfnetwork.pb.h:264
static void InitAsDefaultInstance()
::std::string * mutable_spec()
Definition: tfnetwork.pb.h:400
::tensorflow::GraphDef * mutable_graph()
Definition: tfnetwork.pb.h:330
void set_image_input(const ::std::string &value)
Definition: tfnetwork.pb.h:503
void set_y_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:451
static const int kOutputLayerFieldNumber
Definition: tfnetwork.pb.h:212
void set_output_layer(const ::std::string &value)
Definition: tfnetwork.pb.h:652
static constexpr int kIndexInFileMessages
Definition: tfnetwork.pb.h:101
static const int kImageHeightsFieldNumber
Definition: tfnetwork.pb.h:198
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
int GetCachedSize() const final
Definition: tfnetwork.pb.h:129
void Swap(TFNetworkModel *other)
void set_using_ctc(bool value)
Definition: tfnetwork.pb.h:490
TFNetworkModel & operator=(const TFNetworkModel &from)
Definition: tfnetwork.pb.h:75
void set_allocated_image_heights(::std::string *image_heights)
Definition: tfnetwork.pb.h:635
::std::string * mutable_output_layer()
Definition: tfnetwork.pb.h:675
::std::string * release_image_input()
Definition: tfnetwork.pb.h:530
friend void swap(TFNetworkModel &a, TFNetworkModel &b)
Definition: tfnetwork.pb.h:104
const ::tensorflow::GraphDef & graph() const
Definition: tfnetwork.pb.h:316
void set_allocated_spec(::std::string *spec)
Definition: tfnetwork.pb.h:409
::google::protobuf::int64 global_step() const
Definition: tfnetwork.pb.h:360
void set_image_heights(const ::std::string &value)
Definition: tfnetwork.pb.h:601
::google::protobuf::int32 x_size() const
Definition: tfnetwork.pb.h:434
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
const ::std::string & image_input() const
Definition: tfnetwork.pb.h:499
static const int kXSizeFieldNumber
Definition: tfnetwork.pb.h:252
::std::string * release_spec()
Definition: tfnetwork.pb.h:404
static const int kGraphFieldNumber
Definition: tfnetwork.pb.h:227
static const int kDepthFieldNumber
Definition: tfnetwork.pb.h:246
static const TFNetworkModel & default_instance()
void set_allocated_image_widths(::std::string *image_widths)
Definition: tfnetwork.pb.h:584
void set_num_classes(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:477
void CopyFrom(const ::google::protobuf::Message &from) final
static const int kNumClassesFieldNumber
Definition: tfnetwork.pb.h:270
::google::protobuf::int32 num_classes() const
Definition: tfnetwork.pb.h:473
::std::string * release_output_layer()
Definition: tfnetwork.pb.h:679
void set_allocated_image_input(::std::string *image_input)
Definition: tfnetwork.pb.h:535
void set_allocated_graph(::tensorflow::GraphDef *graph)
Definition: tfnetwork.pb.h:338
void set_depth(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:425
void set_allocated_output_layer(::std::string *output_layer)
Definition: tfnetwork.pb.h:684
::google::protobuf::int32 depth() const
Definition: tfnetwork.pb.h:421
static const int kImageWidthsFieldNumber
Definition: tfnetwork.pb.h:184
static const int kGlobalStepFieldNumber
Definition: tfnetwork.pb.h:240
::std::string * release_image_widths()
Definition: tfnetwork.pb.h:579
const ::std::string & image_widths() const
Definition: tfnetwork.pb.h:548
void set_global_step(::google::protobuf::int64 value)
Definition: tfnetwork.pb.h:364
::std::string * mutable_image_widths()
Definition: tfnetwork.pb.h:575
::tensorflow::GraphDef * release_graph()
Definition: tfnetwork.pb.h:323
void MergeFrom(const ::google::protobuf::Message &from) final
::std::string * release_image_heights()
Definition: tfnetwork.pb.h:629
static const int kSpecFieldNumber
Definition: tfnetwork.pb.h:156
::std::string * mutable_image_heights()
Definition: tfnetwork.pb.h:624
TFNetworkModel * New() const final
Definition: tfnetwork.pb.h:110
const ::std::string & spec() const
Definition: tfnetwork.pb.h:373
::google::protobuf::int32 batch_size() const
Definition: tfnetwork.pb.h:460
TFNetworkModel * New(::google::protobuf::Arena *arena) const final
Definition: tfnetwork.pb.h:114
static const int kImageInputFieldNumber
Definition: tfnetwork.pb.h:170
size_t ByteSizeLong() const final
static const TFNetworkModel * internal_default_instance()
Definition: tfnetwork.pb.h:98
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
void set_image_widths(const ::std::string &value)
Definition: tfnetwork.pb.h:552
::google::protobuf::int32 y_size() const
Definition: tfnetwork.pb.h:447
::std::string * mutable_image_input()
Definition: tfnetwork.pb.h:526
void set_batch_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:464