4 #ifndef PROTOBUF_INCLUDED_tfnetwork_2eproto 5 #define PROTOBUF_INCLUDED_tfnetwork_2eproto 9 #include <google/protobuf/stubs/common.h> 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 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. 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> 31 #include <google/protobuf/extension_set.h> 32 #include <google/protobuf/unknown_field_set.h> 33 #include "tensorflow/core/framework/graph.pb.h" 35 #define PROTOBUF_INTERNAL_EXPORT_protobuf_tfnetwork_2eproto 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];
45 static const ::google::protobuf::uint32
offsets[];
77 *
this = ::std::move(from);
81 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
82 if (
this != &from) InternalSwap(&from);
89 static const ::google::protobuf::Descriptor* descriptor();
92 static void InitAsDefaultInstance();
97 static constexpr
int kIndexInFileMessages =
108 return CreateMaybeMessage<TFNetworkModel>(NULL);
112 return CreateMaybeMessage<TFNetworkModel>(arena);
114 void CopyFrom(const ::google::protobuf::Message& from)
final;
115 void MergeFrom(const ::google::protobuf::Message& from)
final;
119 bool IsInitialized()
const final;
121 size_t ByteSizeLong()
const final;
122 bool MergePartialFromCodedStream(
123 ::google::protobuf::io::CodedInputStream* input)
final;
124 void SerializeWithCachedSizes(
125 ::google::protobuf::io::CodedOutputStream* output)
const final;
126 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
127 bool deterministic, ::google::protobuf::uint8* target)
const final;
133 void SetCachedSize(
int size)
const final;
136 inline ::google::protobuf::Arena* GetArenaNoVirtual()
const {
139 inline void* MaybeArenaPtr()
const {
144 ::google::protobuf::Metadata GetMetadata()
const final;
152 static const int kSpecFieldNumber = 3;
153 const ::std::string& spec()
const;
154 void set_spec(const ::std::string& value);
156 void set_spec(::std::string&& value);
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);
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);
170 void set_image_input(::std::string&& value);
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);
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);
184 void set_image_widths(::std::string&& value);
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);
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);
198 void set_image_heights(::std::string&& value);
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);
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);
212 void set_output_layer(::std::string&& value);
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);
221 bool has_graph()
const;
223 static const int kGraphFieldNumber = 1;
225 const ::tensorflow::GraphDef& _internal_graph()
const;
227 const ::tensorflow::GraphDef& graph()
const;
228 ::tensorflow::GraphDef* release_graph();
229 ::tensorflow::GraphDef* mutable_graph();
230 void set_allocated_graph(::tensorflow::GraphDef* graph);
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);
240 static const int kDepthFieldNumber = 4;
241 ::google::protobuf::int32 depth()
const;
242 void set_depth(::google::protobuf::int32 value);
246 static const int kXSizeFieldNumber = 5;
247 ::google::protobuf::int32 x_size()
const;
248 void set_x_size(::google::protobuf::int32 value);
252 static const int kYSizeFieldNumber = 6;
253 ::google::protobuf::int32 y_size()
const;
254 void set_y_size(::google::protobuf::int32 value);
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);
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);
269 void clear_using_ctc();
270 static const int kUsingCtcFieldNumber = 10;
271 bool using_ctc()
const;
272 void set_using_ctc(
bool value);
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_;
291 mutable ::google::protobuf::internal::CachedSize _cached_size_;
292 friend struct ::protobuf_tfnetwork_2eproto::TableStruct;
300 #pragma GCC diagnostic push 301 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 306 inline bool TFNetworkModel::has_graph()
const {
307 return this != internal_default_instance() && graph_ != NULL;
309 inline const ::tensorflow::GraphDef& TFNetworkModel::_internal_graph()
const {
312 inline const ::tensorflow::GraphDef& TFNetworkModel::graph()
const {
313 const ::tensorflow::GraphDef* p = graph_;
315 return p != NULL ? *p : *
reinterpret_cast<const ::tensorflow::GraphDef*
>(
316 &::tensorflow::_GraphDef_default_instance_);
318 inline ::tensorflow::GraphDef* TFNetworkModel::release_graph() {
321 ::tensorflow::GraphDef* temp = graph_;
325 inline ::tensorflow::GraphDef* TFNetworkModel::mutable_graph() {
327 if (graph_ == NULL) {
328 auto* p = CreateMaybeMessage<::tensorflow::GraphDef>(GetArenaNoVirtual());
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_);
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);
355 inline void TFNetworkModel::clear_global_step() {
356 global_step_ = GOOGLE_LONGLONG(0);
358 inline ::google::protobuf::int64 TFNetworkModel::global_step()
const {
362 inline void TFNetworkModel::set_global_step(::google::protobuf::int64 value) {
364 global_step_ = value;
369 inline void TFNetworkModel::clear_spec() {
370 spec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
372 inline const ::std::string& TFNetworkModel::spec()
const {
374 return spec_.GetNoArena();
376 inline void TFNetworkModel::set_spec(const ::std::string& value) {
378 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
382 inline void TFNetworkModel::set_spec(::std::string&& value) {
385 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
389 inline void TFNetworkModel::set_spec(
const char* value) {
390 GOOGLE_DCHECK(value != NULL);
392 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
395 inline void TFNetworkModel::set_spec(
const char* value,
size_t size) {
397 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
398 ::std::string(reinterpret_cast<const char*>(value), size));
401 inline ::std::string* TFNetworkModel::mutable_spec() {
404 return spec_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
406 inline ::std::string* TFNetworkModel::release_spec() {
409 return spec_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
411 inline void TFNetworkModel::set_allocated_spec(::std::string* spec) {
417 spec_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), spec);
422 inline void TFNetworkModel::clear_depth() {
425 inline ::google::protobuf::int32 TFNetworkModel::depth()
const {
429 inline void TFNetworkModel::set_depth(::google::protobuf::int32 value) {
436 inline void TFNetworkModel::clear_x_size() {
439 inline ::google::protobuf::int32 TFNetworkModel::x_size()
const {
443 inline void TFNetworkModel::set_x_size(::google::protobuf::int32 value) {
450 inline void TFNetworkModel::clear_y_size() {
453 inline ::google::protobuf::int32 TFNetworkModel::y_size()
const {
457 inline void TFNetworkModel::set_y_size(::google::protobuf::int32 value) {
464 inline void TFNetworkModel::clear_batch_size() {
467 inline ::google::protobuf::int32 TFNetworkModel::batch_size()
const {
471 inline void TFNetworkModel::set_batch_size(::google::protobuf::int32 value) {
478 inline void TFNetworkModel::clear_num_classes() {
481 inline ::google::protobuf::int32 TFNetworkModel::num_classes()
const {
485 inline void TFNetworkModel::set_num_classes(::google::protobuf::int32 value) {
487 num_classes_ = value;
492 inline void TFNetworkModel::clear_using_ctc() {
495 inline bool TFNetworkModel::using_ctc()
const {
499 inline void TFNetworkModel::set_using_ctc(
bool value) {
506 inline void TFNetworkModel::clear_image_input() {
507 image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
509 inline const ::std::string& TFNetworkModel::image_input()
const {
511 return image_input_.GetNoArena();
513 inline void TFNetworkModel::set_image_input(const ::std::string& value) {
515 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
519 inline void TFNetworkModel::set_image_input(::std::string&& value) {
521 image_input_.SetNoArena(
522 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
526 inline void TFNetworkModel::set_image_input(
const char* value) {
527 GOOGLE_DCHECK(value != NULL);
529 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
532 inline void TFNetworkModel::set_image_input(
const char* value,
size_t size) {
534 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
535 ::std::string(reinterpret_cast<const char*>(value), size));
538 inline ::std::string* TFNetworkModel::mutable_image_input() {
541 return image_input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
543 inline ::std::string* TFNetworkModel::release_image_input() {
546 return image_input_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
548 inline void TFNetworkModel::set_allocated_image_input(::std::string* image_input) {
549 if (image_input != NULL) {
554 image_input_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_input);
559 inline void TFNetworkModel::clear_image_widths() {
560 image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
562 inline const ::std::string& TFNetworkModel::image_widths()
const {
564 return image_widths_.GetNoArena();
566 inline void TFNetworkModel::set_image_widths(const ::std::string& value) {
568 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
572 inline void TFNetworkModel::set_image_widths(::std::string&& value) {
574 image_widths_.SetNoArena(
575 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
579 inline void TFNetworkModel::set_image_widths(
const char* value) {
580 GOOGLE_DCHECK(value != NULL);
582 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
585 inline void TFNetworkModel::set_image_widths(
const char* value,
size_t size) {
587 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
588 ::std::string(reinterpret_cast<const char*>(value), size));
591 inline ::std::string* TFNetworkModel::mutable_image_widths() {
594 return image_widths_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
596 inline ::std::string* TFNetworkModel::release_image_widths() {
599 return image_widths_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
601 inline void TFNetworkModel::set_allocated_image_widths(::std::string* image_widths) {
602 if (image_widths != NULL) {
607 image_widths_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_widths);
612 inline void TFNetworkModel::clear_image_heights() {
613 image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
615 inline const ::std::string& TFNetworkModel::image_heights()
const {
617 return image_heights_.GetNoArena();
619 inline void TFNetworkModel::set_image_heights(const ::std::string& value) {
621 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
625 inline void TFNetworkModel::set_image_heights(::std::string&& value) {
627 image_heights_.SetNoArena(
628 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
632 inline void TFNetworkModel::set_image_heights(
const char* value) {
633 GOOGLE_DCHECK(value != NULL);
635 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
638 inline void TFNetworkModel::set_image_heights(
const char* value,
size_t size) {
640 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
641 ::std::string(reinterpret_cast<const char*>(value), size));
644 inline ::std::string* TFNetworkModel::mutable_image_heights() {
647 return image_heights_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
649 inline ::std::string* TFNetworkModel::release_image_heights() {
652 return image_heights_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
654 inline void TFNetworkModel::set_allocated_image_heights(::std::string* image_heights) {
655 if (image_heights != NULL) {
660 image_heights_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), image_heights);
665 inline void TFNetworkModel::clear_output_layer() {
666 output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
668 inline const ::std::string& TFNetworkModel::output_layer()
const {
670 return output_layer_.GetNoArena();
672 inline void TFNetworkModel::set_output_layer(const ::std::string& value) {
674 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
678 inline void TFNetworkModel::set_output_layer(::std::string&& value) {
680 output_layer_.SetNoArena(
681 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
685 inline void TFNetworkModel::set_output_layer(
const char* value) {
686 GOOGLE_DCHECK(value != NULL);
688 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
691 inline void TFNetworkModel::set_output_layer(
const char* value,
size_t size) {
693 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
694 ::std::string(reinterpret_cast<const char*>(value), size));
697 inline ::std::string* TFNetworkModel::mutable_output_layer() {
700 return output_layer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
702 inline ::std::string* TFNetworkModel::release_output_layer() {
705 return output_layer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
707 inline void TFNetworkModel::set_allocated_output_layer(::std::string* output_layer) {
708 if (output_layer != NULL) {
713 output_layer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), output_layer);
718 #pragma GCC diagnostic pop 727 #endif // PROTOBUF_INCLUDED_tfnetwork_2eproto static const TFNetworkModel * internal_default_instance()
void Swap(TFNetworkModel *other)
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
friend void swap(TFNetworkModel &a, TFNetworkModel &b)
TFNetworkModel & operator=(const TFNetworkModel &from)
static const ::google::protobuf::uint32 offsets[]
static const ::google::protobuf::internal::ParseTable schema[1]
int GetCachedSize() const final
static const ::google::protobuf::internal::ParseTableField entries[]
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
TFNetworkModel * New() const final
TFNetworkModel * New(::google::protobuf::Arena *arena) const final
class tesseract::TFNetworkModelDefaultTypeInternal _TFNetworkModel_default_instance_
static const ::google::protobuf::internal::SerializationTable serialization_table[]