// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: keyapis/vc/v1/keyapis_vc_camera_dictionary_v1.proto

#include "keyapis/vc/v1/keyapis_vc_camera_dictionary_v1.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/io/zero_copy_stream_impl_lite.h"
// @@protoc_insertion_point(includes)

// Must be included last.
#include "google/protobuf/port_def.inc"
PROTOBUF_PRAGMA_INIT_SEG
namespace _pb = ::PROTOBUF_NAMESPACE_ID;
namespace _pbi = ::PROTOBUF_NAMESPACE_ID::internal;
namespace keyapis {
namespace vc {
namespace v1 {
template <typename>
PROTOBUF_CONSTEXPR Category::Category(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.title_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.kind_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.id_)*/ 0

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct CategoryDefaultTypeInternal {
  PROTOBUF_CONSTEXPR CategoryDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~CategoryDefaultTypeInternal() {}
  union {
    Category _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 CategoryDefaultTypeInternal _Category_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR Tariff::Tariff(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.title_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.slug_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.status_kind_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.from_at_)*/nullptr
  , /*decltype(_impl_.to_at_)*/nullptr
  , /*decltype(_impl_.id_)*/ 0
} {}
struct TariffDefaultTypeInternal {
  PROTOBUF_CONSTEXPR TariffDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~TariffDefaultTypeInternal() {}
  union {
    Tariff _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 TariffDefaultTypeInternal _Tariff_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR Role::Role(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.permissions_)*/{}
  , /*decltype(_impl_.title_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.id_)*/ 0

  , /*decltype(_impl_.is_global_)*/ false

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct RoleDefaultTypeInternal {
  PROTOBUF_CONSTEXPR RoleDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~RoleDefaultTypeInternal() {}
  union {
    Role _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 RoleDefaultTypeInternal _Role_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryCategoriesRequest::GetDictionaryCategoriesRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetDictionaryCategoriesRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryCategoriesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryCategoriesRequestDefaultTypeInternal() {}
  union {
    GetDictionaryCategoriesRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryCategoriesRequestDefaultTypeInternal _GetDictionaryCategoriesRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryCategoriesResponse_CameraCategories::GetDictionaryCategoriesResponse_CameraCategories(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.category_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct GetDictionaryCategoriesResponse_CameraCategoriesDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryCategoriesResponse_CameraCategoriesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryCategoriesResponse_CameraCategoriesDefaultTypeInternal() {}
  union {
    GetDictionaryCategoriesResponse_CameraCategories _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryCategoriesResponse_CameraCategoriesDefaultTypeInternal _GetDictionaryCategoriesResponse_CameraCategories_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryCategoriesResponse_Error::GetDictionaryCategoriesResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetDictionaryCategoriesResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryCategoriesResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryCategoriesResponse_ErrorDefaultTypeInternal() {}
  union {
    GetDictionaryCategoriesResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryCategoriesResponse_ErrorDefaultTypeInternal _GetDictionaryCategoriesResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryCategoriesResponse::GetDictionaryCategoriesResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetDictionaryCategoriesResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryCategoriesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryCategoriesResponseDefaultTypeInternal() {}
  union {
    GetDictionaryCategoriesResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryCategoriesResponseDefaultTypeInternal _GetDictionaryCategoriesResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryTariffsRequest::GetDictionaryTariffsRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetDictionaryTariffsRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryTariffsRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryTariffsRequestDefaultTypeInternal() {}
  union {
    GetDictionaryTariffsRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryTariffsRequestDefaultTypeInternal _GetDictionaryTariffsRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryTariffsResponse_CameraTariffs::GetDictionaryTariffsResponse_CameraTariffs(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.tariff_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct GetDictionaryTariffsResponse_CameraTariffsDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryTariffsResponse_CameraTariffsDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryTariffsResponse_CameraTariffsDefaultTypeInternal() {}
  union {
    GetDictionaryTariffsResponse_CameraTariffs _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryTariffsResponse_CameraTariffsDefaultTypeInternal _GetDictionaryTariffsResponse_CameraTariffs_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryTariffsResponse_Error::GetDictionaryTariffsResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetDictionaryTariffsResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryTariffsResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryTariffsResponse_ErrorDefaultTypeInternal() {}
  union {
    GetDictionaryTariffsResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryTariffsResponse_ErrorDefaultTypeInternal _GetDictionaryTariffsResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryTariffsResponse::GetDictionaryTariffsResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetDictionaryTariffsResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryTariffsResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryTariffsResponseDefaultTypeInternal() {}
  union {
    GetDictionaryTariffsResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryTariffsResponseDefaultTypeInternal _GetDictionaryTariffsResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryRolesRequest::GetDictionaryRolesRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetDictionaryRolesRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryRolesRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryRolesRequestDefaultTypeInternal() {}
  union {
    GetDictionaryRolesRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryRolesRequestDefaultTypeInternal _GetDictionaryRolesRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryRolesResponse_Roles::GetDictionaryRolesResponse_Roles(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.roles_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}} {}
struct GetDictionaryRolesResponse_RolesDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryRolesResponse_RolesDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryRolesResponse_RolesDefaultTypeInternal() {}
  union {
    GetDictionaryRolesResponse_Roles _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryRolesResponse_RolesDefaultTypeInternal _GetDictionaryRolesResponse_Roles_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryRolesResponse_Error::GetDictionaryRolesResponse_Error(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reason_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetDictionaryRolesResponse_ErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryRolesResponse_ErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryRolesResponse_ErrorDefaultTypeInternal() {}
  union {
    GetDictionaryRolesResponse_Error _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryRolesResponse_ErrorDefaultTypeInternal _GetDictionaryRolesResponse_Error_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetDictionaryRolesResponse::GetDictionaryRolesResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetDictionaryRolesResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetDictionaryRolesResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetDictionaryRolesResponseDefaultTypeInternal() {}
  union {
    GetDictionaryRolesResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetDictionaryRolesResponseDefaultTypeInternal _GetDictionaryRolesResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR VcDictionaryError_Reason::VcDictionaryError_Reason(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.message_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct VcDictionaryError_ReasonDefaultTypeInternal {
  PROTOBUF_CONSTEXPR VcDictionaryError_ReasonDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~VcDictionaryError_ReasonDefaultTypeInternal() {}
  union {
    VcDictionaryError_Reason _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VcDictionaryError_ReasonDefaultTypeInternal _VcDictionaryError_Reason_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR VcDictionaryError::VcDictionaryError(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.reasons_)*/{}
  , /*decltype(_impl_.service_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.product_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.message_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_._cached_size_)*/{}} {}
struct VcDictionaryErrorDefaultTypeInternal {
  PROTOBUF_CONSTEXPR VcDictionaryErrorDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~VcDictionaryErrorDefaultTypeInternal() {}
  union {
    VcDictionaryError _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 VcDictionaryErrorDefaultTypeInternal _VcDictionaryError_default_instance_;
}  // namespace v1
}  // namespace vc
}  // namespace keyapis
namespace keyapis {
namespace vc {
namespace v1 {
// ===================================================================

class Category::_Internal {
 public:
};

Category::Category(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.Category)
}
Category::Category(const Category& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  Category* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.title_) {}

    , decltype(_impl_.kind_) {}

    , decltype(_impl_.id_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.title_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.title_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_title().empty()) {
    _this->_impl_.title_.Set(from._internal_title(), _this->GetArenaForAllocation());
  }
  _impl_.kind_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.kind_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_kind().empty()) {
    _this->_impl_.kind_.Set(from._internal_kind(), _this->GetArenaForAllocation());
  }
  _this->_impl_.id_ = from._impl_.id_;
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.Category)
}

inline void Category::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.title_) {}

    , decltype(_impl_.kind_) {}

    , decltype(_impl_.id_) { 0 }

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.title_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.title_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.kind_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.kind_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

Category::~Category() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.Category)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Category::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.title_.Destroy();
  _impl_.kind_.Destroy();
}

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

void Category::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.Category)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.title_.ClearToEmpty();
  _impl_.kind_.ClearToEmpty();
  _impl_.id_ = 0;
  _internal_metadata_.Clear<std::string>();
}

const char* Category::_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) {
      // int32 id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string title = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_title();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string kind = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_kind();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_id(), target);
  }

  // string title = 2;
  if (!this->_internal_title().empty()) {
    const std::string& _s = this->_internal_title();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.Category.title");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // string kind = 3;
  if (!this->_internal_kind().empty()) {
    const std::string& _s = this->_internal_kind();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.Category.kind");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.Category)
  return target;
}

::size_t Category::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.Category)
  ::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 title = 2;
  if (!this->_internal_title().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_title());
  }

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

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_id());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Category::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const Category*>(
      &from));
}

void Category::MergeFrom(const Category& from) {
  Category* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.Category)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_title().empty()) {
    _this->_internal_set_title(from._internal_title());
  }
  if (!from._internal_kind().empty()) {
    _this->_internal_set_kind(from._internal_kind());
  }
  if (from._internal_id() != 0) {
    _this->_internal_set_id(from._internal_id());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void Category::CopyFrom(const Category& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.Category)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void Category::InternalSwap(Category* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, lhs_arena,
                                       &other->_impl_.title_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.kind_, lhs_arena,
                                       &other->_impl_.kind_, rhs_arena);

  swap(_impl_.id_, other->_impl_.id_);
}

std::string Category::GetTypeName() const {
  return "keyapis.vc.v1.Category";
}

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

class Tariff::_Internal {
 public:
  using HasBits = decltype(std::declval<Tariff>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(Tariff, _impl_._has_bits_);
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& from_at(const Tariff* msg);
  static void set_has_from_at(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& to_at(const Tariff* msg);
  static void set_has_to_at(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
};

const ::PROTOBUF_NAMESPACE_ID::Timestamp&
Tariff::_Internal::from_at(const Tariff* msg) {
  return *msg->_impl_.from_at_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
Tariff::_Internal::to_at(const Tariff* msg) {
  return *msg->_impl_.to_at_;
}
void Tariff::clear_from_at() {
  if (_impl_.from_at_ != nullptr) _impl_.from_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
void Tariff::clear_to_at() {
  if (_impl_.to_at_ != nullptr) _impl_.to_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
Tariff::Tariff(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.Tariff)
}
Tariff::Tariff(const Tariff& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  Tariff* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.title_) {}

    , decltype(_impl_.slug_) {}

    , decltype(_impl_.status_kind_) {}

    , decltype(_impl_.from_at_){nullptr}
    , decltype(_impl_.to_at_){nullptr}
    , decltype(_impl_.id_) {}
  };

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.title_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.title_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_title().empty()) {
    _this->_impl_.title_.Set(from._internal_title(), _this->GetArenaForAllocation());
  }
  _impl_.slug_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.slug_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_slug().empty()) {
    _this->_impl_.slug_.Set(from._internal_slug(), _this->GetArenaForAllocation());
  }
  _impl_.status_kind_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.status_kind_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_status_kind().empty()) {
    _this->_impl_.status_kind_.Set(from._internal_status_kind(), _this->GetArenaForAllocation());
  }
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.from_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.from_at_);
  }
  if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
    _this->_impl_.to_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.to_at_);
  }
  _this->_impl_.id_ = from._impl_.id_;
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.Tariff)
}

inline void Tariff::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.title_) {}

    , decltype(_impl_.slug_) {}

    , decltype(_impl_.status_kind_) {}

    , decltype(_impl_.from_at_){nullptr}
    , decltype(_impl_.to_at_){nullptr}
    , decltype(_impl_.id_) { 0 }

  };
  _impl_.title_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.title_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.slug_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.slug_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.status_kind_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.status_kind_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

Tariff::~Tariff() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.Tariff)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Tariff::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.title_.Destroy();
  _impl_.slug_.Destroy();
  _impl_.status_kind_.Destroy();
  if (this != internal_default_instance()) delete _impl_.from_at_;
  if (this != internal_default_instance()) delete _impl_.to_at_;
}

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

void Tariff::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.Tariff)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.title_.ClearToEmpty();
  _impl_.slug_.ClearToEmpty();
  _impl_.status_kind_.ClearToEmpty();
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      ABSL_DCHECK(_impl_.from_at_ != nullptr);
      _impl_.from_at_->Clear();
    }
    if (cached_has_bits & 0x00000002u) {
      ABSL_DCHECK(_impl_.to_at_ != nullptr);
      _impl_.to_at_->Clear();
    }
  }
  _impl_.id_ = 0;
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* Tariff::_InternalParse(const char* ptr, ::_pbi::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  while (!ctx->Done(&ptr)) {
    ::uint32_t tag;
    ptr = ::_pbi::ReadTag(ptr, &tag);
    switch (tag >> 3) {
      // int32 id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string title = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_title();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string slug = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_slug();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string status_kind = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
          auto str = _internal_mutable_status_kind();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp from_at = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
          ptr = ctx->ParseMessage(_internal_mutable_from_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp to_at = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          ptr = ctx->ParseMessage(_internal_mutable_to_at(), 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  _impl_._has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_id(), target);
  }

  // string title = 2;
  if (!this->_internal_title().empty()) {
    const std::string& _s = this->_internal_title();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.Tariff.title");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // string slug = 3;
  if (!this->_internal_slug().empty()) {
    const std::string& _s = this->_internal_slug();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.Tariff.slug");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // string status_kind = 4;
  if (!this->_internal_status_kind().empty()) {
    const std::string& _s = this->_internal_status_kind();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.Tariff.status_kind");
    target = stream->WriteStringMaybeAliased(4, _s, target);
  }

  cached_has_bits = _impl_._has_bits_[0];
  // .google.protobuf.Timestamp from_at = 5;
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(5, _Internal::from_at(this),
        _Internal::from_at(this).GetCachedSize(), target, stream);
  }

  // .google.protobuf.Timestamp to_at = 6;
  if (cached_has_bits & 0x00000002u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(6, _Internal::to_at(this),
        _Internal::to_at(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.Tariff)
  return target;
}

::size_t Tariff::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.Tariff)
  ::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 title = 2;
  if (!this->_internal_title().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_title());
  }

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

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

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    // .google.protobuf.Timestamp from_at = 5;
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.from_at_);
    }

    // .google.protobuf.Timestamp to_at = 6;
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.to_at_);
    }

  }
  // int32 id = 1;
  if (this->_internal_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_id());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Tariff::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const Tariff*>(
      &from));
}

void Tariff::MergeFrom(const Tariff& from) {
  Tariff* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.Tariff)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_title().empty()) {
    _this->_internal_set_title(from._internal_title());
  }
  if (!from._internal_slug().empty()) {
    _this->_internal_set_slug(from._internal_slug());
  }
  if (!from._internal_status_kind().empty()) {
    _this->_internal_set_status_kind(from._internal_status_kind());
  }
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      _this->_internal_mutable_from_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_from_at());
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_internal_mutable_to_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_to_at());
    }
  }
  if (from._internal_id() != 0) {
    _this->_internal_set_id(from._internal_id());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void Tariff::CopyFrom(const Tariff& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.Tariff)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void Tariff::InternalSwap(Tariff* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, lhs_arena,
                                       &other->_impl_.title_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.slug_, lhs_arena,
                                       &other->_impl_.slug_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.status_kind_, lhs_arena,
                                       &other->_impl_.status_kind_, rhs_arena);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Tariff, _impl_.id_)
      + sizeof(Tariff::_impl_.id_)
      - PROTOBUF_FIELD_OFFSET(Tariff, _impl_.from_at_)>(
          reinterpret_cast<char*>(&_impl_.from_at_),
          reinterpret_cast<char*>(&other->_impl_.from_at_));
}

std::string Tariff::GetTypeName() const {
  return "keyapis.vc.v1.Tariff";
}

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

class Role::_Internal {
 public:
};

Role::Role(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.Role)
}
Role::Role(const Role& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  Role* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.permissions_){from._impl_.permissions_}
    , decltype(_impl_.title_) {}

    , decltype(_impl_.id_) {}

    , decltype(_impl_.is_global_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.title_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.title_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_title().empty()) {
    _this->_impl_.title_.Set(from._internal_title(), _this->GetArenaForAllocation());
  }
  ::memcpy(&_impl_.id_, &from._impl_.id_,
    static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.is_global_) -
    reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.is_global_));
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.Role)
}

inline void Role::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.permissions_){arena}
    , decltype(_impl_.title_) {}

    , decltype(_impl_.id_) { 0 }

    , decltype(_impl_.is_global_) { false }

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.title_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.title_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

Role::~Role() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.Role)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void Role::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_permissions()->~RepeatedPtrField();
  _impl_.title_.Destroy();
}

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

void Role::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.Role)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_permissions()->Clear();
  _impl_.title_.ClearToEmpty();
  ::memset(&_impl_.id_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.is_global_) -
      reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.is_global_));
  _internal_metadata_.Clear<std::string>();
}

const char* Role::_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) {
      // int32 id = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _impl_.id_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // string title = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_title();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated string permissions = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          ptr -= 1;
          do {
            ptr += 1;
            auto str = _internal_add_permissions();
            ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
            CHK_(ptr);
            CHK_(::_pbi::VerifyUTF8(str, nullptr));
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<26>(ptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // bool is_global = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
          _impl_.is_global_ = ::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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_id(), target);
  }

  // string title = 2;
  if (!this->_internal_title().empty()) {
    const std::string& _s = this->_internal_title();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.Role.title");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // repeated string permissions = 3;
  for (int i = 0, n = this->_internal_permissions_size(); i < n; ++i) {
    const auto& s = this->_internal_permissions(i);
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        s.data(), static_cast<int>(s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.Role.permissions");
    target = stream->WriteString(3, s, target);
  }

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.Role)
  return target;
}

::size_t Role::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.Role)
  ::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 permissions = 3;
  total_size += 1 * ::PROTOBUF_NAMESPACE_ID::internal::FromIntSize(_internal_permissions().size());
  for (int i = 0, n = _internal_permissions().size(); i < n; ++i) {
    total_size += ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        _internal_permissions().Get(i));
  }

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

  // int32 id = 1;
  if (this->_internal_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_id());
  }

  // bool is_global = 4;
  if (this->_internal_is_global() != 0) {
    total_size += 2;
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void Role::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const Role*>(
      &from));
}

void Role::MergeFrom(const Role& from) {
  Role* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.Role)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_permissions()->MergeFrom(from._internal_permissions());
  if (!from._internal_title().empty()) {
    _this->_internal_set_title(from._internal_title());
  }
  if (from._internal_id() != 0) {
    _this->_internal_set_id(from._internal_id());
  }
  if (from._internal_is_global() != 0) {
    _this->_internal_set_is_global(from._internal_is_global());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void Role::CopyFrom(const Role& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.Role)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void Role::InternalSwap(Role* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_permissions()->InternalSwap(
      other->_internal_mutable_permissions());
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.title_, lhs_arena,
                                       &other->_impl_.title_, rhs_arena);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Role, _impl_.is_global_)
      + sizeof(Role::_impl_.is_global_)
      - PROTOBUF_FIELD_OFFSET(Role, _impl_.id_)>(
          reinterpret_cast<char*>(&_impl_.id_),
          reinterpret_cast<char*>(&other->_impl_.id_));
}

std::string Role::GetTypeName() const {
  return "keyapis.vc.v1.Role";
}

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

class GetDictionaryCategoriesRequest::_Internal {
 public:
};

GetDictionaryCategoriesRequest::GetDictionaryCategoriesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryCategoriesRequest)
}
GetDictionaryCategoriesRequest::GetDictionaryCategoriesRequest(const GetDictionaryCategoriesRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryCategoriesRequest)
}

inline void GetDictionaryCategoriesRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

GetDictionaryCategoriesRequest::~GetDictionaryCategoriesRequest() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryCategoriesRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryCategoriesRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

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

void GetDictionaryCategoriesRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryCategoriesRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryCategoriesRequest::_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);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryCategoriesRequest)
  return target;
}

::size_t GetDictionaryCategoriesRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryCategoriesRequest)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryCategoriesRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryCategoriesRequest*>(
      &from));
}

void GetDictionaryCategoriesRequest::MergeFrom(const GetDictionaryCategoriesRequest& from) {
  GetDictionaryCategoriesRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryCategoriesRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryCategoriesRequest::CopyFrom(const GetDictionaryCategoriesRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryCategoriesRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryCategoriesRequest::InternalSwap(GetDictionaryCategoriesRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
}

std::string GetDictionaryCategoriesRequest::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryCategoriesRequest";
}

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

class GetDictionaryCategoriesResponse_CameraCategories::_Internal {
 public:
};

GetDictionaryCategoriesResponse_CameraCategories::GetDictionaryCategoriesResponse_CameraCategories(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
}
GetDictionaryCategoriesResponse_CameraCategories::GetDictionaryCategoriesResponse_CameraCategories(const GetDictionaryCategoriesResponse_CameraCategories& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryCategoriesResponse_CameraCategories* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.category_){from._impl_.category_}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
}

inline void GetDictionaryCategoriesResponse_CameraCategories::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.category_){arena}
    , /*decltype(_impl_._cached_size_)*/{}
  };
}

GetDictionaryCategoriesResponse_CameraCategories::~GetDictionaryCategoriesResponse_CameraCategories() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryCategoriesResponse_CameraCategories::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_category()->~RepeatedPtrField();
}

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

void GetDictionaryCategoriesResponse_CameraCategories::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_category()->Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryCategoriesResponse_CameraCategories::_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 .keyapis.vc.v1.Category category = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_category(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetDictionaryCategoriesResponse_CameraCategories::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .keyapis.vc.v1.Category category = 1;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_category_size()); i < n; i++) {
    const auto& repfield = this->_internal_category(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
  return target;
}

::size_t GetDictionaryCategoriesResponse_CameraCategories::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
  ::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 .keyapis.vc.v1.Category category = 1;
  total_size += 1UL * this->_internal_category_size();
  for (const auto& msg : this->_internal_category()) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryCategoriesResponse_CameraCategories::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryCategoriesResponse_CameraCategories*>(
      &from));
}

void GetDictionaryCategoriesResponse_CameraCategories::MergeFrom(const GetDictionaryCategoriesResponse_CameraCategories& from) {
  GetDictionaryCategoriesResponse_CameraCategories* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_category()->MergeFrom(from._internal_category());
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryCategoriesResponse_CameraCategories::CopyFrom(const GetDictionaryCategoriesResponse_CameraCategories& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryCategoriesResponse_CameraCategories::InternalSwap(GetDictionaryCategoriesResponse_CameraCategories* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_category()->InternalSwap(other->_internal_mutable_category());
}

std::string GetDictionaryCategoriesResponse_CameraCategories::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories";
}

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

class GetDictionaryCategoriesResponse_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error, _impl_._oneof_case_);
  static const ::keyapis::vc::v1::VcDictionaryError& vc_dictionary_error(const GetDictionaryCategoriesResponse_Error* msg);
};

const ::keyapis::vc::v1::VcDictionaryError&
GetDictionaryCategoriesResponse_Error::_Internal::vc_dictionary_error(const GetDictionaryCategoriesResponse_Error* msg) {
  return *msg->_impl_.reason_.vc_dictionary_error_;
}
void GetDictionaryCategoriesResponse_Error::set_allocated_vc_dictionary_error(::keyapis::vc::v1::VcDictionaryError* vc_dictionary_error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (vc_dictionary_error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vc_dictionary_error);
    if (message_arena != submessage_arena) {
      vc_dictionary_error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, vc_dictionary_error, submessage_arena);
    }
    set_has_vc_dictionary_error();
    _impl_.reason_.vc_dictionary_error_ = vc_dictionary_error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error.vc_dictionary_error)
}
GetDictionaryCategoriesResponse_Error::GetDictionaryCategoriesResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
}
GetDictionaryCategoriesResponse_Error::GetDictionaryCategoriesResponse_Error(const GetDictionaryCategoriesResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryCategoriesResponse_Error* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kVcDictionaryError: {
      _this->_internal_mutable_vc_dictionary_error()->::keyapis::vc::v1::VcDictionaryError::MergeFrom(
          from._internal_vc_dictionary_error());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
}

inline void GetDictionaryCategoriesResponse_Error::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

GetDictionaryCategoriesResponse_Error::~GetDictionaryCategoriesResponse_Error() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryCategoriesResponse_Error::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

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

void GetDictionaryCategoriesResponse_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
  switch (reason_case()) {
    case kVcDictionaryError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.vc_dictionary_error_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


void GetDictionaryCategoriesResponse_Error::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_reason();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryCategoriesResponse_Error::_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) {
      // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_vc_dictionary_error(), 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetDictionaryCategoriesResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
  if (reason_case() == kVcDictionaryError) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::vc_dictionary_error(this),
        _Internal::vc_dictionary_error(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
  return target;
}

::size_t GetDictionaryCategoriesResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
  ::size_t total_size = 0;

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

  switch (reason_case()) {
    // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
    case kVcDictionaryError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.vc_dictionary_error_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryCategoriesResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryCategoriesResponse_Error*>(
      &from));
}

void GetDictionaryCategoriesResponse_Error::MergeFrom(const GetDictionaryCategoriesResponse_Error& from) {
  GetDictionaryCategoriesResponse_Error* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.reason_case()) {
    case kVcDictionaryError: {
      _this->_internal_mutable_vc_dictionary_error()->::keyapis::vc::v1::VcDictionaryError::MergeFrom(
          from._internal_vc_dictionary_error());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryCategoriesResponse_Error::CopyFrom(const GetDictionaryCategoriesResponse_Error& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryCategoriesResponse.Error)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryCategoriesResponse_Error::InternalSwap(GetDictionaryCategoriesResponse_Error* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetDictionaryCategoriesResponse_Error::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryCategoriesResponse.Error";
}

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

class GetDictionaryCategoriesResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::vc::v1::GetDictionaryCategoriesResponse, _impl_._oneof_case_);
  static const ::keyapis::vc::v1::GetDictionaryCategoriesResponse_CameraCategories& data(const GetDictionaryCategoriesResponse* msg);
  static const ::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error& error(const GetDictionaryCategoriesResponse* msg);
};

const ::keyapis::vc::v1::GetDictionaryCategoriesResponse_CameraCategories&
GetDictionaryCategoriesResponse::_Internal::data(const GetDictionaryCategoriesResponse* msg) {
  return *msg->_impl_.type_.data_;
}
const ::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error&
GetDictionaryCategoriesResponse::_Internal::error(const GetDictionaryCategoriesResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void GetDictionaryCategoriesResponse::set_allocated_data(::keyapis::vc::v1::GetDictionaryCategoriesResponse_CameraCategories* data) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (data) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
    if (message_arena != submessage_arena) {
      data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, data, submessage_arena);
    }
    set_has_data();
    _impl_.type_.data_ = data;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryCategoriesResponse.data)
}
void GetDictionaryCategoriesResponse::set_allocated_error(::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error* error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error);
    if (message_arena != submessage_arena) {
      error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, error, submessage_arena);
    }
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryCategoriesResponse.error)
}
GetDictionaryCategoriesResponse::GetDictionaryCategoriesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryCategoriesResponse)
}
GetDictionaryCategoriesResponse::GetDictionaryCategoriesResponse(const GetDictionaryCategoriesResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryCategoriesResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_type();
  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::vc::v1::GetDictionaryCategoriesResponse_CameraCategories::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryCategoriesResponse)
}

inline void GetDictionaryCategoriesResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_type();
}

GetDictionaryCategoriesResponse::~GetDictionaryCategoriesResponse() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryCategoriesResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryCategoriesResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_type()) {
    clear_type();
  }
}

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

void GetDictionaryCategoriesResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.vc.v1.GetDictionaryCategoriesResponse)
  switch (type_case()) {
    case kData: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.data_;
      }
      break;
    }
    case kError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.error_;
      }
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


void GetDictionaryCategoriesResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryCategoriesResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_type();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryCategoriesResponse::_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) {
      // .keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.vc.v1.GetDictionaryCategoriesResponse.Error error = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_error(), 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  switch (type_case()) {
    case kData: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, _Internal::data(this),
          _Internal::data(this).GetCachedSize(), target, stream);
      break;
    }
    case kError: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::error(this),
          _Internal::error(this).GetCachedSize(), target, stream);
      break;
    }
    default: ;
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryCategoriesResponse)
  return target;
}

::size_t GetDictionaryCategoriesResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryCategoriesResponse)
  ::size_t total_size = 0;

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

  switch (type_case()) {
    // .keyapis.vc.v1.GetDictionaryCategoriesResponse.CameraCategories data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      break;
    }
    // .keyapis.vc.v1.GetDictionaryCategoriesResponse.Error error = 2;
    case kError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.error_);
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryCategoriesResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryCategoriesResponse*>(
      &from));
}

void GetDictionaryCategoriesResponse::MergeFrom(const GetDictionaryCategoriesResponse& from) {
  GetDictionaryCategoriesResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryCategoriesResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::vc::v1::GetDictionaryCategoriesResponse_CameraCategories::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryCategoriesResponse::CopyFrom(const GetDictionaryCategoriesResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryCategoriesResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryCategoriesResponse::InternalSwap(GetDictionaryCategoriesResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetDictionaryCategoriesResponse::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryCategoriesResponse";
}

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

class GetDictionaryTariffsRequest::_Internal {
 public:
};

GetDictionaryTariffsRequest::GetDictionaryTariffsRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryTariffsRequest)
}
GetDictionaryTariffsRequest::GetDictionaryTariffsRequest(const GetDictionaryTariffsRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryTariffsRequest)
}

inline void GetDictionaryTariffsRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

GetDictionaryTariffsRequest::~GetDictionaryTariffsRequest() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryTariffsRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryTariffsRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

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

void GetDictionaryTariffsRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryTariffsRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryTariffsRequest::_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);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryTariffsRequest)
  return target;
}

::size_t GetDictionaryTariffsRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryTariffsRequest)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryTariffsRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryTariffsRequest*>(
      &from));
}

void GetDictionaryTariffsRequest::MergeFrom(const GetDictionaryTariffsRequest& from) {
  GetDictionaryTariffsRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryTariffsRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryTariffsRequest::CopyFrom(const GetDictionaryTariffsRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryTariffsRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryTariffsRequest::InternalSwap(GetDictionaryTariffsRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
}

std::string GetDictionaryTariffsRequest::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryTariffsRequest";
}

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

class GetDictionaryTariffsResponse_CameraTariffs::_Internal {
 public:
};

GetDictionaryTariffsResponse_CameraTariffs::GetDictionaryTariffsResponse_CameraTariffs(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
}
GetDictionaryTariffsResponse_CameraTariffs::GetDictionaryTariffsResponse_CameraTariffs(const GetDictionaryTariffsResponse_CameraTariffs& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryTariffsResponse_CameraTariffs* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.tariff_){from._impl_.tariff_}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
}

inline void GetDictionaryTariffsResponse_CameraTariffs::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.tariff_){arena}
    , /*decltype(_impl_._cached_size_)*/{}
  };
}

GetDictionaryTariffsResponse_CameraTariffs::~GetDictionaryTariffsResponse_CameraTariffs() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryTariffsResponse_CameraTariffs::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_tariff()->~RepeatedPtrField();
}

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

void GetDictionaryTariffsResponse_CameraTariffs::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_tariff()->Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryTariffsResponse_CameraTariffs::_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 .keyapis.vc.v1.Tariff tariff = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_tariff(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetDictionaryTariffsResponse_CameraTariffs::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .keyapis.vc.v1.Tariff tariff = 1;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_tariff_size()); i < n; i++) {
    const auto& repfield = this->_internal_tariff(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
  return target;
}

::size_t GetDictionaryTariffsResponse_CameraTariffs::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
  ::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 .keyapis.vc.v1.Tariff tariff = 1;
  total_size += 1UL * this->_internal_tariff_size();
  for (const auto& msg : this->_internal_tariff()) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryTariffsResponse_CameraTariffs::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryTariffsResponse_CameraTariffs*>(
      &from));
}

void GetDictionaryTariffsResponse_CameraTariffs::MergeFrom(const GetDictionaryTariffsResponse_CameraTariffs& from) {
  GetDictionaryTariffsResponse_CameraTariffs* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_tariff()->MergeFrom(from._internal_tariff());
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryTariffsResponse_CameraTariffs::CopyFrom(const GetDictionaryTariffsResponse_CameraTariffs& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryTariffsResponse_CameraTariffs::InternalSwap(GetDictionaryTariffsResponse_CameraTariffs* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_tariff()->InternalSwap(other->_internal_mutable_tariff());
}

std::string GetDictionaryTariffsResponse_CameraTariffs::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs";
}

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

class GetDictionaryTariffsResponse_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::vc::v1::GetDictionaryTariffsResponse_Error, _impl_._oneof_case_);
  static const ::keyapis::vc::v1::VcDictionaryError& vc_dictionary_error(const GetDictionaryTariffsResponse_Error* msg);
};

const ::keyapis::vc::v1::VcDictionaryError&
GetDictionaryTariffsResponse_Error::_Internal::vc_dictionary_error(const GetDictionaryTariffsResponse_Error* msg) {
  return *msg->_impl_.reason_.vc_dictionary_error_;
}
void GetDictionaryTariffsResponse_Error::set_allocated_vc_dictionary_error(::keyapis::vc::v1::VcDictionaryError* vc_dictionary_error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (vc_dictionary_error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vc_dictionary_error);
    if (message_arena != submessage_arena) {
      vc_dictionary_error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, vc_dictionary_error, submessage_arena);
    }
    set_has_vc_dictionary_error();
    _impl_.reason_.vc_dictionary_error_ = vc_dictionary_error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryTariffsResponse.Error.vc_dictionary_error)
}
GetDictionaryTariffsResponse_Error::GetDictionaryTariffsResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
}
GetDictionaryTariffsResponse_Error::GetDictionaryTariffsResponse_Error(const GetDictionaryTariffsResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryTariffsResponse_Error* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kVcDictionaryError: {
      _this->_internal_mutable_vc_dictionary_error()->::keyapis::vc::v1::VcDictionaryError::MergeFrom(
          from._internal_vc_dictionary_error());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
}

inline void GetDictionaryTariffsResponse_Error::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

GetDictionaryTariffsResponse_Error::~GetDictionaryTariffsResponse_Error() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryTariffsResponse_Error::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

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

void GetDictionaryTariffsResponse_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
  switch (reason_case()) {
    case kVcDictionaryError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.vc_dictionary_error_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


void GetDictionaryTariffsResponse_Error::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_reason();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryTariffsResponse_Error::_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) {
      // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_vc_dictionary_error(), 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetDictionaryTariffsResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
  if (reason_case() == kVcDictionaryError) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::vc_dictionary_error(this),
        _Internal::vc_dictionary_error(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
  return target;
}

::size_t GetDictionaryTariffsResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
  ::size_t total_size = 0;

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

  switch (reason_case()) {
    // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
    case kVcDictionaryError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.vc_dictionary_error_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryTariffsResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryTariffsResponse_Error*>(
      &from));
}

void GetDictionaryTariffsResponse_Error::MergeFrom(const GetDictionaryTariffsResponse_Error& from) {
  GetDictionaryTariffsResponse_Error* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.reason_case()) {
    case kVcDictionaryError: {
      _this->_internal_mutable_vc_dictionary_error()->::keyapis::vc::v1::VcDictionaryError::MergeFrom(
          from._internal_vc_dictionary_error());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryTariffsResponse_Error::CopyFrom(const GetDictionaryTariffsResponse_Error& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryTariffsResponse.Error)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryTariffsResponse_Error::InternalSwap(GetDictionaryTariffsResponse_Error* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetDictionaryTariffsResponse_Error::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryTariffsResponse.Error";
}

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

class GetDictionaryTariffsResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::vc::v1::GetDictionaryTariffsResponse, _impl_._oneof_case_);
  static const ::keyapis::vc::v1::GetDictionaryTariffsResponse_CameraTariffs& data(const GetDictionaryTariffsResponse* msg);
  static const ::keyapis::vc::v1::GetDictionaryTariffsResponse_Error& error(const GetDictionaryTariffsResponse* msg);
};

const ::keyapis::vc::v1::GetDictionaryTariffsResponse_CameraTariffs&
GetDictionaryTariffsResponse::_Internal::data(const GetDictionaryTariffsResponse* msg) {
  return *msg->_impl_.type_.data_;
}
const ::keyapis::vc::v1::GetDictionaryTariffsResponse_Error&
GetDictionaryTariffsResponse::_Internal::error(const GetDictionaryTariffsResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void GetDictionaryTariffsResponse::set_allocated_data(::keyapis::vc::v1::GetDictionaryTariffsResponse_CameraTariffs* data) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (data) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
    if (message_arena != submessage_arena) {
      data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, data, submessage_arena);
    }
    set_has_data();
    _impl_.type_.data_ = data;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryTariffsResponse.data)
}
void GetDictionaryTariffsResponse::set_allocated_error(::keyapis::vc::v1::GetDictionaryTariffsResponse_Error* error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error);
    if (message_arena != submessage_arena) {
      error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, error, submessage_arena);
    }
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryTariffsResponse.error)
}
GetDictionaryTariffsResponse::GetDictionaryTariffsResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryTariffsResponse)
}
GetDictionaryTariffsResponse::GetDictionaryTariffsResponse(const GetDictionaryTariffsResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryTariffsResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_type();
  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::vc::v1::GetDictionaryTariffsResponse_CameraTariffs::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::vc::v1::GetDictionaryTariffsResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryTariffsResponse)
}

inline void GetDictionaryTariffsResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_type();
}

GetDictionaryTariffsResponse::~GetDictionaryTariffsResponse() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryTariffsResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryTariffsResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_type()) {
    clear_type();
  }
}

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

void GetDictionaryTariffsResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.vc.v1.GetDictionaryTariffsResponse)
  switch (type_case()) {
    case kData: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.data_;
      }
      break;
    }
    case kError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.error_;
      }
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


void GetDictionaryTariffsResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryTariffsResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_type();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryTariffsResponse::_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) {
      // .keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.vc.v1.GetDictionaryTariffsResponse.Error error = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_error(), 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  switch (type_case()) {
    case kData: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, _Internal::data(this),
          _Internal::data(this).GetCachedSize(), target, stream);
      break;
    }
    case kError: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::error(this),
          _Internal::error(this).GetCachedSize(), target, stream);
      break;
    }
    default: ;
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryTariffsResponse)
  return target;
}

::size_t GetDictionaryTariffsResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryTariffsResponse)
  ::size_t total_size = 0;

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

  switch (type_case()) {
    // .keyapis.vc.v1.GetDictionaryTariffsResponse.CameraTariffs data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      break;
    }
    // .keyapis.vc.v1.GetDictionaryTariffsResponse.Error error = 2;
    case kError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.error_);
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryTariffsResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryTariffsResponse*>(
      &from));
}

void GetDictionaryTariffsResponse::MergeFrom(const GetDictionaryTariffsResponse& from) {
  GetDictionaryTariffsResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryTariffsResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::vc::v1::GetDictionaryTariffsResponse_CameraTariffs::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::vc::v1::GetDictionaryTariffsResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryTariffsResponse::CopyFrom(const GetDictionaryTariffsResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryTariffsResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryTariffsResponse::InternalSwap(GetDictionaryTariffsResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetDictionaryTariffsResponse::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryTariffsResponse";
}

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

class GetDictionaryRolesRequest::_Internal {
 public:
};

GetDictionaryRolesRequest::GetDictionaryRolesRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryRolesRequest)
}
GetDictionaryRolesRequest::GetDictionaryRolesRequest(const GetDictionaryRolesRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(), _impl_(from._impl_) {
  _internal_metadata_.MergeFrom<std::string>(
      from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryRolesRequest)
}

inline void GetDictionaryRolesRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      /*decltype(_impl_._cached_size_)*/{}
  };
}

GetDictionaryRolesRequest::~GetDictionaryRolesRequest() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryRolesRequest)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryRolesRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
}

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

void GetDictionaryRolesRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryRolesRequest)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryRolesRequest::_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);
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryRolesRequest)
  return target;
}

::size_t GetDictionaryRolesRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryRolesRequest)
  ::size_t total_size = 0;

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryRolesRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryRolesRequest*>(
      &from));
}

void GetDictionaryRolesRequest::MergeFrom(const GetDictionaryRolesRequest& from) {
  GetDictionaryRolesRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryRolesRequest)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryRolesRequest::CopyFrom(const GetDictionaryRolesRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryRolesRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryRolesRequest::InternalSwap(GetDictionaryRolesRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
}

std::string GetDictionaryRolesRequest::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryRolesRequest";
}

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

class GetDictionaryRolesResponse_Roles::_Internal {
 public:
};

GetDictionaryRolesResponse_Roles::GetDictionaryRolesResponse_Roles(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
}
GetDictionaryRolesResponse_Roles::GetDictionaryRolesResponse_Roles(const GetDictionaryRolesResponse_Roles& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryRolesResponse_Roles* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.roles_){from._impl_.roles_}
    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
}

inline void GetDictionaryRolesResponse_Roles::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.roles_){arena}
    , /*decltype(_impl_._cached_size_)*/{}
  };
}

GetDictionaryRolesResponse_Roles::~GetDictionaryRolesResponse_Roles() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryRolesResponse_Roles::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_roles()->~RepeatedPtrField();
}

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

void GetDictionaryRolesResponse_Roles::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_roles()->Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryRolesResponse_Roles::_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 .keyapis.vc.v1.Role roles = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_roles(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<10>(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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetDictionaryRolesResponse_Roles::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // repeated .keyapis.vc.v1.Role roles = 1;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_roles_size()); i < n; i++) {
    const auto& repfield = this->_internal_roles(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
  return target;
}

::size_t GetDictionaryRolesResponse_Roles::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
  ::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 .keyapis.vc.v1.Role roles = 1;
  total_size += 1UL * this->_internal_roles_size();
  for (const auto& msg : this->_internal_roles()) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryRolesResponse_Roles::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryRolesResponse_Roles*>(
      &from));
}

void GetDictionaryRolesResponse_Roles::MergeFrom(const GetDictionaryRolesResponse_Roles& from) {
  GetDictionaryRolesResponse_Roles* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_roles()->MergeFrom(from._internal_roles());
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryRolesResponse_Roles::CopyFrom(const GetDictionaryRolesResponse_Roles& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryRolesResponse.Roles)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryRolesResponse_Roles::InternalSwap(GetDictionaryRolesResponse_Roles* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_roles()->InternalSwap(other->_internal_mutable_roles());
}

std::string GetDictionaryRolesResponse_Roles::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryRolesResponse.Roles";
}

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

class GetDictionaryRolesResponse_Error::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::vc::v1::GetDictionaryRolesResponse_Error, _impl_._oneof_case_);
  static const ::keyapis::vc::v1::VcDictionaryError& vc_dictionary_error(const GetDictionaryRolesResponse_Error* msg);
};

const ::keyapis::vc::v1::VcDictionaryError&
GetDictionaryRolesResponse_Error::_Internal::vc_dictionary_error(const GetDictionaryRolesResponse_Error* msg) {
  return *msg->_impl_.reason_.vc_dictionary_error_;
}
void GetDictionaryRolesResponse_Error::set_allocated_vc_dictionary_error(::keyapis::vc::v1::VcDictionaryError* vc_dictionary_error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_reason();
  if (vc_dictionary_error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(vc_dictionary_error);
    if (message_arena != submessage_arena) {
      vc_dictionary_error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, vc_dictionary_error, submessage_arena);
    }
    set_has_vc_dictionary_error();
    _impl_.reason_.vc_dictionary_error_ = vc_dictionary_error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryRolesResponse.Error.vc_dictionary_error)
}
GetDictionaryRolesResponse_Error::GetDictionaryRolesResponse_Error(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
}
GetDictionaryRolesResponse_Error::GetDictionaryRolesResponse_Error(const GetDictionaryRolesResponse_Error& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryRolesResponse_Error* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_reason();
  switch (from.reason_case()) {
    case kVcDictionaryError: {
      _this->_internal_mutable_vc_dictionary_error()->::keyapis::vc::v1::VcDictionaryError::MergeFrom(
          from._internal_vc_dictionary_error());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
}

inline void GetDictionaryRolesResponse_Error::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reason_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_reason();
}

GetDictionaryRolesResponse_Error::~GetDictionaryRolesResponse_Error() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryRolesResponse_Error::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_reason()) {
    clear_reason();
  }
}

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

void GetDictionaryRolesResponse_Error::clear_reason() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
  switch (reason_case()) {
    case kVcDictionaryError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.reason_.vc_dictionary_error_;
      }
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = REASON_NOT_SET;
}


void GetDictionaryRolesResponse_Error::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_reason();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryRolesResponse_Error::_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) {
      // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_vc_dictionary_error(), 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* GetDictionaryRolesResponse_Error::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
  if (reason_case() == kVcDictionaryError) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::vc_dictionary_error(this),
        _Internal::vc_dictionary_error(this).GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
  return target;
}

::size_t GetDictionaryRolesResponse_Error::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
  ::size_t total_size = 0;

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

  switch (reason_case()) {
    // .keyapis.vc.v1.VcDictionaryError vc_dictionary_error = 1;
    case kVcDictionaryError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.reason_.vc_dictionary_error_);
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryRolesResponse_Error::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryRolesResponse_Error*>(
      &from));
}

void GetDictionaryRolesResponse_Error::MergeFrom(const GetDictionaryRolesResponse_Error& from) {
  GetDictionaryRolesResponse_Error* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.reason_case()) {
    case kVcDictionaryError: {
      _this->_internal_mutable_vc_dictionary_error()->::keyapis::vc::v1::VcDictionaryError::MergeFrom(
          from._internal_vc_dictionary_error());
      break;
    }
    case REASON_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryRolesResponse_Error::CopyFrom(const GetDictionaryRolesResponse_Error& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryRolesResponse.Error)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryRolesResponse_Error::InternalSwap(GetDictionaryRolesResponse_Error* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.reason_, other->_impl_.reason_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetDictionaryRolesResponse_Error::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryRolesResponse.Error";
}

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

class GetDictionaryRolesResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::vc::v1::GetDictionaryRolesResponse, _impl_._oneof_case_);
  static const ::keyapis::vc::v1::GetDictionaryRolesResponse_Roles& data(const GetDictionaryRolesResponse* msg);
  static const ::keyapis::vc::v1::GetDictionaryRolesResponse_Error& error(const GetDictionaryRolesResponse* msg);
};

const ::keyapis::vc::v1::GetDictionaryRolesResponse_Roles&
GetDictionaryRolesResponse::_Internal::data(const GetDictionaryRolesResponse* msg) {
  return *msg->_impl_.type_.data_;
}
const ::keyapis::vc::v1::GetDictionaryRolesResponse_Error&
GetDictionaryRolesResponse::_Internal::error(const GetDictionaryRolesResponse* msg) {
  return *msg->_impl_.type_.error_;
}
void GetDictionaryRolesResponse::set_allocated_data(::keyapis::vc::v1::GetDictionaryRolesResponse_Roles* data) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (data) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(data);
    if (message_arena != submessage_arena) {
      data = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, data, submessage_arena);
    }
    set_has_data();
    _impl_.type_.data_ = data;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryRolesResponse.data)
}
void GetDictionaryRolesResponse::set_allocated_error(::keyapis::vc::v1::GetDictionaryRolesResponse_Error* error) {
  ::PROTOBUF_NAMESPACE_ID::Arena* message_arena = GetArenaForAllocation();
  clear_type();
  if (error) {
    ::PROTOBUF_NAMESPACE_ID::Arena* submessage_arena =
      ::PROTOBUF_NAMESPACE_ID::Arena::InternalGetOwningArena(error);
    if (message_arena != submessage_arena) {
      error = ::PROTOBUF_NAMESPACE_ID::internal::GetOwnedMessage(
          message_arena, error, submessage_arena);
    }
    set_has_error();
    _impl_.type_.error_ = error;
  }
  // @@protoc_insertion_point(field_set_allocated:keyapis.vc.v1.GetDictionaryRolesResponse.error)
}
GetDictionaryRolesResponse::GetDictionaryRolesResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.GetDictionaryRolesResponse)
}
GetDictionaryRolesResponse::GetDictionaryRolesResponse(const GetDictionaryRolesResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetDictionaryRolesResponse* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  clear_has_type();
  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::vc::v1::GetDictionaryRolesResponse_Roles::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::vc::v1::GetDictionaryRolesResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.GetDictionaryRolesResponse)
}

inline void GetDictionaryRolesResponse::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.type_){}
    , /*decltype(_impl_._cached_size_)*/{}
    , /*decltype(_impl_._oneof_case_)*/{}
  };
  clear_has_type();
}

GetDictionaryRolesResponse::~GetDictionaryRolesResponse() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.GetDictionaryRolesResponse)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void GetDictionaryRolesResponse::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (has_type()) {
    clear_type();
  }
}

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

void GetDictionaryRolesResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.vc.v1.GetDictionaryRolesResponse)
  switch (type_case()) {
    case kData: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.data_;
      }
      break;
    }
    case kError: {
      if (GetArenaForAllocation() == nullptr) {
        delete _impl_.type_.error_;
      }
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


void GetDictionaryRolesResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.GetDictionaryRolesResponse)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  clear_type();
  _internal_metadata_.Clear<std::string>();
}

const char* GetDictionaryRolesResponse::_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) {
      // .keyapis.vc.v1.GetDictionaryRolesResponse.Roles data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          ptr = ctx->ParseMessage(_internal_mutable_data(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .keyapis.vc.v1.GetDictionaryRolesResponse.Error error = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          ptr = ctx->ParseMessage(_internal_mutable_error(), 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  switch (type_case()) {
    case kData: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(1, _Internal::data(this),
          _Internal::data(this).GetCachedSize(), target, stream);
      break;
    }
    case kError: {
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(2, _Internal::error(this),
          _Internal::error(this).GetCachedSize(), target, stream);
      break;
    }
    default: ;
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.GetDictionaryRolesResponse)
  return target;
}

::size_t GetDictionaryRolesResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.GetDictionaryRolesResponse)
  ::size_t total_size = 0;

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

  switch (type_case()) {
    // .keyapis.vc.v1.GetDictionaryRolesResponse.Roles data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      break;
    }
    // .keyapis.vc.v1.GetDictionaryRolesResponse.Error error = 2;
    case kError: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.error_);
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void GetDictionaryRolesResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetDictionaryRolesResponse*>(
      &from));
}

void GetDictionaryRolesResponse::MergeFrom(const GetDictionaryRolesResponse& from) {
  GetDictionaryRolesResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.GetDictionaryRolesResponse)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  switch (from.type_case()) {
    case kData: {
      _this->_internal_mutable_data()->::keyapis::vc::v1::GetDictionaryRolesResponse_Roles::MergeFrom(
          from._internal_data());
      break;
    }
    case kError: {
      _this->_internal_mutable_error()->::keyapis::vc::v1::GetDictionaryRolesResponse_Error::MergeFrom(
          from._internal_error());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void GetDictionaryRolesResponse::CopyFrom(const GetDictionaryRolesResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.GetDictionaryRolesResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void GetDictionaryRolesResponse::InternalSwap(GetDictionaryRolesResponse* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_.type_, other->_impl_.type_);
  swap(_impl_._oneof_case_[0], other->_impl_._oneof_case_[0]);
}

std::string GetDictionaryRolesResponse::GetTypeName() const {
  return "keyapis.vc.v1.GetDictionaryRolesResponse";
}

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

class VcDictionaryError_Reason::_Internal {
 public:
};

VcDictionaryError_Reason::VcDictionaryError_Reason(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.VcDictionaryError.Reason)
}
VcDictionaryError_Reason::VcDictionaryError_Reason(const VcDictionaryError_Reason& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  VcDictionaryError_Reason* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.message_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_message().empty()) {
    _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.VcDictionaryError.Reason)
}

inline void VcDictionaryError_Reason::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.message_) {}

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

VcDictionaryError_Reason::~VcDictionaryError_Reason() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.VcDictionaryError.Reason)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void VcDictionaryError_Reason::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.message_.Destroy();
}

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

void VcDictionaryError_Reason::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.VcDictionaryError.Reason)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _impl_.message_.ClearToEmpty();
  _internal_metadata_.Clear<std::string>();
}

const char* VcDictionaryError_Reason::_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 message = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_message();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } 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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

::uint8_t* VcDictionaryError_Reason::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.vc.v1.VcDictionaryError.Reason)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // string message = 1;
  if (!this->_internal_message().empty()) {
    const std::string& _s = this->_internal_message();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.VcDictionaryError.Reason.message");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.VcDictionaryError.Reason)
  return target;
}

::size_t VcDictionaryError_Reason::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.VcDictionaryError.Reason)
  ::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 message = 1;
  if (!this->_internal_message().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_message());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void VcDictionaryError_Reason::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const VcDictionaryError_Reason*>(
      &from));
}

void VcDictionaryError_Reason::MergeFrom(const VcDictionaryError_Reason& from) {
  VcDictionaryError_Reason* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.VcDictionaryError.Reason)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  if (!from._internal_message().empty()) {
    _this->_internal_set_message(from._internal_message());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void VcDictionaryError_Reason::CopyFrom(const VcDictionaryError_Reason& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.VcDictionaryError.Reason)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void VcDictionaryError_Reason::InternalSwap(VcDictionaryError_Reason* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, lhs_arena,
                                       &other->_impl_.message_, rhs_arena);
}

std::string VcDictionaryError_Reason::GetTypeName() const {
  return "keyapis.vc.v1.VcDictionaryError.Reason";
}

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

class VcDictionaryError::_Internal {
 public:
};

VcDictionaryError::VcDictionaryError(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.vc.v1.VcDictionaryError)
}
VcDictionaryError::VcDictionaryError(const VcDictionaryError& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  VcDictionaryError* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_.reasons_){from._impl_.reasons_}
    , decltype(_impl_.service_) {}

    , decltype(_impl_.product_) {}

    , decltype(_impl_.message_) {}

    , /*decltype(_impl_._cached_size_)*/{}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  _impl_.service_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.service_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_service().empty()) {
    _this->_impl_.service_.Set(from._internal_service(), _this->GetArenaForAllocation());
  }
  _impl_.product_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.product_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_product().empty()) {
    _this->_impl_.product_.Set(from._internal_product(), _this->GetArenaForAllocation());
  }
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  if (!from._internal_message().empty()) {
    _this->_impl_.message_.Set(from._internal_message(), _this->GetArenaForAllocation());
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.vc.v1.VcDictionaryError)
}

inline void VcDictionaryError::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.reasons_){arena}
    , decltype(_impl_.service_) {}

    , decltype(_impl_.product_) {}

    , decltype(_impl_.message_) {}

    , /*decltype(_impl_._cached_size_)*/{}
  };
  _impl_.service_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.service_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.product_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.product_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
  _impl_.message_.InitDefault();
  #ifdef PROTOBUF_FORCE_COPY_DEFAULT_STRING
        _impl_.message_.Set("", GetArenaForAllocation());
  #endif  // PROTOBUF_FORCE_COPY_DEFAULT_STRING
}

VcDictionaryError::~VcDictionaryError() {
  // @@protoc_insertion_point(destructor:keyapis.vc.v1.VcDictionaryError)
  if (auto *arena = _internal_metadata_.DeleteReturnArena<std::string>()) {
  (void)arena;
    return;
  }
  SharedDtor();
}

inline void VcDictionaryError::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _internal_mutable_reasons()->~RepeatedPtrField();
  _impl_.service_.Destroy();
  _impl_.product_.Destroy();
  _impl_.message_.Destroy();
}

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

void VcDictionaryError::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.vc.v1.VcDictionaryError)
  ::uint32_t cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  _internal_mutable_reasons()->Clear();
  _impl_.service_.ClearToEmpty();
  _impl_.product_.ClearToEmpty();
  _impl_.message_.ClearToEmpty();
  _internal_metadata_.Clear<std::string>();
}

const char* VcDictionaryError::_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 service = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 10)) {
          auto str = _internal_mutable_service();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string product = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 18)) {
          auto str = _internal_mutable_product();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // string message = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 26)) {
          auto str = _internal_mutable_message();
          ptr = ::_pbi::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(ptr);
          CHK_(::_pbi::VerifyUTF8(str, nullptr));
        } else {
          goto handle_unusual;
        }
        continue;
      // repeated .keyapis.vc.v1.VcDictionaryError.Reason reasons = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 34)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_reasons(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<34>(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<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // string service = 1;
  if (!this->_internal_service().empty()) {
    const std::string& _s = this->_internal_service();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.VcDictionaryError.service");
    target = stream->WriteStringMaybeAliased(1, _s, target);
  }

  // string product = 2;
  if (!this->_internal_product().empty()) {
    const std::string& _s = this->_internal_product();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.VcDictionaryError.product");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // string message = 3;
  if (!this->_internal_message().empty()) {
    const std::string& _s = this->_internal_message();
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
        _s.data(), static_cast<int>(_s.length()), ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE, "keyapis.vc.v1.VcDictionaryError.message");
    target = stream->WriteStringMaybeAliased(3, _s, target);
  }

  // repeated .keyapis.vc.v1.VcDictionaryError.Reason reasons = 4;
  for (unsigned i = 0,
      n = static_cast<unsigned>(this->_internal_reasons_size()); i < n; i++) {
    const auto& repfield = this->_internal_reasons(i);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(4, repfield, repfield.GetCachedSize(), target, stream);
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    target = stream->WriteRaw(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).data(),
        static_cast<int>(_internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:keyapis.vc.v1.VcDictionaryError)
  return target;
}

::size_t VcDictionaryError::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.vc.v1.VcDictionaryError)
  ::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 .keyapis.vc.v1.VcDictionaryError.Reason reasons = 4;
  total_size += 1UL * this->_internal_reasons_size();
  for (const auto& msg : this->_internal_reasons()) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

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

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

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

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    total_size += _internal_metadata_.unknown_fields<std::string>(::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString).size();
  }
  int cached_size = ::_pbi::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void VcDictionaryError::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const VcDictionaryError*>(
      &from));
}

void VcDictionaryError::MergeFrom(const VcDictionaryError& from) {
  VcDictionaryError* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.vc.v1.VcDictionaryError)
  ABSL_DCHECK_NE(&from, _this);
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  _this->_internal_mutable_reasons()->MergeFrom(from._internal_reasons());
  if (!from._internal_service().empty()) {
    _this->_internal_set_service(from._internal_service());
  }
  if (!from._internal_product().empty()) {
    _this->_internal_set_product(from._internal_product());
  }
  if (!from._internal_message().empty()) {
    _this->_internal_set_message(from._internal_message());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

void VcDictionaryError::CopyFrom(const VcDictionaryError& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.vc.v1.VcDictionaryError)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void VcDictionaryError::InternalSwap(VcDictionaryError* other) {
  using std::swap;
  auto* lhs_arena = GetArenaForAllocation();
  auto* rhs_arena = other->GetArenaForAllocation();
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  _internal_mutable_reasons()->InternalSwap(other->_internal_mutable_reasons());
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.service_, lhs_arena,
                                       &other->_impl_.service_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.product_, lhs_arena,
                                       &other->_impl_.product_, rhs_arena);
  ::_pbi::ArenaStringPtr::InternalSwap(&_impl_.message_, lhs_arena,
                                       &other->_impl_.message_, rhs_arena);
}

std::string VcDictionaryError::GetTypeName() const {
  return "keyapis.vc.v1.VcDictionaryError";
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace vc
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::Category*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::Category >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::Category >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::Tariff*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::Tariff >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::Tariff >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::Role*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::Role >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::Role >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryCategoriesRequest*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryCategoriesRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryCategoriesRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryCategoriesResponse_CameraCategories*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryCategoriesResponse_CameraCategories >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryCategoriesResponse_CameraCategories >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryCategoriesResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryCategoriesResponse*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryCategoriesResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryCategoriesResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryTariffsRequest*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryTariffsRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryTariffsRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryTariffsResponse_CameraTariffs*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryTariffsResponse_CameraTariffs >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryTariffsResponse_CameraTariffs >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryTariffsResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryTariffsResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryTariffsResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryTariffsResponse*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryTariffsResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryTariffsResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryRolesRequest*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryRolesRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryRolesRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryRolesResponse_Roles*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryRolesResponse_Roles >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryRolesResponse_Roles >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryRolesResponse_Error*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryRolesResponse_Error >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryRolesResponse_Error >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::GetDictionaryRolesResponse*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::GetDictionaryRolesResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::GetDictionaryRolesResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::VcDictionaryError_Reason*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::VcDictionaryError_Reason >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::VcDictionaryError_Reason >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::vc::v1::VcDictionaryError*
Arena::CreateMaybeMessage< ::keyapis::vc::v1::VcDictionaryError >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::vc::v1::VcDictionaryError >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
