1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/dtensor/proto/layout.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fdtensor_2fproto_2flayout_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fdtensor_2fproto_2flayout_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_2fdtensor_2fproto_2flayout_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_2fdtensor_2fproto_2flayout_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[4] |
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_2fdtensor_2fproto_2flayout_2eproto; |
57 | namespace tensorflow { |
58 | namespace dtensor { |
59 | class LayoutProto; |
60 | class LayoutProtoDefaultTypeInternal; |
61 | extern LayoutProtoDefaultTypeInternal _LayoutProto_default_instance_; |
62 | class MeshDimensionProto; |
63 | class MeshDimensionProtoDefaultTypeInternal; |
64 | extern MeshDimensionProtoDefaultTypeInternal _MeshDimensionProto_default_instance_; |
65 | class MeshProto; |
66 | class MeshProtoDefaultTypeInternal; |
67 | extern MeshProtoDefaultTypeInternal _MeshProto_default_instance_; |
68 | class ShardingSpec; |
69 | class ShardingSpecDefaultTypeInternal; |
70 | extern ShardingSpecDefaultTypeInternal _ShardingSpec_default_instance_; |
71 | } // namespace dtensor |
72 | } // namespace tensorflow |
73 | PROTOBUF_NAMESPACE_OPEN |
74 | template<> ::tensorflow::dtensor::LayoutProto* Arena::CreateMaybeMessage<::tensorflow::dtensor::LayoutProto>(Arena*); |
75 | template<> ::tensorflow::dtensor::MeshDimensionProto* Arena::CreateMaybeMessage<::tensorflow::dtensor::MeshDimensionProto>(Arena*); |
76 | template<> ::tensorflow::dtensor::MeshProto* Arena::CreateMaybeMessage<::tensorflow::dtensor::MeshProto>(Arena*); |
77 | template<> ::tensorflow::dtensor::ShardingSpec* Arena::CreateMaybeMessage<::tensorflow::dtensor::ShardingSpec>(Arena*); |
78 | PROTOBUF_NAMESPACE_CLOSE |
79 | namespace tensorflow { |
80 | namespace dtensor { |
81 | |
82 | // =================================================================== |
83 | |
84 | class ShardingSpec : |
85 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.dtensor.ShardingSpec) */ { |
86 | public: |
87 | ShardingSpec(); |
88 | virtual ~ShardingSpec(); |
89 | |
90 | ShardingSpec(const ShardingSpec& from); |
91 | ShardingSpec(ShardingSpec&& from) noexcept |
92 | : ShardingSpec() { |
93 | *this = ::std::move(from); |
94 | } |
95 | |
96 | inline ShardingSpec& operator=(const ShardingSpec& from) { |
97 | CopyFrom(from); |
98 | return *this; |
99 | } |
100 | inline ShardingSpec& operator=(ShardingSpec&& 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 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
110 | return GetDescriptor(); |
111 | } |
112 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
113 | return GetMetadataStatic().descriptor; |
114 | } |
115 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
116 | return GetMetadataStatic().reflection; |
117 | } |
118 | static const ShardingSpec& default_instance(); |
119 | |
120 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
121 | static inline const ShardingSpec* internal_default_instance() { |
122 | return reinterpret_cast<const ShardingSpec*>( |
123 | &_ShardingSpec_default_instance_); |
124 | } |
125 | static constexpr int kIndexInFileMessages = |
126 | 0; |
127 | |
128 | friend void swap(ShardingSpec& a, ShardingSpec& b) { |
129 | a.Swap(&b); |
130 | } |
131 | inline void Swap(ShardingSpec* other) { |
132 | if (other == this) return; |
133 | InternalSwap(other); |
134 | } |
135 | |
136 | // implements Message ---------------------------------------------- |
137 | |
138 | inline ShardingSpec* New() const final { |
139 | return CreateMaybeMessage<ShardingSpec>(nullptr); |
140 | } |
141 | |
142 | ShardingSpec* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
143 | return CreateMaybeMessage<ShardingSpec>(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 ShardingSpec& from); |
148 | void MergeFrom(const ShardingSpec& 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(ShardingSpec* other); |
170 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
171 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
172 | return "tensorflow.dtensor.ShardingSpec" ; |
173 | } |
174 | private: |
175 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
176 | return nullptr; |
177 | } |
178 | inline void* MaybeArenaPtr() const { |
179 | return nullptr; |
180 | } |
181 | public: |
182 | |
183 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
184 | private: |
185 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
186 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fdtensor_2fproto_2flayout_2eproto); |
187 | return ::descriptor_table_tensorflow_2fdtensor_2fproto_2flayout_2eproto.file_level_metadata[kIndexInFileMessages]; |
188 | } |
189 | |
190 | public: |
191 | |
192 | // nested types ---------------------------------------------------- |
193 | |
194 | // accessors ------------------------------------------------------- |
195 | |
196 | enum : int { |
197 | kShardingSpecFieldNumber = 2, |
198 | }; |
199 | // string sharding_spec = 2; |
200 | void clear_sharding_spec(); |
201 | const std::string& sharding_spec() const; |
202 | void set_sharding_spec(const std::string& value); |
203 | void set_sharding_spec(std::string&& value); |
204 | void set_sharding_spec(const char* value); |
205 | void set_sharding_spec(const char* value, size_t size); |
206 | std::string* mutable_sharding_spec(); |
207 | std::string* release_sharding_spec(); |
208 | void set_allocated_sharding_spec(std::string* sharding_spec); |
209 | |
210 | // @@protoc_insertion_point(class_scope:tensorflow.dtensor.ShardingSpec) |
211 | private: |
212 | class _Internal; |
213 | |
214 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
215 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr sharding_spec_; |
216 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
217 | friend struct ::TableStruct_tensorflow_2fdtensor_2fproto_2flayout_2eproto; |
218 | }; |
219 | // ------------------------------------------------------------------- |
220 | |
221 | class MeshDimensionProto : |
222 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.dtensor.MeshDimensionProto) */ { |
223 | public: |
224 | MeshDimensionProto(); |
225 | virtual ~MeshDimensionProto(); |
226 | |
227 | MeshDimensionProto(const MeshDimensionProto& from); |
228 | MeshDimensionProto(MeshDimensionProto&& from) noexcept |
229 | : MeshDimensionProto() { |
230 | *this = ::std::move(from); |
231 | } |
232 | |
233 | inline MeshDimensionProto& operator=(const MeshDimensionProto& from) { |
234 | CopyFrom(from); |
235 | return *this; |
236 | } |
237 | inline MeshDimensionProto& operator=(MeshDimensionProto&& from) noexcept { |
238 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
239 | if (this != &from) InternalSwap(&from); |
240 | } else { |
241 | CopyFrom(from); |
242 | } |
243 | return *this; |
244 | } |
245 | |
246 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
247 | return GetDescriptor(); |
248 | } |
249 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
250 | return GetMetadataStatic().descriptor; |
251 | } |
252 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
253 | return GetMetadataStatic().reflection; |
254 | } |
255 | static const MeshDimensionProto& default_instance(); |
256 | |
257 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
258 | static inline const MeshDimensionProto* internal_default_instance() { |
259 | return reinterpret_cast<const MeshDimensionProto*>( |
260 | &_MeshDimensionProto_default_instance_); |
261 | } |
262 | static constexpr int kIndexInFileMessages = |
263 | 1; |
264 | |
265 | friend void swap(MeshDimensionProto& a, MeshDimensionProto& b) { |
266 | a.Swap(&b); |
267 | } |
268 | inline void Swap(MeshDimensionProto* other) { |
269 | if (other == this) return; |
270 | InternalSwap(other); |
271 | } |
272 | |
273 | // implements Message ---------------------------------------------- |
274 | |
275 | inline MeshDimensionProto* New() const final { |
276 | return CreateMaybeMessage<MeshDimensionProto>(nullptr); |
277 | } |
278 | |
279 | MeshDimensionProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
280 | return CreateMaybeMessage<MeshDimensionProto>(arena); |
281 | } |
282 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
283 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
284 | void CopyFrom(const MeshDimensionProto& from); |
285 | void MergeFrom(const MeshDimensionProto& from); |
286 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
287 | bool IsInitialized() const final; |
288 | |
289 | size_t ByteSizeLong() const final; |
290 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
291 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
292 | #else |
293 | bool MergePartialFromCodedStream( |
294 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
295 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
296 | void SerializeWithCachedSizes( |
297 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
298 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
299 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
300 | int GetCachedSize() const final { return _cached_size_.Get(); } |
301 | |
302 | private: |
303 | inline void SharedCtor(); |
304 | inline void SharedDtor(); |
305 | void SetCachedSize(int size) const final; |
306 | void InternalSwap(MeshDimensionProto* other); |
307 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
308 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
309 | return "tensorflow.dtensor.MeshDimensionProto" ; |
310 | } |
311 | private: |
312 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
313 | return nullptr; |
314 | } |
315 | inline void* MaybeArenaPtr() const { |
316 | return nullptr; |
317 | } |
318 | public: |
319 | |
320 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
321 | private: |
322 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
323 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fdtensor_2fproto_2flayout_2eproto); |
324 | return ::descriptor_table_tensorflow_2fdtensor_2fproto_2flayout_2eproto.file_level_metadata[kIndexInFileMessages]; |
325 | } |
326 | |
327 | public: |
328 | |
329 | // nested types ---------------------------------------------------- |
330 | |
331 | // accessors ------------------------------------------------------- |
332 | |
333 | enum : int { |
334 | kNameFieldNumber = 1, |
335 | kSizeFieldNumber = 2, |
336 | }; |
337 | // string name = 1; |
338 | void clear_name(); |
339 | const std::string& name() const; |
340 | void set_name(const std::string& value); |
341 | void set_name(std::string&& value); |
342 | void set_name(const char* value); |
343 | void set_name(const char* value, size_t size); |
344 | std::string* mutable_name(); |
345 | std::string* release_name(); |
346 | void set_allocated_name(std::string* name); |
347 | |
348 | // int64 size = 2; |
349 | void clear_size(); |
350 | ::PROTOBUF_NAMESPACE_ID::int64 size() const; |
351 | void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); |
352 | |
353 | // @@protoc_insertion_point(class_scope:tensorflow.dtensor.MeshDimensionProto) |
354 | private: |
355 | class _Internal; |
356 | |
357 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
358 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
359 | ::PROTOBUF_NAMESPACE_ID::int64 size_; |
360 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
361 | friend struct ::TableStruct_tensorflow_2fdtensor_2fproto_2flayout_2eproto; |
362 | }; |
363 | // ------------------------------------------------------------------- |
364 | |
365 | class LayoutProto : |
366 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.dtensor.LayoutProto) */ { |
367 | public: |
368 | LayoutProto(); |
369 | virtual ~LayoutProto(); |
370 | |
371 | LayoutProto(const LayoutProto& from); |
372 | LayoutProto(LayoutProto&& from) noexcept |
373 | : LayoutProto() { |
374 | *this = ::std::move(from); |
375 | } |
376 | |
377 | inline LayoutProto& operator=(const LayoutProto& from) { |
378 | CopyFrom(from); |
379 | return *this; |
380 | } |
381 | inline LayoutProto& operator=(LayoutProto&& from) noexcept { |
382 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
383 | if (this != &from) InternalSwap(&from); |
384 | } else { |
385 | CopyFrom(from); |
386 | } |
387 | return *this; |
388 | } |
389 | |
390 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
391 | return GetDescriptor(); |
392 | } |
393 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
394 | return GetMetadataStatic().descriptor; |
395 | } |
396 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
397 | return GetMetadataStatic().reflection; |
398 | } |
399 | static const LayoutProto& default_instance(); |
400 | |
401 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
402 | static inline const LayoutProto* internal_default_instance() { |
403 | return reinterpret_cast<const LayoutProto*>( |
404 | &_LayoutProto_default_instance_); |
405 | } |
406 | static constexpr int kIndexInFileMessages = |
407 | 2; |
408 | |
409 | friend void swap(LayoutProto& a, LayoutProto& b) { |
410 | a.Swap(&b); |
411 | } |
412 | inline void Swap(LayoutProto* other) { |
413 | if (other == this) return; |
414 | InternalSwap(other); |
415 | } |
416 | |
417 | // implements Message ---------------------------------------------- |
418 | |
419 | inline LayoutProto* New() const final { |
420 | return CreateMaybeMessage<LayoutProto>(nullptr); |
421 | } |
422 | |
423 | LayoutProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
424 | return CreateMaybeMessage<LayoutProto>(arena); |
425 | } |
426 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
427 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
428 | void CopyFrom(const LayoutProto& from); |
429 | void MergeFrom(const LayoutProto& from); |
430 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
431 | bool IsInitialized() const final; |
432 | |
433 | size_t ByteSizeLong() const final; |
434 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
435 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
436 | #else |
437 | bool MergePartialFromCodedStream( |
438 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
439 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
440 | void SerializeWithCachedSizes( |
441 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
442 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
443 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
444 | int GetCachedSize() const final { return _cached_size_.Get(); } |
445 | |
446 | private: |
447 | inline void SharedCtor(); |
448 | inline void SharedDtor(); |
449 | void SetCachedSize(int size) const final; |
450 | void InternalSwap(LayoutProto* other); |
451 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
452 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
453 | return "tensorflow.dtensor.LayoutProto" ; |
454 | } |
455 | private: |
456 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
457 | return nullptr; |
458 | } |
459 | inline void* MaybeArenaPtr() const { |
460 | return nullptr; |
461 | } |
462 | public: |
463 | |
464 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
465 | private: |
466 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
467 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fdtensor_2fproto_2flayout_2eproto); |
468 | return ::descriptor_table_tensorflow_2fdtensor_2fproto_2flayout_2eproto.file_level_metadata[kIndexInFileMessages]; |
469 | } |
470 | |
471 | public: |
472 | |
473 | // nested types ---------------------------------------------------- |
474 | |
475 | // accessors ------------------------------------------------------- |
476 | |
477 | enum : int { |
478 | kShardingSpecsFieldNumber = 1, |
479 | kMeshConfigFieldNumber = 2, |
480 | }; |
481 | // repeated .tensorflow.dtensor.ShardingSpec sharding_specs = 1; |
482 | int sharding_specs_size() const; |
483 | void clear_sharding_specs(); |
484 | ::tensorflow::dtensor::ShardingSpec* mutable_sharding_specs(int index); |
485 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::ShardingSpec >* |
486 | mutable_sharding_specs(); |
487 | const ::tensorflow::dtensor::ShardingSpec& sharding_specs(int index) const; |
488 | ::tensorflow::dtensor::ShardingSpec* add_sharding_specs(); |
489 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::ShardingSpec >& |
490 | sharding_specs() const; |
491 | |
492 | // .tensorflow.dtensor.MeshProto mesh_config = 2; |
493 | bool has_mesh_config() const; |
494 | void clear_mesh_config(); |
495 | const ::tensorflow::dtensor::MeshProto& mesh_config() const; |
496 | ::tensorflow::dtensor::MeshProto* release_mesh_config(); |
497 | ::tensorflow::dtensor::MeshProto* mutable_mesh_config(); |
498 | void set_allocated_mesh_config(::tensorflow::dtensor::MeshProto* mesh_config); |
499 | |
500 | // @@protoc_insertion_point(class_scope:tensorflow.dtensor.LayoutProto) |
501 | private: |
502 | class _Internal; |
503 | |
504 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
505 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::ShardingSpec > sharding_specs_; |
506 | ::tensorflow::dtensor::MeshProto* mesh_config_; |
507 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
508 | friend struct ::TableStruct_tensorflow_2fdtensor_2fproto_2flayout_2eproto; |
509 | }; |
510 | // ------------------------------------------------------------------- |
511 | |
512 | class MeshProto : |
513 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.dtensor.MeshProto) */ { |
514 | public: |
515 | MeshProto(); |
516 | virtual ~MeshProto(); |
517 | |
518 | MeshProto(const MeshProto& from); |
519 | MeshProto(MeshProto&& from) noexcept |
520 | : MeshProto() { |
521 | *this = ::std::move(from); |
522 | } |
523 | |
524 | inline MeshProto& operator=(const MeshProto& from) { |
525 | CopyFrom(from); |
526 | return *this; |
527 | } |
528 | inline MeshProto& operator=(MeshProto&& from) noexcept { |
529 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
530 | if (this != &from) InternalSwap(&from); |
531 | } else { |
532 | CopyFrom(from); |
533 | } |
534 | return *this; |
535 | } |
536 | |
537 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
538 | return GetDescriptor(); |
539 | } |
540 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
541 | return GetMetadataStatic().descriptor; |
542 | } |
543 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
544 | return GetMetadataStatic().reflection; |
545 | } |
546 | static const MeshProto& default_instance(); |
547 | |
548 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
549 | static inline const MeshProto* internal_default_instance() { |
550 | return reinterpret_cast<const MeshProto*>( |
551 | &_MeshProto_default_instance_); |
552 | } |
553 | static constexpr int kIndexInFileMessages = |
554 | 3; |
555 | |
556 | friend void swap(MeshProto& a, MeshProto& b) { |
557 | a.Swap(&b); |
558 | } |
559 | inline void Swap(MeshProto* other) { |
560 | if (other == this) return; |
561 | InternalSwap(other); |
562 | } |
563 | |
564 | // implements Message ---------------------------------------------- |
565 | |
566 | inline MeshProto* New() const final { |
567 | return CreateMaybeMessage<MeshProto>(nullptr); |
568 | } |
569 | |
570 | MeshProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
571 | return CreateMaybeMessage<MeshProto>(arena); |
572 | } |
573 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
574 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
575 | void CopyFrom(const MeshProto& from); |
576 | void MergeFrom(const MeshProto& from); |
577 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
578 | bool IsInitialized() const final; |
579 | |
580 | size_t ByteSizeLong() const final; |
581 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
582 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
583 | #else |
584 | bool MergePartialFromCodedStream( |
585 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
586 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
587 | void SerializeWithCachedSizes( |
588 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
589 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
590 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
591 | int GetCachedSize() const final { return _cached_size_.Get(); } |
592 | |
593 | private: |
594 | inline void SharedCtor(); |
595 | inline void SharedDtor(); |
596 | void SetCachedSize(int size) const final; |
597 | void InternalSwap(MeshProto* other); |
598 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
599 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
600 | return "tensorflow.dtensor.MeshProto" ; |
601 | } |
602 | private: |
603 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
604 | return nullptr; |
605 | } |
606 | inline void* MaybeArenaPtr() const { |
607 | return nullptr; |
608 | } |
609 | public: |
610 | |
611 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
612 | private: |
613 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
614 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fdtensor_2fproto_2flayout_2eproto); |
615 | return ::descriptor_table_tensorflow_2fdtensor_2fproto_2flayout_2eproto.file_level_metadata[kIndexInFileMessages]; |
616 | } |
617 | |
618 | public: |
619 | |
620 | // nested types ---------------------------------------------------- |
621 | |
622 | // accessors ------------------------------------------------------- |
623 | |
624 | enum : int { |
625 | kMeshDimensionsFieldNumber = 1, |
626 | kGlobalDeviceIdsFieldNumber = 2, |
627 | kLocalDeviceIdsFieldNumber = 4, |
628 | kLocalDevicesFieldNumber = 5, |
629 | kGlobalDevicesFieldNumber = 6, |
630 | kNameFieldNumber = 3, |
631 | }; |
632 | // repeated .tensorflow.dtensor.MeshDimensionProto mesh_dimensions = 1; |
633 | int mesh_dimensions_size() const; |
634 | void clear_mesh_dimensions(); |
635 | ::tensorflow::dtensor::MeshDimensionProto* mutable_mesh_dimensions(int index); |
636 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::MeshDimensionProto >* |
637 | mutable_mesh_dimensions(); |
638 | const ::tensorflow::dtensor::MeshDimensionProto& mesh_dimensions(int index) const; |
639 | ::tensorflow::dtensor::MeshDimensionProto* add_mesh_dimensions(); |
640 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::MeshDimensionProto >& |
641 | mesh_dimensions() const; |
642 | |
643 | // repeated int64 global_device_ids = 2; |
644 | int global_device_ids_size() const; |
645 | void clear_global_device_ids(); |
646 | ::PROTOBUF_NAMESPACE_ID::int64 global_device_ids(int index) const; |
647 | void set_global_device_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); |
648 | void add_global_device_ids(::PROTOBUF_NAMESPACE_ID::int64 value); |
649 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& |
650 | global_device_ids() const; |
651 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* |
652 | mutable_global_device_ids(); |
653 | |
654 | // repeated int64 local_device_ids = 4; |
655 | int local_device_ids_size() const; |
656 | void clear_local_device_ids(); |
657 | ::PROTOBUF_NAMESPACE_ID::int64 local_device_ids(int index) const; |
658 | void set_local_device_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value); |
659 | void add_local_device_ids(::PROTOBUF_NAMESPACE_ID::int64 value); |
660 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& |
661 | local_device_ids() const; |
662 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* |
663 | mutable_local_device_ids(); |
664 | |
665 | // repeated string local_devices = 5; |
666 | int local_devices_size() const; |
667 | void clear_local_devices(); |
668 | const std::string& local_devices(int index) const; |
669 | std::string* mutable_local_devices(int index); |
670 | void set_local_devices(int index, const std::string& value); |
671 | void set_local_devices(int index, std::string&& value); |
672 | void set_local_devices(int index, const char* value); |
673 | void set_local_devices(int index, const char* value, size_t size); |
674 | std::string* add_local_devices(); |
675 | void add_local_devices(const std::string& value); |
676 | void add_local_devices(std::string&& value); |
677 | void add_local_devices(const char* value); |
678 | void add_local_devices(const char* value, size_t size); |
679 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& local_devices() const; |
680 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_local_devices(); |
681 | |
682 | // repeated string global_devices = 6; |
683 | int global_devices_size() const; |
684 | void clear_global_devices(); |
685 | const std::string& global_devices(int index) const; |
686 | std::string* mutable_global_devices(int index); |
687 | void set_global_devices(int index, const std::string& value); |
688 | void set_global_devices(int index, std::string&& value); |
689 | void set_global_devices(int index, const char* value); |
690 | void set_global_devices(int index, const char* value, size_t size); |
691 | std::string* add_global_devices(); |
692 | void add_global_devices(const std::string& value); |
693 | void add_global_devices(std::string&& value); |
694 | void add_global_devices(const char* value); |
695 | void add_global_devices(const char* value, size_t size); |
696 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& global_devices() const; |
697 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* mutable_global_devices(); |
698 | |
699 | // string name = 3; |
700 | void clear_name(); |
701 | const std::string& name() const; |
702 | void set_name(const std::string& value); |
703 | void set_name(std::string&& value); |
704 | void set_name(const char* value); |
705 | void set_name(const char* value, size_t size); |
706 | std::string* mutable_name(); |
707 | std::string* release_name(); |
708 | void set_allocated_name(std::string* name); |
709 | |
710 | // @@protoc_insertion_point(class_scope:tensorflow.dtensor.MeshProto) |
711 | private: |
712 | class _Internal; |
713 | |
714 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
715 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::MeshDimensionProto > mesh_dimensions_; |
716 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > global_device_ids_; |
717 | mutable std::atomic<int> _global_device_ids_cached_byte_size_; |
718 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 > local_device_ids_; |
719 | mutable std::atomic<int> _local_device_ids_cached_byte_size_; |
720 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> local_devices_; |
721 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string> global_devices_; |
722 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
723 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
724 | friend struct ::TableStruct_tensorflow_2fdtensor_2fproto_2flayout_2eproto; |
725 | }; |
726 | // =================================================================== |
727 | |
728 | |
729 | // =================================================================== |
730 | |
731 | #ifdef __GNUC__ |
732 | #pragma GCC diagnostic push |
733 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
734 | #endif // __GNUC__ |
735 | // ShardingSpec |
736 | |
737 | // string sharding_spec = 2; |
738 | inline void ShardingSpec::clear_sharding_spec() { |
739 | sharding_spec_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
740 | } |
741 | inline const std::string& ShardingSpec::sharding_spec() const { |
742 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.ShardingSpec.sharding_spec) |
743 | return sharding_spec_.GetNoArena(); |
744 | } |
745 | inline void ShardingSpec::set_sharding_spec(const std::string& value) { |
746 | |
747 | sharding_spec_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
748 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.ShardingSpec.sharding_spec) |
749 | } |
750 | inline void ShardingSpec::set_sharding_spec(std::string&& value) { |
751 | |
752 | sharding_spec_.SetNoArena( |
753 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
754 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.dtensor.ShardingSpec.sharding_spec) |
755 | } |
756 | inline void ShardingSpec::set_sharding_spec(const char* value) { |
757 | GOOGLE_DCHECK(value != nullptr); |
758 | |
759 | sharding_spec_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
760 | // @@protoc_insertion_point(field_set_char:tensorflow.dtensor.ShardingSpec.sharding_spec) |
761 | } |
762 | inline void ShardingSpec::set_sharding_spec(const char* value, size_t size) { |
763 | |
764 | sharding_spec_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
765 | ::std::string(reinterpret_cast<const char*>(value), size)); |
766 | // @@protoc_insertion_point(field_set_pointer:tensorflow.dtensor.ShardingSpec.sharding_spec) |
767 | } |
768 | inline std::string* ShardingSpec::mutable_sharding_spec() { |
769 | |
770 | // @@protoc_insertion_point(field_mutable:tensorflow.dtensor.ShardingSpec.sharding_spec) |
771 | return sharding_spec_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
772 | } |
773 | inline std::string* ShardingSpec::release_sharding_spec() { |
774 | // @@protoc_insertion_point(field_release:tensorflow.dtensor.ShardingSpec.sharding_spec) |
775 | |
776 | return sharding_spec_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
777 | } |
778 | inline void ShardingSpec::set_allocated_sharding_spec(std::string* sharding_spec) { |
779 | if (sharding_spec != nullptr) { |
780 | |
781 | } else { |
782 | |
783 | } |
784 | sharding_spec_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), sharding_spec); |
785 | // @@protoc_insertion_point(field_set_allocated:tensorflow.dtensor.ShardingSpec.sharding_spec) |
786 | } |
787 | |
788 | // ------------------------------------------------------------------- |
789 | |
790 | // MeshDimensionProto |
791 | |
792 | // string name = 1; |
793 | inline void MeshDimensionProto::clear_name() { |
794 | name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
795 | } |
796 | inline const std::string& MeshDimensionProto::name() const { |
797 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.MeshDimensionProto.name) |
798 | return name_.GetNoArena(); |
799 | } |
800 | inline void MeshDimensionProto::set_name(const std::string& value) { |
801 | |
802 | name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
803 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshDimensionProto.name) |
804 | } |
805 | inline void MeshDimensionProto::set_name(std::string&& value) { |
806 | |
807 | name_.SetNoArena( |
808 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
809 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.dtensor.MeshDimensionProto.name) |
810 | } |
811 | inline void MeshDimensionProto::set_name(const char* value) { |
812 | GOOGLE_DCHECK(value != nullptr); |
813 | |
814 | name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
815 | // @@protoc_insertion_point(field_set_char:tensorflow.dtensor.MeshDimensionProto.name) |
816 | } |
817 | inline void MeshDimensionProto::set_name(const char* value, size_t size) { |
818 | |
819 | name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
820 | ::std::string(reinterpret_cast<const char*>(value), size)); |
821 | // @@protoc_insertion_point(field_set_pointer:tensorflow.dtensor.MeshDimensionProto.name) |
822 | } |
823 | inline std::string* MeshDimensionProto::mutable_name() { |
824 | |
825 | // @@protoc_insertion_point(field_mutable:tensorflow.dtensor.MeshDimensionProto.name) |
826 | return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
827 | } |
828 | inline std::string* MeshDimensionProto::release_name() { |
829 | // @@protoc_insertion_point(field_release:tensorflow.dtensor.MeshDimensionProto.name) |
830 | |
831 | return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
832 | } |
833 | inline void MeshDimensionProto::set_allocated_name(std::string* name) { |
834 | if (name != nullptr) { |
835 | |
836 | } else { |
837 | |
838 | } |
839 | name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); |
840 | // @@protoc_insertion_point(field_set_allocated:tensorflow.dtensor.MeshDimensionProto.name) |
841 | } |
842 | |
843 | // int64 size = 2; |
844 | inline void MeshDimensionProto::clear_size() { |
845 | size_ = PROTOBUF_LONGLONG(0); |
846 | } |
847 | inline ::PROTOBUF_NAMESPACE_ID::int64 MeshDimensionProto::size() const { |
848 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.MeshDimensionProto.size) |
849 | return size_; |
850 | } |
851 | inline void MeshDimensionProto::set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { |
852 | |
853 | size_ = value; |
854 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshDimensionProto.size) |
855 | } |
856 | |
857 | // ------------------------------------------------------------------- |
858 | |
859 | // LayoutProto |
860 | |
861 | // repeated .tensorflow.dtensor.ShardingSpec sharding_specs = 1; |
862 | inline int LayoutProto::sharding_specs_size() const { |
863 | return sharding_specs_.size(); |
864 | } |
865 | inline void LayoutProto::clear_sharding_specs() { |
866 | sharding_specs_.Clear(); |
867 | } |
868 | inline ::tensorflow::dtensor::ShardingSpec* LayoutProto::mutable_sharding_specs(int index) { |
869 | // @@protoc_insertion_point(field_mutable:tensorflow.dtensor.LayoutProto.sharding_specs) |
870 | return sharding_specs_.Mutable(index); |
871 | } |
872 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::ShardingSpec >* |
873 | LayoutProto::mutable_sharding_specs() { |
874 | // @@protoc_insertion_point(field_mutable_list:tensorflow.dtensor.LayoutProto.sharding_specs) |
875 | return &sharding_specs_; |
876 | } |
877 | inline const ::tensorflow::dtensor::ShardingSpec& LayoutProto::sharding_specs(int index) const { |
878 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.LayoutProto.sharding_specs) |
879 | return sharding_specs_.Get(index); |
880 | } |
881 | inline ::tensorflow::dtensor::ShardingSpec* LayoutProto::add_sharding_specs() { |
882 | // @@protoc_insertion_point(field_add:tensorflow.dtensor.LayoutProto.sharding_specs) |
883 | return sharding_specs_.Add(); |
884 | } |
885 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::ShardingSpec >& |
886 | LayoutProto::sharding_specs() const { |
887 | // @@protoc_insertion_point(field_list:tensorflow.dtensor.LayoutProto.sharding_specs) |
888 | return sharding_specs_; |
889 | } |
890 | |
891 | // .tensorflow.dtensor.MeshProto mesh_config = 2; |
892 | inline bool LayoutProto::has_mesh_config() const { |
893 | return this != internal_default_instance() && mesh_config_ != nullptr; |
894 | } |
895 | inline void LayoutProto::clear_mesh_config() { |
896 | if (GetArenaNoVirtual() == nullptr && mesh_config_ != nullptr) { |
897 | delete mesh_config_; |
898 | } |
899 | mesh_config_ = nullptr; |
900 | } |
901 | inline const ::tensorflow::dtensor::MeshProto& LayoutProto::mesh_config() const { |
902 | const ::tensorflow::dtensor::MeshProto* p = mesh_config_; |
903 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.LayoutProto.mesh_config) |
904 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::dtensor::MeshProto*>( |
905 | &::tensorflow::dtensor::_MeshProto_default_instance_); |
906 | } |
907 | inline ::tensorflow::dtensor::MeshProto* LayoutProto::release_mesh_config() { |
908 | // @@protoc_insertion_point(field_release:tensorflow.dtensor.LayoutProto.mesh_config) |
909 | |
910 | ::tensorflow::dtensor::MeshProto* temp = mesh_config_; |
911 | mesh_config_ = nullptr; |
912 | return temp; |
913 | } |
914 | inline ::tensorflow::dtensor::MeshProto* LayoutProto::mutable_mesh_config() { |
915 | |
916 | if (mesh_config_ == nullptr) { |
917 | auto* p = CreateMaybeMessage<::tensorflow::dtensor::MeshProto>(GetArenaNoVirtual()); |
918 | mesh_config_ = p; |
919 | } |
920 | // @@protoc_insertion_point(field_mutable:tensorflow.dtensor.LayoutProto.mesh_config) |
921 | return mesh_config_; |
922 | } |
923 | inline void LayoutProto::set_allocated_mesh_config(::tensorflow::dtensor::MeshProto* mesh_config) { |
924 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
925 | if (message_arena == nullptr) { |
926 | delete mesh_config_; |
927 | } |
928 | if (mesh_config) { |
929 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr; |
930 | if (message_arena != submessage_arena) { |
931 | mesh_config = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
932 | message_arena, mesh_config, submessage_arena); |
933 | } |
934 | |
935 | } else { |
936 | |
937 | } |
938 | mesh_config_ = mesh_config; |
939 | // @@protoc_insertion_point(field_set_allocated:tensorflow.dtensor.LayoutProto.mesh_config) |
940 | } |
941 | |
942 | // ------------------------------------------------------------------- |
943 | |
944 | // MeshProto |
945 | |
946 | // repeated .tensorflow.dtensor.MeshDimensionProto mesh_dimensions = 1; |
947 | inline int MeshProto::mesh_dimensions_size() const { |
948 | return mesh_dimensions_.size(); |
949 | } |
950 | inline void MeshProto::clear_mesh_dimensions() { |
951 | mesh_dimensions_.Clear(); |
952 | } |
953 | inline ::tensorflow::dtensor::MeshDimensionProto* MeshProto::mutable_mesh_dimensions(int index) { |
954 | // @@protoc_insertion_point(field_mutable:tensorflow.dtensor.MeshProto.mesh_dimensions) |
955 | return mesh_dimensions_.Mutable(index); |
956 | } |
957 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::MeshDimensionProto >* |
958 | MeshProto::mutable_mesh_dimensions() { |
959 | // @@protoc_insertion_point(field_mutable_list:tensorflow.dtensor.MeshProto.mesh_dimensions) |
960 | return &mesh_dimensions_; |
961 | } |
962 | inline const ::tensorflow::dtensor::MeshDimensionProto& MeshProto::mesh_dimensions(int index) const { |
963 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.MeshProto.mesh_dimensions) |
964 | return mesh_dimensions_.Get(index); |
965 | } |
966 | inline ::tensorflow::dtensor::MeshDimensionProto* MeshProto::add_mesh_dimensions() { |
967 | // @@protoc_insertion_point(field_add:tensorflow.dtensor.MeshProto.mesh_dimensions) |
968 | return mesh_dimensions_.Add(); |
969 | } |
970 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::dtensor::MeshDimensionProto >& |
971 | MeshProto::mesh_dimensions() const { |
972 | // @@protoc_insertion_point(field_list:tensorflow.dtensor.MeshProto.mesh_dimensions) |
973 | return mesh_dimensions_; |
974 | } |
975 | |
976 | // repeated int64 global_device_ids = 2; |
977 | inline int MeshProto::global_device_ids_size() const { |
978 | return global_device_ids_.size(); |
979 | } |
980 | inline void MeshProto::clear_global_device_ids() { |
981 | global_device_ids_.Clear(); |
982 | } |
983 | inline ::PROTOBUF_NAMESPACE_ID::int64 MeshProto::global_device_ids(int index) const { |
984 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.MeshProto.global_device_ids) |
985 | return global_device_ids_.Get(index); |
986 | } |
987 | inline void MeshProto::set_global_device_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { |
988 | global_device_ids_.Set(index, value); |
989 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshProto.global_device_ids) |
990 | } |
991 | inline void MeshProto::add_global_device_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { |
992 | global_device_ids_.Add(value); |
993 | // @@protoc_insertion_point(field_add:tensorflow.dtensor.MeshProto.global_device_ids) |
994 | } |
995 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& |
996 | MeshProto::global_device_ids() const { |
997 | // @@protoc_insertion_point(field_list:tensorflow.dtensor.MeshProto.global_device_ids) |
998 | return global_device_ids_; |
999 | } |
1000 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* |
1001 | MeshProto::mutable_global_device_ids() { |
1002 | // @@protoc_insertion_point(field_mutable_list:tensorflow.dtensor.MeshProto.global_device_ids) |
1003 | return &global_device_ids_; |
1004 | } |
1005 | |
1006 | // repeated int64 local_device_ids = 4; |
1007 | inline int MeshProto::local_device_ids_size() const { |
1008 | return local_device_ids_.size(); |
1009 | } |
1010 | inline void MeshProto::clear_local_device_ids() { |
1011 | local_device_ids_.Clear(); |
1012 | } |
1013 | inline ::PROTOBUF_NAMESPACE_ID::int64 MeshProto::local_device_ids(int index) const { |
1014 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.MeshProto.local_device_ids) |
1015 | return local_device_ids_.Get(index); |
1016 | } |
1017 | inline void MeshProto::set_local_device_ids(int index, ::PROTOBUF_NAMESPACE_ID::int64 value) { |
1018 | local_device_ids_.Set(index, value); |
1019 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshProto.local_device_ids) |
1020 | } |
1021 | inline void MeshProto::add_local_device_ids(::PROTOBUF_NAMESPACE_ID::int64 value) { |
1022 | local_device_ids_.Add(value); |
1023 | // @@protoc_insertion_point(field_add:tensorflow.dtensor.MeshProto.local_device_ids) |
1024 | } |
1025 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >& |
1026 | MeshProto::local_device_ids() const { |
1027 | // @@protoc_insertion_point(field_list:tensorflow.dtensor.MeshProto.local_device_ids) |
1028 | return local_device_ids_; |
1029 | } |
1030 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int64 >* |
1031 | MeshProto::mutable_local_device_ids() { |
1032 | // @@protoc_insertion_point(field_mutable_list:tensorflow.dtensor.MeshProto.local_device_ids) |
1033 | return &local_device_ids_; |
1034 | } |
1035 | |
1036 | // repeated string local_devices = 5; |
1037 | inline int MeshProto::local_devices_size() const { |
1038 | return local_devices_.size(); |
1039 | } |
1040 | inline void MeshProto::clear_local_devices() { |
1041 | local_devices_.Clear(); |
1042 | } |
1043 | inline const std::string& MeshProto::local_devices(int index) const { |
1044 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.MeshProto.local_devices) |
1045 | return local_devices_.Get(index); |
1046 | } |
1047 | inline std::string* MeshProto::mutable_local_devices(int index) { |
1048 | // @@protoc_insertion_point(field_mutable:tensorflow.dtensor.MeshProto.local_devices) |
1049 | return local_devices_.Mutable(index); |
1050 | } |
1051 | inline void MeshProto::set_local_devices(int index, const std::string& value) { |
1052 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshProto.local_devices) |
1053 | local_devices_.Mutable(index)->assign(value); |
1054 | } |
1055 | inline void MeshProto::set_local_devices(int index, std::string&& value) { |
1056 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshProto.local_devices) |
1057 | local_devices_.Mutable(index)->assign(std::move(value)); |
1058 | } |
1059 | inline void MeshProto::set_local_devices(int index, const char* value) { |
1060 | GOOGLE_DCHECK(value != nullptr); |
1061 | local_devices_.Mutable(index)->assign(value); |
1062 | // @@protoc_insertion_point(field_set_char:tensorflow.dtensor.MeshProto.local_devices) |
1063 | } |
1064 | inline void MeshProto::set_local_devices(int index, const char* value, size_t size) { |
1065 | local_devices_.Mutable(index)->assign( |
1066 | reinterpret_cast<const char*>(value), size); |
1067 | // @@protoc_insertion_point(field_set_pointer:tensorflow.dtensor.MeshProto.local_devices) |
1068 | } |
1069 | inline std::string* MeshProto::add_local_devices() { |
1070 | // @@protoc_insertion_point(field_add_mutable:tensorflow.dtensor.MeshProto.local_devices) |
1071 | return local_devices_.Add(); |
1072 | } |
1073 | inline void MeshProto::add_local_devices(const std::string& value) { |
1074 | local_devices_.Add()->assign(value); |
1075 | // @@protoc_insertion_point(field_add:tensorflow.dtensor.MeshProto.local_devices) |
1076 | } |
1077 | inline void MeshProto::add_local_devices(std::string&& value) { |
1078 | local_devices_.Add(std::move(value)); |
1079 | // @@protoc_insertion_point(field_add:tensorflow.dtensor.MeshProto.local_devices) |
1080 | } |
1081 | inline void MeshProto::add_local_devices(const char* value) { |
1082 | GOOGLE_DCHECK(value != nullptr); |
1083 | local_devices_.Add()->assign(value); |
1084 | // @@protoc_insertion_point(field_add_char:tensorflow.dtensor.MeshProto.local_devices) |
1085 | } |
1086 | inline void MeshProto::add_local_devices(const char* value, size_t size) { |
1087 | local_devices_.Add()->assign(reinterpret_cast<const char*>(value), size); |
1088 | // @@protoc_insertion_point(field_add_pointer:tensorflow.dtensor.MeshProto.local_devices) |
1089 | } |
1090 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
1091 | MeshProto::local_devices() const { |
1092 | // @@protoc_insertion_point(field_list:tensorflow.dtensor.MeshProto.local_devices) |
1093 | return local_devices_; |
1094 | } |
1095 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
1096 | MeshProto::mutable_local_devices() { |
1097 | // @@protoc_insertion_point(field_mutable_list:tensorflow.dtensor.MeshProto.local_devices) |
1098 | return &local_devices_; |
1099 | } |
1100 | |
1101 | // repeated string global_devices = 6; |
1102 | inline int MeshProto::global_devices_size() const { |
1103 | return global_devices_.size(); |
1104 | } |
1105 | inline void MeshProto::clear_global_devices() { |
1106 | global_devices_.Clear(); |
1107 | } |
1108 | inline const std::string& MeshProto::global_devices(int index) const { |
1109 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.MeshProto.global_devices) |
1110 | return global_devices_.Get(index); |
1111 | } |
1112 | inline std::string* MeshProto::mutable_global_devices(int index) { |
1113 | // @@protoc_insertion_point(field_mutable:tensorflow.dtensor.MeshProto.global_devices) |
1114 | return global_devices_.Mutable(index); |
1115 | } |
1116 | inline void MeshProto::set_global_devices(int index, const std::string& value) { |
1117 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshProto.global_devices) |
1118 | global_devices_.Mutable(index)->assign(value); |
1119 | } |
1120 | inline void MeshProto::set_global_devices(int index, std::string&& value) { |
1121 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshProto.global_devices) |
1122 | global_devices_.Mutable(index)->assign(std::move(value)); |
1123 | } |
1124 | inline void MeshProto::set_global_devices(int index, const char* value) { |
1125 | GOOGLE_DCHECK(value != nullptr); |
1126 | global_devices_.Mutable(index)->assign(value); |
1127 | // @@protoc_insertion_point(field_set_char:tensorflow.dtensor.MeshProto.global_devices) |
1128 | } |
1129 | inline void MeshProto::set_global_devices(int index, const char* value, size_t size) { |
1130 | global_devices_.Mutable(index)->assign( |
1131 | reinterpret_cast<const char*>(value), size); |
1132 | // @@protoc_insertion_point(field_set_pointer:tensorflow.dtensor.MeshProto.global_devices) |
1133 | } |
1134 | inline std::string* MeshProto::add_global_devices() { |
1135 | // @@protoc_insertion_point(field_add_mutable:tensorflow.dtensor.MeshProto.global_devices) |
1136 | return global_devices_.Add(); |
1137 | } |
1138 | inline void MeshProto::add_global_devices(const std::string& value) { |
1139 | global_devices_.Add()->assign(value); |
1140 | // @@protoc_insertion_point(field_add:tensorflow.dtensor.MeshProto.global_devices) |
1141 | } |
1142 | inline void MeshProto::add_global_devices(std::string&& value) { |
1143 | global_devices_.Add(std::move(value)); |
1144 | // @@protoc_insertion_point(field_add:tensorflow.dtensor.MeshProto.global_devices) |
1145 | } |
1146 | inline void MeshProto::add_global_devices(const char* value) { |
1147 | GOOGLE_DCHECK(value != nullptr); |
1148 | global_devices_.Add()->assign(value); |
1149 | // @@protoc_insertion_point(field_add_char:tensorflow.dtensor.MeshProto.global_devices) |
1150 | } |
1151 | inline void MeshProto::add_global_devices(const char* value, size_t size) { |
1152 | global_devices_.Add()->assign(reinterpret_cast<const char*>(value), size); |
1153 | // @@protoc_insertion_point(field_add_pointer:tensorflow.dtensor.MeshProto.global_devices) |
1154 | } |
1155 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>& |
1156 | MeshProto::global_devices() const { |
1157 | // @@protoc_insertion_point(field_list:tensorflow.dtensor.MeshProto.global_devices) |
1158 | return global_devices_; |
1159 | } |
1160 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField<std::string>* |
1161 | MeshProto::mutable_global_devices() { |
1162 | // @@protoc_insertion_point(field_mutable_list:tensorflow.dtensor.MeshProto.global_devices) |
1163 | return &global_devices_; |
1164 | } |
1165 | |
1166 | // string name = 3; |
1167 | inline void MeshProto::clear_name() { |
1168 | name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1169 | } |
1170 | inline const std::string& MeshProto::name() const { |
1171 | // @@protoc_insertion_point(field_get:tensorflow.dtensor.MeshProto.name) |
1172 | return name_.GetNoArena(); |
1173 | } |
1174 | inline void MeshProto::set_name(const std::string& value) { |
1175 | |
1176 | name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value); |
1177 | // @@protoc_insertion_point(field_set:tensorflow.dtensor.MeshProto.name) |
1178 | } |
1179 | inline void MeshProto::set_name(std::string&& value) { |
1180 | |
1181 | name_.SetNoArena( |
1182 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
1183 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.dtensor.MeshProto.name) |
1184 | } |
1185 | inline void MeshProto::set_name(const char* value) { |
1186 | GOOGLE_DCHECK(value != nullptr); |
1187 | |
1188 | name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
1189 | // @@protoc_insertion_point(field_set_char:tensorflow.dtensor.MeshProto.name) |
1190 | } |
1191 | inline void MeshProto::set_name(const char* value, size_t size) { |
1192 | |
1193 | name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
1194 | ::std::string(reinterpret_cast<const char*>(value), size)); |
1195 | // @@protoc_insertion_point(field_set_pointer:tensorflow.dtensor.MeshProto.name) |
1196 | } |
1197 | inline std::string* MeshProto::mutable_name() { |
1198 | |
1199 | // @@protoc_insertion_point(field_mutable:tensorflow.dtensor.MeshProto.name) |
1200 | return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1201 | } |
1202 | inline std::string* MeshProto::release_name() { |
1203 | // @@protoc_insertion_point(field_release:tensorflow.dtensor.MeshProto.name) |
1204 | |
1205 | return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited()); |
1206 | } |
1207 | inline void MeshProto::set_allocated_name(std::string* name) { |
1208 | if (name != nullptr) { |
1209 | |
1210 | } else { |
1211 | |
1212 | } |
1213 | name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name); |
1214 | // @@protoc_insertion_point(field_set_allocated:tensorflow.dtensor.MeshProto.name) |
1215 | } |
1216 | |
1217 | #ifdef __GNUC__ |
1218 | #pragma GCC diagnostic pop |
1219 | #endif // __GNUC__ |
1220 | // ------------------------------------------------------------------- |
1221 | |
1222 | // ------------------------------------------------------------------- |
1223 | |
1224 | // ------------------------------------------------------------------- |
1225 | |
1226 | |
1227 | // @@protoc_insertion_point(namespace_scope) |
1228 | |
1229 | } // namespace dtensor |
1230 | } // namespace tensorflow |
1231 | |
1232 | // @@protoc_insertion_point(global_scope) |
1233 | |
1234 | #include <google/protobuf/port_undef.inc> |
1235 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fdtensor_2fproto_2flayout_2eproto |
1236 | |