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[];
51class TFNetworkModelDefaultTypeInternal;
77 *
this = ::std::move(from);
81 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
82 if (
this != &from) InternalSwap(&from);
89 static const ::google::protobuf::Descriptor*
descriptor();
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;
123 ::
google::protobuf::io::CodedInputStream* input) final;
125 ::
google::protobuf::io::CodedOutputStream* output) const final;
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;
153 const ::std::
string&
spec() const;
154 void set_spec(const ::std::
string& value);
156 void set_spec(::std::string&& value);
159 void set_spec(
const char* value,
size_t size);
225 const ::tensorflow::GraphDef& _internal_graph()
const;
227 const ::tensorflow::GraphDef&
graph()
const;
241 ::google::protobuf::int32
depth()
const;
242 void set_depth(::google::protobuf::int32 value);
247 ::google::protobuf::int32
x_size()
const;
248 void set_x_size(::google::protobuf::int32 value);
253 ::google::protobuf::int32
y_size()
const;
254 void set_y_size(::google::protobuf::int32 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"
309inline const ::tensorflow::GraphDef& TFNetworkModel::_internal_graph()
const {
313 const ::tensorflow::GraphDef* p = graph_;
315 return p != NULL ? *p : *
reinterpret_cast<const ::tensorflow::GraphDef*
>(
316 &::tensorflow::_GraphDef_default_instance_);
321 ::tensorflow::GraphDef* temp = graph_;
327 if (graph_ == NULL) {
328 auto* p = CreateMaybeMessage<::tensorflow::GraphDef>(GetArenaNoVirtual());
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);
356 global_step_ = GOOGLE_LONGLONG(0);
364 global_step_ = value;
370 spec_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
374 return spec_.GetNoArena();
378 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
385 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
390 GOOGLE_DCHECK(value != NULL);
392 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
397 spec_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
398 ::std::string(
reinterpret_cast<const char*
>(value), size));
404 return spec_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
409 return spec_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
417 spec_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
spec);
487 num_classes_ = value;
507 image_input_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
511 return image_input_.GetNoArena();
515 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
521 image_input_.SetNoArena(
522 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
527 GOOGLE_DCHECK(value != NULL);
529 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
534 image_input_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
535 ::std::string(
reinterpret_cast<const char*
>(value), size));
541 return image_input_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
546 return image_input_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
554 image_input_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
image_input);
560 image_widths_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
564 return image_widths_.GetNoArena();
568 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
574 image_widths_.SetNoArena(
575 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
580 GOOGLE_DCHECK(value != NULL);
582 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
587 image_widths_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
588 ::std::string(
reinterpret_cast<const char*
>(value), size));
594 return image_widths_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
599 return image_widths_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
607 image_widths_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
image_widths);
613 image_heights_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
617 return image_heights_.GetNoArena();
621 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
627 image_heights_.SetNoArena(
628 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
633 GOOGLE_DCHECK(value != NULL);
635 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
640 image_heights_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
641 ::std::string(
reinterpret_cast<const char*
>(value), size));
647 return image_heights_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
652 return image_heights_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
660 image_heights_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
image_heights);
666 output_layer_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
670 return output_layer_.GetNoArena();
674 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
680 output_layer_.SetNoArena(
681 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
686 GOOGLE_DCHECK(value != NULL);
688 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
693 output_layer_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
694 ::std::string(
reinterpret_cast<const char*
>(value), size));
700 return output_layer_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
705 return output_layer_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
713 output_layer_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
output_layer);
718 #pragma GCC diagnostic pop
class tesseract::TFNetworkModelDefaultTypeInternal _TFNetworkModel_default_instance_
static const ::google::protobuf::internal::ParseTable schema[1]
static const ::google::protobuf::internal::FieldMetadata field_metadata[]
static const ::google::protobuf::uint32 offsets[]
static const ::google::protobuf::internal::ParseTableField entries[]
static const ::google::protobuf::internal::SerializationTable serialization_table[]
static const ::google::protobuf::internal::AuxillaryParseTableField aux[]
static const ::google::protobuf::Descriptor * descriptor()
static const int kYSizeFieldNumber
bool IsInitialized() const final
static const TFNetworkModel * internal_default_instance()
const ::std::string & image_heights() const
void set_spec(const ::std::string &value)
const ::std::string & output_layer() const
void set_x_size(::google::protobuf::int32 value)
static const int kUsingCtcFieldNumber
::google::protobuf::Metadata GetMetadata() const final
static const int kBatchSizeFieldNumber
static void InitAsDefaultInstance()
::std::string * mutable_spec()
::tensorflow::GraphDef * mutable_graph()
void set_image_input(const ::std::string &value)
void set_y_size(::google::protobuf::int32 value)
static const int kOutputLayerFieldNumber
void set_output_layer(const ::std::string &value)
static constexpr int kIndexInFileMessages
static const int kImageHeightsFieldNumber
TFNetworkModel * New(::google::protobuf::Arena *arena) const final
::google::protobuf::uint8 * InternalSerializeWithCachedSizesToArray(bool deterministic, ::google::protobuf::uint8 *target) const final
int GetCachedSize() const final
void Swap(TFNetworkModel *other)
void set_using_ctc(bool value)
void set_allocated_image_heights(::std::string *image_heights)
::std::string * mutable_output_layer()
::std::string * release_image_input()
friend void swap(TFNetworkModel &a, TFNetworkModel &b)
const ::tensorflow::GraphDef & graph() const
void set_allocated_spec(::std::string *spec)
::google::protobuf::int64 global_step() const
void set_image_heights(const ::std::string &value)
::google::protobuf::int32 x_size() const
void clear_output_layer()
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const final
const ::std::string & image_input() const
static const int kXSizeFieldNumber
::std::string * release_spec()
static const int kGraphFieldNumber
static const int kDepthFieldNumber
static const TFNetworkModel & default_instance()
void set_allocated_image_widths(::std::string *image_widths)
void clear_image_widths()
TFNetworkModel * New() const final
void set_num_classes(::google::protobuf::int32 value)
void CopyFrom(const ::google::protobuf::Message &from) final
static const int kNumClassesFieldNumber
::google::protobuf::int32 num_classes() const
::std::string * release_output_layer()
void set_allocated_image_input(::std::string *image_input)
void set_allocated_graph(::tensorflow::GraphDef *graph)
void set_depth(::google::protobuf::int32 value)
void set_allocated_output_layer(::std::string *output_layer)
::google::protobuf::int32 depth() const
static const int kImageWidthsFieldNumber
static const int kGlobalStepFieldNumber
::std::string * release_image_widths()
const ::std::string & image_widths() const
void set_global_step(::google::protobuf::int64 value)
::std::string * mutable_image_widths()
::tensorflow::GraphDef * release_graph()
void MergeFrom(const ::google::protobuf::Message &from) final
::std::string * release_image_heights()
static const int kSpecFieldNumber
TFNetworkModel & operator=(const TFNetworkModel &from)
::std::string * mutable_image_heights()
const ::std::string & spec() const
::google::protobuf::int32 batch_size() const
static const int kImageInputFieldNumber
size_t ByteSizeLong() const final
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input) final
void clear_image_heights()
virtual ~TFNetworkModel()
void set_image_widths(const ::std::string &value)
::google::protobuf::int32 y_size() const
::std::string * mutable_image_input()
void set_batch_size(::google::protobuf::int32 value)