// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: proto/services/request/topicSubscription.proto

#include "proto/services/request/topicSubscription.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/io/coded_stream.h>
#include <google/protobuf/wire_format_lite_inl.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>
// This is a temporary google only hack
#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
#include "third_party/protobuf/version.h"
#endif
// @@protoc_insertion_point(includes)

namespace ubii {
namespace services {
namespace request {
class TopicSubscriptionDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<TopicSubscription>
      _instance;
} _TopicSubscription_default_instance_;
}  // namespace request
}  // namespace services
}  // namespace ubii
namespace protobuf_proto_2fservices_2frequest_2ftopicSubscription_2eproto {
static void InitDefaultsTopicSubscription() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::ubii::services::request::_TopicSubscription_default_instance_;
    new (ptr) ::ubii::services::request::TopicSubscription();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::ubii::services::request::TopicSubscription::InitAsDefaultInstance();
}

::google::protobuf::internal::SCCInfo<0> scc_info_TopicSubscription =
    {{ATOMIC_VAR_INIT(::google::protobuf::internal::SCCInfoBase::kUninitialized), 0, InitDefaultsTopicSubscription}, {}};

void InitDefaults() {
  ::google::protobuf::internal::InitSCC(&scc_info_TopicSubscription.base);
}

::google::protobuf::Metadata file_level_metadata[1];

const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ubii::services::request::TopicSubscription, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ubii::services::request::TopicSubscription, client_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ubii::services::request::TopicSubscription, subscribe_topics_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ubii::services::request::TopicSubscription, unsubscribe_topics_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ubii::services::request::TopicSubscription, subscribe_topic_regexp_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::ubii::services::request::TopicSubscription, unsubscribe_topic_regexp_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(::ubii::services::request::TopicSubscription)},
};

static ::google::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::google::protobuf::Message*>(&::ubii::services::request::_TopicSubscription_default_instance_),
};

void protobuf_AssignDescriptors() {
  AddDescriptors();
  AssignDescriptors(
      "proto/services/request/topicSubscription.proto", schemas, file_default_instances, TableStruct::offsets,
      file_level_metadata, NULL, NULL);
}

void protobuf_AssignDescriptorsOnce() {
  static ::google::protobuf::internal::once_flag once;
  ::google::protobuf::internal::call_once(once, protobuf_AssignDescriptors);
}

void protobuf_RegisterTypes(const ::std::string&) GOOGLE_PROTOBUF_ATTRIBUTE_COLD;
void protobuf_RegisterTypes(const ::std::string&) {
  protobuf_AssignDescriptorsOnce();
  ::google::protobuf::internal::RegisterAllTypes(file_level_metadata, 1);
}

void AddDescriptorsImpl() {
  InitDefaults();
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
      "\n.proto/services/request/topicSubscripti"
      "on.proto\022\025ubii.services.request\"\236\001\n\021Topi"
      "cSubscription\022\021\n\tclient_id\030\001 \001(\t\022\030\n\020subs"
      "cribe_topics\030\002 \003(\t\022\032\n\022unsubscribe_topics"
      "\030\003 \003(\t\022\036\n\026subscribe_topic_regexp\030\004 \003(\t\022 "
      "\n\030unsubscribe_topic_regexp\030\005 \003(\tb\006proto3"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 240);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "proto/services/request/topicSubscription.proto", &protobuf_RegisterTypes);
}

void AddDescriptors() {
  static ::google::protobuf::internal::once_flag once;
  ::google::protobuf::internal::call_once(once, AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at dynamic initialization time.
struct StaticDescriptorInitializer {
  StaticDescriptorInitializer() {
    AddDescriptors();
  }
} static_descriptor_initializer;
}  // namespace protobuf_proto_2fservices_2frequest_2ftopicSubscription_2eproto
namespace ubii {
namespace services {
namespace request {

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

void TopicSubscription::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int TopicSubscription::kClientIdFieldNumber;
const int TopicSubscription::kSubscribeTopicsFieldNumber;
const int TopicSubscription::kUnsubscribeTopicsFieldNumber;
const int TopicSubscription::kSubscribeTopicRegexpFieldNumber;
const int TopicSubscription::kUnsubscribeTopicRegexpFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

TopicSubscription::TopicSubscription()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  ::google::protobuf::internal::InitSCC(
      &protobuf_proto_2fservices_2frequest_2ftopicSubscription_2eproto::scc_info_TopicSubscription.base);
  SharedCtor();
  // @@protoc_insertion_point(constructor:ubii.services.request.TopicSubscription)
}
TopicSubscription::TopicSubscription(const TopicSubscription& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      subscribe_topics_(from.subscribe_topics_),
      unsubscribe_topics_(from.unsubscribe_topics_),
      subscribe_topic_regexp_(from.subscribe_topic_regexp_),
      unsubscribe_topic_regexp_(from.unsubscribe_topic_regexp_) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.client_id().size() > 0) {
    client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_);
  }
  // @@protoc_insertion_point(copy_constructor:ubii.services.request.TopicSubscription)
}

void TopicSubscription::SharedCtor() {
  client_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

TopicSubscription::~TopicSubscription() {
  // @@protoc_insertion_point(destructor:ubii.services.request.TopicSubscription)
  SharedDtor();
}

void TopicSubscription::SharedDtor() {
  client_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void TopicSubscription::SetCachedSize(int size) const {
  _cached_size_.Set(size);
}
const ::google::protobuf::Descriptor* TopicSubscription::descriptor() {
  ::protobuf_proto_2fservices_2frequest_2ftopicSubscription_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_proto_2fservices_2frequest_2ftopicSubscription_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const TopicSubscription& TopicSubscription::default_instance() {
  ::google::protobuf::internal::InitSCC(&protobuf_proto_2fservices_2frequest_2ftopicSubscription_2eproto::scc_info_TopicSubscription.base);
  return *internal_default_instance();
}


void TopicSubscription::Clear() {
// @@protoc_insertion_point(message_clear_start:ubii.services.request.TopicSubscription)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  subscribe_topics_.Clear();
  unsubscribe_topics_.Clear();
  subscribe_topic_regexp_.Clear();
  unsubscribe_topic_regexp_.Clear();
  client_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  _internal_metadata_.Clear();
}

bool TopicSubscription::MergePartialFromCodedStream(
    ::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!GOOGLE_PREDICT_TRUE(EXPRESSION)) goto failure
  ::google::protobuf::uint32 tag;
  // @@protoc_insertion_point(parse_start:ubii.services.request.TopicSubscription)
  for (;;) {
    ::std::pair<::google::protobuf::uint32, bool> p = input->ReadTagWithCutoffNoLastTag(127u);
    tag = p.first;
    if (!p.second) goto handle_unusual;
    switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
      // string client_id = 1;
      case 1: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(10u /* 10 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->mutable_client_id()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->client_id().data(), static_cast<int>(this->client_id().length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "ubii.services.request.TopicSubscription.client_id"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated string subscribe_topics = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->add_subscribe_topics()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->subscribe_topics(this->subscribe_topics_size() - 1).data(),
            static_cast<int>(this->subscribe_topics(this->subscribe_topics_size() - 1).length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "ubii.services.request.TopicSubscription.subscribe_topics"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated string unsubscribe_topics = 3;
      case 3: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(26u /* 26 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->add_unsubscribe_topics()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->unsubscribe_topics(this->unsubscribe_topics_size() - 1).data(),
            static_cast<int>(this->unsubscribe_topics(this->unsubscribe_topics_size() - 1).length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "ubii.services.request.TopicSubscription.unsubscribe_topics"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated string subscribe_topic_regexp = 4;
      case 4: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(34u /* 34 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->add_subscribe_topic_regexp()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->subscribe_topic_regexp(this->subscribe_topic_regexp_size() - 1).data(),
            static_cast<int>(this->subscribe_topic_regexp(this->subscribe_topic_regexp_size() - 1).length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "ubii.services.request.TopicSubscription.subscribe_topic_regexp"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated string unsubscribe_topic_regexp = 5;
      case 5: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(42u /* 42 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadString(
                input, this->add_unsubscribe_topic_regexp()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->unsubscribe_topic_regexp(this->unsubscribe_topic_regexp_size() - 1).data(),
            static_cast<int>(this->unsubscribe_topic_regexp(this->unsubscribe_topic_regexp_size() - 1).length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "ubii.services.request.TopicSubscription.unsubscribe_topic_regexp"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      default: {
      handle_unusual:
        if (tag == 0) {
          goto success;
        }
        DO_(::google::protobuf::internal::WireFormat::SkipField(
              input, tag, _internal_metadata_.mutable_unknown_fields()));
        break;
      }
    }
  }
success:
  // @@protoc_insertion_point(parse_success:ubii.services.request.TopicSubscription)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:ubii.services.request.TopicSubscription)
  return false;
#undef DO_
}

void TopicSubscription::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:ubii.services.request.TopicSubscription)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string client_id = 1;
  if (this->client_id().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->client_id().data(), static_cast<int>(this->client_id().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.client_id");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->client_id(), output);
  }

  // repeated string subscribe_topics = 2;
  for (int i = 0, n = this->subscribe_topics_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->subscribe_topics(i).data(), static_cast<int>(this->subscribe_topics(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.subscribe_topics");
    ::google::protobuf::internal::WireFormatLite::WriteString(
      2, this->subscribe_topics(i), output);
  }

  // repeated string unsubscribe_topics = 3;
  for (int i = 0, n = this->unsubscribe_topics_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->unsubscribe_topics(i).data(), static_cast<int>(this->unsubscribe_topics(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.unsubscribe_topics");
    ::google::protobuf::internal::WireFormatLite::WriteString(
      3, this->unsubscribe_topics(i), output);
  }

  // repeated string subscribe_topic_regexp = 4;
  for (int i = 0, n = this->subscribe_topic_regexp_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->subscribe_topic_regexp(i).data(), static_cast<int>(this->subscribe_topic_regexp(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.subscribe_topic_regexp");
    ::google::protobuf::internal::WireFormatLite::WriteString(
      4, this->subscribe_topic_regexp(i), output);
  }

  // repeated string unsubscribe_topic_regexp = 5;
  for (int i = 0, n = this->unsubscribe_topic_regexp_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->unsubscribe_topic_regexp(i).data(), static_cast<int>(this->unsubscribe_topic_regexp(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.unsubscribe_topic_regexp");
    ::google::protobuf::internal::WireFormatLite::WriteString(
      5, this->unsubscribe_topic_regexp(i), output);
  }

  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
    ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), output);
  }
  // @@protoc_insertion_point(serialize_end:ubii.services.request.TopicSubscription)
}

::google::protobuf::uint8* TopicSubscription::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:ubii.services.request.TopicSubscription)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string client_id = 1;
  if (this->client_id().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->client_id().data(), static_cast<int>(this->client_id().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.client_id");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->client_id(), target);
  }

  // repeated string subscribe_topics = 2;
  for (int i = 0, n = this->subscribe_topics_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->subscribe_topics(i).data(), static_cast<int>(this->subscribe_topics(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.subscribe_topics");
    target = ::google::protobuf::internal::WireFormatLite::
      WriteStringToArray(2, this->subscribe_topics(i), target);
  }

  // repeated string unsubscribe_topics = 3;
  for (int i = 0, n = this->unsubscribe_topics_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->unsubscribe_topics(i).data(), static_cast<int>(this->unsubscribe_topics(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.unsubscribe_topics");
    target = ::google::protobuf::internal::WireFormatLite::
      WriteStringToArray(3, this->unsubscribe_topics(i), target);
  }

  // repeated string subscribe_topic_regexp = 4;
  for (int i = 0, n = this->subscribe_topic_regexp_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->subscribe_topic_regexp(i).data(), static_cast<int>(this->subscribe_topic_regexp(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.subscribe_topic_regexp");
    target = ::google::protobuf::internal::WireFormatLite::
      WriteStringToArray(4, this->subscribe_topic_regexp(i), target);
  }

  // repeated string unsubscribe_topic_regexp = 5;
  for (int i = 0, n = this->unsubscribe_topic_regexp_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->unsubscribe_topic_regexp(i).data(), static_cast<int>(this->unsubscribe_topic_regexp(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "ubii.services.request.TopicSubscription.unsubscribe_topic_regexp");
    target = ::google::protobuf::internal::WireFormatLite::
      WriteStringToArray(5, this->unsubscribe_topic_regexp(i), target);
  }

  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
    target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()), target);
  }
  // @@protoc_insertion_point(serialize_to_array_end:ubii.services.request.TopicSubscription)
  return target;
}

size_t TopicSubscription::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:ubii.services.request.TopicSubscription)
  size_t total_size = 0;

  if ((_internal_metadata_.have_unknown_fields() &&  ::google::protobuf::internal::GetProto3PreserveUnknownsDefault())) {
    total_size +=
      ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
        (::google::protobuf::internal::GetProto3PreserveUnknownsDefault()   ? _internal_metadata_.unknown_fields()   : _internal_metadata_.default_instance()));
  }
  // repeated string subscribe_topics = 2;
  total_size += 1 *
      ::google::protobuf::internal::FromIntSize(this->subscribe_topics_size());
  for (int i = 0, n = this->subscribe_topics_size(); i < n; i++) {
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
      this->subscribe_topics(i));
  }

  // repeated string unsubscribe_topics = 3;
  total_size += 1 *
      ::google::protobuf::internal::FromIntSize(this->unsubscribe_topics_size());
  for (int i = 0, n = this->unsubscribe_topics_size(); i < n; i++) {
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
      this->unsubscribe_topics(i));
  }

  // repeated string subscribe_topic_regexp = 4;
  total_size += 1 *
      ::google::protobuf::internal::FromIntSize(this->subscribe_topic_regexp_size());
  for (int i = 0, n = this->subscribe_topic_regexp_size(); i < n; i++) {
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
      this->subscribe_topic_regexp(i));
  }

  // repeated string unsubscribe_topic_regexp = 5;
  total_size += 1 *
      ::google::protobuf::internal::FromIntSize(this->unsubscribe_topic_regexp_size());
  for (int i = 0, n = this->unsubscribe_topic_regexp_size(); i < n; i++) {
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
      this->unsubscribe_topic_regexp(i));
  }

  // string client_id = 1;
  if (this->client_id().size() > 0) {
    total_size += 1 +
      ::google::protobuf::internal::WireFormatLite::StringSize(
        this->client_id());
  }

  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  SetCachedSize(cached_size);
  return total_size;
}

void TopicSubscription::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:ubii.services.request.TopicSubscription)
  GOOGLE_DCHECK_NE(&from, this);
  const TopicSubscription* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const TopicSubscription>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:ubii.services.request.TopicSubscription)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:ubii.services.request.TopicSubscription)
    MergeFrom(*source);
  }
}

void TopicSubscription::MergeFrom(const TopicSubscription& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:ubii.services.request.TopicSubscription)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  subscribe_topics_.MergeFrom(from.subscribe_topics_);
  unsubscribe_topics_.MergeFrom(from.unsubscribe_topics_);
  subscribe_topic_regexp_.MergeFrom(from.subscribe_topic_regexp_);
  unsubscribe_topic_regexp_.MergeFrom(from.unsubscribe_topic_regexp_);
  if (from.client_id().size() > 0) {

    client_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.client_id_);
  }
}

void TopicSubscription::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:ubii.services.request.TopicSubscription)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void TopicSubscription::CopyFrom(const TopicSubscription& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:ubii.services.request.TopicSubscription)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void TopicSubscription::Swap(TopicSubscription* other) {
  if (other == this) return;
  InternalSwap(other);
}
void TopicSubscription::InternalSwap(TopicSubscription* other) {
  using std::swap;
  subscribe_topics_.InternalSwap(CastToBase(&other->subscribe_topics_));
  unsubscribe_topics_.InternalSwap(CastToBase(&other->unsubscribe_topics_));
  subscribe_topic_regexp_.InternalSwap(CastToBase(&other->subscribe_topic_regexp_));
  unsubscribe_topic_regexp_.InternalSwap(CastToBase(&other->unsubscribe_topic_regexp_));
  client_id_.Swap(&other->client_id_, &::google::protobuf::internal::GetEmptyStringAlreadyInited(),
    GetArenaNoVirtual());
  _internal_metadata_.Swap(&other->_internal_metadata_);
}

::google::protobuf::Metadata TopicSubscription::GetMetadata() const {
  protobuf_proto_2fservices_2frequest_2ftopicSubscription_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_proto_2fservices_2frequest_2ftopicSubscription_2eproto::file_level_metadata[kIndexInFileMessages];
}


// @@protoc_insertion_point(namespace_scope)
}  // namespace request
}  // namespace services
}  // namespace ubii
namespace google {
namespace protobuf {
template<> GOOGLE_PROTOBUF_ATTRIBUTE_NOINLINE ::ubii::services::request::TopicSubscription* Arena::CreateMaybeMessage< ::ubii::services::request::TopicSubscription >(Arena* arena) {
  return Arena::CreateInternal< ::ubii::services::request::TopicSubscription >(arena);
}
}  // namespace protobuf
}  // namespace google

// @@protoc_insertion_point(global_scope)
