1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
---|---|
2 | // source: tensorflow/core/framework/versions.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fversions_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fversions_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 | // @@protoc_insertion_point(includes) |
36 | #include <google/protobuf/port_def.inc> |
37 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fversions_2eproto |
38 | PROTOBUF_NAMESPACE_OPEN |
39 | namespace internal { |
40 | class AnyMetadata; |
41 | } // namespace internal |
42 | PROTOBUF_NAMESPACE_CLOSE |
43 | |
44 | // Internal implementation detail -- do not use these members. |
45 | struct TableStruct_tensorflow_2fcore_2fframework_2fversions_2eproto { |
46 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
47 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
48 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
49 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
50 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
55 | }; |
56 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto; |
57 | namespace tensorflow { |
58 | class VersionDef; |
59 | class VersionDefDefaultTypeInternal; |
60 | extern VersionDefDefaultTypeInternal _VersionDef_default_instance_; |
61 | } // namespace tensorflow |
62 | PROTOBUF_NAMESPACE_OPEN |
63 | template<> ::tensorflow::VersionDef* Arena::CreateMaybeMessage<::tensorflow::VersionDef>(Arena*); |
64 | PROTOBUF_NAMESPACE_CLOSE |
65 | namespace tensorflow { |
66 | |
67 | // =================================================================== |
68 | |
69 | class VersionDef : |
70 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.VersionDef) */ { |
71 | public: |
72 | VersionDef(); |
73 | virtual ~VersionDef(); |
74 | |
75 | VersionDef(const VersionDef& from); |
76 | VersionDef(VersionDef&& from) noexcept |
77 | : VersionDef() { |
78 | *this = ::std::move(from); |
79 | } |
80 | |
81 | inline VersionDef& operator=(const VersionDef& from) { |
82 | CopyFrom(from); |
83 | return *this; |
84 | } |
85 | inline VersionDef& operator=(VersionDef&& from) noexcept { |
86 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
87 | if (this != &from) InternalSwap(&from); |
88 | } else { |
89 | CopyFrom(from); |
90 | } |
91 | return *this; |
92 | } |
93 | |
94 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
95 | return GetArenaNoVirtual(); |
96 | } |
97 | inline void* GetMaybeArenaPointer() const final { |
98 | return MaybeArenaPtr(); |
99 | } |
100 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
101 | return GetDescriptor(); |
102 | } |
103 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
104 | return GetMetadataStatic().descriptor; |
105 | } |
106 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
107 | return GetMetadataStatic().reflection; |
108 | } |
109 | static const VersionDef& default_instance(); |
110 | |
111 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
112 | static inline const VersionDef* internal_default_instance() { |
113 | return reinterpret_cast<const VersionDef*>( |
114 | &_VersionDef_default_instance_); |
115 | } |
116 | static constexpr int kIndexInFileMessages = |
117 | 0; |
118 | |
119 | friend void swap(VersionDef& a, VersionDef& b) { |
120 | a.Swap(&b); |
121 | } |
122 | inline void Swap(VersionDef* other) { |
123 | if (other == this) return; |
124 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
125 | InternalSwap(other); |
126 | } else { |
127 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
128 | } |
129 | } |
130 | void UnsafeArenaSwap(VersionDef* other) { |
131 | if (other == this) return; |
132 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
133 | InternalSwap(other); |
134 | } |
135 | |
136 | // implements Message ---------------------------------------------- |
137 | |
138 | inline VersionDef* New() const final { |
139 | return CreateMaybeMessage<VersionDef>(nullptr); |
140 | } |
141 | |
142 | VersionDef* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
143 | return CreateMaybeMessage<VersionDef>(arena); |
144 | } |
145 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
146 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
147 | void CopyFrom(const VersionDef& from); |
148 | void MergeFrom(const VersionDef& from); |
149 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
150 | bool IsInitialized() const final; |
151 | |
152 | size_t ByteSizeLong() const final; |
153 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
154 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
155 | #else |
156 | bool MergePartialFromCodedStream( |
157 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
158 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
159 | void SerializeWithCachedSizes( |
160 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
161 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
162 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
163 | int GetCachedSize() const final { return _cached_size_.Get(); } |
164 | |
165 | private: |
166 | inline void SharedCtor(); |
167 | inline void SharedDtor(); |
168 | void SetCachedSize(int size) const final; |
169 | void InternalSwap(VersionDef* other); |
170 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
171 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
172 | return "tensorflow.VersionDef"; |
173 | } |
174 | protected: |
175 | explicit VersionDef(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
176 | private: |
177 | static void ArenaDtor(void* object); |
178 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
179 | private: |
180 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
181 | return _internal_metadata_.arena(); |
182 | } |
183 | inline void* MaybeArenaPtr() const { |
184 | return _internal_metadata_.raw_arena_ptr(); |
185 | } |
186 | public: |
187 | |
188 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
189 | private: |
190 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
191 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto); |
192 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fversions_2eproto.file_level_metadata[kIndexInFileMessages]; |
193 | } |
194 | |
195 | public: |
196 | |
197 | // nested types ---------------------------------------------------- |
198 | |
199 | // accessors ------------------------------------------------------- |
200 | |
201 | enum : int { |
202 | kBadConsumersFieldNumber = 3, |
203 | kProducerFieldNumber = 1, |
204 | kMinConsumerFieldNumber = 2, |
205 | }; |
206 | // repeated int32 bad_consumers = 3; |
207 | int bad_consumers_size() const; |
208 | void clear_bad_consumers(); |
209 | ::PROTOBUF_NAMESPACE_ID::int32 bad_consumers(int index) const; |
210 | void set_bad_consumers(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); |
211 | void add_bad_consumers(::PROTOBUF_NAMESPACE_ID::int32 value); |
212 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
213 | bad_consumers() const; |
214 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
215 | mutable_bad_consumers(); |
216 | |
217 | // int32 producer = 1; |
218 | void clear_producer(); |
219 | ::PROTOBUF_NAMESPACE_ID::int32 producer() const; |
220 | void set_producer(::PROTOBUF_NAMESPACE_ID::int32 value); |
221 | |
222 | // int32 min_consumer = 2; |
223 | void clear_min_consumer(); |
224 | ::PROTOBUF_NAMESPACE_ID::int32 min_consumer() const; |
225 | void set_min_consumer(::PROTOBUF_NAMESPACE_ID::int32 value); |
226 | |
227 | // @@protoc_insertion_point(class_scope:tensorflow.VersionDef) |
228 | private: |
229 | class _Internal; |
230 | |
231 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
232 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
233 | typedef void InternalArenaConstructable_; |
234 | typedef void DestructorSkippable_; |
235 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > bad_consumers_; |
236 | mutable std::atomic<int> _bad_consumers_cached_byte_size_; |
237 | ::PROTOBUF_NAMESPACE_ID::int32 producer_; |
238 | ::PROTOBUF_NAMESPACE_ID::int32 min_consumer_; |
239 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
240 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fversions_2eproto; |
241 | }; |
242 | // =================================================================== |
243 | |
244 | |
245 | // =================================================================== |
246 | |
247 | #ifdef __GNUC__ |
248 | #pragma GCC diagnostic push |
249 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
250 | #endif // __GNUC__ |
251 | // VersionDef |
252 | |
253 | // int32 producer = 1; |
254 | inline void VersionDef::clear_producer() { |
255 | producer_ = 0; |
256 | } |
257 | inline ::PROTOBUF_NAMESPACE_ID::int32 VersionDef::producer() const { |
258 | // @@protoc_insertion_point(field_get:tensorflow.VersionDef.producer) |
259 | return producer_; |
260 | } |
261 | inline void VersionDef::set_producer(::PROTOBUF_NAMESPACE_ID::int32 value) { |
262 | |
263 | producer_ = value; |
264 | // @@protoc_insertion_point(field_set:tensorflow.VersionDef.producer) |
265 | } |
266 | |
267 | // int32 min_consumer = 2; |
268 | inline void VersionDef::clear_min_consumer() { |
269 | min_consumer_ = 0; |
270 | } |
271 | inline ::PROTOBUF_NAMESPACE_ID::int32 VersionDef::min_consumer() const { |
272 | // @@protoc_insertion_point(field_get:tensorflow.VersionDef.min_consumer) |
273 | return min_consumer_; |
274 | } |
275 | inline void VersionDef::set_min_consumer(::PROTOBUF_NAMESPACE_ID::int32 value) { |
276 | |
277 | min_consumer_ = value; |
278 | // @@protoc_insertion_point(field_set:tensorflow.VersionDef.min_consumer) |
279 | } |
280 | |
281 | // repeated int32 bad_consumers = 3; |
282 | inline int VersionDef::bad_consumers_size() const { |
283 | return bad_consumers_.size(); |
284 | } |
285 | inline void VersionDef::clear_bad_consumers() { |
286 | bad_consumers_.Clear(); |
287 | } |
288 | inline ::PROTOBUF_NAMESPACE_ID::int32 VersionDef::bad_consumers(int index) const { |
289 | // @@protoc_insertion_point(field_get:tensorflow.VersionDef.bad_consumers) |
290 | return bad_consumers_.Get(index); |
291 | } |
292 | inline void VersionDef::set_bad_consumers(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { |
293 | bad_consumers_.Set(index, value); |
294 | // @@protoc_insertion_point(field_set:tensorflow.VersionDef.bad_consumers) |
295 | } |
296 | inline void VersionDef::add_bad_consumers(::PROTOBUF_NAMESPACE_ID::int32 value) { |
297 | bad_consumers_.Add(value); |
298 | // @@protoc_insertion_point(field_add:tensorflow.VersionDef.bad_consumers) |
299 | } |
300 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
301 | VersionDef::bad_consumers() const { |
302 | // @@protoc_insertion_point(field_list:tensorflow.VersionDef.bad_consumers) |
303 | return bad_consumers_; |
304 | } |
305 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
306 | VersionDef::mutable_bad_consumers() { |
307 | // @@protoc_insertion_point(field_mutable_list:tensorflow.VersionDef.bad_consumers) |
308 | return &bad_consumers_; |
309 | } |
310 | |
311 | #ifdef __GNUC__ |
312 | #pragma GCC diagnostic pop |
313 | #endif // __GNUC__ |
314 | |
315 | // @@protoc_insertion_point(namespace_scope) |
316 | |
317 | } // namespace tensorflow |
318 | |
319 | // @@protoc_insertion_point(global_scope) |
320 | |
321 | #include <google/protobuf/port_undef.inc> |
322 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fversions_2eproto |
323 |