1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/fingerprint.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ffingerprint_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/framework/versions.pb.h" |
36 | // @@protoc_insertion_point(includes) |
37 | #include <google/protobuf/port_def.inc> |
38 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto |
39 | PROTOBUF_NAMESPACE_OPEN |
40 | namespace internal { |
41 | class AnyMetadata; |
42 | } // namespace internal |
43 | PROTOBUF_NAMESPACE_CLOSE |
44 | |
45 | // Internal implementation detail -- do not use these members. |
46 | struct TableStruct_tensorflow_2fcore_2fprotobuf_2ffingerprint_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 | }; |
57 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto; |
58 | namespace tensorflow { |
59 | class FingerprintDef; |
60 | class FingerprintDefDefaultTypeInternal; |
61 | extern FingerprintDefDefaultTypeInternal _FingerprintDef_default_instance_; |
62 | } // namespace tensorflow |
63 | PROTOBUF_NAMESPACE_OPEN |
64 | template<> ::tensorflow::FingerprintDef* Arena::CreateMaybeMessage<::tensorflow::FingerprintDef>(Arena*); |
65 | PROTOBUF_NAMESPACE_CLOSE |
66 | namespace tensorflow { |
67 | |
68 | // =================================================================== |
69 | |
70 | class FingerprintDef : |
71 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.FingerprintDef) */ { |
72 | public: |
73 | FingerprintDef(); |
74 | virtual ~FingerprintDef(); |
75 | |
76 | FingerprintDef(const FingerprintDef& from); |
77 | FingerprintDef(FingerprintDef&& from) noexcept |
78 | : FingerprintDef() { |
79 | *this = ::std::move(from); |
80 | } |
81 | |
82 | inline FingerprintDef& operator=(const FingerprintDef& from) { |
83 | CopyFrom(from); |
84 | return *this; |
85 | } |
86 | inline FingerprintDef& operator=(FingerprintDef&& 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 FingerprintDef& default_instance(); |
111 | |
112 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
113 | static inline const FingerprintDef* internal_default_instance() { |
114 | return reinterpret_cast<const FingerprintDef*>( |
115 | &_FingerprintDef_default_instance_); |
116 | } |
117 | static constexpr int kIndexInFileMessages = |
118 | 0; |
119 | |
120 | friend void swap(FingerprintDef& a, FingerprintDef& b) { |
121 | a.Swap(&b); |
122 | } |
123 | inline void Swap(FingerprintDef* 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(FingerprintDef* other) { |
132 | if (other == this) return; |
133 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
134 | InternalSwap(other); |
135 | } |
136 | |
137 | // implements Message ---------------------------------------------- |
138 | |
139 | inline FingerprintDef* New() const final { |
140 | return CreateMaybeMessage<FingerprintDef>(nullptr); |
141 | } |
142 | |
143 | FingerprintDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
144 | return CreateMaybeMessage<FingerprintDef>(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 FingerprintDef& from); |
149 | void MergeFrom(const FingerprintDef& 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(FingerprintDef* other); |
171 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
172 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
173 | return "tensorflow.FingerprintDef" ; |
174 | } |
175 | protected: |
176 | explicit FingerprintDef(::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_2ffingerprint_2eproto); |
193 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto.file_level_metadata[kIndexInFileMessages]; |
194 | } |
195 | |
196 | public: |
197 | |
198 | // nested types ---------------------------------------------------- |
199 | |
200 | // accessors ------------------------------------------------------- |
201 | |
202 | enum : int { |
203 | kVersionFieldNumber = 6, |
204 | kGraphDefChecksumFieldNumber = 1, |
205 | kGraphDefProgramHashFieldNumber = 2, |
206 | kSignatureDefHashFieldNumber = 3, |
207 | kSavedObjectGraphHashFieldNumber = 4, |
208 | kCheckpointHashFieldNumber = 5, |
209 | }; |
210 | // .tensorflow.VersionDef version = 6; |
211 | bool has_version() const; |
212 | void clear_version(); |
213 | const ::tensorflow::VersionDef& version() const; |
214 | ::tensorflow::VersionDef* release_version(); |
215 | ::tensorflow::VersionDef* mutable_version(); |
216 | void set_allocated_version(::tensorflow::VersionDef* version); |
217 | void unsafe_arena_set_allocated_version( |
218 | ::tensorflow::VersionDef* version); |
219 | ::tensorflow::VersionDef* unsafe_arena_release_version(); |
220 | |
221 | // uint64 graph_def_checksum = 1; |
222 | void clear_graph_def_checksum(); |
223 | ::PROTOBUF_NAMESPACE_ID::uint64 graph_def_checksum() const; |
224 | void set_graph_def_checksum(::PROTOBUF_NAMESPACE_ID::uint64 value); |
225 | |
226 | // uint64 graph_def_program_hash = 2; |
227 | void clear_graph_def_program_hash(); |
228 | ::PROTOBUF_NAMESPACE_ID::uint64 graph_def_program_hash() const; |
229 | void set_graph_def_program_hash(::PROTOBUF_NAMESPACE_ID::uint64 value); |
230 | |
231 | // uint64 signature_def_hash = 3; |
232 | void clear_signature_def_hash(); |
233 | ::PROTOBUF_NAMESPACE_ID::uint64 signature_def_hash() const; |
234 | void set_signature_def_hash(::PROTOBUF_NAMESPACE_ID::uint64 value); |
235 | |
236 | // uint64 saved_object_graph_hash = 4; |
237 | void clear_saved_object_graph_hash(); |
238 | ::PROTOBUF_NAMESPACE_ID::uint64 saved_object_graph_hash() const; |
239 | void set_saved_object_graph_hash(::PROTOBUF_NAMESPACE_ID::uint64 value); |
240 | |
241 | // uint64 checkpoint_hash = 5; |
242 | void clear_checkpoint_hash(); |
243 | ::PROTOBUF_NAMESPACE_ID::uint64 checkpoint_hash() const; |
244 | void set_checkpoint_hash(::PROTOBUF_NAMESPACE_ID::uint64 value); |
245 | |
246 | // @@protoc_insertion_point(class_scope:tensorflow.FingerprintDef) |
247 | private: |
248 | class _Internal; |
249 | |
250 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
251 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
252 | typedef void InternalArenaConstructable_; |
253 | typedef void DestructorSkippable_; |
254 | ::tensorflow::VersionDef* version_; |
255 | ::PROTOBUF_NAMESPACE_ID::uint64 graph_def_checksum_; |
256 | ::PROTOBUF_NAMESPACE_ID::uint64 graph_def_program_hash_; |
257 | ::PROTOBUF_NAMESPACE_ID::uint64 signature_def_hash_; |
258 | ::PROTOBUF_NAMESPACE_ID::uint64 saved_object_graph_hash_; |
259 | ::PROTOBUF_NAMESPACE_ID::uint64 checkpoint_hash_; |
260 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
261 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto; |
262 | }; |
263 | // =================================================================== |
264 | |
265 | |
266 | // =================================================================== |
267 | |
268 | #ifdef __GNUC__ |
269 | #pragma GCC diagnostic push |
270 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
271 | #endif // __GNUC__ |
272 | // FingerprintDef |
273 | |
274 | // uint64 graph_def_checksum = 1; |
275 | inline void FingerprintDef::clear_graph_def_checksum() { |
276 | graph_def_checksum_ = PROTOBUF_ULONGLONG(0); |
277 | } |
278 | inline ::PROTOBUF_NAMESPACE_ID::uint64 FingerprintDef::graph_def_checksum() const { |
279 | // @@protoc_insertion_point(field_get:tensorflow.FingerprintDef.graph_def_checksum) |
280 | return graph_def_checksum_; |
281 | } |
282 | inline void FingerprintDef::set_graph_def_checksum(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
283 | |
284 | graph_def_checksum_ = value; |
285 | // @@protoc_insertion_point(field_set:tensorflow.FingerprintDef.graph_def_checksum) |
286 | } |
287 | |
288 | // uint64 graph_def_program_hash = 2; |
289 | inline void FingerprintDef::clear_graph_def_program_hash() { |
290 | graph_def_program_hash_ = PROTOBUF_ULONGLONG(0); |
291 | } |
292 | inline ::PROTOBUF_NAMESPACE_ID::uint64 FingerprintDef::graph_def_program_hash() const { |
293 | // @@protoc_insertion_point(field_get:tensorflow.FingerprintDef.graph_def_program_hash) |
294 | return graph_def_program_hash_; |
295 | } |
296 | inline void FingerprintDef::set_graph_def_program_hash(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
297 | |
298 | graph_def_program_hash_ = value; |
299 | // @@protoc_insertion_point(field_set:tensorflow.FingerprintDef.graph_def_program_hash) |
300 | } |
301 | |
302 | // uint64 signature_def_hash = 3; |
303 | inline void FingerprintDef::clear_signature_def_hash() { |
304 | signature_def_hash_ = PROTOBUF_ULONGLONG(0); |
305 | } |
306 | inline ::PROTOBUF_NAMESPACE_ID::uint64 FingerprintDef::signature_def_hash() const { |
307 | // @@protoc_insertion_point(field_get:tensorflow.FingerprintDef.signature_def_hash) |
308 | return signature_def_hash_; |
309 | } |
310 | inline void FingerprintDef::set_signature_def_hash(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
311 | |
312 | signature_def_hash_ = value; |
313 | // @@protoc_insertion_point(field_set:tensorflow.FingerprintDef.signature_def_hash) |
314 | } |
315 | |
316 | // uint64 saved_object_graph_hash = 4; |
317 | inline void FingerprintDef::clear_saved_object_graph_hash() { |
318 | saved_object_graph_hash_ = PROTOBUF_ULONGLONG(0); |
319 | } |
320 | inline ::PROTOBUF_NAMESPACE_ID::uint64 FingerprintDef::saved_object_graph_hash() const { |
321 | // @@protoc_insertion_point(field_get:tensorflow.FingerprintDef.saved_object_graph_hash) |
322 | return saved_object_graph_hash_; |
323 | } |
324 | inline void FingerprintDef::set_saved_object_graph_hash(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
325 | |
326 | saved_object_graph_hash_ = value; |
327 | // @@protoc_insertion_point(field_set:tensorflow.FingerprintDef.saved_object_graph_hash) |
328 | } |
329 | |
330 | // uint64 checkpoint_hash = 5; |
331 | inline void FingerprintDef::clear_checkpoint_hash() { |
332 | checkpoint_hash_ = PROTOBUF_ULONGLONG(0); |
333 | } |
334 | inline ::PROTOBUF_NAMESPACE_ID::uint64 FingerprintDef::checkpoint_hash() const { |
335 | // @@protoc_insertion_point(field_get:tensorflow.FingerprintDef.checkpoint_hash) |
336 | return checkpoint_hash_; |
337 | } |
338 | inline void FingerprintDef::set_checkpoint_hash(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
339 | |
340 | checkpoint_hash_ = value; |
341 | // @@protoc_insertion_point(field_set:tensorflow.FingerprintDef.checkpoint_hash) |
342 | } |
343 | |
344 | // .tensorflow.VersionDef version = 6; |
345 | inline bool FingerprintDef::has_version() const { |
346 | return this != internal_default_instance() && version_ != nullptr; |
347 | } |
348 | inline const ::tensorflow::VersionDef& FingerprintDef::version() const { |
349 | const ::tensorflow::VersionDef* p = version_; |
350 | // @@protoc_insertion_point(field_get:tensorflow.FingerprintDef.version) |
351 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::VersionDef*>( |
352 | &::tensorflow::_VersionDef_default_instance_); |
353 | } |
354 | inline ::tensorflow::VersionDef* FingerprintDef::release_version() { |
355 | // @@protoc_insertion_point(field_release:tensorflow.FingerprintDef.version) |
356 | |
357 | ::tensorflow::VersionDef* temp = version_; |
358 | if (GetArenaNoVirtual() != nullptr) { |
359 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
360 | } |
361 | version_ = nullptr; |
362 | return temp; |
363 | } |
364 | inline ::tensorflow::VersionDef* FingerprintDef::unsafe_arena_release_version() { |
365 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.FingerprintDef.version) |
366 | |
367 | ::tensorflow::VersionDef* temp = version_; |
368 | version_ = nullptr; |
369 | return temp; |
370 | } |
371 | inline ::tensorflow::VersionDef* FingerprintDef::mutable_version() { |
372 | |
373 | if (version_ == nullptr) { |
374 | auto* p = CreateMaybeMessage<::tensorflow::VersionDef>(GetArenaNoVirtual()); |
375 | version_ = p; |
376 | } |
377 | // @@protoc_insertion_point(field_mutable:tensorflow.FingerprintDef.version) |
378 | return version_; |
379 | } |
380 | inline void FingerprintDef::set_allocated_version(::tensorflow::VersionDef* version) { |
381 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
382 | if (message_arena == nullptr) { |
383 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(version_); |
384 | } |
385 | if (version) { |
386 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
387 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(version)->GetArena(); |
388 | if (message_arena != submessage_arena) { |
389 | version = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
390 | message_arena, version, submessage_arena); |
391 | } |
392 | |
393 | } else { |
394 | |
395 | } |
396 | version_ = version; |
397 | // @@protoc_insertion_point(field_set_allocated:tensorflow.FingerprintDef.version) |
398 | } |
399 | |
400 | #ifdef __GNUC__ |
401 | #pragma GCC diagnostic pop |
402 | #endif // __GNUC__ |
403 | |
404 | // @@protoc_insertion_point(namespace_scope) |
405 | |
406 | } // namespace tensorflow |
407 | |
408 | // @@protoc_insertion_point(global_scope) |
409 | |
410 | #include <google/protobuf/port_undef.inc> |
411 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2ffingerprint_2eproto |
412 | |