1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/framework/allocation_description.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fallocation_5fdescription_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_2fallocation_5fdescription_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_2fallocation_5fdescription_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_2fallocation_5fdescription_2eproto; |
57 | namespace tensorflow { |
58 | class AllocationDescription; |
59 | class AllocationDescriptionDefaultTypeInternal; |
60 | extern AllocationDescriptionDefaultTypeInternal _AllocationDescription_default_instance_; |
61 | } // namespace tensorflow |
62 | PROTOBUF_NAMESPACE_OPEN |
63 | template<> ::tensorflow::AllocationDescription* Arena::CreateMaybeMessage<::tensorflow::AllocationDescription>(Arena*); |
64 | PROTOBUF_NAMESPACE_CLOSE |
65 | namespace tensorflow { |
66 | |
67 | // =================================================================== |
68 | |
69 | class AllocationDescription : |
70 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.AllocationDescription) */ { |
71 | public: |
72 | AllocationDescription(); |
73 | virtual ~AllocationDescription(); |
74 | |
75 | AllocationDescription(const AllocationDescription& from); |
76 | AllocationDescription(AllocationDescription&& from) noexcept |
77 | : AllocationDescription() { |
78 | *this = ::std::move(from); |
79 | } |
80 | |
81 | inline AllocationDescription& operator=(const AllocationDescription& from) { |
82 | CopyFrom(from); |
83 | return *this; |
84 | } |
85 | inline AllocationDescription& operator=(AllocationDescription&& 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 AllocationDescription& default_instance(); |
110 | |
111 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
112 | static inline const AllocationDescription* internal_default_instance() { |
113 | return reinterpret_cast<const AllocationDescription*>( |
114 | &_AllocationDescription_default_instance_); |
115 | } |
116 | static constexpr int kIndexInFileMessages = |
117 | 0; |
118 | |
119 | friend void swap(AllocationDescription& a, AllocationDescription& b) { |
120 | a.Swap(&b); |
121 | } |
122 | inline void Swap(AllocationDescription* 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(AllocationDescription* other) { |
131 | if (other == this) return; |
132 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
133 | InternalSwap(other); |
134 | } |
135 | |
136 | // implements Message ---------------------------------------------- |
137 | |
138 | inline AllocationDescription* New() const final { |
139 | return CreateMaybeMessage<AllocationDescription>(nullptr); |
140 | } |
141 | |
142 | AllocationDescription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
143 | return CreateMaybeMessage<AllocationDescription>(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 AllocationDescription& from); |
148 | void MergeFrom(const AllocationDescription& 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(AllocationDescription* other); |
170 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
171 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
172 | return "tensorflow.AllocationDescription" ; |
173 | } |
174 | protected: |
175 | explicit AllocationDescription(::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_2fallocation_5fdescription_2eproto); |
192 | return ::descriptor_table_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto.file_level_metadata[kIndexInFileMessages]; |
193 | } |
194 | |
195 | public: |
196 | |
197 | // nested types ---------------------------------------------------- |
198 | |
199 | // accessors ------------------------------------------------------- |
200 | |
201 | enum : int { |
202 | kAllocatorNameFieldNumber = 3, |
203 | kRequestedBytesFieldNumber = 1, |
204 | kAllocatedBytesFieldNumber = 2, |
205 | kAllocationIdFieldNumber = 4, |
206 | kPtrFieldNumber = 6, |
207 | kHasSingleReferenceFieldNumber = 5, |
208 | }; |
209 | // string allocator_name = 3; |
210 | void clear_allocator_name(); |
211 | const std::string& allocator_name() const; |
212 | void set_allocator_name(const std::string& value); |
213 | void set_allocator_name(std::string&& value); |
214 | void set_allocator_name(const char* value); |
215 | void set_allocator_name(const char* value, size_t size); |
216 | std::string* mutable_allocator_name(); |
217 | std::string* release_allocator_name(); |
218 | void set_allocated_allocator_name(std::string* allocator_name); |
219 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
220 | " string fields are deprecated and will be removed in a" |
221 | " future release." ) |
222 | std::string* unsafe_arena_release_allocator_name(); |
223 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
224 | " string fields are deprecated and will be removed in a" |
225 | " future release." ) |
226 | void unsafe_arena_set_allocated_allocator_name( |
227 | std::string* allocator_name); |
228 | |
229 | // int64 requested_bytes = 1; |
230 | void clear_requested_bytes(); |
231 | ::PROTOBUF_NAMESPACE_ID::int64 requested_bytes() const; |
232 | void set_requested_bytes(::PROTOBUF_NAMESPACE_ID::int64 value); |
233 | |
234 | // int64 allocated_bytes = 2; |
235 | void clear_allocated_bytes(); |
236 | ::PROTOBUF_NAMESPACE_ID::int64 allocated_bytes() const; |
237 | void set_allocated_bytes(::PROTOBUF_NAMESPACE_ID::int64 value); |
238 | |
239 | // int64 allocation_id = 4; |
240 | void clear_allocation_id(); |
241 | ::PROTOBUF_NAMESPACE_ID::int64 allocation_id() const; |
242 | void set_allocation_id(::PROTOBUF_NAMESPACE_ID::int64 value); |
243 | |
244 | // uint64 ptr = 6; |
245 | void clear_ptr(); |
246 | ::PROTOBUF_NAMESPACE_ID::uint64 ptr() const; |
247 | void set_ptr(::PROTOBUF_NAMESPACE_ID::uint64 value); |
248 | |
249 | // bool has_single_reference = 5; |
250 | void clear_has_single_reference(); |
251 | bool has_single_reference() const; |
252 | void set_has_single_reference(bool value); |
253 | |
254 | // @@protoc_insertion_point(class_scope:tensorflow.AllocationDescription) |
255 | private: |
256 | class _Internal; |
257 | |
258 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
259 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
260 | typedef void InternalArenaConstructable_; |
261 | typedef void DestructorSkippable_; |
262 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr allocator_name_; |
263 | ::PROTOBUF_NAMESPACE_ID::int64 requested_bytes_; |
264 | ::PROTOBUF_NAMESPACE_ID::int64 allocated_bytes_; |
265 | ::PROTOBUF_NAMESPACE_ID::int64 allocation_id_; |
266 | ::PROTOBUF_NAMESPACE_ID::uint64 ptr_; |
267 | bool has_single_reference_; |
268 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
269 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto; |
270 | }; |
271 | // =================================================================== |
272 | |
273 | |
274 | // =================================================================== |
275 | |
276 | #ifdef __GNUC__ |
277 | #pragma GCC diagnostic push |
278 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
279 | #endif // __GNUC__ |
280 | // AllocationDescription |
281 | |
282 | // int64 requested_bytes = 1; |
283 | inline void AllocationDescription::clear_requested_bytes() { |
284 | requested_bytes_ = PROTOBUF_LONGLONG(0); |
285 | } |
286 | inline ::PROTOBUF_NAMESPACE_ID::int64 AllocationDescription::requested_bytes() const { |
287 | // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.requested_bytes) |
288 | return requested_bytes_; |
289 | } |
290 | inline void AllocationDescription::set_requested_bytes(::PROTOBUF_NAMESPACE_ID::int64 value) { |
291 | |
292 | requested_bytes_ = value; |
293 | // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.requested_bytes) |
294 | } |
295 | |
296 | // int64 allocated_bytes = 2; |
297 | inline void AllocationDescription::clear_allocated_bytes() { |
298 | allocated_bytes_ = PROTOBUF_LONGLONG(0); |
299 | } |
300 | inline ::PROTOBUF_NAMESPACE_ID::int64 AllocationDescription::allocated_bytes() const { |
301 | // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocated_bytes) |
302 | return allocated_bytes_; |
303 | } |
304 | inline void AllocationDescription::set_allocated_bytes(::PROTOBUF_NAMESPACE_ID::int64 value) { |
305 | |
306 | allocated_bytes_ = value; |
307 | // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocated_bytes) |
308 | } |
309 | |
310 | // string allocator_name = 3; |
311 | inline void AllocationDescription::clear_allocator_name() { |
312 | allocator_name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
313 | } |
314 | inline const std::string& AllocationDescription::allocator_name() const { |
315 | // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocator_name) |
316 | return allocator_name_.Get(); |
317 | } |
318 | inline void AllocationDescription::set_allocator_name(const std::string& value) { |
319 | |
320 | allocator_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
321 | // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocator_name) |
322 | } |
323 | inline void AllocationDescription::set_allocator_name(std::string&& value) { |
324 | |
325 | allocator_name_.Set( |
326 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
327 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.AllocationDescription.allocator_name) |
328 | } |
329 | inline void AllocationDescription::set_allocator_name(const char* value) { |
330 | GOOGLE_DCHECK(value != nullptr); |
331 | |
332 | allocator_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
333 | GetArenaNoVirtual()); |
334 | // @@protoc_insertion_point(field_set_char:tensorflow.AllocationDescription.allocator_name) |
335 | } |
336 | inline void AllocationDescription::set_allocator_name(const char* value, |
337 | size_t size) { |
338 | |
339 | allocator_name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
340 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
341 | // @@protoc_insertion_point(field_set_pointer:tensorflow.AllocationDescription.allocator_name) |
342 | } |
343 | inline std::string* AllocationDescription::mutable_allocator_name() { |
344 | |
345 | // @@protoc_insertion_point(field_mutable:tensorflow.AllocationDescription.allocator_name) |
346 | return allocator_name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
347 | } |
348 | inline std::string* AllocationDescription::release_allocator_name() { |
349 | // @@protoc_insertion_point(field_release:tensorflow.AllocationDescription.allocator_name) |
350 | |
351 | return allocator_name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
352 | } |
353 | inline void AllocationDescription::set_allocated_allocator_name(std::string* allocator_name) { |
354 | if (allocator_name != nullptr) { |
355 | |
356 | } else { |
357 | |
358 | } |
359 | allocator_name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), allocator_name, |
360 | GetArenaNoVirtual()); |
361 | // @@protoc_insertion_point(field_set_allocated:tensorflow.AllocationDescription.allocator_name) |
362 | } |
363 | inline std::string* AllocationDescription::unsafe_arena_release_allocator_name() { |
364 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.AllocationDescription.allocator_name) |
365 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
366 | |
367 | return allocator_name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
368 | GetArenaNoVirtual()); |
369 | } |
370 | inline void AllocationDescription::unsafe_arena_set_allocated_allocator_name( |
371 | std::string* allocator_name) { |
372 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
373 | if (allocator_name != nullptr) { |
374 | |
375 | } else { |
376 | |
377 | } |
378 | allocator_name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
379 | allocator_name, GetArenaNoVirtual()); |
380 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.AllocationDescription.allocator_name) |
381 | } |
382 | |
383 | // int64 allocation_id = 4; |
384 | inline void AllocationDescription::clear_allocation_id() { |
385 | allocation_id_ = PROTOBUF_LONGLONG(0); |
386 | } |
387 | inline ::PROTOBUF_NAMESPACE_ID::int64 AllocationDescription::allocation_id() const { |
388 | // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocation_id) |
389 | return allocation_id_; |
390 | } |
391 | inline void AllocationDescription::set_allocation_id(::PROTOBUF_NAMESPACE_ID::int64 value) { |
392 | |
393 | allocation_id_ = value; |
394 | // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocation_id) |
395 | } |
396 | |
397 | // bool has_single_reference = 5; |
398 | inline void AllocationDescription::clear_has_single_reference() { |
399 | has_single_reference_ = false; |
400 | } |
401 | inline bool AllocationDescription::has_single_reference() const { |
402 | // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.has_single_reference) |
403 | return has_single_reference_; |
404 | } |
405 | inline void AllocationDescription::set_has_single_reference(bool value) { |
406 | |
407 | has_single_reference_ = value; |
408 | // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.has_single_reference) |
409 | } |
410 | |
411 | // uint64 ptr = 6; |
412 | inline void AllocationDescription::clear_ptr() { |
413 | ptr_ = PROTOBUF_ULONGLONG(0); |
414 | } |
415 | inline ::PROTOBUF_NAMESPACE_ID::uint64 AllocationDescription::ptr() const { |
416 | // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.ptr) |
417 | return ptr_; |
418 | } |
419 | inline void AllocationDescription::set_ptr(::PROTOBUF_NAMESPACE_ID::uint64 value) { |
420 | |
421 | ptr_ = value; |
422 | // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.ptr) |
423 | } |
424 | |
425 | #ifdef __GNUC__ |
426 | #pragma GCC diagnostic pop |
427 | #endif // __GNUC__ |
428 | |
429 | // @@protoc_insertion_point(namespace_scope) |
430 | |
431 | } // namespace tensorflow |
432 | |
433 | // @@protoc_insertion_point(global_scope) |
434 | |
435 | #include <google/protobuf/port_undef.inc> |
436 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto |
437 | |