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

#include "query_analyzer.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>
namespace QueryAnalyzer {
class QueryInferenceRequestDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryInferenceRequest> _instance;
} _QueryInferenceRequest_default_instance_;
class QueryInferenceReplyDefaultTypeInternal {
 public:
  ::PROTOBUF_NAMESPACE_ID::internal::ExplicitlyConstructed<QueryInferenceReply> _instance;
} _QueryInferenceReply_default_instance_;
}  // namespace QueryAnalyzer
static void InitDefaultsscc_info_QueryInferenceReply_query_5fanalyzer_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::QueryAnalyzer::_QueryInferenceReply_default_instance_;
    new (ptr) ::QueryAnalyzer::QueryInferenceReply();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::QueryAnalyzer::QueryInferenceReply::InitAsDefaultInstance();
}

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

static void InitDefaultsscc_info_QueryInferenceRequest_query_5fanalyzer_2eproto() {
  GOOGLE_PROTOBUF_VERIFY_VERSION;

  {
    void* ptr = &::QueryAnalyzer::_QueryInferenceRequest_default_instance_;
    new (ptr) ::QueryAnalyzer::QueryInferenceRequest();
    ::PROTOBUF_NAMESPACE_ID::internal::OnShutdownDestroyMessage(ptr);
  }
  ::QueryAnalyzer::QueryInferenceRequest::InitAsDefaultInstance();
}

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

static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_query_5fanalyzer_2eproto[2];
static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_query_5fanalyzer_2eproto = nullptr;
static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_query_5fanalyzer_2eproto = nullptr;

const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_query_5fanalyzer_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::QueryAnalyzer::QueryInferenceRequest, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::QueryAnalyzer::QueryInferenceRequest, query_),
  PROTOBUF_FIELD_OFFSET(::QueryAnalyzer::QueryInferenceRequest, version_type_),
  PROTOBUF_FIELD_OFFSET(::QueryAnalyzer::QueryInferenceRequest, return_face_),
  ~0u,  // no _has_bits_
  PROTOBUF_FIELD_OFFSET(::QueryAnalyzer::QueryInferenceReply, _internal_metadata_),
  ~0u,  // no _extensions_
  ~0u,  // no _oneof_case_
  ~0u,  // no _weak_field_map_
  PROTOBUF_FIELD_OFFSET(::QueryAnalyzer::QueryInferenceReply, label_),
};
static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
  { 0, -1, sizeof(::QueryAnalyzer::QueryInferenceRequest)},
  { 8, -1, sizeof(::QueryAnalyzer::QueryInferenceReply)},
};

static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::QueryAnalyzer::_QueryInferenceRequest_default_instance_),
  reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::QueryAnalyzer::_QueryInferenceReply_default_instance_),
};

const char descriptor_table_protodef_query_5fanalyzer_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
  "\n\024query_analyzer.proto\022\rQueryAnalyzer\"Q\n"
  "\025QueryInferenceRequest\022\r\n\005query\030\001 \001(\t\022\024\n"
  "\014version_type\030\002 \001(\t\022\023\n\013return_face\030\003 \001(\010"
  "\"$\n\023QueryInferenceReply\022\r\n\005label\030\001 \001(\0052u"
  "\n\025QueryInferenceService\022\\\n\016QueryInferenc"
  "e\022$.QueryAnalyzer.QueryInferenceRequest\032"
  "\".QueryAnalyzer.QueryInferenceReply\"\000B6\n"
  "\033io.grpc.examples.helloworldB\017HelloWorld"
  "ProtoP\001\242\002\003HLWb\006proto3"
  ;
static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_query_5fanalyzer_2eproto_deps[1] = {
};
static ::PROTOBUF_NAMESPACE_ID::internal::SCCInfoBase*const descriptor_table_query_5fanalyzer_2eproto_sccs[2] = {
  &scc_info_QueryInferenceReply_query_5fanalyzer_2eproto.base,
  &scc_info_QueryInferenceRequest_query_5fanalyzer_2eproto.base,
};
static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_query_5fanalyzer_2eproto_once;
const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_query_5fanalyzer_2eproto = {
  false, false, descriptor_table_protodef_query_5fanalyzer_2eproto, "query_analyzer.proto", 341,
  &descriptor_table_query_5fanalyzer_2eproto_once, descriptor_table_query_5fanalyzer_2eproto_sccs, descriptor_table_query_5fanalyzer_2eproto_deps, 2, 0,
  schemas, file_default_instances, TableStruct_query_5fanalyzer_2eproto::offsets,
  file_level_metadata_query_5fanalyzer_2eproto, 2, file_level_enum_descriptors_query_5fanalyzer_2eproto, file_level_service_descriptors_query_5fanalyzer_2eproto,
};

// Force running AddDescriptors() at dynamic initialization time.
static bool dynamic_init_dummy_query_5fanalyzer_2eproto = (static_cast<void>(::PROTOBUF_NAMESPACE_ID::internal::AddDescriptors(&descriptor_table_query_5fanalyzer_2eproto)), true);
namespace QueryAnalyzer {

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

void QueryInferenceRequest::InitAsDefaultInstance() {
}
class QueryInferenceRequest::_Internal {
 public:
};

QueryInferenceRequest::QueryInferenceRequest(::PROTOBUF_NAMESPACE_ID::Arena* arena)
  : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
  SharedCtor();
  RegisterArenaDtor(arena);
  // @@protoc_insertion_point(arena_constructor:QueryAnalyzer.QueryInferenceRequest)
}
QueryInferenceRequest::QueryInferenceRequest(const QueryInferenceRequest& from)
  : ::PROTOBUF_NAMESPACE_ID::Message() {
  _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
  query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_query().empty()) {
    query_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_query(),
      GetArena());
  }
  version_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  if (!from._internal_version_type().empty()) {
    version_type_.Set(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), from._internal_version_type(),
      GetArena());
  }
  return_face_ = from.return_face_;
  // @@protoc_insertion_point(copy_constructor:QueryAnalyzer.QueryInferenceRequest)
}

void QueryInferenceRequest::SharedCtor() {
  ::PROTOBUF_NAMESPACE_ID::internal::InitSCC(&scc_info_QueryInferenceRequest_query_5fanalyzer_2eproto.base);
  query_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  version_type_.UnsafeSetDefault(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  return_face_ = false;
}

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

void QueryInferenceRequest::SharedDtor() {
  GOOGLE_DCHECK(GetArena() == nullptr);
  query_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
  version_type_.DestroyNoArena(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited());
}

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


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

  query_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  version_type_.ClearToEmpty(&::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  return_face_ = false;
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* QueryInferenceRequest::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  ::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) {
      // string query = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 10)) {
          auto str = _internal_mutable_query();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "QueryAnalyzer.QueryInferenceRequest.query"));
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // string version_type = 2;
      case 2:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
          auto str = _internal_mutable_version_type();
          ptr = ::PROTOBUF_NAMESPACE_ID::internal::InlineGreedyStringParser(str, ptr, ctx);
          CHK_(::PROTOBUF_NAMESPACE_ID::internal::VerifyUTF8(str, "QueryAnalyzer.QueryInferenceRequest.version_type"));
          CHK_(ptr);
        } else goto handle_unusual;
        continue;
      // bool return_face = 3;
      case 3:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 24)) {
          return_face_ = ::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:
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

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

  // string query = 1;
  if (this->query().size() > 0) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_query().data(), static_cast<int>(this->_internal_query().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "QueryAnalyzer.QueryInferenceRequest.query");
    target = stream->WriteStringMaybeAliased(
        1, this->_internal_query(), target);
  }

  // string version_type = 2;
  if (this->version_type().size() > 0) {
    ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::VerifyUtf8String(
      this->_internal_version_type().data(), static_cast<int>(this->_internal_version_type().length()),
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::SERIALIZE,
      "QueryAnalyzer.QueryInferenceRequest.version_type");
    target = stream->WriteStringMaybeAliased(
        2, this->_internal_version_type(), target);
  }

  // bool return_face = 3;
  if (this->return_face() != 0) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteBoolToArray(3, this->_internal_return_face(), 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:QueryAnalyzer.QueryInferenceRequest)
  return target;
}

size_t QueryInferenceRequest::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:QueryAnalyzer.QueryInferenceRequest)
  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;

  // string query = 1;
  if (this->query().size() > 0) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_query());
  }

  // string version_type = 2;
  if (this->version_type().size() > 0) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::StringSize(
        this->_internal_version_type());
  }

  // bool return_face = 3;
  if (this->return_face() != 0) {
    total_size += 1 + 1;
  }

  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 QueryInferenceRequest::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:QueryAnalyzer.QueryInferenceRequest)
  GOOGLE_DCHECK_NE(&from, this);
  const QueryInferenceRequest* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryInferenceRequest>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:QueryAnalyzer.QueryInferenceRequest)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:QueryAnalyzer.QueryInferenceRequest)
    MergeFrom(*source);
  }
}

void QueryInferenceRequest::MergeFrom(const QueryInferenceRequest& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:QueryAnalyzer.QueryInferenceRequest)
  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.query().size() > 0) {
    _internal_set_query(from._internal_query());
  }
  if (from.version_type().size() > 0) {
    _internal_set_version_type(from._internal_version_type());
  }
  if (from.return_face() != 0) {
    _internal_set_return_face(from._internal_return_face());
  }
}

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

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

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

void QueryInferenceRequest::InternalSwap(QueryInferenceRequest* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  query_.Swap(&other->query_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  version_type_.Swap(&other->version_type_, &::PROTOBUF_NAMESPACE_ID::internal::GetEmptyStringAlreadyInited(), GetArena());
  swap(return_face_, other->return_face_);
}

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


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

void QueryInferenceReply::InitAsDefaultInstance() {
}
class QueryInferenceReply::_Internal {
 public:
};

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

void QueryInferenceReply::SharedCtor() {
  label_ = 0;
}

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

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

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


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

  label_ = 0;
  _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
}

const char* QueryInferenceReply::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
#define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
  ::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) {
      // int32 label = 1;
      case 1:
        if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
          label_ = ::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:
  return ptr;
failure:
  ptr = nullptr;
  goto success;
#undef CHK_
}

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

  // int32 label = 1;
  if (this->label() != 0) {
    target = stream->EnsureSpace(target);
    target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_label(), 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:QueryAnalyzer.QueryInferenceReply)
  return target;
}

size_t QueryInferenceReply::ByteSizeLong() const {
// @@protoc_insertion_point(message_byte_size_start:QueryAnalyzer.QueryInferenceReply)
  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;

  // int32 label = 1;
  if (this->label() != 0) {
    total_size += 1 +
      ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
        this->_internal_label());
  }

  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 QueryInferenceReply::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
// @@protoc_insertion_point(generalized_merge_from_start:QueryAnalyzer.QueryInferenceReply)
  GOOGLE_DCHECK_NE(&from, this);
  const QueryInferenceReply* source =
      ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<QueryInferenceReply>(
          &from);
  if (source == nullptr) {
  // @@protoc_insertion_point(generalized_merge_from_cast_fail:QueryAnalyzer.QueryInferenceReply)
    ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
  } else {
  // @@protoc_insertion_point(generalized_merge_from_cast_success:QueryAnalyzer.QueryInferenceReply)
    MergeFrom(*source);
  }
}

void QueryInferenceReply::MergeFrom(const QueryInferenceReply& from) {
// @@protoc_insertion_point(class_specific_merge_from_start:QueryAnalyzer.QueryInferenceReply)
  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.label() != 0) {
    _internal_set_label(from._internal_label());
  }
}

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

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

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

void QueryInferenceReply::InternalSwap(QueryInferenceReply* other) {
  using std::swap;
  _internal_metadata_.Swap<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(&other->_internal_metadata_);
  swap(label_, other->label_);
}

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


// @@protoc_insertion_point(namespace_scope)
}  // namespace QueryAnalyzer
PROTOBUF_NAMESPACE_OPEN
template<> PROTOBUF_NOINLINE ::QueryAnalyzer::QueryInferenceRequest* Arena::CreateMaybeMessage< ::QueryAnalyzer::QueryInferenceRequest >(Arena* arena) {
  return Arena::CreateMessageInternal< ::QueryAnalyzer::QueryInferenceRequest >(arena);
}
template<> PROTOBUF_NOINLINE ::QueryAnalyzer::QueryInferenceReply* Arena::CreateMaybeMessage< ::QueryAnalyzer::QueryInferenceReply >(Arena* arena) {
  return Arena::CreateMessageInternal< ::QueryAnalyzer::QueryInferenceReply >(arena);
}
PROTOBUF_NAMESPACE_CLOSE

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