// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: vector.proto

#include "vector.pb.h"

#include <algorithm>

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>

PROTOBUF_PRAGMA_INIT_SEG

namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = _pb::internal;

namespace Messages {
PROTOBUF_CONSTEXPR File::File(
    ::_pbi::ConstantInitialized)
  : name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , payload_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , time_created_(uint64_t{0u})
  , time_modified_(uint64_t{0u})
  , is_local_(false)
  , is_exported_(false){}
struct FileDefaultTypeInternal {
  PROTOBUF_CONSTEXPR FileDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~FileDefaultTypeInternal() {}
  union {
    File _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 FileDefaultTypeInternal _File_default_instance_;
PROTOBUF_CONSTEXPR DirentNode::DirentNode(
    ::_pbi::ConstantInitialized)
  : files_()
  , subdirs_()
  , dirname_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{}){}
struct DirentNodeDefaultTypeInternal {
  PROTOBUF_CONSTEXPR DirentNodeDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~DirentNodeDefaultTypeInternal() {}
  union {
    DirentNode _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 DirentNodeDefaultTypeInternal _DirentNode_default_instance_;
PROTOBUF_CONSTEXPR Revision::Revision(
    ::_pbi::ConstantInitialized)
  : major_rev_(uint64_t{0u})
  , minor_rev_(uint64_t{0u}){}
struct RevisionDefaultTypeInternal {
  PROTOBUF_CONSTEXPR RevisionDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~RevisionDefaultTypeInternal() {}
  union {
    Revision _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RevisionDefaultTypeInternal _Revision_default_instance_;
PROTOBUF_CONSTEXPR Extrema::Extrema(
    ::_pbi::ConstantInitialized)
  : min_()
  , max_()
  , dims_(0u)
  , is_set_(false){}
struct ExtremaDefaultTypeInternal {
  PROTOBUF_CONSTEXPR ExtremaDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~ExtremaDefaultTypeInternal() {}
  union {
    Extrema _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ExtremaDefaultTypeInternal _Extrema_default_instance_;
PROTOBUF_CONSTEXPR Vector32::Vector32(
    ::_pbi::ConstantInitialized)
  : values_()
  , size_hint_()
  , _size_hint_cached_byte_size_(0)
  , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , units_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , comment_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , revision_(nullptr)
  , components_(0u)
  , interleaved_(false)
  , offset_(uint64_t{0u}){}
struct Vector32DefaultTypeInternal {
  PROTOBUF_CONSTEXPR Vector32DefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~Vector32DefaultTypeInternal() {}
  union {
    Vector32 _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vector32DefaultTypeInternal _Vector32_default_instance_;
PROTOBUF_CONSTEXPR Vector64::Vector64(
    ::_pbi::ConstantInitialized)
  : values_()
  , size_hint_()
  , _size_hint_cached_byte_size_(0)
  , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , units_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , comment_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , revision_(nullptr)
  , components_(0u)
  , interleaved_(false)
  , offset_(uint64_t{0u}){}
struct Vector64DefaultTypeInternal {
  PROTOBUF_CONSTEXPR Vector64DefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~Vector64DefaultTypeInternal() {}
  union {
    Vector64 _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Vector64DefaultTypeInternal _Vector64_default_instance_;
PROTOBUF_CONSTEXPR SparseMatrix::SparseMatrix(
    ::_pbi::ConstantInitialized)
  : size_hint_()
  , _size_hint_cached_byte_size_(0)
  , indices_()
  , _indices_cached_byte_size_(0)
  , values_()
  , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , bounds_(nullptr){}
struct SparseMatrixDefaultTypeInternal {
  PROTOBUF_CONSTEXPR SparseMatrixDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~SparseMatrixDefaultTypeInternal() {}
  union {
    SparseMatrix _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 SparseMatrixDefaultTypeInternal _SparseMatrix_default_instance_;
PROTOBUF_CONSTEXPR Rule::Rule(
    ::_pbi::ConstantInitialized)
  : algorithms_()
  , failed_nodes_()
  , _failed_nodes_cached_byte_size_(0)
  , failed_values_()
  , pk_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , value_(0)
  , op_(0u){}
struct RuleDefaultTypeInternal {
  PROTOBUF_CONSTEXPR RuleDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~RuleDefaultTypeInternal() {}
  union {
    Rule _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RuleDefaultTypeInternal _Rule_default_instance_;
PROTOBUF_CONSTEXPR Record64::Record64(
    ::_pbi::ConstantInitialized)
  : requirements_()
  , data_()
  , matrix_()
  , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , owner_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , revision_(nullptr)
  , length_units_(0u){}
struct Record64DefaultTypeInternal {
  PROTOBUF_CONSTEXPR Record64DefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~Record64DefaultTypeInternal() {}
  union {
    Record64 _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 Record64DefaultTypeInternal _Record64_default_instance_;
PROTOBUF_CONSTEXPR UIndices::UIndices(
    ::_pbi::ConstantInitialized)
  : values_()
  , _values_cached_byte_size_(0)
  , name_(&::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized{})
  , revision_(nullptr)
  , components_(0u)
  , interleaved_(false)
  , offset_(uint64_t{0u}){}
struct UIndicesDefaultTypeInternal {
  PROTOBUF_CONSTEXPR UIndicesDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~UIndicesDefaultTypeInternal() {}
  union {
    UIndices _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 UIndicesDefaultTypeInternal _UIndices_default_instance_;
PROTOBUF_CONSTEXPR Elements::Elements(
    ::_pbi::ConstantInitialized)
  : element_indices_()
  , _element_indices_cached_byte_size_(0)
  , element_types_()
  , _element_types_cached_byte_size_(0)
  , element_ids_()
  , _element_ids_cached_byte_size_(0)
  , node_indices_()
  , _node_indices_cached_byte_size_(0)
  , element_centers_()
  , element_measures_(){}
struct ElementsDefaultTypeInternal {
  PROTOBUF_CONSTEXPR ElementsDefaultTypeInternal()
      : _instance(::_pbi::ConstantInitialized{}) {}
  ~ElementsDefaultTypeInternal() {}
  union {
    Elements _instance;
  };
};
PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 ElementsDefaultTypeInternal _Elements_default_instance_;
}  // namespace Messages
static ::_pb::Metadata file_level_metadata_vector_2eproto[11];
static constexpr ::_pb::EnumDescriptor const** file_level_enum_descriptors_vector_2eproto = nullptr;
static constexpr ::_pb::ServiceDescriptor const** file_level_service_descriptors_vector_2eproto = nullptr;

const uint32_t TableStruct_vector_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::File, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::File, name_),
  PROTOBUF_FIELD_OFFSET(::Messages::File, payload_),
  PROTOBUF_FIELD_OFFSET(::Messages::File, is_local_),
  PROTOBUF_FIELD_OFFSET(::Messages::File, is_exported_),
  PROTOBUF_FIELD_OFFSET(::Messages::File, time_created_),
  PROTOBUF_FIELD_OFFSET(::Messages::File, time_modified_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::DirentNode, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::DirentNode, dirname_),
  PROTOBUF_FIELD_OFFSET(::Messages::DirentNode, files_),
  PROTOBUF_FIELD_OFFSET(::Messages::DirentNode, subdirs_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::Revision, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::Revision, major_rev_),
  PROTOBUF_FIELD_OFFSET(::Messages::Revision, minor_rev_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::Extrema, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::Extrema, dims_),
  PROTOBUF_FIELD_OFFSET(::Messages::Extrema, min_),
  PROTOBUF_FIELD_OFFSET(::Messages::Extrema, max_),
  PROTOBUF_FIELD_OFFSET(::Messages::Extrema, is_set_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, name_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, components_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, interleaved_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, revision_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, units_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, comment_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, offset_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, values_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector32, size_hint_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, name_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, components_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, interleaved_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, revision_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, units_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, comment_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, offset_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, values_),
  PROTOBUF_FIELD_OFFSET(::Messages::Vector64, size_hint_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::SparseMatrix, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::SparseMatrix, name_),
  PROTOBUF_FIELD_OFFSET(::Messages::SparseMatrix, size_hint_),
  PROTOBUF_FIELD_OFFSET(::Messages::SparseMatrix, indices_),
  PROTOBUF_FIELD_OFFSET(::Messages::SparseMatrix, values_),
  PROTOBUF_FIELD_OFFSET(::Messages::SparseMatrix, bounds_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::Rule, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::Rule, pk_),
  PROTOBUF_FIELD_OFFSET(::Messages::Rule, op_),
  PROTOBUF_FIELD_OFFSET(::Messages::Rule, value_),
  PROTOBUF_FIELD_OFFSET(::Messages::Rule, algorithms_),
  PROTOBUF_FIELD_OFFSET(::Messages::Rule, failed_nodes_),
  PROTOBUF_FIELD_OFFSET(::Messages::Rule, failed_values_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::Record64, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::Record64, name_),
  PROTOBUF_FIELD_OFFSET(::Messages::Record64, owner_),
  PROTOBUF_FIELD_OFFSET(::Messages::Record64, revision_),
  PROTOBUF_FIELD_OFFSET(::Messages::Record64, length_units_),
  PROTOBUF_FIELD_OFFSET(::Messages::Record64, requirements_),
  PROTOBUF_FIELD_OFFSET(::Messages::Record64, data_),
  PROTOBUF_FIELD_OFFSET(::Messages::Record64, matrix_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::UIndices, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::UIndices, name_),
  PROTOBUF_FIELD_OFFSET(::Messages::UIndices, components_),
  PROTOBUF_FIELD_OFFSET(::Messages::UIndices, interleaved_),
  PROTOBUF_FIELD_OFFSET(::Messages::UIndices, revision_),
  PROTOBUF_FIELD_OFFSET(::Messages::UIndices, offset_),
  PROTOBUF_FIELD_OFFSET(::Messages::UIndices, values_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::Messages::Elements, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  ~0u,  // no _inlined_string_donated_
  PROTOBUF_FIELD_OFFSET(::Messages::Elements, element_indices_),
  PROTOBUF_FIELD_OFFSET(::Messages::Elements, element_types_),
  PROTOBUF_FIELD_OFFSET(::Messages::Elements, element_ids_),
  PROTOBUF_FIELD_OFFSET(::Messages::Elements, node_indices_),
  PROTOBUF_FIELD_OFFSET(::Messages::Elements, element_centers_),
  PROTOBUF_FIELD_OFFSET(::Messages::Elements, element_measures_),
};
static const ::_pbi::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, -1, sizeof(::Messages::File)},
  { 12, -1, -1, sizeof(::Messages::DirentNode)},
  { 21, -1, -1, sizeof(::Messages::Revision)},
  { 29, -1, -1, sizeof(::Messages::Extrema)},
  { 39, -1, -1, sizeof(::Messages::Vector32)},
  { 54, -1, -1, sizeof(::Messages::Vector64)},
  { 69, -1, -1, sizeof(::Messages::SparseMatrix)},
  { 80, -1, -1, sizeof(::Messages::Rule)},
  { 92, -1, -1, sizeof(::Messages::Record64)},
  { 105, -1, -1, sizeof(::Messages::UIndices)},
  { 117, -1, -1, sizeof(::Messages::Elements)},
};

static const ::_pb::Message* const file_default_instances[] = {
  &::Messages::_File_default_instance_._instance,
  &::Messages::_DirentNode_default_instance_._instance,
  &::Messages::_Revision_default_instance_._instance,
  &::Messages::_Extrema_default_instance_._instance,
  &::Messages::_Vector32_default_instance_._instance,
  &::Messages::_Vector64_default_instance_._instance,
  &::Messages::_SparseMatrix_default_instance_._instance,
  &::Messages::_Rule_default_instance_._instance,
  &::Messages::_Record64_default_instance_._instance,
  &::Messages::_UIndices_default_instance_._instance,
  &::Messages::_Elements_default_instance_._instance,
};

const char descriptor_table_protodef_vector_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\014vector.proto\022\010Messages\"y\n\004File\022\014\n\004name"
  "\030\001 \001(\t\022\017\n\007payload\030\002 \001(\014\022\020\n\010is_local\030\003 \001("
  "\010\022\023\n\013is_exported\030\004 \001(\010\022\024\n\014time_created\030\n"
  " \001(\004\022\025\n\rtime_modified\030\013 \001(\004\"S\n\nDirentNod"
  "e\022\017\n\007dirname\030\001 \001(\t\022\r\n\005files\030\002 \003(\t\022%\n\007sub"
  "dirs\030\003 \003(\0132\024.Messages.DirentNode\"0\n\010Revi"
  "sion\022\021\n\tmajor_rev\030\001 \001(\004\022\021\n\tminor_rev\030\002 \001"
  "(\004\"I\n\007Extrema\022\014\n\004dims\030\001 \001(\r\022\017\n\003min\030\002 \003(\001"
  "B\002\020\001\022\017\n\003max\030\003 \003(\001B\002\020\001\022\016\n\006is_set\030\004 \001(\010\"\302\001"
  "\n\010Vector32\022\014\n\004name\030\001 \001(\t\022\022\n\ncomponents\030\002"
  " \001(\r\022\023\n\013interleaved\030\003 \001(\010\022$\n\010revision\030\004 "
  "\001(\0132\022.Messages.Revision\022\r\n\005units\030\005 \001(\t\022\017"
  "\n\007comment\030\006 \001(\t\022\016\n\006offset\030\t \001(\004\022\022\n\006value"
  "s\030\n \003(\002B\002\020\001\022\025\n\tsize_hint\030\013 \003(\rB\002\020\001\"\302\001\n\010V"
  "ector64\022\014\n\004name\030\001 \001(\t\022\022\n\ncomponents\030\002 \001("
  "\r\022\023\n\013interleaved\030\003 \001(\010\022$\n\010revision\030\004 \001(\013"
  "2\022.Messages.Revision\022\r\n\005units\030\005 \001(\t\022\017\n\007c"
  "omment\030\006 \001(\t\022\016\n\006offset\030\t \001(\004\022\022\n\006values\030\n"
  " \003(\001B\002\020\001\022\025\n\tsize_hint\030\013 \003(\rB\002\020\001\"\177\n\014Spars"
  "eMatrix\022\014\n\004name\030\001 \001(\t\022\025\n\tsize_hint\030\002 \003(\r"
  "B\002\020\001\022\023\n\007indices\030\003 \003(\rB\002\020\001\022\022\n\006values\030\004 \003("
  "\001B\002\020\001\022!\n\006bounds\030\005 \001(\0132\021.Messages.Extrema"
  "\"v\n\004Rule\022\n\n\002pk\030\001 \001(\t\022\n\n\002op\030\002 \001(\r\022\r\n\005valu"
  "e\030\003 \001(\001\022\022\n\nalgorithms\030\004 \003(\t\022\030\n\014failed_no"
  "des\030\005 \003(\rB\002\020\001\022\031\n\rfailed_values\030\006 \003(\001B\002\020\001"
  "\"\323\001\n\010Record64\022\014\n\004name\030\001 \001(\t\022\r\n\005owner\030\002 \001"
  "(\t\022$\n\010revision\030\003 \001(\0132\022.Messages.Revision"
  "\022\024\n\014length_units\030\010 \001(\r\022$\n\014requirements\030\t"
  " \003(\0132\016.Messages.Rule\022 \n\004data\030\n \003(\0132\022.Mes"
  "sages.Vector64\022&\n\006matrix\030\013 \003(\0132\026.Message"
  "s.SparseMatrix\"\213\001\n\010UIndices\022\014\n\004name\030\001 \001("
  "\t\022\022\n\ncomponents\030\002 \001(\r\022\023\n\013interleaved\030\003 \001"
  "(\010\022$\n\010revision\030\004 \001(\0132\022.Messages.Revision"
  "\022\016\n\006offset\030\t \001(\004\022\022\n\006values\030\n \003(\rB\002\020\001\"\260\001\n"
  "\010Elements\022\033\n\017element_indices\030\001 \003(\rB\002\020\001\022\031"
  "\n\relement_types\030\002 \003(\rB\002\020\001\022\027\n\013element_ids"
  "\030\003 \003(\005B\002\020\001\022\030\n\014node_indices\030\004 \003(\rB\002\020\001\022\033\n\017"
  "element_centers\030\n \003(\001B\002\020\001\022\034\n\020element_mea"
  "sures\030\013 \003(\001B\002\020\001B\003\370\001\001b\006proto3"
  ;
static ::_pbi::once_flag descriptor_table_vector_2eproto_once;
const ::_pbi::DescriptorTable descriptor_table_vector_2eproto = {
    false, false, 1548, descriptor_table_protodef_vector_2eproto,
    "vector.proto",
    &descriptor_table_vector_2eproto_once, nullptr, 0, 11,
    schemas, file_default_instances, TableStruct_vector_2eproto::offsets,
    file_level_metadata_vector_2eproto, file_level_enum_descriptors_vector_2eproto,
    file_level_service_descriptors_vector_2eproto,
};
PROTOBUF_ATTRIBUTE_WEAK const ::_pbi::DescriptorTable* descriptor_table_vector_2eproto_getter() {
  return &descriptor_table_vector_2eproto;
}

// Force running AddDescriptors() at dynamic initialization time.
PROTOBUF_ATTRIBUTE_INIT_PRIORITY2 static ::_pbi::AddDescriptorsRunner dynamic_init_dummy_vector_2eproto(&descriptor_table_vector_2eproto);
namespace Messages {

// ===================================================================

class File::_Internal {
 public:
};

File::File(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.File)
}
File::File(const File& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    name_.Set(from._internal_name(), 
      GetArenaForAllocation());
  }
  payload_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    payload_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_payload().empty()) {
    payload_.Set(from._internal_payload(), 
      GetArenaForAllocation());
  }
  ::memcpy(&time_created_, &from.time_created_,
    static_cast<size_t>(reinterpret_cast<char*>(&is_exported_) -
    reinterpret_cast<char*>(&time_created_)) + sizeof(is_exported_));
  // @@protoc_insertion_point(copy_constructor:Messages.File)
}

inline void File::SharedCtor() {
name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
payload_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  payload_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&time_created_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&is_exported_) -
    reinterpret_cast<char*>(&time_created_)) + sizeof(is_exported_));
}

File::~File() {
  // @@protoc_insertion_point(destructor:Messages.File)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void File::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  name_.Destroy();
  payload_.Destroy();
}

void File::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void File::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.File)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  name_.ClearToEmpty();
  payload_.ClearToEmpty();
  ::memset(&time_created_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&is_exported_) -
      reinterpret_cast<char*>(&time_created_)) + sizeof(is_exported_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* File::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string name = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.File.name"));
        } else
          goto handle_unusual;
        continue;
      // bytes payload = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_payload();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // bool is_local = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
          is_local_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // bool is_exported = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
          is_exported_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // uint64 time_created = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 80)) {
          time_created_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // uint64 time_modified = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 88)) {
          time_modified_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* File::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.File)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string name = 1;
  if (!this->_internal_name().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.File.name");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_name(), target);
  }

  // bytes payload = 2;
  if (!this->_internal_payload().empty()) {
    target = stream->WriteBytesMaybeAliased(
        2, this->_internal_payload(), target);
  }

  // bool is_local = 3;
  if (this->_internal_is_local() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_is_local(), target);
  }

  // bool is_exported = 4;
  if (this->_internal_is_exported() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_is_exported(), target);
  }

  // uint64 time_created = 10;
  if (this->_internal_time_created() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(10, this->_internal_time_created(), target);
  }

  // uint64 time_modified = 11;
  if (this->_internal_time_modified() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(11, this->_internal_time_modified(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.File)
  return target;
}

size_t File::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.File)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // string name = 1;
  if (!this->_internal_name().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_name());
  }

  // bytes payload = 2;
  if (!this->_internal_payload().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::BytesSize(
        this->_internal_payload());
  }

  // uint64 time_created = 10;
  if (this->_internal_time_created() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_time_created());
  }

  // uint64 time_modified = 11;
  if (this->_internal_time_modified() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_time_modified());
  }

  // bool is_local = 3;
  if (this->_internal_is_local() != 0) {
    total_size += 1 + 1;
  }

  // bool is_exported = 4;
  if (this->_internal_is_exported() != 0) {
    total_size += 1 + 1;
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData File::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    File::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*File::GetClassData() const { return &_class_data_; }

void File::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<File *>(to)->MergeFrom(
      static_cast<const File &>(from));
}


void File::MergeFrom(const File& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.File)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_name().empty()) {
    _internal_set_name(from._internal_name());
  }
  if (!from._internal_payload().empty()) {
    _internal_set_payload(from._internal_payload());
  }
  if (from._internal_time_created() != 0) {
    _internal_set_time_created(from._internal_time_created());
  }
  if (from._internal_time_modified() != 0) {
    _internal_set_time_modified(from._internal_time_modified());
  }
  if (from._internal_is_local() != 0) {
    _internal_set_is_local(from._internal_is_local());
  }
  if (from._internal_is_exported() != 0) {
    _internal_set_is_exported(from._internal_is_exported());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void File::CopyFrom(const File& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.File)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool File::IsInitialized() const {
  return true;
}

void File::InternalSwap(File* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &name_, lhs_arena,
      &other->name_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &payload_, lhs_arena,
      &other->payload_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(File, is_exported_)
      + sizeof(File::is_exported_)
      - PROTOBUF_FIELD_OFFSET(File, time_created_)>(
          reinterpret_cast<char*>(&time_created_),
          reinterpret_cast<char*>(&other->time_created_));
}

::PROTOBUF_NAMESPACE_ID::Metadata File::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[0]);
}

// ===================================================================

class DirentNode::_Internal {
 public:
};

DirentNode::DirentNode(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  files_(arena),
  subdirs_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.DirentNode)
}
DirentNode::DirentNode(const DirentNode& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      files_(from.files_),
      subdirs_(from.subdirs_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  dirname_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    dirname_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_dirname().empty()) {
    dirname_.Set(from._internal_dirname(), 
      GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:Messages.DirentNode)
}

inline void DirentNode::SharedCtor() {
dirname_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  dirname_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

DirentNode::~DirentNode() {
  // @@protoc_insertion_point(destructor:Messages.DirentNode)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void DirentNode::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  dirname_.Destroy();
}

void DirentNode::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void DirentNode::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.DirentNode)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  files_.Clear();
  subdirs_.Clear();
  dirname_.ClearToEmpty();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* DirentNode::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string dirname = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_dirname();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.DirentNode.dirname"));
        } else
          goto handle_unusual;
        continue;
      // repeated string files = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_files();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, "Messages.DirentNode.files"));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<18>(ptr));
        } else
          goto handle_unusual;
        continue;
      // repeated .Messages.DirentNode subdirs = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_subdirs(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* DirentNode::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.DirentNode)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string dirname = 1;
  if (!this->_internal_dirname().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_dirname().data(), static_cast<int>(this->_internal_dirname().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.DirentNode.dirname");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_dirname(), target);
  }

  // repeated string files = 2;
  for (int i = 0, n = this->_internal_files_size(); i < n; i++) {
    const auto& s = this->_internal_files(i);
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      s.data(), static_cast<int>(s.length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.DirentNode.files");
    target = stream->WriteString(2, s, target);
  }

  // repeated .Messages.DirentNode subdirs = 3;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_subdirs_size()); i < n; i++) {
    const auto& repfield = this->_internal_subdirs(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(3, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.DirentNode)
  return target;
}

size_t DirentNode::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.DirentNode)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated string files = 2;
  total_size += 1 *
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(files_.size());
  for (int i = 0, n = files_.size(); i < n; i++) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
      files_.Get(i));
  }

  // repeated .Messages.DirentNode subdirs = 3;
  total_size += 1UL * this->_internal_subdirs_size();
  for (const auto& msg : this->subdirs_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // string dirname = 1;
  if (!this->_internal_dirname().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_dirname());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData DirentNode::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    DirentNode::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*DirentNode::GetClassData() const { return &_class_data_; }

void DirentNode::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<DirentNode *>(to)->MergeFrom(
      static_cast<const DirentNode &>(from));
}


void DirentNode::MergeFrom(const DirentNode& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.DirentNode)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  files_.MergeFrom(from.files_);
  subdirs_.MergeFrom(from.subdirs_);
  if (!from._internal_dirname().empty()) {
    _internal_set_dirname(from._internal_dirname());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void DirentNode::CopyFrom(const DirentNode& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.DirentNode)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool DirentNode::IsInitialized() const {
  return true;
}

void DirentNode::InternalSwap(DirentNode* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  files_.InternalSwap(&other->files_);
  subdirs_.InternalSwap(&other->subdirs_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &dirname_, lhs_arena,
      &other->dirname_, rhs_arena
  );
}

::PROTOBUF_NAMESPACE_ID::Metadata DirentNode::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[1]);
}

// ===================================================================

class Revision::_Internal {
 public:
};

Revision::Revision(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.Revision)
}
Revision::Revision(const Revision& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::memcpy(&major_rev_, &from.major_rev_,
    static_cast<size_t>(reinterpret_cast<char*>(&minor_rev_) -
    reinterpret_cast<char*>(&major_rev_)) + sizeof(minor_rev_));
  // @@protoc_insertion_point(copy_constructor:Messages.Revision)
}

inline void Revision::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&major_rev_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&minor_rev_) -
    reinterpret_cast<char*>(&major_rev_)) + sizeof(minor_rev_));
}

Revision::~Revision() {
  // @@protoc_insertion_point(destructor:Messages.Revision)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Revision::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}

void Revision::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void Revision::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.Revision)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  ::memset(&major_rev_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&minor_rev_) -
      reinterpret_cast<char*>(&major_rev_)) + sizeof(minor_rev_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Revision::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // uint64 major_rev = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
          major_rev_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // uint64 minor_rev = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
          minor_rev_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* Revision::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.Revision)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // uint64 major_rev = 1;
  if (this->_internal_major_rev() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(1, this->_internal_major_rev(), target);
  }

  // uint64 minor_rev = 2;
  if (this->_internal_minor_rev() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(2, this->_internal_minor_rev(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.Revision)
  return target;
}

size_t Revision::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.Revision)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // uint64 major_rev = 1;
  if (this->_internal_major_rev() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_major_rev());
  }

  // uint64 minor_rev = 2;
  if (this->_internal_minor_rev() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_minor_rev());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Revision::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    Revision::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Revision::GetClassData() const { return &_class_data_; }

void Revision::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<Revision *>(to)->MergeFrom(
      static_cast<const Revision &>(from));
}


void Revision::MergeFrom(const Revision& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.Revision)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (from._internal_major_rev() != 0) {
    _internal_set_major_rev(from._internal_major_rev());
  }
  if (from._internal_minor_rev() != 0) {
    _internal_set_minor_rev(from._internal_minor_rev());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void Revision::CopyFrom(const Revision& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.Revision)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Revision::IsInitialized() const {
  return true;
}

void Revision::InternalSwap(Revision* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Revision, minor_rev_)
      + sizeof(Revision::minor_rev_)
      - PROTOBUF_FIELD_OFFSET(Revision, major_rev_)>(
          reinterpret_cast<char*>(&major_rev_),
          reinterpret_cast<char*>(&other->major_rev_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Revision::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[2]);
}

// ===================================================================

class Extrema::_Internal {
 public:
};

Extrema::Extrema(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  min_(arena),
  max_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.Extrema)
}
Extrema::Extrema(const Extrema& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      min_(from.min_),
      max_(from.max_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::memcpy(&dims_, &from.dims_,
    static_cast<size_t>(reinterpret_cast<char*>(&is_set_) -
    reinterpret_cast<char*>(&dims_)) + sizeof(is_set_));
  // @@protoc_insertion_point(copy_constructor:Messages.Extrema)
}

inline void Extrema::SharedCtor() {
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&dims_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&is_set_) -
    reinterpret_cast<char*>(&dims_)) + sizeof(is_set_));
}

Extrema::~Extrema() {
  // @@protoc_insertion_point(destructor:Messages.Extrema)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Extrema::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}

void Extrema::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void Extrema::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.Extrema)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  min_.Clear();
  max_.Clear();
  ::memset(&dims_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&is_set_) -
      reinterpret_cast<char*>(&dims_)) + sizeof(is_set_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Extrema::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // uint32 dims = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 8)) {
          dims_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated double min = 2 [packed = true];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_min(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 17) {
          _internal_add_min(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // repeated double max = 3 [packed = true];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_max(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 25) {
          _internal_add_max(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // bool is_set = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 32)) {
          is_set_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* Extrema::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.Extrema)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // uint32 dims = 1;
  if (this->_internal_dims() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(1, this->_internal_dims(), target);
  }

  // repeated double min = 2 [packed = true];
  if (this->_internal_min_size() > 0) {
    target = stream->WriteFixedPacked(2, _internal_min(), target);
  }

  // repeated double max = 3 [packed = true];
  if (this->_internal_max_size() > 0) {
    target = stream->WriteFixedPacked(3, _internal_max(), target);
  }

  // bool is_set = 4;
  if (this->_internal_is_set() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(4, this->_internal_is_set(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.Extrema)
  return target;
}

size_t Extrema::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.Extrema)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated double min = 2 [packed = true];
  {
    unsigned int count = static_cast<unsigned int>(this->_internal_min_size());
    size_t data_size = 8UL * count;
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    total_size += data_size;
  }

  // repeated double max = 3 [packed = true];
  {
    unsigned int count = static_cast<unsigned int>(this->_internal_max_size());
    size_t data_size = 8UL * count;
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    total_size += data_size;
  }

  // uint32 dims = 1;
  if (this->_internal_dims() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_dims());
  }

  // bool is_set = 4;
  if (this->_internal_is_set() != 0) {
    total_size += 1 + 1;
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Extrema::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    Extrema::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Extrema::GetClassData() const { return &_class_data_; }

void Extrema::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<Extrema *>(to)->MergeFrom(
      static_cast<const Extrema &>(from));
}


void Extrema::MergeFrom(const Extrema& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.Extrema)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  min_.MergeFrom(from.min_);
  max_.MergeFrom(from.max_);
  if (from._internal_dims() != 0) {
    _internal_set_dims(from._internal_dims());
  }
  if (from._internal_is_set() != 0) {
    _internal_set_is_set(from._internal_is_set());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void Extrema::CopyFrom(const Extrema& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.Extrema)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Extrema::IsInitialized() const {
  return true;
}

void Extrema::InternalSwap(Extrema* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  min_.InternalSwap(&other->min_);
  max_.InternalSwap(&other->max_);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Extrema, is_set_)
      + sizeof(Extrema::is_set_)
      - PROTOBUF_FIELD_OFFSET(Extrema, dims_)>(
          reinterpret_cast<char*>(&dims_),
          reinterpret_cast<char*>(&other->dims_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Extrema::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[3]);
}

// ===================================================================

class Vector32::_Internal {
 public:
  static const ::Messages::Revision& revision(const Vector32* msg);
};

const ::Messages::Revision&
Vector32::_Internal::revision(const Vector32* msg) {
  return *msg->revision_;
}
Vector32::Vector32(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  values_(arena),
  size_hint_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.Vector32)
}
Vector32::Vector32(const Vector32& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      values_(from.values_),
      size_hint_(from.size_hint_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    name_.Set(from._internal_name(), 
      GetArenaForAllocation());
  }
  units_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    units_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_units().empty()) {
    units_.Set(from._internal_units(), 
      GetArenaForAllocation());
  }
  comment_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    comment_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_comment().empty()) {
    comment_.Set(from._internal_comment(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_revision()) {
    revision_ = new ::Messages::Revision(*from.revision_);
  } else {
    revision_ = nullptr;
  }
  ::memcpy(&components_, &from.components_,
    static_cast<size_t>(reinterpret_cast<char*>(&offset_) -
    reinterpret_cast<char*>(&components_)) + sizeof(offset_));
  // @@protoc_insertion_point(copy_constructor:Messages.Vector32)
}

inline void Vector32::SharedCtor() {
name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
units_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  units_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
comment_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  comment_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&revision_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&offset_) -
    reinterpret_cast<char*>(&revision_)) + sizeof(offset_));
}

Vector32::~Vector32() {
  // @@protoc_insertion_point(destructor:Messages.Vector32)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Vector32::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  name_.Destroy();
  units_.Destroy();
  comment_.Destroy();
  if (this != internal_default_instance()) delete revision_;
}

void Vector32::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void Vector32::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.Vector32)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  values_.Clear();
  size_hint_.Clear();
  name_.ClearToEmpty();
  units_.ClearToEmpty();
  comment_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && revision_ != nullptr) {
    delete revision_;
  }
  revision_ = nullptr;
  ::memset(&components_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&offset_) -
      reinterpret_cast<char*>(&components_)) + sizeof(offset_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Vector32::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string name = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Vector32.name"));
        } else
          goto handle_unusual;
        continue;
      // uint32 components = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
          components_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // bool interleaved = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
          interleaved_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .Messages.Revision revision = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_revision(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string units = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
          auto str = _internal_mutable_units();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Vector32.units"));
        } else
          goto handle_unusual;
        continue;
      // string comment = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
          auto str = _internal_mutable_comment();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Vector32.comment"));
        } else
          goto handle_unusual;
        continue;
      // uint64 offset = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
          offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated float values = 10 [packed = true];
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedFloatParser(_internal_mutable_values(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 85) {
          _internal_add_values(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<float>(ptr));
          ptr += sizeof(float);
        } else
          goto handle_unusual;
        continue;
      // repeated uint32 size_hint = 11 [packed = true];
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_size_hint(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 88) {
          _internal_add_size_hint(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* Vector32::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.Vector32)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string name = 1;
  if (!this->_internal_name().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Vector32.name");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_name(), target);
  }

  // uint32 components = 2;
  if (this->_internal_components() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_components(), target);
  }

  // bool interleaved = 3;
  if (this->_internal_interleaved() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_interleaved(), target);
  }

  // .Messages.Revision revision = 4;
  if (this->_internal_has_revision()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(4, _Internal::revision(this),
        _Internal::revision(this).GetCachedSize(), target, stream);
  }

  // string units = 5;
  if (!this->_internal_units().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_units().data(), static_cast<int>(this->_internal_units().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Vector32.units");
    target = stream->WriteStringMaybeAliased(
        5, this->_internal_units(), target);
  }

  // string comment = 6;
  if (!this->_internal_comment().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Vector32.comment");
    target = stream->WriteStringMaybeAliased(
        6, this->_internal_comment(), target);
  }

  // uint64 offset = 9;
  if (this->_internal_offset() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(9, this->_internal_offset(), target);
  }

  // repeated float values = 10 [packed = true];
  if (this->_internal_values_size() > 0) {
    target = stream->WriteFixedPacked(10, _internal_values(), target);
  }

  // repeated uint32 size_hint = 11 [packed = true];
  {
    int byte_size = _size_hint_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          11, _internal_size_hint(), byte_size, target);
    }
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.Vector32)
  return target;
}

size_t Vector32::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.Vector32)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated float values = 10 [packed = true];
  {
    unsigned int count = static_cast<unsigned int>(this->_internal_values_size());
    size_t data_size = 4UL * count;
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    total_size += data_size;
  }

  // repeated uint32 size_hint = 11 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->size_hint_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _size_hint_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // string name = 1;
  if (!this->_internal_name().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_name());
  }

  // string units = 5;
  if (!this->_internal_units().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_units());
  }

  // string comment = 6;
  if (!this->_internal_comment().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_comment());
  }

  // .Messages.Revision revision = 4;
  if (this->_internal_has_revision()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *revision_);
  }

  // uint32 components = 2;
  if (this->_internal_components() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_components());
  }

  // bool interleaved = 3;
  if (this->_internal_interleaved() != 0) {
    total_size += 1 + 1;
  }

  // uint64 offset = 9;
  if (this->_internal_offset() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_offset());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Vector32::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    Vector32::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Vector32::GetClassData() const { return &_class_data_; }

void Vector32::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<Vector32 *>(to)->MergeFrom(
      static_cast<const Vector32 &>(from));
}


void Vector32::MergeFrom(const Vector32& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.Vector32)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  values_.MergeFrom(from.values_);
  size_hint_.MergeFrom(from.size_hint_);
  if (!from._internal_name().empty()) {
    _internal_set_name(from._internal_name());
  }
  if (!from._internal_units().empty()) {
    _internal_set_units(from._internal_units());
  }
  if (!from._internal_comment().empty()) {
    _internal_set_comment(from._internal_comment());
  }
  if (from._internal_has_revision()) {
    _internal_mutable_revision()->::Messages::Revision::MergeFrom(from._internal_revision());
  }
  if (from._internal_components() != 0) {
    _internal_set_components(from._internal_components());
  }
  if (from._internal_interleaved() != 0) {
    _internal_set_interleaved(from._internal_interleaved());
  }
  if (from._internal_offset() != 0) {
    _internal_set_offset(from._internal_offset());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void Vector32::CopyFrom(const Vector32& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.Vector32)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Vector32::IsInitialized() const {
  return true;
}

void Vector32::InternalSwap(Vector32* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  values_.InternalSwap(&other->values_);
  size_hint_.InternalSwap(&other->size_hint_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &name_, lhs_arena,
      &other->name_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &units_, lhs_arena,
      &other->units_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &comment_, lhs_arena,
      &other->comment_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Vector32, offset_)
      + sizeof(Vector32::offset_)
      - PROTOBUF_FIELD_OFFSET(Vector32, revision_)>(
          reinterpret_cast<char*>(&revision_),
          reinterpret_cast<char*>(&other->revision_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Vector32::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[4]);
}

// ===================================================================

class Vector64::_Internal {
 public:
  static const ::Messages::Revision& revision(const Vector64* msg);
};

const ::Messages::Revision&
Vector64::_Internal::revision(const Vector64* msg) {
  return *msg->revision_;
}
Vector64::Vector64(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  values_(arena),
  size_hint_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.Vector64)
}
Vector64::Vector64(const Vector64& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      values_(from.values_),
      size_hint_(from.size_hint_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    name_.Set(from._internal_name(), 
      GetArenaForAllocation());
  }
  units_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    units_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_units().empty()) {
    units_.Set(from._internal_units(), 
      GetArenaForAllocation());
  }
  comment_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    comment_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_comment().empty()) {
    comment_.Set(from._internal_comment(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_revision()) {
    revision_ = new ::Messages::Revision(*from.revision_);
  } else {
    revision_ = nullptr;
  }
  ::memcpy(&components_, &from.components_,
    static_cast<size_t>(reinterpret_cast<char*>(&offset_) -
    reinterpret_cast<char*>(&components_)) + sizeof(offset_));
  // @@protoc_insertion_point(copy_constructor:Messages.Vector64)
}

inline void Vector64::SharedCtor() {
name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
units_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  units_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
comment_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  comment_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&revision_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&offset_) -
    reinterpret_cast<char*>(&revision_)) + sizeof(offset_));
}

Vector64::~Vector64() {
  // @@protoc_insertion_point(destructor:Messages.Vector64)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Vector64::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  name_.Destroy();
  units_.Destroy();
  comment_.Destroy();
  if (this != internal_default_instance()) delete revision_;
}

void Vector64::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void Vector64::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.Vector64)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  values_.Clear();
  size_hint_.Clear();
  name_.ClearToEmpty();
  units_.ClearToEmpty();
  comment_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && revision_ != nullptr) {
    delete revision_;
  }
  revision_ = nullptr;
  ::memset(&components_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&offset_) -
      reinterpret_cast<char*>(&components_)) + sizeof(offset_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Vector64::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string name = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Vector64.name"));
        } else
          goto handle_unusual;
        continue;
      // uint32 components = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
          components_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // bool interleaved = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
          interleaved_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .Messages.Revision revision = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_revision(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // string units = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
          auto str = _internal_mutable_units();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Vector64.units"));
        } else
          goto handle_unusual;
        continue;
      // string comment = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
          auto str = _internal_mutable_comment();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Vector64.comment"));
        } else
          goto handle_unusual;
        continue;
      // uint64 offset = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
          offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated double values = 10 [packed = true];
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_values(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 81) {
          _internal_add_values(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // repeated uint32 size_hint = 11 [packed = true];
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_size_hint(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 88) {
          _internal_add_size_hint(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* Vector64::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.Vector64)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string name = 1;
  if (!this->_internal_name().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Vector64.name");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_name(), target);
  }

  // uint32 components = 2;
  if (this->_internal_components() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_components(), target);
  }

  // bool interleaved = 3;
  if (this->_internal_interleaved() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_interleaved(), target);
  }

  // .Messages.Revision revision = 4;
  if (this->_internal_has_revision()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(4, _Internal::revision(this),
        _Internal::revision(this).GetCachedSize(), target, stream);
  }

  // string units = 5;
  if (!this->_internal_units().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_units().data(), static_cast<int>(this->_internal_units().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Vector64.units");
    target = stream->WriteStringMaybeAliased(
        5, this->_internal_units(), target);
  }

  // string comment = 6;
  if (!this->_internal_comment().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_comment().data(), static_cast<int>(this->_internal_comment().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Vector64.comment");
    target = stream->WriteStringMaybeAliased(
        6, this->_internal_comment(), target);
  }

  // uint64 offset = 9;
  if (this->_internal_offset() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(9, this->_internal_offset(), target);
  }

  // repeated double values = 10 [packed = true];
  if (this->_internal_values_size() > 0) {
    target = stream->WriteFixedPacked(10, _internal_values(), target);
  }

  // repeated uint32 size_hint = 11 [packed = true];
  {
    int byte_size = _size_hint_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          11, _internal_size_hint(), byte_size, target);
    }
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.Vector64)
  return target;
}

size_t Vector64::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.Vector64)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated double values = 10 [packed = true];
  {
    unsigned int count = static_cast<unsigned int>(this->_internal_values_size());
    size_t data_size = 8UL * count;
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    total_size += data_size;
  }

  // repeated uint32 size_hint = 11 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->size_hint_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _size_hint_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // string name = 1;
  if (!this->_internal_name().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_name());
  }

  // string units = 5;
  if (!this->_internal_units().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_units());
  }

  // string comment = 6;
  if (!this->_internal_comment().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_comment());
  }

  // .Messages.Revision revision = 4;
  if (this->_internal_has_revision()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *revision_);
  }

  // uint32 components = 2;
  if (this->_internal_components() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_components());
  }

  // bool interleaved = 3;
  if (this->_internal_interleaved() != 0) {
    total_size += 1 + 1;
  }

  // uint64 offset = 9;
  if (this->_internal_offset() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_offset());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Vector64::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    Vector64::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Vector64::GetClassData() const { return &_class_data_; }

void Vector64::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<Vector64 *>(to)->MergeFrom(
      static_cast<const Vector64 &>(from));
}


void Vector64::MergeFrom(const Vector64& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.Vector64)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  values_.MergeFrom(from.values_);
  size_hint_.MergeFrom(from.size_hint_);
  if (!from._internal_name().empty()) {
    _internal_set_name(from._internal_name());
  }
  if (!from._internal_units().empty()) {
    _internal_set_units(from._internal_units());
  }
  if (!from._internal_comment().empty()) {
    _internal_set_comment(from._internal_comment());
  }
  if (from._internal_has_revision()) {
    _internal_mutable_revision()->::Messages::Revision::MergeFrom(from._internal_revision());
  }
  if (from._internal_components() != 0) {
    _internal_set_components(from._internal_components());
  }
  if (from._internal_interleaved() != 0) {
    _internal_set_interleaved(from._internal_interleaved());
  }
  if (from._internal_offset() != 0) {
    _internal_set_offset(from._internal_offset());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void Vector64::CopyFrom(const Vector64& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.Vector64)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Vector64::IsInitialized() const {
  return true;
}

void Vector64::InternalSwap(Vector64* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  values_.InternalSwap(&other->values_);
  size_hint_.InternalSwap(&other->size_hint_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &name_, lhs_arena,
      &other->name_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &units_, lhs_arena,
      &other->units_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &comment_, lhs_arena,
      &other->comment_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Vector64, offset_)
      + sizeof(Vector64::offset_)
      - PROTOBUF_FIELD_OFFSET(Vector64, revision_)>(
          reinterpret_cast<char*>(&revision_),
          reinterpret_cast<char*>(&other->revision_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Vector64::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[5]);
}

// ===================================================================

class SparseMatrix::_Internal {
 public:
  static const ::Messages::Extrema& bounds(const SparseMatrix* msg);
};

const ::Messages::Extrema&
SparseMatrix::_Internal::bounds(const SparseMatrix* msg) {
  return *msg->bounds_;
}
SparseMatrix::SparseMatrix(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  size_hint_(arena),
  indices_(arena),
  values_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.SparseMatrix)
}
SparseMatrix::SparseMatrix(const SparseMatrix& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      size_hint_(from.size_hint_),
      indices_(from.indices_),
      values_(from.values_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    name_.Set(from._internal_name(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_bounds()) {
    bounds_ = new ::Messages::Extrema(*from.bounds_);
  } else {
    bounds_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:Messages.SparseMatrix)
}

inline void SparseMatrix::SharedCtor() {
name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
bounds_ = nullptr;
}

SparseMatrix::~SparseMatrix() {
  // @@protoc_insertion_point(destructor:Messages.SparseMatrix)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void SparseMatrix::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  name_.Destroy();
  if (this != internal_default_instance()) delete bounds_;
}

void SparseMatrix::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void SparseMatrix::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.SparseMatrix)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  size_hint_.Clear();
  indices_.Clear();
  values_.Clear();
  name_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && bounds_ != nullptr) {
    delete bounds_;
  }
  bounds_ = nullptr;
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* SparseMatrix::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string name = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.SparseMatrix.name"));
        } else
          goto handle_unusual;
        continue;
      // repeated uint32 size_hint = 2 [packed = true];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_size_hint(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 16) {
          _internal_add_size_hint(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated uint32 indices = 3 [packed = true];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_indices(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 24) {
          _internal_add_indices(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated double values = 4 [packed = true];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_values(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 33) {
          _internal_add_values(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // .Messages.Extrema bounds = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
          ptr = ctx->ParseMessage(_internal_mutable_bounds(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* SparseMatrix::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.SparseMatrix)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string name = 1;
  if (!this->_internal_name().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.SparseMatrix.name");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_name(), target);
  }

  // repeated uint32 size_hint = 2 [packed = true];
  {
    int byte_size = _size_hint_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          2, _internal_size_hint(), byte_size, target);
    }
  }

  // repeated uint32 indices = 3 [packed = true];
  {
    int byte_size = _indices_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          3, _internal_indices(), byte_size, target);
    }
  }

  // repeated double values = 4 [packed = true];
  if (this->_internal_values_size() > 0) {
    target = stream->WriteFixedPacked(4, _internal_values(), target);
  }

  // .Messages.Extrema bounds = 5;
  if (this->_internal_has_bounds()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(5, _Internal::bounds(this),
        _Internal::bounds(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.SparseMatrix)
  return target;
}

size_t SparseMatrix::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.SparseMatrix)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated uint32 size_hint = 2 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->size_hint_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _size_hint_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // repeated uint32 indices = 3 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->indices_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _indices_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // repeated double values = 4 [packed = true];
  {
    unsigned int count = static_cast<unsigned int>(this->_internal_values_size());
    size_t data_size = 8UL * count;
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    total_size += data_size;
  }

  // string name = 1;
  if (!this->_internal_name().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_name());
  }

  // .Messages.Extrema bounds = 5;
  if (this->_internal_has_bounds()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *bounds_);
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData SparseMatrix::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    SparseMatrix::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*SparseMatrix::GetClassData() const { return &_class_data_; }

void SparseMatrix::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<SparseMatrix *>(to)->MergeFrom(
      static_cast<const SparseMatrix &>(from));
}


void SparseMatrix::MergeFrom(const SparseMatrix& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.SparseMatrix)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  size_hint_.MergeFrom(from.size_hint_);
  indices_.MergeFrom(from.indices_);
  values_.MergeFrom(from.values_);
  if (!from._internal_name().empty()) {
    _internal_set_name(from._internal_name());
  }
  if (from._internal_has_bounds()) {
    _internal_mutable_bounds()->::Messages::Extrema::MergeFrom(from._internal_bounds());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void SparseMatrix::CopyFrom(const SparseMatrix& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.SparseMatrix)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool SparseMatrix::IsInitialized() const {
  return true;
}

void SparseMatrix::InternalSwap(SparseMatrix* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  size_hint_.InternalSwap(&other->size_hint_);
  indices_.InternalSwap(&other->indices_);
  values_.InternalSwap(&other->values_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &name_, lhs_arena,
      &other->name_, rhs_arena
  );
  swap(bounds_, other->bounds_);
}

::PROTOBUF_NAMESPACE_ID::Metadata SparseMatrix::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[6]);
}

// ===================================================================

class Rule::_Internal {
 public:
};

Rule::Rule(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  algorithms_(arena),
  failed_nodes_(arena),
  failed_values_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.Rule)
}
Rule::Rule(const Rule& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      algorithms_(from.algorithms_),
      failed_nodes_(from.failed_nodes_),
      failed_values_(from.failed_values_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  pk_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    pk_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_pk().empty()) {
    pk_.Set(from._internal_pk(), 
      GetArenaForAllocation());
  }
  ::memcpy(&value_, &from.value_,
    static_cast<size_t>(reinterpret_cast<char*>(&op_) -
    reinterpret_cast<char*>(&value_)) + sizeof(op_));
  // @@protoc_insertion_point(copy_constructor:Messages.Rule)
}

inline void Rule::SharedCtor() {
pk_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  pk_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&value_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&op_) -
    reinterpret_cast<char*>(&value_)) + sizeof(op_));
}

Rule::~Rule() {
  // @@protoc_insertion_point(destructor:Messages.Rule)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Rule::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  pk_.Destroy();
}

void Rule::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void Rule::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.Rule)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  algorithms_.Clear();
  failed_nodes_.Clear();
  failed_values_.Clear();
  pk_.ClearToEmpty();
  ::memset(&value_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&op_) -
      reinterpret_cast<char*>(&value_)) + sizeof(op_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Rule::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string pk = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_pk();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Rule.pk"));
        } else
          goto handle_unusual;
        continue;
      // uint32 op = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
          op_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // double value = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 25)) {
          value_ = ::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr);
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // repeated string algorithms = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_algorithms();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, "Messages.Rule.algorithms"));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(ptr));
        } else
          goto handle_unusual;
        continue;
      // repeated uint32 failed_nodes = 5 [packed = true];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 42)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_failed_nodes(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 40) {
          _internal_add_failed_nodes(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated double failed_values = 6 [packed = true];
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 50)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_failed_values(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 49) {
          _internal_add_failed_values(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* Rule::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.Rule)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string pk = 1;
  if (!this->_internal_pk().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_pk().data(), static_cast<int>(this->_internal_pk().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Rule.pk");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_pk(), target);
  }

  // uint32 op = 2;
  if (this->_internal_op() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_op(), target);
  }

  // double value = 3;
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_value = this->_internal_value();
  uint64_t raw_value;
  memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
  if (raw_value != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteDoubleToArray(3, this->_internal_value(), target);
  }

  // repeated string algorithms = 4;
  for (int i = 0, n = this->_internal_algorithms_size(); i < n; i++) {
    const auto& s = this->_internal_algorithms(i);
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      s.data(), static_cast<int>(s.length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Rule.algorithms");
    target = stream->WriteString(4, s, target);
  }

  // repeated uint32 failed_nodes = 5 [packed = true];
  {
    int byte_size = _failed_nodes_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          5, _internal_failed_nodes(), byte_size, target);
    }
  }

  // repeated double failed_values = 6 [packed = true];
  if (this->_internal_failed_values_size() > 0) {
    target = stream->WriteFixedPacked(6, _internal_failed_values(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.Rule)
  return target;
}

size_t Rule::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.Rule)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated string algorithms = 4;
  total_size += 1 *
      ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(algorithms_.size());
  for (int i = 0, n = algorithms_.size(); i < n; i++) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
      algorithms_.Get(i));
  }

  // repeated uint32 failed_nodes = 5 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->failed_nodes_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _failed_nodes_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // repeated double failed_values = 6 [packed = true];
  {
    unsigned int count = static_cast<unsigned int>(this->_internal_failed_values_size());
    size_t data_size = 8UL * count;
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    total_size += data_size;
  }

  // string pk = 1;
  if (!this->_internal_pk().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_pk());
  }

  // double value = 3;
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_value = this->_internal_value();
  uint64_t raw_value;
  memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
  if (raw_value != 0) {
    total_size += 1 + 8;
  }

  // uint32 op = 2;
  if (this->_internal_op() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_op());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Rule::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    Rule::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Rule::GetClassData() const { return &_class_data_; }

void Rule::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<Rule *>(to)->MergeFrom(
      static_cast<const Rule &>(from));
}


void Rule::MergeFrom(const Rule& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.Rule)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  algorithms_.MergeFrom(from.algorithms_);
  failed_nodes_.MergeFrom(from.failed_nodes_);
  failed_values_.MergeFrom(from.failed_values_);
  if (!from._internal_pk().empty()) {
    _internal_set_pk(from._internal_pk());
  }
  static_assert(sizeof(uint64_t) == sizeof(double), "Code assumes uint64_t and double are the same size.");
  double tmp_value = from._internal_value();
  uint64_t raw_value;
  memcpy(&raw_value, &tmp_value, sizeof(tmp_value));
  if (raw_value != 0) {
    _internal_set_value(from._internal_value());
  }
  if (from._internal_op() != 0) {
    _internal_set_op(from._internal_op());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void Rule::CopyFrom(const Rule& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.Rule)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Rule::IsInitialized() const {
  return true;
}

void Rule::InternalSwap(Rule* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  algorithms_.InternalSwap(&other->algorithms_);
  failed_nodes_.InternalSwap(&other->failed_nodes_);
  failed_values_.InternalSwap(&other->failed_values_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &pk_, lhs_arena,
      &other->pk_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Rule, op_)
      + sizeof(Rule::op_)
      - PROTOBUF_FIELD_OFFSET(Rule, value_)>(
          reinterpret_cast<char*>(&value_),
          reinterpret_cast<char*>(&other->value_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Rule::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[7]);
}

// ===================================================================

class Record64::_Internal {
 public:
  static const ::Messages::Revision& revision(const Record64* msg);
};

const ::Messages::Revision&
Record64::_Internal::revision(const Record64* msg) {
  return *msg->revision_;
}
Record64::Record64(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  requirements_(arena),
  data_(arena),
  matrix_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.Record64)
}
Record64::Record64(const Record64& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      requirements_(from.requirements_),
      data_(from.data_),
      matrix_(from.matrix_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    name_.Set(from._internal_name(), 
      GetArenaForAllocation());
  }
  owner_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    owner_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_owner().empty()) {
    owner_.Set(from._internal_owner(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_revision()) {
    revision_ = new ::Messages::Revision(*from.revision_);
  } else {
    revision_ = nullptr;
  }
  length_units_ = from.length_units_;
  // @@protoc_insertion_point(copy_constructor:Messages.Record64)
}

inline void Record64::SharedCtor() {
name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
owner_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  owner_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&revision_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&length_units_) -
    reinterpret_cast<char*>(&revision_)) + sizeof(length_units_));
}

Record64::~Record64() {
  // @@protoc_insertion_point(destructor:Messages.Record64)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Record64::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  name_.Destroy();
  owner_.Destroy();
  if (this != internal_default_instance()) delete revision_;
}

void Record64::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void Record64::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.Record64)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  requirements_.Clear();
  data_.Clear();
  matrix_.Clear();
  name_.ClearToEmpty();
  owner_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && revision_ != nullptr) {
    delete revision_;
  }
  revision_ = nullptr;
  length_units_ = 0u;
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Record64::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string name = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Record64.name"));
        } else
          goto handle_unusual;
        continue;
      // string owner = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_owner();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.Record64.owner"));
        } else
          goto handle_unusual;
        continue;
      // .Messages.Revision revision = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_revision(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // uint32 length_units = 8;
      case 8:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 64)) {
          length_units_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated .Messages.Rule requirements = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 74)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_requirements(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<74>(ptr));
        } else
          goto handle_unusual;
        continue;
      // repeated .Messages.Vector64 data = 10;
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_data(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<82>(ptr));
        } else
          goto handle_unusual;
        continue;
      // repeated .Messages.SparseMatrix matrix = 11;
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_matrix(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<90>(ptr));
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* Record64::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.Record64)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string name = 1;
  if (!this->_internal_name().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Record64.name");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_name(), target);
  }

  // string owner = 2;
  if (!this->_internal_owner().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_owner().data(), static_cast<int>(this->_internal_owner().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.Record64.owner");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_owner(), target);
  }

  // .Messages.Revision revision = 3;
  if (this->_internal_has_revision()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(3, _Internal::revision(this),
        _Internal::revision(this).GetCachedSize(), target, stream);
  }

  // uint32 length_units = 8;
  if (this->_internal_length_units() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(8, this->_internal_length_units(), target);
  }

  // repeated .Messages.Rule requirements = 9;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_requirements_size()); i < n; i++) {
    const auto& repfield = this->_internal_requirements(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(9, repfield, repfield.GetCachedSize(), target, stream);
  }

  // repeated .Messages.Vector64 data = 10;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_data_size()); i < n; i++) {
    const auto& repfield = this->_internal_data(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(10, repfield, repfield.GetCachedSize(), target, stream);
  }

  // repeated .Messages.SparseMatrix matrix = 11;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_matrix_size()); i < n; i++) {
    const auto& repfield = this->_internal_matrix(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(11, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.Record64)
  return target;
}

size_t Record64::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.Record64)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated .Messages.Rule requirements = 9;
  total_size += 1UL * this->_internal_requirements_size();
  for (const auto& msg : this->requirements_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // repeated .Messages.Vector64 data = 10;
  total_size += 1UL * this->_internal_data_size();
  for (const auto& msg : this->data_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // repeated .Messages.SparseMatrix matrix = 11;
  total_size += 1UL * this->_internal_matrix_size();
  for (const auto& msg : this->matrix_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // string name = 1;
  if (!this->_internal_name().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_name());
  }

  // string owner = 2;
  if (!this->_internal_owner().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_owner());
  }

  // .Messages.Revision revision = 3;
  if (this->_internal_has_revision()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *revision_);
  }

  // uint32 length_units = 8;
  if (this->_internal_length_units() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_length_units());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Record64::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    Record64::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Record64::GetClassData() const { return &_class_data_; }

void Record64::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<Record64 *>(to)->MergeFrom(
      static_cast<const Record64 &>(from));
}


void Record64::MergeFrom(const Record64& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.Record64)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  requirements_.MergeFrom(from.requirements_);
  data_.MergeFrom(from.data_);
  matrix_.MergeFrom(from.matrix_);
  if (!from._internal_name().empty()) {
    _internal_set_name(from._internal_name());
  }
  if (!from._internal_owner().empty()) {
    _internal_set_owner(from._internal_owner());
  }
  if (from._internal_has_revision()) {
    _internal_mutable_revision()->::Messages::Revision::MergeFrom(from._internal_revision());
  }
  if (from._internal_length_units() != 0) {
    _internal_set_length_units(from._internal_length_units());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void Record64::CopyFrom(const Record64& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.Record64)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Record64::IsInitialized() const {
  return true;
}

void Record64::InternalSwap(Record64* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  requirements_.InternalSwap(&other->requirements_);
  data_.InternalSwap(&other->data_);
  matrix_.InternalSwap(&other->matrix_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &name_, lhs_arena,
      &other->name_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &owner_, lhs_arena,
      &other->owner_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Record64, length_units_)
      + sizeof(Record64::length_units_)
      - PROTOBUF_FIELD_OFFSET(Record64, revision_)>(
          reinterpret_cast<char*>(&revision_),
          reinterpret_cast<char*>(&other->revision_));
}

::PROTOBUF_NAMESPACE_ID::Metadata Record64::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[8]);
}

// ===================================================================

class UIndices::_Internal {
 public:
  static const ::Messages::Revision& revision(const UIndices* msg);
};

const ::Messages::Revision&
UIndices::_Internal::revision(const UIndices* msg) {
  return *msg->revision_;
}
UIndices::UIndices(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  values_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.UIndices)
}
UIndices::UIndices(const UIndices& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      values_(from.values_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  name_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
    name_.Set("", GetArenaForAllocation());
  #endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_name().empty()) {
    name_.Set(from._internal_name(), 
      GetArenaForAllocation());
  }
  if (from._internal_has_revision()) {
    revision_ = new ::Messages::Revision(*from.revision_);
  } else {
    revision_ = nullptr;
  }
  ::memcpy(&components_, &from.components_,
    static_cast<size_t>(reinterpret_cast<char*>(&offset_) -
    reinterpret_cast<char*>(&components_)) + sizeof(offset_));
  // @@protoc_insertion_point(copy_constructor:Messages.UIndices)
}

inline void UIndices::SharedCtor() {
name_.InitDefault();
#ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
  name_.Set("", GetArenaForAllocation());
#endif // PROTOBUF_FORCE_COPY_DEFAULT_STRING
::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
    reinterpret_cast<char*>(&revision_) - reinterpret_cast<char*>(this)),
    0, static_cast<size_t>(reinterpret_cast<char*>(&offset_) -
    reinterpret_cast<char*>(&revision_)) + sizeof(offset_));
}

UIndices::~UIndices() {
  // @@protoc_insertion_point(destructor:Messages.UIndices)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void UIndices::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
  name_.Destroy();
  if (this != internal_default_instance()) delete revision_;
}

void UIndices::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void UIndices::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.UIndices)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  values_.Clear();
  name_.ClearToEmpty();
  if (GetArenaForAllocation() == nullptr && revision_ != nullptr) {
    delete revision_;
  }
  revision_ = nullptr;
  ::memset(&components_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&offset_) -
      reinterpret_cast<char*>(&components_)) + sizeof(offset_));
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* UIndices::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // string name = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_name();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, "Messages.UIndices.name"));
        } else
          goto handle_unusual;
        continue;
      // uint32 components = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 16)) {
          components_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // bool interleaved = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 24)) {
          interleaved_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // .Messages.Revision revision = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_revision(), ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // uint64 offset = 9;
      case 9:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 72)) {
          offset_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated uint32 values = 10 [packed = true];
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_values(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 80) {
          _internal_add_values(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* UIndices::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.UIndices)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string name = 1;
  if (!this->_internal_name().empty()) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_name().data(), static_cast<int>(this->_internal_name().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "Messages.UIndices.name");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_name(), target);
  }

  // uint32 components = 2;
  if (this->_internal_components() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt32ToArray(2, this->_internal_components(), target);
  }

  // bool interleaved = 3;
  if (this->_internal_interleaved() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteBoolToArray(3, this->_internal_interleaved(), target);
  }

  // .Messages.Revision revision = 4;
  if (this->_internal_has_revision()) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(4, _Internal::revision(this),
        _Internal::revision(this).GetCachedSize(), target, stream);
  }

  // uint64 offset = 9;
  if (this->_internal_offset() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteUInt64ToArray(9, this->_internal_offset(), target);
  }

  // repeated uint32 values = 10 [packed = true];
  {
    int byte_size = _values_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          10, _internal_values(), byte_size, target);
    }
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.UIndices)
  return target;
}

size_t UIndices::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.UIndices)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated uint32 values = 10 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->values_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _values_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // string name = 1;
  if (!this->_internal_name().empty()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_name());
  }

  // .Messages.Revision revision = 4;
  if (this->_internal_has_revision()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *revision_);
  }

  // uint32 components = 2;
  if (this->_internal_components() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt32SizePlusOne(this->_internal_components());
  }

  // bool interleaved = 3;
  if (this->_internal_interleaved() != 0) {
    total_size += 1 + 1;
  }

  // uint64 offset = 9;
  if (this->_internal_offset() != 0) {
    total_size += ::_pbi::WireFormatLite::UInt64SizePlusOne(this->_internal_offset());
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData UIndices::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    UIndices::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*UIndices::GetClassData() const { return &_class_data_; }

void UIndices::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<UIndices *>(to)->MergeFrom(
      static_cast<const UIndices &>(from));
}


void UIndices::MergeFrom(const UIndices& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.UIndices)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  values_.MergeFrom(from.values_);
  if (!from._internal_name().empty()) {
    _internal_set_name(from._internal_name());
  }
  if (from._internal_has_revision()) {
    _internal_mutable_revision()->::Messages::Revision::MergeFrom(from._internal_revision());
  }
  if (from._internal_components() != 0) {
    _internal_set_components(from._internal_components());
  }
  if (from._internal_interleaved() != 0) {
    _internal_set_interleaved(from._internal_interleaved());
  }
  if (from._internal_offset() != 0) {
    _internal_set_offset(from._internal_offset());
  }
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void UIndices::CopyFrom(const UIndices& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.UIndices)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool UIndices::IsInitialized() const {
  return true;
}

void UIndices::InternalSwap(UIndices* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  values_.InternalSwap(&other->values_);
  ::PROTOBUF_NAMESPACE_ID::internal::ArenaStringPtr::InternalSwap(
      &name_, lhs_arena,
      &other->name_, rhs_arena
  );
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(UIndices, offset_)
      + sizeof(UIndices::offset_)
      - PROTOBUF_FIELD_OFFSET(UIndices, revision_)>(
          reinterpret_cast<char*>(&revision_),
          reinterpret_cast<char*>(&other->revision_));
}

::PROTOBUF_NAMESPACE_ID::Metadata UIndices::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[9]);
}

// ===================================================================

class Elements::_Internal {
 public:
};

Elements::Elements(::PROTOBUF_NAMESPACE_ID::Arena* arena,
                         bool is_message_owned)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena, is_message_owned),
  element_indices_(arena),
  element_types_(arena),
  element_ids_(arena),
  node_indices_(arena),
  element_centers_(arena),
  element_measures_(arena) {
  SharedCtor();
  // @@protoc_insertion_point(arena_constructor:Messages.Elements)
}
Elements::Elements(const Elements& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      element_indices_(from.element_indices_),
      element_types_(from.element_types_),
      element_ids_(from.element_ids_),
      node_indices_(from.node_indices_),
      element_centers_(from.element_centers_),
      element_measures_(from.element_measures_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:Messages.Elements)
}

inline void Elements::SharedCtor() {
}

Elements::~Elements() {
  // @@protoc_insertion_point(destructor:Messages.Elements)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Elements::SharedDtor() {
  GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
}

void Elements::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}

void Elements::Clear() {
// @@protoc_insertion_point(message_clear_start:Messages.Elements)
  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  element_indices_.Clear();
  element_types_.Clear();
  element_ids_.Clear();
  node_indices_.Clear();
  element_centers_.Clear();
  element_measures_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* Elements::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  while (!ctx->Done(&ptr)) {
    uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // repeated uint32 element_indices = 1 [packed = true];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 10)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_element_indices(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 8) {
          _internal_add_element_indices(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated uint32 element_types = 2 [packed = true];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 18)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_element_types(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 16) {
          _internal_add_element_types(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated int32 element_ids = 3 [packed = true];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 26)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedInt32Parser(_internal_mutable_element_ids(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 24) {
          _internal_add_element_ids(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated uint32 node_indices = 4 [packed = true];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 34)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedUInt32Parser(_internal_mutable_node_indices(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 32) {
          _internal_add_node_indices(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else
          goto handle_unusual;
        continue;
      // repeated double element_centers = 10 [packed = true];
      case 10:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 82)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_element_centers(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 81) {
          _internal_add_element_centers(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      // repeated double element_measures = 11 [packed = true];
      case 11:
        if (PROTOBUF_PREDICT_TRUE(static_cast<uint8_t>(tag) == 90)) {
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::PackedDoubleParser(_internal_mutable_element_measures(), ptr, ctx);
          CHK_(ptr);
        } else if (static_cast<uint8_t>(tag) == 89) {
          _internal_add_element_measures(::PROTOBUF_NAMESPACE_ID::internal::UnalignedLoad<double>(ptr));
          ptr += sizeof(double);
        } else
          goto handle_unusual;
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

uint8_t* Elements::_InternalSerialize(
    uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:Messages.Elements)
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated uint32 element_indices = 1 [packed = true];
  {
    int byte_size = _element_indices_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          1, _internal_element_indices(), byte_size, target);
    }
  }

  // repeated uint32 element_types = 2 [packed = true];
  {
    int byte_size = _element_types_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          2, _internal_element_types(), byte_size, target);
    }
  }

  // repeated int32 element_ids = 3 [packed = true];
  {
    int byte_size = _element_ids_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteInt32Packed(
          3, _internal_element_ids(), byte_size, target);
    }
  }

  // repeated uint32 node_indices = 4 [packed = true];
  {
    int byte_size = _node_indices_cached_byte_size_.load(std::memory_order_relaxed);
    if (byte_size > 0) {
      target = stream->WriteUInt32Packed(
          4, _internal_node_indices(), byte_size, target);
    }
  }

  // repeated double element_centers = 10 [packed = true];
  if (this->_internal_element_centers_size() > 0) {
    target = stream->WriteFixedPacked(10, _internal_element_centers(), target);
  }

  // repeated double element_measures = 11 [packed = true];
  if (this->_internal_element_measures_size() > 0) {
    target = stream->WriteFixedPacked(11, _internal_element_measures(), target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = ::_pbi::WireFormat::InternalSerializeUnknownFieldsToArray(
        _internal_metadata_.unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(::PROTOBUF_NAMESPACE_ID::UnknownFieldSet::default_instance), target, stream);
  }
  // @@protoc_insertion_point(serialize_to_array_end:Messages.Elements)
  return target;
}

size_t Elements::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:Messages.Elements)
  size_t total_size = 0;

  uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // repeated uint32 element_indices = 1 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->element_indices_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _element_indices_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // repeated uint32 element_types = 2 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->element_types_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _element_types_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // repeated int32 element_ids = 3 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      Int32Size(this->element_ids_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _element_ids_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // repeated uint32 node_indices = 4 [packed = true];
  {
    size_t data_size = ::_pbi::WireFormatLite::
      UInt32Size(this->node_indices_);
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    int cached_size = ::_pbi::ToCachedSize(data_size);
    _node_indices_cached_byte_size_.store(cached_size,
                                    std::memory_order_relaxed);
    total_size += data_size;
  }

  // repeated double element_centers = 10 [packed = true];
  {
    unsigned int count = static_cast<unsigned int>(this->_internal_element_centers_size());
    size_t data_size = 8UL * count;
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    total_size += data_size;
  }

  // repeated double element_measures = 11 [packed = true];
  {
    unsigned int count = static_cast<unsigned int>(this->_internal_element_measures_size());
    size_t data_size = 8UL * count;
    if (data_size > 0) {
      total_size += 1 +
        ::_pbi::WireFormatLite::Int32Size(static_cast<int32_t>(data_size));
    }
    total_size += data_size;
  }

  return MaybeComputeUnknownFieldsSize(total_size, &_cached_size_);
}

const ::PROTOBUF_NAMESPACE_ID::Message::ClassData Elements::_class_data_ = {
    ::PROTOBUF_NAMESPACE_ID::Message::CopyWithSizeCheck,
    Elements::MergeImpl
};
const ::PROTOBUF_NAMESPACE_ID::Message::ClassData*Elements::GetClassData() const { return &_class_data_; }

void Elements::MergeImpl(::PROTOBUF_NAMESPACE_ID::Message* to,
                      const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  static_cast<Elements *>(to)->MergeFrom(
      static_cast<const Elements &>(from));
}


void Elements::MergeFrom(const Elements& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:Messages.Elements)
  GOOGLE_DCHECK_NE(&from, this);
  uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  element_indices_.MergeFrom(from.element_indices_);
  element_types_.MergeFrom(from.element_types_);
  element_ids_.MergeFrom(from.element_ids_);
  node_indices_.MergeFrom(from.node_indices_);
  element_centers_.MergeFrom(from.element_centers_);
  element_measures_.MergeFrom(from.element_measures_);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
}

void Elements::CopyFrom(const Elements& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:Messages.Elements)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

bool Elements::IsInitialized() const {
  return true;
}

void Elements::InternalSwap(Elements* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  element_indices_.InternalSwap(&other->element_indices_);
  element_types_.InternalSwap(&other->element_types_);
  element_ids_.InternalSwap(&other->element_ids_);
  node_indices_.InternalSwap(&other->node_indices_);
  element_centers_.InternalSwap(&other->element_centers_);
  element_measures_.InternalSwap(&other->element_measures_);
}

::PROTOBUF_NAMESPACE_ID::Metadata Elements::GetMetadata() const {
  return ::_pbi::AssignDescriptors(
      &descriptor_table_vector_2eproto_getter, &descriptor_table_vector_2eproto_once,
      file_level_metadata_vector_2eproto[10]);
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace Messages
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::Messages::File*
Arena::CreateMaybeMessage< ::Messages::File >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::File >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::DirentNode*
Arena::CreateMaybeMessage< ::Messages::DirentNode >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::DirentNode >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::Revision*
Arena::CreateMaybeMessage< ::Messages::Revision >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::Revision >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::Extrema*
Arena::CreateMaybeMessage< ::Messages::Extrema >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::Extrema >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::Vector32*
Arena::CreateMaybeMessage< ::Messages::Vector32 >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::Vector32 >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::Vector64*
Arena::CreateMaybeMessage< ::Messages::Vector64 >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::Vector64 >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::SparseMatrix*
Arena::CreateMaybeMessage< ::Messages::SparseMatrix >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::SparseMatrix >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::Rule*
Arena::CreateMaybeMessage< ::Messages::Rule >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::Rule >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::Record64*
Arena::CreateMaybeMessage< ::Messages::Record64 >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::Record64 >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::UIndices*
Arena::CreateMaybeMessage< ::Messages::UIndices >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::UIndices >(arena);
}
template<> PROTOBUF_NOINLINE ::Messages::Elements*
Arena::CreateMaybeMessage< ::Messages::Elements >(Arena* arena) {
  return Arena::CreateMessageInternal< ::Messages::Elements >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

// @@protoc_insertion_point(global_scope)
#include <google/protobuf/port_undef.inc>
