// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: msg.proto
#ifndef PROTOBUF_msg_2eproto__INCLUDED
#define PROTOBUF_msg_2eproto__INCLUDED
#include <string>
#include <google/protobuf/stubs/common.h>
/*
#if GOOGLE_PROTOBUF_VERSION < 2004000
#error This file was generated by a newer version of protoc which is
#error incompatible with your Protocol Buffer headers. Please update
#error your headers.
#endif
#if 2004001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
#error This file was generated by an older version of protoc which is
#error incompatible with your Protocol Buffer headers. Please
#error regenerate this file with a newer version of protoc.
#endif
*/
#include <google/protobuf/generated_message_util.h>
#include <google/protobuf/repeated_field.h>
#include <google/protobuf/extension_set.h>
#include <google/protobuf/generated_message_reflection.h>
// @@protoc_insertion_point(includes)
namespace Data {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_msg_2eproto();
void protobuf_AssignDesc_msg_2eproto();
void protobuf_ShutdownFile_msg_2eproto();
class datatype;
// ===================================================================
class datatype : public ::google::protobuf::Message {
public:
datatype();
virtual ~datatype();
datatype(const datatype& from);
inline datatype& operator=(const datatype& from) {
CopyFrom(from);
return *this;
}
inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
return _unknown_fields_;
}
inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
return &_unknown_fields_;
}
static const ::google::protobuf::Descriptor* descriptor();
static const datatype& default_instance();
void Swap(datatype* other);
// implements Message ----------------------------------------------
datatype* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const datatype& from);
void MergeFrom(const datatype& from);
void Clear();
bool IsInitialized() const;
int ByteSize() const;
bool MergePartialFromCodedStream(
::google::protobuf::io::CodedInputStream* input);
void SerializeWithCachedSizes(
::google::protobuf::io::CodedOutputStream* output) const;
::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
int GetCachedSize() const { return _cached_size_; }
private:
void SharedCtor();
void SharedDtor();
void SetCachedSize(int size) const;
public:
::google::protobuf::Metadata GetMetadata() const;
// nested types ----------------------------------------------------
// accessors -------------------------------------------------------
// required int32 port = 1;
inline bool has_port() const;
inline void clear_port();
static const int kPortFieldNumber = 1;
inline ::google::protobuf::int32 port() const;
inline void set_port(::google::protobuf::int32 value);
// required string address = 2;
inline bool has_address() const;
inline void clear_address();
static const int kAddressFieldNumber = 2;
inline const ::std::string& address() const;
inline void set_address(const ::std::string& value);
inline void set_address(const char* value);
inline void set_address(const char* value, size_t size);
inline ::std::string* mutable_address();
inline ::std::string* release_address();
// required string str = 3;
inline bool has_str() const;
inline void clear_str();
static const int kStrFieldNumber = 3;
inline const ::std::string& str() const;
inline void set_str(const ::std::string& value);
inline void set_str(const char* value);
inline void set_str(const char* value, size_t size);
inline ::std::string* mutable_str();
inline ::std::string* release_str();
// optional fixed64 length = 4;
inline bool has_length() const;
inline void clear_length();
static const int kLengthFieldNumber = 4;
inline ::google::protobuf::uint64 length() const;
inline void set_length(::google::protobuf::uint64 value);
// @@protoc_insertion_point(class_scope:Data.datatype)
private:
inline void set_has_port();
inline void clear_has_port();
inline void set_has_address();
inline void clear_has_address();
inline void set_has_str();
inline void clear_has_str();
inline void set_has_length();
inline void clear_has_length();
::google::protobuf::UnknownFieldSet _unknown_fields_;
::std::string* address_;
::std::string* str_;
::google::protobuf::uint64 length_;
::google::protobuf::int32 port_;
mutable int _cached_size_;
::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
friend void protobuf_AddDesc_msg_2eproto();
friend void protobuf_AssignDesc_msg_2eproto();
friend void protobuf_ShutdownFile_msg_2eproto();
void InitAsDefaultInstance();
static datatype* default_instance_;
};
// ===================================================================
// ===================================================================
// datatype
// required int32 port = 1;
inline bool datatype::has_port() const {
return (_has_bits_[0] & 0x00000001u) != 0;
}
inline void datatype::set_has_port() {
_has_bits_[0] |= 0x00000001u;
}
inline void datatype::clear_has_port() {
_has_bits_[0] &= ~0x00000001u;
}
inline void datatype::clear_port() {
port_ = 0;
clear_has_port();
}
inline ::google::protobuf::int32 datatype::port() const {
return port_;
}
inline void datatype::set_port(::google::protobuf::int32 value) {
set_has_port();
port_ = value;
}
// required string address = 2;
inline bool datatype::has_address() const {
return (_has_bits_[0] & 0x00000002u) != 0;
}
inline void datatype::set_has_address() {
_has_bits_[0] |= 0x00000002u;
}
inline void datatype::clear_has_address() {
_has_bits_[0] &= ~0x00000002u;
}
inline void datatype::clear_address() {
if (address_ != &::google::protobuf::internal::kEmptyString) {
address_->clear();
}
clear_has_address();
}
inline const ::std::string& datatype::address() const {
return *address_;
}
inline void datatype::set_address(const ::std::string& value) {
set_has_address();
if (address_ == &::google::protobuf::internal::kEmptyString) {
address_ = new ::std::string;
}
address_->assign(value);
}
inline void datatype::set_address(const char* value) {
set_has_address();
if (address_ == &::google::protobuf::internal::kEmptyString) {
address_ = new ::std::string;
}
address_->assign(value);
}
inline void datatype::set_address(const char* value, size_t size) {
set_has_address();
if (address_ == &::google::protobuf::internal::kEmptyString) {
address_ = new ::std::string;
}
address_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* datatype::mutable_address() {
set_has_address();
if (address_ == &::google::protobuf::internal::kEmptyString) {
address_ = new ::std::string;
}
return address_;
}
inline ::std::string* datatype::release_address() {
clear_has_address();
if (address_ == &::google::protobuf::internal::kEmptyString) {
return NULL;
} else {
::std::string* temp = address_;
address_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
return temp;
}
}
// required string str = 3;
inline bool datatype::has_str() const {
return (_has_bits_[0] & 0x00000004u) != 0;
}
inline void datatype::set_has_str() {
_has_bits_[0] |= 0x00000004u;
}
inline void datatype::clear_has_str() {
_has_bits_[0] &= ~0x00000004u;
}
inline void datatype::clear_str() {
if (str_ != &::google::protobuf::internal::kEmptyString) {
str_->clear();
}
clear_has_str();
}
inline const ::std::string& datatype::str() const {
return *str_;
}
inline void datatype::set_str(const ::std::string& value) {
set_has_str();
if (str_ == &::google::protobuf::internal::kEmptyString) {
str_ = new ::std: