1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/python/framework/cpp_shape_inference.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_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 | #include "tensorflow/core/framework/full_type.pb.h" |
36 | #include "tensorflow/core/framework/tensor_shape.pb.h" |
37 | #include "tensorflow/core/framework/types.pb.h" |
38 | // @@protoc_insertion_point(includes) |
39 | #include <google/protobuf/port_def.inc> |
40 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_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_2fpython_2fframework_2fcpp_5fshape_5finference_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_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto; |
60 | namespace tensorflow { |
61 | class CppShapeInferenceInputsNeeded; |
62 | class CppShapeInferenceInputsNeededDefaultTypeInternal; |
63 | extern CppShapeInferenceInputsNeededDefaultTypeInternal _CppShapeInferenceInputsNeeded_default_instance_; |
64 | class CppShapeInferenceResult; |
65 | class CppShapeInferenceResultDefaultTypeInternal; |
66 | extern CppShapeInferenceResultDefaultTypeInternal _CppShapeInferenceResult_default_instance_; |
67 | class CppShapeInferenceResult_HandleData; |
68 | class CppShapeInferenceResult_HandleDataDefaultTypeInternal; |
69 | extern CppShapeInferenceResult_HandleDataDefaultTypeInternal _CppShapeInferenceResult_HandleData_default_instance_; |
70 | class CppShapeInferenceResult_HandleShapeAndType; |
71 | class CppShapeInferenceResult_HandleShapeAndTypeDefaultTypeInternal; |
72 | extern CppShapeInferenceResult_HandleShapeAndTypeDefaultTypeInternal _CppShapeInferenceResult_HandleShapeAndType_default_instance_; |
73 | } // namespace tensorflow |
74 | PROTOBUF_NAMESPACE_OPEN |
75 | template<> ::tensorflow::CppShapeInferenceInputsNeeded* Arena::CreateMaybeMessage<::tensorflow::CppShapeInferenceInputsNeeded>(Arena*); |
76 | template<> ::tensorflow::CppShapeInferenceResult* Arena::CreateMaybeMessage<::tensorflow::CppShapeInferenceResult>(Arena*); |
77 | template<> ::tensorflow::CppShapeInferenceResult_HandleData* Arena::CreateMaybeMessage<::tensorflow::CppShapeInferenceResult_HandleData>(Arena*); |
78 | template<> ::tensorflow::CppShapeInferenceResult_HandleShapeAndType* Arena::CreateMaybeMessage<::tensorflow::CppShapeInferenceResult_HandleShapeAndType>(Arena*); |
79 | PROTOBUF_NAMESPACE_CLOSE |
80 | namespace tensorflow { |
81 | |
82 | // =================================================================== |
83 | |
84 | class CppShapeInferenceResult_HandleShapeAndType : |
85 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.CppShapeInferenceResult.HandleShapeAndType) */ { |
86 | public: |
87 | CppShapeInferenceResult_HandleShapeAndType(); |
88 | virtual ~CppShapeInferenceResult_HandleShapeAndType(); |
89 | |
90 | CppShapeInferenceResult_HandleShapeAndType(const CppShapeInferenceResult_HandleShapeAndType& from); |
91 | CppShapeInferenceResult_HandleShapeAndType(CppShapeInferenceResult_HandleShapeAndType&& from) noexcept |
92 | : CppShapeInferenceResult_HandleShapeAndType() { |
93 | *this = ::std::move(from); |
94 | } |
95 | |
96 | inline CppShapeInferenceResult_HandleShapeAndType& operator=(const CppShapeInferenceResult_HandleShapeAndType& from) { |
97 | CopyFrom(from); |
98 | return *this; |
99 | } |
100 | inline CppShapeInferenceResult_HandleShapeAndType& operator=(CppShapeInferenceResult_HandleShapeAndType&& 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 CppShapeInferenceResult_HandleShapeAndType& default_instance(); |
125 | |
126 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
127 | static inline const CppShapeInferenceResult_HandleShapeAndType* internal_default_instance() { |
128 | return reinterpret_cast<const CppShapeInferenceResult_HandleShapeAndType*>( |
129 | &_CppShapeInferenceResult_HandleShapeAndType_default_instance_); |
130 | } |
131 | static constexpr int kIndexInFileMessages = |
132 | 0; |
133 | |
134 | friend void swap(CppShapeInferenceResult_HandleShapeAndType& a, CppShapeInferenceResult_HandleShapeAndType& b) { |
135 | a.Swap(&b); |
136 | } |
137 | inline void Swap(CppShapeInferenceResult_HandleShapeAndType* 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(CppShapeInferenceResult_HandleShapeAndType* other) { |
146 | if (other == this) return; |
147 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
148 | InternalSwap(other); |
149 | } |
150 | |
151 | // implements Message ---------------------------------------------- |
152 | |
153 | inline CppShapeInferenceResult_HandleShapeAndType* New() const final { |
154 | return CreateMaybeMessage<CppShapeInferenceResult_HandleShapeAndType>(nullptr); |
155 | } |
156 | |
157 | CppShapeInferenceResult_HandleShapeAndType* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
158 | return CreateMaybeMessage<CppShapeInferenceResult_HandleShapeAndType>(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 CppShapeInferenceResult_HandleShapeAndType& from); |
163 | void MergeFrom(const CppShapeInferenceResult_HandleShapeAndType& 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(CppShapeInferenceResult_HandleShapeAndType* other); |
185 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
186 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
187 | return "tensorflow.CppShapeInferenceResult.HandleShapeAndType" ; |
188 | } |
189 | protected: |
190 | explicit CppShapeInferenceResult_HandleShapeAndType(::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_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto); |
207 | return ::descriptor_table_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto.file_level_metadata[kIndexInFileMessages]; |
208 | } |
209 | |
210 | public: |
211 | |
212 | // nested types ---------------------------------------------------- |
213 | |
214 | // accessors ------------------------------------------------------- |
215 | |
216 | enum : int { |
217 | kShapeFieldNumber = 1, |
218 | kTypeFieldNumber = 4, |
219 | kDtypeFieldNumber = 2, |
220 | }; |
221 | // .tensorflow.TensorShapeProto shape = 1; |
222 | bool has_shape() const; |
223 | void clear_shape(); |
224 | const ::tensorflow::TensorShapeProto& shape() const; |
225 | ::tensorflow::TensorShapeProto* release_shape(); |
226 | ::tensorflow::TensorShapeProto* mutable_shape(); |
227 | void set_allocated_shape(::tensorflow::TensorShapeProto* shape); |
228 | void unsafe_arena_set_allocated_shape( |
229 | ::tensorflow::TensorShapeProto* shape); |
230 | ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); |
231 | |
232 | // .tensorflow.FullTypeDef type = 4; |
233 | bool has_type() const; |
234 | void clear_type(); |
235 | const ::tensorflow::FullTypeDef& type() const; |
236 | ::tensorflow::FullTypeDef* release_type(); |
237 | ::tensorflow::FullTypeDef* mutable_type(); |
238 | void set_allocated_type(::tensorflow::FullTypeDef* type); |
239 | void unsafe_arena_set_allocated_type( |
240 | ::tensorflow::FullTypeDef* type); |
241 | ::tensorflow::FullTypeDef* unsafe_arena_release_type(); |
242 | |
243 | // .tensorflow.DataType dtype = 2; |
244 | void clear_dtype(); |
245 | ::tensorflow::DataType dtype() const; |
246 | void set_dtype(::tensorflow::DataType value); |
247 | |
248 | // @@protoc_insertion_point(class_scope:tensorflow.CppShapeInferenceResult.HandleShapeAndType) |
249 | private: |
250 | class _Internal; |
251 | |
252 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
253 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
254 | typedef void InternalArenaConstructable_; |
255 | typedef void DestructorSkippable_; |
256 | ::tensorflow::TensorShapeProto* shape_; |
257 | ::tensorflow::FullTypeDef* type_; |
258 | int dtype_; |
259 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
260 | friend struct ::TableStruct_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto; |
261 | }; |
262 | // ------------------------------------------------------------------- |
263 | |
264 | class CppShapeInferenceResult_HandleData : |
265 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.CppShapeInferenceResult.HandleData) */ { |
266 | public: |
267 | CppShapeInferenceResult_HandleData(); |
268 | virtual ~CppShapeInferenceResult_HandleData(); |
269 | |
270 | CppShapeInferenceResult_HandleData(const CppShapeInferenceResult_HandleData& from); |
271 | CppShapeInferenceResult_HandleData(CppShapeInferenceResult_HandleData&& from) noexcept |
272 | : CppShapeInferenceResult_HandleData() { |
273 | *this = ::std::move(from); |
274 | } |
275 | |
276 | inline CppShapeInferenceResult_HandleData& operator=(const CppShapeInferenceResult_HandleData& from) { |
277 | CopyFrom(from); |
278 | return *this; |
279 | } |
280 | inline CppShapeInferenceResult_HandleData& operator=(CppShapeInferenceResult_HandleData&& from) noexcept { |
281 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
282 | if (this != &from) InternalSwap(&from); |
283 | } else { |
284 | CopyFrom(from); |
285 | } |
286 | return *this; |
287 | } |
288 | |
289 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
290 | return GetArenaNoVirtual(); |
291 | } |
292 | inline void* GetMaybeArenaPointer() const final { |
293 | return MaybeArenaPtr(); |
294 | } |
295 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
296 | return GetDescriptor(); |
297 | } |
298 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
299 | return GetMetadataStatic().descriptor; |
300 | } |
301 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
302 | return GetMetadataStatic().reflection; |
303 | } |
304 | static const CppShapeInferenceResult_HandleData& default_instance(); |
305 | |
306 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
307 | static inline const CppShapeInferenceResult_HandleData* internal_default_instance() { |
308 | return reinterpret_cast<const CppShapeInferenceResult_HandleData*>( |
309 | &_CppShapeInferenceResult_HandleData_default_instance_); |
310 | } |
311 | static constexpr int kIndexInFileMessages = |
312 | 1; |
313 | |
314 | friend void swap(CppShapeInferenceResult_HandleData& a, CppShapeInferenceResult_HandleData& b) { |
315 | a.Swap(&b); |
316 | } |
317 | inline void Swap(CppShapeInferenceResult_HandleData* other) { |
318 | if (other == this) return; |
319 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
320 | InternalSwap(other); |
321 | } else { |
322 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
323 | } |
324 | } |
325 | void UnsafeArenaSwap(CppShapeInferenceResult_HandleData* other) { |
326 | if (other == this) return; |
327 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
328 | InternalSwap(other); |
329 | } |
330 | |
331 | // implements Message ---------------------------------------------- |
332 | |
333 | inline CppShapeInferenceResult_HandleData* New() const final { |
334 | return CreateMaybeMessage<CppShapeInferenceResult_HandleData>(nullptr); |
335 | } |
336 | |
337 | CppShapeInferenceResult_HandleData* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
338 | return CreateMaybeMessage<CppShapeInferenceResult_HandleData>(arena); |
339 | } |
340 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
341 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
342 | void CopyFrom(const CppShapeInferenceResult_HandleData& from); |
343 | void MergeFrom(const CppShapeInferenceResult_HandleData& from); |
344 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
345 | bool IsInitialized() const final; |
346 | |
347 | size_t ByteSizeLong() const final; |
348 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
349 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
350 | #else |
351 | bool MergePartialFromCodedStream( |
352 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
353 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
354 | void SerializeWithCachedSizes( |
355 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
356 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
357 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
358 | int GetCachedSize() const final { return _cached_size_.Get(); } |
359 | |
360 | private: |
361 | inline void SharedCtor(); |
362 | inline void SharedDtor(); |
363 | void SetCachedSize(int size) const final; |
364 | void InternalSwap(CppShapeInferenceResult_HandleData* other); |
365 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
366 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
367 | return "tensorflow.CppShapeInferenceResult.HandleData" ; |
368 | } |
369 | protected: |
370 | explicit CppShapeInferenceResult_HandleData(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
371 | private: |
372 | static void ArenaDtor(void* object); |
373 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
374 | private: |
375 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
376 | return _internal_metadata_.arena(); |
377 | } |
378 | inline void* MaybeArenaPtr() const { |
379 | return _internal_metadata_.raw_arena_ptr(); |
380 | } |
381 | public: |
382 | |
383 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
384 | private: |
385 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
386 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto); |
387 | return ::descriptor_table_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto.file_level_metadata[kIndexInFileMessages]; |
388 | } |
389 | |
390 | public: |
391 | |
392 | // nested types ---------------------------------------------------- |
393 | |
394 | // accessors ------------------------------------------------------- |
395 | |
396 | enum : int { |
397 | kShapeAndTypeFieldNumber = 2, |
398 | kIsSetFieldNumber = 1, |
399 | }; |
400 | // repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; |
401 | int shape_and_type_size() const; |
402 | void clear_shape_and_type(); |
403 | ::tensorflow::CppShapeInferenceResult_HandleShapeAndType* mutable_shape_and_type(int index); |
404 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CppShapeInferenceResult_HandleShapeAndType >* |
405 | mutable_shape_and_type(); |
406 | const ::tensorflow::CppShapeInferenceResult_HandleShapeAndType& shape_and_type(int index) const; |
407 | ::tensorflow::CppShapeInferenceResult_HandleShapeAndType* add_shape_and_type(); |
408 | const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CppShapeInferenceResult_HandleShapeAndType >& |
409 | shape_and_type() const; |
410 | |
411 | // bool is_set = 1; |
412 | void clear_is_set(); |
413 | bool is_set() const; |
414 | void set_is_set(bool value); |
415 | |
416 | // @@protoc_insertion_point(class_scope:tensorflow.CppShapeInferenceResult.HandleData) |
417 | private: |
418 | class _Internal; |
419 | |
420 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
421 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
422 | typedef void InternalArenaConstructable_; |
423 | typedef void DestructorSkippable_; |
424 | ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CppShapeInferenceResult_HandleShapeAndType > shape_and_type_; |
425 | bool is_set_; |
426 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
427 | friend struct ::TableStruct_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto; |
428 | }; |
429 | // ------------------------------------------------------------------- |
430 | |
431 | class CppShapeInferenceResult : |
432 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.CppShapeInferenceResult) */ { |
433 | public: |
434 | CppShapeInferenceResult(); |
435 | virtual ~CppShapeInferenceResult(); |
436 | |
437 | CppShapeInferenceResult(const CppShapeInferenceResult& from); |
438 | CppShapeInferenceResult(CppShapeInferenceResult&& from) noexcept |
439 | : CppShapeInferenceResult() { |
440 | *this = ::std::move(from); |
441 | } |
442 | |
443 | inline CppShapeInferenceResult& operator=(const CppShapeInferenceResult& from) { |
444 | CopyFrom(from); |
445 | return *this; |
446 | } |
447 | inline CppShapeInferenceResult& operator=(CppShapeInferenceResult&& from) noexcept { |
448 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
449 | if (this != &from) InternalSwap(&from); |
450 | } else { |
451 | CopyFrom(from); |
452 | } |
453 | return *this; |
454 | } |
455 | |
456 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
457 | return GetArenaNoVirtual(); |
458 | } |
459 | inline void* GetMaybeArenaPointer() const final { |
460 | return MaybeArenaPtr(); |
461 | } |
462 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
463 | return GetDescriptor(); |
464 | } |
465 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
466 | return GetMetadataStatic().descriptor; |
467 | } |
468 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
469 | return GetMetadataStatic().reflection; |
470 | } |
471 | static const CppShapeInferenceResult& default_instance(); |
472 | |
473 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
474 | static inline const CppShapeInferenceResult* internal_default_instance() { |
475 | return reinterpret_cast<const CppShapeInferenceResult*>( |
476 | &_CppShapeInferenceResult_default_instance_); |
477 | } |
478 | static constexpr int kIndexInFileMessages = |
479 | 2; |
480 | |
481 | friend void swap(CppShapeInferenceResult& a, CppShapeInferenceResult& b) { |
482 | a.Swap(&b); |
483 | } |
484 | inline void Swap(CppShapeInferenceResult* other) { |
485 | if (other == this) return; |
486 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
487 | InternalSwap(other); |
488 | } else { |
489 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
490 | } |
491 | } |
492 | void UnsafeArenaSwap(CppShapeInferenceResult* other) { |
493 | if (other == this) return; |
494 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
495 | InternalSwap(other); |
496 | } |
497 | |
498 | // implements Message ---------------------------------------------- |
499 | |
500 | inline CppShapeInferenceResult* New() const final { |
501 | return CreateMaybeMessage<CppShapeInferenceResult>(nullptr); |
502 | } |
503 | |
504 | CppShapeInferenceResult* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
505 | return CreateMaybeMessage<CppShapeInferenceResult>(arena); |
506 | } |
507 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
508 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
509 | void CopyFrom(const CppShapeInferenceResult& from); |
510 | void MergeFrom(const CppShapeInferenceResult& from); |
511 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
512 | bool IsInitialized() const final; |
513 | |
514 | size_t ByteSizeLong() const final; |
515 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
516 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
517 | #else |
518 | bool MergePartialFromCodedStream( |
519 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
520 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
521 | void SerializeWithCachedSizes( |
522 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
523 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
524 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
525 | int GetCachedSize() const final { return _cached_size_.Get(); } |
526 | |
527 | private: |
528 | inline void SharedCtor(); |
529 | inline void SharedDtor(); |
530 | void SetCachedSize(int size) const final; |
531 | void InternalSwap(CppShapeInferenceResult* other); |
532 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
533 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
534 | return "tensorflow.CppShapeInferenceResult" ; |
535 | } |
536 | protected: |
537 | explicit CppShapeInferenceResult(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
538 | private: |
539 | static void ArenaDtor(void* object); |
540 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
541 | private: |
542 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
543 | return _internal_metadata_.arena(); |
544 | } |
545 | inline void* MaybeArenaPtr() const { |
546 | return _internal_metadata_.raw_arena_ptr(); |
547 | } |
548 | public: |
549 | |
550 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
551 | private: |
552 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
553 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto); |
554 | return ::descriptor_table_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto.file_level_metadata[kIndexInFileMessages]; |
555 | } |
556 | |
557 | public: |
558 | |
559 | // nested types ---------------------------------------------------- |
560 | |
561 | typedef CppShapeInferenceResult_HandleShapeAndType HandleShapeAndType; |
562 | typedef CppShapeInferenceResult_HandleData HandleData; |
563 | |
564 | // accessors ------------------------------------------------------- |
565 | |
566 | enum : int { |
567 | kShapeFieldNumber = 1, |
568 | kHandleDataFieldNumber = 4, |
569 | }; |
570 | // .tensorflow.TensorShapeProto shape = 1; |
571 | bool has_shape() const; |
572 | void clear_shape(); |
573 | const ::tensorflow::TensorShapeProto& shape() const; |
574 | ::tensorflow::TensorShapeProto* release_shape(); |
575 | ::tensorflow::TensorShapeProto* mutable_shape(); |
576 | void set_allocated_shape(::tensorflow::TensorShapeProto* shape); |
577 | void unsafe_arena_set_allocated_shape( |
578 | ::tensorflow::TensorShapeProto* shape); |
579 | ::tensorflow::TensorShapeProto* unsafe_arena_release_shape(); |
580 | |
581 | // .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; |
582 | bool has_handle_data() const; |
583 | void clear_handle_data(); |
584 | const ::tensorflow::CppShapeInferenceResult_HandleData& handle_data() const; |
585 | ::tensorflow::CppShapeInferenceResult_HandleData* release_handle_data(); |
586 | ::tensorflow::CppShapeInferenceResult_HandleData* mutable_handle_data(); |
587 | void set_allocated_handle_data(::tensorflow::CppShapeInferenceResult_HandleData* handle_data); |
588 | void unsafe_arena_set_allocated_handle_data( |
589 | ::tensorflow::CppShapeInferenceResult_HandleData* handle_data); |
590 | ::tensorflow::CppShapeInferenceResult_HandleData* unsafe_arena_release_handle_data(); |
591 | |
592 | // @@protoc_insertion_point(class_scope:tensorflow.CppShapeInferenceResult) |
593 | private: |
594 | class _Internal; |
595 | |
596 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
597 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
598 | typedef void InternalArenaConstructable_; |
599 | typedef void DestructorSkippable_; |
600 | ::tensorflow::TensorShapeProto* shape_; |
601 | ::tensorflow::CppShapeInferenceResult_HandleData* handle_data_; |
602 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
603 | friend struct ::TableStruct_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto; |
604 | }; |
605 | // ------------------------------------------------------------------- |
606 | |
607 | class CppShapeInferenceInputsNeeded : |
608 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.CppShapeInferenceInputsNeeded) */ { |
609 | public: |
610 | CppShapeInferenceInputsNeeded(); |
611 | virtual ~CppShapeInferenceInputsNeeded(); |
612 | |
613 | CppShapeInferenceInputsNeeded(const CppShapeInferenceInputsNeeded& from); |
614 | CppShapeInferenceInputsNeeded(CppShapeInferenceInputsNeeded&& from) noexcept |
615 | : CppShapeInferenceInputsNeeded() { |
616 | *this = ::std::move(from); |
617 | } |
618 | |
619 | inline CppShapeInferenceInputsNeeded& operator=(const CppShapeInferenceInputsNeeded& from) { |
620 | CopyFrom(from); |
621 | return *this; |
622 | } |
623 | inline CppShapeInferenceInputsNeeded& operator=(CppShapeInferenceInputsNeeded&& from) noexcept { |
624 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
625 | if (this != &from) InternalSwap(&from); |
626 | } else { |
627 | CopyFrom(from); |
628 | } |
629 | return *this; |
630 | } |
631 | |
632 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
633 | return GetArenaNoVirtual(); |
634 | } |
635 | inline void* GetMaybeArenaPointer() const final { |
636 | return MaybeArenaPtr(); |
637 | } |
638 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
639 | return GetDescriptor(); |
640 | } |
641 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
642 | return GetMetadataStatic().descriptor; |
643 | } |
644 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
645 | return GetMetadataStatic().reflection; |
646 | } |
647 | static const CppShapeInferenceInputsNeeded& default_instance(); |
648 | |
649 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
650 | static inline const CppShapeInferenceInputsNeeded* internal_default_instance() { |
651 | return reinterpret_cast<const CppShapeInferenceInputsNeeded*>( |
652 | &_CppShapeInferenceInputsNeeded_default_instance_); |
653 | } |
654 | static constexpr int kIndexInFileMessages = |
655 | 3; |
656 | |
657 | friend void swap(CppShapeInferenceInputsNeeded& a, CppShapeInferenceInputsNeeded& b) { |
658 | a.Swap(&b); |
659 | } |
660 | inline void Swap(CppShapeInferenceInputsNeeded* other) { |
661 | if (other == this) return; |
662 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
663 | InternalSwap(other); |
664 | } else { |
665 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
666 | } |
667 | } |
668 | void UnsafeArenaSwap(CppShapeInferenceInputsNeeded* other) { |
669 | if (other == this) return; |
670 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
671 | InternalSwap(other); |
672 | } |
673 | |
674 | // implements Message ---------------------------------------------- |
675 | |
676 | inline CppShapeInferenceInputsNeeded* New() const final { |
677 | return CreateMaybeMessage<CppShapeInferenceInputsNeeded>(nullptr); |
678 | } |
679 | |
680 | CppShapeInferenceInputsNeeded* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
681 | return CreateMaybeMessage<CppShapeInferenceInputsNeeded>(arena); |
682 | } |
683 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
684 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
685 | void CopyFrom(const CppShapeInferenceInputsNeeded& from); |
686 | void MergeFrom(const CppShapeInferenceInputsNeeded& from); |
687 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
688 | bool IsInitialized() const final; |
689 | |
690 | size_t ByteSizeLong() const final; |
691 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
692 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
693 | #else |
694 | bool MergePartialFromCodedStream( |
695 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
696 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
697 | void SerializeWithCachedSizes( |
698 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
699 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
700 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
701 | int GetCachedSize() const final { return _cached_size_.Get(); } |
702 | |
703 | private: |
704 | inline void SharedCtor(); |
705 | inline void SharedDtor(); |
706 | void SetCachedSize(int size) const final; |
707 | void InternalSwap(CppShapeInferenceInputsNeeded* other); |
708 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
709 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
710 | return "tensorflow.CppShapeInferenceInputsNeeded" ; |
711 | } |
712 | protected: |
713 | explicit CppShapeInferenceInputsNeeded(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
714 | private: |
715 | static void ArenaDtor(void* object); |
716 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
717 | private: |
718 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
719 | return _internal_metadata_.arena(); |
720 | } |
721 | inline void* MaybeArenaPtr() const { |
722 | return _internal_metadata_.raw_arena_ptr(); |
723 | } |
724 | public: |
725 | |
726 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
727 | private: |
728 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
729 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto); |
730 | return ::descriptor_table_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto.file_level_metadata[kIndexInFileMessages]; |
731 | } |
732 | |
733 | public: |
734 | |
735 | // nested types ---------------------------------------------------- |
736 | |
737 | // accessors ------------------------------------------------------- |
738 | |
739 | enum : int { |
740 | kInputTensorsNeededFieldNumber = 1, |
741 | kInputTensorsAsShapesNeededFieldNumber = 2, |
742 | }; |
743 | // repeated int32 input_tensors_needed = 1; |
744 | int input_tensors_needed_size() const; |
745 | void clear_input_tensors_needed(); |
746 | ::PROTOBUF_NAMESPACE_ID::int32 input_tensors_needed(int index) const; |
747 | void set_input_tensors_needed(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); |
748 | void add_input_tensors_needed(::PROTOBUF_NAMESPACE_ID::int32 value); |
749 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
750 | input_tensors_needed() const; |
751 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
752 | mutable_input_tensors_needed(); |
753 | |
754 | // repeated int32 input_tensors_as_shapes_needed = 2; |
755 | int input_tensors_as_shapes_needed_size() const; |
756 | void clear_input_tensors_as_shapes_needed(); |
757 | ::PROTOBUF_NAMESPACE_ID::int32 input_tensors_as_shapes_needed(int index) const; |
758 | void set_input_tensors_as_shapes_needed(int index, ::PROTOBUF_NAMESPACE_ID::int32 value); |
759 | void add_input_tensors_as_shapes_needed(::PROTOBUF_NAMESPACE_ID::int32 value); |
760 | const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
761 | input_tensors_as_shapes_needed() const; |
762 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
763 | mutable_input_tensors_as_shapes_needed(); |
764 | |
765 | // @@protoc_insertion_point(class_scope:tensorflow.CppShapeInferenceInputsNeeded) |
766 | private: |
767 | class _Internal; |
768 | |
769 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
770 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
771 | typedef void InternalArenaConstructable_; |
772 | typedef void DestructorSkippable_; |
773 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > input_tensors_needed_; |
774 | mutable std::atomic<int> _input_tensors_needed_cached_byte_size_; |
775 | ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 > input_tensors_as_shapes_needed_; |
776 | mutable std::atomic<int> _input_tensors_as_shapes_needed_cached_byte_size_; |
777 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
778 | friend struct ::TableStruct_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto; |
779 | }; |
780 | // =================================================================== |
781 | |
782 | |
783 | // =================================================================== |
784 | |
785 | #ifdef __GNUC__ |
786 | #pragma GCC diagnostic push |
787 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
788 | #endif // __GNUC__ |
789 | // CppShapeInferenceResult_HandleShapeAndType |
790 | |
791 | // .tensorflow.TensorShapeProto shape = 1; |
792 | inline bool CppShapeInferenceResult_HandleShapeAndType::has_shape() const { |
793 | return this != internal_default_instance() && shape_ != nullptr; |
794 | } |
795 | inline const ::tensorflow::TensorShapeProto& CppShapeInferenceResult_HandleShapeAndType::shape() const { |
796 | const ::tensorflow::TensorShapeProto* p = shape_; |
797 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceResult.HandleShapeAndType.shape) |
798 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>( |
799 | &::tensorflow::_TensorShapeProto_default_instance_); |
800 | } |
801 | inline ::tensorflow::TensorShapeProto* CppShapeInferenceResult_HandleShapeAndType::release_shape() { |
802 | // @@protoc_insertion_point(field_release:tensorflow.CppShapeInferenceResult.HandleShapeAndType.shape) |
803 | |
804 | ::tensorflow::TensorShapeProto* temp = shape_; |
805 | if (GetArenaNoVirtual() != nullptr) { |
806 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
807 | } |
808 | shape_ = nullptr; |
809 | return temp; |
810 | } |
811 | inline ::tensorflow::TensorShapeProto* CppShapeInferenceResult_HandleShapeAndType::unsafe_arena_release_shape() { |
812 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CppShapeInferenceResult.HandleShapeAndType.shape) |
813 | |
814 | ::tensorflow::TensorShapeProto* temp = shape_; |
815 | shape_ = nullptr; |
816 | return temp; |
817 | } |
818 | inline ::tensorflow::TensorShapeProto* CppShapeInferenceResult_HandleShapeAndType::mutable_shape() { |
819 | |
820 | if (shape_ == nullptr) { |
821 | auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); |
822 | shape_ = p; |
823 | } |
824 | // @@protoc_insertion_point(field_mutable:tensorflow.CppShapeInferenceResult.HandleShapeAndType.shape) |
825 | return shape_; |
826 | } |
827 | inline void CppShapeInferenceResult_HandleShapeAndType::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { |
828 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
829 | if (message_arena == nullptr) { |
830 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_); |
831 | } |
832 | if (shape) { |
833 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
834 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape)->GetArena(); |
835 | if (message_arena != submessage_arena) { |
836 | shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
837 | message_arena, shape, submessage_arena); |
838 | } |
839 | |
840 | } else { |
841 | |
842 | } |
843 | shape_ = shape; |
844 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CppShapeInferenceResult.HandleShapeAndType.shape) |
845 | } |
846 | |
847 | // .tensorflow.DataType dtype = 2; |
848 | inline void CppShapeInferenceResult_HandleShapeAndType::clear_dtype() { |
849 | dtype_ = 0; |
850 | } |
851 | inline ::tensorflow::DataType CppShapeInferenceResult_HandleShapeAndType::dtype() const { |
852 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceResult.HandleShapeAndType.dtype) |
853 | return static_cast< ::tensorflow::DataType >(dtype_); |
854 | } |
855 | inline void CppShapeInferenceResult_HandleShapeAndType::set_dtype(::tensorflow::DataType value) { |
856 | |
857 | dtype_ = value; |
858 | // @@protoc_insertion_point(field_set:tensorflow.CppShapeInferenceResult.HandleShapeAndType.dtype) |
859 | } |
860 | |
861 | // .tensorflow.FullTypeDef type = 4; |
862 | inline bool CppShapeInferenceResult_HandleShapeAndType::has_type() const { |
863 | return this != internal_default_instance() && type_ != nullptr; |
864 | } |
865 | inline const ::tensorflow::FullTypeDef& CppShapeInferenceResult_HandleShapeAndType::type() const { |
866 | const ::tensorflow::FullTypeDef* p = type_; |
867 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceResult.HandleShapeAndType.type) |
868 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::FullTypeDef*>( |
869 | &::tensorflow::_FullTypeDef_default_instance_); |
870 | } |
871 | inline ::tensorflow::FullTypeDef* CppShapeInferenceResult_HandleShapeAndType::release_type() { |
872 | // @@protoc_insertion_point(field_release:tensorflow.CppShapeInferenceResult.HandleShapeAndType.type) |
873 | |
874 | ::tensorflow::FullTypeDef* temp = type_; |
875 | if (GetArenaNoVirtual() != nullptr) { |
876 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
877 | } |
878 | type_ = nullptr; |
879 | return temp; |
880 | } |
881 | inline ::tensorflow::FullTypeDef* CppShapeInferenceResult_HandleShapeAndType::unsafe_arena_release_type() { |
882 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CppShapeInferenceResult.HandleShapeAndType.type) |
883 | |
884 | ::tensorflow::FullTypeDef* temp = type_; |
885 | type_ = nullptr; |
886 | return temp; |
887 | } |
888 | inline ::tensorflow::FullTypeDef* CppShapeInferenceResult_HandleShapeAndType::mutable_type() { |
889 | |
890 | if (type_ == nullptr) { |
891 | auto* p = CreateMaybeMessage<::tensorflow::FullTypeDef>(GetArenaNoVirtual()); |
892 | type_ = p; |
893 | } |
894 | // @@protoc_insertion_point(field_mutable:tensorflow.CppShapeInferenceResult.HandleShapeAndType.type) |
895 | return type_; |
896 | } |
897 | inline void CppShapeInferenceResult_HandleShapeAndType::set_allocated_type(::tensorflow::FullTypeDef* type) { |
898 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
899 | if (message_arena == nullptr) { |
900 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(type_); |
901 | } |
902 | if (type) { |
903 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
904 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(type)->GetArena(); |
905 | if (message_arena != submessage_arena) { |
906 | type = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
907 | message_arena, type, submessage_arena); |
908 | } |
909 | |
910 | } else { |
911 | |
912 | } |
913 | type_ = type; |
914 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CppShapeInferenceResult.HandleShapeAndType.type) |
915 | } |
916 | |
917 | // ------------------------------------------------------------------- |
918 | |
919 | // CppShapeInferenceResult_HandleData |
920 | |
921 | // bool is_set = 1; |
922 | inline void CppShapeInferenceResult_HandleData::clear_is_set() { |
923 | is_set_ = false; |
924 | } |
925 | inline bool CppShapeInferenceResult_HandleData::is_set() const { |
926 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceResult.HandleData.is_set) |
927 | return is_set_; |
928 | } |
929 | inline void CppShapeInferenceResult_HandleData::set_is_set(bool value) { |
930 | |
931 | is_set_ = value; |
932 | // @@protoc_insertion_point(field_set:tensorflow.CppShapeInferenceResult.HandleData.is_set) |
933 | } |
934 | |
935 | // repeated .tensorflow.CppShapeInferenceResult.HandleShapeAndType shape_and_type = 2; |
936 | inline int CppShapeInferenceResult_HandleData::shape_and_type_size() const { |
937 | return shape_and_type_.size(); |
938 | } |
939 | inline void CppShapeInferenceResult_HandleData::clear_shape_and_type() { |
940 | shape_and_type_.Clear(); |
941 | } |
942 | inline ::tensorflow::CppShapeInferenceResult_HandleShapeAndType* CppShapeInferenceResult_HandleData::mutable_shape_and_type(int index) { |
943 | // @@protoc_insertion_point(field_mutable:tensorflow.CppShapeInferenceResult.HandleData.shape_and_type) |
944 | return shape_and_type_.Mutable(index); |
945 | } |
946 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CppShapeInferenceResult_HandleShapeAndType >* |
947 | CppShapeInferenceResult_HandleData::mutable_shape_and_type() { |
948 | // @@protoc_insertion_point(field_mutable_list:tensorflow.CppShapeInferenceResult.HandleData.shape_and_type) |
949 | return &shape_and_type_; |
950 | } |
951 | inline const ::tensorflow::CppShapeInferenceResult_HandleShapeAndType& CppShapeInferenceResult_HandleData::shape_and_type(int index) const { |
952 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceResult.HandleData.shape_and_type) |
953 | return shape_and_type_.Get(index); |
954 | } |
955 | inline ::tensorflow::CppShapeInferenceResult_HandleShapeAndType* CppShapeInferenceResult_HandleData::add_shape_and_type() { |
956 | // @@protoc_insertion_point(field_add:tensorflow.CppShapeInferenceResult.HandleData.shape_and_type) |
957 | return shape_and_type_.Add(); |
958 | } |
959 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedPtrField< ::tensorflow::CppShapeInferenceResult_HandleShapeAndType >& |
960 | CppShapeInferenceResult_HandleData::shape_and_type() const { |
961 | // @@protoc_insertion_point(field_list:tensorflow.CppShapeInferenceResult.HandleData.shape_and_type) |
962 | return shape_and_type_; |
963 | } |
964 | |
965 | // ------------------------------------------------------------------- |
966 | |
967 | // CppShapeInferenceResult |
968 | |
969 | // .tensorflow.TensorShapeProto shape = 1; |
970 | inline bool CppShapeInferenceResult::has_shape() const { |
971 | return this != internal_default_instance() && shape_ != nullptr; |
972 | } |
973 | inline const ::tensorflow::TensorShapeProto& CppShapeInferenceResult::shape() const { |
974 | const ::tensorflow::TensorShapeProto* p = shape_; |
975 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceResult.shape) |
976 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorShapeProto*>( |
977 | &::tensorflow::_TensorShapeProto_default_instance_); |
978 | } |
979 | inline ::tensorflow::TensorShapeProto* CppShapeInferenceResult::release_shape() { |
980 | // @@protoc_insertion_point(field_release:tensorflow.CppShapeInferenceResult.shape) |
981 | |
982 | ::tensorflow::TensorShapeProto* temp = shape_; |
983 | if (GetArenaNoVirtual() != nullptr) { |
984 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
985 | } |
986 | shape_ = nullptr; |
987 | return temp; |
988 | } |
989 | inline ::tensorflow::TensorShapeProto* CppShapeInferenceResult::unsafe_arena_release_shape() { |
990 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CppShapeInferenceResult.shape) |
991 | |
992 | ::tensorflow::TensorShapeProto* temp = shape_; |
993 | shape_ = nullptr; |
994 | return temp; |
995 | } |
996 | inline ::tensorflow::TensorShapeProto* CppShapeInferenceResult::mutable_shape() { |
997 | |
998 | if (shape_ == nullptr) { |
999 | auto* p = CreateMaybeMessage<::tensorflow::TensorShapeProto>(GetArenaNoVirtual()); |
1000 | shape_ = p; |
1001 | } |
1002 | // @@protoc_insertion_point(field_mutable:tensorflow.CppShapeInferenceResult.shape) |
1003 | return shape_; |
1004 | } |
1005 | inline void CppShapeInferenceResult::set_allocated_shape(::tensorflow::TensorShapeProto* shape) { |
1006 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1007 | if (message_arena == nullptr) { |
1008 | delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape_); |
1009 | } |
1010 | if (shape) { |
1011 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1012 | reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(shape)->GetArena(); |
1013 | if (message_arena != submessage_arena) { |
1014 | shape = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1015 | message_arena, shape, submessage_arena); |
1016 | } |
1017 | |
1018 | } else { |
1019 | |
1020 | } |
1021 | shape_ = shape; |
1022 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CppShapeInferenceResult.shape) |
1023 | } |
1024 | |
1025 | // .tensorflow.CppShapeInferenceResult.HandleData handle_data = 4; |
1026 | inline bool CppShapeInferenceResult::has_handle_data() const { |
1027 | return this != internal_default_instance() && handle_data_ != nullptr; |
1028 | } |
1029 | inline void CppShapeInferenceResult::clear_handle_data() { |
1030 | if (GetArenaNoVirtual() == nullptr && handle_data_ != nullptr) { |
1031 | delete handle_data_; |
1032 | } |
1033 | handle_data_ = nullptr; |
1034 | } |
1035 | inline const ::tensorflow::CppShapeInferenceResult_HandleData& CppShapeInferenceResult::handle_data() const { |
1036 | const ::tensorflow::CppShapeInferenceResult_HandleData* p = handle_data_; |
1037 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceResult.handle_data) |
1038 | return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::CppShapeInferenceResult_HandleData*>( |
1039 | &::tensorflow::_CppShapeInferenceResult_HandleData_default_instance_); |
1040 | } |
1041 | inline ::tensorflow::CppShapeInferenceResult_HandleData* CppShapeInferenceResult::release_handle_data() { |
1042 | // @@protoc_insertion_point(field_release:tensorflow.CppShapeInferenceResult.handle_data) |
1043 | |
1044 | ::tensorflow::CppShapeInferenceResult_HandleData* temp = handle_data_; |
1045 | if (GetArenaNoVirtual() != nullptr) { |
1046 | temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp); |
1047 | } |
1048 | handle_data_ = nullptr; |
1049 | return temp; |
1050 | } |
1051 | inline ::tensorflow::CppShapeInferenceResult_HandleData* CppShapeInferenceResult::unsafe_arena_release_handle_data() { |
1052 | // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.CppShapeInferenceResult.handle_data) |
1053 | |
1054 | ::tensorflow::CppShapeInferenceResult_HandleData* temp = handle_data_; |
1055 | handle_data_ = nullptr; |
1056 | return temp; |
1057 | } |
1058 | inline ::tensorflow::CppShapeInferenceResult_HandleData* CppShapeInferenceResult::mutable_handle_data() { |
1059 | |
1060 | if (handle_data_ == nullptr) { |
1061 | auto* p = CreateMaybeMessage<::tensorflow::CppShapeInferenceResult_HandleData>(GetArenaNoVirtual()); |
1062 | handle_data_ = p; |
1063 | } |
1064 | // @@protoc_insertion_point(field_mutable:tensorflow.CppShapeInferenceResult.handle_data) |
1065 | return handle_data_; |
1066 | } |
1067 | inline void CppShapeInferenceResult::set_allocated_handle_data(::tensorflow::CppShapeInferenceResult_HandleData* handle_data) { |
1068 | ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual(); |
1069 | if (message_arena == nullptr) { |
1070 | delete handle_data_; |
1071 | } |
1072 | if (handle_data) { |
1073 | ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = |
1074 | ::PROTOBUF_NAMESPACE_ID::Arena::GetArena(handle_data); |
1075 | if (message_arena != submessage_arena) { |
1076 | handle_data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage( |
1077 | message_arena, handle_data, submessage_arena); |
1078 | } |
1079 | |
1080 | } else { |
1081 | |
1082 | } |
1083 | handle_data_ = handle_data; |
1084 | // @@protoc_insertion_point(field_set_allocated:tensorflow.CppShapeInferenceResult.handle_data) |
1085 | } |
1086 | |
1087 | // ------------------------------------------------------------------- |
1088 | |
1089 | // CppShapeInferenceInputsNeeded |
1090 | |
1091 | // repeated int32 input_tensors_needed = 1; |
1092 | inline int CppShapeInferenceInputsNeeded::input_tensors_needed_size() const { |
1093 | return input_tensors_needed_.size(); |
1094 | } |
1095 | inline void CppShapeInferenceInputsNeeded::clear_input_tensors_needed() { |
1096 | input_tensors_needed_.Clear(); |
1097 | } |
1098 | inline ::PROTOBUF_NAMESPACE_ID::int32 CppShapeInferenceInputsNeeded::input_tensors_needed(int index) const { |
1099 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_needed) |
1100 | return input_tensors_needed_.Get(index); |
1101 | } |
1102 | inline void CppShapeInferenceInputsNeeded::set_input_tensors_needed(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { |
1103 | input_tensors_needed_.Set(index, value); |
1104 | // @@protoc_insertion_point(field_set:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_needed) |
1105 | } |
1106 | inline void CppShapeInferenceInputsNeeded::add_input_tensors_needed(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1107 | input_tensors_needed_.Add(value); |
1108 | // @@protoc_insertion_point(field_add:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_needed) |
1109 | } |
1110 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
1111 | CppShapeInferenceInputsNeeded::input_tensors_needed() const { |
1112 | // @@protoc_insertion_point(field_list:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_needed) |
1113 | return input_tensors_needed_; |
1114 | } |
1115 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
1116 | CppShapeInferenceInputsNeeded::mutable_input_tensors_needed() { |
1117 | // @@protoc_insertion_point(field_mutable_list:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_needed) |
1118 | return &input_tensors_needed_; |
1119 | } |
1120 | |
1121 | // repeated int32 input_tensors_as_shapes_needed = 2; |
1122 | inline int CppShapeInferenceInputsNeeded::input_tensors_as_shapes_needed_size() const { |
1123 | return input_tensors_as_shapes_needed_.size(); |
1124 | } |
1125 | inline void CppShapeInferenceInputsNeeded::clear_input_tensors_as_shapes_needed() { |
1126 | input_tensors_as_shapes_needed_.Clear(); |
1127 | } |
1128 | inline ::PROTOBUF_NAMESPACE_ID::int32 CppShapeInferenceInputsNeeded::input_tensors_as_shapes_needed(int index) const { |
1129 | // @@protoc_insertion_point(field_get:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_as_shapes_needed) |
1130 | return input_tensors_as_shapes_needed_.Get(index); |
1131 | } |
1132 | inline void CppShapeInferenceInputsNeeded::set_input_tensors_as_shapes_needed(int index, ::PROTOBUF_NAMESPACE_ID::int32 value) { |
1133 | input_tensors_as_shapes_needed_.Set(index, value); |
1134 | // @@protoc_insertion_point(field_set:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_as_shapes_needed) |
1135 | } |
1136 | inline void CppShapeInferenceInputsNeeded::add_input_tensors_as_shapes_needed(::PROTOBUF_NAMESPACE_ID::int32 value) { |
1137 | input_tensors_as_shapes_needed_.Add(value); |
1138 | // @@protoc_insertion_point(field_add:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_as_shapes_needed) |
1139 | } |
1140 | inline const ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >& |
1141 | CppShapeInferenceInputsNeeded::input_tensors_as_shapes_needed() const { |
1142 | // @@protoc_insertion_point(field_list:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_as_shapes_needed) |
1143 | return input_tensors_as_shapes_needed_; |
1144 | } |
1145 | inline ::PROTOBUF_NAMESPACE_ID::RepeatedField< ::PROTOBUF_NAMESPACE_ID::int32 >* |
1146 | CppShapeInferenceInputsNeeded::mutable_input_tensors_as_shapes_needed() { |
1147 | // @@protoc_insertion_point(field_mutable_list:tensorflow.CppShapeInferenceInputsNeeded.input_tensors_as_shapes_needed) |
1148 | return &input_tensors_as_shapes_needed_; |
1149 | } |
1150 | |
1151 | #ifdef __GNUC__ |
1152 | #pragma GCC diagnostic pop |
1153 | #endif // __GNUC__ |
1154 | // ------------------------------------------------------------------- |
1155 | |
1156 | // ------------------------------------------------------------------- |
1157 | |
1158 | // ------------------------------------------------------------------- |
1159 | |
1160 | |
1161 | // @@protoc_insertion_point(namespace_scope) |
1162 | |
1163 | } // namespace tensorflow |
1164 | |
1165 | // @@protoc_insertion_point(global_scope) |
1166 | |
1167 | #include <google/protobuf/port_undef.inc> |
1168 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fpython_2fframework_2fcpp_5fshape_5finference_2eproto |
1169 | |