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 <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_2fdataset_5fmetadata_2eproto
38PROTOBUF_NAMESPACE_OPEN
39namespace internal {
40class AnyMetadata;
41} // namespace internal
42PROTOBUF_NAMESPACE_CLOSE
43
44// Internal implementation detail -- do not use these members.
45struct TableStruct_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_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[1]
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};
56extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto;
57namespace tensorflow {
58namespace data {
59class Metadata;
60class MetadataDefaultTypeInternal;
61extern MetadataDefaultTypeInternal _Metadata_default_instance_;
62} // namespace data
63} // namespace tensorflow
64PROTOBUF_NAMESPACE_OPEN
65template<> ::tensorflow::data::Metadata* Arena::CreateMaybeMessage<::tensorflow::data::Metadata>(Arena*);
66PROTOBUF_NAMESPACE_CLOSE
67namespace tensorflow {
68namespace data {
69
70// ===================================================================
71
72class Metadata :
73 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.data.Metadata) */ {
74 public:
75 Metadata();
76 virtual ~Metadata();
77
78 Metadata(const Metadata& from);
79 Metadata(Metadata&& from) noexcept
80 : Metadata() {
81 *this = ::std::move(from);
82 }
83
84 inline Metadata& operator=(const Metadata& from) {
85 CopyFrom(from);
86 return *this;
87 }
88 inline Metadata& operator=(Metadata&& from) noexcept {
89 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
90 if (this != &from) InternalSwap(&from);
91 } else {
92 CopyFrom(from);
93 }
94 return *this;
95 }
96
97 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
98 return GetDescriptor();
99 }
100 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
101 return GetMetadataStatic().descriptor;
102 }
103 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
104 return GetMetadataStatic().reflection;
105 }
106 static const Metadata& default_instance();
107
108 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
109 static inline const Metadata* internal_default_instance() {
110 return reinterpret_cast<const Metadata*>(
111 &_Metadata_default_instance_);
112 }
113 static constexpr int kIndexInFileMessages =
114 0;
115
116 friend void swap(Metadata& a, Metadata& b) {
117 a.Swap(&b);
118 }
119 inline void Swap(Metadata* other) {
120 if (other == this) return;
121 InternalSwap(other);
122 }
123
124 // implements Message ----------------------------------------------
125
126 inline Metadata* New() const final {
127 return CreateMaybeMessage<Metadata>(nullptr);
128 }
129
130 Metadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
131 return CreateMaybeMessage<Metadata>(arena);
132 }
133 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
134 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
135 void CopyFrom(const Metadata& from);
136 void MergeFrom(const Metadata& from);
137 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
138 bool IsInitialized() const final;
139
140 size_t ByteSizeLong() const final;
141 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
142 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
143 #else
144 bool MergePartialFromCodedStream(
145 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
146 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
147 void SerializeWithCachedSizes(
148 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
149 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
150 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
151 int GetCachedSize() const final { return _cached_size_.Get(); }
152
153 private:
154 inline void SharedCtor();
155 inline void SharedDtor();
156 void SetCachedSize(int size) const final;
157 void InternalSwap(Metadata* other);
158 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
159 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
160 return "tensorflow.data.Metadata";
161 }
162 private:
163 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
164 return nullptr;
165 }
166 inline void* MaybeArenaPtr() const {
167 return nullptr;
168 }
169 public:
170
171 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
172 private:
173 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
174 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto);
175 return ::descriptor_table_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto.file_level_metadata[kIndexInFileMessages];
176 }
177
178 public:
179
180 // nested types ----------------------------------------------------
181
182 // accessors -------------------------------------------------------
183
184 enum : int {
185 kNameFieldNumber = 1,
186 };
187 // bytes name = 1;
188 void clear_name();
189 const std::string& name() const;
190 void set_name(const std::string& value);
191 void set_name(std::string&& value);
192 void set_name(const char* value);
193 void set_name(const void* value, size_t size);
194 std::string* mutable_name();
195 std::string* release_name();
196 void set_allocated_name(std::string* name);
197
198 // @@protoc_insertion_point(class_scope:tensorflow.data.Metadata)
199 private:
200 class _Internal;
201
202 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
203 ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr name_;
204 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
205 friend struct ::TableStruct_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto;
206};
207// ===================================================================
208
209
210// ===================================================================
211
212#ifdef __GNUC__
213 #pragma GCC diagnostic push
214 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
215#endif // __GNUC__
216// Metadata
217
218// bytes name = 1;
219inline void Metadata::clear_name() {
220 name_.ClearToEmptyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
221}
222inline const std::string& Metadata::name() const {
223 // @@protoc_insertion_point(field_get:tensorflow.data.Metadata.name)
224 return name_.GetNoArena();
225}
226inline void Metadata::set_name(const std::string& value) {
227
228 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), value);
229 // @@protoc_insertion_point(field_set:tensorflow.data.Metadata.name)
230}
231inline void Metadata::set_name(std::string&& value) {
232
233 name_.SetNoArena(
234 &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
235 // @@protoc_insertion_point(field_set_rvalue:tensorflow.data.Metadata.name)
236}
237inline void Metadata::set_name(const char* value) {
238 GOOGLE_DCHECK(value != nullptr);
239
240 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
241 // @@protoc_insertion_point(field_set_char:tensorflow.data.Metadata.name)
242}
243inline void Metadata::set_name(const void* value, size_t size) {
244
245 name_.SetNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(),
246 ::std::string(reinterpret_cast<const char*>(value), size));
247 // @@protoc_insertion_point(field_set_pointer:tensorflow.data.Metadata.name)
248}
249inline std::string* Metadata::mutable_name() {
250
251 // @@protoc_insertion_point(field_mutable:tensorflow.data.Metadata.name)
252 return name_.MutableNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
253}
254inline std::string* Metadata::release_name() {
255 // @@protoc_insertion_point(field_release:tensorflow.data.Metadata.name)
256
257 return name_.ReleaseNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
258}
259inline void Metadata::set_allocated_name(std::string* name) {
260 if (name != nullptr) {
261
262 } else {
263
264 }
265 name_.SetAllocatedNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), name);
266 // @@protoc_insertion_point(field_set_allocated:tensorflow.data.Metadata.name)
267}
268
269#ifdef __GNUC__
270 #pragma GCC diagnostic pop
271#endif // __GNUC__
272
273// @@protoc_insertion_point(namespace_scope)
274
275} // namespace data
276} // namespace tensorflow
277
278// @@protoc_insertion_point(global_scope)
279
280#include <google/protobuf/port_undef.inc>
281#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fframework_2fdataset_5fmetadata_2eproto
282