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 <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 } // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto {
43 static const ::uint32_t offsets[];
44 };
45 namespace tensorflow {
46 class AllocationDescription;
47 struct AllocationDescriptionDefaultTypeInternal;
48 extern AllocationDescriptionDefaultTypeInternal _AllocationDescription_default_instance_;
49 } // namespace tensorflow
50 PROTOBUF_NAMESPACE_OPEN
51 template<> ::tensorflow::AllocationDescription* Arena::CreateMaybeMessage<::tensorflow::AllocationDescription>(Arena*);
52 PROTOBUF_NAMESPACE_CLOSE
53 namespace tensorflow {
54
55 // ===================================================================
56
57 class AllocationDescription final :
58 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.AllocationDescription) */ {
59 public:
AllocationDescription()60 inline AllocationDescription() : AllocationDescription(nullptr) {}
61 ~AllocationDescription() override;
62 explicit PROTOBUF_CONSTEXPR AllocationDescription(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
63
64 AllocationDescription(const AllocationDescription& from);
AllocationDescription(AllocationDescription && from)65 AllocationDescription(AllocationDescription&& from) noexcept
66 : AllocationDescription() {
67 *this = ::std::move(from);
68 }
69
70 inline AllocationDescription& operator=(const AllocationDescription& from) {
71 if (this == &from) return *this;
72 CopyFrom(from);
73 return *this;
74 }
75 inline AllocationDescription& operator=(AllocationDescription&& from) noexcept {
76 if (this == &from) return *this;
77 if (GetOwningArena() == from.GetOwningArena()
78 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
79 && GetOwningArena() != nullptr
80 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
81 ) {
82 InternalSwap(&from);
83 } else {
84 CopyFrom(from);
85 }
86 return *this;
87 }
88
default_instance()89 static const AllocationDescription& default_instance() {
90 return *internal_default_instance();
91 }
internal_default_instance()92 static inline const AllocationDescription* internal_default_instance() {
93 return reinterpret_cast<const AllocationDescription*>(
94 &_AllocationDescription_default_instance_);
95 }
96 static constexpr int kIndexInFileMessages =
97 0;
98
swap(AllocationDescription & a,AllocationDescription & b)99 friend void swap(AllocationDescription& a, AllocationDescription& b) {
100 a.Swap(&b);
101 }
Swap(AllocationDescription * other)102 inline void Swap(AllocationDescription* other) {
103 if (other == this) return;
104 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
105 if (GetOwningArena() != nullptr &&
106 GetOwningArena() == other->GetOwningArena()) {
107 #else // PROTOBUF_FORCE_COPY_IN_SWAP
108 if (GetOwningArena() == other->GetOwningArena()) {
109 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
110 InternalSwap(other);
111 } else {
112 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
113 }
114 }
115 void UnsafeArenaSwap(AllocationDescription* other) {
116 if (other == this) return;
117 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
118 InternalSwap(other);
119 }
120
121 // implements Message ----------------------------------------------
122
123 AllocationDescription* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
124 return CreateMaybeMessage<AllocationDescription>(arena);
125 }
126 AllocationDescription* New() const {
127 return New(nullptr);
128 }
129 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
130 void CopyFrom(const AllocationDescription& from);
131 void MergeFrom(const AllocationDescription& from);
132 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
133 bool IsInitialized() const final;
134
135 size_t ByteSizeLong() const final;
136 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
137 ::uint8_t* _InternalSerialize(
138 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
139 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
140
141 private:
142 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
143 void SharedDtor();
144 void SetCachedSize(int size) const;
145 void InternalSwap(AllocationDescription* other);
146
147 private:
148 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
149 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
150 return "tensorflow.AllocationDescription";
151 }
152 protected:
153 explicit AllocationDescription(::PROTOBUF_NAMESPACE_ID::Arena* arena,
154 bool is_message_owned = false);
155 public:
156
157 std::string GetTypeName() const final;
158
159 // nested types ----------------------------------------------------
160
161 // accessors -------------------------------------------------------
162
163 enum : int {
164 kAllocatorNameFieldNumber = 3,
165 kRequestedBytesFieldNumber = 1,
166 kAllocatedBytesFieldNumber = 2,
167 kAllocationIdFieldNumber = 4,
168 kPtrFieldNumber = 6,
169 kHasSingleReferenceFieldNumber = 5,
170 };
171 // string allocator_name = 3;
172 void clear_allocator_name();
173 const std::string& allocator_name() const;
174 template <typename ArgT0 = const std::string&, typename... ArgT>
175 void set_allocator_name(ArgT0&& arg0, ArgT... args);
176 std::string* mutable_allocator_name();
177 PROTOBUF_NODISCARD std::string* release_allocator_name();
178 void set_allocated_allocator_name(std::string* allocator_name);
179 private:
180 const std::string& _internal_allocator_name() const;
181 inline PROTOBUF_ALWAYS_INLINE void _internal_set_allocator_name(const std::string& value);
182 std::string* _internal_mutable_allocator_name();
183 public:
184
185 // int64 requested_bytes = 1;
186 void clear_requested_bytes();
187 ::int64_t requested_bytes() const;
188 void set_requested_bytes(::int64_t value);
189 private:
190 ::int64_t _internal_requested_bytes() const;
191 void _internal_set_requested_bytes(::int64_t value);
192 public:
193
194 // int64 allocated_bytes = 2;
195 void clear_allocated_bytes();
196 ::int64_t allocated_bytes() const;
197 void set_allocated_bytes(::int64_t value);
198 private:
199 ::int64_t _internal_allocated_bytes() const;
200 void _internal_set_allocated_bytes(::int64_t value);
201 public:
202
203 // int64 allocation_id = 4;
204 void clear_allocation_id();
205 ::int64_t allocation_id() const;
206 void set_allocation_id(::int64_t value);
207 private:
208 ::int64_t _internal_allocation_id() const;
209 void _internal_set_allocation_id(::int64_t value);
210 public:
211
212 // uint64 ptr = 6;
213 void clear_ptr();
214 ::uint64_t ptr() const;
215 void set_ptr(::uint64_t value);
216 private:
217 ::uint64_t _internal_ptr() const;
218 void _internal_set_ptr(::uint64_t value);
219 public:
220
221 // bool has_single_reference = 5;
222 void clear_has_single_reference();
223 bool has_single_reference() const;
224 void set_has_single_reference(bool value);
225 private:
226 bool _internal_has_single_reference() const;
227 void _internal_set_has_single_reference(bool value);
228 public:
229
230 // @@protoc_insertion_point(class_scope:tensorflow.AllocationDescription)
231 private:
232 class _Internal;
233
234 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
235 typedef void InternalArenaConstructable_;
236 typedef void DestructorSkippable_;
237 struct Impl_ {
238 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr allocator_name_;
239 ::int64_t requested_bytes_;
240 ::int64_t allocated_bytes_;
241 ::int64_t allocation_id_;
242 ::uint64_t ptr_;
243 bool has_single_reference_;
244 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
245 };
246 union { Impl_ _impl_; };
247 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto;
248 };
249 // ===================================================================
250
251
252 // ===================================================================
253
254 #ifdef __GNUC__
255 #pragma GCC diagnostic push
256 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
257 #endif // __GNUC__
258 // AllocationDescription
259
260 // int64 requested_bytes = 1;
clear_requested_bytes()261 inline void AllocationDescription::clear_requested_bytes() {
262 _impl_.requested_bytes_ = ::int64_t{0};
263 }
_internal_requested_bytes()264 inline ::int64_t AllocationDescription::_internal_requested_bytes() const {
265 return _impl_.requested_bytes_;
266 }
requested_bytes()267 inline ::int64_t AllocationDescription::requested_bytes() const {
268 // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.requested_bytes)
269 return _internal_requested_bytes();
270 }
_internal_set_requested_bytes(::int64_t value)271 inline void AllocationDescription::_internal_set_requested_bytes(::int64_t value) {
272
273 _impl_.requested_bytes_ = value;
274 }
set_requested_bytes(::int64_t value)275 inline void AllocationDescription::set_requested_bytes(::int64_t value) {
276 _internal_set_requested_bytes(value);
277 // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.requested_bytes)
278 }
279
280 // int64 allocated_bytes = 2;
clear_allocated_bytes()281 inline void AllocationDescription::clear_allocated_bytes() {
282 _impl_.allocated_bytes_ = ::int64_t{0};
283 }
_internal_allocated_bytes()284 inline ::int64_t AllocationDescription::_internal_allocated_bytes() const {
285 return _impl_.allocated_bytes_;
286 }
allocated_bytes()287 inline ::int64_t AllocationDescription::allocated_bytes() const {
288 // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocated_bytes)
289 return _internal_allocated_bytes();
290 }
_internal_set_allocated_bytes(::int64_t value)291 inline void AllocationDescription::_internal_set_allocated_bytes(::int64_t value) {
292
293 _impl_.allocated_bytes_ = value;
294 }
set_allocated_bytes(::int64_t value)295 inline void AllocationDescription::set_allocated_bytes(::int64_t value) {
296 _internal_set_allocated_bytes(value);
297 // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocated_bytes)
298 }
299
300 // string allocator_name = 3;
clear_allocator_name()301 inline void AllocationDescription::clear_allocator_name() {
302 _impl_.allocator_name_.ClearToEmpty();
303 }
allocator_name()304 inline const std::string& AllocationDescription::allocator_name() const {
305 // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocator_name)
306 return _internal_allocator_name();
307 }
308 template <typename ArgT0, typename... ArgT>
309 inline PROTOBUF_ALWAYS_INLINE
set_allocator_name(ArgT0 && arg0,ArgT...args)310 void AllocationDescription::set_allocator_name(ArgT0&& arg0, ArgT... args) {
311
312 _impl_.allocator_name_.Set(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
313 // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocator_name)
314 }
mutable_allocator_name()315 inline std::string* AllocationDescription::mutable_allocator_name() {
316 std::string* _s = _internal_mutable_allocator_name();
317 // @@protoc_insertion_point(field_mutable:tensorflow.AllocationDescription.allocator_name)
318 return _s;
319 }
_internal_allocator_name()320 inline const std::string& AllocationDescription::_internal_allocator_name() const {
321 return _impl_.allocator_name_.Get();
322 }
_internal_set_allocator_name(const std::string & value)323 inline void AllocationDescription::_internal_set_allocator_name(const std::string& value) {
324
325 _impl_.allocator_name_.Set(value, GetArenaForAllocation());
326 }
_internal_mutable_allocator_name()327 inline std::string* AllocationDescription::_internal_mutable_allocator_name() {
328
329 return _impl_.allocator_name_.Mutable(GetArenaForAllocation());
330 }
release_allocator_name()331 inline std::string* AllocationDescription::release_allocator_name() {
332 // @@protoc_insertion_point(field_release:tensorflow.AllocationDescription.allocator_name)
333 return _impl_.allocator_name_.Release();
334 }
set_allocated_allocator_name(std::string * allocator_name)335 inline void AllocationDescription::set_allocated_allocator_name(std::string* allocator_name) {
336 _impl_.allocator_name_.SetAllocated(allocator_name, GetArenaForAllocation());
337 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
338 if (_impl_.allocator_name_.IsDefault()) {
339 _impl_.allocator_name_.Set("", GetArenaForAllocation());
340 }
341 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
342 // @@protoc_insertion_point(field_set_allocated:tensorflow.AllocationDescription.allocator_name)
343 }
344
345 // int64 allocation_id = 4;
clear_allocation_id()346 inline void AllocationDescription::clear_allocation_id() {
347 _impl_.allocation_id_ = ::int64_t{0};
348 }
_internal_allocation_id()349 inline ::int64_t AllocationDescription::_internal_allocation_id() const {
350 return _impl_.allocation_id_;
351 }
allocation_id()352 inline ::int64_t AllocationDescription::allocation_id() const {
353 // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.allocation_id)
354 return _internal_allocation_id();
355 }
_internal_set_allocation_id(::int64_t value)356 inline void AllocationDescription::_internal_set_allocation_id(::int64_t value) {
357
358 _impl_.allocation_id_ = value;
359 }
set_allocation_id(::int64_t value)360 inline void AllocationDescription::set_allocation_id(::int64_t value) {
361 _internal_set_allocation_id(value);
362 // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.allocation_id)
363 }
364
365 // bool has_single_reference = 5;
clear_has_single_reference()366 inline void AllocationDescription::clear_has_single_reference() {
367 _impl_.has_single_reference_ = false;
368 }
_internal_has_single_reference()369 inline bool AllocationDescription::_internal_has_single_reference() const {
370 return _impl_.has_single_reference_;
371 }
has_single_reference()372 inline bool AllocationDescription::has_single_reference() const {
373 // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.has_single_reference)
374 return _internal_has_single_reference();
375 }
_internal_set_has_single_reference(bool value)376 inline void AllocationDescription::_internal_set_has_single_reference(bool value) {
377
378 _impl_.has_single_reference_ = value;
379 }
set_has_single_reference(bool value)380 inline void AllocationDescription::set_has_single_reference(bool value) {
381 _internal_set_has_single_reference(value);
382 // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.has_single_reference)
383 }
384
385 // uint64 ptr = 6;
clear_ptr()386 inline void AllocationDescription::clear_ptr() {
387 _impl_.ptr_ = ::uint64_t{0u};
388 }
_internal_ptr()389 inline ::uint64_t AllocationDescription::_internal_ptr() const {
390 return _impl_.ptr_;
391 }
ptr()392 inline ::uint64_t AllocationDescription::ptr() const {
393 // @@protoc_insertion_point(field_get:tensorflow.AllocationDescription.ptr)
394 return _internal_ptr();
395 }
_internal_set_ptr(::uint64_t value)396 inline void AllocationDescription::_internal_set_ptr(::uint64_t value) {
397
398 _impl_.ptr_ = value;
399 }
set_ptr(::uint64_t value)400 inline void AllocationDescription::set_ptr(::uint64_t value) {
401 _internal_set_ptr(value);
402 // @@protoc_insertion_point(field_set:tensorflow.AllocationDescription.ptr)
403 }
404
405 #ifdef __GNUC__
406 #pragma GCC diagnostic pop
407 #endif // __GNUC__
408
409 // @@protoc_insertion_point(namespace_scope)
410
411 } // namespace tensorflow
412
413 // @@protoc_insertion_point(global_scope)
414
415 #include <google/protobuf/port_undef.inc>
416 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fallocation_5fdescription_2eproto
417