|
// Generated by the protocol buffer compiler. DO NOT EDIT!
// source: responses.proto
#ifndef PROTOBUF_responses_2eproto__INCLUDED
#define PROTOBUF_responses_2eproto__INCLUDED
#include "ProtoBufExampleProtocol.h"
#include <string>
#include <google/protobuf/stubs/common.h>
#if GOOGLE_PROTOBUF_VERSION < 2003000
#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 2003000 < 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 gprotoexample {
// Internal implementation detail -- do not call these.
void protobuf_AddDesc_responses_2eproto();
void protobuf_AssignDesc_responses_2eproto();
void protobuf_ShutdownFile_responses_2eproto();
class LoginResponse;
class DataInfoResponse;
enum DataInfoResponse_ResultType {
DataInfoResponse_ResultType_InfoFound = 0,
DataInfoResponse_ResultType_InfoNotFound = 1,
DataInfoResponse_ResultType_InfounspecifiedError = 2
};
bool DataInfoResponse_ResultType_IsValid(int value);
const DataInfoResponse_ResultType DataInfoResponse_ResultType_ResultType_MIN = DataInfoResponse_ResultType_InfoFound;
const DataInfoResponse_ResultType DataInfoResponse_ResultType_ResultType_MAX = DataInfoResponse_ResultType_InfounspecifiedError;
const int DataInfoResponse_ResultType_ResultType_ARRAYSIZE = DataInfoResponse_ResultType_ResultType_MAX + 1;
const ::google::protobuf::EnumDescriptor* DataInfoResponse_ResultType_descriptor();
inline const ::std::string& DataInfoResponse_ResultType_Name(DataInfoResponse_ResultType value) {
return ::google::protobuf::internal::NameOfEnum(
DataInfoResponse_ResultType_descriptor(), value);
}
inline bool DataInfoResponse_ResultType_Parse(
const ::std::string& name, DataInfoResponse_ResultType* value) {
return ::google::protobuf::internal::ParseNamedEnum<DataInfoResponse_ResultType>(
DataInfoResponse_ResultType_descriptor(), name, value);
}
// ===================================================================
class PROTOBUFEXAMPLEPROTOCOL_API LoginResponse : public ::google::protobuf::Message {
public:
LoginResponse();
virtual ~LoginResponse();
LoginResponse(const LoginResponse& from);
inline LoginResponse& operator=(const LoginResponse& 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 LoginResponse& default_instance();
void Swap(LoginResponse* other);
// implements Message ----------------------------------------------
LoginResponse* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const LoginResponse& from);
void MergeFrom(const LoginResponse& 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 bool result = 1;
inline bool has_result() const;
inline void clear_result();
static const int kResultFieldNumber = 1;
inline bool result() const;
inline void set_result(bool value);
// @@protoc_insertion_point(class_scope:gprotoexample.LoginResponse)
private:
::google::protobuf::UnknownFieldSet _unknown_fields_;
mutable int _cached_size_;
bool result_;
friend void protobuf_AddDesc_responses_2eproto();
friend void protobuf_AssignDesc_responses_2eproto();
friend void protobuf_ShutdownFile_responses_2eproto();
::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
// WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
inline bool _has_bit(int index) const {
return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
}
inline void _set_bit(int index) {
_has_bits_[index / 32] |= (1u << (index % 32));
}
inline void _clear_bit(int index) {
_has_bits_[index / 32] &= ~(1u << (index % 32));
}
void InitAsDefaultInstance();
static LoginResponse* default_instance_;
};
// -------------------------------------------------------------------
class PROTOBUFEXAMPLEPROTOCOL_API DataInfoResponse : public ::google::protobuf::Message {
public:
DataInfoResponse();
virtual ~DataInfoResponse();
DataInfoResponse(const DataInfoResponse& from);
inline DataInfoResponse& operator=(const DataInfoResponse& 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 DataInfoResponse& default_instance();
void Swap(DataInfoResponse* other);
// implements Message ----------------------------------------------
DataInfoResponse* New() const;
void CopyFrom(const ::google::protobuf::Message& from);
void MergeFrom(const ::google::protobuf::Message& from);
void CopyFrom(const DataInfoResponse& from);
void MergeFrom(const DataInfoResponse& 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 ----------------------------------------------------
typedef DataInfoResponse_ResultType ResultType;
static const ResultType InfoFound = DataInfoResponse_ResultType_InfoFound;
static const ResultType InfoNotFound = DataInfoResponse_ResultType_InfoNotFound;
static const ResultType InfounspecifiedError = DataInfoResponse_ResultType_InfounspecifiedError;
static inline bool ResultType_IsValid(int value) {
return DataInfoResponse_ResultType_IsValid(value);
}
static const ResultType ResultType_MIN =
DataInfoResponse_ResultType_ResultType_MIN;
static const ResultType ResultType_MAX =
DataInfoResponse_ResultType_ResultType_MAX;
static const int ResultType_ARRAYSIZE =
DataInfoResponse_ResultType_ResultType_ARRAYSIZE;
static inline const ::google::protobuf::EnumDescriptor*
ResultType_descriptor() {
return DataInfoResponse_ResultType_descriptor();
}
static inline const ::std::string& ResultType_Name(ResultType value) {
return DataInfoResponse_ResultType_Name(value);
}
static inline bool ResultType_Parse(const ::std::string& name,
ResultType* value) {
return DataInfoResponse_ResultType_Parse(name, value);
}
// accessors -------------------------------------------------------
// required .gprotoexample.DataInfoResponse.ResultType result = 1;
inline bool has_result() const;
inline void clear_result();
static const int kResultFieldNumber = 1;
inline ::gprotoexample::DataInfoResponse_ResultType result() const;
inline void set_result(::gprotoexample::DataInfoResponse_ResultType value);
// required int32 id = 2;
inline bool has_id() const;
inline void clear_id();
static const int kIdFieldNumber = 2;
inline ::google::protobuf::int32 id() const;
inline void set_id(::google::protobuf::int32 value);
// optional string description = 3;
inline bool has_description() const;
inline void clear_description();
static const int kDescriptionFieldNumber = 3;
inline const ::std::string& description() const;
inline void set_description(const ::std::string& value);
inline void set_description(const char* value);
inline void set_description(const char* value, size_t size);
inline ::std::string* mutable_description();
// @@protoc_insertion_point(class_scope:gprotoexample.DataInfoResponse)
private:
::google::protobuf::UnknownFieldSet _unknown_fields_;
mutable int _cached_size_;
int result_;
::google::protobuf::int32 id_;
::std::string* description_;
static const ::std::string _default_description_;
friend void protobuf_AddDesc_responses_2eproto();
friend void protobuf_AssignDesc_responses_2eproto();
friend void protobuf_ShutdownFile_responses_2eproto();
::google::protobuf::uint32 _has_bits_[(3 + 31) / 32];
// WHY DOES & HAVE LOWER PRECEDENCE THAN != !?
inline bool _has_bit(int index) const {
return (_has_bits_[index / 32] & (1u << (index % 32))) != 0;
}
inline void _set_bit(int index) {
_has_bits_[index / 32] |= (1u << (index % 32));
}
inline void _clear_bit(int index) {
_has_bits_[index / 32] &= ~(1u << (index % 32));
}
void InitAsDefaultInstance();
static DataInfoResponse* default_instance_;
};
// ===================================================================
// ===================================================================
// LoginResponse
// required bool result = 1;
inline bool LoginResponse::has_result() const {
return _has_bit(0);
}
inline void LoginResponse::clear_result() {
result_ = false;
_clear_bit(0);
}
inline bool LoginResponse::result() const {
return result_;
}
inline void LoginResponse::set_result(bool value) {
_set_bit(0);
result_ = value;
}
// -------------------------------------------------------------------
// DataInfoResponse
// required .gprotoexample.DataInfoResponse.ResultType result = 1;
inline bool DataInfoResponse::has_result() const {
return _has_bit(0);
}
inline void DataInfoResponse::clear_result() {
result_ = 0;
_clear_bit(0);
}
inline ::gprotoexample::DataInfoResponse_ResultType DataInfoResponse::result() const {
return static_cast< ::gprotoexample::DataInfoResponse_ResultType >(result_);
}
inline void DataInfoResponse::set_result(::gprotoexample::DataInfoResponse_ResultType value) {
GOOGLE_DCHECK(::gprotoexample::DataInfoResponse_ResultType_IsValid(value));
_set_bit(0);
result_ = value;
}
// required int32 id = 2;
inline bool DataInfoResponse::has_id() const {
return _has_bit(1);
}
inline void DataInfoResponse::clear_id() {
id_ = 0;
_clear_bit(1);
}
inline ::google::protobuf::int32 DataInfoResponse::id() const {
return id_;
}
inline void DataInfoResponse::set_id(::google::protobuf::int32 value) {
_set_bit(1);
id_ = value;
}
// optional string description = 3;
inline bool DataInfoResponse::has_description() const {
return _has_bit(2);
}
inline void DataInfoResponse::clear_description() {
if (description_ != &_default_description_) {
description_->clear();
}
_clear_bit(2);
}
inline const ::std::string& DataInfoResponse::description() const {
return *description_;
}
inline void DataInfoResponse::set_description(const ::std::string& value) {
_set_bit(2);
if (description_ == &_default_description_) {
description_ = new ::std::string;
}
description_->assign(value);
}
inline void DataInfoResponse::set_description(const char* value) {
_set_bit(2);
if (description_ == &_default_description_) {
description_ = new ::std::string;
}
description_->assign(value);
}
inline void DataInfoResponse::set_description(const char* value, size_t size) {
_set_bit(2);
if (description_ == &_default_description_) {
description_ = new ::std::string;
}
description_->assign(reinterpret_cast<const char*>(value), size);
}
inline ::std::string* DataInfoResponse::mutable_description() {
_set_bit(2);
if (description_ == &_default_description_) {
description_ = new ::std::string;
}
return description_;
}
// @@protoc_insertion_point(namespace_scope)
} // namespace gprotoexample
#ifndef SWIG
namespace google {
namespace protobuf {
template <>
inline const EnumDescriptor* GetEnumDescriptor< ::gprotoexample::DataInfoResponse_ResultType>() {
return ::gprotoexample::DataInfoResponse_ResultType_descriptor();
}
} // namespace google
} // namespace protobuf
#endif // SWIG
// @@protoc_insertion_point(global_scope)
#endif // PROTOBUF_responses_2eproto__INCLUDED
|
By viewing downloads associated with this article you agree to the Terms of Service and the article's licence.
If a file you wish to view isn't highlighted, and is a text file (not binary), please
let us know and we'll add colourisation support for it.