1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/named_tensor.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_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/tensor.pb.h"
36// @@protoc_insertion_point(includes)
37#include <google/protobuf/port_def.inc>
38#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto
39PROTOBUF_NAMESPACE_OPEN
40namespace internal {
41class AnyMetadata;
42} // namespace internal
43PROTOBUF_NAMESPACE_CLOSE
44
45// Internal implementation detail -- do not use these members.
46struct TableStruct_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto {
47 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTableField entries[]
48 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
49 static const ::PROTOBUF_NAMESPACE_ID::internal::AuxillaryParseTableField aux[]
50 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
51 static const ::PROTOBUF_NAMESPACE_ID::internal::ParseTable schema[1]
52 PROTOBUF_SECTION_VARIABLE(protodesc_cold);
53 static const ::PROTOBUF_NAMESPACE_ID::internal::FieldMetadata field_metadata[];
54 static const ::PROTOBUF_NAMESPACE_ID::internal::SerializationTable serialization_table[];
55 static const ::PROTOBUF_NAMESPACE_ID::uint32 offsets[];
56};
57extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto;
58namespace tensorflow {
59class NamedTensorProto;
60class NamedTensorProtoDefaultTypeInternal;
61extern NamedTensorProtoDefaultTypeInternal _NamedTensorProto_default_instance_;
62} // namespace tensorflow
63PROTOBUF_NAMESPACE_OPEN
64template<> ::tensorflow::NamedTensorProto* Arena::CreateMaybeMessage<::tensorflow::NamedTensorProto>(Arena*);
65PROTOBUF_NAMESPACE_CLOSE
66namespace tensorflow {
67
68// ===================================================================
69
70class NamedTensorProto :
71 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.NamedTensorProto) */ {
72 public:
73 NamedTensorProto();
74 virtual ~NamedTensorProto();
75
76 NamedTensorProto(const NamedTensorProto& from);
77 NamedTensorProto(NamedTensorProto&& from) noexcept
78 : NamedTensorProto() {
79 *this = ::std::move(from);
80 }
81
82 inline NamedTensorProto& operator=(const NamedTensorProto& from) {
83 CopyFrom(from);
84 return *this;
85 }
86 inline NamedTensorProto& operator=(NamedTensorProto&& from) noexcept {
87 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
88 if (this != &from) InternalSwap(&from);
89 } else {
90 CopyFrom(from);
91 }
92 return *this;
93 }
94
95 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final {
96 return GetArenaNoVirtual();
97 }
98 inline void* GetMaybeArenaPointer() const final {
99 return MaybeArenaPtr();
100 }
101 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
102 return GetDescriptor();
103 }
104 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
105 return GetMetadataStatic().descriptor;
106 }
107 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
108 return GetMetadataStatic().reflection;
109 }
110 static const NamedTensorProto& default_instance();
111
112 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
113 static inline const NamedTensorProto* internal_default_instance() {
114 return reinterpret_cast<const NamedTensorProto*>(
115 &_NamedTensorProto_default_instance_);
116 }
117 static constexpr int kIndexInFileMessages =
118 0;
119
120 friend void swap(NamedTensorProto& a, NamedTensorProto& b) {
121 a.Swap(&b);
122 }
123 inline void Swap(NamedTensorProto* other) {
124 if (other == this) return;
125 if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) {
126 InternalSwap(other);
127 } else {
128 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
129 }
130 }
131 void UnsafeArenaSwap(NamedTensorProto* other) {
132 if (other == this) return;
133 GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual());
134 InternalSwap(other);
135 }
136
137 // implements Message ----------------------------------------------
138
139 inline NamedTensorProto* New() const final {
140 return CreateMaybeMessage<NamedTensorProto>(nullptr);
141 }
142
143 NamedTensorProto* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
144 return CreateMaybeMessage<NamedTensorProto>(arena);
145 }
146 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
147 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
148 void CopyFrom(const NamedTensorProto& from);
149 void MergeFrom(const NamedTensorProto& from);
150 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
151 bool IsInitialized() const final;
152
153 size_t ByteSizeLong() const final;
154 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
155 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
156 #else
157 bool MergePartialFromCodedStream(
158 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
159 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
160 void SerializeWithCachedSizes(
161 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
162 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
163 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
164 int GetCachedSize() const final { return _cached_size_.Get(); }
165
166 private:
167 inline void SharedCtor();
168 inline void SharedDtor();
169 void SetCachedSize(int size) const final;
170 void InternalSwap(NamedTensorProto* other);
171 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
172 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
173 return "tensorflow.NamedTensorProto";
174 }
175 protected:
176 explicit NamedTensorProto(::PROTOBUF_NAMESPACE_ID::Arena* arena);
177 private:
178 static void ArenaDtor(void* object);
179 inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena);
180 private:
181 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
182 return _internal_metadata_.arena();
183 }
184 inline void* MaybeArenaPtr() const {
185 return _internal_metadata_.raw_arena_ptr();
186 }
187 public:
188
189 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
190 private:
191 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
192 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto);
193 return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto.file_level_metadata[kIndexInFileMessages];
194 }
195
196 public:
197
198 // nested types ----------------------------------------------------
199
200 // accessors -------------------------------------------------------
201
202 enum : int {
203 kNameFieldNumber = 1,
204 kTensorFieldNumber = 2,
205 };
206 // string name = 1;
207 void clear_name();
208 const std::string& name() const;
209 void set_name(const std::string& value);
210 void set_name(std::string&& value);
211 void set_name(const char* value);
212 void set_name(const char* value, size_t size);
213 std::string* mutable_name();
214 std::string* release_name();
215 void set_allocated_name(std::string* name);
216 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
217 " string fields are deprecated and will be removed in a"
218 " future release.")
219 std::string* unsafe_arena_release_name();
220 GOOGLE_PROTOBUF_RUNTIME_DEPRECATED("The unsafe_arena_ accessors for"
221 " string fields are deprecated and will be removed in a"
222 " future release.")
223 void unsafe_arena_set_allocated_name(
224 std::string* name);
225
226 // .tensorflow.TensorProto tensor = 2;
227 bool has_tensor() const;
228 void clear_tensor();
229 const ::tensorflow::TensorProto& tensor() const;
230 ::tensorflow::TensorProto* release_tensor();
231 ::tensorflow::TensorProto* mutable_tensor();
232 void set_allocated_tensor(::tensorflow::TensorProto* tensor);
233 void unsafe_arena_set_allocated_tensor(
234 ::tensorflow::TensorProto* tensor);
235 ::tensorflow::TensorProto* unsafe_arena_release_tensor();
236
237 // @@protoc_insertion_point(class_scope:tensorflow.NamedTensorProto)
238 private:
239 class _Internal;
240
241 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
242 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
243 typedef void InternalArenaConstructable_;
244 typedef void DestructorSkippable_;
245 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
246 ::tensorflow::TensorProto* tensor_;
247 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
248 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto;
249};
250// ===================================================================
251
252
253// ===================================================================
254
255#ifdef __GNUC__
256 #pragma GCC diagnostic push
257 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
258#endif // __GNUC__
259// NamedTensorProto
260
261// string name = 1;
262inline void NamedTensorProto::clear_name() {
263 name_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
264}
265inline const std::string& NamedTensorProto::name() const {
266 // @@protoc_insertion_point(field_get:tensorflow.NamedTensorProto.name)
267 return name_.Get();
268}
269inline void NamedTensorProto::set_name(const std::string& value) {
270
271 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value, GetArenaNoVirtual());
272 // @@protoc_insertion_point(field_set:tensorflow.NamedTensorProto.name)
273}
274inline void NamedTensorProto::set_name(std::string&& value) {
275
276 name_.Set(
277 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value), GetArenaNoVirtual());
278 // @@protoc_insertion_point(field_set_rvalue:tensorflow.NamedTensorProto.name)
279}
280inline void NamedTensorProto::set_name(const char* value) {
281 GOOGLE_DCHECK(value != nullptr);
282
283 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value),
284 GetArenaNoVirtual());
285 // @@protoc_insertion_point(field_set_char:tensorflow.NamedTensorProto.name)
286}
287inline void NamedTensorProto::set_name(const char* value,
288 size_t size) {
289
290 name_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(
291 reinterpret_cast<const char*>(value), size), GetArenaNoVirtual());
292 // @@protoc_insertion_point(field_set_pointer:tensorflow.NamedTensorProto.name)
293}
294inline std::string* NamedTensorProto::mutable_name() {
295
296 // @@protoc_insertion_point(field_mutable:tensorflow.NamedTensorProto.name)
297 return name_.Mutable(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
298}
299inline std::string* NamedTensorProto::release_name() {
300 // @@protoc_insertion_point(field_release:tensorflow.NamedTensorProto.name)
301
302 return name_.Release(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArenaNoVirtual());
303}
304inline void NamedTensorProto::set_allocated_name(std::string* name) {
305 if (name != nullptr) {
306
307 } else {
308
309 }
310 name_.SetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name,
311 GetArenaNoVirtual());
312 // @@protoc_insertion_point(field_set_allocated:tensorflow.NamedTensorProto.name)
313}
314inline std::string* NamedTensorProto::unsafe_arena_release_name() {
315 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NamedTensorProto.name)
316 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
317
318 return name_.UnsafeArenaRelease(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
319 GetArenaNoVirtual());
320}
321inline void NamedTensorProto::unsafe_arena_set_allocated_name(
322 std::string* name) {
323 GOOGLE_DCHECK(GetArenaNoVirtual() != nullptr);
324 if (name != nullptr) {
325
326 } else {
327
328 }
329 name_.UnsafeArenaSetAllocated(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
330 name, GetArenaNoVirtual());
331 // @@protoc_insertion_point(field_unsafe_arena_set_allocated:tensorflow.NamedTensorProto.name)
332}
333
334// .tensorflow.TensorProto tensor = 2;
335inline bool NamedTensorProto::has_tensor() const {
336 return this != internal_default_instance() && tensor_ != nullptr;
337}
338inline const ::tensorflow::TensorProto& NamedTensorProto::tensor() const {
339 const ::tensorflow::TensorProto* p = tensor_;
340 // @@protoc_insertion_point(field_get:tensorflow.NamedTensorProto.tensor)
341 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TensorProto*>(
342 &::tensorflow::_TensorProto_default_instance_);
343}
344inline ::tensorflow::TensorProto* NamedTensorProto::release_tensor() {
345 // @@protoc_insertion_point(field_release:tensorflow.NamedTensorProto.tensor)
346
347 ::tensorflow::TensorProto* temp = tensor_;
348 if (GetArenaNoVirtual() != nullptr) {
349 temp = ::PROTOBUF_NAMESPACE_ID::internal::DuplicateIfNonNull(temp);
350 }
351 tensor_ = nullptr;
352 return temp;
353}
354inline ::tensorflow::TensorProto* NamedTensorProto::unsafe_arena_release_tensor() {
355 // @@protoc_insertion_point(field_unsafe_arena_release:tensorflow.NamedTensorProto.tensor)
356
357 ::tensorflow::TensorProto* temp = tensor_;
358 tensor_ = nullptr;
359 return temp;
360}
361inline ::tensorflow::TensorProto* NamedTensorProto::mutable_tensor() {
362
363 if (tensor_ == nullptr) {
364 auto* p = CreateMaybeMessage<::tensorflow::TensorProto>(GetArenaNoVirtual());
365 tensor_ = p;
366 }
367 // @@protoc_insertion_point(field_mutable:tensorflow.NamedTensorProto.tensor)
368 return tensor_;
369}
370inline void NamedTensorProto::set_allocated_tensor(::tensorflow::TensorProto* tensor) {
371 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
372 if (message_arena == nullptr) {
373 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(tensor_);
374 }
375 if (tensor) {
376 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
377 reinterpret_cast<::PROTOBUF_NAMESPACE_ID::MessageLite*>(tensor)->GetArena();
378 if (message_arena != submessage_arena) {
379 tensor = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
380 message_arena, tensor, submessage_arena);
381 }
382
383 } else {
384
385 }
386 tensor_ = tensor;
387 // @@protoc_insertion_point(field_set_allocated:tensorflow.NamedTensorProto.tensor)
388}
389
390#ifdef __GNUC__
391 #pragma GCC diagnostic pop
392#endif // __GNUC__
393
394// @@protoc_insertion_point(namespace_scope)
395
396} // namespace tensorflow
397
398// @@protoc_insertion_point(global_scope)
399
400#include <google/protobuf/port_undef.inc>
401#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fnamed_5ftensor_2eproto
402