github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protosccl/ccl/storageccl/engineccl/enginepbccl/key_registry.pb.h (about) 1 // Generated by the protocol buffer compiler. DO NOT EDIT! 2 // source: ccl/storageccl/engineccl/enginepbccl/key_registry.proto 3 4 #ifndef PROTOBUF_INCLUDED_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto 5 #define PROTOBUF_INCLUDED_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto 6 7 #include <string> 8 9 #include <google/protobuf/stubs/common.h> 10 11 #if GOOGLE_PROTOBUF_VERSION < 3006000 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 3006000 < 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/inlined_string_field.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 #include <google/protobuf/map.h> // IWYU pragma: export 33 #include <google/protobuf/map_entry_lite.h> 34 #include <google/protobuf/map_field_lite.h> 35 #include <google/protobuf/generated_enum_util.h> 36 // @@protoc_insertion_point(includes) 37 #define PROTOBUF_INTERNAL_EXPORT_protobuf_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto 38 39 namespace protobuf_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto { 40 // Internal implementation detail -- do not use these members. 41 struct TableStruct { 42 static const ::google::protobuf::internal::ParseTableField entries[]; 43 static const ::google::protobuf::internal::AuxillaryParseTableField aux[]; 44 static const ::google::protobuf::internal::ParseTable schema[6]; 45 static const ::google::protobuf::internal::FieldMetadata field_metadata[]; 46 static const ::google::protobuf::internal::SerializationTable serialization_table[]; 47 static const ::google::protobuf::uint32 offsets[]; 48 }; 49 } // namespace protobuf_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto 50 namespace cockroach { 51 namespace ccl { 52 namespace storageccl { 53 namespace engineccl { 54 namespace enginepbccl { 55 class DataKeysRegistry; 56 class DataKeysRegistryDefaultTypeInternal; 57 extern DataKeysRegistryDefaultTypeInternal _DataKeysRegistry_default_instance_; 58 class DataKeysRegistry_DataKeysEntry_DoNotUse; 59 class DataKeysRegistry_DataKeysEntry_DoNotUseDefaultTypeInternal; 60 extern DataKeysRegistry_DataKeysEntry_DoNotUseDefaultTypeInternal _DataKeysRegistry_DataKeysEntry_DoNotUse_default_instance_; 61 class DataKeysRegistry_StoreKeysEntry_DoNotUse; 62 class DataKeysRegistry_StoreKeysEntry_DoNotUseDefaultTypeInternal; 63 extern DataKeysRegistry_StoreKeysEntry_DoNotUseDefaultTypeInternal _DataKeysRegistry_StoreKeysEntry_DoNotUse_default_instance_; 64 class EncryptionSettings; 65 class EncryptionSettingsDefaultTypeInternal; 66 extern EncryptionSettingsDefaultTypeInternal _EncryptionSettings_default_instance_; 67 class KeyInfo; 68 class KeyInfoDefaultTypeInternal; 69 extern KeyInfoDefaultTypeInternal _KeyInfo_default_instance_; 70 class SecretKey; 71 class SecretKeyDefaultTypeInternal; 72 extern SecretKeyDefaultTypeInternal _SecretKey_default_instance_; 73 } // namespace enginepbccl 74 } // namespace engineccl 75 } // namespace storageccl 76 } // namespace ccl 77 } // namespace cockroach 78 namespace google { 79 namespace protobuf { 80 template<> ::cockroach::ccl::storageccl::engineccl::enginepbccl::DataKeysRegistry* Arena::CreateMaybeMessage<::cockroach::ccl::storageccl::engineccl::enginepbccl::DataKeysRegistry>(Arena*); 81 template<> ::cockroach::ccl::storageccl::engineccl::enginepbccl::DataKeysRegistry_DataKeysEntry_DoNotUse* Arena::CreateMaybeMessage<::cockroach::ccl::storageccl::engineccl::enginepbccl::DataKeysRegistry_DataKeysEntry_DoNotUse>(Arena*); 82 template<> ::cockroach::ccl::storageccl::engineccl::enginepbccl::DataKeysRegistry_StoreKeysEntry_DoNotUse* Arena::CreateMaybeMessage<::cockroach::ccl::storageccl::engineccl::enginepbccl::DataKeysRegistry_StoreKeysEntry_DoNotUse>(Arena*); 83 template<> ::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionSettings* Arena::CreateMaybeMessage<::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionSettings>(Arena*); 84 template<> ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* Arena::CreateMaybeMessage<::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo>(Arena*); 85 template<> ::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey* Arena::CreateMaybeMessage<::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey>(Arena*); 86 } // namespace protobuf 87 } // namespace google 88 namespace cockroach { 89 namespace ccl { 90 namespace storageccl { 91 namespace engineccl { 92 namespace enginepbccl { 93 94 enum EncryptionType { 95 Plaintext = 0, 96 AES128_CTR = 1, 97 AES192_CTR = 2, 98 AES256_CTR = 3, 99 EncryptionType_INT_MIN_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32min, 100 EncryptionType_INT_MAX_SENTINEL_DO_NOT_USE_ = ::google::protobuf::kint32max 101 }; 102 bool EncryptionType_IsValid(int value); 103 const EncryptionType EncryptionType_MIN = Plaintext; 104 const EncryptionType EncryptionType_MAX = AES256_CTR; 105 const int EncryptionType_ARRAYSIZE = EncryptionType_MAX + 1; 106 107 // =================================================================== 108 109 class DataKeysRegistry_StoreKeysEntry_DoNotUse : public ::google::protobuf::internal::MapEntryLite<DataKeysRegistry_StoreKeysEntry_DoNotUse, 110 ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo, 111 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 112 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 113 0 > { 114 public: 115 typedef ::google::protobuf::internal::MapEntryLite<DataKeysRegistry_StoreKeysEntry_DoNotUse, 116 ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo, 117 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 118 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 119 0 > SuperType; 120 DataKeysRegistry_StoreKeysEntry_DoNotUse(); 121 DataKeysRegistry_StoreKeysEntry_DoNotUse(::google::protobuf::Arena* arena); 122 void MergeFrom(const DataKeysRegistry_StoreKeysEntry_DoNotUse& other); 123 static const DataKeysRegistry_StoreKeysEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const DataKeysRegistry_StoreKeysEntry_DoNotUse*>(&_DataKeysRegistry_StoreKeysEntry_DoNotUse_default_instance_); } 124 }; 125 126 // ------------------------------------------------------------------- 127 128 class DataKeysRegistry_DataKeysEntry_DoNotUse : public ::google::protobuf::internal::MapEntryLite<DataKeysRegistry_DataKeysEntry_DoNotUse, 129 ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey, 130 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 131 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 132 0 > { 133 public: 134 typedef ::google::protobuf::internal::MapEntryLite<DataKeysRegistry_DataKeysEntry_DoNotUse, 135 ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey, 136 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 137 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 138 0 > SuperType; 139 DataKeysRegistry_DataKeysEntry_DoNotUse(); 140 DataKeysRegistry_DataKeysEntry_DoNotUse(::google::protobuf::Arena* arena); 141 void MergeFrom(const DataKeysRegistry_DataKeysEntry_DoNotUse& other); 142 static const DataKeysRegistry_DataKeysEntry_DoNotUse* internal_default_instance() { return reinterpret_cast<const DataKeysRegistry_DataKeysEntry_DoNotUse*>(&_DataKeysRegistry_DataKeysEntry_DoNotUse_default_instance_); } 143 }; 144 145 // ------------------------------------------------------------------- 146 147 class DataKeysRegistry : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry) */ { 148 public: 149 DataKeysRegistry(); 150 virtual ~DataKeysRegistry(); 151 152 DataKeysRegistry(const DataKeysRegistry& from); 153 154 inline DataKeysRegistry& operator=(const DataKeysRegistry& from) { 155 CopyFrom(from); 156 return *this; 157 } 158 #if LANG_CXX11 159 DataKeysRegistry(DataKeysRegistry&& from) noexcept 160 : DataKeysRegistry() { 161 *this = ::std::move(from); 162 } 163 164 inline DataKeysRegistry& operator=(DataKeysRegistry&& from) noexcept { 165 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 166 if (this != &from) InternalSwap(&from); 167 } else { 168 CopyFrom(from); 169 } 170 return *this; 171 } 172 #endif 173 static const DataKeysRegistry& default_instance(); 174 175 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 176 static inline const DataKeysRegistry* internal_default_instance() { 177 return reinterpret_cast<const DataKeysRegistry*>( 178 &_DataKeysRegistry_default_instance_); 179 } 180 static constexpr int kIndexInFileMessages = 181 2; 182 183 void Swap(DataKeysRegistry* other); 184 friend void swap(DataKeysRegistry& a, DataKeysRegistry& b) { 185 a.Swap(&b); 186 } 187 188 // implements Message ---------------------------------------------- 189 190 inline DataKeysRegistry* New() const final { 191 return CreateMaybeMessage<DataKeysRegistry>(NULL); 192 } 193 194 DataKeysRegistry* New(::google::protobuf::Arena* arena) const final { 195 return CreateMaybeMessage<DataKeysRegistry>(arena); 196 } 197 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 198 final; 199 void CopyFrom(const DataKeysRegistry& from); 200 void MergeFrom(const DataKeysRegistry& from); 201 void Clear() final; 202 bool IsInitialized() const final; 203 204 size_t ByteSizeLong() const final; 205 bool MergePartialFromCodedStream( 206 ::google::protobuf::io::CodedInputStream* input) final; 207 void SerializeWithCachedSizes( 208 ::google::protobuf::io::CodedOutputStream* output) const final; 209 void DiscardUnknownFields(); 210 int GetCachedSize() const final { return _cached_size_.Get(); } 211 212 private: 213 void SharedCtor(); 214 void SharedDtor(); 215 void SetCachedSize(int size) const; 216 void InternalSwap(DataKeysRegistry* other); 217 private: 218 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 219 return NULL; 220 } 221 inline void* MaybeArenaPtr() const { 222 return NULL; 223 } 224 public: 225 226 ::std::string GetTypeName() const final; 227 228 // nested types ---------------------------------------------------- 229 230 231 // accessors ------------------------------------------------------- 232 233 // map<string, .cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo> store_keys = 1; 234 int store_keys_size() const; 235 void clear_store_keys(); 236 static const int kStoreKeysFieldNumber = 1; 237 const ::google::protobuf::Map< ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo >& 238 store_keys() const; 239 ::google::protobuf::Map< ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo >* 240 mutable_store_keys(); 241 242 // map<string, .cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey> data_keys = 2; 243 int data_keys_size() const; 244 void clear_data_keys(); 245 static const int kDataKeysFieldNumber = 2; 246 const ::google::protobuf::Map< ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey >& 247 data_keys() const; 248 ::google::protobuf::Map< ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey >* 249 mutable_data_keys(); 250 251 // string active_store_key_id = 3; 252 void clear_active_store_key_id(); 253 static const int kActiveStoreKeyIdFieldNumber = 3; 254 const ::std::string& active_store_key_id() const; 255 void set_active_store_key_id(const ::std::string& value); 256 #if LANG_CXX11 257 void set_active_store_key_id(::std::string&& value); 258 #endif 259 void set_active_store_key_id(const char* value); 260 void set_active_store_key_id(const char* value, size_t size); 261 ::std::string* mutable_active_store_key_id(); 262 ::std::string* release_active_store_key_id(); 263 void set_allocated_active_store_key_id(::std::string* active_store_key_id); 264 265 // string active_data_key_id = 4; 266 void clear_active_data_key_id(); 267 static const int kActiveDataKeyIdFieldNumber = 4; 268 const ::std::string& active_data_key_id() const; 269 void set_active_data_key_id(const ::std::string& value); 270 #if LANG_CXX11 271 void set_active_data_key_id(::std::string&& value); 272 #endif 273 void set_active_data_key_id(const char* value); 274 void set_active_data_key_id(const char* value, size_t size); 275 ::std::string* mutable_active_data_key_id(); 276 ::std::string* release_active_data_key_id(); 277 void set_allocated_active_data_key_id(::std::string* active_data_key_id); 278 279 // @@protoc_insertion_point(class_scope:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry) 280 private: 281 282 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 283 ::google::protobuf::internal::MapFieldLite< 284 DataKeysRegistry_StoreKeysEntry_DoNotUse, 285 ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo, 286 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 287 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 288 0 > store_keys_; 289 ::google::protobuf::internal::MapFieldLite< 290 DataKeysRegistry_DataKeysEntry_DoNotUse, 291 ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey, 292 ::google::protobuf::internal::WireFormatLite::TYPE_STRING, 293 ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE, 294 0 > data_keys_; 295 ::google::protobuf::internal::ArenaStringPtr active_store_key_id_; 296 ::google::protobuf::internal::ArenaStringPtr active_data_key_id_; 297 mutable ::google::protobuf::internal::CachedSize _cached_size_; 298 friend struct ::protobuf_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto::TableStruct; 299 }; 300 // ------------------------------------------------------------------- 301 302 class KeyInfo : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo) */ { 303 public: 304 KeyInfo(); 305 virtual ~KeyInfo(); 306 307 KeyInfo(const KeyInfo& from); 308 309 inline KeyInfo& operator=(const KeyInfo& from) { 310 CopyFrom(from); 311 return *this; 312 } 313 #if LANG_CXX11 314 KeyInfo(KeyInfo&& from) noexcept 315 : KeyInfo() { 316 *this = ::std::move(from); 317 } 318 319 inline KeyInfo& operator=(KeyInfo&& from) noexcept { 320 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 321 if (this != &from) InternalSwap(&from); 322 } else { 323 CopyFrom(from); 324 } 325 return *this; 326 } 327 #endif 328 static const KeyInfo& default_instance(); 329 330 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 331 static inline const KeyInfo* internal_default_instance() { 332 return reinterpret_cast<const KeyInfo*>( 333 &_KeyInfo_default_instance_); 334 } 335 static constexpr int kIndexInFileMessages = 336 3; 337 338 void Swap(KeyInfo* other); 339 friend void swap(KeyInfo& a, KeyInfo& b) { 340 a.Swap(&b); 341 } 342 343 // implements Message ---------------------------------------------- 344 345 inline KeyInfo* New() const final { 346 return CreateMaybeMessage<KeyInfo>(NULL); 347 } 348 349 KeyInfo* New(::google::protobuf::Arena* arena) const final { 350 return CreateMaybeMessage<KeyInfo>(arena); 351 } 352 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 353 final; 354 void CopyFrom(const KeyInfo& from); 355 void MergeFrom(const KeyInfo& from); 356 void Clear() final; 357 bool IsInitialized() const final; 358 359 size_t ByteSizeLong() const final; 360 bool MergePartialFromCodedStream( 361 ::google::protobuf::io::CodedInputStream* input) final; 362 void SerializeWithCachedSizes( 363 ::google::protobuf::io::CodedOutputStream* output) const final; 364 void DiscardUnknownFields(); 365 int GetCachedSize() const final { return _cached_size_.Get(); } 366 367 private: 368 void SharedCtor(); 369 void SharedDtor(); 370 void SetCachedSize(int size) const; 371 void InternalSwap(KeyInfo* other); 372 private: 373 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 374 return NULL; 375 } 376 inline void* MaybeArenaPtr() const { 377 return NULL; 378 } 379 public: 380 381 ::std::string GetTypeName() const final; 382 383 // nested types ---------------------------------------------------- 384 385 // accessors ------------------------------------------------------- 386 387 // string key_id = 2; 388 void clear_key_id(); 389 static const int kKeyIdFieldNumber = 2; 390 const ::std::string& key_id() const; 391 void set_key_id(const ::std::string& value); 392 #if LANG_CXX11 393 void set_key_id(::std::string&& value); 394 #endif 395 void set_key_id(const char* value); 396 void set_key_id(const char* value, size_t size); 397 ::std::string* mutable_key_id(); 398 ::std::string* release_key_id(); 399 void set_allocated_key_id(::std::string* key_id); 400 401 // string source = 4; 402 void clear_source(); 403 static const int kSourceFieldNumber = 4; 404 const ::std::string& source() const; 405 void set_source(const ::std::string& value); 406 #if LANG_CXX11 407 void set_source(::std::string&& value); 408 #endif 409 void set_source(const char* value); 410 void set_source(const char* value, size_t size); 411 ::std::string* mutable_source(); 412 ::std::string* release_source(); 413 void set_allocated_source(::std::string* source); 414 415 // string parent_key_id = 6; 416 void clear_parent_key_id(); 417 static const int kParentKeyIdFieldNumber = 6; 418 const ::std::string& parent_key_id() const; 419 void set_parent_key_id(const ::std::string& value); 420 #if LANG_CXX11 421 void set_parent_key_id(::std::string&& value); 422 #endif 423 void set_parent_key_id(const char* value); 424 void set_parent_key_id(const char* value, size_t size); 425 ::std::string* mutable_parent_key_id(); 426 ::std::string* release_parent_key_id(); 427 void set_allocated_parent_key_id(::std::string* parent_key_id); 428 429 // int64 creation_time = 3; 430 void clear_creation_time(); 431 static const int kCreationTimeFieldNumber = 3; 432 ::google::protobuf::int64 creation_time() const; 433 void set_creation_time(::google::protobuf::int64 value); 434 435 // .cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionType encryption_type = 1; 436 void clear_encryption_type(); 437 static const int kEncryptionTypeFieldNumber = 1; 438 ::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType encryption_type() const; 439 void set_encryption_type(::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType value); 440 441 // bool was_exposed = 5; 442 void clear_was_exposed(); 443 static const int kWasExposedFieldNumber = 5; 444 bool was_exposed() const; 445 void set_was_exposed(bool value); 446 447 // @@protoc_insertion_point(class_scope:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo) 448 private: 449 450 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 451 ::google::protobuf::internal::ArenaStringPtr key_id_; 452 ::google::protobuf::internal::ArenaStringPtr source_; 453 ::google::protobuf::internal::ArenaStringPtr parent_key_id_; 454 ::google::protobuf::int64 creation_time_; 455 int encryption_type_; 456 bool was_exposed_; 457 mutable ::google::protobuf::internal::CachedSize _cached_size_; 458 friend struct ::protobuf_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto::TableStruct; 459 }; 460 // ------------------------------------------------------------------- 461 462 class SecretKey : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey) */ { 463 public: 464 SecretKey(); 465 virtual ~SecretKey(); 466 467 SecretKey(const SecretKey& from); 468 469 inline SecretKey& operator=(const SecretKey& from) { 470 CopyFrom(from); 471 return *this; 472 } 473 #if LANG_CXX11 474 SecretKey(SecretKey&& from) noexcept 475 : SecretKey() { 476 *this = ::std::move(from); 477 } 478 479 inline SecretKey& operator=(SecretKey&& from) noexcept { 480 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 481 if (this != &from) InternalSwap(&from); 482 } else { 483 CopyFrom(from); 484 } 485 return *this; 486 } 487 #endif 488 static const SecretKey& default_instance(); 489 490 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 491 static inline const SecretKey* internal_default_instance() { 492 return reinterpret_cast<const SecretKey*>( 493 &_SecretKey_default_instance_); 494 } 495 static constexpr int kIndexInFileMessages = 496 4; 497 498 void Swap(SecretKey* other); 499 friend void swap(SecretKey& a, SecretKey& b) { 500 a.Swap(&b); 501 } 502 503 // implements Message ---------------------------------------------- 504 505 inline SecretKey* New() const final { 506 return CreateMaybeMessage<SecretKey>(NULL); 507 } 508 509 SecretKey* New(::google::protobuf::Arena* arena) const final { 510 return CreateMaybeMessage<SecretKey>(arena); 511 } 512 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 513 final; 514 void CopyFrom(const SecretKey& from); 515 void MergeFrom(const SecretKey& from); 516 void Clear() final; 517 bool IsInitialized() const final; 518 519 size_t ByteSizeLong() const final; 520 bool MergePartialFromCodedStream( 521 ::google::protobuf::io::CodedInputStream* input) final; 522 void SerializeWithCachedSizes( 523 ::google::protobuf::io::CodedOutputStream* output) const final; 524 void DiscardUnknownFields(); 525 int GetCachedSize() const final { return _cached_size_.Get(); } 526 527 private: 528 void SharedCtor(); 529 void SharedDtor(); 530 void SetCachedSize(int size) const; 531 void InternalSwap(SecretKey* other); 532 private: 533 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 534 return NULL; 535 } 536 inline void* MaybeArenaPtr() const { 537 return NULL; 538 } 539 public: 540 541 ::std::string GetTypeName() const final; 542 543 // nested types ---------------------------------------------------- 544 545 // accessors ------------------------------------------------------- 546 547 // bytes key = 2; 548 void clear_key(); 549 static const int kKeyFieldNumber = 2; 550 const ::std::string& key() const; 551 void set_key(const ::std::string& value); 552 #if LANG_CXX11 553 void set_key(::std::string&& value); 554 #endif 555 void set_key(const char* value); 556 void set_key(const void* value, size_t size); 557 ::std::string* mutable_key(); 558 ::std::string* release_key(); 559 void set_allocated_key(::std::string* key); 560 561 // .cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo info = 1; 562 bool has_info() const; 563 void clear_info(); 564 static const int kInfoFieldNumber = 1; 565 private: 566 const ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo& _internal_info() const; 567 public: 568 const ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo& info() const; 569 ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* release_info(); 570 ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* mutable_info(); 571 void set_allocated_info(::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* info); 572 573 // @@protoc_insertion_point(class_scope:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey) 574 private: 575 576 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 577 ::google::protobuf::internal::ArenaStringPtr key_; 578 ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* info_; 579 mutable ::google::protobuf::internal::CachedSize _cached_size_; 580 friend struct ::protobuf_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto::TableStruct; 581 }; 582 // ------------------------------------------------------------------- 583 584 class EncryptionSettings : public ::google::protobuf::MessageLite /* @@protoc_insertion_point(class_definition:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings) */ { 585 public: 586 EncryptionSettings(); 587 virtual ~EncryptionSettings(); 588 589 EncryptionSettings(const EncryptionSettings& from); 590 591 inline EncryptionSettings& operator=(const EncryptionSettings& from) { 592 CopyFrom(from); 593 return *this; 594 } 595 #if LANG_CXX11 596 EncryptionSettings(EncryptionSettings&& from) noexcept 597 : EncryptionSettings() { 598 *this = ::std::move(from); 599 } 600 601 inline EncryptionSettings& operator=(EncryptionSettings&& from) noexcept { 602 if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) { 603 if (this != &from) InternalSwap(&from); 604 } else { 605 CopyFrom(from); 606 } 607 return *this; 608 } 609 #endif 610 static const EncryptionSettings& default_instance(); 611 612 static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY 613 static inline const EncryptionSettings* internal_default_instance() { 614 return reinterpret_cast<const EncryptionSettings*>( 615 &_EncryptionSettings_default_instance_); 616 } 617 static constexpr int kIndexInFileMessages = 618 5; 619 620 void Swap(EncryptionSettings* other); 621 friend void swap(EncryptionSettings& a, EncryptionSettings& b) { 622 a.Swap(&b); 623 } 624 625 // implements Message ---------------------------------------------- 626 627 inline EncryptionSettings* New() const final { 628 return CreateMaybeMessage<EncryptionSettings>(NULL); 629 } 630 631 EncryptionSettings* New(::google::protobuf::Arena* arena) const final { 632 return CreateMaybeMessage<EncryptionSettings>(arena); 633 } 634 void CheckTypeAndMergeFrom(const ::google::protobuf::MessageLite& from) 635 final; 636 void CopyFrom(const EncryptionSettings& from); 637 void MergeFrom(const EncryptionSettings& from); 638 void Clear() final; 639 bool IsInitialized() const final; 640 641 size_t ByteSizeLong() const final; 642 bool MergePartialFromCodedStream( 643 ::google::protobuf::io::CodedInputStream* input) final; 644 void SerializeWithCachedSizes( 645 ::google::protobuf::io::CodedOutputStream* output) const final; 646 void DiscardUnknownFields(); 647 int GetCachedSize() const final { return _cached_size_.Get(); } 648 649 private: 650 void SharedCtor(); 651 void SharedDtor(); 652 void SetCachedSize(int size) const; 653 void InternalSwap(EncryptionSettings* other); 654 private: 655 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { 656 return NULL; 657 } 658 inline void* MaybeArenaPtr() const { 659 return NULL; 660 } 661 public: 662 663 ::std::string GetTypeName() const final; 664 665 // nested types ---------------------------------------------------- 666 667 // accessors ------------------------------------------------------- 668 669 // string key_id = 2; 670 void clear_key_id(); 671 static const int kKeyIdFieldNumber = 2; 672 const ::std::string& key_id() const; 673 void set_key_id(const ::std::string& value); 674 #if LANG_CXX11 675 void set_key_id(::std::string&& value); 676 #endif 677 void set_key_id(const char* value); 678 void set_key_id(const char* value, size_t size); 679 ::std::string* mutable_key_id(); 680 ::std::string* release_key_id(); 681 void set_allocated_key_id(::std::string* key_id); 682 683 // bytes nonce = 3; 684 void clear_nonce(); 685 static const int kNonceFieldNumber = 3; 686 const ::std::string& nonce() const; 687 void set_nonce(const ::std::string& value); 688 #if LANG_CXX11 689 void set_nonce(::std::string&& value); 690 #endif 691 void set_nonce(const char* value); 692 void set_nonce(const void* value, size_t size); 693 ::std::string* mutable_nonce(); 694 ::std::string* release_nonce(); 695 void set_allocated_nonce(::std::string* nonce); 696 697 // .cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionType encryption_type = 1; 698 void clear_encryption_type(); 699 static const int kEncryptionTypeFieldNumber = 1; 700 ::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType encryption_type() const; 701 void set_encryption_type(::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType value); 702 703 // uint32 counter = 4; 704 void clear_counter(); 705 static const int kCounterFieldNumber = 4; 706 ::google::protobuf::uint32 counter() const; 707 void set_counter(::google::protobuf::uint32 value); 708 709 // @@protoc_insertion_point(class_scope:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings) 710 private: 711 712 ::google::protobuf::internal::InternalMetadataWithArenaLite _internal_metadata_; 713 ::google::protobuf::internal::ArenaStringPtr key_id_; 714 ::google::protobuf::internal::ArenaStringPtr nonce_; 715 int encryption_type_; 716 ::google::protobuf::uint32 counter_; 717 mutable ::google::protobuf::internal::CachedSize _cached_size_; 718 friend struct ::protobuf_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto::TableStruct; 719 }; 720 // =================================================================== 721 722 723 // =================================================================== 724 725 #ifdef __GNUC__ 726 #pragma GCC diagnostic push 727 #pragma GCC diagnostic ignored "-Wstrict-aliasing" 728 #endif // __GNUC__ 729 // ------------------------------------------------------------------- 730 731 // ------------------------------------------------------------------- 732 733 // DataKeysRegistry 734 735 // map<string, .cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo> store_keys = 1; 736 inline int DataKeysRegistry::store_keys_size() const { 737 return store_keys_.size(); 738 } 739 inline void DataKeysRegistry::clear_store_keys() { 740 store_keys_.Clear(); 741 } 742 inline const ::google::protobuf::Map< ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo >& 743 DataKeysRegistry::store_keys() const { 744 // @@protoc_insertion_point(field_map:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.store_keys) 745 return store_keys_.GetMap(); 746 } 747 inline ::google::protobuf::Map< ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo >* 748 DataKeysRegistry::mutable_store_keys() { 749 // @@protoc_insertion_point(field_mutable_map:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.store_keys) 750 return store_keys_.MutableMap(); 751 } 752 753 // map<string, .cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey> data_keys = 2; 754 inline int DataKeysRegistry::data_keys_size() const { 755 return data_keys_.size(); 756 } 757 inline void DataKeysRegistry::clear_data_keys() { 758 data_keys_.Clear(); 759 } 760 inline const ::google::protobuf::Map< ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey >& 761 DataKeysRegistry::data_keys() const { 762 // @@protoc_insertion_point(field_map:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.data_keys) 763 return data_keys_.GetMap(); 764 } 765 inline ::google::protobuf::Map< ::std::string, ::cockroach::ccl::storageccl::engineccl::enginepbccl::SecretKey >* 766 DataKeysRegistry::mutable_data_keys() { 767 // @@protoc_insertion_point(field_mutable_map:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.data_keys) 768 return data_keys_.MutableMap(); 769 } 770 771 // string active_store_key_id = 3; 772 inline void DataKeysRegistry::clear_active_store_key_id() { 773 active_store_key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 774 } 775 inline const ::std::string& DataKeysRegistry::active_store_key_id() const { 776 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_store_key_id) 777 return active_store_key_id_.GetNoArena(); 778 } 779 inline void DataKeysRegistry::set_active_store_key_id(const ::std::string& value) { 780 781 active_store_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 782 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_store_key_id) 783 } 784 #if LANG_CXX11 785 inline void DataKeysRegistry::set_active_store_key_id(::std::string&& value) { 786 787 active_store_key_id_.SetNoArena( 788 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 789 // @@protoc_insertion_point(field_set_rvalue:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_store_key_id) 790 } 791 #endif 792 inline void DataKeysRegistry::set_active_store_key_id(const char* value) { 793 GOOGLE_DCHECK(value != NULL); 794 795 active_store_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 796 // @@protoc_insertion_point(field_set_char:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_store_key_id) 797 } 798 inline void DataKeysRegistry::set_active_store_key_id(const char* value, size_t size) { 799 800 active_store_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 801 ::std::string(reinterpret_cast<const char*>(value), size)); 802 // @@protoc_insertion_point(field_set_pointer:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_store_key_id) 803 } 804 inline ::std::string* DataKeysRegistry::mutable_active_store_key_id() { 805 806 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_store_key_id) 807 return active_store_key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 808 } 809 inline ::std::string* DataKeysRegistry::release_active_store_key_id() { 810 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_store_key_id) 811 812 return active_store_key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 813 } 814 inline void DataKeysRegistry::set_allocated_active_store_key_id(::std::string* active_store_key_id) { 815 if (active_store_key_id != NULL) { 816 817 } else { 818 819 } 820 active_store_key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), active_store_key_id); 821 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_store_key_id) 822 } 823 824 // string active_data_key_id = 4; 825 inline void DataKeysRegistry::clear_active_data_key_id() { 826 active_data_key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 827 } 828 inline const ::std::string& DataKeysRegistry::active_data_key_id() const { 829 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_data_key_id) 830 return active_data_key_id_.GetNoArena(); 831 } 832 inline void DataKeysRegistry::set_active_data_key_id(const ::std::string& value) { 833 834 active_data_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 835 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_data_key_id) 836 } 837 #if LANG_CXX11 838 inline void DataKeysRegistry::set_active_data_key_id(::std::string&& value) { 839 840 active_data_key_id_.SetNoArena( 841 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 842 // @@protoc_insertion_point(field_set_rvalue:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_data_key_id) 843 } 844 #endif 845 inline void DataKeysRegistry::set_active_data_key_id(const char* value) { 846 GOOGLE_DCHECK(value != NULL); 847 848 active_data_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 849 // @@protoc_insertion_point(field_set_char:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_data_key_id) 850 } 851 inline void DataKeysRegistry::set_active_data_key_id(const char* value, size_t size) { 852 853 active_data_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 854 ::std::string(reinterpret_cast<const char*>(value), size)); 855 // @@protoc_insertion_point(field_set_pointer:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_data_key_id) 856 } 857 inline ::std::string* DataKeysRegistry::mutable_active_data_key_id() { 858 859 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_data_key_id) 860 return active_data_key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 861 } 862 inline ::std::string* DataKeysRegistry::release_active_data_key_id() { 863 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_data_key_id) 864 865 return active_data_key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 866 } 867 inline void DataKeysRegistry::set_allocated_active_data_key_id(::std::string* active_data_key_id) { 868 if (active_data_key_id != NULL) { 869 870 } else { 871 872 } 873 active_data_key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), active_data_key_id); 874 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.DataKeysRegistry.active_data_key_id) 875 } 876 877 // ------------------------------------------------------------------- 878 879 // KeyInfo 880 881 // .cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionType encryption_type = 1; 882 inline void KeyInfo::clear_encryption_type() { 883 encryption_type_ = 0; 884 } 885 inline ::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType KeyInfo::encryption_type() const { 886 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.encryption_type) 887 return static_cast< ::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType >(encryption_type_); 888 } 889 inline void KeyInfo::set_encryption_type(::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType value) { 890 891 encryption_type_ = value; 892 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.encryption_type) 893 } 894 895 // string key_id = 2; 896 inline void KeyInfo::clear_key_id() { 897 key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 898 } 899 inline const ::std::string& KeyInfo::key_id() const { 900 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.key_id) 901 return key_id_.GetNoArena(); 902 } 903 inline void KeyInfo::set_key_id(const ::std::string& value) { 904 905 key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 906 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.key_id) 907 } 908 #if LANG_CXX11 909 inline void KeyInfo::set_key_id(::std::string&& value) { 910 911 key_id_.SetNoArena( 912 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 913 // @@protoc_insertion_point(field_set_rvalue:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.key_id) 914 } 915 #endif 916 inline void KeyInfo::set_key_id(const char* value) { 917 GOOGLE_DCHECK(value != NULL); 918 919 key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 920 // @@protoc_insertion_point(field_set_char:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.key_id) 921 } 922 inline void KeyInfo::set_key_id(const char* value, size_t size) { 923 924 key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 925 ::std::string(reinterpret_cast<const char*>(value), size)); 926 // @@protoc_insertion_point(field_set_pointer:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.key_id) 927 } 928 inline ::std::string* KeyInfo::mutable_key_id() { 929 930 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.key_id) 931 return key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 932 } 933 inline ::std::string* KeyInfo::release_key_id() { 934 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.key_id) 935 936 return key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 937 } 938 inline void KeyInfo::set_allocated_key_id(::std::string* key_id) { 939 if (key_id != NULL) { 940 941 } else { 942 943 } 944 key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key_id); 945 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.key_id) 946 } 947 948 // int64 creation_time = 3; 949 inline void KeyInfo::clear_creation_time() { 950 creation_time_ = GOOGLE_LONGLONG(0); 951 } 952 inline ::google::protobuf::int64 KeyInfo::creation_time() const { 953 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.creation_time) 954 return creation_time_; 955 } 956 inline void KeyInfo::set_creation_time(::google::protobuf::int64 value) { 957 958 creation_time_ = value; 959 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.creation_time) 960 } 961 962 // string source = 4; 963 inline void KeyInfo::clear_source() { 964 source_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 965 } 966 inline const ::std::string& KeyInfo::source() const { 967 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.source) 968 return source_.GetNoArena(); 969 } 970 inline void KeyInfo::set_source(const ::std::string& value) { 971 972 source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 973 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.source) 974 } 975 #if LANG_CXX11 976 inline void KeyInfo::set_source(::std::string&& value) { 977 978 source_.SetNoArena( 979 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 980 // @@protoc_insertion_point(field_set_rvalue:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.source) 981 } 982 #endif 983 inline void KeyInfo::set_source(const char* value) { 984 GOOGLE_DCHECK(value != NULL); 985 986 source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 987 // @@protoc_insertion_point(field_set_char:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.source) 988 } 989 inline void KeyInfo::set_source(const char* value, size_t size) { 990 991 source_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 992 ::std::string(reinterpret_cast<const char*>(value), size)); 993 // @@protoc_insertion_point(field_set_pointer:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.source) 994 } 995 inline ::std::string* KeyInfo::mutable_source() { 996 997 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.source) 998 return source_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 999 } 1000 inline ::std::string* KeyInfo::release_source() { 1001 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.source) 1002 1003 return source_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1004 } 1005 inline void KeyInfo::set_allocated_source(::std::string* source) { 1006 if (source != NULL) { 1007 1008 } else { 1009 1010 } 1011 source_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), source); 1012 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.source) 1013 } 1014 1015 // bool was_exposed = 5; 1016 inline void KeyInfo::clear_was_exposed() { 1017 was_exposed_ = false; 1018 } 1019 inline bool KeyInfo::was_exposed() const { 1020 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.was_exposed) 1021 return was_exposed_; 1022 } 1023 inline void KeyInfo::set_was_exposed(bool value) { 1024 1025 was_exposed_ = value; 1026 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.was_exposed) 1027 } 1028 1029 // string parent_key_id = 6; 1030 inline void KeyInfo::clear_parent_key_id() { 1031 parent_key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1032 } 1033 inline const ::std::string& KeyInfo::parent_key_id() const { 1034 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.parent_key_id) 1035 return parent_key_id_.GetNoArena(); 1036 } 1037 inline void KeyInfo::set_parent_key_id(const ::std::string& value) { 1038 1039 parent_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1040 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.parent_key_id) 1041 } 1042 #if LANG_CXX11 1043 inline void KeyInfo::set_parent_key_id(::std::string&& value) { 1044 1045 parent_key_id_.SetNoArena( 1046 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 1047 // @@protoc_insertion_point(field_set_rvalue:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.parent_key_id) 1048 } 1049 #endif 1050 inline void KeyInfo::set_parent_key_id(const char* value) { 1051 GOOGLE_DCHECK(value != NULL); 1052 1053 parent_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1054 // @@protoc_insertion_point(field_set_char:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.parent_key_id) 1055 } 1056 inline void KeyInfo::set_parent_key_id(const char* value, size_t size) { 1057 1058 parent_key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1059 ::std::string(reinterpret_cast<const char*>(value), size)); 1060 // @@protoc_insertion_point(field_set_pointer:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.parent_key_id) 1061 } 1062 inline ::std::string* KeyInfo::mutable_parent_key_id() { 1063 1064 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.parent_key_id) 1065 return parent_key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1066 } 1067 inline ::std::string* KeyInfo::release_parent_key_id() { 1068 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.parent_key_id) 1069 1070 return parent_key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1071 } 1072 inline void KeyInfo::set_allocated_parent_key_id(::std::string* parent_key_id) { 1073 if (parent_key_id != NULL) { 1074 1075 } else { 1076 1077 } 1078 parent_key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), parent_key_id); 1079 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo.parent_key_id) 1080 } 1081 1082 // ------------------------------------------------------------------- 1083 1084 // SecretKey 1085 1086 // .cockroach.ccl.storageccl.engineccl.enginepbccl.KeyInfo info = 1; 1087 inline bool SecretKey::has_info() const { 1088 return this != internal_default_instance() && info_ != NULL; 1089 } 1090 inline void SecretKey::clear_info() { 1091 if (GetArenaNoVirtual() == NULL && info_ != NULL) { 1092 delete info_; 1093 } 1094 info_ = NULL; 1095 } 1096 inline const ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo& SecretKey::_internal_info() const { 1097 return *info_; 1098 } 1099 inline const ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo& SecretKey::info() const { 1100 const ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* p = info_; 1101 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.info) 1102 return p != NULL ? *p : *reinterpret_cast<const ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo*>( 1103 &::cockroach::ccl::storageccl::engineccl::enginepbccl::_KeyInfo_default_instance_); 1104 } 1105 inline ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* SecretKey::release_info() { 1106 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.info) 1107 1108 ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* temp = info_; 1109 info_ = NULL; 1110 return temp; 1111 } 1112 inline ::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* SecretKey::mutable_info() { 1113 1114 if (info_ == NULL) { 1115 auto* p = CreateMaybeMessage<::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo>(GetArenaNoVirtual()); 1116 info_ = p; 1117 } 1118 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.info) 1119 return info_; 1120 } 1121 inline void SecretKey::set_allocated_info(::cockroach::ccl::storageccl::engineccl::enginepbccl::KeyInfo* info) { 1122 ::google::protobuf::Arena* message_arena = GetArenaNoVirtual(); 1123 if (message_arena == NULL) { 1124 delete info_; 1125 } 1126 if (info) { 1127 ::google::protobuf::Arena* submessage_arena = NULL; 1128 if (message_arena != submessage_arena) { 1129 info = ::google::protobuf::internal::GetOwnedMessage( 1130 message_arena, info, submessage_arena); 1131 } 1132 1133 } else { 1134 1135 } 1136 info_ = info; 1137 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.info) 1138 } 1139 1140 // bytes key = 2; 1141 inline void SecretKey::clear_key() { 1142 key_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1143 } 1144 inline const ::std::string& SecretKey::key() const { 1145 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.key) 1146 return key_.GetNoArena(); 1147 } 1148 inline void SecretKey::set_key(const ::std::string& value) { 1149 1150 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1151 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.key) 1152 } 1153 #if LANG_CXX11 1154 inline void SecretKey::set_key(::std::string&& value) { 1155 1156 key_.SetNoArena( 1157 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 1158 // @@protoc_insertion_point(field_set_rvalue:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.key) 1159 } 1160 #endif 1161 inline void SecretKey::set_key(const char* value) { 1162 GOOGLE_DCHECK(value != NULL); 1163 1164 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1165 // @@protoc_insertion_point(field_set_char:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.key) 1166 } 1167 inline void SecretKey::set_key(const void* value, size_t size) { 1168 1169 key_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1170 ::std::string(reinterpret_cast<const char*>(value), size)); 1171 // @@protoc_insertion_point(field_set_pointer:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.key) 1172 } 1173 inline ::std::string* SecretKey::mutable_key() { 1174 1175 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.key) 1176 return key_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1177 } 1178 inline ::std::string* SecretKey::release_key() { 1179 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.key) 1180 1181 return key_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1182 } 1183 inline void SecretKey::set_allocated_key(::std::string* key) { 1184 if (key != NULL) { 1185 1186 } else { 1187 1188 } 1189 key_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key); 1190 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.SecretKey.key) 1191 } 1192 1193 // ------------------------------------------------------------------- 1194 1195 // EncryptionSettings 1196 1197 // .cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionType encryption_type = 1; 1198 inline void EncryptionSettings::clear_encryption_type() { 1199 encryption_type_ = 0; 1200 } 1201 inline ::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType EncryptionSettings::encryption_type() const { 1202 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.encryption_type) 1203 return static_cast< ::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType >(encryption_type_); 1204 } 1205 inline void EncryptionSettings::set_encryption_type(::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType value) { 1206 1207 encryption_type_ = value; 1208 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.encryption_type) 1209 } 1210 1211 // string key_id = 2; 1212 inline void EncryptionSettings::clear_key_id() { 1213 key_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1214 } 1215 inline const ::std::string& EncryptionSettings::key_id() const { 1216 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.key_id) 1217 return key_id_.GetNoArena(); 1218 } 1219 inline void EncryptionSettings::set_key_id(const ::std::string& value) { 1220 1221 key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1222 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.key_id) 1223 } 1224 #if LANG_CXX11 1225 inline void EncryptionSettings::set_key_id(::std::string&& value) { 1226 1227 key_id_.SetNoArena( 1228 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 1229 // @@protoc_insertion_point(field_set_rvalue:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.key_id) 1230 } 1231 #endif 1232 inline void EncryptionSettings::set_key_id(const char* value) { 1233 GOOGLE_DCHECK(value != NULL); 1234 1235 key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1236 // @@protoc_insertion_point(field_set_char:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.key_id) 1237 } 1238 inline void EncryptionSettings::set_key_id(const char* value, size_t size) { 1239 1240 key_id_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1241 ::std::string(reinterpret_cast<const char*>(value), size)); 1242 // @@protoc_insertion_point(field_set_pointer:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.key_id) 1243 } 1244 inline ::std::string* EncryptionSettings::mutable_key_id() { 1245 1246 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.key_id) 1247 return key_id_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1248 } 1249 inline ::std::string* EncryptionSettings::release_key_id() { 1250 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.key_id) 1251 1252 return key_id_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1253 } 1254 inline void EncryptionSettings::set_allocated_key_id(::std::string* key_id) { 1255 if (key_id != NULL) { 1256 1257 } else { 1258 1259 } 1260 key_id_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), key_id); 1261 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.key_id) 1262 } 1263 1264 // bytes nonce = 3; 1265 inline void EncryptionSettings::clear_nonce() { 1266 nonce_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1267 } 1268 inline const ::std::string& EncryptionSettings::nonce() const { 1269 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.nonce) 1270 return nonce_.GetNoArena(); 1271 } 1272 inline void EncryptionSettings::set_nonce(const ::std::string& value) { 1273 1274 nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value); 1275 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.nonce) 1276 } 1277 #if LANG_CXX11 1278 inline void EncryptionSettings::set_nonce(::std::string&& value) { 1279 1280 nonce_.SetNoArena( 1281 &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value)); 1282 // @@protoc_insertion_point(field_set_rvalue:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.nonce) 1283 } 1284 #endif 1285 inline void EncryptionSettings::set_nonce(const char* value) { 1286 GOOGLE_DCHECK(value != NULL); 1287 1288 nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value)); 1289 // @@protoc_insertion_point(field_set_char:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.nonce) 1290 } 1291 inline void EncryptionSettings::set_nonce(const void* value, size_t size) { 1292 1293 nonce_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), 1294 ::std::string(reinterpret_cast<const char*>(value), size)); 1295 // @@protoc_insertion_point(field_set_pointer:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.nonce) 1296 } 1297 inline ::std::string* EncryptionSettings::mutable_nonce() { 1298 1299 // @@protoc_insertion_point(field_mutable:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.nonce) 1300 return nonce_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1301 } 1302 inline ::std::string* EncryptionSettings::release_nonce() { 1303 // @@protoc_insertion_point(field_release:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.nonce) 1304 1305 return nonce_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); 1306 } 1307 inline void EncryptionSettings::set_allocated_nonce(::std::string* nonce) { 1308 if (nonce != NULL) { 1309 1310 } else { 1311 1312 } 1313 nonce_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), nonce); 1314 // @@protoc_insertion_point(field_set_allocated:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.nonce) 1315 } 1316 1317 // uint32 counter = 4; 1318 inline void EncryptionSettings::clear_counter() { 1319 counter_ = 0u; 1320 } 1321 inline ::google::protobuf::uint32 EncryptionSettings::counter() const { 1322 // @@protoc_insertion_point(field_get:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.counter) 1323 return counter_; 1324 } 1325 inline void EncryptionSettings::set_counter(::google::protobuf::uint32 value) { 1326 1327 counter_ = value; 1328 // @@protoc_insertion_point(field_set:cockroach.ccl.storageccl.engineccl.enginepbccl.EncryptionSettings.counter) 1329 } 1330 1331 #ifdef __GNUC__ 1332 #pragma GCC diagnostic pop 1333 #endif // __GNUC__ 1334 // ------------------------------------------------------------------- 1335 1336 // ------------------------------------------------------------------- 1337 1338 // ------------------------------------------------------------------- 1339 1340 // ------------------------------------------------------------------- 1341 1342 // ------------------------------------------------------------------- 1343 1344 1345 // @@protoc_insertion_point(namespace_scope) 1346 1347 } // namespace enginepbccl 1348 } // namespace engineccl 1349 } // namespace storageccl 1350 } // namespace ccl 1351 } // namespace cockroach 1352 1353 namespace google { 1354 namespace protobuf { 1355 1356 template <> struct is_proto_enum< ::cockroach::ccl::storageccl::engineccl::enginepbccl::EncryptionType> : ::std::true_type {}; 1357 1358 } // namespace protobuf 1359 } // namespace google 1360 1361 // @@protoc_insertion_point(global_scope) 1362 1363 #endif // PROTOBUF_INCLUDED_ccl_2fstorageccl_2fengineccl_2fenginepbccl_2fkey_5fregistry_2eproto