text: // Generated by the protocol buffer compiler.  DO NOT EDIT!
  // source: ftqproto/WriteResponse.proto
  
  #include "ftqproto/WriteResponse.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>
  
  PROTOBUF_PRAGMA_INIT_SEG
  namespace response {
  constexpr WriteResponse::WriteResponse(
    ::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized)
    : status_(nullptr)
    , byteswritten_(0){}
  struct WriteResponseDefaultTypeInternal {
    constexpr WriteResponseDefaultTypeInternal()
      : _instance(::PROTOBUF_NAMESPACE_ID::internal::ConstantInitialized{}) {}
    ~WriteResponseDefaultTypeInternal() {}
    union {
      WriteResponse _instance;
    };
  };
  PROTOBUF_ATTRIBUTE_NO_DESTROY PROTOBUF_CONSTINIT WriteResponseDefaultTypeInternal _WriteResponse_default_instance_;
  }  // namespace response
  static ::PROTOBUF_NAMESPACE_ID::Metadata file_level_metadata_ftqproto_2fWriteResponse_2eproto[1];
  static constexpr ::PROTOBUF_NAMESPACE_ID::EnumDescriptor const** file_level_enum_descriptors_ftqproto_2fWriteResponse_2eproto = nullptr;
  static constexpr ::PROTOBUF_NAMESPACE_ID::ServiceDescriptor const** file_level_service_descriptors_ftqproto_2fWriteResponse_2eproto = nullptr;
  
  const ::PROTOBUF_NAMESPACE_ID::uint32 TableStruct_ftqproto_2fWriteResponse_2eproto::offsets[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
    ~0u,  // no _has_bits_
    PROTOBUF_FIELD_OFFSET(::response::WriteResponse, _internal_metadata_),
    ~0u,  // no _extensions_
    ~0u,  // no _oneof_case_
    ~0u,  // no _weak_field_map_
    PROTOBUF_FIELD_OFFSET(::response::WriteResponse, byteswritten_),
    PROTOBUF_FIELD_OFFSET(::response::WriteResponse, status_),
  };
  static const ::PROTOBUF_NAMESPACE_ID::internal::MigrationSchema schemas[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) = {
    { 0, -1, sizeof(::response::WriteResponse)},
  };
  
  static ::PROTOBUF_NAMESPACE_ID::Message const * const file_default_instances[] = {
    reinterpret_cast<const ::PROTOBUF_NAMESPACE_ID::Message*>(&::response::_WriteResponse_default_instance_),
  };
  
  const char descriptor_table_protodef_ftqproto_2fWriteResponse_2eproto[] PROTOBUF_SECTION_VARIABLE(protodesc_cold) =
    "\n\034ftqproto/WriteResponse.proto\022\010response"
    "\032\035ftqproto/ResponseStatus.proto\"O\n\rWrite"
    "Response\022\024\n\014bytesWritten\030\001 \001(\005\022(\n\006status"
    "\030\002 \001(\0132\030.response.ResponseStatusBCZAgith"
    "ub.com/MartinSimango/goftqproto/internal"
    "/response/genresponseb\006proto3"
    ;
  static const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable*const descriptor_table_ftqproto_2fWriteResponse_2eproto_deps[1] = {
    &::descriptor_table_ftqproto_2fResponseStatus_2eproto,
  };
  static ::PROTOBUF_NAMESPACE_ID::internal::once_flag descriptor_table_ftqproto_2fWriteResponse_2eproto_once;
  const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable descriptor_table_ftqproto_2fWriteResponse_2eproto = {
    false, false, 229, descriptor_table_protodef_ftqproto_2fWriteResponse_2eproto, "ftqproto/WriteResponse.proto", 
    &descriptor_table_ftqproto_2fWriteResponse_2eproto_once, descriptor_table_ftqproto_2fWriteResponse_2eproto_deps, 1, 1,
    schemas, file_default_instances, TableStruct_ftqproto_2fWriteResponse_2eproto::offsets,
    file_level_metadata_ftqproto_2fWriteResponse_2eproto, file_level_enum_descriptors_ftqproto_2fWriteResponse_2eproto, file_level_service_descriptors_ftqproto_2fWriteResponse_2eproto,
  };
  PROTOBUF_ATTRIBUTE_WEAK const ::PROTOBUF_NAMESPACE_ID::internal::DescriptorTable* descriptor_table_ftqproto_2fWriteResponse_2eproto_getter() {
    return &descriptor_table_ftqproto_2fWriteResponse_2eproto;
  }
  
  // Force running AddDescriptors() at dynamic initialization time.
  PROTOBUF_ATTRIBUTE_INIT_PRIORITY static ::PROTOBUF_NAMESPACE_ID::internal::AddDescriptorsRunner dynamic_init_dummy_ftqproto_2fWriteResponse_2eproto(&descriptor_table_ftqproto_2fWriteResponse_2eproto);
  namespace response {
  
  // ===================================================================
  
  class WriteResponse::_Internal {
   public:
    static const ::response::ResponseStatus& status(const WriteResponse* msg);
  };
  
  const ::response::ResponseStatus&
  WriteResponse::_Internal::status(const WriteResponse* msg) {
    return *msg->status_;
  }
  void WriteResponse::clear_status() {
    if (GetArenaForAllocation() == nullptr && status_ != nullptr) {
      delete status_;
    }
    status_ = nullptr;
  }
  WriteResponse::WriteResponse(::PROTOBUF_NAMESPACE_ID::Arena* arena)
    : ::PROTOBUF_NAMESPACE_ID::Message(arena) {
    SharedCtor();
    RegisterArenaDtor(arena);
    // @@protoc_insertion_point(arena_constructor:response.WriteResponse)
  }
  WriteResponse::WriteResponse(const WriteResponse& from)
    : ::PROTOBUF_NAMESPACE_ID::Message() {
    _internal_metadata_.MergeFrom<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>(from._internal_metadata_);
    if (from._internal_has_status()) {
      status_ = new ::response::ResponseStatus(*from.status_);
    } else {
      status_ = nullptr;
    }
    byteswritten_ = from.byteswritten_;
    // @@protoc_insertion_point(copy_constructor:response.WriteResponse)
  }
  
  void WriteResponse::SharedCtor() {
  ::memset(reinterpret_cast<char*>(this) + static_cast<size_t>(
      reinterpret_cast<char*>(&status_) - reinterpret_cast<char*>(this)),
      0, static_cast<size_t>(reinterpret_cast<char*>(&byteswritten_) -
      reinterpret_cast<char*>(&status_)) + sizeof(byteswritten_));
  }
  
  WriteResponse::~WriteResponse() {
    // @@protoc_insertion_point(destructor:response.WriteResponse)
    SharedDtor();
    _internal_metadata_.Delete<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  }
  
  void WriteResponse::SharedDtor() {
    GOOGLE_DCHECK(GetArenaForAllocation() == nullptr);
    if (this != internal_default_instance()) delete status_;
  }
  
  void WriteResponse::ArenaDtor(void* object) {
    WriteResponse* _this = reinterpret_cast< WriteResponse* >(object);
    (void)_this;
  }
  void WriteResponse::RegisterArenaDtor(::PROTOBUF_NAMESPACE_ID::Arena*) {
  }
  void WriteResponse::SetCachedSize(int size) const {
    _cached_size_.Set(size);
  }
  
  void WriteResponse::Clear() {
  // @@protoc_insertion_point(message_clear_start:response.WriteResponse)
    ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
    // Prevent compiler warnings about cached_has_bits being unused
    (void) cached_has_bits;
  
    if (GetArenaForAllocation() == nullptr && status_ != nullptr) {
      delete status_;
    }
    status_ = nullptr;
    byteswritten_ = 0;
    _internal_metadata_.Clear<::PROTOBUF_NAMESPACE_ID::UnknownFieldSet>();
  }
  
  const char* WriteResponse::_InternalParse(const char* ptr, ::PROTOBUF_NAMESPACE_ID::internal::ParseContext* ctx) {
  #define CHK_(x) if (PROTOBUF_PREDICT_FALSE(!(x))) goto failure
    while (!ctx->Done(&ptr)) {
      ::PROTOBUF_NAMESPACE_ID::uint32 tag;
      ptr = ::PROTOBUF_NAMESPACE_ID::internal::ReadTag(ptr, &tag);
      switch (tag >> 3) {
        // int32 bytesWritten = 1;
        case 1:
          if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 8)) {
            byteswritten_ = ::PROTOBUF_NAMESPACE_ID::internal::ReadVarint64(&ptr);
            CHK_(ptr);
          } else goto handle_unusual;
          continue;
        // .response.ResponseStatus status = 2;
        case 2:
          if (PROTOBUF_PREDICT_TRUE(static_cast<::PROTOBUF_NAMESPACE_ID::uint8>(tag) == 18)) {
            ptr = ctx->ParseMessage(_internal_mutable_status(), ptr);
            CHK_(ptr);
          } else goto handle_unusual;
          continue;
        default: {
        handle_unusual:
          if ((tag == 0) || ((tag & 7) == 4)) {
            CHK_(ptr);
            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* WriteResponse::_InternalSerialize(
      ::PROTOBUF_NAMESPACE_ID::uint8* target, ::PROTOBUF_NAMESPACE_ID::io::EpsCopyOutputStream* stream) const {
    // @@protoc_insertion_point(serialize_to_array_start:response.WriteResponse)
    ::PROTOBUF_NAMESPACE_ID::uint32 cached_has_bits = 0;
    (void) cached_has_bits;
  
    // int32 bytesWritten = 1;
    if (this->byteswritten() != 0) {
      target = stream->EnsureSpace(target);
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::WriteInt32ToArray(1, this->_internal_byteswritten(), target);
    }
  
    // .response.ResponseStatus status = 2;
    if (this->has_status()) {
      target = stream->EnsureSpace(target);
      target = ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::
        InternalWriteMessage(
          2, _Internal::status(this), 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:response.WriteResponse)
    return target;
  }
  
  size_t WriteResponse::ByteSizeLong() const {
  // @@protoc_insertion_point(message_byte_size_start:response.WriteResponse)
    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;
  
    // .response.ResponseStatus status = 2;
    if (this->has_status()) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::MessageSize(
          *status_);
    }
  
    // int32 bytesWritten = 1;
    if (this->byteswritten() != 0) {
      total_size += 1 +
        ::PROTOBUF_NAMESPACE_ID::internal::WireFormatLite::Int32Size(
          this->_internal_byteswritten());
    }
  
    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 WriteResponse::MergeFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  // @@protoc_insertion_point(generalized_merge_from_start:response.WriteResponse)
    GOOGLE_DCHECK_NE(&from, this);
    const WriteResponse* source =
        ::PROTOBUF_NAMESPACE_ID::DynamicCastToGenerated<WriteResponse>(
            &from);
    if (source == nullptr) {
    // @@protoc_insertion_point(generalized_merge_from_cast_fail:response.WriteResponse)
      ::PROTOBUF_NAMESPACE_ID::internal::ReflectionOps::Merge(from, this);
    } else {
    // @@protoc_insertion_point(generalized_merge_from_cast_success:response.WriteResponse)
      MergeFrom(*source);
    }
  }
  
  void WriteResponse::MergeFrom(const WriteResponse& from) {
  // @@protoc_insertion_point(class_specific_merge_from_start:response.WriteResponse)
    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.has_status()) {
      _internal_mutable_status()->::response::ResponseStatus::MergeFrom(from._internal_status());
    }
    if (from.byteswritten() != 0) {
      _internal_set_byteswritten(from._internal_byteswritten());
    }
  }
  
  void WriteResponse::CopyFrom(const ::PROTOBUF_NAMESPACE_ID::Message& from) {
  // @@protoc_insertion_point(generalized_copy_from_start:response.WriteResponse)
    if (&from == this) return;
    Clear();
    MergeFrom(from);
  }
  
  void WriteResponse::CopyFrom(const WriteResponse& from) {
  // @@protoc_insertion_point(class_specific_copy_from_start:response.WriteResponse)
    if (&from == this) return;
    Clear();
    MergeFrom(from);
  }
  
  bool WriteResponse::IsInitialized() const {
    return true;
  }
  
  void WriteResponse::InternalSwap(WriteResponse* other) {
    using std::swap;
    _internal_metadata_.InternalSwap(&other->_internal_metadata_);
    ::PROTOBUF_NAMESPACE_ID::internal::memswap<
        PROTOBUF_FIELD_OFFSET(WriteResponse, byteswritten_)
        + sizeof(WriteResponse::byteswritten_)
        - PROTOBUF_FIELD_OFFSET(WriteResponse, status_)>(
            reinterpret_cast<char*>(&status_),
            reinterpret_cast<char*>(&other->status_));
  }
  
  ::PROTOBUF_NAMESPACE_ID::Metadata WriteResponse::GetMetadata() const {
    return ::PROTOBUF_NAMESPACE_ID::internal::AssignDescriptors(
        &descriptor_table_ftqproto_2fWriteResponse_2eproto_getter, &descriptor_table_ftqproto_2fWriteResponse_2eproto_once,
        file_level_metadata_ftqproto_2fWriteResponse_2eproto[0]);
  }
  
  // @@protoc_insertion_point(namespace_scope)
  }  // namespace response
  PROTOBUF_NAMESPACE_OPEN
  template<> PROTOBUF_NOINLINE ::response::WriteResponse* Arena::CreateMaybeMessage< ::response::WriteResponse >(Arena* arena) {
    return Arena::CreateMessageInternal< ::response::WriteResponse >(arena);
  }
  PROTOBUF_NAMESPACE_CLOSE
  
  // @@protoc_insertion_point(global_scope)
  #include <google/protobuf/port_undef.inc>
  