| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: echo.proto
- #ifndef PROTOBUF_echo_2eproto__INCLUDED
- #define PROTOBUF_echo_2eproto__INCLUDED
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3000000
- #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 3000000 < 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/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h>
- #include <google/protobuf/extension_set.h>
- #include <google/protobuf/service.h>
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- namespace iv {
- // Internal implementation detail -- do not call these.
- void protobuf_AddDesc_echo_2eproto();
- void protobuf_AssignDesc_echo_2eproto();
- void protobuf_ShutdownFile_echo_2eproto();
- class EchoRequest;
- class EchoResponse;
- // ===================================================================
- class EchoRequest : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:iv.EchoRequest) */ {
- public:
- EchoRequest();
- virtual ~EchoRequest();
- EchoRequest(const EchoRequest& from);
- inline EchoRequest& operator=(const EchoRequest& from) {
- CopyFrom(from);
- return *this;
- }
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const EchoRequest& default_instance();
- void Swap(EchoRequest* other);
- // implements Message ----------------------------------------------
- inline EchoRequest* New() const { return New(NULL); }
- EchoRequest* New(::google::protobuf::Arena* arena) const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const EchoRequest& from);
- void MergeFrom(const EchoRequest& 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* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
- return InternalSerializeWithCachedSizesToArray(false, output);
- }
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- void InternalSwap(EchoRequest* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required string msgname = 1;
- bool has_msgname() const;
- void clear_msgname();
- static const int kMsgnameFieldNumber = 1;
- const ::std::string& msgname() const;
- void set_msgname(const ::std::string& value);
- void set_msgname(const char* value);
- void set_msgname(const char* value, size_t size);
- ::std::string* mutable_msgname();
- ::std::string* release_msgname();
- void set_allocated_msgname(::std::string* msgname);
- // required int64 index = 2;
- bool has_index() const;
- void clear_index();
- static const int kIndexFieldNumber = 2;
- ::google::protobuf::int64 index() const;
- void set_index(::google::protobuf::int64 value);
- // required int32 nlen = 3;
- bool has_nlen() const;
- void clear_nlen();
- static const int kNlenFieldNumber = 3;
- ::google::protobuf::int32 nlen() const;
- void set_nlen(::google::protobuf::int32 value);
- // optional bytes xdata = 4;
- bool has_xdata() const;
- void clear_xdata();
- static const int kXdataFieldNumber = 4;
- const ::std::string& xdata() const;
- void set_xdata(const ::std::string& value);
- void set_xdata(const char* value);
- void set_xdata(const void* value, size_t size);
- ::std::string* mutable_xdata();
- ::std::string* release_xdata();
- void set_allocated_xdata(::std::string* xdata);
- // @@protoc_insertion_point(class_scope:iv.EchoRequest)
- private:
- inline void set_has_msgname();
- inline void clear_has_msgname();
- inline void set_has_index();
- inline void clear_has_index();
- inline void set_has_nlen();
- inline void clear_has_nlen();
- inline void set_has_xdata();
- inline void clear_has_xdata();
- // helper for ByteSize()
- int RequiredFieldsByteSizeFallback() const;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::uint32 _has_bits_[1];
- mutable int _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr msgname_;
- ::google::protobuf::int64 index_;
- ::google::protobuf::internal::ArenaStringPtr xdata_;
- ::google::protobuf::int32 nlen_;
- friend void protobuf_AddDesc_echo_2eproto();
- friend void protobuf_AssignDesc_echo_2eproto();
- friend void protobuf_ShutdownFile_echo_2eproto();
- void InitAsDefaultInstance();
- static EchoRequest* default_instance_;
- };
- // -------------------------------------------------------------------
- class EchoResponse : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:iv.EchoResponse) */ {
- public:
- EchoResponse();
- virtual ~EchoResponse();
- EchoResponse(const EchoResponse& from);
- inline EchoResponse& operator=(const EchoResponse& from) {
- CopyFrom(from);
- return *this;
- }
- inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
- return _internal_metadata_.unknown_fields();
- }
- inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
- return _internal_metadata_.mutable_unknown_fields();
- }
- static const ::google::protobuf::Descriptor* descriptor();
- static const EchoResponse& default_instance();
- void Swap(EchoResponse* other);
- // implements Message ----------------------------------------------
- inline EchoResponse* New() const { return New(NULL); }
- EchoResponse* New(::google::protobuf::Arena* arena) const;
- void CopyFrom(const ::google::protobuf::Message& from);
- void MergeFrom(const ::google::protobuf::Message& from);
- void CopyFrom(const EchoResponse& from);
- void MergeFrom(const EchoResponse& 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* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* output) const;
- ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const {
- return InternalSerializeWithCachedSizesToArray(false, output);
- }
- int GetCachedSize() const { return _cached_size_; }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const;
- void InternalSwap(EchoResponse* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return _internal_metadata_.arena();
- }
- inline void* MaybeArenaPtr() const {
- return _internal_metadata_.raw_arena_ptr();
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // required string msgname = 1;
- bool has_msgname() const;
- void clear_msgname();
- static const int kMsgnameFieldNumber = 1;
- const ::std::string& msgname() const;
- void set_msgname(const ::std::string& value);
- void set_msgname(const char* value);
- void set_msgname(const char* value, size_t size);
- ::std::string* mutable_msgname();
- ::std::string* release_msgname();
- void set_allocated_msgname(::std::string* msgname);
- // required int64 index = 2;
- bool has_index() const;
- void clear_index();
- static const int kIndexFieldNumber = 2;
- ::google::protobuf::int64 index() const;
- void set_index(::google::protobuf::int64 value);
- // @@protoc_insertion_point(class_scope:iv.EchoResponse)
- private:
- inline void set_has_msgname();
- inline void clear_has_msgname();
- inline void set_has_index();
- inline void clear_has_index();
- // helper for ByteSize()
- int RequiredFieldsByteSizeFallback() const;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::uint32 _has_bits_[1];
- mutable int _cached_size_;
- ::google::protobuf::internal::ArenaStringPtr msgname_;
- ::google::protobuf::int64 index_;
- friend void protobuf_AddDesc_echo_2eproto();
- friend void protobuf_AssignDesc_echo_2eproto();
- friend void protobuf_ShutdownFile_echo_2eproto();
- void InitAsDefaultInstance();
- static EchoResponse* default_instance_;
- };
- // ===================================================================
- class EchoService_Stub;
- class EchoService : public ::google::protobuf::Service {
- protected:
- // This class should be treated as an abstract interface.
- inline EchoService() {};
- public:
- virtual ~EchoService();
- typedef EchoService_Stub Stub;
- static const ::google::protobuf::ServiceDescriptor* descriptor();
- virtual void Echo(::google::protobuf::RpcController* controller,
- const ::iv::EchoRequest* request,
- ::iv::EchoResponse* response,
- ::google::protobuf::Closure* done);
- // implements Service ----------------------------------------------
- const ::google::protobuf::ServiceDescriptor* GetDescriptor();
- void CallMethod(const ::google::protobuf::MethodDescriptor* method,
- ::google::protobuf::RpcController* controller,
- const ::google::protobuf::Message* request,
- ::google::protobuf::Message* response,
- ::google::protobuf::Closure* done);
- const ::google::protobuf::Message& GetRequestPrototype(
- const ::google::protobuf::MethodDescriptor* method) const;
- const ::google::protobuf::Message& GetResponsePrototype(
- const ::google::protobuf::MethodDescriptor* method) const;
- private:
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService);
- };
- class EchoService_Stub : public EchoService {
- public:
- EchoService_Stub(::google::protobuf::RpcChannel* channel);
- EchoService_Stub(::google::protobuf::RpcChannel* channel,
- ::google::protobuf::Service::ChannelOwnership ownership);
- ~EchoService_Stub();
- inline ::google::protobuf::RpcChannel* channel() { return channel_; }
- // implements EchoService ------------------------------------------
- void Echo(::google::protobuf::RpcController* controller,
- const ::iv::EchoRequest* request,
- ::iv::EchoResponse* response,
- ::google::protobuf::Closure* done);
- private:
- ::google::protobuf::RpcChannel* channel_;
- bool owns_channel_;
- GOOGLE_DISALLOW_EVIL_CONSTRUCTORS(EchoService_Stub);
- };
- // ===================================================================
- // ===================================================================
- #if !PROTOBUF_INLINE_NOT_IN_HEADERS
- // EchoRequest
- // required string msgname = 1;
- inline bool EchoRequest::has_msgname() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void EchoRequest::set_has_msgname() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void EchoRequest::clear_has_msgname() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void EchoRequest::clear_msgname() {
- msgname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_msgname();
- }
- inline const ::std::string& EchoRequest::msgname() const {
- // @@protoc_insertion_point(field_get:iv.EchoRequest.msgname)
- return msgname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void EchoRequest::set_msgname(const ::std::string& value) {
- set_has_msgname();
- msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:iv.EchoRequest.msgname)
- }
- inline void EchoRequest::set_msgname(const char* value) {
- set_has_msgname();
- msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:iv.EchoRequest.msgname)
- }
- inline void EchoRequest::set_msgname(const char* value, size_t size) {
- set_has_msgname();
- msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:iv.EchoRequest.msgname)
- }
- inline ::std::string* EchoRequest::mutable_msgname() {
- set_has_msgname();
- // @@protoc_insertion_point(field_mutable:iv.EchoRequest.msgname)
- return msgname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* EchoRequest::release_msgname() {
- // @@protoc_insertion_point(field_release:iv.EchoRequest.msgname)
- clear_has_msgname();
- return msgname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void EchoRequest::set_allocated_msgname(::std::string* msgname) {
- if (msgname != NULL) {
- set_has_msgname();
- } else {
- clear_has_msgname();
- }
- msgname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msgname);
- // @@protoc_insertion_point(field_set_allocated:iv.EchoRequest.msgname)
- }
- // required int64 index = 2;
- inline bool EchoRequest::has_index() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void EchoRequest::set_has_index() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void EchoRequest::clear_has_index() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void EchoRequest::clear_index() {
- index_ = GOOGLE_LONGLONG(0);
- clear_has_index();
- }
- inline ::google::protobuf::int64 EchoRequest::index() const {
- // @@protoc_insertion_point(field_get:iv.EchoRequest.index)
- return index_;
- }
- inline void EchoRequest::set_index(::google::protobuf::int64 value) {
- set_has_index();
- index_ = value;
- // @@protoc_insertion_point(field_set:iv.EchoRequest.index)
- }
- // required int32 nlen = 3;
- inline bool EchoRequest::has_nlen() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void EchoRequest::set_has_nlen() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void EchoRequest::clear_has_nlen() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void EchoRequest::clear_nlen() {
- nlen_ = 0;
- clear_has_nlen();
- }
- inline ::google::protobuf::int32 EchoRequest::nlen() const {
- // @@protoc_insertion_point(field_get:iv.EchoRequest.nlen)
- return nlen_;
- }
- inline void EchoRequest::set_nlen(::google::protobuf::int32 value) {
- set_has_nlen();
- nlen_ = value;
- // @@protoc_insertion_point(field_set:iv.EchoRequest.nlen)
- }
- // optional bytes xdata = 4;
- inline bool EchoRequest::has_xdata() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void EchoRequest::set_has_xdata() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void EchoRequest::clear_has_xdata() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void EchoRequest::clear_xdata() {
- xdata_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_xdata();
- }
- inline const ::std::string& EchoRequest::xdata() const {
- // @@protoc_insertion_point(field_get:iv.EchoRequest.xdata)
- return xdata_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void EchoRequest::set_xdata(const ::std::string& value) {
- set_has_xdata();
- xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:iv.EchoRequest.xdata)
- }
- inline void EchoRequest::set_xdata(const char* value) {
- set_has_xdata();
- xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:iv.EchoRequest.xdata)
- }
- inline void EchoRequest::set_xdata(const void* value, size_t size) {
- set_has_xdata();
- xdata_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:iv.EchoRequest.xdata)
- }
- inline ::std::string* EchoRequest::mutable_xdata() {
- set_has_xdata();
- // @@protoc_insertion_point(field_mutable:iv.EchoRequest.xdata)
- return xdata_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* EchoRequest::release_xdata() {
- // @@protoc_insertion_point(field_release:iv.EchoRequest.xdata)
- clear_has_xdata();
- return xdata_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void EchoRequest::set_allocated_xdata(::std::string* xdata) {
- if (xdata != NULL) {
- set_has_xdata();
- } else {
- clear_has_xdata();
- }
- xdata_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), xdata);
- // @@protoc_insertion_point(field_set_allocated:iv.EchoRequest.xdata)
- }
- // -------------------------------------------------------------------
- // EchoResponse
- // required string msgname = 1;
- inline bool EchoResponse::has_msgname() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void EchoResponse::set_has_msgname() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void EchoResponse::clear_has_msgname() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void EchoResponse::clear_msgname() {
- msgname_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_msgname();
- }
- inline const ::std::string& EchoResponse::msgname() const {
- // @@protoc_insertion_point(field_get:iv.EchoResponse.msgname)
- return msgname_.GetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void EchoResponse::set_msgname(const ::std::string& value) {
- set_has_msgname();
- msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:iv.EchoResponse.msgname)
- }
- inline void EchoResponse::set_msgname(const char* value) {
- set_has_msgname();
- msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:iv.EchoResponse.msgname)
- }
- inline void EchoResponse::set_msgname(const char* value, size_t size) {
- set_has_msgname();
- msgname_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:iv.EchoResponse.msgname)
- }
- inline ::std::string* EchoResponse::mutable_msgname() {
- set_has_msgname();
- // @@protoc_insertion_point(field_mutable:iv.EchoResponse.msgname)
- return msgname_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* EchoResponse::release_msgname() {
- // @@protoc_insertion_point(field_release:iv.EchoResponse.msgname)
- clear_has_msgname();
- return msgname_.ReleaseNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void EchoResponse::set_allocated_msgname(::std::string* msgname) {
- if (msgname != NULL) {
- set_has_msgname();
- } else {
- clear_has_msgname();
- }
- msgname_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), msgname);
- // @@protoc_insertion_point(field_set_allocated:iv.EchoResponse.msgname)
- }
- // required int64 index = 2;
- inline bool EchoResponse::has_index() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void EchoResponse::set_has_index() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void EchoResponse::clear_has_index() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void EchoResponse::clear_index() {
- index_ = GOOGLE_LONGLONG(0);
- clear_has_index();
- }
- inline ::google::protobuf::int64 EchoResponse::index() const {
- // @@protoc_insertion_point(field_get:iv.EchoResponse.index)
- return index_;
- }
- inline void EchoResponse::set_index(::google::protobuf::int64 value) {
- set_has_index();
- index_ = value;
- // @@protoc_insertion_point(field_set:iv.EchoResponse.index)
- }
- #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace iv
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_echo_2eproto__INCLUDED
|