/Users/deen/code/yugabyte-db/build/debugcov-clang-dynamic-arm64-ninja/src/yb/encryption/encryption.pb.h
Line | Count | Source (jump to first uncovered line) |
1 | | // Generated by the protocol buffer compiler. DO NOT EDIT! |
2 | | // source: yb/encryption/encryption.proto |
3 | | |
4 | | #ifndef PROTOBUF_yb_2fencryption_2fencryption_2eproto__INCLUDED |
5 | | #define PROTOBUF_yb_2fencryption_2fencryption_2eproto__INCLUDED |
6 | | |
7 | | #include <string> |
8 | | |
9 | | #include <google/protobuf/stubs/common.h> |
10 | | |
11 | | #if GOOGLE_PROTOBUF_VERSION < 3005000 |
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 3005001 < GOOGLE_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/io/coded_stream.h> |
23 | | #include <google/protobuf/arena.h> |
24 | | #include <google/protobuf/arenastring.h> |
25 | | #include <google/protobuf/generated_message_table_driven.h> |
26 | | #include <google/protobuf/generated_message_util.h> |
27 | | #include <google/protobuf/metadata.h> |
28 | | #include <google/protobuf/message.h> |
29 | | #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
30 | | #include <google/protobuf/extension_set.h> // IWYU pragma: export |
31 | | #include <google/protobuf/map.h> // IWYU pragma: export |
32 | | #include <google/protobuf/map_entry.h> |
33 | | #include <google/protobuf/map_field_inl.h> |
34 | | #include <google/protobuf/unknown_field_set.h> |
35 | | // @@protoc_insertion_point(includes) |
36 | | |
37 | | namespace protobuf_yb_2fencryption_2fencryption_2eproto { |
38 | | // Internal implementation detail -- do not use these members. |
39 | | struct TableStruct { |
40 | | static const ::google::protobuf::internal::ParseTableField entries[]; |
41 | | static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; |
42 | | static const ::google::protobuf::internal::ParseTable schema[5]; |
43 | | static const ::google::protobuf::internal::FieldMetadata field_metadata[]; |
44 | | static const ::google::protobuf::internal::SerializationTable serialization_table[]; |
45 | | static const ::google::protobuf::uint32 offsets[]; |
46 | | }; |
47 | | void AddDescriptors(); |
48 | | void InitDefaultsEncryptionParamsPBImpl(); |
49 | | void InitDefaultsEncryptionParamsPB(); |
50 | | void InitDefaultsUniverseKeysPB_MapEntry_DoNotUseImpl(); |
51 | | void InitDefaultsUniverseKeysPB_MapEntry_DoNotUse(); |
52 | | void InitDefaultsUniverseKeysPBImpl(); |
53 | | void InitDefaultsUniverseKeysPB(); |
54 | | void InitDefaultsUniverseKeyRegistryPB_UniverseKeysEntry_DoNotUseImpl(); |
55 | | void InitDefaultsUniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse(); |
56 | | void InitDefaultsUniverseKeyRegistryPBImpl(); |
57 | | void InitDefaultsUniverseKeyRegistryPB(); |
58 | 17.2k | inline void InitDefaults() { |
59 | 17.2k | InitDefaultsEncryptionParamsPB(); |
60 | 17.2k | InitDefaultsUniverseKeysPB_MapEntry_DoNotUse(); |
61 | 17.2k | InitDefaultsUniverseKeysPB(); |
62 | 17.2k | InitDefaultsUniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse(); |
63 | 17.2k | InitDefaultsUniverseKeyRegistryPB(); |
64 | 17.2k | } |
65 | | } // namespace protobuf_yb_2fencryption_2fencryption_2eproto |
66 | | namespace yb { |
67 | | namespace encryption { |
68 | | class EncryptionParamsPB; |
69 | | class EncryptionParamsPBDefaultTypeInternal; |
70 | | extern EncryptionParamsPBDefaultTypeInternal _EncryptionParamsPB_default_instance_; |
71 | | class UniverseKeyRegistryPB; |
72 | | class UniverseKeyRegistryPBDefaultTypeInternal; |
73 | | extern UniverseKeyRegistryPBDefaultTypeInternal _UniverseKeyRegistryPB_default_instance_; |
74 | | class UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse; |
75 | | class UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUseDefaultTypeInternal; |
76 | | extern UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUseDefaultTypeInternal _UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse_default_instance_; |
77 | | class UniverseKeysPB; |
78 | | class UniverseKeysPBDefaultTypeInternal; |
79 | | extern UniverseKeysPBDefaultTypeInternal _UniverseKeysPB_default_instance_; |
80 | | class UniverseKeysPB_MapEntry_DoNotUse; |
81 | | class UniverseKeysPB_MapEntry_DoNotUseDefaultTypeInternal; |
82 | | extern UniverseKeysPB_MapEntry_DoNotUseDefaultTypeInternal _UniverseKeysPB_MapEntry_DoNotUse_default_instance_; |
83 | | } // namespace encryption |
84 | | } // namespace yb |
85 | | namespace yb { |
86 | | namespace encryption { |
87 | | |
88 | | // =================================================================== |
89 | | |
90 | | class EncryptionParamsPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.encryption.EncryptionParamsPB) */ { |
91 | | public: |
92 | | EncryptionParamsPB(); |
93 | | virtual ~EncryptionParamsPB(); |
94 | | |
95 | | EncryptionParamsPB(const EncryptionParamsPB& from); |
96 | | |
97 | 36 | inline EncryptionParamsPB& operator=(const EncryptionParamsPB& from) { |
98 | 36 | CopyFrom(from); |
99 | 36 | return *this; |
100 | 36 | } |
101 | | #if LANG_CXX11 |
102 | | EncryptionParamsPB(EncryptionParamsPB&& from) noexcept |
103 | 70 | : EncryptionParamsPB() { |
104 | 70 | *this = ::std::move(from); |
105 | 70 | } Unexecuted instantiation: _ZN2yb10encryption18EncryptionParamsPBC2EOS1_ _ZN2yb10encryption18EncryptionParamsPBC1EOS1_ Line | Count | Source | 103 | 70 | : EncryptionParamsPB() { | 104 | 70 | *this = ::std::move(from); | 105 | 70 | } |
|
106 | | |
107 | 70 | inline EncryptionParamsPB& operator=(EncryptionParamsPB&& from) noexcept { |
108 | 70 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
109 | 70 | if (this != &from) InternalSwap(&from); |
110 | 0 | } else { |
111 | 0 | CopyFrom(from); |
112 | 0 | } |
113 | 70 | return *this; |
114 | 70 | } |
115 | | #endif |
116 | | static const ::google::protobuf::Descriptor* descriptor(); |
117 | | static const EncryptionParamsPB& default_instance(); |
118 | | |
119 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
120 | 34.6k | static inline const EncryptionParamsPB* internal_default_instance() { |
121 | 34.6k | return reinterpret_cast<const EncryptionParamsPB*>( |
122 | 34.6k | &_EncryptionParamsPB_default_instance_); |
123 | 34.6k | } |
124 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
125 | | 0; |
126 | | |
127 | | void Swap(EncryptionParamsPB* other); |
128 | 0 | friend void swap(EncryptionParamsPB& a, EncryptionParamsPB& b) { |
129 | 0 | a.Swap(&b); |
130 | 0 | } |
131 | | |
132 | | // implements Message ---------------------------------------------- |
133 | | |
134 | 0 | inline EncryptionParamsPB* New() const PROTOBUF_FINAL { return New(NULL); } |
135 | | |
136 | | EncryptionParamsPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
137 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
138 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
139 | | void CopyFrom(const EncryptionParamsPB& from); |
140 | | void MergeFrom(const EncryptionParamsPB& from); |
141 | | void Clear() PROTOBUF_FINAL; |
142 | | bool IsInitialized() const PROTOBUF_FINAL; |
143 | | |
144 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
145 | | bool MergePartialFromCodedStream( |
146 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
147 | | void SerializeWithCachedSizes( |
148 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
149 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
150 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
151 | 26 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
152 | | private: |
153 | | void SharedCtor(); |
154 | | void SharedDtor(); |
155 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
156 | | void InternalSwap(EncryptionParamsPB* other); |
157 | | private: |
158 | 140 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
159 | 140 | return NULL; |
160 | 140 | } |
161 | 0 | inline void* MaybeArenaPtr() const { |
162 | 0 | return NULL; |
163 | 0 | } |
164 | | public: |
165 | | |
166 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
167 | | |
168 | | // nested types ---------------------------------------------------- |
169 | | |
170 | | // accessors ------------------------------------------------------- |
171 | | |
172 | | // bytes data_key = 1; |
173 | | void clear_data_key(); |
174 | | static const int kDataKeyFieldNumber = 1; |
175 | | const ::std::string& data_key() const; |
176 | | void set_data_key(const ::std::string& value); |
177 | | #if LANG_CXX11 |
178 | | void set_data_key(::std::string&& value); |
179 | | #endif |
180 | | void set_data_key(const char* value); |
181 | | void set_data_key(const void* value, size_t size); |
182 | | ::std::string* mutable_data_key(); |
183 | | ::std::string* release_data_key(); |
184 | | void set_allocated_data_key(::std::string* data_key); |
185 | | |
186 | | // bytes nonce = 2; |
187 | | void clear_nonce(); |
188 | | static const int kNonceFieldNumber = 2; |
189 | | const ::std::string& nonce() const; |
190 | | void set_nonce(const ::std::string& value); |
191 | | #if LANG_CXX11 |
192 | | void set_nonce(::std::string&& value); |
193 | | #endif |
194 | | void set_nonce(const char* value); |
195 | | void set_nonce(const void* value, size_t size); |
196 | | ::std::string* mutable_nonce(); |
197 | | ::std::string* release_nonce(); |
198 | | void set_allocated_nonce(::std::string* nonce); |
199 | | |
200 | | // int32 counter = 3; |
201 | | void clear_counter(); |
202 | | static const int kCounterFieldNumber = 3; |
203 | | ::google::protobuf::int32 counter() const; |
204 | | void set_counter(::google::protobuf::int32 value); |
205 | | |
206 | | // bool openssl_compatible_counter_overflow = 4; |
207 | | void clear_openssl_compatible_counter_overflow(); |
208 | | static const int kOpensslCompatibleCounterOverflowFieldNumber = 4; |
209 | | bool openssl_compatible_counter_overflow() const; |
210 | | void set_openssl_compatible_counter_overflow(bool value); |
211 | | |
212 | | // @@protoc_insertion_point(class_scope:yb.encryption.EncryptionParamsPB) |
213 | | private: |
214 | | |
215 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
216 | | ::google::protobuf::internal::ArenaStringPtr data_key_; |
217 | | ::google::protobuf::internal::ArenaStringPtr nonce_; |
218 | | ::google::protobuf::int32 counter_; |
219 | | bool openssl_compatible_counter_overflow_; |
220 | | mutable int _cached_size_; |
221 | | friend struct ::protobuf_yb_2fencryption_2fencryption_2eproto::TableStruct; |
222 | | friend void ::protobuf_yb_2fencryption_2fencryption_2eproto::InitDefaultsEncryptionParamsPBImpl(); |
223 | | }; |
224 | | // ------------------------------------------------------------------- |
225 | | |
226 | | class UniverseKeysPB_MapEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<UniverseKeysPB_MapEntry_DoNotUse, |
227 | | ::std::string, ::std::string, |
228 | | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
229 | | ::google::protobuf::internal::WireFormatLite::TYPE_BYTES, |
230 | | 0 > { |
231 | | public: |
232 | | typedef ::google::protobuf::internal::MapEntry<UniverseKeysPB_MapEntry_DoNotUse, |
233 | | ::std::string, ::std::string, |
234 | | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
235 | | ::google::protobuf::internal::WireFormatLite::TYPE_BYTES, |
236 | | 0 > SuperType; |
237 | | UniverseKeysPB_MapEntry_DoNotUse(); |
238 | | UniverseKeysPB_MapEntry_DoNotUse(::google::protobuf::Arena* arena); |
239 | | void MergeFrom(const UniverseKeysPB_MapEntry_DoNotUse& other); |
240 | 17.2k | static const UniverseKeysPB_MapEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const UniverseKeysPB_MapEntry_DoNotUse*>(&_UniverseKeysPB_MapEntry_DoNotUse_default_instance_); } |
241 | | void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; |
242 | | ::google::protobuf::Metadata GetMetadata() const; |
243 | | }; |
244 | | |
245 | | // ------------------------------------------------------------------- |
246 | | |
247 | | class UniverseKeysPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.encryption.UniverseKeysPB) */ { |
248 | | public: |
249 | | UniverseKeysPB(); |
250 | | virtual ~UniverseKeysPB(); |
251 | | |
252 | | UniverseKeysPB(const UniverseKeysPB& from); |
253 | | |
254 | 9.16k | inline UniverseKeysPB& operator=(const UniverseKeysPB& from) { |
255 | 9.16k | CopyFrom(from); |
256 | 9.16k | return *this; |
257 | 9.16k | } |
258 | | #if LANG_CXX11 |
259 | | UniverseKeysPB(UniverseKeysPB&& from) noexcept |
260 | 0 | : UniverseKeysPB() { |
261 | 0 | *this = ::std::move(from); |
262 | 0 | } |
263 | | |
264 | 0 | inline UniverseKeysPB& operator=(UniverseKeysPB&& from) noexcept { |
265 | 0 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
266 | 0 | if (this != &from) InternalSwap(&from); |
267 | 0 | } else { |
268 | 0 | CopyFrom(from); |
269 | 0 | } |
270 | 0 | return *this; |
271 | 0 | } |
272 | | #endif |
273 | | static const ::google::protobuf::Descriptor* descriptor(); |
274 | | static const UniverseKeysPB& default_instance(); |
275 | | |
276 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
277 | 72.7k | static inline const UniverseKeysPB* internal_default_instance() { |
278 | 72.7k | return reinterpret_cast<const UniverseKeysPB*>( |
279 | 72.7k | &_UniverseKeysPB_default_instance_); |
280 | 72.7k | } |
281 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
282 | | 2; |
283 | | |
284 | | void Swap(UniverseKeysPB* other); |
285 | 0 | friend void swap(UniverseKeysPB& a, UniverseKeysPB& b) { |
286 | 0 | a.Swap(&b); |
287 | 0 | } |
288 | | |
289 | | // implements Message ---------------------------------------------- |
290 | | |
291 | 0 | inline UniverseKeysPB* New() const PROTOBUF_FINAL { return New(NULL); } |
292 | | |
293 | | UniverseKeysPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
294 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
295 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
296 | | void CopyFrom(const UniverseKeysPB& from); |
297 | | void MergeFrom(const UniverseKeysPB& from); |
298 | | void Clear() PROTOBUF_FINAL; |
299 | | bool IsInitialized() const PROTOBUF_FINAL; |
300 | | |
301 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
302 | | bool MergePartialFromCodedStream( |
303 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
304 | | void SerializeWithCachedSizes( |
305 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
306 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
307 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
308 | 9.16k | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
309 | | private: |
310 | | void SharedCtor(); |
311 | | void SharedDtor(); |
312 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
313 | | void InternalSwap(UniverseKeysPB* other); |
314 | | private: |
315 | 0 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
316 | 0 | return NULL; |
317 | 0 | } |
318 | 0 | inline void* MaybeArenaPtr() const { |
319 | 0 | return NULL; |
320 | 0 | } |
321 | | public: |
322 | | |
323 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
324 | | |
325 | | // nested types ---------------------------------------------------- |
326 | | |
327 | | |
328 | | // accessors ------------------------------------------------------- |
329 | | |
330 | | // map<string, bytes> map = 1; |
331 | | int map_size() const; |
332 | | void clear_map(); |
333 | | static const int kMapFieldNumber = 1; |
334 | | const ::google::protobuf::Map< ::std::string, ::std::string >& |
335 | | map() const; |
336 | | ::google::protobuf::Map< ::std::string, ::std::string >* |
337 | | mutable_map(); |
338 | | |
339 | | // @@protoc_insertion_point(class_scope:yb.encryption.UniverseKeysPB) |
340 | | private: |
341 | | |
342 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
343 | | ::google::protobuf::internal::MapField< |
344 | | UniverseKeysPB_MapEntry_DoNotUse, |
345 | | ::std::string, ::std::string, |
346 | | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
347 | | ::google::protobuf::internal::WireFormatLite::TYPE_BYTES, |
348 | | 0 > map_; |
349 | | mutable int _cached_size_; |
350 | | friend struct ::protobuf_yb_2fencryption_2fencryption_2eproto::TableStruct; |
351 | | friend void ::protobuf_yb_2fencryption_2fencryption_2eproto::InitDefaultsUniverseKeysPBImpl(); |
352 | | }; |
353 | | // ------------------------------------------------------------------- |
354 | | |
355 | | class UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse : public ::google::protobuf::internal::MapEntry<UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse, |
356 | | ::std::string, ::yb::encryption::EncryptionParamsPB, |
357 | | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
358 | | ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
359 | | 0 > { |
360 | | public: |
361 | | typedef ::google::protobuf::internal::MapEntry<UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse, |
362 | | ::std::string, ::yb::encryption::EncryptionParamsPB, |
363 | | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
364 | | ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
365 | | 0 > SuperType; |
366 | | UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse(); |
367 | | UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse(::google::protobuf::Arena* arena); |
368 | | void MergeFrom(const UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse& other); |
369 | 17.2k | static const UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse*>(&_UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse_default_instance_); } |
370 | | void MergeFrom(const ::google::protobuf::Message& other) PROTOBUF_FINAL; |
371 | | ::google::protobuf::Metadata GetMetadata() const; |
372 | | }; |
373 | | |
374 | | // ------------------------------------------------------------------- |
375 | | |
376 | | class UniverseKeyRegistryPB : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:yb.encryption.UniverseKeyRegistryPB) */ { |
377 | | public: |
378 | | UniverseKeyRegistryPB(); |
379 | | virtual ~UniverseKeyRegistryPB(); |
380 | | |
381 | | UniverseKeyRegistryPB(const UniverseKeyRegistryPB& from); |
382 | | |
383 | 14 | inline UniverseKeyRegistryPB& operator=(const UniverseKeyRegistryPB& from) { |
384 | 14 | CopyFrom(from); |
385 | 14 | return *this; |
386 | 14 | } |
387 | | #if LANG_CXX11 |
388 | | UniverseKeyRegistryPB(UniverseKeyRegistryPB&& from) noexcept |
389 | 30 | : UniverseKeyRegistryPB() { |
390 | 30 | *this = ::std::move(from); |
391 | 30 | } Unexecuted instantiation: _ZN2yb10encryption21UniverseKeyRegistryPBC2EOS1_ _ZN2yb10encryption21UniverseKeyRegistryPBC1EOS1_ Line | Count | Source | 389 | 30 | : UniverseKeyRegistryPB() { | 390 | 30 | *this = ::std::move(from); | 391 | 30 | } |
|
392 | | |
393 | 30 | inline UniverseKeyRegistryPB& operator=(UniverseKeyRegistryPB&& from) noexcept { |
394 | 30 | if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { |
395 | 30 | if (this != &from) InternalSwap(&from); |
396 | 0 | } else { |
397 | 0 | CopyFrom(from); |
398 | 0 | } |
399 | 30 | return *this; |
400 | 30 | } |
401 | | #endif |
402 | | static const ::google::protobuf::Descriptor* descriptor(); |
403 | | static const UniverseKeyRegistryPB& default_instance(); |
404 | | |
405 | | static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY |
406 | 39.2k | static inline const UniverseKeyRegistryPB* internal_default_instance() { |
407 | 39.2k | return reinterpret_cast<const UniverseKeyRegistryPB*>( |
408 | 39.2k | &_UniverseKeyRegistryPB_default_instance_); |
409 | 39.2k | } |
410 | | static PROTOBUF_CONSTEXPR int const kIndexInFileMessages = |
411 | | 4; |
412 | | |
413 | | void Swap(UniverseKeyRegistryPB* other); |
414 | 0 | friend void swap(UniverseKeyRegistryPB& a, UniverseKeyRegistryPB& b) { |
415 | 0 | a.Swap(&b); |
416 | 0 | } |
417 | | |
418 | | // implements Message ---------------------------------------------- |
419 | | |
420 | 0 | inline UniverseKeyRegistryPB* New() const PROTOBUF_FINAL { return New(NULL); } |
421 | | |
422 | | UniverseKeyRegistryPB* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
423 | | void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
424 | | void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
425 | | void CopyFrom(const UniverseKeyRegistryPB& from); |
426 | | void MergeFrom(const UniverseKeyRegistryPB& from); |
427 | | void Clear() PROTOBUF_FINAL; |
428 | | bool IsInitialized() const PROTOBUF_FINAL; |
429 | | |
430 | | size_t ByteSizeLong() const PROTOBUF_FINAL; |
431 | | bool MergePartialFromCodedStream( |
432 | | ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
433 | | void SerializeWithCachedSizes( |
434 | | ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
435 | | ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
436 | | bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINAL; |
437 | 3 | int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
438 | | private: |
439 | | void SharedCtor(); |
440 | | void SharedDtor(); |
441 | | void SetCachedSize(int size) const PROTOBUF_FINAL; |
442 | | void InternalSwap(UniverseKeyRegistryPB* other); |
443 | | private: |
444 | 60 | inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
445 | 60 | return NULL; |
446 | 60 | } |
447 | 0 | inline void* MaybeArenaPtr() const { |
448 | 0 | return NULL; |
449 | 0 | } |
450 | | public: |
451 | | |
452 | | ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
453 | | |
454 | | // nested types ---------------------------------------------------- |
455 | | |
456 | | |
457 | | // accessors ------------------------------------------------------- |
458 | | |
459 | | // map<string, .yb.encryption.EncryptionParamsPB> universe_keys = 2; |
460 | | int universe_keys_size() const; |
461 | | void clear_universe_keys(); |
462 | | static const int kUniverseKeysFieldNumber = 2; |
463 | | const ::google::protobuf::Map< ::std::string, ::yb::encryption::EncryptionParamsPB >& |
464 | | universe_keys() const; |
465 | | ::google::protobuf::Map< ::std::string, ::yb::encryption::EncryptionParamsPB >* |
466 | | mutable_universe_keys(); |
467 | | |
468 | | // string latest_version_id = 3; |
469 | | void clear_latest_version_id(); |
470 | | static const int kLatestVersionIdFieldNumber = 3; |
471 | | const ::std::string& latest_version_id() const; |
472 | | void set_latest_version_id(const ::std::string& value); |
473 | | #if LANG_CXX11 |
474 | | void set_latest_version_id(::std::string&& value); |
475 | | #endif |
476 | | void set_latest_version_id(const char* value); |
477 | | void set_latest_version_id(const char* value, size_t size); |
478 | | ::std::string* mutable_latest_version_id(); |
479 | | ::std::string* release_latest_version_id(); |
480 | | void set_allocated_latest_version_id(::std::string* latest_version_id); |
481 | | |
482 | | // bool encryption_enabled = 1; |
483 | | void clear_encryption_enabled(); |
484 | | static const int kEncryptionEnabledFieldNumber = 1; |
485 | | bool encryption_enabled() const; |
486 | | void set_encryption_enabled(bool value); |
487 | | |
488 | | // @@protoc_insertion_point(class_scope:yb.encryption.UniverseKeyRegistryPB) |
489 | | private: |
490 | | |
491 | | ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
492 | | ::google::protobuf::internal::MapField< |
493 | | UniverseKeyRegistryPB_UniverseKeysEntry_DoNotUse, |
494 | | ::std::string, ::yb::encryption::EncryptionParamsPB, |
495 | | ::google::protobuf::internal::WireFormatLite::TYPE_STRING, |
496 | | ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, |
497 | | 0 > universe_keys_; |
498 | | ::google::protobuf::internal::ArenaStringPtr latest_version_id_; |
499 | | bool encryption_enabled_; |
500 | | mutable int _cached_size_; |
501 | | friend struct ::protobuf_yb_2fencryption_2fencryption_2eproto::TableStruct; |
502 | | friend void ::protobuf_yb_2fencryption_2fencryption_2eproto::InitDefaultsUniverseKeyRegistryPBImpl(); |
503 | | }; |
504 | | // =================================================================== |
505 | | |
506 | | |
507 | | // =================================================================== |
508 | | |
509 | | #ifdef __GNUC__ |
510 | | #pragma GCC diagnostic push |
511 | | #pragma GCC diagnostic ignored "-Wstrict-aliasing" |
512 | | #endif // __GNUC__ |
513 | | // EncryptionParamsPB |
514 | | |
515 | | // bytes data_key = 1; |
516 | 0 | inline void EncryptionParamsPB::clear_data_key() { |
517 | 0 | data_key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
518 | 0 | } |
519 | 579 | inline const ::std::string& EncryptionParamsPB::data_key() const { |
520 | | // @@protoc_insertion_point(field_get:yb.encryption.EncryptionParamsPB.data_key) |
521 | 579 | return data_key_.GetNoArena(); |
522 | 579 | } |
523 | 0 | inline void EncryptionParamsPB::set_data_key(const ::std::string& value) { |
524 | 0 | |
525 | 0 | data_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
526 | 0 | // @@protoc_insertion_point(field_set:yb.encryption.EncryptionParamsPB.data_key) |
527 | 0 | } |
528 | | #if LANG_CXX11 |
529 | 0 | inline void EncryptionParamsPB::set_data_key(::std::string&& value) { |
530 | 0 | |
531 | 0 | data_key_.SetNoArena( |
532 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
533 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.encryption.EncryptionParamsPB.data_key) |
534 | 0 | } |
535 | | #endif |
536 | 0 | inline void EncryptionParamsPB::set_data_key(const char* value) { |
537 | 0 | GOOGLE_DCHECK(value != NULL); |
538 | 0 | |
539 | 0 | data_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
540 | 0 | // @@protoc_insertion_point(field_set_char:yb.encryption.EncryptionParamsPB.data_key) |
541 | 0 | } |
542 | 56 | inline void EncryptionParamsPB::set_data_key(const void* value, size_t size) { |
543 | | |
544 | 56 | data_key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
545 | 56 | ::std::string(reinterpret_cast<const char*>(value), size)); |
546 | | // @@protoc_insertion_point(field_set_pointer:yb.encryption.EncryptionParamsPB.data_key) |
547 | 56 | } |
548 | 55 | inline ::std::string* EncryptionParamsPB::mutable_data_key() { |
549 | | |
550 | | // @@protoc_insertion_point(field_mutable:yb.encryption.EncryptionParamsPB.data_key) |
551 | 55 | return data_key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
552 | 55 | } |
553 | 0 | inline ::std::string* EncryptionParamsPB::release_data_key() { |
554 | 0 | // @@protoc_insertion_point(field_release:yb.encryption.EncryptionParamsPB.data_key) |
555 | 0 | |
556 | 0 | return data_key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
557 | 0 | } |
558 | 0 | inline void EncryptionParamsPB::set_allocated_data_key(::std::string* data_key) { |
559 | 0 | if (data_key != NULL) { |
560 | 0 | |
561 | 0 | } else { |
562 | 0 | |
563 | 0 | } |
564 | 0 | data_key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), data_key); |
565 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.encryption.EncryptionParamsPB.data_key) |
566 | 0 | } |
567 | | |
568 | | // bytes nonce = 2; |
569 | 0 | inline void EncryptionParamsPB::clear_nonce() { |
570 | 0 | nonce_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
571 | 0 | } |
572 | 361 | inline const ::std::string& EncryptionParamsPB::nonce() const { |
573 | | // @@protoc_insertion_point(field_get:yb.encryption.EncryptionParamsPB.nonce) |
574 | 361 | return nonce_.GetNoArena(); |
575 | 361 | } |
576 | 0 | inline void EncryptionParamsPB::set_nonce(const ::std::string& value) { |
577 | 0 | |
578 | 0 | nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
579 | 0 | // @@protoc_insertion_point(field_set:yb.encryption.EncryptionParamsPB.nonce) |
580 | 0 | } |
581 | | #if LANG_CXX11 |
582 | 0 | inline void EncryptionParamsPB::set_nonce(::std::string&& value) { |
583 | 0 | |
584 | 0 | nonce_.SetNoArena( |
585 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
586 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.encryption.EncryptionParamsPB.nonce) |
587 | 0 | } |
588 | | #endif |
589 | 0 | inline void EncryptionParamsPB::set_nonce(const char* value) { |
590 | 0 | GOOGLE_DCHECK(value != NULL); |
591 | 0 | |
592 | 0 | nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
593 | 0 | // @@protoc_insertion_point(field_set_char:yb.encryption.EncryptionParamsPB.nonce) |
594 | 0 | } |
595 | 56 | inline void EncryptionParamsPB::set_nonce(const void* value, size_t size) { |
596 | | |
597 | 56 | nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
598 | 56 | ::std::string(reinterpret_cast<const char*>(value), size)); |
599 | | // @@protoc_insertion_point(field_set_pointer:yb.encryption.EncryptionParamsPB.nonce) |
600 | 56 | } |
601 | 55 | inline ::std::string* EncryptionParamsPB::mutable_nonce() { |
602 | | |
603 | | // @@protoc_insertion_point(field_mutable:yb.encryption.EncryptionParamsPB.nonce) |
604 | 55 | return nonce_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
605 | 55 | } |
606 | 0 | inline ::std::string* EncryptionParamsPB::release_nonce() { |
607 | 0 | // @@protoc_insertion_point(field_release:yb.encryption.EncryptionParamsPB.nonce) |
608 | 0 | |
609 | 0 | return nonce_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
610 | 0 | } |
611 | 0 | inline void EncryptionParamsPB::set_allocated_nonce(::std::string* nonce) { |
612 | 0 | if (nonce != NULL) { |
613 | 0 | |
614 | 0 | } else { |
615 | 0 | |
616 | 0 | } |
617 | 0 | nonce_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), nonce); |
618 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.encryption.EncryptionParamsPB.nonce) |
619 | 0 | } |
620 | | |
621 | | // int32 counter = 3; |
622 | 0 | inline void EncryptionParamsPB::clear_counter() { |
623 | 0 | counter_ = 0; |
624 | 0 | } |
625 | 397 | inline ::google::protobuf::int32 EncryptionParamsPB::counter() const { |
626 | | // @@protoc_insertion_point(field_get:yb.encryption.EncryptionParamsPB.counter) |
627 | 397 | return counter_; |
628 | 397 | } |
629 | 92 | inline void EncryptionParamsPB::set_counter(::google::protobuf::int32 value) { |
630 | | |
631 | 92 | counter_ = value; |
632 | | // @@protoc_insertion_point(field_set:yb.encryption.EncryptionParamsPB.counter) |
633 | 92 | } |
634 | | |
635 | | // bool openssl_compatible_counter_overflow = 4; |
636 | 0 | inline void EncryptionParamsPB::clear_openssl_compatible_counter_overflow() { |
637 | 0 | openssl_compatible_counter_overflow_ = false; |
638 | 0 | } |
639 | 294 | inline bool EncryptionParamsPB::openssl_compatible_counter_overflow() const { |
640 | | // @@protoc_insertion_point(field_get:yb.encryption.EncryptionParamsPB.openssl_compatible_counter_overflow) |
641 | 294 | return openssl_compatible_counter_overflow_; |
642 | 294 | } |
643 | 62 | inline void EncryptionParamsPB::set_openssl_compatible_counter_overflow(bool value) { |
644 | | |
645 | 62 | openssl_compatible_counter_overflow_ = value; |
646 | | // @@protoc_insertion_point(field_set:yb.encryption.EncryptionParamsPB.openssl_compatible_counter_overflow) |
647 | 62 | } |
648 | | |
649 | | // ------------------------------------------------------------------- |
650 | | |
651 | | // ------------------------------------------------------------------- |
652 | | |
653 | | // UniverseKeysPB |
654 | | |
655 | | // map<string, bytes> map = 1; |
656 | 18.3k | inline int UniverseKeysPB::map_size() const { |
657 | 18.3k | return map_.size(); |
658 | 18.3k | } |
659 | 0 | inline void UniverseKeysPB::clear_map() { |
660 | 0 | map_.Clear(); |
661 | 0 | } |
662 | | inline const ::google::protobuf::Map< ::std::string, ::std::string >& |
663 | 64.2k | UniverseKeysPB::map() const { |
664 | | // @@protoc_insertion_point(field_map:yb.encryption.UniverseKeysPB.map) |
665 | 64.2k | return map_.GetMap(); |
666 | 64.2k | } |
667 | | inline ::google::protobuf::Map< ::std::string, ::std::string >* |
668 | 18 | UniverseKeysPB::mutable_map() { |
669 | | // @@protoc_insertion_point(field_mutable_map:yb.encryption.UniverseKeysPB.map) |
670 | 18 | return map_.MutableMap(); |
671 | 18 | } |
672 | | |
673 | | // ------------------------------------------------------------------- |
674 | | |
675 | | // ------------------------------------------------------------------- |
676 | | |
677 | | // UniverseKeyRegistryPB |
678 | | |
679 | | // bool encryption_enabled = 1; |
680 | 0 | inline void UniverseKeyRegistryPB::clear_encryption_enabled() { |
681 | 0 | encryption_enabled_ = false; |
682 | 0 | } |
683 | 3.39M | inline bool UniverseKeyRegistryPB::encryption_enabled() const { |
684 | | // @@protoc_insertion_point(field_get:yb.encryption.UniverseKeyRegistryPB.encryption_enabled) |
685 | 3.39M | return encryption_enabled_; |
686 | 3.39M | } |
687 | 34 | inline void UniverseKeyRegistryPB::set_encryption_enabled(bool value) { |
688 | | |
689 | 34 | encryption_enabled_ = value; |
690 | | // @@protoc_insertion_point(field_set:yb.encryption.UniverseKeyRegistryPB.encryption_enabled) |
691 | 34 | } |
692 | | |
693 | | // map<string, .yb.encryption.EncryptionParamsPB> universe_keys = 2; |
694 | 12 | inline int UniverseKeyRegistryPB::universe_keys_size() const { |
695 | 12 | return universe_keys_.size(); |
696 | 12 | } |
697 | 0 | inline void UniverseKeyRegistryPB::clear_universe_keys() { |
698 | 0 | universe_keys_.Clear(); |
699 | 0 | } |
700 | | inline const ::google::protobuf::Map< ::std::string, ::yb::encryption::EncryptionParamsPB >& |
701 | 229 | UniverseKeyRegistryPB::universe_keys() const { |
702 | | // @@protoc_insertion_point(field_map:yb.encryption.UniverseKeyRegistryPB.universe_keys) |
703 | 229 | return universe_keys_.GetMap(); |
704 | 229 | } |
705 | | inline ::google::protobuf::Map< ::std::string, ::yb::encryption::EncryptionParamsPB >* |
706 | 17 | UniverseKeyRegistryPB::mutable_universe_keys() { |
707 | | // @@protoc_insertion_point(field_mutable_map:yb.encryption.UniverseKeyRegistryPB.universe_keys) |
708 | 17 | return universe_keys_.MutableMap(); |
709 | 17 | } |
710 | | |
711 | | // string latest_version_id = 3; |
712 | 0 | inline void UniverseKeyRegistryPB::clear_latest_version_id() { |
713 | 0 | latest_version_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
714 | 0 | } |
715 | 152 | inline const ::std::string& UniverseKeyRegistryPB::latest_version_id() const { |
716 | | // @@protoc_insertion_point(field_get:yb.encryption.UniverseKeyRegistryPB.latest_version_id) |
717 | 152 | return latest_version_id_.GetNoArena(); |
718 | 152 | } |
719 | 17 | inline void UniverseKeyRegistryPB::set_latest_version_id(const ::std::string& value) { |
720 | | |
721 | 17 | latest_version_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); |
722 | | // @@protoc_insertion_point(field_set:yb.encryption.UniverseKeyRegistryPB.latest_version_id) |
723 | 17 | } |
724 | | #if LANG_CXX11 |
725 | 0 | inline void UniverseKeyRegistryPB::set_latest_version_id(::std::string&& value) { |
726 | 0 | |
727 | 0 | latest_version_id_.SetNoArena( |
728 | 0 | &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); |
729 | 0 | // @@protoc_insertion_point(field_set_rvalue:yb.encryption.UniverseKeyRegistryPB.latest_version_id) |
730 | 0 | } |
731 | | #endif |
732 | 0 | inline void UniverseKeyRegistryPB::set_latest_version_id(const char* value) { |
733 | 0 | GOOGLE_DCHECK(value != NULL); |
734 | 0 | |
735 | 0 | latest_version_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); |
736 | 0 | // @@protoc_insertion_point(field_set_char:yb.encryption.UniverseKeyRegistryPB.latest_version_id) |
737 | 0 | } |
738 | 0 | inline void UniverseKeyRegistryPB::set_latest_version_id(const char* value, size_t size) { |
739 | 0 | |
740 | 0 | latest_version_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), |
741 | 0 | ::std::string(reinterpret_cast<const char*>(value), size)); |
742 | 0 | // @@protoc_insertion_point(field_set_pointer:yb.encryption.UniverseKeyRegistryPB.latest_version_id) |
743 | 0 | } |
744 | 15 | inline ::std::string* UniverseKeyRegistryPB::mutable_latest_version_id() { |
745 | | |
746 | | // @@protoc_insertion_point(field_mutable:yb.encryption.UniverseKeyRegistryPB.latest_version_id) |
747 | 15 | return latest_version_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
748 | 15 | } |
749 | 0 | inline ::std::string* UniverseKeyRegistryPB::release_latest_version_id() { |
750 | 0 | // @@protoc_insertion_point(field_release:yb.encryption.UniverseKeyRegistryPB.latest_version_id) |
751 | 0 | |
752 | 0 | return latest_version_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); |
753 | 0 | } |
754 | 0 | inline void UniverseKeyRegistryPB::set_allocated_latest_version_id(::std::string* latest_version_id) { |
755 | 0 | if (latest_version_id != NULL) { |
756 | 0 | |
757 | 0 | } else { |
758 | 0 | |
759 | 0 | } |
760 | 0 | latest_version_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), latest_version_id); |
761 | 0 | // @@protoc_insertion_point(field_set_allocated:yb.encryption.UniverseKeyRegistryPB.latest_version_id) |
762 | 0 | } |
763 | | |
764 | | #ifdef __GNUC__ |
765 | | #pragma GCC diagnostic pop |
766 | | #endif // __GNUC__ |
767 | | // ------------------------------------------------------------------- |
768 | | |
769 | | // ------------------------------------------------------------------- |
770 | | |
771 | | // ------------------------------------------------------------------- |
772 | | |
773 | | // ------------------------------------------------------------------- |
774 | | |
775 | | |
776 | | // @@protoc_insertion_point(namespace_scope) |
777 | | |
778 | | } // namespace encryption |
779 | | } // namespace yb |
780 | | |
781 | | // @@protoc_insertion_point(global_scope) |
782 | | |
783 | | #endif // PROTOBUF_yb_2fencryption_2fencryption_2eproto__INCLUDED |