221 lines
6.6 KiB
C++
221 lines
6.6 KiB
C++
// Generated by the protocol buffer compiler. DO NOT EDIT!
|
|
// source: request.proto
|
|
|
|
#ifndef PROTOBUF_request_2eproto__INCLUDED
|
|
#define PROTOBUF_request_2eproto__INCLUDED
|
|
|
|
#include <string>
|
|
|
|
#include <google/protobuf/stubs/common.h>
|
|
|
|
#if GOOGLE_PROTOBUF_VERSION < 2006000
|
|
#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 2006001 < 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/message.h>
|
|
#include <google/protobuf/repeated_field.h>
|
|
#include <google/protobuf/extension_set.h>
|
|
#include <google/protobuf/unknown_field_set.h>
|
|
// @@protoc_insertion_point(includes)
|
|
|
|
namespace Messages {
|
|
|
|
// Internal implementation detail -- do not call these.
|
|
void protobuf_AddDesc_request_2eproto();
|
|
void protobuf_AssignDesc_request_2eproto();
|
|
void protobuf_ShutdownFile_request_2eproto();
|
|
|
|
class Request;
|
|
|
|
// ===================================================================
|
|
|
|
class Request : public ::google::protobuf::Message {
|
|
public:
|
|
Request();
|
|
virtual ~Request();
|
|
|
|
Request(const Request& from);
|
|
|
|
inline Request& operator=(const Request& 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 Request& default_instance();
|
|
|
|
void Swap(Request* other);
|
|
|
|
// implements Message ----------------------------------------------
|
|
|
|
Request* New() const;
|
|
void CopyFrom(const ::google::protobuf::Message& from);
|
|
void MergeFrom(const ::google::protobuf::Message& from);
|
|
void CopyFrom(const Request& from);
|
|
void MergeFrom(const Request& 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 -------------------------------------------------------
|
|
|
|
// optional string text = 1;
|
|
inline bool has_text() const;
|
|
inline void clear_text();
|
|
static const int kTextFieldNumber = 1;
|
|
inline const ::std::string& text() const;
|
|
inline void set_text(const ::std::string& value);
|
|
inline void set_text(const char* value);
|
|
inline void set_text(const char* value, size_t size);
|
|
inline ::std::string* mutable_text();
|
|
inline ::std::string* release_text();
|
|
inline void set_allocated_text(::std::string* text);
|
|
|
|
// @@protoc_insertion_point(class_scope:Messages.Request)
|
|
private:
|
|
inline void set_has_text();
|
|
inline void clear_has_text();
|
|
|
|
::google::protobuf::UnknownFieldSet _unknown_fields_;
|
|
|
|
::google::protobuf::uint32 _has_bits_[1];
|
|
mutable int _cached_size_;
|
|
::std::string* text_;
|
|
friend void protobuf_AddDesc_request_2eproto();
|
|
friend void protobuf_AssignDesc_request_2eproto();
|
|
friend void protobuf_ShutdownFile_request_2eproto();
|
|
|
|
void InitAsDefaultInstance();
|
|
static Request* default_instance_;
|
|
};
|
|
// ===================================================================
|
|
|
|
|
|
// ===================================================================
|
|
|
|
// Request
|
|
|
|
// optional string text = 1;
|
|
inline bool Request::has_text() const {
|
|
return (_has_bits_[0] & 0x00000001u) != 0;
|
|
}
|
|
inline void Request::set_has_text() {
|
|
_has_bits_[0] |= 0x00000001u;
|
|
}
|
|
inline void Request::clear_has_text() {
|
|
_has_bits_[0] &= ~0x00000001u;
|
|
}
|
|
inline void Request::clear_text() {
|
|
if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
text_->clear();
|
|
}
|
|
clear_has_text();
|
|
}
|
|
inline const ::std::string& Request::text() const {
|
|
// @@protoc_insertion_point(field_get:Messages.Request.text)
|
|
return *text_;
|
|
}
|
|
inline void Request::set_text(const ::std::string& value) {
|
|
set_has_text();
|
|
if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
text_ = new ::std::string;
|
|
}
|
|
text_->assign(value);
|
|
// @@protoc_insertion_point(field_set:Messages.Request.text)
|
|
}
|
|
inline void Request::set_text(const char* value) {
|
|
set_has_text();
|
|
if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
text_ = new ::std::string;
|
|
}
|
|
text_->assign(value);
|
|
// @@protoc_insertion_point(field_set_char:Messages.Request.text)
|
|
}
|
|
inline void Request::set_text(const char* value, size_t size) {
|
|
set_has_text();
|
|
if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
text_ = new ::std::string;
|
|
}
|
|
text_->assign(reinterpret_cast<const char*>(value), size);
|
|
// @@protoc_insertion_point(field_set_pointer:Messages.Request.text)
|
|
}
|
|
inline ::std::string* Request::mutable_text() {
|
|
set_has_text();
|
|
if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
text_ = new ::std::string;
|
|
}
|
|
// @@protoc_insertion_point(field_mutable:Messages.Request.text)
|
|
return text_;
|
|
}
|
|
inline ::std::string* Request::release_text() {
|
|
clear_has_text();
|
|
if (text_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
return NULL;
|
|
} else {
|
|
::std::string* temp = text_;
|
|
text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
return temp;
|
|
}
|
|
}
|
|
inline void Request::set_allocated_text(::std::string* text) {
|
|
if (text_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
|
|
delete text_;
|
|
}
|
|
if (text) {
|
|
set_has_text();
|
|
text_ = text;
|
|
} else {
|
|
clear_has_text();
|
|
text_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
|
|
}
|
|
// @@protoc_insertion_point(field_set_allocated:Messages.Request.text)
|
|
}
|
|
|
|
|
|
// @@protoc_insertion_point(namespace_scope)
|
|
|
|
} // namespace Messages
|
|
|
|
#ifndef SWIG
|
|
namespace google {
|
|
namespace protobuf {
|
|
|
|
|
|
} // namespace google
|
|
} // namespace protobuf
|
|
#endif // SWIG
|
|
|
|
// @@protoc_insertion_point(global_scope)
|
|
|
|
#endif // PROTOBUF_request_2eproto__INCLUDED
|