1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/framework/tensor_shape.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto |
6 | |
7 | #include <limits> |
8 | #include <string> |
9 | |
10 | #include <google/protobuf/port_def.inc> |
11 | #if PROTOBUF_VERSION < 3009000 |
12 | #error This file was generated by a newer version of protoc which is |
13 | #error incompatible with your Protocol Buffer headers. Please update |
14 | #error your headers. |
15 | #endif |
16 | #if 3009002 < PROTOBUF_MIN_PROTOC_VERSION |
17 | #error This file was generated by an older version of protoc which is |
18 | #error incompatible with your Protocol Buffer headers. Please |
19 | #error regenerate this file with a newer version of protoc. |
20 | #endif |
21 | |
22 | #include <google/protobuf/port_undef.inc> |
23 | #include <google/protobuf/io/coded_stream.h> |
24 | #include <google/protobuf/arena.h> |
25 | #include <google/protobuf/arenastring.h> |
26 | #include <google/protobuf/generated_message_table_driven.h> |
27 | #include <google/protobuf/generated_message_util.h> |
28 | #include <google/protobuf/inlined_string_field.h> |
29 | #include <google/protobuf/metadata.h> |
30 | #include <google/protobuf/generated_message_reflection.h> |
31 | #include <google/protobuf/message.h> |
32 | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
33 | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
34 | #include <google/protobuf/unknown_field_set.h> |
35 | // @@protoc_insertion_point(includes) |
36 | #include <google/protobuf/port_def.inc> |
37 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto |
38 | PROTOBUF_NAMESPACE_OPEN |
39 | namespace internal { |
40 | class AnyMetadata; |
41 | } // namespace internal |
42 | PROTOBUF_NAMESPACE_CLOSE |
43 | |
44 | // Internal implementation detail -- do not use these members. |
45 | struct TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fshape_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[2] |
51 | PROTOBUF_SECTION_VARIABLE(protodesc_cold); |
52 | static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[]; |
53 | static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[]; |
54 | static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[]; |
55 | }; |
56 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto; |
57 | namespace tensorflow { |
58 | class TensorShapeProto; |
59 | class TensorShapeProtoDefaultTypeInternal; |
60 | extern TensorShapeProtoDefaultTypeInternal _TensorShapeProto_default_instance_; |
61 | class TensorShapeProto_Dim; |
62 | class TensorShapeProto_DimDefaultTypeInternal; |
63 | extern TensorShapeProto_DimDefaultTypeInternal _TensorShapeProto_Dim_default_instance_; |
64 | } // namespace tensorflow |
65 | PROTOBUF_NAMESPACE_OPEN |
66 | template<> ::tensorflow::TensorShapeProto* Arena::CreateMaybeMessage<::tensorflow::TensorShapeProto>(Arena*); |
67 | template<> ::tensorflow::TensorShapeProto_Dim* Arena::CreateMaybeMessage<::tensorflow::TensorShapeProto_Dim>(Arena*); |
68 | PROTOBUF_NAMESPACE_CLOSE |
69 | namespace tensorflow { |
70 | |
71 | // =================================================================== |
72 | |
73 | class TensorShapeProto_Dim : |
74 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto.Dim) */ { |
75 | public: |
76 | TensorShapeProto_Dim(); |
77 | virtual ~TensorShapeProto_Dim(); |
78 | |
79 | TensorShapeProto_Dim(const TensorShapeProto_Dim& from); |
80 | TensorShapeProto_Dim(TensorShapeProto_Dim&& from) noexcept |
81 | : TensorShapeProto_Dim() { |
82 | *this = ::std::move(from); |
83 | } |
84 | |
85 | inline TensorShapeProto_Dim& operator=(const TensorShapeProto_Dim& from) { |
86 | CopyFrom(from); |
87 | return *this; |
88 | } |
89 | inline TensorShapeProto_Dim& operator=(TensorShapeProto_Dim&& from) noexcept { |
90 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
91 | if (this != &from) InternalSwap(&from); |
92 | } else { |
93 | CopyFrom(from); |
94 | } |
95 | return *this; |
96 | } |
97 | |
98 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
99 | return GetArenaNoVirtual(); |
100 | } |
101 | inline void* GetMaybeArenaPointer() const final { |
102 | return MaybeArenaPtr(); |
103 | } |
104 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
105 | return GetDescriptor(); |
106 | } |
107 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
108 | return GetMetadataStatic().descriptor; |
109 | } |
110 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
111 | return GetMetadataStatic().reflection; |
112 | } |
113 | static const TensorShapeProto_Dim& default_instance(); |
114 | |
115 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
116 | static inline const TensorShapeProto_Dim* internal_default_instance() { |
117 | return reinterpret_cast<const TensorShapeProto_Dim*>( |
118 | &_TensorShapeProto_Dim_default_instance_); |
119 | } |
120 | static constexpr int kIndexInFileMessages = |
121 | 0; |
122 | |
123 | friend void swap(TensorShapeProto_Dim& a, TensorShapeProto_Dim& b) { |
124 | a.Swap(&b); |
125 | } |
126 | inline void Swap(TensorShapeProto_Dim* other) { |
127 | if (other == this) return; |
128 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
129 | InternalSwap(other); |
130 | } else { |
131 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
132 | } |
133 | } |
134 | void UnsafeArenaSwap(TensorShapeProto_Dim* other) { |
135 | if (other == this) return; |
136 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
137 | InternalSwap(other); |
138 | } |
139 | |
140 | // implements Message ---------------------------------------------- |
141 | |
142 | inline TensorShapeProto_Dim* New() const final { |
143 | return CreateMaybeMessage<TensorShapeProto_Dim>(nullptr); |
144 | } |
145 | |
146 | TensorShapeProto_Dim* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
147 | return CreateMaybeMessage<TensorShapeProto_Dim>(arena); |
148 | } |
149 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
150 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
151 | void CopyFrom(const TensorShapeProto_Dim& from); |
152 | void MergeFrom(const TensorShapeProto_Dim& from); |
153 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
154 | bool IsInitialized() const final; |
155 | |
156 | size_t ByteSizeLong() const final; |
157 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
158 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
159 | #else |
160 | bool MergePartialFromCodedStream( |
161 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
162 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
163 | void SerializeWithCachedSizes( |
164 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
165 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
166 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
167 | int GetCachedSize() const final { return _cached_size_.Get(); } |
168 | |
169 | private: |
170 | inline void SharedCtor(); |
171 | inline void SharedDtor(); |
172 | void SetCachedSize(int size) const final; |
173 | void InternalSwap(TensorShapeProto_Dim* other); |
174 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
175 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
176 | return "tensorflow.TensorShapeProto.Dim" ; |
177 | } |
178 | protected: |
179 | explicit TensorShapeProto_Dim(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
180 | private: |
181 | static void ArenaDtor(void* object); |
182 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
183 | private: |
184 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
185 | return _internal_metadata_.arena(); |
186 | } |
187 | inline void* MaybeArenaPtr() const { |
188 | return _internal_metadata_.raw_arena_ptr(); |
189 | } |
190 | public: |
191 | |
192 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
193 | private: |
194 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
195 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto); |
196 | return ::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.file_level_metadata[kIndexInFileMessages]; |
197 | } |
198 | |
199 | public: |
200 | |
201 | // nested types ---------------------------------------------------- |
202 | |
203 | // accessors ------------------------------------------------------- |
204 | |
205 | enum : int { |
206 | kNameFieldNumber = 2, |
207 | kSizeFieldNumber = 1, |
208 | }; |
209 | // string name = 2; |
210 | void clear_name(); |
211 | const std::string& name() const; |
212 | void set_name(const std::string& value); |
213 | void set_name(std::string&& value); |
214 | void set_name(const char* value); |
215 | void set_name(const char* value, size_t size); |
216 | std::string* mutable_name(); |
217 | std::string* release_name(); |
218 | void set_allocated_name(std::string* name); |
219 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
220 | " string fields are deprecated and will be removed in a" |
221 | " future release." ) |
222 | std::string* unsafe_arena_release_name(); |
223 | GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for" |
224 | " string fields are deprecated and will be removed in a" |
225 | " future release." ) |
226 | void unsafe_arena_set_allocated_name( |
227 | std::string* name); |
228 | |
229 | // int64 size = 1; |
230 | void clear_size(); |
231 | ::PROTOBUF_NAMESPACE_ID::int64 size() const; |
232 | void set_size(::PROTOBUF_NAMESPACE_ID::int64 value); |
233 | |
234 | // @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto.Dim) |
235 | private: |
236 | class _Internal; |
237 | |
238 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
239 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
240 | typedef void InternalArenaConstructable_; |
241 | typedef void DestructorSkippable_; |
242 | ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_; |
243 | ::PROTOBUF_NAMESPACE_ID::int64 size_; |
244 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
245 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto; |
246 | }; |
247 | // ------------------------------------------------------------------- |
248 | |
249 | class TensorShapeProto : |
250 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.TensorShapeProto) */ { |
251 | public: |
252 | TensorShapeProto(); |
253 | virtual ~TensorShapeProto(); |
254 | |
255 | TensorShapeProto(const TensorShapeProto& from); |
256 | TensorShapeProto(TensorShapeProto&& from) noexcept |
257 | : TensorShapeProto() { |
258 | *this = ::std::move(from); |
259 | } |
260 | |
261 | inline TensorShapeProto& operator=(const TensorShapeProto& from) { |
262 | CopyFrom(from); |
263 | return *this; |
264 | } |
265 | inline TensorShapeProto& operator=(TensorShapeProto&& from) noexcept { |
266 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
267 | if (this != &from) InternalSwap(&from); |
268 | } else { |
269 | CopyFrom(from); |
270 | } |
271 | return *this; |
272 | } |
273 | |
274 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
275 | return GetArenaNoVirtual(); |
276 | } |
277 | inline void* GetMaybeArenaPointer() const final { |
278 | return MaybeArenaPtr(); |
279 | } |
280 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
281 | return GetDescriptor(); |
282 | } |
283 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
284 | return GetMetadataStatic().descriptor; |
285 | } |
286 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
287 | return GetMetadataStatic().reflection; |
288 | } |
289 | static const TensorShapeProto& default_instance(); |
290 | |
291 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
292 | static inline const TensorShapeProto* internal_default_instance() { |
293 | return reinterpret_cast<const TensorShapeProto*>( |
294 | &_TensorShapeProto_default_instance_); |
295 | } |
296 | static constexpr int kIndexInFileMessages = |
297 | 1; |
298 | |
299 | friend void swap(TensorShapeProto& a, TensorShapeProto& b) { |
300 | a.Swap(&b); |
301 | } |
302 | inline void Swap(TensorShapeProto* other) { |
303 | if (other == this) return; |
304 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
305 | InternalSwap(other); |
306 | } else { |
307 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
308 | } |
309 | } |
310 | void UnsafeArenaSwap(TensorShapeProto* other) { |
311 | if (other == this) return; |
312 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
313 | InternalSwap(other); |
314 | } |
315 | |
316 | // implements Message ---------------------------------------------- |
317 | |
318 | inline TensorShapeProto* New() const final { |
319 | return CreateMaybeMessage<TensorShapeProto>(nullptr); |
320 | } |
321 | |
322 | TensorShapeProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
323 | return CreateMaybeMessage<TensorShapeProto>(arena); |
324 | } |
325 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
326 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
327 | void CopyFrom(const TensorShapeProto& from); |
328 | void MergeFrom(const TensorShapeProto& from); |
329 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
330 | bool IsInitialized() const final; |
331 | |
332 | size_t ByteSizeLong() const final; |
333 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
334 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
335 | #else |
336 | bool MergePartialFromCodedStream( |
337 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
338 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
339 | void SerializeWithCachedSizes( |
340 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
341 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
342 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
343 | int GetCachedSize() const final { return _cached_size_.Get(); } |
344 | |
345 | private: |
346 | inline void SharedCtor(); |
347 | inline void SharedDtor(); |
348 | void SetCachedSize(int size) const final; |
349 | void InternalSwap(TensorShapeProto* other); |
350 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
351 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
352 | return "tensorflow.TensorShapeProto" ; |
353 | } |
354 | protected: |
355 | explicit TensorShapeProto(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
356 | private: |
357 | static void ArenaDtor(void* object); |
358 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
359 | private: |
360 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
361 | return _internal_metadata_.arena(); |
362 | } |
363 | inline void* MaybeArenaPtr() const { |
364 | return _internal_metadata_.raw_arena_ptr(); |
365 | } |
366 | public: |
367 | |
368 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
369 | private: |
370 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
371 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto); |
372 | return ::descriptor_table_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto.file_level_metadata[kIndexInFileMessages]; |
373 | } |
374 | |
375 | public: |
376 | |
377 | // nested types ---------------------------------------------------- |
378 | |
379 | typedef TensorShapeProto_Dim Dim; |
380 | |
381 | // accessors ------------------------------------------------------- |
382 | |
383 | enum : int { |
384 | kDimFieldNumber = 2, |
385 | kUnknownRankFieldNumber = 3, |
386 | }; |
387 | // repeated .tensorflow.TensorShapeProto.Dim dim = 2; |
388 | int dim_size() const; |
389 | void clear_dim(); |
390 | ::tensorflow::TensorShapeProto_Dim* mutable_dim(int index); |
391 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >* |
392 | mutable_dim(); |
393 | const ::tensorflow::TensorShapeProto_Dim& dim(int index) const; |
394 | ::tensorflow::TensorShapeProto_Dim* add_dim(); |
395 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >& |
396 | dim() const; |
397 | |
398 | // bool unknown_rank = 3; |
399 | void clear_unknown_rank(); |
400 | bool unknown_rank() const; |
401 | void set_unknown_rank(bool value); |
402 | |
403 | // @@protoc_insertion_point(class_scope:tensorflow.TensorShapeProto) |
404 | private: |
405 | class _Internal; |
406 | |
407 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
408 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
409 | typedef void InternalArenaConstructable_; |
410 | typedef void DestructorSkippable_; |
411 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim > dim_; |
412 | bool unknown_rank_; |
413 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
414 | friend struct ::TableStruct_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto; |
415 | }; |
416 | // =================================================================== |
417 | |
418 | |
419 | // =================================================================== |
420 | |
421 | #ifdef __GNUC__ |
422 | #pragma GCC diagnostic push |
423 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
424 | #endif // __GNUC__ |
425 | // TensorShapeProto_Dim |
426 | |
427 | // int64 size = 1; |
428 | inline void TensorShapeProto_Dim::clear_size() { |
429 | size_ = PROTOBUF_LONGLONG(0); |
430 | } |
431 | inline ::PROTOBUF_NAMESPACE_ID::int64 TensorShapeProto_Dim::size() const { |
432 | // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.size) |
433 | return size_; |
434 | } |
435 | inline void TensorShapeProto_Dim::set_size(::PROTOBUF_NAMESPACE_ID::int64 value) { |
436 | |
437 | size_ = value; |
438 | // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.size) |
439 | } |
440 | |
441 | // string name = 2; |
442 | inline void TensorShapeProto_Dim::clear_name() { |
443 | name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
444 | } |
445 | inline const std::string& TensorShapeProto_Dim::name() const { |
446 | // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.Dim.name) |
447 | return name_.Get(); |
448 | } |
449 | inline void TensorShapeProto_Dim::set_name(const std::string& value) { |
450 | |
451 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual()); |
452 | // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.Dim.name) |
453 | } |
454 | inline void TensorShapeProto_Dim::set_name(std::string&& value) { |
455 | |
456 | name_.Set( |
457 | &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual()); |
458 | // @@protoc_insertion_point(field_set_rvalue:tensorflow.TensorShapeProto.Dim.name) |
459 | } |
460 | inline void TensorShapeProto_Dim::set_name(const char* value) { |
461 | GOOGLE_DCHECK(value != nullptr); |
462 | |
463 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value), |
464 | GetArenaNoVirtual()); |
465 | // @@protoc_insertion_point(field_set_char:tensorflow.TensorShapeProto.Dim.name) |
466 | } |
467 | inline void TensorShapeProto_Dim::set_name(const char* value, |
468 | size_t size) { |
469 | |
470 | name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string( |
471 | reinterpret_cast<const char*>(value), size), GetArenaNoVirtual()); |
472 | // @@protoc_insertion_point(field_set_pointer:tensorflow.TensorShapeProto.Dim.name) |
473 | } |
474 | inline std::string* TensorShapeProto_Dim::mutable_name() { |
475 | |
476 | // @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.Dim.name) |
477 | return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
478 | } |
479 | inline std::string* TensorShapeProto_Dim::release_name() { |
480 | // @@protoc_insertion_point(field_release:tensorflow.TensorShapeProto.Dim.name) |
481 | |
482 | return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual()); |
483 | } |
484 | inline void TensorShapeProto_Dim::set_allocated_name(std::string* name) { |
485 | if (name != nullptr) { |
486 | |
487 | } else { |
488 | |
489 | } |
490 | name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name, |
491 | GetArenaNoVirtual()); |
492 | // @@protoc_insertion_point(field_set_allocated:tensorflow.TensorShapeProto.Dim.name) |
493 | } |
494 | inline std::string* TensorShapeProto_Dim::unsafe_arena_release_name() { |
495 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.TensorShapeProto.Dim.name) |
496 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
497 | |
498 | return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
499 | GetArenaNoVirtual()); |
500 | } |
501 | inline void TensorShapeProto_Dim::unsafe_arena_set_allocated_name( |
502 | std::string* name) { |
503 | GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr); |
504 | if (name != nullptr) { |
505 | |
506 | } else { |
507 | |
508 | } |
509 | name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), |
510 | name, GetArenaNoVirtual()); |
511 | // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.TensorShapeProto.Dim.name) |
512 | } |
513 | |
514 | // ------------------------------------------------------------------- |
515 | |
516 | // TensorShapeProto |
517 | |
518 | // repeated .tensorflow.TensorShapeProto.Dim dim = 2; |
519 | inline int TensorShapeProto::dim_size() const { |
520 | return dim_.size(); |
521 | } |
522 | inline void TensorShapeProto::clear_dim() { |
523 | dim_.Clear(); |
524 | } |
525 | inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::mutable_dim(int index) { |
526 | // @@protoc_insertion_point(field_mutable:tensorflow.TensorShapeProto.dim) |
527 | return dim_.Mutable(index); |
528 | } |
529 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >* |
530 | TensorShapeProto::mutable_dim() { |
531 | // @@protoc_insertion_point(field_mutable_list:tensorflow.TensorShapeProto.dim) |
532 | return &dim_; |
533 | } |
534 | inline const ::tensorflow::TensorShapeProto_Dim& TensorShapeProto::dim(int index) const { |
535 | // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.dim) |
536 | return dim_.Get(index); |
537 | } |
538 | inline ::tensorflow::TensorShapeProto_Dim* TensorShapeProto::add_dim() { |
539 | // @@protoc_insertion_point(field_add:tensorflow.TensorShapeProto.dim) |
540 | return dim_.Add(); |
541 | } |
542 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::TensorShapeProto_Dim >& |
543 | TensorShapeProto::dim() const { |
544 | // @@protoc_insertion_point(field_list:tensorflow.TensorShapeProto.dim) |
545 | return dim_; |
546 | } |
547 | |
548 | // bool unknown_rank = 3; |
549 | inline void TensorShapeProto::clear_unknown_rank() { |
550 | unknown_rank_ = false; |
551 | } |
552 | inline bool TensorShapeProto::unknown_rank() const { |
553 | // @@protoc_insertion_point(field_get:tensorflow.TensorShapeProto.unknown_rank) |
554 | return unknown_rank_; |
555 | } |
556 | inline void TensorShapeProto::set_unknown_rank(bool value) { |
557 | |
558 | unknown_rank_ = value; |
559 | // @@protoc_insertion_point(field_set:tensorflow.TensorShapeProto.unknown_rank) |
560 | } |
561 | |
562 | #ifdef __GNUC__ |
563 | #pragma GCC diagnostic pop |
564 | #endif // __GNUC__ |
565 | // ------------------------------------------------------------------- |
566 | |
567 | |
568 | // @@protoc_insertion_point(namespace_scope) |
569 | |
570 | } // namespace tensorflow |
571 | |
572 | // @@protoc_insertion_point(global_scope) |
573 | |
574 | #include <google/protobuf/port_undef.inc> |
575 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2ftensor_5fshape_2eproto |
576 | |