1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/saved_model.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto
6
7#include <limits>
8#include <string>
9
10#include <google/protobuf/port_def.inc>
11#if PROTOBUF_VERSION < 3009000
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 3009002 < 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/port_undef.inc>
23#include <google/protobuf/io/coded_stream.h>
24#include <google/protobuf/arena.h>
25#include <google/protobuf/arenastring.h>
26#include <google/protobuf/generated_message_table_driven.h>
27#include <google/protobuf/generated_message_util.h>
28#include <google/protobuf/inlined_string_field.h>
29#include <google/protobuf/metadata.h>
30#include <google/protobuf/generated_message_reflection.h>
31#include <google/protobuf/message.h>
32#include <google/protobuf/repeated_field.h> // IWYU pragma: export
33#include <google/protobuf/extension_set.h> // IWYU pragma: export
34#include <google/protobuf/unknown_field_set.h>
35#include "tensorflow/core/protobuf/meta_graph.pb.h"
36// @@protoc_insertion_point(includes)
37#include <google/protobuf/port_def.inc>
38#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto
39PROTOBUF_NAMESPACE_OPEN
40namespace internal {
41class AnyMetadata;
42} // namespace internal
43PROTOBUF_NAMESPACE_CLOSE
44
45// Internal implementation detail -- do not use these members.
46struct TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto {
47 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
48 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
50 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
52 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
54 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
55 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
56};
57extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto;
58namespace tensorflow {
59class SavedModel;
60class SavedModelDefaultTypeInternal;
61extern SavedModelDefaultTypeInternal _SavedModel_default_instance_;
62} // namespace tensorflow
63PROTOBUF_NAMESPACE_OPEN
64template<> ::tensorflow::SavedModel* Arena::CreateMaybeMessage<::tensorflow::SavedModel>(Arena*);
65PROTOBUF_NAMESPACE_CLOSE
66namespace tensorflow {
67
68// ===================================================================
69
70class SavedModel :
71 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.SavedModel) */ {
72 public:
73 SavedModel();
74 virtual ~SavedModel();
75
76 SavedModel(const SavedModel& from);
77 SavedModel(SavedModel&& from) noexcept
78 : SavedModel() {
79 *this = ::std::move(from);
80 }
81
82 inline SavedModel& operator=(const SavedModel& from) {
83 CopyFrom(from);
84 return *this;
85 }
86 inline SavedModel& operator=(SavedModel&& from) noexcept {
87 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
88 if (this != &from) InternalSwap(&from);
89 } else {
90 CopyFrom(from);
91 }
92 return *this;
93 }
94
95 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
96 return GetArenaNoVirtual();
97 }
98 inline void* GetMaybeArenaPointer() const final {
99 return MaybeArenaPtr();
100 }
101 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
102 return GetDescriptor();
103 }
104 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
105 return GetMetadataStatic().descriptor;
106 }
107 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
108 return GetMetadataStatic().reflection;
109 }
110 static const SavedModel& default_instance();
111
112 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
113 static inline const SavedModel* internal_default_instance() {
114 return reinterpret_cast<const SavedModel*>(
115 &_SavedModel_default_instance_);
116 }
117 static constexpr int kIndexInFileMessages =
118 0;
119
120 friend void swap(SavedModel& a, SavedModel& b) {
121 a.Swap(&b);
122 }
123 inline void Swap(SavedModel* other) {
124 if (other == this) return;
125 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
126 InternalSwap(other);
127 } else {
128 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
129 }
130 }
131 void UnsafeArenaSwap(SavedModel* other) {
132 if (other == this) return;
133 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
134 InternalSwap(other);
135 }
136
137 // implements Message ----------------------------------------------
138
139 inline SavedModel* New() const final {
140 return CreateMaybeMessage<SavedModel>(nullptr);
141 }
142
143 SavedModel* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
144 return CreateMaybeMessage<SavedModel>(arena);
145 }
146 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
147 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
148 void CopyFrom(const SavedModel& from);
149 void MergeFrom(const SavedModel& from);
150 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
151 bool IsInitialized() const final;
152
153 size_t ByteSizeLong() const final;
154 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
155 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
156 #else
157 bool MergePartialFromCodedStream(
158 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
159 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
160 void SerializeWithCachedSizes(
161 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
162 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
163 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
164 int GetCachedSize() const final { return _cached_size_.Get(); }
165
166 private:
167 inline void SharedCtor();
168 inline void SharedDtor();
169 void SetCachedSize(int size) const final;
170 void InternalSwap(SavedModel* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "tensorflow.SavedModel";
174 }
175 protected:
176 explicit SavedModel(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177 private:
178 static void ArenaDtor(void* object);
179 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
180 private:
181 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
182 return _internal_metadata_.arena();
183 }
184 inline void* MaybeArenaPtr() const {
185 return _internal_metadata_.raw_arena_ptr();
186 }
187 public:
188
189 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
190 private:
191 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
192 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto);
193 return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto.file_level_metadata[kIndexInFileMessages];
194 }
195
196 public:
197
198 // nested types ----------------------------------------------------
199
200 // accessors -------------------------------------------------------
201
202 enum : int {
203 kMetaGraphsFieldNumber = 2,
204 kSavedModelSchemaVersionFieldNumber = 1,
205 };
206 // repeated .tensorflow.MetaGraphDef meta_graphs = 2;
207 int meta_graphs_size() const;
208 void clear_meta_graphs();
209 ::tensorflow::MetaGraphDef* mutable_meta_graphs(int index);
210 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MetaGraphDef >*
211 mutable_meta_graphs();
212 const ::tensorflow::MetaGraphDef& meta_graphs(int index) const;
213 ::tensorflow::MetaGraphDef* add_meta_graphs();
214 const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MetaGraphDef >&
215 meta_graphs() const;
216
217 // int64 saved_model_schema_version = 1;
218 void clear_saved_model_schema_version();
219 ::PROTOBUF_NAMESPACE_ID::int64 saved_model_schema_version() const;
220 void set_saved_model_schema_version(::PROTOBUF_NAMESPACE_ID::int64 value);
221
222 // @@protoc_insertion_point(class_scope:tensorflow.SavedModel)
223 private:
224 class _Internal;
225
226 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
227 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
228 typedef void InternalArenaConstructable_;
229 typedef void DestructorSkippable_;
230 ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MetaGraphDef > meta_graphs_;
231 ::PROTOBUF_NAMESPACE_ID::int64 saved_model_schema_version_;
232 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
233 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto;
234};
235// ===================================================================
236
237
238// ===================================================================
239
240#ifdef __GNUC__
241 #pragma GCC diagnostic push
242 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
243#endif // __GNUC__
244// SavedModel
245
246// int64 saved_model_schema_version = 1;
247inline void SavedModel::clear_saved_model_schema_version() {
248 saved_model_schema_version_ = PROTOBUF_LONGLONG(0);
249}
250inline ::PROTOBUF_NAMESPACE_ID::int64 SavedModel::saved_model_schema_version() const {
251 // @@protoc_insertion_point(field_get:tensorflow.SavedModel.saved_model_schema_version)
252 return saved_model_schema_version_;
253}
254inline void SavedModel::set_saved_model_schema_version(::PROTOBUF_NAMESPACE_ID::int64 value) {
255
256 saved_model_schema_version_ = value;
257 // @@protoc_insertion_point(field_set:tensorflow.SavedModel.saved_model_schema_version)
258}
259
260// repeated .tensorflow.MetaGraphDef meta_graphs = 2;
261inline int SavedModel::meta_graphs_size() const {
262 return meta_graphs_.size();
263}
264inline ::tensorflow::MetaGraphDef* SavedModel::mutable_meta_graphs(int index) {
265 // @@protoc_insertion_point(field_mutable:tensorflow.SavedModel.meta_graphs)
266 return meta_graphs_.Mutable(index);
267}
268inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MetaGraphDef >*
269SavedModel::mutable_meta_graphs() {
270 // @@protoc_insertion_point(field_mutable_list:tensorflow.SavedModel.meta_graphs)
271 return &meta_graphs_;
272}
273inline const ::tensorflow::MetaGraphDef& SavedModel::meta_graphs(int index) const {
274 // @@protoc_insertion_point(field_get:tensorflow.SavedModel.meta_graphs)
275 return meta_graphs_.Get(index);
276}
277inline ::tensorflow::MetaGraphDef* SavedModel::add_meta_graphs() {
278 // @@protoc_insertion_point(field_add:tensorflow.SavedModel.meta_graphs)
279 return meta_graphs_.Add();
280}
281inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::MetaGraphDef >&
282SavedModel::meta_graphs() const {
283 // @@protoc_insertion_point(field_list:tensorflow.SavedModel.meta_graphs)
284 return meta_graphs_;
285}
286
287#ifdef __GNUC__
288 #pragma GCC diagnostic pop
289#endif // __GNUC__
290
291// @@protoc_insertion_point(namespace_scope)
292
293} // namespace tensorflow
294
295// @@protoc_insertion_point(global_scope)
296
297#include <google/protobuf/port_undef.inc>
298#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fsaved_5fmodel_2eproto
299