1// Generated by the protocol buffer compiler. DO NOT EDIT!
2// source: tensorflow/core/protobuf/composite_tensor_variant.proto
3
4#ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcomposite_5ftensor_5fvariant_2eproto
5#define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcomposite_5ftensor_5fvariant_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/protobuf/struct.pb.h"
36// @@protoc_insertion_point(includes)
37#include <google/protobuf/port_def.inc>
38#define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fcomposite_5ftensor_5fvariant_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_2fcomposite_5ftensor_5fvariant_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_2fcomposite_5ftensor_5fvariant_2eproto;
58namespace tensorflow {
59class CompositeTensorVariantMetadata;
60class CompositeTensorVariantMetadataDefaultTypeInternal;
61extern CompositeTensorVariantMetadataDefaultTypeInternal _CompositeTensorVariantMetadata_default_instance_;
62} // namespace tensorflow
63PROTOBUF_NAMESPACE_OPEN
64template<> ::tensorflow::CompositeTensorVariantMetadata* Arena::CreateMaybeMessage<::tensorflow::CompositeTensorVariantMetadata>(Arena*);
65PROTOBUF_NAMESPACE_CLOSE
66namespace tensorflow {
67
68// ===================================================================
69
70class CompositeTensorVariantMetadata :
71 public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.CompositeTensorVariantMetadata) */ {
72 public:
73 CompositeTensorVariantMetadata();
74 virtual ~CompositeTensorVariantMetadata();
75
76 CompositeTensorVariantMetadata(const CompositeTensorVariantMetadata& from);
77 CompositeTensorVariantMetadata(CompositeTensorVariantMetadata&& from) noexcept
78 : CompositeTensorVariantMetadata() {
79 *this = ::std::move(from);
80 }
81
82 inline CompositeTensorVariantMetadata& operator=(const CompositeTensorVariantMetadata& from) {
83 CopyFrom(from);
84 return *this;
85 }
86 inline CompositeTensorVariantMetadata& operator=(CompositeTensorVariantMetadata&& 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 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() {
96 return GetDescriptor();
97 }
98 static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() {
99 return GetMetadataStatic().descriptor;
100 }
101 static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() {
102 return GetMetadataStatic().reflection;
103 }
104 static const CompositeTensorVariantMetadata& default_instance();
105
106 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
107 static inline const CompositeTensorVariantMetadata* internal_default_instance() {
108 return reinterpret_cast<const CompositeTensorVariantMetadata*>(
109 &_CompositeTensorVariantMetadata_default_instance_);
110 }
111 static constexpr int kIndexInFileMessages =
112 0;
113
114 friend void swap(CompositeTensorVariantMetadata& a, CompositeTensorVariantMetadata& b) {
115 a.Swap(&b);
116 }
117 inline void Swap(CompositeTensorVariantMetadata* other) {
118 if (other == this) return;
119 InternalSwap(other);
120 }
121
122 // implements Message ----------------------------------------------
123
124 inline CompositeTensorVariantMetadata* New() const final {
125 return CreateMaybeMessage<CompositeTensorVariantMetadata>(nullptr);
126 }
127
128 CompositeTensorVariantMetadata* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final {
129 return CreateMaybeMessage<CompositeTensorVariantMetadata>(arena);
130 }
131 void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
132 void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final;
133 void CopyFrom(const CompositeTensorVariantMetadata& from);
134 void MergeFrom(const CompositeTensorVariantMetadata& from);
135 PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final;
136 bool IsInitialized() const final;
137
138 size_t ByteSizeLong() const final;
139 #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
140 const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final;
141 #else
142 bool MergePartialFromCodedStream(
143 ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final;
144 #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER
145 void SerializeWithCachedSizes(
146 ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final;
147 ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray(
148 ::PROTOBUF_NAMESPACE_ID::uint8* target) const final;
149 int GetCachedSize() const final { return _cached_size_.Get(); }
150
151 private:
152 inline void SharedCtor();
153 inline void SharedDtor();
154 void SetCachedSize(int size) const final;
155 void InternalSwap(CompositeTensorVariantMetadata* other);
156 friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata;
157 static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() {
158 return "tensorflow.CompositeTensorVariantMetadata";
159 }
160 private:
161 inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const {
162 return nullptr;
163 }
164 inline void* MaybeArenaPtr() const {
165 return nullptr;
166 }
167 public:
168
169 ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final;
170 private:
171 static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() {
172 ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcomposite_5ftensor_5fvariant_2eproto);
173 return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fcomposite_5ftensor_5fvariant_2eproto.file_level_metadata[kIndexInFileMessages];
174 }
175
176 public:
177
178 // nested types ----------------------------------------------------
179
180 // accessors -------------------------------------------------------
181
182 enum : int {
183 kTypeSpecProtoFieldNumber = 1,
184 };
185 // .tensorflow.TypeSpecProto type_spec_proto = 1;
186 bool has_type_spec_proto() const;
187 void clear_type_spec_proto();
188 const ::tensorflow::TypeSpecProto& type_spec_proto() const;
189 ::tensorflow::TypeSpecProto* release_type_spec_proto();
190 ::tensorflow::TypeSpecProto* mutable_type_spec_proto();
191 void set_allocated_type_spec_proto(::tensorflow::TypeSpecProto* type_spec_proto);
192
193 // @@protoc_insertion_point(class_scope:tensorflow.CompositeTensorVariantMetadata)
194 private:
195 class _Internal;
196
197 ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_;
198 ::tensorflow::TypeSpecProto* type_spec_proto_;
199 mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_;
200 friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fcomposite_5ftensor_5fvariant_2eproto;
201};
202// ===================================================================
203
204
205// ===================================================================
206
207#ifdef __GNUC__
208 #pragma GCC diagnostic push
209 #pragma GCC diagnostic ignored "-Wstrict-aliasing"
210#endif // __GNUC__
211// CompositeTensorVariantMetadata
212
213// .tensorflow.TypeSpecProto type_spec_proto = 1;
214inline bool CompositeTensorVariantMetadata::has_type_spec_proto() const {
215 return this != internal_default_instance() && type_spec_proto_ != nullptr;
216}
217inline const ::tensorflow::TypeSpecProto& CompositeTensorVariantMetadata::type_spec_proto() const {
218 const ::tensorflow::TypeSpecProto* p = type_spec_proto_;
219 // @@protoc_insertion_point(field_get:tensorflow.CompositeTensorVariantMetadata.type_spec_proto)
220 return p != nullptr ? *p : *reinterpret_cast<const ::tensorflow::TypeSpecProto*>(
221 &::tensorflow::_TypeSpecProto_default_instance_);
222}
223inline ::tensorflow::TypeSpecProto* CompositeTensorVariantMetadata::release_type_spec_proto() {
224 // @@protoc_insertion_point(field_release:tensorflow.CompositeTensorVariantMetadata.type_spec_proto)
225
226 ::tensorflow::TypeSpecProto* temp = type_spec_proto_;
227 type_spec_proto_ = nullptr;
228 return temp;
229}
230inline ::tensorflow::TypeSpecProto* CompositeTensorVariantMetadata::mutable_type_spec_proto() {
231
232 if (type_spec_proto_ == nullptr) {
233 auto* p = CreateMaybeMessage<::tensorflow::TypeSpecProto>(GetArenaNoVirtual());
234 type_spec_proto_ = p;
235 }
236 // @@protoc_insertion_point(field_mutable:tensorflow.CompositeTensorVariantMetadata.type_spec_proto)
237 return type_spec_proto_;
238}
239inline void CompositeTensorVariantMetadata::set_allocated_type_spec_proto(::tensorflow::TypeSpecProto* type_spec_proto) {
240 ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaNoVirtual();
241 if (message_arena == nullptr) {
242 delete reinterpret_cast< ::PROTOBUF_NAMESPACE_ID::MessageLite*>(type_spec_proto_);
243 }
244 if (type_spec_proto) {
245 ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena = nullptr;
246 if (message_arena != submessage_arena) {
247 type_spec_proto = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
248 message_arena, type_spec_proto, submessage_arena);
249 }
250
251 } else {
252
253 }
254 type_spec_proto_ = type_spec_proto;
255 // @@protoc_insertion_point(field_set_allocated:tensorflow.CompositeTensorVariantMetadata.type_spec_proto)
256}
257
258#ifdef __GNUC__
259 #pragma GCC diagnostic pop
260#endif // __GNUC__
261
262// @@protoc_insertion_point(namespace_scope)
263
264} // namespace tensorflow
265
266// @@protoc_insertion_point(global_scope)
267
268#include <google/protobuf/port_undef.inc>
269#endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fcomposite_5ftensor_5fvariant_2eproto
270