1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: tensorflow/core/framework/dataset_metadata.proto
3
4 #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto
5 #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto
6
7 #include <cstdint>
8 #include <limits>
9 #include <string>
10
11 #include <google/protobuf/port_def.inc>
12 #if PROTOBUF_VERSION < 3021000
13 #error This file was generated by a newer version of protoc which is
14 #error incompatible with your Protocol Buffer headers. Please update
15 #error your headers.
16 #endif
17 #if 3021012 < PROTOBUF_MIN_PROTOC_VERSION
18 #error This file was generated by an older version of protoc which is
19 #error incompatible with your Protocol Buffer headers. Please
20 #error regenerate this file with a newer version of protoc.
21 #endif
22
23 #include <google/protobuf/port_undef.inc>
24 #include <google/protobuf/io/coded_stream.h>
25 #include <google/protobuf/arena.h>
26 #include <google/protobuf/arenastring.h>
27 #include <google/protobuf/generated_message_util.h>
28 #include <google/protobuf/metadata_lite.h>
29 #include <google/protobuf/message_lite.h>
30 #include <google/protobuf/repeated_field.h> // IWYU pragma: export
31 #include <google/protobuf/extension_set.h> // IWYU pragma: export
32 // @@protoc_insertion_point(includes)
33 #include <google/protobuf/port_def.inc>
34 #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto
35 PROTOBUF_NAMESPACE_OPEN
36 namespace internal {
37 class AnyMetadata;
38 } // namespace internal
39 PROTOBUF_NAMESPACE_CLOSE
40
41 // Internal implementation detail -- do not use these members.
42 struct TableStruct_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto {
43 static const ::uint32_t offsets[];
44 };
45 namespace tensorflow {
46 namespace data {
47 class Metadata;
48 struct MetadataDefaultTypeInternal;
49 extern MetadataDefaultTypeInternal _Metadata_default_instance_;
50 } // namespace data
51 } // namespace tensorflow
52 PROTOBUF_NAMESPACE_OPEN
53 template<> ::tensorflow::data::Metadata* Arena::CreateMaybeMessage<::tensorflow::data::Metadata>(Arena*);
54 PROTOBUF_NAMESPACE_CLOSE
55 namespace tensorflow {
56 namespace data {
57
58 // ===================================================================
59
60 class Metadata final :
61 public ::PROTOBUF_NAMESPACE_ID::MessageLite /* @@protoc_insertion_point(class_definition:tensorflow.data.Metadata) */ {
62 public:
Metadata()63 inline Metadata() : Metadata(nullptr) {}
64 ~Metadata() override;
65 explicit PROTOBUF_CONSTEXPR Metadata(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized);
66
67 Metadata(const Metadata& from);
Metadata(Metadata && from)68 Metadata(Metadata&& from) noexcept
69 : Metadata() {
70 *this = ::std::move(from);
71 }
72
73 inline Metadata& operator=(const Metadata& from) {
74 if (this == &from) return *this;
75 CopyFrom(from);
76 return *this;
77 }
78 inline Metadata& operator=(Metadata&& from) noexcept {
79 if (this == &from) return *this;
80 if (GetOwningArena() == from.GetOwningArena()
81 #ifdef PROTOBUF_FORCE_COPY_IN_MOVE
82 && GetOwningArena() != nullptr
83 #endif // !PROTOBUF_FORCE_COPY_IN_MOVE
84 ) {
85 InternalSwap(&from);
86 } else {
87 CopyFrom(from);
88 }
89 return *this;
90 }
91
default_instance()92 static const Metadata& default_instance() {
93 return *internal_default_instance();
94 }
internal_default_instance()95 static inline const Metadata* internal_default_instance() {
96 return reinterpret_cast<const Metadata*>(
97 &_Metadata_default_instance_);
98 }
99 static constexpr int kIndexInFileMessages =
100 0;
101
swap(Metadata & a,Metadata & b)102 friend void swap(Metadata& a, Metadata& b) {
103 a.Swap(&b);
104 }
Swap(Metadata * other)105 inline void Swap(Metadata* other) {
106 if (other == this) return;
107 #ifdef PROTOBUF_FORCE_COPY_IN_SWAP
108 if (GetOwningArena() != nullptr &&
109 GetOwningArena() == other->GetOwningArena()) {
110 #else // PROTOBUF_FORCE_COPY_IN_SWAP
111 if (GetOwningArena() == other->GetOwningArena()) {
112 #endif // !PROTOBUF_FORCE_COPY_IN_SWAP
113 InternalSwap(other);
114 } else {
115 ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other);
116 }
117 }
118 void UnsafeArenaSwap(Metadata* other) {
119 if (other == this) return;
120 GOOGLE_DCHECK(GetOwningArena() == other->GetOwningArena());
121 InternalSwap(other);
122 }
123
124 // implements Message ----------------------------------------------
125
126 Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
127 return CreateMaybeMessage<Metadata>(arena);
128 }
129 Metadata* New() const {
130 return New(nullptr);
131 }
132 void CheckTypeAndMergeFrom(const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) final;
133 void CopyFrom(const Metadata& from);
134 void MergeFrom(const Metadata& from);
135 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
136 bool IsInitialized() const final;
137
138 size_t ByteSizeLong() const final;
139 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
140 ::uint8_t* _InternalSerialize(
141 ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const final;
142 int GetCachedSize() const final { return _impl_._cached_size_.Get(); }
143
144 private:
145 void SharedCtor(::PROTOBUF_NAMESPACE_ID::Arena* arena, bool is_message_owned);
146 void SharedDtor();
147 void SetCachedSize(int size) const;
148 void InternalSwap(Metadata* other);
149
150 private:
151 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
152 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
153 return "tensorflow.data.Metadata";
154 }
155 protected:
156 explicit Metadata(::PROTOBUF_NAMESPACE_ID::Arena* arena,
157 bool is_message_owned = false);
158 public:
159
160 std::string GetTypeName() const final;
161
162 // nested types ----------------------------------------------------
163
164 // accessors -------------------------------------------------------
165
166 enum : int {
167 kNameFieldNumber = 1,
168 };
169 // bytes name = 1;
170 void clear_name();
171 const std::string& name() const;
172 template <typename ArgT0 = const std::string&, typename... ArgT>
173 void set_name(ArgT0&& arg0, ArgT... args);
174 std::string* mutable_name();
175 PROTOBUF_NODISCARD std::string* release_name();
176 void set_allocated_name(std::string* name);
177 private:
178 const std::string& _internal_name() const;
179 inline PROTOBUF_ALWAYS_INLINE void _internal_set_name(const std::string& value);
180 std::string* _internal_mutable_name();
181 public:
182
183 // @@protoc_insertion_point(class_scope:tensorflow.data.Metadata)
184 private:
185 class _Internal;
186
187 template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper;
188 typedef void InternalArenaConstructable_;
189 typedef void DestructorSkippable_;
190 struct Impl_ {
191 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
192 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
193 };
194 union { Impl_ _impl_; };
195 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto;
196 };
197 // ===================================================================
198
199
200 // ===================================================================
201
202 #ifdef __GNUC__
203 #pragma GCC diagnostic push
204 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
205 #endif // __GNUC__
206 // Metadata
207
208 // bytes name = 1;
clear_name()209 inline void Metadata::clear_name() {
210 _impl_.name_.ClearToEmpty();
211 }
name()212 inline const std::string& Metadata::name() const {
213 // @@protoc_insertion_point(field_get:tensorflow.data.Metadata.name)
214 return _internal_name();
215 }
216 template <typename ArgT0, typename... ArgT>
217 inline PROTOBUF_ALWAYS_INLINE
set_name(ArgT0 && arg0,ArgT...args)218 void Metadata::set_name(ArgT0&& arg0, ArgT... args) {
219
220 _impl_.name_.SetBytes(static_cast<ArgT0 &&>(arg0), args..., GetArenaForAllocation());
221 // @@protoc_insertion_point(field_set:tensorflow.data.Metadata.name)
222 }
mutable_name()223 inline std::string* Metadata::mutable_name() {
224 std::string* _s = _internal_mutable_name();
225 // @@protoc_insertion_point(field_mutable:tensorflow.data.Metadata.name)
226 return _s;
227 }
_internal_name()228 inline const std::string& Metadata::_internal_name() const {
229 return _impl_.name_.Get();
230 }
_internal_set_name(const std::string & value)231 inline void Metadata::_internal_set_name(const std::string& value) {
232
233 _impl_.name_.Set(value, GetArenaForAllocation());
234 }
_internal_mutable_name()235 inline std::string* Metadata::_internal_mutable_name() {
236
237 return _impl_.name_.Mutable(GetArenaForAllocation());
238 }
release_name()239 inline std::string* Metadata::release_name() {
240 // @@protoc_insertion_point(field_release:tensorflow.data.Metadata.name)
241 return _impl_.name_.Release();
242 }
set_allocated_name(std::string * name)243 inline void Metadata::set_allocated_name(std::string* name) {
244 _impl_.name_.SetAllocated(name, GetArenaForAllocation());
245 #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
246 if (_impl_.name_.IsDefault()) {
247 _impl_.name_.Set("", GetArenaForAllocation());
248 }
249 #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
250 // @@protoc_insertion_point(field_set_allocated:tensorflow.data.Metadata.name)
251 }
252
253 #ifdef __GNUC__
254 #pragma GCC diagnostic pop
255 #endif // __GNUC__
256
257 // @@protoc_insertion_point(namespace_scope)
258
259 } // namespace data
260 } // namespace tensorflow
261
262 // @@protoc_insertion_point(global_scope)
263
264 #include <google/protobuf/port_undef.inc>
265 #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto
266