1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | // source: tensorflow/core/protobuf/verifier_config.proto |
3 | |
4 | #ifndef GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_2eproto |
5 | #define GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_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/generated_enum_reflection.h> |
35 | #include <google/protobuf/unknown_field_set.h> |
36 | // @@protoc_insertion_point(includes) |
37 | #include <google/protobuf/port_def.inc> |
38 | #define PROTOBUF_INTERNAL_EXPORT_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_2eproto |
39 | PROTOBUF_NAMESPACE_OPEN |
40 | namespace internal { |
41 | class AnyMetadata; |
42 | } // namespace internal |
43 | PROTOBUF_NAMESPACE_CLOSE |
44 | |
45 | // Internal implementation detail -- do not use these members. |
46 | struct TableStruct_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_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 | }; |
57 | extern const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_2eproto; |
58 | namespace tensorflow { |
59 | class VerifierConfig; |
60 | class VerifierConfigDefaultTypeInternal; |
61 | extern VerifierConfigDefaultTypeInternal _VerifierConfig_default_instance_; |
62 | } // namespace tensorflow |
63 | PROTOBUF_NAMESPACE_OPEN |
64 | template<> ::tensorflow::VerifierConfig* Arena::CreateMaybeMessage<::tensorflow::VerifierConfig>(Arena*); |
65 | PROTOBUF_NAMESPACE_CLOSE |
66 | namespace tensorflow { |
67 | |
68 | enum VerifierConfig_Toggle : int { |
69 | VerifierConfig_Toggle_DEFAULT = 0, |
70 | VerifierConfig_Toggle_ON = 1, |
71 | VerifierConfig_Toggle_OFF = 2, |
72 | VerifierConfig_Toggle_VerifierConfig_Toggle_INT_MIN_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::min(), |
73 | VerifierConfig_Toggle_VerifierConfig_Toggle_INT_MAX_SENTINEL_DO_NOT_USE_ = std::numeric_limits<::PROTOBUF_NAMESPACE_ID::int32>::max() |
74 | }; |
75 | bool VerifierConfig_Toggle_IsValid(int value); |
76 | constexpr VerifierConfig_Toggle VerifierConfig_Toggle_Toggle_MIN = VerifierConfig_Toggle_DEFAULT; |
77 | constexpr VerifierConfig_Toggle VerifierConfig_Toggle_Toggle_MAX = VerifierConfig_Toggle_OFF; |
78 | constexpr int VerifierConfig_Toggle_Toggle_ARRAYSIZE = VerifierConfig_Toggle_Toggle_MAX + 1; |
79 | |
80 | const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* VerifierConfig_Toggle_descriptor(); |
81 | template<typename T> |
82 | inline const std::string& VerifierConfig_Toggle_Name(T enum_t_value) { |
83 | static_assert(::std::is_same<T, VerifierConfig_Toggle>::value || |
84 | ::std::is_integral<T>::value, |
85 | "Incorrect type passed to function VerifierConfig_Toggle_Name." ); |
86 | return ::PROTOBUF_NAMESPACE_ID::internal::NameOfEnum( |
87 | VerifierConfig_Toggle_descriptor(), enum_t_value); |
88 | } |
89 | inline bool VerifierConfig_Toggle_Parse( |
90 | const std::string& name, VerifierConfig_Toggle* value) { |
91 | return ::PROTOBUF_NAMESPACE_ID::internal::ParseNamedEnum<VerifierConfig_Toggle>( |
92 | VerifierConfig_Toggle_descriptor(), name, value); |
93 | } |
94 | // =================================================================== |
95 | |
96 | class VerifierConfig : |
97 | public ::PROTOBUF_NAMESPACE_ID::Message /* @@protoc_insertion_point(class_definition:tensorflow.VerifierConfig) */ { |
98 | public: |
99 | VerifierConfig(); |
100 | virtual ~VerifierConfig(); |
101 | |
102 | VerifierConfig(const VerifierConfig& from); |
103 | VerifierConfig(VerifierConfig&& from) noexcept |
104 | : VerifierConfig() { |
105 | *this = ::std::move(from); |
106 | } |
107 | |
108 | inline VerifierConfig& operator=(const VerifierConfig& from) { |
109 | CopyFrom(from); |
110 | return *this; |
111 | } |
112 | inline VerifierConfig& operator=(VerifierConfig&& from) noexcept { |
113 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
114 | if (this != &from) InternalSwap(&from); |
115 | } else { |
116 | CopyFrom(from); |
117 | } |
118 | return *this; |
119 | } |
120 | |
121 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArena() const final { |
122 | return GetArenaNoVirtual(); |
123 | } |
124 | inline void* GetMaybeArenaPointer() const final { |
125 | return MaybeArenaPtr(); |
126 | } |
127 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* descriptor() { |
128 | return GetDescriptor(); |
129 | } |
130 | static const ::PROTOBUF_NAMESPACE_ID::Descriptor* GetDescriptor() { |
131 | return GetMetadataStatic().descriptor; |
132 | } |
133 | static const ::PROTOBUF_NAMESPACE_ID::Reflection* GetReflection() { |
134 | return GetMetadataStatic().reflection; |
135 | } |
136 | static const VerifierConfig& default_instance(); |
137 | |
138 | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
139 | static inline const VerifierConfig* internal_default_instance() { |
140 | return reinterpret_cast<const VerifierConfig*>( |
141 | &_VerifierConfig_default_instance_); |
142 | } |
143 | static constexpr int kIndexInFileMessages = |
144 | 0; |
145 | |
146 | friend void swap(VerifierConfig& a, VerifierConfig& b) { |
147 | a.Swap(&b); |
148 | } |
149 | inline void Swap(VerifierConfig* other) { |
150 | if (other == this) return; |
151 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
152 | InternalSwap(other); |
153 | } else { |
154 | ::PROTOBUF_NAMESPACE_ID::internal::GenericSwap(this, other); |
155 | } |
156 | } |
157 | void UnsafeArenaSwap(VerifierConfig* other) { |
158 | if (other == this) return; |
159 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
160 | InternalSwap(other); |
161 | } |
162 | |
163 | // implements Message ---------------------------------------------- |
164 | |
165 | inline VerifierConfig* New() const final { |
166 | return CreateMaybeMessage<VerifierConfig>(nullptr); |
167 | } |
168 | |
169 | VerifierConfig* New(::PROTOBUF_NAMESPACE_ID::Arena* arena) const final { |
170 | return CreateMaybeMessage<VerifierConfig>(arena); |
171 | } |
172 | void CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
173 | void MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) final; |
174 | void CopyFrom(const VerifierConfig& from); |
175 | void MergeFrom(const VerifierConfig& from); |
176 | PROTOBUF_ATTRIBUTE_REINITIALIZES void Clear() final; |
177 | bool IsInitialized() const final; |
178 | |
179 | size_t ByteSizeLong() const final; |
180 | #if GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
181 | const char* _InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) final; |
182 | #else |
183 | bool MergePartialFromCodedStream( |
184 | ::PROTOBUF_NAMESPACE_ID::io::CodedInputStream* input) final; |
185 | #endif // GOOGLE_PROTOBUF_ENABLE_EXPERIMENTAL_PARSER |
186 | void SerializeWithCachedSizes( |
187 | ::PROTOBUF_NAMESPACE_ID::io::CodedOutputStream* output) const final; |
188 | ::PROTOBUF_NAMESPACE_ID::uint8* InternalSerializeWithCachedSizesToArray( |
189 | ::PROTOBUF_NAMESPACE_ID::uint8* target) const final; |
190 | int GetCachedSize() const final { return _cached_size_.Get(); } |
191 | |
192 | private: |
193 | inline void SharedCtor(); |
194 | inline void SharedDtor(); |
195 | void SetCachedSize(int size) const final; |
196 | void InternalSwap(VerifierConfig* other); |
197 | friend class ::PROTOBUF_NAMESPACE_ID::internal::AnyMetadata; |
198 | static ::PROTOBUF_NAMESPACE_ID::StringPiece FullMessageName() { |
199 | return "tensorflow.VerifierConfig" ; |
200 | } |
201 | protected: |
202 | explicit VerifierConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
203 | private: |
204 | static void ArenaDtor(void* object); |
205 | inline void RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena* arena); |
206 | private: |
207 | inline ::PROTOBUF_NAMESPACE_ID::Arena* GetArenaNoVirtual() const { |
208 | return _internal_metadata_.arena(); |
209 | } |
210 | inline void* MaybeArenaPtr() const { |
211 | return _internal_metadata_.raw_arena_ptr(); |
212 | } |
213 | public: |
214 | |
215 | ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadata() const final; |
216 | private: |
217 | static ::PROTOBUF_NAMESPACE_ID::Metadata GetMetadataStatic() { |
218 | ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(&::descriptor_table_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_2eproto); |
219 | return ::descriptor_table_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_2eproto.file_level_metadata[kIndexInFileMessages]; |
220 | } |
221 | |
222 | public: |
223 | |
224 | // nested types ---------------------------------------------------- |
225 | |
226 | typedef VerifierConfig_Toggle Toggle; |
227 | static constexpr Toggle DEFAULT = |
228 | VerifierConfig_Toggle_DEFAULT; |
229 | static constexpr Toggle ON = |
230 | VerifierConfig_Toggle_ON; |
231 | static constexpr Toggle OFF = |
232 | VerifierConfig_Toggle_OFF; |
233 | static inline bool Toggle_IsValid(int value) { |
234 | return VerifierConfig_Toggle_IsValid(value); |
235 | } |
236 | static constexpr Toggle Toggle_MIN = |
237 | VerifierConfig_Toggle_Toggle_MIN; |
238 | static constexpr Toggle Toggle_MAX = |
239 | VerifierConfig_Toggle_Toggle_MAX; |
240 | static constexpr int Toggle_ARRAYSIZE = |
241 | VerifierConfig_Toggle_Toggle_ARRAYSIZE; |
242 | static inline const ::PROTOBUF_NAMESPACE_ID::EnumDescriptor* |
243 | Toggle_descriptor() { |
244 | return VerifierConfig_Toggle_descriptor(); |
245 | } |
246 | template<typename T> |
247 | static inline const std::string& Toggle_Name(T enum_t_value) { |
248 | static_assert(::std::is_same<T, Toggle>::value || |
249 | ::std::is_integral<T>::value, |
250 | "Incorrect type passed to function Toggle_Name." ); |
251 | return VerifierConfig_Toggle_Name(enum_t_value); |
252 | } |
253 | static inline bool Toggle_Parse(const std::string& name, |
254 | Toggle* value) { |
255 | return VerifierConfig_Toggle_Parse(name, value); |
256 | } |
257 | |
258 | // accessors ------------------------------------------------------- |
259 | |
260 | enum : int { |
261 | kVerificationTimeoutInMsFieldNumber = 1, |
262 | kStructureVerifierFieldNumber = 2, |
263 | }; |
264 | // int64 verification_timeout_in_ms = 1; |
265 | void clear_verification_timeout_in_ms(); |
266 | ::PROTOBUF_NAMESPACE_ID::int64 verification_timeout_in_ms() const; |
267 | void set_verification_timeout_in_ms(::PROTOBUF_NAMESPACE_ID::int64 value); |
268 | |
269 | // .tensorflow.VerifierConfig.Toggle structure_verifier = 2; |
270 | void clear_structure_verifier(); |
271 | ::tensorflow::VerifierConfig_Toggle structure_verifier() const; |
272 | void set_structure_verifier(::tensorflow::VerifierConfig_Toggle value); |
273 | |
274 | // @@protoc_insertion_point(class_scope:tensorflow.VerifierConfig) |
275 | private: |
276 | class _Internal; |
277 | |
278 | ::PROTOBUF_NAMESPACE_ID::internal::InternalMetadataWithArena _internal_metadata_; |
279 | template <typename T> friend class ::PROTOBUF_NAMESPACE_ID::Arena::InternalHelper; |
280 | typedef void InternalArenaConstructable_; |
281 | typedef void DestructorSkippable_; |
282 | ::PROTOBUF_NAMESPACE_ID::int64 verification_timeout_in_ms_; |
283 | int structure_verifier_; |
284 | mutable ::PROTOBUF_NAMESPACE_ID::internal::CachedSize _cached_size_; |
285 | friend struct ::TableStruct_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_2eproto; |
286 | }; |
287 | // =================================================================== |
288 | |
289 | |
290 | // =================================================================== |
291 | |
292 | #ifdef __GNUC__ |
293 | #pragma GCC diagnostic push |
294 | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
295 | #endif // __GNUC__ |
296 | // VerifierConfig |
297 | |
298 | // int64 verification_timeout_in_ms = 1; |
299 | inline void VerifierConfig::clear_verification_timeout_in_ms() { |
300 | verification_timeout_in_ms_ = PROTOBUF_LONGLONG(0); |
301 | } |
302 | inline ::PROTOBUF_NAMESPACE_ID::int64 VerifierConfig::verification_timeout_in_ms() const { |
303 | // @@protoc_insertion_point(field_get:tensorflow.VerifierConfig.verification_timeout_in_ms) |
304 | return verification_timeout_in_ms_; |
305 | } |
306 | inline void VerifierConfig::set_verification_timeout_in_ms(::PROTOBUF_NAMESPACE_ID::int64 value) { |
307 | |
308 | verification_timeout_in_ms_ = value; |
309 | // @@protoc_insertion_point(field_set:tensorflow.VerifierConfig.verification_timeout_in_ms) |
310 | } |
311 | |
312 | // .tensorflow.VerifierConfig.Toggle structure_verifier = 2; |
313 | inline void VerifierConfig::clear_structure_verifier() { |
314 | structure_verifier_ = 0; |
315 | } |
316 | inline ::tensorflow::VerifierConfig_Toggle VerifierConfig::structure_verifier() const { |
317 | // @@protoc_insertion_point(field_get:tensorflow.VerifierConfig.structure_verifier) |
318 | return static_cast< ::tensorflow::VerifierConfig_Toggle >(structure_verifier_); |
319 | } |
320 | inline void VerifierConfig::set_structure_verifier(::tensorflow::VerifierConfig_Toggle value) { |
321 | |
322 | structure_verifier_ = value; |
323 | // @@protoc_insertion_point(field_set:tensorflow.VerifierConfig.structure_verifier) |
324 | } |
325 | |
326 | #ifdef __GNUC__ |
327 | #pragma GCC diagnostic pop |
328 | #endif // __GNUC__ |
329 | |
330 | // @@protoc_insertion_point(namespace_scope) |
331 | |
332 | } // namespace tensorflow |
333 | |
334 | PROTOBUF_NAMESPACE_OPEN |
335 | |
336 | template <> struct is_proto_enum< ::tensorflow::VerifierConfig_Toggle> : ::std::true_type {}; |
337 | template <> |
338 | inline const EnumDescriptor* GetEnumDescriptor< ::tensorflow::VerifierConfig_Toggle>() { |
339 | return ::tensorflow::VerifierConfig_Toggle_descriptor(); |
340 | } |
341 | |
342 | PROTOBUF_NAMESPACE_CLOSE |
343 | |
344 | // @@protoc_insertion_point(global_scope) |
345 | |
346 | #include <google/protobuf/port_undef.inc> |
347 | #endif // GOOGLE_PROTOBUF_INCLUDED_GOOGLE_PROTOBUF_INCLUDED_tensorflow_2fcore_2fprotobuf_2fverifier_5fconfig_2eproto |
348 | |