// Generated by the protocol buffer compiler.  DO NOT EDIT!
// source: messaging/response/payload/endpoint/capability.proto

#include "messaging/response/payload/endpoint/capability.pb.h"

#include <algorithm>

#include <google/protobuf/stubs/common.h>
#include <google/protobuf/stubs/port.h>
#include <google/protobuf/stubs/once.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 agrirouter {
namespace response {
namespace payload {
namespace endpoint {
class CapabilityResponse_RecipientDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<CapabilityResponse_Recipient>
      _instance;
} _CapabilityResponse_Recipient_default_instance_;
class CapabilityResponseDefaultTypeInternal {
 public:
  ::google::protobuf::internal::ExplicitlyConstructed<CapabilityResponse>
      _instance;
} _CapabilityResponse_default_instance_;
}  // namespace endpoint
}  // namespace payload
}  // namespace response
}  // namespace agrirouter
namespace protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto {
void InitDefaultsCapabilityResponse_RecipientImpl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
#else
  ::google::protobuf::internal::InitProtobufDefaults();
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  {
    void* ptr = &::agrirouter::response::payload::endpoint::_CapabilityResponse_Recipient_default_instance_;
    new (ptr) ::agrirouter::response::payload::endpoint::CapabilityResponse_Recipient();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::agrirouter::response::payload::endpoint::CapabilityResponse_Recipient::InitAsDefaultInstance();
}

void InitDefaultsCapabilityResponse_Recipient() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCapabilityResponse_RecipientImpl);
}

void InitDefaultsCapabilityResponseImpl() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

#ifdef GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  ::google::protobuf::internal::InitProtobufDefaultsForceUnique();
#else
  ::google::protobuf::internal::InitProtobufDefaults();
#endif  // GOOGLE_PROTOBUF_ENFORCE_UNIQUENESS
  protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::InitDefaultsCapabilityResponse_Recipient();
  {
    void* ptr = &::agrirouter::response::payload::endpoint::_CapabilityResponse_default_instance_;
    new (ptr) ::agrirouter::response::payload::endpoint::CapabilityResponse();
    ::google::protobuf::internal::OnShutdownDestroyMessage(ptr);
  }
  ::agrirouter::response::payload::endpoint::CapabilityResponse::InitAsDefaultInstance();
}

void InitDefaultsCapabilityResponse() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &InitDefaultsCapabilityResponseImpl);
}

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

const ::google::protobuf::uint32 TableStruct::offsets[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::agrirouter::response::payload::endpoint::CapabilityResponse_Recipient, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::agrirouter::response::payload::endpoint::CapabilityResponse_Recipient, id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::agrirouter::response::payload::endpoint::CapabilityResponse_Recipient, technical_message_type_),
  ~0u,  // no _has_bits_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::agrirouter::response::payload::endpoint::CapabilityResponse, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::agrirouter::response::payload::endpoint::CapabilityResponse, application_message_id_),
  GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(::agrirouter::response::payload::endpoint::CapabilityResponse, recipients_),
};
static const ::google::protobuf::internal::MigrationSchema schemas[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(::agrirouter::response::payload::endpoint::CapabilityResponse_Recipient)},
  { 7, -1, sizeof(::agrirouter::response::payload::endpoint::CapabilityResponse)},
};

static ::google::protobuf::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::google::protobuf::Message*>(&::agrirouter::response::payload::endpoint::_CapabilityResponse_Recipient_default_instance_),
  reinterpret_cast<const ::google::protobuf::Message*>(&::agrirouter::response::payload::endpoint::_CapabilityResponse_default_instance_),
};

void protobuf_AssignDescriptors() {
  AddDescriptors();
  ::google::protobuf::MessageFactory* factory = NULL;
  AssignDescriptors(
      "messaging/response/payload/endpoint/capability.proto", schemas, file_default_instances, TableStruct::offsets, factory,
      file_level_metadata, NULL, NULL);
}

void protobuf_AssignDescriptorsOnce() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&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, 2);
}

void AddDescriptorsImpl() {
  InitDefaults();
  static const char descriptor[] GOOGLE_PROTOBUF_ATTRIBUTE_SECTION_VARIABLE(protodesc_cold) = {
      "\n4messaging/response/payload/endpoint/ca"
      "pability.proto\022$agrirouter.response.payl"
      "oad.endpoint\"\305\001\n\022CapabilityResponse\022\036\n\026a"
      "pplication_message_id\030\001 \001(\t\022V\n\nrecipient"
      "s\030\002 \003(\0132B.agrirouter.response.payload.en"
      "dpoint.CapabilityResponse.Recipient\0327\n\tR"
      "ecipient\022\n\n\002id\030\001 \001(\t\022\036\n\026technical_messag"
      "e_type\030\002 \003(\tb\006proto3"
  };
  ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
      descriptor, 300);
  ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
    "messaging/response/payload/endpoint/capability.proto", &protobuf_RegisterTypes);
}

void AddDescriptors() {
  static GOOGLE_PROTOBUF_DECLARE_ONCE(once);
  ::google::protobuf::GoogleOnceInit(&once, &AddDescriptorsImpl);
}
// Force AddDescriptors() to be called at dynamic initialization time.
struct StaticDescriptorInitializer {
  StaticDescriptorInitializer() {
    AddDescriptors();
  }
} static_descriptor_initializer;
}  // namespace protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto
namespace agrirouter {
namespace response {
namespace payload {
namespace endpoint {

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

void CapabilityResponse_Recipient::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CapabilityResponse_Recipient::kIdFieldNumber;
const int CapabilityResponse_Recipient::kTechnicalMessageTypeFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

CapabilityResponse_Recipient::CapabilityResponse_Recipient()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::InitDefaultsCapabilityResponse_Recipient();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
}
CapabilityResponse_Recipient::CapabilityResponse_Recipient(const CapabilityResponse_Recipient& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      technical_message_type_(from.technical_message_type_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.id().size() > 0) {
    id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.id_);
  }
  // @@protoc_insertion_point(copy_constructor:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
}

void CapabilityResponse_Recipient::SharedCtor() {
  id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  _cached_size_ = 0;
}

CapabilityResponse_Recipient::~CapabilityResponse_Recipient() {
  // @@protoc_insertion_point(destructor:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  SharedDtor();
}

void CapabilityResponse_Recipient::SharedDtor() {
  id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void CapabilityResponse_Recipient::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CapabilityResponse_Recipient::descriptor() {
  ::protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const CapabilityResponse_Recipient& CapabilityResponse_Recipient::default_instance() {
  ::protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::InitDefaultsCapabilityResponse_Recipient();
  return *internal_default_instance();
}

CapabilityResponse_Recipient* CapabilityResponse_Recipient::New(::google::protobuf::Arena* arena) const {
  CapabilityResponse_Recipient* n = new CapabilityResponse_Recipient;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void CapabilityResponse_Recipient::Clear() {
// @@protoc_insertion_point(message_clear_start:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  technical_message_type_.Clear();
  id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  _internal_metadata_.Clear();
}

bool CapabilityResponse_Recipient::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:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  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 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_id()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->id().data(), static_cast<int>(this->id().length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "agrirouter.response.payload.endpoint.CapabilityResponse.Recipient.id"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated string technical_message_type = 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_technical_message_type()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->technical_message_type(this->technical_message_type_size() - 1).data(),
            static_cast<int>(this->technical_message_type(this->technical_message_type_size() - 1).length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "agrirouter.response.payload.endpoint.CapabilityResponse.Recipient.technical_message_type"));
        } 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:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  return false;
#undef DO_
}

void CapabilityResponse_Recipient::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string id = 1;
  if (this->id().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->id().data(), static_cast<int>(this->id().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "agrirouter.response.payload.endpoint.CapabilityResponse.Recipient.id");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->id(), output);
  }

  // repeated string technical_message_type = 2;
  for (int i = 0, n = this->technical_message_type_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->technical_message_type(i).data(), static_cast<int>(this->technical_message_type(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "agrirouter.response.payload.endpoint.CapabilityResponse.Recipient.technical_message_type");
    ::google::protobuf::internal::WireFormatLite::WriteString(
      2, this->technical_message_type(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:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
}

::google::protobuf::uint8* CapabilityResponse_Recipient::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string id = 1;
  if (this->id().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->id().data(), static_cast<int>(this->id().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "agrirouter.response.payload.endpoint.CapabilityResponse.Recipient.id");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->id(), target);
  }

  // repeated string technical_message_type = 2;
  for (int i = 0, n = this->technical_message_type_size(); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->technical_message_type(i).data(), static_cast<int>(this->technical_message_type(i).length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "agrirouter.response.payload.endpoint.CapabilityResponse.Recipient.technical_message_type");
    target = ::google::protobuf::internal::WireFormatLite::
      WriteStringToArray(2, this->technical_message_type(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:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  return target;
}

size_t CapabilityResponse_Recipient::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  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 technical_message_type = 2;
  total_size += 1 *
      ::google::protobuf::internal::FromIntSize(this->technical_message_type_size());
  for (int i = 0, n = this->technical_message_type_size(); i < n; i++) {
    total_size += ::google::protobuf::internal::WireFormatLite::StringSize(
      this->technical_message_type(i));
  }

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

  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = cached_size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
  return total_size;
}

void CapabilityResponse_Recipient::MergeFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  GOOGLE_DCHECK_NE(&from, this);
  const CapabilityResponse_Recipient* source =
      ::google::protobuf::internal::DynamicCastToGenerated<const CapabilityResponse_Recipient>(
          &from);
  if (source == NULL) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
    ::google::protobuf::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
    MergeFrom(*source);
  }
}

void CapabilityResponse_Recipient::MergeFrom(const CapabilityResponse_Recipient& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  technical_message_type_.MergeFrom(from.technical_message_type_);
  if (from.id().size() > 0) {

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

void CapabilityResponse_Recipient::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void CapabilityResponse_Recipient::CopyFrom(const CapabilityResponse_Recipient& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:agrirouter.response.payload.endpoint.CapabilityResponse.Recipient)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void CapabilityResponse_Recipient::Swap(CapabilityResponse_Recipient* other) {
  if (other == this) return;
  InternalSwap(other);
}
void CapabilityResponse_Recipient::InternalSwap(CapabilityResponse_Recipient* other) {
  using std::swap;
  technical_message_type_.InternalSwap(&other->technical_message_type_);
  id_.Swap(&other->id_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

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


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

void CapabilityResponse::InitAsDefaultInstance() {
}
#if !defined(_MSC_VER) || _MSC_VER >= 1900
const int CapabilityResponse::kApplicationMessageIdFieldNumber;
const int CapabilityResponse::kRecipientsFieldNumber;
#endif  // !defined(_MSC_VER) || _MSC_VER >= 1900

CapabilityResponse::CapabilityResponse()
  : ::google::protobuf::Message(), _internal_metadata_(NULL) {
  if (GOOGLE_PREDICT_TRUE(this != internal_default_instance())) {
    ::protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::InitDefaultsCapabilityResponse();
  }
  SharedCtor();
  // @@protoc_insertion_point(constructor:agrirouter.response.payload.endpoint.CapabilityResponse)
}
CapabilityResponse::CapabilityResponse(const CapabilityResponse& from)
  : ::google::protobuf::Message(),
      _internal_metadata_(NULL),
      recipients_(from.recipients_),
      _cached_size_(0) {
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  application_message_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  if (from.application_message_id().size() > 0) {
    application_message_id_.AssignWithDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), from.application_message_id_);
  }
  // @@protoc_insertion_point(copy_constructor:agrirouter.response.payload.endpoint.CapabilityResponse)
}

void CapabilityResponse::SharedCtor() {
  application_message_id_.UnsafeSetDefault(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  _cached_size_ = 0;
}

CapabilityResponse::~CapabilityResponse() {
  // @@protoc_insertion_point(destructor:agrirouter.response.payload.endpoint.CapabilityResponse)
  SharedDtor();
}

void CapabilityResponse::SharedDtor() {
  application_message_id_.DestroyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
}

void CapabilityResponse::SetCachedSize(int size) const {
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* CapabilityResponse::descriptor() {
  ::protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::protobuf_AssignDescriptorsOnce();
  return ::protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::file_level_metadata[kIndexInFileMessages].descriptor;
}

const CapabilityResponse& CapabilityResponse::default_instance() {
  ::protobuf_messaging_2fresponse_2fpayload_2fendpoint_2fcapability_2eproto::InitDefaultsCapabilityResponse();
  return *internal_default_instance();
}

CapabilityResponse* CapabilityResponse::New(::google::protobuf::Arena* arena) const {
  CapabilityResponse* n = new CapabilityResponse;
  if (arena != NULL) {
    arena->Own(n);
  }
  return n;
}

void CapabilityResponse::Clear() {
// @@protoc_insertion_point(message_clear_start:agrirouter.response.payload.endpoint.CapabilityResponse)
  ::google::protobuf::uint32 cached_has_bits = 0;
  // Prevent compiler warnings about cached_has_bits being unused
  (void) cached_has_bits;

  recipients_.Clear();
  application_message_id_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
  _internal_metadata_.Clear();
}

bool CapabilityResponse::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:agrirouter.response.payload.endpoint.CapabilityResponse)
  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 application_message_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_application_message_id()));
          DO_(::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
            this->application_message_id().data(), static_cast<int>(this->application_message_id().length()),
            ::google::protobuf::internal::WireFormatLite::PARSE,
            "agrirouter.response.payload.endpoint.CapabilityResponse.application_message_id"));
        } else {
          goto handle_unusual;
        }
        break;
      }

      // repeated .agrirouter.response.payload.endpoint.CapabilityResponse.Recipient recipients = 2;
      case 2: {
        if (static_cast< ::google::protobuf::uint8>(tag) ==
            static_cast< ::google::protobuf::uint8>(18u /* 18 & 0xFF */)) {
          DO_(::google::protobuf::internal::WireFormatLite::ReadMessage(input, add_recipients()));
        } 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:agrirouter.response.payload.endpoint.CapabilityResponse)
  return true;
failure:
  // @@protoc_insertion_point(parse_failure:agrirouter.response.payload.endpoint.CapabilityResponse)
  return false;
#undef DO_
}

void CapabilityResponse::SerializeWithCachedSizes(
    ::google::protobuf::io::CodedOutputStream* output) const {
  // @@protoc_insertion_point(serialize_start:agrirouter.response.payload.endpoint.CapabilityResponse)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string application_message_id = 1;
  if (this->application_message_id().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->application_message_id().data(), static_cast<int>(this->application_message_id().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "agrirouter.response.payload.endpoint.CapabilityResponse.application_message_id");
    ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased(
      1, this->application_message_id(), output);
  }

  // repeated .agrirouter.response.payload.endpoint.CapabilityResponse.Recipient recipients = 2;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->recipients_size()); i < n; i++) {
    ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
      2, this->recipients(static_cast<int>(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:agrirouter.response.payload.endpoint.CapabilityResponse)
}

::google::protobuf::uint8* CapabilityResponse::InternalSerializeWithCachedSizesToArray(
    bool deterministic, ::google::protobuf::uint8* target) const {
  (void)deterministic; // Unused
  // @@protoc_insertion_point(serialize_to_array_start:agrirouter.response.payload.endpoint.CapabilityResponse)
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  // string application_message_id = 1;
  if (this->application_message_id().size() > 0) {
    ::google::protobuf::internal::WireFormatLite::VerifyUtf8String(
      this->application_message_id().data(), static_cast<int>(this->application_message_id().length()),
      ::google::protobuf::internal::WireFormatLite::SERIALIZE,
      "agrirouter.response.payload.endpoint.CapabilityResponse.application_message_id");
    target =
      ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
        1, this->application_message_id(), target);
  }

  // repeated .agrirouter.response.payload.endpoint.CapabilityResponse.Recipient recipients = 2;
  for (unsigned int i = 0,
      n = static_cast<unsigned int>(this->recipients_size()); i < n; i++) {
    target = ::google::protobuf::internal::WireFormatLite::
      InternalWriteMessageToArray(
        2, this->recipients(static_cast<int>(i)), deterministic, 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:agrirouter.response.payload.endpoint.CapabilityResponse)
  return target;
}

size_t CapabilityResponse::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:agrirouter.response.payload.endpoint.CapabilityResponse)
  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 .agrirouter.response.payload.endpoint.CapabilityResponse.Recipient recipients = 2;
  {
    unsigned int count = static_cast<unsigned int>(this->recipients_size());
    total_size += 1UL * count;
    for (unsigned int i = 0; i < count; i++) {
      total_size +=
        ::google::protobuf::internal::WireFormatLite::MessageSize(
          this->recipients(static_cast<int>(i)));
    }
  }

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

  int cached_size = ::google::protobuf::internal::ToCachedSize(total_size);
  GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
  _cached_size_ = cached_size;
  GOOGLE_SAFE_CONCURRENT_WRITES_END();
  return total_size;
}

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

void CapabilityResponse::MergeFrom(const CapabilityResponse& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:agrirouter.response.payload.endpoint.CapabilityResponse)
  GOOGLE_DCHECK_NE(&from, this);
  _internal_metadata_.MergeFrom(from._internal_metadata_);
  ::google::protobuf::uint32 cached_has_bits = 0;
  (void) cached_has_bits;

  recipients_.MergeFrom(from.recipients_);
  if (from.application_message_id().size() > 0) {

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

void CapabilityResponse::CopyFrom(const ::google::protobuf::Message& from) {
// @@protoc_insertion_point(generalized_copy_from_start:agrirouter.response.payload.endpoint.CapabilityResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

void CapabilityResponse::CopyFrom(const CapabilityResponse& from) {
// @@protoc_insertion_point(class_specific_copy_from_start:agrirouter.response.payload.endpoint.CapabilityResponse)
  if (&from == this) return;
  Clear();
  MergeFrom(from);
}

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

void CapabilityResponse::Swap(CapabilityResponse* other) {
  if (other == this) return;
  InternalSwap(other);
}
void CapabilityResponse::InternalSwap(CapabilityResponse* other) {
  using std::swap;
  recipients_.InternalSwap(&other->recipients_);
  application_message_id_.Swap(&other->application_message_id_);
  _internal_metadata_.Swap(&other->_internal_metadata_);
  swap(_cached_size_, other->_cached_size_);
}

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


// @@protoc_insertion_point(namespace_scope)
}  // namespace endpoint
}  // namespace payload
}  // namespace response
}  // namespace agrirouter

// @@protoc_insertion_point(global_scope)
