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

#include "mqtt_async.pb.h"

#include <algorithm>

#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/wire_format_lite.h>
#include <google/protobuf/descriptor.h>
#include <google/protobuf/generated_message_reflection.h>
#include <google/protobuf/reflection_ops.h>
#include <google/protobuf/wire_format.h>
// @@protoc_insertion_point(includes)
#include <google/protobuf/port_def.inc>
extern PROTOBUF_INTERNAL_EXPORT_mqtt_5fasync_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ConnectOps_mqtt_5fasync_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_mqtt_5fasync_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateOpts_mqtt_5fasync_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_mqtt_5fasync_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendMessageEtc_mqtt_5fasync_2eproto;
extern PROTOBUF_INTERNAL_EXPORT_mqtt_5fasync_2eproto ::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SubscribeEtc_mqtt_5fasync_2eproto;
class CreateOptsDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<CreateOpts> _instance;
} _CreateOpts_default_instance_;
class ConnectOpsDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<ConnectOps> _instance;
} _ConnectOps_default_instance_;
class SendMessageEtcDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SendMessageEtc> _instance;
} _SendMessageEtc_default_instance_;
class SubscribeEtcDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<SubscribeEtc> _instance;
} _SubscribeEtc_default_instance_;
class MqttAsyncConfigDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<MqttAsyncConfig> _instance;
} _MqttAsyncConfig_default_instance_;
static void InitDefaultsscc_info_ConnectOps_mqtt_5fasync_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::_ConnectOps_default_instance_;
    new (ptr) ::ConnectOps();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::ConnectOps::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_ConnectOps_mqtt_5fasync_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_ConnectOps_mqtt_5fasync_2eproto}, {}};

static void InitDefaultsscc_info_CreateOpts_mqtt_5fasync_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::_CreateOpts_default_instance_;
    new (ptr) ::CreateOpts();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::CreateOpts::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_CreateOpts_mqtt_5fasync_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_CreateOpts_mqtt_5fasync_2eproto}, {}};

static void InitDefaultsscc_info_MqttAsyncConfig_mqtt_5fasync_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  ::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.DefaultConstruct();
  *::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.get_mutable() = std::string("mqtt://127.0.0.1:1883", 21);
  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyString(
      ::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.get_mutable());
  ::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.DefaultConstruct();
  *::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.get_mutable() = std::string("Auto", 4);
  ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyString(
      ::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.get_mutable());
  {
    void* ptr = &::_MqttAsyncConfig_default_instance_;
    new (ptr) ::MqttAsyncConfig();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::MqttAsyncConfig::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<4> scc_info_MqttAsyncConfig_mqtt_5fasync_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 4, 0, InitDefaultsscc_info_MqttAsyncConfig_mqtt_5fasync_2eproto}, {
      &scc_info_CreateOpts_mqtt_5fasync_2eproto.base,
      &scc_info_ConnectOps_mqtt_5fasync_2eproto.base,
      &scc_info_SendMessageEtc_mqtt_5fasync_2eproto.base,
      &scc_info_SubscribeEtc_mqtt_5fasync_2eproto.base,}};

static void InitDefaultsscc_info_SendMessageEtc_mqtt_5fasync_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::_SendMessageEtc_default_instance_;
    new (ptr) ::SendMessageEtc();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::SendMessageEtc::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SendMessageEtc_mqtt_5fasync_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SendMessageEtc_mqtt_5fasync_2eproto}, {}};

static void InitDefaultsscc_info_SubscribeEtc_mqtt_5fasync_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::_SubscribeEtc_default_instance_;
    new (ptr) ::SubscribeEtc();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::SubscribeEtc::InitAsDefaultInstance();
}

::PROTOBUF_NAMESPACE_ID::internal::SCCInfo<0> scc_info_SubscribeEtc_mqtt_5fasync_2eproto =
    {{ATOMIC_VAR_INIT(::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase::kUninitialized), 0, 0, InitDefaultsscc_info_SubscribeEtc_mqtt_5fasync_2eproto}, {}};

static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_mqtt_5fasync_2eproto[5];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_mqtt_5fasync_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_mqtt_5fasync_2eproto = nullptr;

const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_mqtt_5fasync_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  PROTOBUF_FIELD_OFFSET(::CreateOpts, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::CreateOpts, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::CreateOpts, maxbufferedmessages_),
  0,
  PROTOBUF_FIELD_OFFSET(::ConnectOps, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::ConnectOps, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::ConnectOps, cleansession_),
  PROTOBUF_FIELD_OFFSET(::ConnectOps, keepaliveinterval_),
  PROTOBUF_FIELD_OFFSET(::ConnectOps, automaticreconnect_),
  PROTOBUF_FIELD_OFFSET(::ConnectOps, minretryinterval_),
  PROTOBUF_FIELD_OFFSET(::ConnectOps, maxretryinterval_),
  1,
  0,
  2,
  3,
  4,
  PROTOBUF_FIELD_OFFSET(::SendMessageEtc, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::SendMessageEtc, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::SendMessageEtc, topic_),
  PROTOBUF_FIELD_OFFSET(::SendMessageEtc, qos_),
  0,
  1,
  PROTOBUF_FIELD_OFFSET(::SubscribeEtc, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::SubscribeEtc, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::SubscribeEtc, topic_),
  PROTOBUF_FIELD_OFFSET(::SubscribeEtc, qos_),
  0,
  1,
  PROTOBUF_FIELD_OFFSET(::MqttAsyncConfig, _has_bits_),
  PROTOBUF_FIELD_OFFSET(::MqttAsyncConfig, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::MqttAsyncConfig, address_),
  PROTOBUF_FIELD_OFFSET(::MqttAsyncConfig, client_id_),
  PROTOBUF_FIELD_OFFSET(::MqttAsyncConfig, create_opts_),
  PROTOBUF_FIELD_OFFSET(::MqttAsyncConfig, connect_ops_),
  PROTOBUF_FIELD_OFFSET(::MqttAsyncConfig, sendmessage_),
  PROTOBUF_FIELD_OFFSET(::MqttAsyncConfig, subscribe_),
  0,
  1,
  2,
  3,
  ~0u,
  ~0u,
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, 6, sizeof(::CreateOpts)},
  { 7, 17, sizeof(::ConnectOps)},
  { 22, 29, sizeof(::SendMessageEtc)},
  { 31, 38, sizeof(::SubscribeEtc)},
  { 40, 51, sizeof(::MqttAsyncConfig)},
};

static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_CreateOpts_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_ConnectOps_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_SendMessageEtc_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_SubscribeEtc_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::_MqttAsyncConfig_default_instance_),
};

const char descriptor_table_protodef_mqtt_5fasync_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\020mqtt_async.proto\032\036google/protobuf/wrap"
  "pers.proto\"0\n\nCreateOpts\022\"\n\023maxBufferedM"
  "essages\030\003 \001(\005:\00510000\"\244\001\n\nConnectOps\022\032\n\014c"
  "leansession\030\001 \001(\010:\004true\022\035\n\021keepAliveInte"
  "rval\030\002 \001(\005:\00230\022 \n\022automaticReconnect\030\003 \001"
  "(\010:\004true\022\033\n\020minRetryInterval\030\004 \001(\005:\0013\022\034\n"
  "\020maxRetryInterval\030\005 \001(\005:\00210\"/\n\016SendMessa"
  "geEtc\022\r\n\005topic\030\001 \002(\t\022\016\n\003qos\030\002 \001(\005:\0011\"-\n\014"
  "SubscribeEtc\022\r\n\005topic\030\001 \002(\t\022\016\n\003qos\030\002 \001(\005"
  ":\0011\"\336\001\n\017MqttAsyncConfig\022&\n\007address\030\001 \001(\t"
  ":\025mqtt://127.0.0.1:1883\022\027\n\tclient_id\030\002 \001"
  "(\t:\004Auto\022 \n\013create_opts\030\003 \001(\0132\013.CreateOp"
  "ts\022 \n\013connect_ops\030\004 \001(\0132\013.ConnectOps\022$\n\013"
  "sendMessage\030\005 \003(\0132\017.SendMessageEtc\022 \n\tsu"
  "bscribe\030\006 \003(\0132\r.SubscribeEtc"
  ;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_mqtt_5fasync_2eproto_deps[1] = {
  &::descriptor_table_google_2fprotobuf_2fwrappers_2eproto,
};
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_mqtt_5fasync_2eproto_sccs[5] = {
  &scc_info_ConnectOps_mqtt_5fasync_2eproto.base,
  &scc_info_CreateOpts_mqtt_5fasync_2eproto.base,
  &scc_info_MqttAsyncConfig_mqtt_5fasync_2eproto.base,
  &scc_info_SendMessageEtc_mqtt_5fasync_2eproto.base,
  &scc_info_SubscribeEtc_mqtt_5fasync_2eproto.base,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_mqtt_5fasync_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_mqtt_5fasync_2eproto = {
  false, false, descriptor_table_protodef_mqtt_5fasync_2eproto, "mqtt_async.proto", 588,
  &descriptor_table_mqtt_5fasync_2eproto_once, descriptor_table_mqtt_5fasync_2eproto_sccs, descriptor_table_mqtt_5fasync_2eproto_deps, 5, 1,
  schemas, file_default_instances, TableStruct_mqtt_5fasync_2eproto::offsets,
  file_level_metadata_mqtt_5fasync_2eproto, 5, file_level_enum_descriptors_mqtt_5fasync_2eproto, file_level_service_descriptors_mqtt_5fasync_2eproto,
};

// Force running AddDescriptors() at dynamic initialization time.
static bool dynamic_init_dummy_mqtt_5fasync_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_mqtt_5fasync_2eproto)), true);

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

void CreateOpts::InitAsDefaultInstance() {
}
class CreateOpts::_Internal {
 public:
  using HasBits = decltype(std::declval<CreateOpts>()._has_bits_);
  static void set_has_maxbufferedmessages(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
};

CreateOpts::CreateOpts(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:CreateOpts)
}
CreateOpts::CreateOpts(const CreateOpts& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  maxbufferedmessages_ = from.maxbufferedmessages_;
  // @@protoc_insertion_point(copy_constructor:CreateOpts)
}

void CreateOpts::SharedCtor() {
  maxbufferedmessages_ = 10000;
}

CreateOpts::~CreateOpts() {
  // @@protoc_insertion_point(destructor:CreateOpts)
  SharedDtor();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void CreateOpts::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
}

void CreateOpts::ArenaDtor(void* object) {
  CreateOpts* _this = reinterpret_cast< CreateOpts* >(object);
  (void)_this;
}
void CreateOpts::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void CreateOpts::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const CreateOpts& CreateOpts::default_instance() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_CreateOpts_mqtt_5fasync_2eproto.base);
  return *internal_default_instance();
}


void CreateOpts::Clear() {
// @@protoc_insertion_point(message_clear_start:CreateOpts)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  maxbufferedmessages_ = 10000;
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* CreateOpts::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // optional int32 maxBufferedMessages = 3 [default = 10000];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
          _Internal::set_has_maxbufferedmessages(&has_bits);
          maxbufferedmessages_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* CreateOpts::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:CreateOpts)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional int32 maxBufferedMessages = 3 [default = 10000];
  if (cached_has_bits & 0x00000001u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(3, this->_internal_maxbufferedmessages(), target);
  }

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

size_t CreateOpts::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:CreateOpts)
  size_t total_size = 0;

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

  // optional int32 maxBufferedMessages = 3 [default = 10000];
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000001u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_maxbufferedmessages());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void CreateOpts::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:CreateOpts)
  GOOGLE_DCHECK_NE(&from, this);
  const CreateOpts* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<CreateOpts>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:CreateOpts)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:CreateOpts)
    MergeFrom(*source);
  }
}

void CreateOpts::MergeFrom(const CreateOpts& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:CreateOpts)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  if (from._internal_has_maxbufferedmessages()) {
    _internal_set_maxbufferedmessages(from._internal_maxbufferedmessages());
  }
}

void CreateOpts::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:CreateOpts)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

void CreateOpts::InternalSwap(CreateOpts* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  swap(maxbufferedmessages_, other->maxbufferedmessages_);
}

::PROTOBUF_NAMESPACE_ID::Metadata CreateOpts::GetMetadata() const {
  return GetMetadataStatic();
}


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

void ConnectOps::InitAsDefaultInstance() {
}
class ConnectOps::_Internal {
 public:
  using HasBits = decltype(std::declval<ConnectOps>()._has_bits_);
  static void set_has_cleansession(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static void set_has_keepaliveinterval(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_automaticreconnect(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static void set_has_minretryinterval(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
  static void set_has_maxretryinterval(HasBits* has_bits) {
    (*has_bits)[0] |= 16u;
  }
};

ConnectOps::ConnectOps(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:ConnectOps)
}
ConnectOps::ConnectOps(const ConnectOps& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::memcpy(&keepaliveinterval_, &from.keepaliveinterval_,
    static_cast<size_t>(reinterpret_cast<char*>(&maxretryinterval_) -
    reinterpret_cast<char*>(&keepaliveinterval_)) + sizeof(maxretryinterval_));
  // @@protoc_insertion_point(copy_constructor:ConnectOps)
}

void ConnectOps::SharedCtor() {
  keepaliveinterval_ = 30;
  cleansession_ = true;
  automaticreconnect_ = true;
  minretryinterval_ = 3;
  maxretryinterval_ = 10;
}

ConnectOps::~ConnectOps() {
  // @@protoc_insertion_point(destructor:ConnectOps)
  SharedDtor();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void ConnectOps::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
}

void ConnectOps::ArenaDtor(void* object) {
  ConnectOps* _this = reinterpret_cast< ConnectOps* >(object);
  (void)_this;
}
void ConnectOps::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void ConnectOps::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const ConnectOps& ConnectOps::default_instance() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_ConnectOps_mqtt_5fasync_2eproto.base);
  return *internal_default_instance();
}


void ConnectOps::Clear() {
// @@protoc_insertion_point(message_clear_start:ConnectOps)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000001fu) {
    keepaliveinterval_ = 30;
    cleansession_ = true;
    automaticreconnect_ = true;
    minretryinterval_ = 3;
    maxretryinterval_ = 10;
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* ConnectOps::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // optional bool cleansession = 1 [default = true];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
          _Internal::set_has_cleansession(&has_bits);
          cleansession_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional int32 keepAliveInterval = 2 [default = 30];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_keepaliveinterval(&has_bits);
          keepaliveinterval_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional bool automaticReconnect = 3 [default = true];
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
          _Internal::set_has_automaticreconnect(&has_bits);
          automaticreconnect_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional int32 minRetryInterval = 4 [default = 3];
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 32)) {
          _Internal::set_has_minretryinterval(&has_bits);
          minretryinterval_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional int32 maxRetryInterval = 5 [default = 10];
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 40)) {
          _Internal::set_has_maxretryinterval(&has_bits);
          maxretryinterval_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* ConnectOps::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:ConnectOps)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional bool cleansession = 1 [default = true];
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(1, this->_internal_cleansession(), target);
  }

  // optional int32 keepAliveInterval = 2 [default = 30];
  if (cached_has_bits & 0x00000001u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_keepaliveinterval(), target);
  }

  // optional bool automaticReconnect = 3 [default = true];
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_automaticreconnect(), target);
  }

  // optional int32 minRetryInterval = 4 [default = 3];
  if (cached_has_bits & 0x00000008u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(4, this->_internal_minretryinterval(), target);
  }

  // optional int32 maxRetryInterval = 5 [default = 10];
  if (cached_has_bits & 0x00000010u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(5, this->_internal_maxretryinterval(), target);
  }

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

size_t ConnectOps::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ConnectOps)
  size_t total_size = 0;

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

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000001fu) {
    // optional int32 keepAliveInterval = 2 [default = 30];
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
          this->_internal_keepaliveinterval());
    }

    // optional bool cleansession = 1 [default = true];
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 + 1;
    }

    // optional bool automaticReconnect = 3 [default = true];
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 + 1;
    }

    // optional int32 minRetryInterval = 4 [default = 3];
    if (cached_has_bits & 0x00000008u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
          this->_internal_minretryinterval());
    }

    // optional int32 maxRetryInterval = 5 [default = 10];
    if (cached_has_bits & 0x00000010u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
          this->_internal_maxretryinterval());
    }

  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void ConnectOps::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ConnectOps)
  GOOGLE_DCHECK_NE(&from, this);
  const ConnectOps* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<ConnectOps>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:ConnectOps)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:ConnectOps)
    MergeFrom(*source);
  }
}

void ConnectOps::MergeFrom(const ConnectOps& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ConnectOps)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x0000001fu) {
    if (cached_has_bits & 0x00000001u) {
      keepaliveinterval_ = from.keepaliveinterval_;
    }
    if (cached_has_bits & 0x00000002u) {
      cleansession_ = from.cleansession_;
    }
    if (cached_has_bits & 0x00000004u) {
      automaticreconnect_ = from.automaticreconnect_;
    }
    if (cached_has_bits & 0x00000008u) {
      minretryinterval_ = from.minretryinterval_;
    }
    if (cached_has_bits & 0x00000010u) {
      maxretryinterval_ = from.maxretryinterval_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void ConnectOps::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ConnectOps)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

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

void ConnectOps::InternalSwap(ConnectOps* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  swap(keepaliveinterval_, other->keepaliveinterval_);
  swap(cleansession_, other->cleansession_);
  swap(automaticreconnect_, other->automaticreconnect_);
  swap(minretryinterval_, other->minretryinterval_);
  swap(maxretryinterval_, other->maxretryinterval_);
}

::PROTOBUF_NAMESPACE_ID::Metadata ConnectOps::GetMetadata() const {
  return GetMetadataStatic();
}


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

void SendMessageEtc::InitAsDefaultInstance() {
}
class SendMessageEtc::_Internal {
 public:
  using HasBits = decltype(std::declval<SendMessageEtc>()._has_bits_);
  static void set_has_topic(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_qos(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
  }
};

SendMessageEtc::SendMessageEtc(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:SendMessageEtc)
}
SendMessageEtc::SendMessageEtc(const SendMessageEtc& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  topic_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_topic()) {
    topic_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_topic(),
      GetArena());
  }
  qos_ = from.qos_;
  // @@protoc_insertion_point(copy_constructor:SendMessageEtc)
}

void SendMessageEtc::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SendMessageEtc_mqtt_5fasync_2eproto.base);
  topic_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  qos_ = 1;
}

SendMessageEtc::~SendMessageEtc() {
  // @@protoc_insertion_point(destructor:SendMessageEtc)
  SharedDtor();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void SendMessageEtc::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  topic_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}

void SendMessageEtc::ArenaDtor(void* object) {
  SendMessageEtc* _this = reinterpret_cast< SendMessageEtc* >(object);
  (void)_this;
}
void SendMessageEtc::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void SendMessageEtc::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const SendMessageEtc& SendMessageEtc::default_instance() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SendMessageEtc_mqtt_5fasync_2eproto.base);
  return *internal_default_instance();
}


void SendMessageEtc::Clear() {
// @@protoc_insertion_point(message_clear_start:SendMessageEtc)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      topic_.ClearNonDefaultToEmpty();
    }
    qos_ = 1;
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* SendMessageEtc::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // required string topic = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          auto str = _internal_mutable_topic();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "SendMessageEtc.topic");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional int32 qos = 2 [default = 1];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_qos(&has_bits);
          qos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* SendMessageEtc::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:SendMessageEtc)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required string topic = 1;
  if (cached_has_bits & 0x00000001u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_topic().data(), static_cast<int>(this->_internal_topic().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "SendMessageEtc.topic");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_topic(), target);
  }

  // optional int32 qos = 2 [default = 1];
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_qos(), target);
  }

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

size_t SendMessageEtc::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:SendMessageEtc)
  size_t total_size = 0;

  // required string topic = 1;
  if (_internal_has_topic()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_topic());
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // optional int32 qos = 2 [default = 1];
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000002u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_qos());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void SendMessageEtc::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:SendMessageEtc)
  GOOGLE_DCHECK_NE(&from, this);
  const SendMessageEtc* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SendMessageEtc>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:SendMessageEtc)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:SendMessageEtc)
    MergeFrom(*source);
  }
}

void SendMessageEtc::MergeFrom(const SendMessageEtc& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:SendMessageEtc)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      _internal_set_topic(from._internal_topic());
    }
    if (cached_has_bits & 0x00000002u) {
      qos_ = from.qos_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void SendMessageEtc::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:SendMessageEtc)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

bool SendMessageEtc::IsInitialized() const {
  if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  return true;
}

void SendMessageEtc::InternalSwap(SendMessageEtc* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  topic_.Swap(&other->topic_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  swap(qos_, other->qos_);
}

::PROTOBUF_NAMESPACE_ID::Metadata SendMessageEtc::GetMetadata() const {
  return GetMetadataStatic();
}


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

void SubscribeEtc::InitAsDefaultInstance() {
}
class SubscribeEtc::_Internal {
 public:
  using HasBits = decltype(std::declval<SubscribeEtc>()._has_bits_);
  static void set_has_topic(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_qos(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static bool MissingRequiredFields(const HasBits& has_bits) {
    return ((has_bits[0] & 0x00000001) ^ 0x00000001) != 0;
  }
};

SubscribeEtc::SubscribeEtc(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:SubscribeEtc)
}
SubscribeEtc::SubscribeEtc(const SubscribeEtc& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  topic_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (from._internal_has_topic()) {
    topic_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_topic(),
      GetArena());
  }
  qos_ = from.qos_;
  // @@protoc_insertion_point(copy_constructor:SubscribeEtc)
}

void SubscribeEtc::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_SubscribeEtc_mqtt_5fasync_2eproto.base);
  topic_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  qos_ = 1;
}

SubscribeEtc::~SubscribeEtc() {
  // @@protoc_insertion_point(destructor:SubscribeEtc)
  SharedDtor();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void SubscribeEtc::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  topic_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}

void SubscribeEtc::ArenaDtor(void* object) {
  SubscribeEtc* _this = reinterpret_cast< SubscribeEtc* >(object);
  (void)_this;
}
void SubscribeEtc::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void SubscribeEtc::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const SubscribeEtc& SubscribeEtc::default_instance() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_SubscribeEtc_mqtt_5fasync_2eproto.base);
  return *internal_default_instance();
}


void SubscribeEtc::Clear() {
// @@protoc_insertion_point(message_clear_start:SubscribeEtc)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      topic_.ClearNonDefaultToEmpty();
    }
    qos_ = 1;
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* SubscribeEtc::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // required string topic = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          auto str = _internal_mutable_topic();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "SubscribeEtc.topic");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional int32 qos = 2 [default = 1];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 16)) {
          _Internal::set_has_qos(&has_bits);
          qos_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* SubscribeEtc::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:SubscribeEtc)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // required string topic = 1;
  if (cached_has_bits & 0x00000001u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_topic().data(), static_cast<int>(this->_internal_topic().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "SubscribeEtc.topic");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_topic(), target);
  }

  // optional int32 qos = 2 [default = 1];
  if (cached_has_bits & 0x00000002u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(2, this->_internal_qos(), target);
  }

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

size_t SubscribeEtc::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:SubscribeEtc)
  size_t total_size = 0;

  // required string topic = 1;
  if (_internal_has_topic()) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_topic());
  }
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  // optional int32 qos = 2 [default = 1];
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x00000002u) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_qos());
  }

  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void SubscribeEtc::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:SubscribeEtc)
  GOOGLE_DCHECK_NE(&from, this);
  const SubscribeEtc* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<SubscribeEtc>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:SubscribeEtc)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:SubscribeEtc)
    MergeFrom(*source);
  }
}

void SubscribeEtc::MergeFrom(const SubscribeEtc& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:SubscribeEtc)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x00000003u) {
    if (cached_has_bits & 0x00000001u) {
      _internal_set_topic(from._internal_topic());
    }
    if (cached_has_bits & 0x00000002u) {
      qos_ = from.qos_;
    }
    _has_bits_[0] |= cached_has_bits;
  }
}

void SubscribeEtc::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:SubscribeEtc)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

bool SubscribeEtc::IsInitialized() const {
  if (_Internal::MissingRequiredFields(_has_bits_)) return false;
  return true;
}

void SubscribeEtc::InternalSwap(SubscribeEtc* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  topic_.Swap(&other->topic_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  swap(qos_, other->qos_);
}

::PROTOBUF_NAMESPACE_ID::Metadata SubscribeEtc::GetMetadata() const {
  return GetMetadataStatic();
}


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

void MqttAsyncConfig::InitAsDefaultInstance() {
  ::_MqttAsyncConfig_default_instance_._instance.get_mutable()->create_opts_ = const_cast< ::CreateOpts*>(
      ::CreateOpts::internal_default_instance());
  ::_MqttAsyncConfig_default_instance_._instance.get_mutable()->connect_ops_ = const_cast< ::ConnectOps*>(
      ::ConnectOps::internal_default_instance());
}
class MqttAsyncConfig::_Internal {
 public:
  using HasBits = decltype(std::declval<MqttAsyncConfig>()._has_bits_);
  static void set_has_address(HasBits* has_bits) {
    (*has_bits)[0] |= 1u;
  }
  static void set_has_client_id(HasBits* has_bits) {
    (*has_bits)[0] |= 2u;
  }
  static const ::CreateOpts& create_opts(const MqttAsyncConfig* msg);
  static void set_has_create_opts(HasBits* has_bits) {
    (*has_bits)[0] |= 4u;
  }
  static const ::ConnectOps& connect_ops(const MqttAsyncConfig* msg);
  static void set_has_connect_ops(HasBits* has_bits) {
    (*has_bits)[0] |= 8u;
  }
};

const ::CreateOpts&
MqttAsyncConfig::_Internal::create_opts(const MqttAsyncConfig* msg) {
  return *msg->create_opts_;
}
const ::ConnectOps&
MqttAsyncConfig::_Internal::connect_ops(const MqttAsyncConfig* msg) {
  return *msg->connect_ops_;
}
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_;
::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<std::string> MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_;
MqttAsyncConfig::MqttAsyncConfig(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena),
  sendmessage_(arena),
  subscribe_(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:MqttAsyncConfig)
}
MqttAsyncConfig::MqttAsyncConfig(const MqttAsyncConfig& from)
  : ::PROTOBUF_NAMESPACE_ID::Message(),
      _has_bits_(from._has_bits_),
      sendmessage_(from.sendmessage_),
      subscribe_(from.subscribe_) {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  address_.UnsafeSetDefault(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.get());
  if (from._internal_has_address()) {
    address_.Set(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.get(), from._internal_address(),
      GetArena());
  }
  client_id_.UnsafeSetDefault(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.get());
  if (from._internal_has_client_id()) {
    client_id_.Set(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.get(), from._internal_client_id(),
      GetArena());
  }
  if (from._internal_has_create_opts()) {
    create_opts_ = new ::CreateOpts(*from.create_opts_);
  } else {
    create_opts_ = nullptr;
  }
  if (from._internal_has_connect_ops()) {
    connect_ops_ = new ::ConnectOps(*from.connect_ops_);
  } else {
    connect_ops_ = nullptr;
  }
  // @@protoc_insertion_point(copy_constructor:MqttAsyncConfig)
}

void MqttAsyncConfig::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_MqttAsyncConfig_mqtt_5fasync_2eproto.base);
  address_.UnsafeSetDefault(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.get());
  client_id_.UnsafeSetDefault(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.get());
  ::memset(&create_opts_, 0, static_cast<size_t>(
      reinterpret_cast<char*>(&connect_ops_) -
      reinterpret_cast<char*>(&create_opts_)) + sizeof(connect_ops_));
}

MqttAsyncConfig::~MqttAsyncConfig() {
  // @@protoc_insertion_point(destructor:MqttAsyncConfig)
  SharedDtor();
  _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

void MqttAsyncConfig::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  address_.DestroyNoArena(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.get());
  client_id_.DestroyNoArena(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.get());
  if (this != internal_default_instance()) delete create_opts_;
  if (this != internal_default_instance()) delete connect_ops_;
}

void MqttAsyncConfig::ArenaDtor(void* object) {
  MqttAsyncConfig* _this = reinterpret_cast< MqttAsyncConfig* >(object);
  (void)_this;
}
void MqttAsyncConfig::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
}
void MqttAsyncConfig::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const MqttAsyncConfig& MqttAsyncConfig::default_instance() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&::scc_info_MqttAsyncConfig_mqtt_5fasync_2eproto.base);
  return *internal_default_instance();
}


void MqttAsyncConfig::Clear() {
// @@protoc_insertion_point(message_clear_start:MqttAsyncConfig)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  sendmessage_.Clear();
  subscribe_.Clear();
  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000000fu) {
    if (cached_has_bits & 0x00000001u) {
      address_.ClearToDefault(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.get(), GetArena());
    }
    if (cached_has_bits & 0x00000002u) {
      client_id_.ClearToDefault(&::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.get(), GetArena());
    }
    if (cached_has_bits & 0x00000004u) {
      GOOGLE_DCHECK(create_opts_ != nullptr);
      create_opts_->Clear();
    }
    if (cached_has_bits & 0x00000008u) {
      GOOGLE_DCHECK(connect_ops_ != nullptr);
      connect_ops_->Clear();
    }
  }
  _has_bits_.Clear();
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* MqttAsyncConfig::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  _Internal::HasBits has_bits{};
  ::PROTOBUF_NAMESPACE_ID::Arena* arena = GetArena(); (void)arena;
  while (!ctx->Done(&ptr)) {
    ::PROTOBUF_NAMESPACE_ID::uint32 tag;
    ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
    CHK_(ptr);
    switch (tag >> 3) {
      // optional string address = 1 [default = "mqtt://127.0.0.1:1883"];
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          auto str = _internal_mutable_address();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "MqttAsyncConfig.address");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional string client_id = 2 [default = "Auto"];
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
          auto str = _internal_mutable_client_id();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          #ifndef NDEBUG
          ::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "MqttAsyncConfig.client_id");
          #endif  // !NDEBUG
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .CreateOpts create_opts = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 26)) {
          ptr = ctx->ParseMessage(_internal_mutable_create_opts(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // optional .ConnectOps connect_ops = 4;
      case 4:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 34)) {
          ptr = ctx->ParseMessage(_internal_mutable_connect_ops(), ptr);
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // repeated .SendMessageEtc sendMessage = 5;
      case 5:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 42)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_sendmessage(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<42>(ptr));
        } else goto handle_unusual;
        continue;
      // repeated .SubscribeEtc subscribe = 6;
      case 6:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 50)) {
          ptr -= 1;
          do {
            ptr += 1;
            ptr = ctx->ParseMessage(_internal_add_subscribe(), ptr);
            CHK_(ptr);
            if (!ctx->DataAvailable(ptr)) break;
          } while (::PROTOBUF_NAMESPACE_ID::internal::ExpectTag<50>(ptr));
        } else goto handle_unusual;
        continue;
      default: {
      handle_unusual:
        if ((tag & 7) == 4 || tag == 0) {
          ctx->SetLastTag(tag);
          goto success;
        }
        ptr = UnknownFieldParse(tag,
            _internal_metadata_.mutable_unknown_fields<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(),
            ptr, ctx);
        CHK_(ptr != nullptr);
        continue;
      }
    }  // switch
  }  // while
success:
  _has_bits_.Or(has_bits);
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

::PROTOBUF_NAMESPACE_ID::uint8* MqttAsyncConfig::_InternalSerialize(
    ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
  // @@protoc_insertion_point(serialize_to_array_start:MqttAsyncConfig)
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  cached_has_bits = _has_bits_[0];
  // optional string address = 1 [default = "mqtt://127.0.0.1:1883"];
  if (cached_has_bits & 0x00000001u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_address().data(), static_cast<int>(this->_internal_address().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "MqttAsyncConfig.address");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_address(), target);
  }

  // optional string client_id = 2 [default = "Auto"];
  if (cached_has_bits & 0x00000002u) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::VerifyUTF8StringNamedField(
      this->_internal_client_id().data(), static_cast<int>(this->_internal_client_id().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormat::SERIALIZE,
      "MqttAsyncConfig.client_id");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_client_id(), target);
  }

  // optional .CreateOpts create_opts = 3;
  if (cached_has_bits & 0x00000004u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        3, _Internal::create_opts(this), target, stream);
  }

  // optional .ConnectOps connect_ops = 4;
  if (cached_has_bits & 0x00000008u) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(
        4, _Internal::connect_ops(this), target, stream);
  }

  // repeated .SendMessageEtc sendMessage = 5;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_sendmessage_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(5, this->_internal_sendmessage(i), target, stream);
  }

  // repeated .SubscribeEtc subscribe = 6;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->_internal_subscribe_size()); i < n; i++) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
      InternalWriteMessage(6, this->_internal_subscribe(i), target, stream);
  }

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

size_t MqttAsyncConfig::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:MqttAsyncConfig)
  size_t total_size = 0;

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

  // repeated .SendMessageEtc sendMessage = 5;
  total_size += 1UL * this->_internal_sendmessage_size();
  for (const auto& msg : this->sendmessage_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  // repeated .SubscribeEtc subscribe = 6;
  total_size += 1UL * this->_internal_subscribe_size();
  for (const auto& msg : this->subscribe_) {
    total_size +=
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(msg);
  }

  cached_has_bits = _has_bits_[0];
  if (cached_has_bits & 0x0000000fu) {
    // optional string address = 1 [default = "mqtt://127.0.0.1:1883"];
    if (cached_has_bits & 0x00000001u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
          this->_internal_address());
    }

    // optional string client_id = 2 [default = "Auto"];
    if (cached_has_bits & 0x00000002u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
          this->_internal_client_id());
    }

    // optional .CreateOpts create_opts = 3;
    if (cached_has_bits & 0x00000004u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *create_opts_);
    }

    // optional .ConnectOps connect_ops = 4;
    if (cached_has_bits & 0x00000008u) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *connect_ops_);
    }

  }
  if (PROTOBUF_PREDICT_FALSE(_internal_metadata_.have_unknown_fields())) {
    return ::PROTOBUF_NAMESPACE_ID::internal::ComputeUnknownFieldsSize(
        _internal_metadata_, total_size, &_cached_size_);
  }
  int cached_size = ::PROTOBUF_NAMESPACE_ID::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void MqttAsyncConfig::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:MqttAsyncConfig)
  GOOGLE_DCHECK_NE(&from, this);
  const MqttAsyncConfig* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<MqttAsyncConfig>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:MqttAsyncConfig)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:MqttAsyncConfig)
    MergeFrom(*source);
  }
}

void MqttAsyncConfig::MergeFrom(const MqttAsyncConfig& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:MqttAsyncConfig)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  sendmessage_.MergeFrom(from.sendmessage_);
  subscribe_.MergeFrom(from.subscribe_);
  cached_has_bits = from._has_bits_[0];
  if (cached_has_bits & 0x0000000fu) {
    if (cached_has_bits & 0x00000001u) {
      _internal_set_address(from._internal_address());
    }
    if (cached_has_bits & 0x00000002u) {
      _internal_set_client_id(from._internal_client_id());
    }
    if (cached_has_bits & 0x00000004u) {
      _internal_mutable_create_opts()->::CreateOpts::MergeFrom(from._internal_create_opts());
    }
    if (cached_has_bits & 0x00000008u) {
      _internal_mutable_connect_ops()->::ConnectOps::MergeFrom(from._internal_connect_ops());
    }
  }
}

void MqttAsyncConfig::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:MqttAsyncConfig)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

bool MqttAsyncConfig::IsInitialized() const {
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(sendmessage_)) return false;
  if (!::PROTOBUF_NAMESPACE_ID::internal::AllAreInitialized(subscribe_)) return false;
  return true;
}

void MqttAsyncConfig::InternalSwap(MqttAsyncConfig* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(_has_bits_[0], other->_has_bits_[0]);
  sendmessage_.InternalSwap(&other->sendmessage_);
  subscribe_.InternalSwap(&other->subscribe_);
  address_.Swap(&other->address_, &::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_address_.get(), GetArena());
  client_id_.Swap(&other->client_id_, &::MqttAsyncConfig::_i_give_permission_to_break_this_code_default_client_id_.get(), GetArena());
  ::PROTOBUF_NAMESPACE_ID::internal::memswap<
      PROTOBUF_FIELD_OFFSET(MqttAsyncConfig, connect_ops_)
      + sizeof(MqttAsyncConfig::connect_ops_)
      - PROTOBUF_FIELD_OFFSET(MqttAsyncConfig, create_opts_)>(
          reinterpret_cast<char*>(&create_opts_),
          reinterpret_cast<char*>(&other->create_opts_));
}

::PROTOBUF_NAMESPACE_ID::Metadata MqttAsyncConfig::GetMetadata() const {
  return GetMetadataStatic();
}


// @@protoc_insertion_point(namespace_scope)
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::CreateOpts* Arena::CreateMaybeMessage< ::CreateOpts >(Arena* arena) {
  return Arena::CreateMessageInternal< ::CreateOpts >(arena);
}
template<> PROTOBUF_NOINLINE ::ConnectOps* Arena::CreateMaybeMessage< ::ConnectOps >(Arena* arena) {
  return Arena::CreateMessageInternal< ::ConnectOps >(arena);
}
template<> PROTOBUF_NOINLINE ::SendMessageEtc* Arena::CreateMaybeMessage< ::SendMessageEtc >(Arena* arena) {
  return Arena::CreateMessageInternal< ::SendMessageEtc >(arena);
}
template<> PROTOBUF_NOINLINE ::SubscribeEtc* Arena::CreateMaybeMessage< ::SubscribeEtc >(Arena* arena) {
  return Arena::CreateMessageInternal< ::SubscribeEtc >(arena);
}
template<> PROTOBUF_NOINLINE ::MqttAsyncConfig* Arena::CreateMaybeMessage< ::MqttAsyncConfig >(Arena* arena) {
  return Arena::CreateMessageInternal< ::MqttAsyncConfig >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

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