github.com/cockroachdb/cockroach@v20.2.0-alpha.1+incompatible/c-deps/libroach/protos/storage/enginepb/file_registry.pb.cc (about)

     1  // Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  // source: storage/enginepb/file_registry.proto
     3  
     4  #include "storage/enginepb/file_registry.pb.h"
     5  
     6  #include <algorithm>
     7  
     8  #include <google/protobuf/stubs/common.h>
     9  #include <google/protobuf/stubs/port.h>
    10  #include <google/protobuf/io/coded_stream.h>
    11  #include <google/protobuf/wire_format_lite_inl.h>
    12  #include <google/protobuf/io/zero_copy_stream_impl_lite.h>
    13  // This is a temporary google only hack
    14  #ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
    15  #include "third_party/protobuf/version.h"
    16  #endif
    17  // @@protoc_insertion_point(includes)
    18  
    19  namespace protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto {
    20  extern PROTOBUF_INTERNAL_EXPORT_protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto ::google::protobuf::internal::SCCInfo<0> scc_info_FileEntry;
    21  extern PROTOBUF_INTERNAL_EXPORT_protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto ::google::protobuf::internal::SCCInfo<1> scc_info_FileRegistry_FilesEntry_DoNotUse;
    22  }  // namespace protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto
    23  namespace cockroach {
    24  namespace storage {
    25  namespace enginepb {
    26  class FileRegistry_FilesEntry_DoNotUseDefaultTypeInternal {
    27   public:
    28    ::google::protobuf::internal::ExplicitlyConstructed<FileRegistry_FilesEntry_DoNotUse>
    29        _instance;
    30  } _FileRegistry_FilesEntry_DoNotUse_default_instance_;
    31  class FileRegistryDefaultTypeInternal {
    32   public:
    33    ::google::protobuf::internal::ExplicitlyConstructed<FileRegistry>
    34        _instance;
    35  } _FileRegistry_default_instance_;
    36  class FileEntryDefaultTypeInternal {
    37   public:
    38    ::google::protobuf::internal::ExplicitlyConstructed<FileEntry>
    39        _instance;
    40  } _FileEntry_default_instance_;
    41  }  // namespace enginepb
    42  }  // namespace storage
    43  }  // namespace cockroach
    44  namespace protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto {
    45  static void InitDefaultsFileRegistry_FilesEntry_DoNotUse() {
    46    GOOGLE_PROTOBUF_VERIFY_VERSION;
    47  
    48    {
    49      void* ptr = &::cockroach::storage::enginepb::_FileRegistry_FilesEntry_DoNotUse_default_instance_;
    50      new (ptr) ::cockroach::storage::enginepb::FileRegistry_FilesEntry_DoNotUse();
    51    }
    52    ::cockroach::storage::enginepb::FileRegistry_FilesEntry_DoNotUse::InitAsDefaultInstance();
    53  }
    54  
    55  ::google::protobuf::internal::SCCInfo<1> scc_info_FileRegistry_FilesEntry_DoNotUse =
    56      {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFileRegistry_FilesEntry_DoNotUse}, {
    57        &protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto::scc_info_FileEntry.base,}};
    58  
    59  static void InitDefaultsFileRegistry() {
    60    GOOGLE_PROTOBUF_VERIFY_VERSION;
    61  
    62    {
    63      void* ptr = &::cockroach::storage::enginepb::_FileRegistry_default_instance_;
    64      new (ptr) ::cockroach::storage::enginepb::FileRegistry();
    65      ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
    66    }
    67    ::cockroach::storage::enginepb::FileRegistry::InitAsDefaultInstance();
    68  }
    69  
    70  ::google::protobuf::internal::SCCInfo<1> scc_info_FileRegistry =
    71      {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 1, InitDefaultsFileRegistry}, {
    72        &protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto::scc_info_FileRegistry_FilesEntry_DoNotUse.base,}};
    73  
    74  static void InitDefaultsFileEntry() {
    75    GOOGLE_PROTOBUF_VERIFY_VERSION;
    76  
    77    {
    78      void* ptr = &::cockroach::storage::enginepb::_FileEntry_default_instance_;
    79      new (ptr) ::cockroach::storage::enginepb::FileEntry();
    80      ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
    81    }
    82    ::cockroach::storage::enginepb::FileEntry::InitAsDefaultInstance();
    83  }
    84  
    85  ::google::protobuf::internal::SCCInfo<0> scc_info_FileEntry =
    86      {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsFileEntry}, {}};
    87  
    88  void InitDefaults() {
    89    ::google::protobuf::internal::InitSCC(&scc_info_FileRegistry_FilesEntry_DoNotUse.base);
    90    ::google::protobuf::internal::InitSCC(&scc_info_FileRegistry.base);
    91    ::google::protobuf::internal::InitSCC(&scc_info_FileEntry.base);
    92  }
    93  
    94  }  // namespace protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto
    95  namespace cockroach {
    96  namespace storage {
    97  namespace enginepb {
    98  bool RegistryVersion_IsValid(int value) {
    99    switch (value) {
   100      case 0:
   101        return true;
   102      default:
   103        return false;
   104    }
   105  }
   106  
   107  bool EnvType_IsValid(int value) {
   108    switch (value) {
   109      case 0:
   110      case 1:
   111      case 2:
   112        return true;
   113      default:
   114        return false;
   115    }
   116  }
   117  
   118  
   119  // ===================================================================
   120  
   121  FileRegistry_FilesEntry_DoNotUse::FileRegistry_FilesEntry_DoNotUse() {}
   122  FileRegistry_FilesEntry_DoNotUse::FileRegistry_FilesEntry_DoNotUse(::google::protobuf::Arena* arena) : SuperType(arena) {}
   123  void FileRegistry_FilesEntry_DoNotUse::MergeFrom(const FileRegistry_FilesEntry_DoNotUse& other) {
   124    MergeFromInternal(other);
   125  }
   126  
   127  // ===================================================================
   128  
   129  void FileRegistry::InitAsDefaultInstance() {
   130  }
   131  #if !defined(_MSC_VER) || _MSC_VER >= 1900
   132  const int FileRegistry::kVersionFieldNumber;
   133  const int FileRegistry::kFilesFieldNumber;
   134  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
   135  
   136  FileRegistry::FileRegistry()
   137    : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
   138    ::google::protobuf::internal::InitSCC(
   139        &protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto::scc_info_FileRegistry.base);
   140    SharedCtor();
   141    // @@protoc_insertion_point(constructor:cockroach.storage.enginepb.FileRegistry)
   142  }
   143  FileRegistry::FileRegistry(const FileRegistry& from)
   144    : ::google::protobuf::MessageLite(),
   145        _internal_metadata_(NULL) {
   146    _internal_metadata_.MergeFrom(from._internal_metadata_);
   147    files_.MergeFrom(from.files_);
   148    version_ = from.version_;
   149    // @@protoc_insertion_point(copy_constructor:cockroach.storage.enginepb.FileRegistry)
   150  }
   151  
   152  void FileRegistry::SharedCtor() {
   153    version_ = 0;
   154  }
   155  
   156  FileRegistry::~FileRegistry() {
   157    // @@protoc_insertion_point(destructor:cockroach.storage.enginepb.FileRegistry)
   158    SharedDtor();
   159  }
   160  
   161  void FileRegistry::SharedDtor() {
   162  }
   163  
   164  void FileRegistry::SetCachedSize(int size) const {
   165    _cached_size_.Set(size);
   166  }
   167  const FileRegistry& FileRegistry::default_instance() {
   168    ::google::protobuf::internal::InitSCC(&protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto::scc_info_FileRegistry.base);
   169    return *internal_default_instance();
   170  }
   171  
   172  
   173  void FileRegistry::Clear() {
   174  // @@protoc_insertion_point(message_clear_start:cockroach.storage.enginepb.FileRegistry)
   175    ::google::protobuf::uint32 cached_has_bits = 0;
   176    // Prevent compiler warnings about cached_has_bits being unused
   177    (void) cached_has_bits;
   178  
   179    files_.Clear();
   180    version_ = 0;
   181    _internal_metadata_.Clear();
   182  }
   183  
   184  bool FileRegistry::MergePartialFromCodedStream(
   185      ::google::protobuf::io::CodedInputStream* input) {
   186  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   187    ::google::protobuf::uint32 tag;
   188    ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter(
   189        &_internal_metadata_);
   190    ::google::protobuf::io::StringOutputStream unknown_fields_output(
   191        unknown_fields_setter.buffer());
   192    ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
   193        &unknown_fields_output, false);
   194    // @@protoc_insertion_point(parse_start:cockroach.storage.enginepb.FileRegistry)
   195    for (;;) {
   196      ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
   197      tag = p.first;
   198      if (!p.second) goto handle_unusual;
   199      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   200        // .cockroach.storage.enginepb.RegistryVersion version = 1;
   201        case 1: {
   202          if (static_cast< ::google::protobuf::uint8>(tag) ==
   203              static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
   204            int value;
   205            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   206                     int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
   207                   input, &value)));
   208            set_version(static_cast< ::cockroach::storage::enginepb::RegistryVersion >(value));
   209          } else {
   210            goto handle_unusual;
   211          }
   212          break;
   213        }
   214  
   215        // map<string, .cockroach.storage.enginepb.FileEntry> files = 2;
   216        case 2: {
   217          if (static_cast< ::google::protobuf::uint8>(tag) ==
   218              static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
   219            FileRegistry_FilesEntry_DoNotUse::Parser< ::google::protobuf::internal::MapFieldLite<
   220                FileRegistry_FilesEntry_DoNotUse,
   221                ::std::string, ::cockroach::storage::enginepb::FileEntry,
   222                ::google::protobuf::internal::WireFormatLite::TYPE_STRING,
   223                ::google::protobuf::internal::WireFormatLite::TYPE_MESSAGE,
   224                0 >,
   225              ::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry > > parser(&files_);
   226            DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
   227                input, &parser));
   228            DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   229              parser.key().data(), static_cast<int>(parser.key().length()),
   230              ::google::protobuf::internal::WireFormatLite::PARSE,
   231              "cockroach.storage.enginepb.FileRegistry.FilesEntry.key"));
   232          } else {
   233            goto handle_unusual;
   234          }
   235          break;
   236        }
   237  
   238        default: {
   239        handle_unusual:
   240          if (tag == 0) {
   241            goto success;
   242          }
   243          DO_(::google::protobuf::internal::WireFormatLite::SkipField(
   244              input, tag, &unknown_fields_stream));
   245          break;
   246        }
   247      }
   248    }
   249  success:
   250    // @@protoc_insertion_point(parse_success:cockroach.storage.enginepb.FileRegistry)
   251    return true;
   252  failure:
   253    // @@protoc_insertion_point(parse_failure:cockroach.storage.enginepb.FileRegistry)
   254    return false;
   255  #undef DO_
   256  }
   257  
   258  void FileRegistry::SerializeWithCachedSizes(
   259      ::google::protobuf::io::CodedOutputStream* output) const {
   260    // @@protoc_insertion_point(serialize_start:cockroach.storage.enginepb.FileRegistry)
   261    ::google::protobuf::uint32 cached_has_bits = 0;
   262    (void) cached_has_bits;
   263  
   264    // .cockroach.storage.enginepb.RegistryVersion version = 1;
   265    if (this->version() != 0) {
   266      ::google::protobuf::internal::WireFormatLite::WriteEnum(
   267        1, this->version(), output);
   268    }
   269  
   270    // map<string, .cockroach.storage.enginepb.FileEntry> files = 2;
   271    if (!this->files().empty()) {
   272      typedef ::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >::const_pointer
   273          ConstPtr;
   274      typedef ConstPtr SortItem;
   275      typedef ::google::protobuf::internal::CompareByDerefFirst<SortItem> Less;
   276      struct Utf8Check {
   277        static void Check(ConstPtr p) {
   278          ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
   279            p->first.data(), static_cast<int>(p->first.length()),
   280            ::google::protobuf::internal::WireFormatLite::SERIALIZE,
   281            "cockroach.storage.enginepb.FileRegistry.FilesEntry.key");
   282        }
   283      };
   284  
   285      if (output->IsSerializationDeterministic() &&
   286          this->files().size() > 1) {
   287        ::std::unique_ptr<SortItem[]> items(
   288            new SortItem[this->files().size()]);
   289        typedef ::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >::size_type size_type;
   290        size_type n = 0;
   291        for (::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >::const_iterator
   292            it = this->files().begin();
   293            it != this->files().end(); ++it, ++n) {
   294          items[static_cast<ptrdiff_t>(n)] = SortItem(&*it);
   295        }
   296        ::std::sort(&items[0], &items[static_cast<ptrdiff_t>(n)], Less());
   297        ::std::unique_ptr<FileRegistry_FilesEntry_DoNotUse> entry;
   298        for (size_type i = 0; i < n; i++) {
   299          entry.reset(files_.NewEntryWrapper(
   300              items[static_cast<ptrdiff_t>(i)]->first, items[static_cast<ptrdiff_t>(i)]->second));
   301          ::google::protobuf::internal::WireFormatLite::WriteMessage(
   302              2, *entry, output);
   303          Utf8Check::Check(items[static_cast<ptrdiff_t>(i)]);
   304        }
   305      } else {
   306        ::std::unique_ptr<FileRegistry_FilesEntry_DoNotUse> entry;
   307        for (::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >::const_iterator
   308            it = this->files().begin();
   309            it != this->files().end(); ++it) {
   310          entry.reset(files_.NewEntryWrapper(
   311              it->first, it->second));
   312          ::google::protobuf::internal::WireFormatLite::WriteMessage(
   313              2, *entry, output);
   314          Utf8Check::Check(&*it);
   315        }
   316      }
   317    }
   318  
   319    output->WriteRaw((::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()).data(),
   320                     static_cast<int>((::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()).size()));
   321    // @@protoc_insertion_point(serialize_end:cockroach.storage.enginepb.FileRegistry)
   322  }
   323  
   324  size_t FileRegistry::ByteSizeLong() const {
   325  // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.enginepb.FileRegistry)
   326    size_t total_size = 0;
   327  
   328    total_size += (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()).size();
   329  
   330    // map<string, .cockroach.storage.enginepb.FileEntry> files = 2;
   331    total_size += 1 *
   332        ::google::protobuf::internal::FromIntSize(this->files_size());
   333    {
   334      ::std::unique_ptr<FileRegistry_FilesEntry_DoNotUse> entry;
   335      for (::google::protobuf::Map< ::std::string, ::cockroach::storage::enginepb::FileEntry >::const_iterator
   336          it = this->files().begin();
   337          it != this->files().end(); ++it) {
   338        entry.reset(files_.NewEntryWrapper(it->first, it->second));
   339        total_size += ::google::protobuf::internal::WireFormatLite::
   340            MessageSizeNoVirtual(*entry);
   341      }
   342    }
   343  
   344    // .cockroach.storage.enginepb.RegistryVersion version = 1;
   345    if (this->version() != 0) {
   346      total_size += 1 +
   347        ::google::protobuf::internal::WireFormatLite::EnumSize(this->version());
   348    }
   349  
   350    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
   351    SetCachedSize(cached_size);
   352    return total_size;
   353  }
   354  
   355  void FileRegistry::CheckTypeAndMergeFrom(
   356      const ::google::protobuf::MessageLite& from) {
   357    MergeFrom(*::google::protobuf::down_cast<const FileRegistry*>(&from));
   358  }
   359  
   360  void FileRegistry::MergeFrom(const FileRegistry& from) {
   361  // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.enginepb.FileRegistry)
   362    GOOGLE_DCHECK_NE(&from, this);
   363    _internal_metadata_.MergeFrom(from._internal_metadata_);
   364    ::google::protobuf::uint32 cached_has_bits = 0;
   365    (void) cached_has_bits;
   366  
   367    files_.MergeFrom(from.files_);
   368    if (from.version() != 0) {
   369      set_version(from.version());
   370    }
   371  }
   372  
   373  void FileRegistry::CopyFrom(const FileRegistry& from) {
   374  // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.enginepb.FileRegistry)
   375    if (&from == this) return;
   376    Clear();
   377    MergeFrom(from);
   378  }
   379  
   380  bool FileRegistry::IsInitialized() const {
   381    return true;
   382  }
   383  
   384  void FileRegistry::Swap(FileRegistry* other) {
   385    if (other == this) return;
   386    InternalSwap(other);
   387  }
   388  void FileRegistry::InternalSwap(FileRegistry* other) {
   389    using std::swap;
   390    files_.Swap(&other->files_);
   391    swap(version_, other->version_);
   392    _internal_metadata_.Swap(&other->_internal_metadata_);
   393  }
   394  
   395  ::std::string FileRegistry::GetTypeName() const {
   396    return "cockroach.storage.enginepb.FileRegistry";
   397  }
   398  
   399  
   400  // ===================================================================
   401  
   402  void FileEntry::InitAsDefaultInstance() {
   403  }
   404  #if !defined(_MSC_VER) || _MSC_VER >= 1900
   405  const int FileEntry::kEnvTypeFieldNumber;
   406  const int FileEntry::kEncryptionSettingsFieldNumber;
   407  #endif  // !defined(_MSC_VER) || _MSC_VER >= 1900
   408  
   409  FileEntry::FileEntry()
   410    : ::google::protobuf::MessageLite(), _internal_metadata_(NULL) {
   411    ::google::protobuf::internal::InitSCC(
   412        &protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto::scc_info_FileEntry.base);
   413    SharedCtor();
   414    // @@protoc_insertion_point(constructor:cockroach.storage.enginepb.FileEntry)
   415  }
   416  FileEntry::FileEntry(const FileEntry& from)
   417    : ::google::protobuf::MessageLite(),
   418        _internal_metadata_(NULL) {
   419    _internal_metadata_.MergeFrom(from._internal_metadata_);
   420    encryption_settings_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   421    if (from.encryption_settings().size() > 0) {
   422      encryption_settings_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryption_settings_);
   423    }
   424    env_type_ = from.env_type_;
   425    // @@protoc_insertion_point(copy_constructor:cockroach.storage.enginepb.FileEntry)
   426  }
   427  
   428  void FileEntry::SharedCtor() {
   429    encryption_settings_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   430    env_type_ = 0;
   431  }
   432  
   433  FileEntry::~FileEntry() {
   434    // @@protoc_insertion_point(destructor:cockroach.storage.enginepb.FileEntry)
   435    SharedDtor();
   436  }
   437  
   438  void FileEntry::SharedDtor() {
   439    encryption_settings_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   440  }
   441  
   442  void FileEntry::SetCachedSize(int size) const {
   443    _cached_size_.Set(size);
   444  }
   445  const FileEntry& FileEntry::default_instance() {
   446    ::google::protobuf::internal::InitSCC(&protobuf_storage_2fenginepb_2ffile_5fregistry_2eproto::scc_info_FileEntry.base);
   447    return *internal_default_instance();
   448  }
   449  
   450  
   451  void FileEntry::Clear() {
   452  // @@protoc_insertion_point(message_clear_start:cockroach.storage.enginepb.FileEntry)
   453    ::google::protobuf::uint32 cached_has_bits = 0;
   454    // Prevent compiler warnings about cached_has_bits being unused
   455    (void) cached_has_bits;
   456  
   457    encryption_settings_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
   458    env_type_ = 0;
   459    _internal_metadata_.Clear();
   460  }
   461  
   462  bool FileEntry::MergePartialFromCodedStream(
   463      ::google::protobuf::io::CodedInputStream* input) {
   464  #define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
   465    ::google::protobuf::uint32 tag;
   466    ::google::protobuf::internal::LiteUnknownFieldSetter unknown_fields_setter(
   467        &_internal_metadata_);
   468    ::google::protobuf::io::StringOutputStream unknown_fields_output(
   469        unknown_fields_setter.buffer());
   470    ::google::protobuf::io::CodedOutputStream unknown_fields_stream(
   471        &unknown_fields_output, false);
   472    // @@protoc_insertion_point(parse_start:cockroach.storage.enginepb.FileEntry)
   473    for (;;) {
   474      ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
   475      tag = p.first;
   476      if (!p.second) goto handle_unusual;
   477      switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
   478        // .cockroach.storage.enginepb.EnvType env_type = 1;
   479        case 1: {
   480          if (static_cast< ::google::protobuf::uint8>(tag) ==
   481              static_cast< ::google::protobuf::uint8>(8u /* 8 & 0xFF */)) {
   482            int value;
   483            DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
   484                     int, ::google::protobuf::internal::WireFormatLite::TYPE_ENUM>(
   485                   input, &value)));
   486            set_env_type(static_cast< ::cockroach::storage::enginepb::EnvType >(value));
   487          } else {
   488            goto handle_unusual;
   489          }
   490          break;
   491        }
   492  
   493        // bytes encryption_settings = 2;
   494        case 2: {
   495          if (static_cast< ::google::protobuf::uint8>(tag) ==
   496              static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
   497            DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
   498                  input, this->mutable_encryption_settings()));
   499          } else {
   500            goto handle_unusual;
   501          }
   502          break;
   503        }
   504  
   505        default: {
   506        handle_unusual:
   507          if (tag == 0) {
   508            goto success;
   509          }
   510          DO_(::google::protobuf::internal::WireFormatLite::SkipField(
   511              input, tag, &unknown_fields_stream));
   512          break;
   513        }
   514      }
   515    }
   516  success:
   517    // @@protoc_insertion_point(parse_success:cockroach.storage.enginepb.FileEntry)
   518    return true;
   519  failure:
   520    // @@protoc_insertion_point(parse_failure:cockroach.storage.enginepb.FileEntry)
   521    return false;
   522  #undef DO_
   523  }
   524  
   525  void FileEntry::SerializeWithCachedSizes(
   526      ::google::protobuf::io::CodedOutputStream* output) const {
   527    // @@protoc_insertion_point(serialize_start:cockroach.storage.enginepb.FileEntry)
   528    ::google::protobuf::uint32 cached_has_bits = 0;
   529    (void) cached_has_bits;
   530  
   531    // .cockroach.storage.enginepb.EnvType env_type = 1;
   532    if (this->env_type() != 0) {
   533      ::google::protobuf::internal::WireFormatLite::WriteEnum(
   534        1, this->env_type(), output);
   535    }
   536  
   537    // bytes encryption_settings = 2;
   538    if (this->encryption_settings().size() > 0) {
   539      ::google::protobuf::internal::WireFormatLite::WriteBytesMaybeAliased(
   540        2, this->encryption_settings(), output);
   541    }
   542  
   543    output->WriteRaw((::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()).data(),
   544                     static_cast<int>((::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()).size()));
   545    // @@protoc_insertion_point(serialize_end:cockroach.storage.enginepb.FileEntry)
   546  }
   547  
   548  size_t FileEntry::ByteSizeLong() const {
   549  // @@protoc_insertion_point(message_byte_size_start:cockroach.storage.enginepb.FileEntry)
   550    size_t total_size = 0;
   551  
   552    total_size += (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()).size();
   553  
   554    // bytes encryption_settings = 2;
   555    if (this->encryption_settings().size() > 0) {
   556      total_size += 1 +
   557        ::google::protobuf::internal::WireFormatLite::BytesSize(
   558          this->encryption_settings());
   559    }
   560  
   561    // .cockroach.storage.enginepb.EnvType env_type = 1;
   562    if (this->env_type() != 0) {
   563      total_size += 1 +
   564        ::google::protobuf::internal::WireFormatLite::EnumSize(this->env_type());
   565    }
   566  
   567    int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
   568    SetCachedSize(cached_size);
   569    return total_size;
   570  }
   571  
   572  void FileEntry::CheckTypeAndMergeFrom(
   573      const ::google::protobuf::MessageLite& from) {
   574    MergeFrom(*::google::protobuf::down_cast<const FileEntry*>(&from));
   575  }
   576  
   577  void FileEntry::MergeFrom(const FileEntry& from) {
   578  // @@protoc_insertion_point(class_specific_merge_from_start:cockroach.storage.enginepb.FileEntry)
   579    GOOGLE_DCHECK_NE(&from, this);
   580    _internal_metadata_.MergeFrom(from._internal_metadata_);
   581    ::google::protobuf::uint32 cached_has_bits = 0;
   582    (void) cached_has_bits;
   583  
   584    if (from.encryption_settings().size() > 0) {
   585  
   586      encryption_settings_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.encryption_settings_);
   587    }
   588    if (from.env_type() != 0) {
   589      set_env_type(from.env_type());
   590    }
   591  }
   592  
   593  void FileEntry::CopyFrom(const FileEntry& from) {
   594  // @@protoc_insertion_point(class_specific_copy_from_start:cockroach.storage.enginepb.FileEntry)
   595    if (&from == this) return;
   596    Clear();
   597    MergeFrom(from);
   598  }
   599  
   600  bool FileEntry::IsInitialized() const {
   601    return true;
   602  }
   603  
   604  void FileEntry::Swap(FileEntry* other) {
   605    if (other == this) return;
   606    InternalSwap(other);
   607  }
   608  void FileEntry::InternalSwap(FileEntry* other) {
   609    using std::swap;
   610    encryption_settings_.Swap(&other->encryption_settings_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
   611      GetArenaNoVirtual());
   612    swap(env_type_, other->env_type_);
   613    _internal_metadata_.Swap(&other->_internal_metadata_);
   614  }
   615  
   616  ::std::string FileEntry::GetTypeName() const {
   617    return "cockroach.storage.enginepb.FileEntry";
   618  }
   619  
   620  
   621  // @@protoc_insertion_point(namespace_scope)
   622  }  // namespace enginepb
   623  }  // namespace storage
   624  }  // namespace cockroach
   625  namespace google {
   626  namespace protobuf {
   627  template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::storage::enginepb::FileRegistry_FilesEntry_DoNotUse* Arena::CreateMaybeMessage< ::cockroach::storage::enginepb::FileRegistry_FilesEntry_DoNotUse >(Arena* arena) {
   628    return Arena::CreateInternal< ::cockroach::storage::enginepb::FileRegistry_FilesEntry_DoNotUse >(arena);
   629  }
   630  template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::storage::enginepb::FileRegistry* Arena::CreateMaybeMessage< ::cockroach::storage::enginepb::FileRegistry >(Arena* arena) {
   631    return Arena::CreateInternal< ::cockroach::storage::enginepb::FileRegistry >(arena);
   632  }
   633  template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::cockroach::storage::enginepb::FileEntry* Arena::CreateMaybeMessage< ::cockroach::storage::enginepb::FileEntry >(Arena* arena) {
   634    return Arena::CreateInternal< ::cockroach::storage::enginepb::FileEntry >(arena);
   635  }
   636  }  // namespace protobuf
   637  }  // namespace google
   638  
   639  // @@protoc_insertion_point(global_scope)