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