1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/device_filters.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_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/map.h> // IWYU pragma: export |
35 | #include <google/protobuf/map_entry.h> |
36 | #include <google/protobuf/map_field_inl.h> |
37 | #include <google/protobuf/unknown_field_set.h> |
38 | // @@protoc_insertion_point(includes) |
39 | #include <google/protobuf/port_def.inc> |
40 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto |
41 | PROTOBUF_NAMESPACE_OPEN |
42 | namespace internal { |
43 | class AnyMetadata; |
44 | } // namespace internal |
45 | PROTOBUF_NAMESPACE_CLOSE |
46 | |
47 | // Internal implementation detail -- do not use these members. |
48 | struct TableStruct_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto { |
49 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[] |
50 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
51 | static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[] |
52 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[4] |
54 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
55 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
56 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
57 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
58 | }; |
59 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto; |
60 | namespace tensorflow { |
61 | class ClusterDeviceFilters; |
62 | class ClusterDeviceFiltersDefaultTypeInternal; |
63 | extern ClusterDeviceFiltersDefaultTypeInternal _ClusterDeviceFilters_default_instance_; |
64 | class JobDeviceFilters; |
65 | class JobDeviceFiltersDefaultTypeInternal; |
66 | extern JobDeviceFiltersDefaultTypeInternal _JobDeviceFilters_default_instance_; |
67 | class JobDeviceFilters_TasksEntry_DoNotUse; |
68 | class JobDeviceFilters_TasksEntry_DoNotUseDefaultTypeInternal; |
69 | extern JobDeviceFilters_TasksEntry_DoNotUseDefaultTypeInternal _JobDeviceFilters_TasksEntry_DoNotUse_default_instance_; |
70 | class TaskDeviceFilters; |
71 | class TaskDeviceFiltersDefaultTypeInternal; |
72 | extern TaskDeviceFiltersDefaultTypeInternal _TaskDeviceFilters_default_instance_; |
73 | } // namespace tensorflow |
74 | PROTOBUF_NAMESPACE_OPEN |
75 | template<> ::tensorflow::ClusterDeviceFilters* Arena::CreateMaybeMessage<::tensorflow::ClusterDeviceFilters>(Arena*); |
76 | template<> ::tensorflow::JobDeviceFilters* Arena::CreateMaybeMessage<::tensorflow::JobDeviceFilters>(Arena*); |
77 | template<> ::tensorflow::JobDeviceFilters_TasksEntry_DoNotUse* Arena::CreateMaybeMessage<::tensorflow::JobDeviceFilters_TasksEntry_DoNotUse>(Arena*); |
78 | template<> ::tensorflow::TaskDeviceFilters* Arena::CreateMaybeMessage<::tensorflow::TaskDeviceFilters>(Arena*); |
79 | PROTOBUF_NAMESPACE_CLOSE |
80 | namespace tensorflow { |
81 | |
82 | // =================================================================== |
83 | |
84 | class TaskDeviceFilters : |
85 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.TaskDeviceFilters) */ { |
86 | public: |
87 | TaskDeviceFilters(); |
88 | virtual ~TaskDeviceFilters(); |
89 | |
90 | TaskDeviceFilters(const TaskDeviceFilters& from); |
91 | TaskDeviceFilters(TaskDeviceFilters&& from) noexcept |
92 | : TaskDeviceFilters() { |
93 | *this = ::std::move(from); |
94 | } |
95 | |
96 | inline TaskDeviceFilters& operator=(const TaskDeviceFilters& from) { |
97 | CopyFrom(from); |
98 | return *this; |
99 | } |
100 | inline TaskDeviceFilters& operator=(TaskDeviceFilters&& from) noexcept { |
101 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
102 | if (this != &from) InternalSwap(&from); |
103 | } else { |
104 | CopyFrom(from); |
105 | } |
106 | return *this; |
107 | } |
108 | |
109 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
110 | return GetArenaNoVirtual(); |
111 | } |
112 | inline void* GetMaybeArenaPointer() const final { |
113 | return MaybeArenaPtr(); |
114 | } |
115 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
116 | return GetDescriptor(); |
117 | } |
118 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
119 | return GetMetadataStatic().descriptor; |
120 | } |
121 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
122 | return GetMetadataStatic().reflection; |
123 | } |
124 | static const TaskDeviceFilters& default_instance(); |
125 | |
126 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
127 | static inline const TaskDeviceFilters* internal_default_instance() { |
128 | return reinterpret_cast<const TaskDeviceFilters*>( |
129 | &_TaskDeviceFilters_default_instance_); |
130 | } |
131 | static constexpr int kIndexInFileMessages = |
132 | 0; |
133 | |
134 | friend void swap(TaskDeviceFilters& a, TaskDeviceFilters& b) { |
135 | a.Swap(&b); |
136 | } |
137 | inline void Swap(TaskDeviceFilters* other) { |
138 | if (other == this) return; |
139 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
140 | InternalSwap(other); |
141 | } else { |
142 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
143 | } |
144 | } |
145 | void UnsafeArenaSwap(TaskDeviceFilters* other) { |
146 | if (other == this) return; |
147 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
148 | InternalSwap(other); |
149 | } |
150 | |
151 | // implements Message ---------------------------------------------- |
152 | |
153 | inline TaskDeviceFilters* New() const final { |
154 | return CreateMaybeMessage<TaskDeviceFilters>(nullptr); |
155 | } |
156 | |
157 | TaskDeviceFilters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
158 | return CreateMaybeMessage<TaskDeviceFilters>(arena); |
159 | } |
160 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
161 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
162 | void CopyFrom(const TaskDeviceFilters& from); |
163 | void MergeFrom(const TaskDeviceFilters& from); |
164 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
165 | bool IsInitialized() const final; |
166 | |
167 | size_t ByteSizeLong() const final; |
168 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
169 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
170 | #else |
171 | bool MergePartialFromCodedStream( |
172 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
173 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
174 | void SerializeWithCachedSizes( |
175 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
176 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
177 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
178 | int GetCachedSize() const final { return _cached_size_.Get(); } |
179 | |
180 | private: |
181 | inline void SharedCtor(); |
182 | inline void SharedDtor(); |
183 | void SetCachedSize(int size) const final; |
184 | void InternalSwap(TaskDeviceFilters* other); |
185 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
186 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
187 | return "tensorflow.TaskDeviceFilters" ; |
188 | } |
189 | protected: |
190 | explicit TaskDeviceFilters(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
191 | private: |
192 | static void ArenaDtor(void* object); |
193 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
194 | private: |
195 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
196 | return _internal_metadata_.arena(); |
197 | } |
198 | inline void* MaybeArenaPtr() const { |
199 | return _internal_metadata_.raw_arena_ptr(); |
200 | } |
201 | public: |
202 | |
203 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
204 | private: |
205 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
206 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto); |
207 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto.file_level_metadata[kIndexInFileMessages]; |
208 | } |
209 | |
210 | public: |
211 | |
212 | // nested types ---------------------------------------------------- |
213 | |
214 | // accessors ------------------------------------------------------- |
215 | |
216 | enum : int { |
217 | kDeviceFiltersFieldNumber = 1, |
218 | }; |
219 | // repeated string device_filters = 1; |
220 | int device_filters_size() const; |
221 | void clear_device_filters(); |
222 | const std::string& device_filters(int index) const; |
223 | std::string* mutable_device_filters(int index); |
224 | void set_device_filters(int index, const std::string& value); |
225 | void set_device_filters(int index, std::string&& value); |
226 | void set_device_filters(int index, const char* value); |
227 | void set_device_filters(int index, const char* value, size_t size); |
228 | std::string* add_device_filters(); |
229 | void add_device_filters(const std::string& value); |
230 | void add_device_filters(std::string&& value); |
231 | void add_device_filters(const char* value); |
232 | void add_device_filters(const char* value, size_t size); |
233 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& device_filters() const; |
234 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_device_filters(); |
235 | |
236 | // @@protoc_insertion_point(class_scope:tensorflow.TaskDeviceFilters) |
237 | private: |
238 | class _Internal; |
239 | |
240 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
241 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
242 | typedef void InternalArenaConstructable_; |
243 | typedef void DestructorSkippable_; |
244 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> device_filters_; |
245 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
246 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto; |
247 | }; |
248 | // ------------------------------------------------------------------- |
249 | |
250 | class JobDeviceFilters_TasksEntry_DoNotUse : public ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<JobDeviceFilters_TasksEntry_DoNotUse, |
251 | ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TaskDeviceFilters, |
252 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32, |
253 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
254 | 0 > { |
255 | public: |
256 | typedef ::PROTOBUF_NAMESPACE_ID::internal::MapEntry<JobDeviceFilters_TasksEntry_DoNotUse, |
257 | ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TaskDeviceFilters, |
258 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32, |
259 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
260 | 0 > SuperType; |
261 | JobDeviceFilters_TasksEntry_DoNotUse(); |
262 | JobDeviceFilters_TasksEntry_DoNotUse(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
263 | void MergeFrom(const JobDeviceFilters_TasksEntry_DoNotUse& other); |
264 | static const JobDeviceFilters_TasksEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const JobDeviceFilters_TasksEntry_DoNotUse*>(&_JobDeviceFilters_TasksEntry_DoNotUse_default_instance_); } |
265 | static bool ValidateKey(void*) { return true; } |
266 | static bool ValidateValue(void*) { return true; } |
267 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& other) final; |
268 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
269 | private: |
270 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
271 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto); |
272 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto.file_level_metadata[1]; |
273 | } |
274 | |
275 | public: |
276 | }; |
277 | |
278 | // ------------------------------------------------------------------- |
279 | |
280 | class JobDeviceFilters : |
281 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.JobDeviceFilters) */ { |
282 | public: |
283 | JobDeviceFilters(); |
284 | virtual ~JobDeviceFilters(); |
285 | |
286 | JobDeviceFilters(const JobDeviceFilters& from); |
287 | JobDeviceFilters(JobDeviceFilters&& from) noexcept |
288 | : JobDeviceFilters() { |
289 | *this = ::std::move(from); |
290 | } |
291 | |
292 | inline JobDeviceFilters& operator=(const JobDeviceFilters& from) { |
293 | CopyFrom(from); |
294 | return *this; |
295 | } |
296 | inline JobDeviceFilters& operator=(JobDeviceFilters&& from) noexcept { |
297 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
298 | if (this != &from) InternalSwap(&from); |
299 | } else { |
300 | CopyFrom(from); |
301 | } |
302 | return *this; |
303 | } |
304 | |
305 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
306 | return GetArenaNoVirtual(); |
307 | } |
308 | inline void* GetMaybeArenaPointer() const final { |
309 | return MaybeArenaPtr(); |
310 | } |
311 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
312 | return GetDescriptor(); |
313 | } |
314 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
315 | return GetMetadataStatic().descriptor; |
316 | } |
317 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
318 | return GetMetadataStatic().reflection; |
319 | } |
320 | static const JobDeviceFilters& default_instance(); |
321 | |
322 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
323 | static inline const JobDeviceFilters* internal_default_instance() { |
324 | return reinterpret_cast<const JobDeviceFilters*>( |
325 | &_JobDeviceFilters_default_instance_); |
326 | } |
327 | static constexpr int kIndexInFileMessages = |
328 | 2; |
329 | |
330 | friend void swap(JobDeviceFilters& a, JobDeviceFilters& b) { |
331 | a.Swap(&b); |
332 | } |
333 | inline void Swap(JobDeviceFilters* other) { |
334 | if (other == this) return; |
335 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
336 | InternalSwap(other); |
337 | } else { |
338 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
339 | } |
340 | } |
341 | void UnsafeArenaSwap(JobDeviceFilters* other) { |
342 | if (other == this) return; |
343 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
344 | InternalSwap(other); |
345 | } |
346 | |
347 | // implements Message ---------------------------------------------- |
348 | |
349 | inline JobDeviceFilters* New() const final { |
350 | return CreateMaybeMessage<JobDeviceFilters>(nullptr); |
351 | } |
352 | |
353 | JobDeviceFilters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
354 | return CreateMaybeMessage<JobDeviceFilters>(arena); |
355 | } |
356 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
357 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
358 | void CopyFrom(const JobDeviceFilters& from); |
359 | void MergeFrom(const JobDeviceFilters& from); |
360 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
361 | bool IsInitialized() const final; |
362 | |
363 | size_t ByteSizeLong() const final; |
364 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
365 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
366 | #else |
367 | bool MergePartialFromCodedStream( |
368 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
369 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
370 | void SerializeWithCachedSizes( |
371 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
372 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
373 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
374 | int GetCachedSize() const final { return _cached_size_.Get(); } |
375 | |
376 | private: |
377 | inline void SharedCtor(); |
378 | inline void SharedDtor(); |
379 | void SetCachedSize(int size) const final; |
380 | void InternalSwap(JobDeviceFilters* other); |
381 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
382 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
383 | return "tensorflow.JobDeviceFilters" ; |
384 | } |
385 | protected: |
386 | explicit JobDeviceFilters(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
387 | private: |
388 | static void ArenaDtor(void* object); |
389 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
390 | private: |
391 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
392 | return _internal_metadata_.arena(); |
393 | } |
394 | inline void* MaybeArenaPtr() const { |
395 | return _internal_metadata_.raw_arena_ptr(); |
396 | } |
397 | public: |
398 | |
399 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
400 | private: |
401 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
402 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto); |
403 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto.file_level_metadata[kIndexInFileMessages]; |
404 | } |
405 | |
406 | public: |
407 | |
408 | // nested types ---------------------------------------------------- |
409 | |
410 | |
411 | // accessors ------------------------------------------------------- |
412 | |
413 | enum : int { |
414 | kTasksFieldNumber = 2, |
415 | kNameFieldNumber = 1, |
416 | }; |
417 | // map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; |
418 | int tasks_size() const; |
419 | void clear_tasks(); |
420 | const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TaskDeviceFilters >& |
421 | tasks() const; |
422 | ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TaskDeviceFilters >* |
423 | mutable_tasks(); |
424 | |
425 | // string name = 1; |
426 | void clear_name(); |
427 | const std::string& name() const; |
428 | void set_name(const std::string& value); |
429 | void set_name(std::string&& value); |
430 | void set_name(const char* value); |
431 | void set_name(const char* value, size_t size); |
432 | std::string* mutable_name(); |
433 | std::string* release_name(); |
434 | void set_allocated_name(std::string* name); |
435 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
436 | " string fields are deprecated and will be removed in a" |
437 | " future release." ) |
438 | std::string* unsafe_arena_release_name(); |
439 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
440 | " string fields are deprecated and will be removed in a" |
441 | " future release." ) |
442 | void unsafe_arena_set_allocated_name( |
443 | std::string* name); |
444 | |
445 | // @@protoc_insertion_point(class_scope:tensorflow.JobDeviceFilters) |
446 | private: |
447 | class _Internal; |
448 | |
449 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
450 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
451 | typedef void InternalArenaConstructable_; |
452 | typedef void DestructorSkippable_; |
453 | ::PROTOBUF_NAMESPACE_ID::internal::MapField< |
454 | JobDeviceFilters_TasksEntry_DoNotUse, |
455 | ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TaskDeviceFilters, |
456 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_INT32, |
457 | ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::TYPE_MESSAGE, |
458 | 0 > tasks_; |
459 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
460 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
461 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto; |
462 | }; |
463 | // ------------------------------------------------------------------- |
464 | |
465 | class ClusterDeviceFilters : |
466 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.ClusterDeviceFilters) */ { |
467 | public: |
468 | ClusterDeviceFilters(); |
469 | virtual ~ClusterDeviceFilters(); |
470 | |
471 | ClusterDeviceFilters(const ClusterDeviceFilters& from); |
472 | ClusterDeviceFilters(ClusterDeviceFilters&& from) noexcept |
473 | : ClusterDeviceFilters() { |
474 | *this = ::std::move(from); |
475 | } |
476 | |
477 | inline ClusterDeviceFilters& operator=(const ClusterDeviceFilters& from) { |
478 | CopyFrom(from); |
479 | return *this; |
480 | } |
481 | inline ClusterDeviceFilters& operator=(ClusterDeviceFilters&& from) noexcept { |
482 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
483 | if (this != &from) InternalSwap(&from); |
484 | } else { |
485 | CopyFrom(from); |
486 | } |
487 | return *this; |
488 | } |
489 | |
490 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
491 | return GetArenaNoVirtual(); |
492 | } |
493 | inline void* GetMaybeArenaPointer() const final { |
494 | return MaybeArenaPtr(); |
495 | } |
496 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
497 | return GetDescriptor(); |
498 | } |
499 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
500 | return GetMetadataStatic().descriptor; |
501 | } |
502 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
503 | return GetMetadataStatic().reflection; |
504 | } |
505 | static const ClusterDeviceFilters& default_instance(); |
506 | |
507 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
508 | static inline const ClusterDeviceFilters* internal_default_instance() { |
509 | return reinterpret_cast<const ClusterDeviceFilters*>( |
510 | &_ClusterDeviceFilters_default_instance_); |
511 | } |
512 | static constexpr int kIndexInFileMessages = |
513 | 3; |
514 | |
515 | friend void swap(ClusterDeviceFilters& a, ClusterDeviceFilters& b) { |
516 | a.Swap(&b); |
517 | } |
518 | inline void Swap(ClusterDeviceFilters* other) { |
519 | if (other == this) return; |
520 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
521 | InternalSwap(other); |
522 | } else { |
523 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
524 | } |
525 | } |
526 | void UnsafeArenaSwap(ClusterDeviceFilters* other) { |
527 | if (other == this) return; |
528 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
529 | InternalSwap(other); |
530 | } |
531 | |
532 | // implements Message ---------------------------------------------- |
533 | |
534 | inline ClusterDeviceFilters* New() const final { |
535 | return CreateMaybeMessage<ClusterDeviceFilters>(nullptr); |
536 | } |
537 | |
538 | ClusterDeviceFilters* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
539 | return CreateMaybeMessage<ClusterDeviceFilters>(arena); |
540 | } |
541 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
542 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
543 | void CopyFrom(const ClusterDeviceFilters& from); |
544 | void MergeFrom(const ClusterDeviceFilters& from); |
545 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
546 | bool IsInitialized() const final; |
547 | |
548 | size_t ByteSizeLong() const final; |
549 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
550 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
551 | #else |
552 | bool MergePartialFromCodedStream( |
553 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
554 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
555 | void SerializeWithCachedSizes( |
556 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
557 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
558 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
559 | int GetCachedSize() const final { return _cached_size_.Get(); } |
560 | |
561 | private: |
562 | inline void SharedCtor(); |
563 | inline void SharedDtor(); |
564 | void SetCachedSize(int size) const final; |
565 | void InternalSwap(ClusterDeviceFilters* other); |
566 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
567 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
568 | return "tensorflow.ClusterDeviceFilters" ; |
569 | } |
570 | protected: |
571 | explicit ClusterDeviceFilters(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
572 | private: |
573 | static void ArenaDtor(void* object); |
574 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
575 | private: |
576 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
577 | return _internal_metadata_.arena(); |
578 | } |
579 | inline void* MaybeArenaPtr() const { |
580 | return _internal_metadata_.raw_arena_ptr(); |
581 | } |
582 | public: |
583 | |
584 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
585 | private: |
586 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
587 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto); |
588 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto.file_level_metadata[kIndexInFileMessages]; |
589 | } |
590 | |
591 | public: |
592 | |
593 | // nested types ---------------------------------------------------- |
594 | |
595 | // accessors ------------------------------------------------------- |
596 | |
597 | enum : int { |
598 | kJobsFieldNumber = 1, |
599 | }; |
600 | // repeated .tensorflow.JobDeviceFilters jobs = 1; |
601 | int jobs_size() const; |
602 | void clear_jobs(); |
603 | ::tensorflow::JobDeviceFilters* mutable_jobs(int index); |
604 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDeviceFilters >* |
605 | mutable_jobs(); |
606 | const ::tensorflow::JobDeviceFilters& jobs(int index) const; |
607 | ::tensorflow::JobDeviceFilters* add_jobs(); |
608 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDeviceFilters >& |
609 | jobs() const; |
610 | |
611 | // @@protoc_insertion_point(class_scope:tensorflow.ClusterDeviceFilters) |
612 | private: |
613 | class _Internal; |
614 | |
615 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
616 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
617 | typedef void InternalArenaConstructable_; |
618 | typedef void DestructorSkippable_; |
619 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDeviceFilters > jobs_; |
620 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
621 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto; |
622 | }; |
623 | // =================================================================== |
624 | |
625 | |
626 | // =================================================================== |
627 | |
628 | #ifdef __GNUC__ |
629 | #pragma GCC diagnostic push |
630 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
631 | #endif // __GNUC__ |
632 | // TaskDeviceFilters |
633 | |
634 | // repeated string device_filters = 1; |
635 | inline int TaskDeviceFilters::device_filters_size() const { |
636 | return device_filters_.size(); |
637 | } |
638 | inline void TaskDeviceFilters::clear_device_filters() { |
639 | device_filters_.Clear(); |
640 | } |
641 | inline const std::string& TaskDeviceFilters::device_filters(int index) const { |
642 | // @@protoc_insertion_point(field_get:tensorflow.TaskDeviceFilters.device_filters) |
643 | return device_filters_.Get(index); |
644 | } |
645 | inline std::string* TaskDeviceFilters::mutable_device_filters(int index) { |
646 | // @@protoc_insertion_point(field_mutable:tensorflow.TaskDeviceFilters.device_filters) |
647 | return device_filters_.Mutable(index); |
648 | } |
649 | inline void TaskDeviceFilters::set_device_filters(int index, const std::string& value) { |
650 | // @@protoc_insertion_point(field_set:tensorflow.TaskDeviceFilters.device_filters) |
651 | device_filters_.Mutable(index)->assign(value); |
652 | } |
653 | inline void TaskDeviceFilters::set_device_filters(int index, std::string&& value) { |
654 | // @@protoc_insertion_point(field_set:tensorflow.TaskDeviceFilters.device_filters) |
655 | device_filters_.Mutable(index)->assign(std::move(value)); |
656 | } |
657 | inline void TaskDeviceFilters::set_device_filters(int index, const char* value) { |
658 | GOOGLE_DCHECK(value != nullptr); |
659 | device_filters_.Mutable(index)->assign(value); |
660 | // @@protoc_insertion_point(field_set_char:tensorflow.TaskDeviceFilters.device_filters) |
661 | } |
662 | inline void TaskDeviceFilters::set_device_filters(int index, const char* value, size_t size) { |
663 | device_filters_.Mutable(index)->assign( |
664 | reinterpret_cast<const char*>(value), size); |
665 | // @@protoc_insertion_point(field_set_pointer:tensorflow.TaskDeviceFilters.device_filters) |
666 | } |
667 | inline std::string* TaskDeviceFilters::add_device_filters() { |
668 | // @@protoc_insertion_point(field_add_mutable:tensorflow.TaskDeviceFilters.device_filters) |
669 | return device_filters_.Add(); |
670 | } |
671 | inline void TaskDeviceFilters::add_device_filters(const std::string& value) { |
672 | device_filters_.Add()->assign(value); |
673 | // @@protoc_insertion_point(field_add:tensorflow.TaskDeviceFilters.device_filters) |
674 | } |
675 | inline void TaskDeviceFilters::add_device_filters(std::string&& value) { |
676 | device_filters_.Add(std::move(value)); |
677 | // @@protoc_insertion_point(field_add:tensorflow.TaskDeviceFilters.device_filters) |
678 | } |
679 | inline void TaskDeviceFilters::add_device_filters(const char* value) { |
680 | GOOGLE_DCHECK(value != nullptr); |
681 | device_filters_.Add()->assign(value); |
682 | // @@protoc_insertion_point(field_add_char:tensorflow.TaskDeviceFilters.device_filters) |
683 | } |
684 | inline void TaskDeviceFilters::add_device_filters(const char* value, size_t size) { |
685 | device_filters_.Add()->assign(reinterpret_cast<const char*>(value), size); |
686 | // @@protoc_insertion_point(field_add_pointer:tensorflow.TaskDeviceFilters.device_filters) |
687 | } |
688 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
689 | TaskDeviceFilters::device_filters() const { |
690 | // @@protoc_insertion_point(field_list:tensorflow.TaskDeviceFilters.device_filters) |
691 | return device_filters_; |
692 | } |
693 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
694 | TaskDeviceFilters::mutable_device_filters() { |
695 | // @@protoc_insertion_point(field_mutable_list:tensorflow.TaskDeviceFilters.device_filters) |
696 | return &device_filters_; |
697 | } |
698 | |
699 | // ------------------------------------------------------------------- |
700 | |
701 | // ------------------------------------------------------------------- |
702 | |
703 | // JobDeviceFilters |
704 | |
705 | // string name = 1; |
706 | inline void JobDeviceFilters::clear_name() { |
707 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
708 | } |
709 | inline const std::string& JobDeviceFilters::name() const { |
710 | // @@protoc_insertion_point(field_get:tensorflow.JobDeviceFilters.name) |
711 | return name_.Get(); |
712 | } |
713 | inline void JobDeviceFilters::set_name(const std::string& value) { |
714 | |
715 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
716 | // @@protoc_insertion_point(field_set:tensorflow.JobDeviceFilters.name) |
717 | } |
718 | inline void JobDeviceFilters::set_name(std::string&& value) { |
719 | |
720 | name_.Set( |
721 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
722 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.JobDeviceFilters.name) |
723 | } |
724 | inline void JobDeviceFilters::set_name(const char* value) { |
725 | GOOGLE_DCHECK(value != nullptr); |
726 | |
727 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
728 | GetArenaNoVirtual()); |
729 | // @@protoc_insertion_point(field_set_char:tensorflow.JobDeviceFilters.name) |
730 | } |
731 | inline void JobDeviceFilters::set_name(const char* value, |
732 | size_t size) { |
733 | |
734 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
735 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
736 | // @@protoc_insertion_point(field_set_pointer:tensorflow.JobDeviceFilters.name) |
737 | } |
738 | inline std::string* JobDeviceFilters::mutable_name() { |
739 | |
740 | // @@protoc_insertion_point(field_mutable:tensorflow.JobDeviceFilters.name) |
741 | return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
742 | } |
743 | inline std::string* JobDeviceFilters::release_name() { |
744 | // @@protoc_insertion_point(field_release:tensorflow.JobDeviceFilters.name) |
745 | |
746 | return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
747 | } |
748 | inline void JobDeviceFilters::set_allocated_name(std::string* name) { |
749 | if (name != nullptr) { |
750 | |
751 | } else { |
752 | |
753 | } |
754 | name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, |
755 | GetArenaNoVirtual()); |
756 | // @@protoc_insertion_point(field_set_allocated:tensorflow.JobDeviceFilters.name) |
757 | } |
758 | inline std::string* JobDeviceFilters::unsafe_arena_release_name() { |
759 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.JobDeviceFilters.name) |
760 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
761 | |
762 | return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
763 | GetArenaNoVirtual()); |
764 | } |
765 | inline void JobDeviceFilters::unsafe_arena_set_allocated_name( |
766 | std::string* name) { |
767 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
768 | if (name != nullptr) { |
769 | |
770 | } else { |
771 | |
772 | } |
773 | name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
774 | name, GetArenaNoVirtual()); |
775 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.JobDeviceFilters.name) |
776 | } |
777 | |
778 | // map<int32, .tensorflow.TaskDeviceFilters> tasks = 2; |
779 | inline int JobDeviceFilters::tasks_size() const { |
780 | return tasks_.size(); |
781 | } |
782 | inline void JobDeviceFilters::clear_tasks() { |
783 | tasks_.Clear(); |
784 | } |
785 | inline const ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TaskDeviceFilters >& |
786 | JobDeviceFilters::tasks() const { |
787 | // @@protoc_insertion_point(field_map:tensorflow.JobDeviceFilters.tasks) |
788 | return tasks_.GetMap(); |
789 | } |
790 | inline ::PROTOBUF_NAMESPACE_ID::Map< ::PROTOBUF_NAMESPACE_ID::int32, ::tensorflow::TaskDeviceFilters >* |
791 | JobDeviceFilters::mutable_tasks() { |
792 | // @@protoc_insertion_point(field_mutable_map:tensorflow.JobDeviceFilters.tasks) |
793 | return tasks_.MutableMap(); |
794 | } |
795 | |
796 | // ------------------------------------------------------------------- |
797 | |
798 | // ClusterDeviceFilters |
799 | |
800 | // repeated .tensorflow.JobDeviceFilters jobs = 1; |
801 | inline int ClusterDeviceFilters::jobs_size() const { |
802 | return jobs_.size(); |
803 | } |
804 | inline void ClusterDeviceFilters::clear_jobs() { |
805 | jobs_.Clear(); |
806 | } |
807 | inline ::tensorflow::JobDeviceFilters* ClusterDeviceFilters::mutable_jobs(int index) { |
808 | // @@protoc_insertion_point(field_mutable:tensorflow.ClusterDeviceFilters.jobs) |
809 | return jobs_.Mutable(index); |
810 | } |
811 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDeviceFilters >* |
812 | ClusterDeviceFilters::mutable_jobs() { |
813 | // @@protoc_insertion_point(field_mutable_list:tensorflow.ClusterDeviceFilters.jobs) |
814 | return &jobs_; |
815 | } |
816 | inline const ::tensorflow::JobDeviceFilters& ClusterDeviceFilters::jobs(int index) const { |
817 | // @@protoc_insertion_point(field_get:tensorflow.ClusterDeviceFilters.jobs) |
818 | return jobs_.Get(index); |
819 | } |
820 | inline ::tensorflow::JobDeviceFilters* ClusterDeviceFilters::add_jobs() { |
821 | // @@protoc_insertion_point(field_add:tensorflow.ClusterDeviceFilters.jobs) |
822 | return jobs_.Add(); |
823 | } |
824 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::JobDeviceFilters >& |
825 | ClusterDeviceFilters::jobs() const { |
826 | // @@protoc_insertion_point(field_list:tensorflow.ClusterDeviceFilters.jobs) |
827 | return jobs_; |
828 | } |
829 | |
830 | #ifdef __GNUC__ |
831 | #pragma GCC diagnostic pop |
832 | #endif // __GNUC__ |
833 | // ------------------------------------------------------------------- |
834 | |
835 | // ------------------------------------------------------------------- |
836 | |
837 | // ------------------------------------------------------------------- |
838 | |
839 | |
840 | // @@protoc_insertion_point(namespace_scope) |
841 | |
842 | } // namespace tensorflow |
843 | |
844 | // @@protoc_insertion_point(global_scope) |
845 | |
846 | #include <google/protobuf/port_undef.inc> |
847 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fdevice_5ffilters_2eproto |
848 | |