xtreemfs/cpp/generated/pbrpc/Ping.pb.cc
2020-09-22 02:25:22 +02:00

1530 lines
48 KiB
C++

// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: pbrpc/Ping.proto
#define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
#include "pbrpc/Ping.pb.h"
#include <algorithm>
#include <google/protobuf/stubs/common.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>
// @@protoc_insertion_point(includes)
namespace xtreemfs {
namespace pbrpc {
namespace {
const ::google::protobuf::Descriptor* PingRequest_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PingRequest_reflection_ = NULL;
const ::google::protobuf::Descriptor* PingResponse_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PingResponse_reflection_ = NULL;
const ::google::protobuf::Descriptor* PingResponse_PingResult_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PingResponse_PingResult_reflection_ = NULL;
const ::google::protobuf::Descriptor* PingResponse_PingError_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
PingResponse_PingError_reflection_ = NULL;
const ::google::protobuf::Descriptor* Ping_emptyRequest_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Ping_emptyRequest_reflection_ = NULL;
const ::google::protobuf::Descriptor* Ping_emptyResponse_descriptor_ = NULL;
const ::google::protobuf::internal::GeneratedMessageReflection*
Ping_emptyResponse_reflection_ = NULL;
} // namespace
void protobuf_AssignDesc_pbrpc_2fPing_2eproto() {
protobuf_AddDesc_pbrpc_2fPing_2eproto();
const ::google::protobuf::FileDescriptor* file =
::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
"pbrpc/Ping.proto");
GOOGLE_CHECK(file != NULL);
PingRequest_descriptor_ = file->message_type(0);
static const int PingRequest_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingRequest, text_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingRequest, senderror_),
};
PingRequest_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PingRequest_descriptor_,
PingRequest::default_instance_,
PingRequest_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingRequest, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingRequest, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PingRequest));
PingResponse_descriptor_ = file->message_type(1);
static const int PingResponse_offsets_[2] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse, result_),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse, error_),
};
PingResponse_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PingResponse_descriptor_,
PingResponse::default_instance_,
PingResponse_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PingResponse));
PingResponse_PingResult_descriptor_ = PingResponse_descriptor_->nested_type(0);
static const int PingResponse_PingResult_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse_PingResult, text_),
};
PingResponse_PingResult_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PingResponse_PingResult_descriptor_,
PingResponse_PingResult::default_instance_,
PingResponse_PingResult_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse_PingResult, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse_PingResult, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PingResponse_PingResult));
PingResponse_PingError_descriptor_ = PingResponse_descriptor_->nested_type(1);
static const int PingResponse_PingError_offsets_[1] = {
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse_PingError, errormessage_),
};
PingResponse_PingError_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
PingResponse_PingError_descriptor_,
PingResponse_PingError::default_instance_,
PingResponse_PingError_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse_PingError, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PingResponse_PingError, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(PingResponse_PingError));
Ping_emptyRequest_descriptor_ = file->message_type(2);
static const int Ping_emptyRequest_offsets_[1] = {
};
Ping_emptyRequest_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Ping_emptyRequest_descriptor_,
Ping_emptyRequest::default_instance_,
Ping_emptyRequest_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Ping_emptyRequest, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Ping_emptyRequest, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Ping_emptyRequest));
Ping_emptyResponse_descriptor_ = file->message_type(3);
static const int Ping_emptyResponse_offsets_[1] = {
};
Ping_emptyResponse_reflection_ =
new ::google::protobuf::internal::GeneratedMessageReflection(
Ping_emptyResponse_descriptor_,
Ping_emptyResponse::default_instance_,
Ping_emptyResponse_offsets_,
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Ping_emptyResponse, _has_bits_[0]),
GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Ping_emptyResponse, _unknown_fields_),
-1,
::google::protobuf::DescriptorPool::generated_pool(),
::google::protobuf::MessageFactory::generated_factory(),
sizeof(Ping_emptyResponse));
}
namespace {
GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
inline void protobuf_AssignDescriptorsOnce() {
::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
&protobuf_AssignDesc_pbrpc_2fPing_2eproto);
}
void protobuf_RegisterTypes(const ::std::string&) {
protobuf_AssignDescriptorsOnce();
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PingRequest_descriptor_, &PingRequest::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PingResponse_descriptor_, &PingResponse::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PingResponse_PingResult_descriptor_, &PingResponse_PingResult::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
PingResponse_PingError_descriptor_, &PingResponse_PingError::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Ping_emptyRequest_descriptor_, &Ping_emptyRequest::default_instance());
::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
Ping_emptyResponse_descriptor_, &Ping_emptyResponse::default_instance());
}
} // namespace
void protobuf_ShutdownFile_pbrpc_2fPing_2eproto() {
delete PingRequest::default_instance_;
delete PingRequest_reflection_;
delete PingResponse::default_instance_;
delete PingResponse_reflection_;
delete PingResponse_PingResult::default_instance_;
delete PingResponse_PingResult_reflection_;
delete PingResponse_PingError::default_instance_;
delete PingResponse_PingError_reflection_;
delete Ping_emptyRequest::default_instance_;
delete Ping_emptyRequest_reflection_;
delete Ping_emptyResponse::default_instance_;
delete Ping_emptyResponse_reflection_;
}
void protobuf_AddDesc_pbrpc_2fPing_2eproto() {
static bool already_here = false;
if (already_here) return;
already_here = true;
GOOGLE_PROTOBUF_VERIFY_VERSION;
::xtreemfs::pbrpc::protobuf_AddDesc_include_2fPBRPC_2eproto();
::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
"\n\020pbrpc/Ping.proto\022\016xtreemfs.pbrpc\032\023incl"
"ude/PBRPC.proto\".\n\013PingRequest\022\014\n\004text\030\001"
" \002(\t\022\021\n\tsendError\030\002 \002(\010\"\275\001\n\014PingResponse"
"\0227\n\006result\030\001 \001(\0132\'.xtreemfs.pbrpc.PingRe"
"sponse.PingResult\0225\n\005error\030\002 \001(\0132&.xtree"
"mfs.pbrpc.PingResponse.PingError\032\032\n\nPing"
"Result\022\014\n\004text\030\001 \002(\t\032!\n\tPingError\022\024\n\014err"
"orMessage\030\001 \002(\t\"\023\n\021Ping_emptyRequest\"\024\n\022"
"Ping_emptyResponse2\305\001\n\013PingService\022P\n\006do"
"Ping\022\033.xtreemfs.pbrpc.PingRequest\032\034.xtre"
"emfs.pbrpc.PingResponse\"\013\215\265\030\001\000\000\000\240\265\030\001\022[\n\t"
"emptyPing\022!.xtreemfs.pbrpc.Ping_emptyReq"
"uest\032\".xtreemfs.pbrpc.Ping_emptyResponse"
"\"\007\215\265\030\002\000\000\000\032\007\225\265\030\001\000\000\000B3\n1org.xtreemfs.found"
"ation.pbrpc.generatedinterfaces", 591);
::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
"pbrpc/Ping.proto", &protobuf_RegisterTypes);
PingRequest::default_instance_ = new PingRequest();
PingResponse::default_instance_ = new PingResponse();
PingResponse_PingResult::default_instance_ = new PingResponse_PingResult();
PingResponse_PingError::default_instance_ = new PingResponse_PingError();
Ping_emptyRequest::default_instance_ = new Ping_emptyRequest();
Ping_emptyResponse::default_instance_ = new Ping_emptyResponse();
PingRequest::default_instance_->InitAsDefaultInstance();
PingResponse::default_instance_->InitAsDefaultInstance();
PingResponse_PingResult::default_instance_->InitAsDefaultInstance();
PingResponse_PingError::default_instance_->InitAsDefaultInstance();
Ping_emptyRequest::default_instance_->InitAsDefaultInstance();
Ping_emptyResponse::default_instance_->InitAsDefaultInstance();
::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_pbrpc_2fPing_2eproto);
}
// Force AddDescriptors() to be called at static initialization time.
struct StaticDescriptorInitializer_pbrpc_2fPing_2eproto {
StaticDescriptorInitializer_pbrpc_2fPing_2eproto() {
protobuf_AddDesc_pbrpc_2fPing_2eproto();
}
} static_descriptor_initializer_pbrpc_2fPing_2eproto_;
// ===================================================================
#ifndef _MSC_VER
const int PingRequest::kTextFieldNumber;
const int PingRequest::kSendErrorFieldNumber;
#endif // !_MSC_VER
PingRequest::PingRequest()
: ::google::protobuf::Message() {
SharedCtor();
}
void PingRequest::InitAsDefaultInstance() {
}
PingRequest::PingRequest(const PingRequest& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PingRequest::SharedCtor() {
_cached_size_ = 0;
text_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
senderror_ = false;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PingRequest::~PingRequest() {
SharedDtor();
}
void PingRequest::SharedDtor() {
if (text_ != &::google::protobuf::internal::kEmptyString) {
delete text_;
}
if (this != default_instance_) {
}
}
void PingRequest::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PingRequest::descriptor() {
protobuf_AssignDescriptorsOnce();
return PingRequest_descriptor_;
}
const PingRequest& PingRequest::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_pbrpc_2fPing_2eproto();
return *default_instance_;
}
PingRequest* PingRequest::default_instance_ = NULL;
PingRequest* PingRequest::New() const {
return new PingRequest;
}
void PingRequest::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_text()) {
if (text_ != &::google::protobuf::internal::kEmptyString) {
text_->clear();
}
}
senderror_ = false;
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PingRequest::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required string text = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_text()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(16)) goto parse_sendError;
break;
}
// required bool sendError = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
parse_sendError:
DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
bool, ::google::protobuf::internal::WireFormatLite::TYPE_BOOL>(
input, &senderror_)));
set_has_senderror();
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PingRequest::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required string text = 1;
if (has_text()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
1, this->text(), output);
}
// required bool sendError = 2;
if (has_senderror()) {
::google::protobuf::internal::WireFormatLite::WriteBool(2, this->senderror(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PingRequest::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required string text = 1;
if (has_text()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->text(), target);
}
// required bool sendError = 2;
if (has_senderror()) {
target = ::google::protobuf::internal::WireFormatLite::WriteBoolToArray(2, this->senderror(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PingRequest::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string text = 1;
if (has_text()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->text());
}
// required bool sendError = 2;
if (has_senderror()) {
total_size += 1 + 1;
}
}
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 PingRequest::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PingRequest* source =
::google::protobuf::internal::dynamic_cast_if_available<const PingRequest*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PingRequest::MergeFrom(const PingRequest& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_text()) {
set_text(from.text());
}
if (from.has_senderror()) {
set_senderror(from.senderror());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PingRequest::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PingRequest::CopyFrom(const PingRequest& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PingRequest::IsInitialized() const {
if ((_has_bits_[0] & 0x00000003) != 0x00000003) return false;
return true;
}
void PingRequest::Swap(PingRequest* other) {
if (other != this) {
std::swap(text_, other->text_);
std::swap(senderror_, other->senderror_);
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 PingRequest::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PingRequest_descriptor_;
metadata.reflection = PingRequest_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
const int PingResponse_PingResult::kTextFieldNumber;
#endif // !_MSC_VER
PingResponse_PingResult::PingResponse_PingResult()
: ::google::protobuf::Message() {
SharedCtor();
}
void PingResponse_PingResult::InitAsDefaultInstance() {
}
PingResponse_PingResult::PingResponse_PingResult(const PingResponse_PingResult& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PingResponse_PingResult::SharedCtor() {
_cached_size_ = 0;
text_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PingResponse_PingResult::~PingResponse_PingResult() {
SharedDtor();
}
void PingResponse_PingResult::SharedDtor() {
if (text_ != &::google::protobuf::internal::kEmptyString) {
delete text_;
}
if (this != default_instance_) {
}
}
void PingResponse_PingResult::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PingResponse_PingResult::descriptor() {
protobuf_AssignDescriptorsOnce();
return PingResponse_PingResult_descriptor_;
}
const PingResponse_PingResult& PingResponse_PingResult::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_pbrpc_2fPing_2eproto();
return *default_instance_;
}
PingResponse_PingResult* PingResponse_PingResult::default_instance_ = NULL;
PingResponse_PingResult* PingResponse_PingResult::New() const {
return new PingResponse_PingResult;
}
void PingResponse_PingResult::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_text()) {
if (text_ != &::google::protobuf::internal::kEmptyString) {
text_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PingResponse_PingResult::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required string text = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_text()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PingResponse_PingResult::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required string text = 1;
if (has_text()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
1, this->text(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PingResponse_PingResult::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required string text = 1;
if (has_text()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->text().data(), this->text().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->text(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PingResponse_PingResult::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required 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 PingResponse_PingResult::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PingResponse_PingResult* source =
::google::protobuf::internal::dynamic_cast_if_available<const PingResponse_PingResult*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PingResponse_PingResult::MergeFrom(const PingResponse_PingResult& 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 PingResponse_PingResult::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PingResponse_PingResult::CopyFrom(const PingResponse_PingResult& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PingResponse_PingResult::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void PingResponse_PingResult::Swap(PingResponse_PingResult* 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 PingResponse_PingResult::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PingResponse_PingResult_descriptor_;
metadata.reflection = PingResponse_PingResult_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int PingResponse_PingError::kErrorMessageFieldNumber;
#endif // !_MSC_VER
PingResponse_PingError::PingResponse_PingError()
: ::google::protobuf::Message() {
SharedCtor();
}
void PingResponse_PingError::InitAsDefaultInstance() {
}
PingResponse_PingError::PingResponse_PingError(const PingResponse_PingError& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PingResponse_PingError::SharedCtor() {
_cached_size_ = 0;
errormessage_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PingResponse_PingError::~PingResponse_PingError() {
SharedDtor();
}
void PingResponse_PingError::SharedDtor() {
if (errormessage_ != &::google::protobuf::internal::kEmptyString) {
delete errormessage_;
}
if (this != default_instance_) {
}
}
void PingResponse_PingError::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PingResponse_PingError::descriptor() {
protobuf_AssignDescriptorsOnce();
return PingResponse_PingError_descriptor_;
}
const PingResponse_PingError& PingResponse_PingError::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_pbrpc_2fPing_2eproto();
return *default_instance_;
}
PingResponse_PingError* PingResponse_PingError::default_instance_ = NULL;
PingResponse_PingError* PingResponse_PingError::New() const {
return new PingResponse_PingError;
}
void PingResponse_PingError::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_errormessage()) {
if (errormessage_ != &::google::protobuf::internal::kEmptyString) {
errormessage_->clear();
}
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PingResponse_PingError::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// required string errorMessage = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadString(
input, this->mutable_errormessage()));
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->errormessage().data(), this->errormessage().length(),
::google::protobuf::internal::WireFormat::PARSE);
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PingResponse_PingError::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// required string errorMessage = 1;
if (has_errormessage()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->errormessage().data(), this->errormessage().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
::google::protobuf::internal::WireFormatLite::WriteString(
1, this->errormessage(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PingResponse_PingError::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// required string errorMessage = 1;
if (has_errormessage()) {
::google::protobuf::internal::WireFormat::VerifyUTF8String(
this->errormessage().data(), this->errormessage().length(),
::google::protobuf::internal::WireFormat::SERIALIZE);
target =
::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1, this->errormessage(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PingResponse_PingError::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// required string errorMessage = 1;
if (has_errormessage()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::StringSize(
this->errormessage());
}
}
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 PingResponse_PingError::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PingResponse_PingError* source =
::google::protobuf::internal::dynamic_cast_if_available<const PingResponse_PingError*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PingResponse_PingError::MergeFrom(const PingResponse_PingError& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_errormessage()) {
set_errormessage(from.errormessage());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PingResponse_PingError::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PingResponse_PingError::CopyFrom(const PingResponse_PingError& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PingResponse_PingError::IsInitialized() const {
if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
return true;
}
void PingResponse_PingError::Swap(PingResponse_PingError* other) {
if (other != this) {
std::swap(errormessage_, other->errormessage_);
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 PingResponse_PingError::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PingResponse_PingError_descriptor_;
metadata.reflection = PingResponse_PingError_reflection_;
return metadata;
}
// -------------------------------------------------------------------
#ifndef _MSC_VER
const int PingResponse::kResultFieldNumber;
const int PingResponse::kErrorFieldNumber;
#endif // !_MSC_VER
PingResponse::PingResponse()
: ::google::protobuf::Message() {
SharedCtor();
}
void PingResponse::InitAsDefaultInstance() {
result_ = const_cast< ::xtreemfs::pbrpc::PingResponse_PingResult*>(&::xtreemfs::pbrpc::PingResponse_PingResult::default_instance());
error_ = const_cast< ::xtreemfs::pbrpc::PingResponse_PingError*>(&::xtreemfs::pbrpc::PingResponse_PingError::default_instance());
}
PingResponse::PingResponse(const PingResponse& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void PingResponse::SharedCtor() {
_cached_size_ = 0;
result_ = NULL;
error_ = NULL;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
PingResponse::~PingResponse() {
SharedDtor();
}
void PingResponse::SharedDtor() {
if (this != default_instance_) {
delete result_;
delete error_;
}
}
void PingResponse::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* PingResponse::descriptor() {
protobuf_AssignDescriptorsOnce();
return PingResponse_descriptor_;
}
const PingResponse& PingResponse::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_pbrpc_2fPing_2eproto();
return *default_instance_;
}
PingResponse* PingResponse::default_instance_ = NULL;
PingResponse* PingResponse::New() const {
return new PingResponse;
}
void PingResponse::Clear() {
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (has_result()) {
if (result_ != NULL) result_->::xtreemfs::pbrpc::PingResponse_PingResult::Clear();
}
if (has_error()) {
if (error_ != NULL) error_->::xtreemfs::pbrpc::PingResponse_PingError::Clear();
}
}
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool PingResponse::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
// optional .xtreemfs.pbrpc.PingResponse.PingResult result = 1;
case 1: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_result()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectTag(18)) goto parse_error;
break;
}
// optional .xtreemfs.pbrpc.PingResponse.PingError error = 2;
case 2: {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
parse_error:
DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
input, mutable_error()));
} else {
goto handle_uninterpreted;
}
if (input->ExpectAtEnd()) return true;
break;
}
default: {
handle_uninterpreted:
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
break;
}
}
}
return true;
#undef DO_
}
void PingResponse::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
// optional .xtreemfs.pbrpc.PingResponse.PingResult result = 1;
if (has_result()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1, this->result(), output);
}
// optional .xtreemfs.pbrpc.PingResponse.PingError error = 2;
if (has_error()) {
::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2, this->error(), output);
}
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* PingResponse::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
// optional .xtreemfs.pbrpc.PingResponse.PingResult result = 1;
if (has_result()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
1, this->result(), target);
}
// optional .xtreemfs.pbrpc.PingResponse.PingError error = 2;
if (has_error()) {
target = ::google::protobuf::internal::WireFormatLite::
WriteMessageNoVirtualToArray(
2, this->error(), target);
}
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int PingResponse::ByteSize() const {
int total_size = 0;
if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
// optional .xtreemfs.pbrpc.PingResponse.PingResult result = 1;
if (has_result()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->result());
}
// optional .xtreemfs.pbrpc.PingResponse.PingError error = 2;
if (has_error()) {
total_size += 1 +
::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
this->error());
}
}
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 PingResponse::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const PingResponse* source =
::google::protobuf::internal::dynamic_cast_if_available<const PingResponse*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void PingResponse::MergeFrom(const PingResponse& from) {
GOOGLE_CHECK_NE(&from, this);
if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
if (from.has_result()) {
mutable_result()->::xtreemfs::pbrpc::PingResponse_PingResult::MergeFrom(from.result());
}
if (from.has_error()) {
mutable_error()->::xtreemfs::pbrpc::PingResponse_PingError::MergeFrom(from.error());
}
}
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void PingResponse::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void PingResponse::CopyFrom(const PingResponse& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool PingResponse::IsInitialized() const {
if (has_result()) {
if (!this->result().IsInitialized()) return false;
}
if (has_error()) {
if (!this->error().IsInitialized()) return false;
}
return true;
}
void PingResponse::Swap(PingResponse* other) {
if (other != this) {
std::swap(result_, other->result_);
std::swap(error_, other->error_);
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 PingResponse::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = PingResponse_descriptor_;
metadata.reflection = PingResponse_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
#endif // !_MSC_VER
Ping_emptyRequest::Ping_emptyRequest()
: ::google::protobuf::Message() {
SharedCtor();
}
void Ping_emptyRequest::InitAsDefaultInstance() {
}
Ping_emptyRequest::Ping_emptyRequest(const Ping_emptyRequest& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Ping_emptyRequest::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Ping_emptyRequest::~Ping_emptyRequest() {
SharedDtor();
}
void Ping_emptyRequest::SharedDtor() {
if (this != default_instance_) {
}
}
void Ping_emptyRequest::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Ping_emptyRequest::descriptor() {
protobuf_AssignDescriptorsOnce();
return Ping_emptyRequest_descriptor_;
}
const Ping_emptyRequest& Ping_emptyRequest::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_pbrpc_2fPing_2eproto();
return *default_instance_;
}
Ping_emptyRequest* Ping_emptyRequest::default_instance_ = NULL;
Ping_emptyRequest* Ping_emptyRequest::New() const {
return new Ping_emptyRequest;
}
void Ping_emptyRequest::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Ping_emptyRequest::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Ping_emptyRequest::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Ping_emptyRequest::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Ping_emptyRequest::ByteSize() const {
int total_size = 0;
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 Ping_emptyRequest::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Ping_emptyRequest* source =
::google::protobuf::internal::dynamic_cast_if_available<const Ping_emptyRequest*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Ping_emptyRequest::MergeFrom(const Ping_emptyRequest& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Ping_emptyRequest::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Ping_emptyRequest::CopyFrom(const Ping_emptyRequest& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Ping_emptyRequest::IsInitialized() const {
return true;
}
void Ping_emptyRequest::Swap(Ping_emptyRequest* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Ping_emptyRequest::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Ping_emptyRequest_descriptor_;
metadata.reflection = Ping_emptyRequest_reflection_;
return metadata;
}
// ===================================================================
#ifndef _MSC_VER
#endif // !_MSC_VER
Ping_emptyResponse::Ping_emptyResponse()
: ::google::protobuf::Message() {
SharedCtor();
}
void Ping_emptyResponse::InitAsDefaultInstance() {
}
Ping_emptyResponse::Ping_emptyResponse(const Ping_emptyResponse& from)
: ::google::protobuf::Message() {
SharedCtor();
MergeFrom(from);
}
void Ping_emptyResponse::SharedCtor() {
_cached_size_ = 0;
::memset(_has_bits_, 0, sizeof(_has_bits_));
}
Ping_emptyResponse::~Ping_emptyResponse() {
SharedDtor();
}
void Ping_emptyResponse::SharedDtor() {
if (this != default_instance_) {
}
}
void Ping_emptyResponse::SetCachedSize(int size) const {
GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
_cached_size_ = size;
GOOGLE_SAFE_CONCURRENT_WRITES_END();
}
const ::google::protobuf::Descriptor* Ping_emptyResponse::descriptor() {
protobuf_AssignDescriptorsOnce();
return Ping_emptyResponse_descriptor_;
}
const Ping_emptyResponse& Ping_emptyResponse::default_instance() {
if (default_instance_ == NULL) protobuf_AddDesc_pbrpc_2fPing_2eproto();
return *default_instance_;
}
Ping_emptyResponse* Ping_emptyResponse::default_instance_ = NULL;
Ping_emptyResponse* Ping_emptyResponse::New() const {
return new Ping_emptyResponse;
}
void Ping_emptyResponse::Clear() {
::memset(_has_bits_, 0, sizeof(_has_bits_));
mutable_unknown_fields()->Clear();
}
bool Ping_emptyResponse::MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input) {
#define DO_(EXPRESSION) if (!(EXPRESSION)) return false
::google::protobuf::uint32 tag;
while ((tag = input->ReadTag()) != 0) {
if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
return true;
}
DO_(::google::protobuf::internal::WireFormat::SkipField(
input, tag, mutable_unknown_fields()));
}
return true;
#undef DO_
}
void Ping_emptyResponse::SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const {
if (!unknown_fields().empty()) {
::google::protobuf::internal::WireFormat::SerializeUnknownFields(
unknown_fields(), output);
}
}
::google::protobuf::uint8* Ping_emptyResponse::SerializeWithCachedSizesToArray(
::google::protobuf::uint8* target) const {
if (!unknown_fields().empty()) {
target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
unknown_fields(), target);
}
return target;
}
int Ping_emptyResponse::ByteSize() const {
int total_size = 0;
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 Ping_emptyResponse::MergeFrom(const ::google::protobuf::Message& from) {
GOOGLE_CHECK_NE(&from, this);
const Ping_emptyResponse* source =
::google::protobuf::internal::dynamic_cast_if_available<const Ping_emptyResponse*>(
&from);
if (source == NULL) {
::google::protobuf::internal::ReflectionOps::Merge(from, this);
} else {
MergeFrom(*source);
}
}
void Ping_emptyResponse::MergeFrom(const Ping_emptyResponse& from) {
GOOGLE_CHECK_NE(&from, this);
mutable_unknown_fields()->MergeFrom(from.unknown_fields());
}
void Ping_emptyResponse::CopyFrom(const ::google::protobuf::Message& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
void Ping_emptyResponse::CopyFrom(const Ping_emptyResponse& from) {
if (&from == this) return;
Clear();
MergeFrom(from);
}
bool Ping_emptyResponse::IsInitialized() const {
return true;
}
void Ping_emptyResponse::Swap(Ping_emptyResponse* other) {
if (other != this) {
_unknown_fields_.Swap(&other->_unknown_fields_);
std::swap(_cached_size_, other->_cached_size_);
}
}
::google::protobuf::Metadata Ping_emptyResponse::GetMetadata() const {
protobuf_AssignDescriptorsOnce();
::google::protobuf::Metadata metadata;
metadata.descriptor = Ping_emptyResponse_descriptor_;
metadata.reflection = Ping_emptyResponse_reflection_;
return metadata;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace pbrpc
} // namespace xtreemfs
// @@protoc_insertion_point(global_scope)