tesseract 4.1.1
Loading...
Searching...
No Matches
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.
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};
47void AddDescriptors();
48} // namespace protobuf_tfnetwork_2eproto
49namespace tesseract {
50class TFNetworkModel;
51class TFNetworkModelDefaultTypeInternal;
53} // namespace tesseract
54namespace google {
55namespace protobuf {
56template<> ::tesseract::TFNetworkModel* Arena::CreateMaybeMessage<::tesseract::TFNetworkModel>(Arena*);
57} // namespace protobuf
58} // namespace google
59namespace tesseract {
60
61// ===================================================================
62
63class TFNetworkModel : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:tesseract.TFNetworkModel) */ {
64 public:
66 virtual ~TFNetworkModel();
67
68 TFNetworkModel(const TFNetworkModel& from);
69
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
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);
160 ::std::string* mutable_spec();
161 ::std::string* release_spec();
162 void set_allocated_spec(::std::string* spec);
163
164 // string image_input = 11;
165 void clear_image_input();
166 static const int kImageInputFieldNumber = 11;
167 const ::std::string& image_input() const;
168 void set_image_input(const ::std::string& value);
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);
174 ::std::string* mutable_image_input();
175 ::std::string* release_image_input();
176 void set_allocated_image_input(::std::string* image_input);
177
178 // string image_widths = 12;
179 void clear_image_widths();
180 static const int kImageWidthsFieldNumber = 12;
181 const ::std::string& image_widths() const;
182 void set_image_widths(const ::std::string& value);
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);
188 ::std::string* mutable_image_widths();
189 ::std::string* release_image_widths();
190 void set_allocated_image_widths(::std::string* image_widths);
191
192 // string image_heights = 13;
193 void clear_image_heights();
194 static const int kImageHeightsFieldNumber = 13;
195 const ::std::string& image_heights() const;
196 void set_image_heights(const ::std::string& value);
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);
202 ::std::string* mutable_image_heights();
203 ::std::string* release_image_heights();
204 void set_allocated_image_heights(::std::string* image_heights);
205
206 // string output_layer = 14;
207 void clear_output_layer();
208 static const int kOutputLayerFieldNumber = 14;
209 const ::std::string& output_layer() const;
210 void set_output_layer(const ::std::string& value);
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);
216 ::std::string* mutable_output_layer();
217 ::std::string* release_output_layer();
218 void set_allocated_output_layer(::std::string* output_layer);
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;
306inline bool TFNetworkModel::has_graph() const {
307 return this != internal_default_instance() && graph_ != NULL;
308}
309inline const ::tensorflow::GraphDef& TFNetworkModel::_internal_graph() const {
310 return *graph_;
311}
312inline 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}
318inline ::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}
325inline ::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}
334inline 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}
358inline ::google::protobuf::int64 TFNetworkModel::global_step() const {
359 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.global_step)
360 return global_step_;
361}
362inline 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}
372inline const ::std::string& TFNetworkModel::spec() const {
373 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.spec)
374 return spec_.GetNoArena();
375}
376inline void TFNetworkModel::set_spec(const ::std::string& value) {
377
378 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
379 // @@protoc_insertion_point(field_set:tesseract.TFNetworkModel.spec)
380}
381#if LANG_CXX11
382inline 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
389inline 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}
395inline 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}
401inline ::std::string* TFNetworkModel::mutable_spec() {
402
403 // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.spec)
404 return spec_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
405}
406inline ::std::string* TFNetworkModel::release_spec() {
407 // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.spec)
408
409 return spec_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
410}
411inline void TFNetworkModel::set_allocated_spec(::std::string* spec) {
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}
425inline ::google::protobuf::int32 TFNetworkModel::depth() const {
426 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.depth)
427 return depth_;
428}
429inline 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}
439inline ::google::protobuf::int32 TFNetworkModel::x_size() const {
440 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.x_size)
441 return x_size_;
442}
443inline 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}
453inline ::google::protobuf::int32 TFNetworkModel::y_size() const {
454 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.y_size)
455 return y_size_;
456}
457inline 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}
467inline ::google::protobuf::int32 TFNetworkModel::batch_size() const {
468 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.batch_size)
469 return batch_size_;
470}
471inline 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}
481inline ::google::protobuf::int32 TFNetworkModel::num_classes() const {
482 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.num_classes)
483 return num_classes_;
484}
485inline 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}
495inline bool TFNetworkModel::using_ctc() const {
496 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.using_ctc)
497 return using_ctc_;
498}
499inline 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}
509inline const ::std::string& TFNetworkModel::image_input() const {
510 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_input)
511 return image_input_.GetNoArena();
512}
513inline void TFNetworkModel::set_image_input(const ::std::string& value) {
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
519inline 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
526inline 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}
532inline 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}
538inline ::std::string* TFNetworkModel::mutable_image_input() {
539
540 // @@protoc_insertion_point(field_mutable:tesseract.TFNetworkModel.image_input)
541 return image_input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
542}
543inline ::std::string* TFNetworkModel::release_image_input() {
544 // @@protoc_insertion_point(field_release:tesseract.TFNetworkModel.image_input)
545
546 return image_input_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
547}
548inline void TFNetworkModel::set_allocated_image_input(::std::string* image_input) {
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}
562inline const ::std::string& TFNetworkModel::image_widths() const {
563 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_widths)
564 return image_widths_.GetNoArena();
565}
566inline void TFNetworkModel::set_image_widths(const ::std::string& value) {
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
572inline 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
579inline 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}
585inline 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}
601inline void TFNetworkModel::set_allocated_image_widths(::std::string* image_widths) {
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}
615inline const ::std::string& TFNetworkModel::image_heights() const {
616 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.image_heights)
617 return image_heights_.GetNoArena();
618}
619inline void TFNetworkModel::set_image_heights(const ::std::string& value) {
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
625inline 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
632inline 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}
638inline 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}
654inline void TFNetworkModel::set_allocated_image_heights(::std::string* image_heights) {
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}
668inline const ::std::string& TFNetworkModel::output_layer() const {
669 // @@protoc_insertion_point(field_get:tesseract.TFNetworkModel.output_layer)
670 return output_layer_.GetNoArena();
671}
672inline void TFNetworkModel::set_output_layer(const ::std::string& value) {
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
678inline 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
685inline 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}
691inline 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}
707inline void TFNetworkModel::set_allocated_output_layer(::std::string* output_layer) {
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
class tesseract::TFNetworkModelDefaultTypeInternal _TFNetworkModel_default_instance_
Definition: tfnetwork.pb.h:52
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:252
bool IsInitialized() const final
static const TFNetworkModel * internal_default_instance()
Definition: tfnetwork.pb.h:93
const ::std::string & image_heights() const
Definition: tfnetwork.pb.h:615
void set_spec(const ::std::string &value)
Definition: tfnetwork.pb.h:376
const ::std::string & output_layer() const
Definition: tfnetwork.pb.h:668
void set_x_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:443
static const int kUsingCtcFieldNumber
Definition: tfnetwork.pb.h:270
::google::protobuf::Metadata GetMetadata() const final
static const int kBatchSizeFieldNumber
Definition: tfnetwork.pb.h:258
static void InitAsDefaultInstance()
::std::string * mutable_spec()
Definition: tfnetwork.pb.h:401
::tensorflow::GraphDef * mutable_graph()
Definition: tfnetwork.pb.h:325
void set_image_input(const ::std::string &value)
Definition: tfnetwork.pb.h:513
void set_y_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:457
static const int kOutputLayerFieldNumber
Definition: tfnetwork.pb.h:208
void set_output_layer(const ::std::string &value)
Definition: tfnetwork.pb.h:672
static constexpr int kIndexInFileMessages
Definition: tfnetwork.pb.h:97
static const int kImageHeightsFieldNumber
Definition: tfnetwork.pb.h:194
TFNetworkModel * New(::google::protobuf::Arena *arena) const final
Definition: tfnetwork.pb.h:111
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
int GetCachedSize() const final
Definition: tfnetwork.pb.h:128
void Swap(TFNetworkModel *other)
void set_using_ctc(bool value)
Definition: tfnetwork.pb.h:499
void set_allocated_image_heights(::std::string *image_heights)
Definition: tfnetwork.pb.h:654
::std::string * mutable_output_layer()
Definition: tfnetwork.pb.h:697
::std::string * release_image_input()
Definition: tfnetwork.pb.h:543
friend void swap(TFNetworkModel &a, TFNetworkModel &b)
Definition: tfnetwork.pb.h:101
const ::tensorflow::GraphDef & graph() const
Definition: tfnetwork.pb.h:312
void set_allocated_spec(::std::string *spec)
Definition: tfnetwork.pb.h:411
::google::protobuf::int64 global_step() const
Definition: tfnetwork.pb.h:358
void set_image_heights(const ::std::string &value)
Definition: tfnetwork.pb.h:619
::google::protobuf::int32 x_size() const
Definition: tfnetwork.pb.h:439
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
const ::std::string & image_input() const
Definition: tfnetwork.pb.h:509
static const int kXSizeFieldNumber
Definition: tfnetwork.pb.h:246
::std::string * release_spec()
Definition: tfnetwork.pb.h:406
static const int kGraphFieldNumber
Definition: tfnetwork.pb.h:223
static const int kDepthFieldNumber
Definition: tfnetwork.pb.h:240
static const TFNetworkModel & default_instance()
void set_allocated_image_widths(::std::string *image_widths)
Definition: tfnetwork.pb.h:601
TFNetworkModel * New() const final
Definition: tfnetwork.pb.h:107
void set_num_classes(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:485
void CopyFrom(const ::google::protobuf::Message &from) final
static const int kNumClassesFieldNumber
Definition: tfnetwork.pb.h:264
::google::protobuf::int32 num_classes() const
Definition: tfnetwork.pb.h:481
::std::string * release_output_layer()
Definition: tfnetwork.pb.h:702
void set_allocated_image_input(::std::string *image_input)
Definition: tfnetwork.pb.h:548
void set_allocated_graph(::tensorflow::GraphDef *graph)
Definition: tfnetwork.pb.h:334
void set_depth(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:429
void set_allocated_output_layer(::std::string *output_layer)
Definition: tfnetwork.pb.h:707
::google::protobuf::int32 depth() const
Definition: tfnetwork.pb.h:425
static const int kImageWidthsFieldNumber
Definition: tfnetwork.pb.h:180
static const int kGlobalStepFieldNumber
Definition: tfnetwork.pb.h:234
::std::string * release_image_widths()
Definition: tfnetwork.pb.h:596
const ::std::string & image_widths() const
Definition: tfnetwork.pb.h:562
void set_global_step(::google::protobuf::int64 value)
Definition: tfnetwork.pb.h:362
::std::string * mutable_image_widths()
Definition: tfnetwork.pb.h:591
::tensorflow::GraphDef * release_graph()
Definition: tfnetwork.pb.h:318
void MergeFrom(const ::google::protobuf::Message &from) final
::std::string * release_image_heights()
Definition: tfnetwork.pb.h:649
static const int kSpecFieldNumber
Definition: tfnetwork.pb.h:152
TFNetworkModel & operator=(const TFNetworkModel &from)
Definition: tfnetwork.pb.h:70
::std::string * mutable_image_heights()
Definition: tfnetwork.pb.h:644
const ::std::string & spec() const
Definition: tfnetwork.pb.h:372
::google::protobuf::int32 batch_size() const
Definition: tfnetwork.pb.h:467
static const int kImageInputFieldNumber
Definition: tfnetwork.pb.h:166
size_t ByteSizeLong() const final
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
void set_image_widths(const ::std::string &value)
Definition: tfnetwork.pb.h:566
::google::protobuf::int32 y_size() const
Definition: tfnetwork.pb.h:453
::std::string * mutable_image_input()
Definition: tfnetwork.pb.h:538
void set_batch_size(::google::protobuf::int32 value)
Definition: tfnetwork.pb.h:471