// Generated by the protocol buffer compiler. DO NOT EDIT! // source: reply.proto #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION #include "reply.pb.h" #include #include #include #include #include #include #include #include #include // @@protoc_insertion_point(includes) namespace Messages { namespace { const ::google::protobuf::Descriptor* Reply_descriptor_ = NULL; const ::google::protobuf::internal::GeneratedMessageReflection* Reply_reflection_ = NULL; } // namespace void protobuf_AssignDesc_reply_2eproto() { protobuf_AddDesc_reply_2eproto(); const ::google::protobuf::FileDescriptor* file = ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( "reply.proto"); GOOGLE_CHECK(file != NULL); Reply_descriptor_ = file->message_type(0); static const int Reply_offsets_[1] = { GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reply, text_), }; Reply_reflection_ = new ::google::protobuf::internal::GeneratedMessageReflection( Reply_descriptor_, Reply::default_instance_, Reply_offsets_, GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reply, _has_bits_[0]), GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Reply, _unknown_fields_), -1, ::google::protobuf::DescriptorPool::generated_pool(), ::google::protobuf::MessageFactory::generated_factory(), sizeof(Reply)); } namespace { GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); inline void protobuf_AssignDescriptorsOnce() { ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, &protobuf_AssignDesc_reply_2eproto); } void protobuf_RegisterTypes(const ::std::string&) { protobuf_AssignDescriptorsOnce(); ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( Reply_descriptor_, &Reply::default_instance()); } } // namespace void protobuf_ShutdownFile_reply_2eproto() { delete Reply::default_instance_; delete Reply_reflection_; } void protobuf_AddDesc_reply_2eproto() { static bool already_here = false; if (already_here) return; already_here = true; GOOGLE_PROTOBUF_VERIFY_VERSION; ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( "\n\013reply.proto\022\010Messages\"\025\n\005Reply\022\014\n\004text" "\030\001 \001(\t", 46); ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( "reply.proto", &protobuf_RegisterTypes); Reply::default_instance_ = new Reply(); Reply::default_instance_->InitAsDefaultInstance(); ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_reply_2eproto); } // Force AddDescriptors() to be called at static initialization time. struct StaticDescriptorInitializer_reply_2eproto { StaticDescriptorInitializer_reply_2eproto() { protobuf_AddDesc_reply_2eproto(); } } static_descriptor_initializer_reply_2eproto_; // =================================================================== #ifndef _MSC_VER const int Reply::kTextFieldNumber; #endif // !_MSC_VER Reply::Reply() : ::google::protobuf::Message() { SharedCtor(); // @@protoc_insertion_point(constructor:Messages.Reply) } void Reply::InitAsDefaultInstance() { } Reply::Reply(const Reply& from) : ::google::protobuf::Message() { SharedCtor(); MergeFrom(from); // @@protoc_insertion_point(copy_constructor:Messages.Reply) } void Reply::SharedCtor() { ::google::protobuf::internal::GetEmptyString(); _cached_size_ = 0; text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited()); ::memset(_has_bits_, 0, sizeof(_has_bits_)); } Reply::~Reply() { // @@protoc_insertion_point(destructor:Messages.Reply) SharedDtor(); } void Reply::SharedDtor() { if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { delete text_; } if (this != default_instance_) { } } void Reply::SetCachedSize(int size) const { GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); } const ::google::protobuf::Descriptor* Reply::descriptor() { protobuf_AssignDescriptorsOnce(); return Reply_descriptor_; } const Reply& Reply::default_instance() { if (default_instance_ == NULL) protobuf_AddDesc_reply_2eproto(); return *default_instance_; } Reply* Reply::default_instance_ = NULL; Reply* Reply::New() const { return new Reply; } void Reply::Clear() { if (has_text()) { if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) { text_->clear(); } } ::memset(_has_bits_, 0, sizeof(_has_bits_)); mutable_unknown_fields()->Clear(); } bool Reply::MergePartialFromCodedStream( ::google::protobuf::io::CodedInputStream* input) { #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure ::google::protobuf::uint32 tag; // @@protoc_insertion_point(parse_start:Messages.Reply) for (;;) { ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); tag = p.first; if (!p.second) goto handle_unusual; switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) { // optional string text = 1; case 1: { if (tag == 10) { DO_(::google::protobuf::internal::WireFormatLite::ReadString( input, this->mutable_text())); ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->text().data(), this->text().length(), ::google::protobuf::internal::WireFormat::PARSE, "text"); } else { goto handle_unusual; } if (input->ExpectAtEnd()) goto success; break; } default: { handle_unusual: if (tag == 0 || ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { goto success; } DO_(::google::protobuf::internal::WireFormat::SkipField( input, tag, mutable_unknown_fields())); break; } } } success: // @@protoc_insertion_point(parse_success:Messages.Reply) return true; failure: // @@protoc_insertion_point(parse_failure:Messages.Reply) return false; #undef DO_ } void Reply::SerializeWithCachedSizes( ::google::protobuf::io::CodedOutputStream* output) const { // @@protoc_insertion_point(serialize_start:Messages.Reply) // optional string text = 1; if (has_text()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->text().data(), this->text().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "text"); ::google::protobuf::internal::WireFormatLite::WriteStringMaybeAliased( 1, this->text(), output); } if (!unknown_fields().empty()) { ::google::protobuf::internal::WireFormat::SerializeUnknownFields( unknown_fields(), output); } // @@protoc_insertion_point(serialize_end:Messages.Reply) } ::google::protobuf::uint8* Reply::SerializeWithCachedSizesToArray( ::google::protobuf::uint8* target) const { // @@protoc_insertion_point(serialize_to_array_start:Messages.Reply) // optional string text = 1; if (has_text()) { ::google::protobuf::internal::WireFormat::VerifyUTF8StringNamedField( this->text().data(), this->text().length(), ::google::protobuf::internal::WireFormat::SERIALIZE, "text"); target = ::google::protobuf::internal::WireFormatLite::WriteStringToArray( 1, this->text(), target); } if (!unknown_fields().empty()) { target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray( unknown_fields(), target); } // @@protoc_insertion_point(serialize_to_array_end:Messages.Reply) return target; } int Reply::ByteSize() const { int total_size = 0; if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) { // optional string text = 1; if (has_text()) { total_size += 1 + ::google::protobuf::internal::WireFormatLite::StringSize( this->text()); } } if (!unknown_fields().empty()) { total_size += ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize( unknown_fields()); } GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); _cached_size_ = total_size; GOOGLE_SAFE_CONCURRENT_WRITES_END(); return total_size; } void Reply::MergeFrom(const ::google::protobuf::Message& from) { GOOGLE_CHECK_NE(&from, this); const Reply* source = ::google::protobuf::internal::dynamic_cast_if_available( &from); if (source == NULL) { ::google::protobuf::internal::ReflectionOps::Merge(from, this); } else { MergeFrom(*source); } } void Reply::MergeFrom(const Reply& from) { GOOGLE_CHECK_NE(&from, this); if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) { if (from.has_text()) { set_text(from.text()); } } mutable_unknown_fields()->MergeFrom(from.unknown_fields()); } void Reply::CopyFrom(const ::google::protobuf::Message& from) { if (&from == this) return; Clear(); MergeFrom(from); } void Reply::CopyFrom(const Reply& from) { if (&from == this) return; Clear(); MergeFrom(from); } bool Reply::IsInitialized() const { return true; } void Reply::Swap(Reply* other) { if (other != this) { std::swap(text_, other->text_); std::swap(_has_bits_[0], other->_has_bits_[0]); _unknown_fields_.Swap(&other->_unknown_fields_); std::swap(_cached_size_, other->_cached_size_); } } ::google::protobuf::Metadata Reply::GetMetadata() const { protobuf_AssignDescriptorsOnce(); ::google::protobuf::Metadata metadata; metadata.descriptor = Reply_descriptor_; metadata.reflection = Reply_reflection_; return metadata; } // @@protoc_insertion_point(namespace_scope) } // namespace Messages // @@protoc_insertion_point(global_scope)