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

#include "keyapis/ad/v1/keyapis_ad_marketplace_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 ad {
namespace v1 {
template <typename>
PROTOBUF_CONSTEXPR Marketplace::Marketplace(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.title_)*/ {
    &::_pbi::fixed_address_empty_string, ::_pbi::ConstantInitialized {}
  }

  , /*decltype(_impl_.card_url_)*/nullptr
  , /*decltype(_impl_.created_at_)*/nullptr
  , /*decltype(_impl_.changed_at_)*/nullptr
  , /*decltype(_impl_.id_)*/ 0

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

  , /*decltype(_impl_.is_disabled_)*/ false
} {}
struct MarketplaceDefaultTypeInternal {
  PROTOBUF_CONSTEXPR MarketplaceDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~MarketplaceDefaultTypeInternal() {}
  union {
    Marketplace _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 MarketplaceDefaultTypeInternal _Marketplace_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostMarketplaceRequest::PostMarketplaceRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._has_bits_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_.data_)*/nullptr} {}
struct PostMarketplaceRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostMarketplaceRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostMarketplaceRequestDefaultTypeInternal() {}
  union {
    PostMarketplaceRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostMarketplaceRequestDefaultTypeInternal _PostMarketplaceRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR PostMarketplaceResponse::PostMarketplaceResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct PostMarketplaceResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR PostMarketplaceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~PostMarketplaceResponseDefaultTypeInternal() {}
  union {
    PostMarketplaceResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 PostMarketplaceResponseDefaultTypeInternal _PostMarketplaceResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetMarketplaceRequest::GetMarketplaceRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.id_)*/ 0

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

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMarketplaceRequestDefaultTypeInternal _GetMarketplaceRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetMarketplaceResponse::GetMarketplaceResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetMarketplaceResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetMarketplaceResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetMarketplaceResponseDefaultTypeInternal() {}
  union {
    GetMarketplaceResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMarketplaceResponseDefaultTypeInternal _GetMarketplaceResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetMarketplaceListRequest::GetMarketplaceListRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetMarketplaceListRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetMarketplaceListRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetMarketplaceListRequestDefaultTypeInternal() {}
  union {
    GetMarketplaceListRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMarketplaceListRequestDefaultTypeInternal _GetMarketplaceListRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetMarketplaceListResponse::GetMarketplaceListResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetMarketplaceListResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetMarketplaceListResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetMarketplaceListResponseDefaultTypeInternal() {}
  union {
    GetMarketplaceListResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMarketplaceListResponseDefaultTypeInternal _GetMarketplaceListResponse_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetMarketplaceCountRequest::GetMarketplaceCountRequest(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_._cached_size_)*/{}} {}
struct GetMarketplaceCountRequestDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetMarketplaceCountRequestDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetMarketplaceCountRequestDefaultTypeInternal() {}
  union {
    GetMarketplaceCountRequest _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMarketplaceCountRequestDefaultTypeInternal _GetMarketplaceCountRequest_default_instance_;
template <typename>
PROTOBUF_CONSTEXPR GetMarketplaceCountResponse::GetMarketplaceCountResponse(
    ::_pbi::ConstantInitialized): _impl_{
    /*decltype(_impl_.type_)*/{}
  , /*decltype(_impl_._cached_size_)*/{}
  , /*decltype(_impl_._oneof_case_)*/{}} {}
struct GetMarketplaceCountResponseDefaultTypeInternal {
  PROTOBUF_CONSTEXPR GetMarketplaceCountResponseDefaultTypeInternal() : _instance(::_pbi::ConstantInitialized{}) {}
  ~GetMarketplaceCountResponseDefaultTypeInternal() {}
  union {
    GetMarketplaceCountResponse _instance;
  };
};

PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT
    PROTOBUF_ATTRIBUTE_INIT_PRIORITY1 GetMarketplaceCountResponseDefaultTypeInternal _GetMarketplaceCountResponse_default_instance_;
}  // namespace v1
}  // namespace ad
}  // namespace keyapis
namespace keyapis {
namespace ad {
namespace v1 {
bool Marketplace_Type_IsValid(int value) {
  switch (value) {
    case 0:
    case 1:
    case 2:
    case 3:
    case 4:
      return true;
    default:
      return false;
  }
}
static ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string>
    Marketplace_Type_strings[5] = {};

static const char Marketplace_Type_names[] = {
    "OZON"
    "SBER_MARKET"
    "TYPE_UNKNOWN"
    "WILDBERRIES"
    "YANDEX_MARKET"
};

static const ::PROTOBUF_NAMESPACE_ID::internal::EnumEntry Marketplace_Type_entries[] =
    {
        {{&Marketplace_Type_names[0], 4}, 1},
        {{&Marketplace_Type_names[4], 11}, 4},
        {{&Marketplace_Type_names[15], 12}, 0},
        {{&Marketplace_Type_names[27], 11}, 2},
        {{&Marketplace_Type_names[38], 13}, 3},
};

static const int Marketplace_Type_entries_by_number[] = {
    2,  // 0 -> TYPE_UNKNOWN
    0,  // 1 -> OZON
    3,  // 2 -> WILDBERRIES
    4,  // 3 -> YANDEX_MARKET
    1,  // 4 -> SBER_MARKET
};

const std::string& Marketplace_Type_Name(Marketplace_Type value) {
  static const bool kDummy =
      ::PROTOBUF_NAMESPACE_ID::internal::InitializeEnumStrings(
          Marketplace_Type_entries, Marketplace_Type_entries_by_number,
          5, Marketplace_Type_strings);
  (void)kDummy;

  int idx = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumName(
      Marketplace_Type_entries, Marketplace_Type_entries_by_number, 5,
      value);
  return idx == -1 ? ::PROTOBUF_NAMESPACE_ID::internal::GetEmptyString()
                   : Marketplace_Type_strings[idx].get();
}

bool Marketplace_Type_Parse(absl::string_view name, Marketplace_Type* value) {
  int int_value;
  bool success = ::PROTOBUF_NAMESPACE_ID::internal::LookUpEnumValue(
      Marketplace_Type_entries, 5, name, &int_value);
  if (success) {
    *value = static_cast<Marketplace_Type>(int_value);
  }
  return success;
}
#if (__cplusplus < 201703) && \
  (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))

constexpr Marketplace_Type Marketplace::TYPE_UNKNOWN;
constexpr Marketplace_Type Marketplace::OZON;
constexpr Marketplace_Type Marketplace::WILDBERRIES;
constexpr Marketplace_Type Marketplace::YANDEX_MARKET;
constexpr Marketplace_Type Marketplace::SBER_MARKET;
constexpr Marketplace_Type Marketplace::Type_MIN;
constexpr Marketplace_Type Marketplace::Type_MAX;
constexpr int Marketplace::Type_ARRAYSIZE;

#endif  // (__cplusplus < 201703) &&
        // (!defined(_MSC_VER) || (_MSC_VER >= 1900 && _MSC_VER < 1912))
// ===================================================================

class Marketplace::_Internal {
 public:
  using HasBits = decltype(std::declval<Marketplace>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(Marketplace, _impl_._has_bits_);
  static const ::PROTOBUF_NAMESPACE_ID::StringValue& card_url(const Marketplace* msg);
  static void set_has_card_url(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& created_at(const Marketplace* msg);
  static void set_has_created_at(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static const ::PROTOBUF_NAMESPACE_ID::Timestamp& changed_at(const Marketplace* msg);
  static void set_has_changed_at(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
};

const ::PROTOBUF_NAMESPACE_ID::StringValue&
Marketplace::_Internal::card_url(const Marketplace* msg) {
  return *msg->_impl_.card_url_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
Marketplace::_Internal::created_at(const Marketplace* msg) {
  return *msg->_impl_.created_at_;
}
const ::PROTOBUF_NAMESPACE_ID::Timestamp&
Marketplace::_Internal::changed_at(const Marketplace* msg) {
  return *msg->_impl_.changed_at_;
}
void Marketplace::clear_card_url() {
  if (_impl_.card_url_ != nullptr) _impl_.card_url_->Clear();
  _impl_._has_bits_[0] &= ~0x00000001u;
}
void Marketplace::clear_created_at() {
  if (_impl_.created_at_ != nullptr) _impl_.created_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000002u;
}
void Marketplace::clear_changed_at() {
  if (_impl_.changed_at_ != nullptr) _impl_.changed_at_->Clear();
  _impl_._has_bits_[0] &= ~0x00000004u;
}
Marketplace::Marketplace(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.ad.v1.Marketplace)
}
Marketplace::Marketplace(const Marketplace& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  Marketplace* 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_.card_url_){nullptr}
    , decltype(_impl_.created_at_){nullptr}
    , decltype(_impl_.changed_at_){nullptr}
    , decltype(_impl_.id_) {}

    , decltype(_impl_.type_) {}

    , decltype(_impl_.is_disabled_) {}
  };

  _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());
  }
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.card_url_ = new ::PROTOBUF_NAMESPACE_ID::StringValue(*from._impl_.card_url_);
  }
  if ((from._impl_._has_bits_[0] & 0x00000002u) != 0) {
    _this->_impl_.created_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.created_at_);
  }
  if ((from._impl_._has_bits_[0] & 0x00000004u) != 0) {
    _this->_impl_.changed_at_ = new ::PROTOBUF_NAMESPACE_ID::Timestamp(*from._impl_.changed_at_);
  }
  ::memcpy(&_impl_.id_, &from._impl_.id_,
    static_cast<::size_t>(reinterpret_cast<char*>(&_impl_.is_disabled_) -
    reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.is_disabled_));
  // @@protoc_insertion_point(copy_constructor:keyapis.ad.v1.Marketplace)
}

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

    , decltype(_impl_.card_url_){nullptr}
    , decltype(_impl_.created_at_){nullptr}
    , decltype(_impl_.changed_at_){nullptr}
    , decltype(_impl_.id_) { 0 }

    , decltype(_impl_.type_) { 0 }

    , decltype(_impl_.is_disabled_) { false }

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

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

inline void Marketplace::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  _impl_.title_.Destroy();
  if (this != internal_default_instance()) delete _impl_.card_url_;
  if (this != internal_default_instance()) delete _impl_.created_at_;
  if (this != internal_default_instance()) delete _impl_.changed_at_;
}

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

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

  _impl_.title_.ClearToEmpty();
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    if (cached_has_bits & 0x00000001u) {
      ABSL_DCHECK(_impl_.card_url_ != nullptr);
      _impl_.card_url_->Clear();
    }
    if (cached_has_bits & 0x00000002u) {
      ABSL_DCHECK(_impl_.created_at_ != nullptr);
      _impl_.created_at_->Clear();
    }
    if (cached_has_bits & 0x00000004u) {
      ABSL_DCHECK(_impl_.changed_at_ != nullptr);
      _impl_.changed_at_->Clear();
    }
  }
  ::memset(&_impl_.id_, 0, static_cast<::size_t>(
      reinterpret_cast<char*>(&_impl_.is_disabled_) -
      reinterpret_cast<char*>(&_impl_.id_)) + sizeof(_impl_.is_disabled_));
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* Marketplace::_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 [(.google.api.field_behavior) = OUTPUT_ONLY];
      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 [(.google.api.field_behavior) = REQUIRED];
      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;
      // .keyapis.ad.v1.Marketplace.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 24)) {
          ::int32_t val = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr);
          CHK_(ptr);
          _internal_set_type(static_cast<::keyapis::ad::v1::Marketplace_Type>(val));
        } else {
          goto handle_unusual;
        }
        continue;
      // bool is_disabled = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 32)) {
          _impl_.is_disabled_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.StringValue card_url = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 42)) {
          ptr = ctx->ParseMessage(_internal_mutable_card_url(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 50)) {
          ptr = ctx->ParseMessage(_internal_mutable_created_at(), ptr);
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      // .google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
      case 7:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 58)) {
          ptr = ctx->ParseMessage(_internal_mutable_changed_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* Marketplace::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ad.v1.Marketplace)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_id(), target);
  }

  // string title = 2 [(.google.api.field_behavior) = REQUIRED];
  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.ad.v1.Marketplace.title");
    target = stream->WriteStringMaybeAliased(2, _s, target);
  }

  // .keyapis.ad.v1.Marketplace.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_type() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteEnumToArray(
        3, this->_internal_type(), target);
  }

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

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

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

  // .google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
  if (cached_has_bits & 0x00000004u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(7, _Internal::changed_at(this),
        _Internal::changed_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.ad.v1.Marketplace)
  return target;
}

::size_t Marketplace::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ad.v1.Marketplace)
  ::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 [(.google.api.field_behavior) = REQUIRED];
  if (!this->_internal_title().empty()) {
    total_size += 1 + ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
                                    this->_internal_title());
  }

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    // .google.protobuf.StringValue card_url = 5;
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.card_url_);
    }

    // .google.protobuf.Timestamp created_at = 6 [(.google.api.field_behavior) = OUTPUT_ONLY];
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.created_at_);
    }

    // .google.protobuf.Timestamp changed_at = 7 [(.google.api.field_behavior) = OUTPUT_ONLY];
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.changed_at_);
    }

  }
  // int32 id = 1 [(.google.api.field_behavior) = OUTPUT_ONLY];
  if (this->_internal_id() != 0) {
    total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
        this->_internal_id());
  }

  // .keyapis.ad.v1.Marketplace.Type type = 3 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_type() != 0) {
    total_size += 1 +
                  ::_pbi::WireFormatLite::EnumSize(this->_internal_type());
  }

  // bool is_disabled = 4;
  if (this->_internal_is_disabled() != 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 Marketplace::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const Marketplace*>(
      &from));
}

void Marketplace::MergeFrom(const Marketplace& from) {
  Marketplace* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ad.v1.Marketplace)
  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());
  }
  cached_has_bits = from._impl_._has_bits_[0];
  if (cached_has_bits & 0x00000007u) {
    if (cached_has_bits & 0x00000001u) {
      _this->_internal_mutable_card_url()->::PROTOBUF_NAMESPACE_ID::StringValue::MergeFrom(
          from._internal_card_url());
    }
    if (cached_has_bits & 0x00000002u) {
      _this->_internal_mutable_created_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_created_at());
    }
    if (cached_has_bits & 0x00000004u) {
      _this->_internal_mutable_changed_at()->::PROTOBUF_NAMESPACE_ID::Timestamp::MergeFrom(
          from._internal_changed_at());
    }
  }
  if (from._internal_id() != 0) {
    _this->_internal_set_id(from._internal_id());
  }
  if (from._internal_type() != 0) {
    _this->_internal_set_type(from._internal_type());
  }
  if (from._internal_is_disabled() != 0) {
    _this->_internal_set_is_disabled(from._internal_is_disabled());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void Marketplace::InternalSwap(Marketplace* 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);
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(Marketplace, _impl_.is_disabled_)
      + sizeof(Marketplace::_impl_.is_disabled_)
      - PROTOBUF_FIELD_OFFSET(Marketplace, _impl_.card_url_)>(
          reinterpret_cast<char*>(&_impl_.card_url_),
          reinterpret_cast<char*>(&other->_impl_.card_url_));
}

std::string Marketplace::GetTypeName() const {
  return "keyapis.ad.v1.Marketplace";
}

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

class PostMarketplaceRequest::_Internal {
 public:
  using HasBits = decltype(std::declval<PostMarketplaceRequest>()._impl_._has_bits_);
  static constexpr ::int32_t kHasBitsOffset =
    8 * PROTOBUF_FIELD_OFFSET(PostMarketplaceRequest, _impl_._has_bits_);
  static const ::keyapis::ad::v1::Marketplace& data(const PostMarketplaceRequest* msg);
  static void set_has_data(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
};

const ::keyapis::ad::v1::Marketplace&
PostMarketplaceRequest::_Internal::data(const PostMarketplaceRequest* msg) {
  return *msg->_impl_.data_;
}
PostMarketplaceRequest::PostMarketplaceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.ad.v1.PostMarketplaceRequest)
}
PostMarketplaceRequest::PostMarketplaceRequest(const PostMarketplaceRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostMarketplaceRequest* const _this = this; (void)_this;
  new (&_impl_) Impl_{
      decltype(_impl_._has_bits_){from._impl_._has_bits_}
    , /*decltype(_impl_._cached_size_)*/{}
    , decltype(_impl_.data_){nullptr}};

  _internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_impl_.data_ = new ::keyapis::ad::v1::Marketplace(*from._impl_.data_);
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.ad.v1.PostMarketplaceRequest)
}

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

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

inline void PostMarketplaceRequest::SharedDtor() {
  ABSL_DCHECK(GetArenaForAllocation() == nullptr);
  if (this != internal_default_instance()) delete _impl_.data_;
}

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

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

  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    ABSL_DCHECK(_impl_.data_ != nullptr);
    _impl_.data_->Clear();
  }
  _impl_._has_bits_.Clear();
  _internal_metadata_.Clear<std::string>();
}

const char* PostMarketplaceRequest::_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) {
      // .keyapis.ad.v1.Marketplace data = 1 [(.google.api.field_behavior) = REQUIRED];
      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;
      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* PostMarketplaceRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ad.v1.PostMarketplaceRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _impl_._has_bits_[0];
  // .keyapis.ad.v1.Marketplace data = 1 [(.google.api.field_behavior) = REQUIRED];
  if (cached_has_bits & 0x00000001u) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(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.ad.v1.PostMarketplaceRequest)
  return target;
}

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

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

  // .keyapis.ad.v1.Marketplace data = 1 [(.google.api.field_behavior) = REQUIRED];
  cached_has_bits = _impl_._has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
        *_impl_.data_);
  }

  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 PostMarketplaceRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostMarketplaceRequest*>(
      &from));
}

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

  if ((from._impl_._has_bits_[0] & 0x00000001u) != 0) {
    _this->_internal_mutable_data()->::keyapis::ad::v1::Marketplace::MergeFrom(
        from._internal_data());
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void PostMarketplaceRequest::InternalSwap(PostMarketplaceRequest* other) {
  using std::swap;
  _internal_metadata_.InternalSwap(&other->_internal_metadata_);
  swap(_impl_._has_bits_[0], other->_impl_._has_bits_[0]);
  swap(_impl_.data_, other->_impl_.data_);
}

std::string PostMarketplaceRequest::GetTypeName() const {
  return "keyapis.ad.v1.PostMarketplaceRequest";
}

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

class PostMarketplaceResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::ad::v1::PostMarketplaceResponse, _impl_._oneof_case_);
  static const ::keyapis::ad::v1::Marketplace& data(const PostMarketplaceResponse* msg);
};

const ::keyapis::ad::v1::Marketplace&
PostMarketplaceResponse::_Internal::data(const PostMarketplaceResponse* msg) {
  return *msg->_impl_.type_.data_;
}
void PostMarketplaceResponse::set_allocated_data(::keyapis::ad::v1::Marketplace* 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.ad.v1.PostMarketplaceResponse.data)
}
PostMarketplaceResponse::PostMarketplaceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.ad.v1.PostMarketplaceResponse)
}
PostMarketplaceResponse::PostMarketplaceResponse(const PostMarketplaceResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  PostMarketplaceResponse* 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::ad::v1::Marketplace::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.ad.v1.PostMarketplaceResponse)
}

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

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

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

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

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


void PostMarketplaceResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ad.v1.PostMarketplaceResponse)
  ::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* PostMarketplaceResponse::_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.ad.v1.Marketplace 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;
      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* PostMarketplaceResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ad.v1.PostMarketplaceResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.ad.v1.Marketplace data = 1;
  if (type_case() == kData) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(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.ad.v1.PostMarketplaceResponse)
  return target;
}

::size_t PostMarketplaceResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ad.v1.PostMarketplaceResponse)
  ::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.ad.v1.Marketplace data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      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 PostMarketplaceResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const PostMarketplaceResponse*>(
      &from));
}

void PostMarketplaceResponse::MergeFrom(const PostMarketplaceResponse& from) {
  PostMarketplaceResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ad.v1.PostMarketplaceResponse)
  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::ad::v1::Marketplace::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void PostMarketplaceResponse::InternalSwap(PostMarketplaceResponse* 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 PostMarketplaceResponse::GetTypeName() const {
  return "keyapis.ad.v1.PostMarketplaceResponse";
}

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

class GetMarketplaceRequest::_Internal {
 public:
};

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

inline void GetMarketplaceRequest::SharedCtor(::_pb::Arena* arena) {
  (void)arena;
  new (&_impl_) Impl_{
      decltype(_impl_.id_) { 0 }

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

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

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

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

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

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

const char* GetMarketplaceRequest::_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 [(.google.api.field_behavior) = REQUIRED];
      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;
      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* GetMarketplaceRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ad.v1.GetMarketplaceRequest)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // int32 id = 1 [(.google.api.field_behavior) = REQUIRED];
  if (this->_internal_id() != 0) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_id(), 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.ad.v1.GetMarketplaceRequest)
  return target;
}

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

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

  // int32 id = 1 [(.google.api.field_behavior) = REQUIRED];
  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 GetMarketplaceRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetMarketplaceRequest*>(
      &from));
}

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

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

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

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

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

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

std::string GetMarketplaceRequest::GetTypeName() const {
  return "keyapis.ad.v1.GetMarketplaceRequest";
}

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

class GetMarketplaceResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::ad::v1::GetMarketplaceResponse, _impl_._oneof_case_);
  static const ::keyapis::ad::v1::Marketplace& data(const GetMarketplaceResponse* msg);
};

const ::keyapis::ad::v1::Marketplace&
GetMarketplaceResponse::_Internal::data(const GetMarketplaceResponse* msg) {
  return *msg->_impl_.type_.data_;
}
void GetMarketplaceResponse::set_allocated_data(::keyapis::ad::v1::Marketplace* 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.ad.v1.GetMarketplaceResponse.data)
}
GetMarketplaceResponse::GetMarketplaceResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.ad.v1.GetMarketplaceResponse)
}
GetMarketplaceResponse::GetMarketplaceResponse(const GetMarketplaceResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetMarketplaceResponse* 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::ad::v1::Marketplace::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.ad.v1.GetMarketplaceResponse)
}

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

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

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

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

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


void GetMarketplaceResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ad.v1.GetMarketplaceResponse)
  ::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* GetMarketplaceResponse::_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.ad.v1.Marketplace 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;
      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* GetMarketplaceResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ad.v1.GetMarketplaceResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.ad.v1.Marketplace data = 1;
  if (type_case() == kData) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(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.ad.v1.GetMarketplaceResponse)
  return target;
}

::size_t GetMarketplaceResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ad.v1.GetMarketplaceResponse)
  ::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.ad.v1.Marketplace data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      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 GetMarketplaceResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetMarketplaceResponse*>(
      &from));
}

void GetMarketplaceResponse::MergeFrom(const GetMarketplaceResponse& from) {
  GetMarketplaceResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ad.v1.GetMarketplaceResponse)
  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::ad::v1::Marketplace::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetMarketplaceResponse::InternalSwap(GetMarketplaceResponse* 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 GetMarketplaceResponse::GetTypeName() const {
  return "keyapis.ad.v1.GetMarketplaceResponse";
}

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

class GetMarketplaceListRequest::_Internal {
 public:
};

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

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

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

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

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

void GetMarketplaceListRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ad.v1.GetMarketplaceListRequest)
  ::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* GetMarketplaceListRequest::_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* GetMarketplaceListRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ad.v1.GetMarketplaceListRequest)
  ::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.ad.v1.GetMarketplaceListRequest)
  return target;
}

::size_t GetMarketplaceListRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ad.v1.GetMarketplaceListRequest)
  ::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 GetMarketplaceListRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetMarketplaceListRequest*>(
      &from));
}

void GetMarketplaceListRequest::MergeFrom(const GetMarketplaceListRequest& from) {
  GetMarketplaceListRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ad.v1.GetMarketplaceListRequest)
  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 GetMarketplaceListRequest::CopyFrom(const GetMarketplaceListRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.ad.v1.GetMarketplaceListRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string GetMarketplaceListRequest::GetTypeName() const {
  return "keyapis.ad.v1.GetMarketplaceListRequest";
}

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

class GetMarketplaceListResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::ad::v1::GetMarketplaceListResponse, _impl_._oneof_case_);
  static const ::keyapis::ad::v1::Marketplace& data(const GetMarketplaceListResponse* msg);
};

const ::keyapis::ad::v1::Marketplace&
GetMarketplaceListResponse::_Internal::data(const GetMarketplaceListResponse* msg) {
  return *msg->_impl_.type_.data_;
}
void GetMarketplaceListResponse::set_allocated_data(::keyapis::ad::v1::Marketplace* 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.ad.v1.GetMarketplaceListResponse.data)
}
GetMarketplaceListResponse::GetMarketplaceListResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.ad.v1.GetMarketplaceListResponse)
}
GetMarketplaceListResponse::GetMarketplaceListResponse(const GetMarketplaceListResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetMarketplaceListResponse* 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::ad::v1::Marketplace::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.ad.v1.GetMarketplaceListResponse)
}

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

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

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

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

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


void GetMarketplaceListResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ad.v1.GetMarketplaceListResponse)
  ::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* GetMarketplaceListResponse::_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.ad.v1.Marketplace 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;
      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* GetMarketplaceListResponse::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ad.v1.GetMarketplaceListResponse)
  ::uint32_t cached_has_bits = 0;
  (void) cached_has_bits;

  // .keyapis.ad.v1.Marketplace data = 1;
  if (type_case() == kData) {
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(1, _Internal::data(this),
        _Internal::data(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.ad.v1.GetMarketplaceListResponse)
  return target;
}

::size_t GetMarketplaceListResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ad.v1.GetMarketplaceListResponse)
  ::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.ad.v1.Marketplace data = 1;
    case kData: {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *_impl_.type_.data_);
      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 GetMarketplaceListResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetMarketplaceListResponse*>(
      &from));
}

void GetMarketplaceListResponse::MergeFrom(const GetMarketplaceListResponse& from) {
  GetMarketplaceListResponse* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ad.v1.GetMarketplaceListResponse)
  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::ad::v1::Marketplace::MergeFrom(
          from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetMarketplaceListResponse::InternalSwap(GetMarketplaceListResponse* 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 GetMarketplaceListResponse::GetTypeName() const {
  return "keyapis.ad.v1.GetMarketplaceListResponse";
}

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

class GetMarketplaceCountRequest::_Internal {
 public:
};

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

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

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

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

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

void GetMarketplaceCountRequest::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ad.v1.GetMarketplaceCountRequest)
  ::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* GetMarketplaceCountRequest::_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* GetMarketplaceCountRequest::_InternalSerialize(
    ::uint8_t* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:keyapis.ad.v1.GetMarketplaceCountRequest)
  ::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.ad.v1.GetMarketplaceCountRequest)
  return target;
}

::size_t GetMarketplaceCountRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ad.v1.GetMarketplaceCountRequest)
  ::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 GetMarketplaceCountRequest::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetMarketplaceCountRequest*>(
      &from));
}

void GetMarketplaceCountRequest::MergeFrom(const GetMarketplaceCountRequest& from) {
  GetMarketplaceCountRequest* const _this = this;
  // @@protoc_insertion_point(class_specific_merge_from_start:keyapis.ad.v1.GetMarketplaceCountRequest)
  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 GetMarketplaceCountRequest::CopyFrom(const GetMarketplaceCountRequest& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:keyapis.ad.v1.GetMarketplaceCountRequest)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

std::string GetMarketplaceCountRequest::GetTypeName() const {
  return "keyapis.ad.v1.GetMarketplaceCountRequest";
}

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

class GetMarketplaceCountResponse::_Internal {
 public:
  static constexpr ::int32_t kOneofCaseOffset =
    PROTOBUF_FIELD_OFFSET(::keyapis::ad::v1::GetMarketplaceCountResponse, _impl_._oneof_case_);
};

GetMarketplaceCountResponse::GetMarketplaceCountResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite(arena) {
  SharedCtor(arena);
  // @@protoc_insertion_point(arena_constructor:keyapis.ad.v1.GetMarketplaceCountResponse)
}
GetMarketplaceCountResponse::GetMarketplaceCountResponse(const GetMarketplaceCountResponse& from)
  : ::PROTOBUF_NAMESPACE_ID::MessageLite() {
  GetMarketplaceCountResponse* 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_set_data(from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  // @@protoc_insertion_point(copy_constructor:keyapis.ad.v1.GetMarketplaceCountResponse)
}

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

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

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

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

void GetMarketplaceCountResponse::clear_type() {
// @@protoc_insertion_point(one_of_clear_start:keyapis.ad.v1.GetMarketplaceCountResponse)
  switch (type_case()) {
    case kData: {
      // No need to clear
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _impl_._oneof_case_[0] = TYPE_NOT_SET;
}


void GetMarketplaceCountResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:keyapis.ad.v1.GetMarketplaceCountResponse)
  ::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* GetMarketplaceCountResponse::_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 data = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::uint8_t>(tag) == 8)) {
          _internal_set_data(::PROTOBUF_NAMESPACE_ID::internal::ReadVarint32(&ptr));
          CHK_(ptr);
        } else {
          goto handle_unusual;
        }
        continue;
      default:
        goto handle_unusual;
    }  // switch
  handle_unusual:
    if ((tag == 0) || ((tag & 7) == 4)) {
      CHK_(ptr);
      ctx->SetLastTag(tag);
      goto message_done;
    }
    ptr = UnknownFieldParse(
        tag,
        _internal_metadata_.mutable_unknown_fields<std::string>(),
        ptr, ctx);
    CHK_(ptr != nullptr);
  }  // while
message_done:
  return ptr;
failure:
  ptr = nullptr;
  goto message_done;
#undef CHK_
}

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

  // int32 data = 1;
  if (type_case() == kData) {
    target = stream->EnsureSpace(target);
    target = ::_pbi::WireFormatLite::WriteInt32ToArray(
        1, this->_internal_data(), 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.ad.v1.GetMarketplaceCountResponse)
  return target;
}

::size_t GetMarketplaceCountResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:keyapis.ad.v1.GetMarketplaceCountResponse)
  ::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()) {
    // int32 data = 1;
    case kData: {
      total_size += ::_pbi::WireFormatLite::Int32SizePlusOne(
          this->_internal_data());
      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 GetMarketplaceCountResponse::CheckTypeAndMergeFrom(
    const ::PROTOBUF_NAMESPACE_ID::MessageLite& from) {
  MergeFrom(*::_pbi::DownCast<const GetMarketplaceCountResponse*>(
      &from));
}

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

  switch (from.type_case()) {
    case kData: {
      _this->_internal_set_data(from._internal_data());
      break;
    }
    case TYPE_NOT_SET: {
      break;
    }
  }
  _this->_internal_metadata_.MergeFrom<std::string>(from._internal_metadata_);
}

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

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

void GetMarketplaceCountResponse::InternalSwap(GetMarketplaceCountResponse* 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 GetMarketplaceCountResponse::GetTypeName() const {
  return "keyapis.ad.v1.GetMarketplaceCountResponse";
}

// @@protoc_insertion_point(namespace_scope)
}  // namespace v1
}  // namespace ad
}  // namespace keyapis
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::Marketplace*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::Marketplace >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::Marketplace >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::PostMarketplaceRequest*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::PostMarketplaceRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::PostMarketplaceRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::PostMarketplaceResponse*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::PostMarketplaceResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::PostMarketplaceResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::GetMarketplaceRequest*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::GetMarketplaceRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::GetMarketplaceRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::GetMarketplaceResponse*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::GetMarketplaceResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::GetMarketplaceResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::GetMarketplaceListRequest*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::GetMarketplaceListRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::GetMarketplaceListRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::GetMarketplaceListResponse*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::GetMarketplaceListResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::GetMarketplaceListResponse >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::GetMarketplaceCountRequest*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::GetMarketplaceCountRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::GetMarketplaceCountRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::keyapis::ad::v1::GetMarketplaceCountResponse*
Arena::CreateMaybeMessage< ::keyapis::ad::v1::GetMarketplaceCountResponse >(Arena* arena) {
  return Arena::CreateMessageInternal< ::keyapis::ad::v1::GetMarketplaceCountResponse >(arena);
}
PROTOBUF_NAMESPACE_CLOSE
// @@protoc_insertion_point(global_scope)
#include "google/protobuf/port_undef.inc"
