| 12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421 |
- // Generated by the protocol buffer compiler. DO NOT EDIT!
- // source: google/protobuf/util/message_differencer_unittest.proto
- #ifndef PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto
- #define PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto
- #include <string>
- #include <google/protobuf/stubs/common.h>
- #if GOOGLE_PROTOBUF_VERSION < 3006001
- #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 3006001 < 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/io/coded_stream.h>
- #include <google/protobuf/arena.h>
- #include <google/protobuf/arenastring.h>
- #include <google/protobuf/generated_message_table_driven.h>
- #include <google/protobuf/generated_message_util.h>
- #include <google/protobuf/inlined_string_field.h>
- #include <google/protobuf/metadata.h>
- #include <google/protobuf/message.h>
- #include <google/protobuf/repeated_field.h> // IWYU pragma: export
- #include <google/protobuf/extension_set.h> // IWYU pragma: export
- #include <google/protobuf/unknown_field_set.h>
- // @@protoc_insertion_point(includes)
- #define PROTOBUF_INTERNAL_EXPORT_protobuf_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto
- namespace protobuf_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto {
- // Internal implementation detail -- do not use these members.
- struct TableStruct {
- static const ::google::protobuf::internal::ParseTableField entries[];
- static const ::google::protobuf::internal::AuxillaryParseTableField aux[];
- static const ::google::protobuf::internal::ParseTable schema[3];
- static const ::google::protobuf::internal::FieldMetadata field_metadata[];
- static const ::google::protobuf::internal::SerializationTable serialization_table[];
- static const ::google::protobuf::uint32 offsets[];
- };
- void AddDescriptors();
- } // namespace protobuf_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto
- namespace protobuf_unittest {
- class TestDiffMessage;
- class TestDiffMessageDefaultTypeInternal;
- extern TestDiffMessageDefaultTypeInternal _TestDiffMessage_default_instance_;
- class TestDiffMessage_Item;
- class TestDiffMessage_ItemDefaultTypeInternal;
- extern TestDiffMessage_ItemDefaultTypeInternal _TestDiffMessage_Item_default_instance_;
- class TestField;
- class TestFieldDefaultTypeInternal;
- extern TestFieldDefaultTypeInternal _TestField_default_instance_;
- } // namespace protobuf_unittest
- namespace google {
- namespace protobuf {
- template<> ::protobuf_unittest::TestDiffMessage* Arena::CreateMaybeMessage<::protobuf_unittest::TestDiffMessage>(Arena*);
- template<> ::protobuf_unittest::TestDiffMessage_Item* Arena::CreateMaybeMessage<::protobuf_unittest::TestDiffMessage_Item>(Arena*);
- template<> ::protobuf_unittest::TestField* Arena::CreateMaybeMessage<::protobuf_unittest::TestField>(Arena*);
- } // namespace protobuf
- } // namespace google
- namespace protobuf_unittest {
- // ===================================================================
- class TestField : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestField) */ {
- public:
- TestField();
- virtual ~TestField();
- TestField(const TestField& from);
- inline TestField& operator=(const TestField& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestField(TestField&& from) noexcept
- : TestField() {
- *this = ::std::move(from);
- }
- inline TestField& operator=(TestField&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- 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 TestField& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestField* internal_default_instance() {
- return reinterpret_cast<const TestField*>(
- &_TestField_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 0;
- void Swap(TestField* other);
- friend void swap(TestField& a, TestField& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestField* New() const final {
- return CreateMaybeMessage<TestField>(NULL);
- }
- TestField* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestField>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestField& from);
- void MergeFrom(const TestField& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestField* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated int32 rc = 2;
- int rc_size() const;
- void clear_rc();
- static const int kRcFieldNumber = 2;
- ::google::protobuf::int32 rc(int index) const;
- void set_rc(int index, ::google::protobuf::int32 value);
- void add_rc(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- rc() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_rc();
- // optional .protobuf_unittest.TestField m = 5;
- bool has_m() const;
- void clear_m();
- static const int kMFieldNumber = 5;
- private:
- const ::protobuf_unittest::TestField& _internal_m() const;
- public:
- const ::protobuf_unittest::TestField& m() const;
- ::protobuf_unittest::TestField* release_m();
- ::protobuf_unittest::TestField* mutable_m();
- void set_allocated_m(::protobuf_unittest::TestField* m);
- // optional int32 c = 1;
- bool has_c() const;
- void clear_c();
- static const int kCFieldNumber = 1;
- ::google::protobuf::int32 c() const;
- void set_c(::google::protobuf::int32 value);
- // optional int32 a = 3;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 3;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // optional int32 b = 4;
- bool has_b() const;
- void clear_b();
- static const int kBFieldNumber = 4;
- ::google::protobuf::int32 b() const;
- void set_b(::google::protobuf::int32 value);
- static const int kTfFieldNumber = 100;
- static ::google::protobuf::internal::ExtensionIdentifier< ::protobuf_unittest::TestDiffMessage,
- ::google::protobuf::internal::MessageTypeTraits< ::protobuf_unittest::TestField >, 11, false >
- tf;
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestField)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_b();
- void clear_has_b();
- void set_has_c();
- void clear_has_c();
- void set_has_m();
- void clear_has_m();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > rc_;
- ::protobuf_unittest::TestField* m_;
- ::google::protobuf::int32 c_;
- ::google::protobuf::int32 a_;
- ::google::protobuf::int32 b_;
- friend struct ::protobuf_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDiffMessage_Item : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDiffMessage.Item) */ {
- public:
- TestDiffMessage_Item();
- virtual ~TestDiffMessage_Item();
- TestDiffMessage_Item(const TestDiffMessage_Item& from);
- inline TestDiffMessage_Item& operator=(const TestDiffMessage_Item& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDiffMessage_Item(TestDiffMessage_Item&& from) noexcept
- : TestDiffMessage_Item() {
- *this = ::std::move(from);
- }
- inline TestDiffMessage_Item& operator=(TestDiffMessage_Item&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- 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 TestDiffMessage_Item& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDiffMessage_Item* internal_default_instance() {
- return reinterpret_cast<const TestDiffMessage_Item*>(
- &_TestDiffMessage_Item_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 1;
- void Swap(TestDiffMessage_Item* other);
- friend void swap(TestDiffMessage_Item& a, TestDiffMessage_Item& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDiffMessage_Item* New() const final {
- return CreateMaybeMessage<TestDiffMessage_Item>(NULL);
- }
- TestDiffMessage_Item* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDiffMessage_Item>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDiffMessage_Item& from);
- void MergeFrom(const TestDiffMessage_Item& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDiffMessage_Item* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- // accessors -------------------------------------------------------
- // repeated int32 ra = 3;
- int ra_size() const;
- void clear_ra();
- static const int kRaFieldNumber = 3;
- ::google::protobuf::int32 ra(int index) const;
- void set_ra(int index, ::google::protobuf::int32 value);
- void add_ra(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- ra() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_ra();
- // repeated string rb = 5;
- int rb_size() const;
- void clear_rb();
- static const int kRbFieldNumber = 5;
- const ::std::string& rb(int index) const;
- ::std::string* mutable_rb(int index);
- void set_rb(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_rb(int index, ::std::string&& value);
- #endif
- void set_rb(int index, const char* value);
- void set_rb(int index, const char* value, size_t size);
- ::std::string* add_rb();
- void add_rb(const ::std::string& value);
- #if LANG_CXX11
- void add_rb(::std::string&& value);
- #endif
- void add_rb(const char* value);
- void add_rb(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& rb() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_rb();
- // repeated .protobuf_unittest.TestField rm = 7;
- int rm_size() const;
- void clear_rm();
- static const int kRmFieldNumber = 7;
- ::protobuf_unittest::TestField* mutable_rm(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField >*
- mutable_rm();
- const ::protobuf_unittest::TestField& rm(int index) const;
- ::protobuf_unittest::TestField* add_rm();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField >&
- rm() const;
- // optional string b = 4;
- bool has_b() const;
- void clear_b();
- static const int kBFieldNumber = 4;
- const ::std::string& b() const;
- void set_b(const ::std::string& value);
- #if LANG_CXX11
- void set_b(::std::string&& value);
- #endif
- void set_b(const char* value);
- void set_b(const char* value, size_t size);
- ::std::string* mutable_b();
- ::std::string* release_b();
- void set_allocated_b(::std::string* b);
- // optional .protobuf_unittest.TestField m = 6;
- bool has_m() const;
- void clear_m();
- static const int kMFieldNumber = 6;
- private:
- const ::protobuf_unittest::TestField& _internal_m() const;
- public:
- const ::protobuf_unittest::TestField& m() const;
- ::protobuf_unittest::TestField* release_m();
- ::protobuf_unittest::TestField* mutable_m();
- void set_allocated_m(::protobuf_unittest::TestField* m);
- // optional int32 a = 2;
- bool has_a() const;
- void clear_a();
- static const int kAFieldNumber = 2;
- ::google::protobuf::int32 a() const;
- void set_a(::google::protobuf::int32 value);
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDiffMessage.Item)
- private:
- void set_has_a();
- void clear_has_a();
- void set_has_b();
- void clear_has_b();
- void set_has_m();
- void clear_has_m();
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > ra_;
- ::google::protobuf::RepeatedPtrField< ::std::string> rb_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField > rm_;
- ::google::protobuf::internal::ArenaStringPtr b_;
- ::protobuf_unittest::TestField* m_;
- ::google::protobuf::int32 a_;
- friend struct ::protobuf_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto::TableStruct;
- };
- // -------------------------------------------------------------------
- class TestDiffMessage : public ::google::protobuf::Message /* @@protoc_insertion_point(class_definition:protobuf_unittest.TestDiffMessage) */ {
- public:
- TestDiffMessage();
- virtual ~TestDiffMessage();
- TestDiffMessage(const TestDiffMessage& from);
- inline TestDiffMessage& operator=(const TestDiffMessage& from) {
- CopyFrom(from);
- return *this;
- }
- #if LANG_CXX11
- TestDiffMessage(TestDiffMessage&& from) noexcept
- : TestDiffMessage() {
- *this = ::std::move(from);
- }
- inline TestDiffMessage& operator=(TestDiffMessage&& from) noexcept {
- if (GetArenaNoVirtual() == from.GetArenaNoVirtual()) {
- if (this != &from) InternalSwap(&from);
- } else {
- CopyFrom(from);
- }
- return *this;
- }
- #endif
- 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 TestDiffMessage& default_instance();
- static void InitAsDefaultInstance(); // FOR INTERNAL USE ONLY
- static inline const TestDiffMessage* internal_default_instance() {
- return reinterpret_cast<const TestDiffMessage*>(
- &_TestDiffMessage_default_instance_);
- }
- static constexpr int kIndexInFileMessages =
- 2;
- void Swap(TestDiffMessage* other);
- friend void swap(TestDiffMessage& a, TestDiffMessage& b) {
- a.Swap(&b);
- }
- // implements Message ----------------------------------------------
- inline TestDiffMessage* New() const final {
- return CreateMaybeMessage<TestDiffMessage>(NULL);
- }
- TestDiffMessage* New(::google::protobuf::Arena* arena) const final {
- return CreateMaybeMessage<TestDiffMessage>(arena);
- }
- void CopyFrom(const ::google::protobuf::Message& from) final;
- void MergeFrom(const ::google::protobuf::Message& from) final;
- void CopyFrom(const TestDiffMessage& from);
- void MergeFrom(const TestDiffMessage& from);
- void Clear() final;
- bool IsInitialized() const final;
- size_t ByteSizeLong() const final;
- bool MergePartialFromCodedStream(
- ::google::protobuf::io::CodedInputStream* input) final;
- void SerializeWithCachedSizes(
- ::google::protobuf::io::CodedOutputStream* output) const final;
- ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray(
- bool deterministic, ::google::protobuf::uint8* target) const final;
- int GetCachedSize() const final { return _cached_size_.Get(); }
- private:
- void SharedCtor();
- void SharedDtor();
- void SetCachedSize(int size) const final;
- void InternalSwap(TestDiffMessage* other);
- private:
- inline ::google::protobuf::Arena* GetArenaNoVirtual() const {
- return NULL;
- }
- inline void* MaybeArenaPtr() const {
- return NULL;
- }
- public:
- ::google::protobuf::Metadata GetMetadata() const final;
- // nested types ----------------------------------------------------
- typedef TestDiffMessage_Item Item;
- // accessors -------------------------------------------------------
- // repeated group Item = 1 { ... };
- int item_size() const;
- void clear_item();
- static const int kItemFieldNumber = 1;
- ::protobuf_unittest::TestDiffMessage_Item* mutable_item(int index);
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestDiffMessage_Item >*
- mutable_item();
- const ::protobuf_unittest::TestDiffMessage_Item& item(int index) const;
- ::protobuf_unittest::TestDiffMessage_Item* add_item();
- const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestDiffMessage_Item >&
- item() const;
- // repeated string rw = 10;
- int rw_size() const;
- void clear_rw();
- static const int kRwFieldNumber = 10;
- const ::std::string& rw(int index) const;
- ::std::string* mutable_rw(int index);
- void set_rw(int index, const ::std::string& value);
- #if LANG_CXX11
- void set_rw(int index, ::std::string&& value);
- #endif
- void set_rw(int index, const char* value);
- void set_rw(int index, const char* value, size_t size);
- ::std::string* add_rw();
- void add_rw(const ::std::string& value);
- #if LANG_CXX11
- void add_rw(::std::string&& value);
- #endif
- void add_rw(const char* value);
- void add_rw(const char* value, size_t size);
- const ::google::protobuf::RepeatedPtrField< ::std::string>& rw() const;
- ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_rw();
- // repeated int32 rv = 11;
- int rv_size() const;
- void clear_rv();
- static const int kRvFieldNumber = 11;
- ::google::protobuf::int32 rv(int index) const;
- void set_rv(int index, ::google::protobuf::int32 value);
- void add_rv(::google::protobuf::int32 value);
- const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- rv() const;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- mutable_rv();
- // repeated .protobuf_unittest.TestField rm = 12 [deprecated = true];
- GOOGLE_PROTOBUF_DEPRECATED_ATTR int rm_size() const;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_rm();
- GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kRmFieldNumber = 12;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR ::protobuf_unittest::TestField* mutable_rm(int index);
- GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField >*
- mutable_rm();
- GOOGLE_PROTOBUF_DEPRECATED_ATTR const ::protobuf_unittest::TestField& rm(int index) const;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR ::protobuf_unittest::TestField* add_rm();
- GOOGLE_PROTOBUF_DEPRECATED_ATTR const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField >&
- rm() const;
- // optional string w = 14;
- bool has_w() const;
- void clear_w();
- static const int kWFieldNumber = 14;
- const ::std::string& w() const;
- void set_w(const ::std::string& value);
- #if LANG_CXX11
- void set_w(::std::string&& value);
- #endif
- void set_w(const char* value);
- void set_w(const char* value, size_t size);
- ::std::string* mutable_w();
- ::std::string* release_w();
- void set_allocated_w(::std::string* w);
- // optional .protobuf_unittest.TestField m = 15;
- bool has_m() const;
- void clear_m();
- static const int kMFieldNumber = 15;
- private:
- const ::protobuf_unittest::TestField& _internal_m() const;
- public:
- const ::protobuf_unittest::TestField& m() const;
- ::protobuf_unittest::TestField* release_m();
- ::protobuf_unittest::TestField* mutable_m();
- void set_allocated_m(::protobuf_unittest::TestField* m);
- // optional int32 v = 13 [deprecated = true];
- GOOGLE_PROTOBUF_DEPRECATED_ATTR bool has_v() const;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR void clear_v();
- GOOGLE_PROTOBUF_DEPRECATED_ATTR static const int kVFieldNumber = 13;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR ::google::protobuf::int32 v() const;
- GOOGLE_PROTOBUF_DEPRECATED_ATTR void set_v(::google::protobuf::int32 value);
- GOOGLE_PROTOBUF_EXTENSION_ACCESSORS(TestDiffMessage)
- // @@protoc_insertion_point(class_scope:protobuf_unittest.TestDiffMessage)
- private:
- void set_has_v();
- void clear_has_v();
- void set_has_w();
- void clear_has_w();
- void set_has_m();
- void clear_has_m();
- ::google::protobuf::internal::ExtensionSet _extensions_;
- ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_;
- ::google::protobuf::internal::HasBits<1> _has_bits_;
- mutable ::google::protobuf::internal::CachedSize _cached_size_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestDiffMessage_Item > item_;
- ::google::protobuf::RepeatedPtrField< ::std::string> rw_;
- ::google::protobuf::RepeatedField< ::google::protobuf::int32 > rv_;
- ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField > rm_;
- ::google::protobuf::internal::ArenaStringPtr w_;
- ::protobuf_unittest::TestField* m_;
- ::google::protobuf::int32 v_;
- friend struct ::protobuf_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto::TableStruct;
- };
- // ===================================================================
- // ===================================================================
- #ifdef __GNUC__
- #pragma GCC diagnostic push
- #pragma GCC diagnostic ignored "-Wstrict-aliasing"
- #endif // __GNUC__
- // TestField
- // optional int32 a = 3;
- inline bool TestField::has_a() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestField::set_has_a() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestField::clear_has_a() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestField::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestField::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestField.a)
- return a_;
- }
- inline void TestField::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestField.a)
- }
- // optional int32 b = 4;
- inline bool TestField::has_b() const {
- return (_has_bits_[0] & 0x00000008u) != 0;
- }
- inline void TestField::set_has_b() {
- _has_bits_[0] |= 0x00000008u;
- }
- inline void TestField::clear_has_b() {
- _has_bits_[0] &= ~0x00000008u;
- }
- inline void TestField::clear_b() {
- b_ = 0;
- clear_has_b();
- }
- inline ::google::protobuf::int32 TestField::b() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestField.b)
- return b_;
- }
- inline void TestField::set_b(::google::protobuf::int32 value) {
- set_has_b();
- b_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestField.b)
- }
- // optional int32 c = 1;
- inline bool TestField::has_c() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestField::set_has_c() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestField::clear_has_c() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestField::clear_c() {
- c_ = 0;
- clear_has_c();
- }
- inline ::google::protobuf::int32 TestField::c() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestField.c)
- return c_;
- }
- inline void TestField::set_c(::google::protobuf::int32 value) {
- set_has_c();
- c_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestField.c)
- }
- // repeated int32 rc = 2;
- inline int TestField::rc_size() const {
- return rc_.size();
- }
- inline void TestField::clear_rc() {
- rc_.Clear();
- }
- inline ::google::protobuf::int32 TestField::rc(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestField.rc)
- return rc_.Get(index);
- }
- inline void TestField::set_rc(int index, ::google::protobuf::int32 value) {
- rc_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestField.rc)
- }
- inline void TestField::add_rc(::google::protobuf::int32 value) {
- rc_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestField.rc)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestField::rc() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestField.rc)
- return rc_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestField::mutable_rc() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestField.rc)
- return &rc_;
- }
- // optional .protobuf_unittest.TestField m = 5;
- inline bool TestField::has_m() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestField::set_has_m() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestField::clear_has_m() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestField::clear_m() {
- if (m_ != NULL) m_->Clear();
- clear_has_m();
- }
- inline const ::protobuf_unittest::TestField& TestField::_internal_m() const {
- return *m_;
- }
- inline const ::protobuf_unittest::TestField& TestField::m() const {
- const ::protobuf_unittest::TestField* p = m_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestField.m)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestField*>(
- &::protobuf_unittest::_TestField_default_instance_);
- }
- inline ::protobuf_unittest::TestField* TestField::release_m() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestField.m)
- clear_has_m();
- ::protobuf_unittest::TestField* temp = m_;
- m_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestField* TestField::mutable_m() {
- set_has_m();
- if (m_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestField>(GetArenaNoVirtual());
- m_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestField.m)
- return m_;
- }
- inline void TestField::set_allocated_m(::protobuf_unittest::TestField* m) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete m_;
- }
- if (m) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- m = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, m, submessage_arena);
- }
- set_has_m();
- } else {
- clear_has_m();
- }
- m_ = m;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestField.m)
- }
- // -------------------------------------------------------------------
- // TestDiffMessage_Item
- // optional int32 a = 2;
- inline bool TestDiffMessage_Item::has_a() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestDiffMessage_Item::set_has_a() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestDiffMessage_Item::clear_has_a() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestDiffMessage_Item::clear_a() {
- a_ = 0;
- clear_has_a();
- }
- inline ::google::protobuf::int32 TestDiffMessage_Item::a() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.Item.a)
- return a_;
- }
- inline void TestDiffMessage_Item::set_a(::google::protobuf::int32 value) {
- set_has_a();
- a_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.Item.a)
- }
- // optional string b = 4;
- inline bool TestDiffMessage_Item::has_b() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestDiffMessage_Item::set_has_b() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestDiffMessage_Item::clear_has_b() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestDiffMessage_Item::clear_b() {
- b_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_b();
- }
- inline const ::std::string& TestDiffMessage_Item::b() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.Item.b)
- return b_.GetNoArena();
- }
- inline void TestDiffMessage_Item::set_b(const ::std::string& value) {
- set_has_b();
- b_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.Item.b)
- }
- #if LANG_CXX11
- inline void TestDiffMessage_Item::set_b(::std::string&& value) {
- set_has_b();
- b_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestDiffMessage.Item.b)
- }
- #endif
- inline void TestDiffMessage_Item::set_b(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_b();
- b_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestDiffMessage.Item.b)
- }
- inline void TestDiffMessage_Item::set_b(const char* value, size_t size) {
- set_has_b();
- b_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestDiffMessage.Item.b)
- }
- inline ::std::string* TestDiffMessage_Item::mutable_b() {
- set_has_b();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.Item.b)
- return b_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* TestDiffMessage_Item::release_b() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestDiffMessage.Item.b)
- if (!has_b()) {
- return NULL;
- }
- clear_has_b();
- return b_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void TestDiffMessage_Item::set_allocated_b(::std::string* b) {
- if (b != NULL) {
- set_has_b();
- } else {
- clear_has_b();
- }
- b_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), b);
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDiffMessage.Item.b)
- }
- // repeated int32 ra = 3;
- inline int TestDiffMessage_Item::ra_size() const {
- return ra_.size();
- }
- inline void TestDiffMessage_Item::clear_ra() {
- ra_.Clear();
- }
- inline ::google::protobuf::int32 TestDiffMessage_Item::ra(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.Item.ra)
- return ra_.Get(index);
- }
- inline void TestDiffMessage_Item::set_ra(int index, ::google::protobuf::int32 value) {
- ra_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.Item.ra)
- }
- inline void TestDiffMessage_Item::add_ra(::google::protobuf::int32 value) {
- ra_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.Item.ra)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestDiffMessage_Item::ra() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDiffMessage.Item.ra)
- return ra_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestDiffMessage_Item::mutable_ra() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDiffMessage.Item.ra)
- return &ra_;
- }
- // repeated string rb = 5;
- inline int TestDiffMessage_Item::rb_size() const {
- return rb_.size();
- }
- inline void TestDiffMessage_Item::clear_rb() {
- rb_.Clear();
- }
- inline const ::std::string& TestDiffMessage_Item::rb(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.Item.rb)
- return rb_.Get(index);
- }
- inline ::std::string* TestDiffMessage_Item::mutable_rb(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.Item.rb)
- return rb_.Mutable(index);
- }
- inline void TestDiffMessage_Item::set_rb(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.Item.rb)
- rb_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestDiffMessage_Item::set_rb(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.Item.rb)
- rb_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestDiffMessage_Item::set_rb(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- rb_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestDiffMessage.Item.rb)
- }
- inline void TestDiffMessage_Item::set_rb(int index, const char* value, size_t size) {
- rb_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestDiffMessage.Item.rb)
- }
- inline ::std::string* TestDiffMessage_Item::add_rb() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestDiffMessage.Item.rb)
- return rb_.Add();
- }
- inline void TestDiffMessage_Item::add_rb(const ::std::string& value) {
- rb_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.Item.rb)
- }
- #if LANG_CXX11
- inline void TestDiffMessage_Item::add_rb(::std::string&& value) {
- rb_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.Item.rb)
- }
- #endif
- inline void TestDiffMessage_Item::add_rb(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- rb_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestDiffMessage.Item.rb)
- }
- inline void TestDiffMessage_Item::add_rb(const char* value, size_t size) {
- rb_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestDiffMessage.Item.rb)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestDiffMessage_Item::rb() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDiffMessage.Item.rb)
- return rb_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestDiffMessage_Item::mutable_rb() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDiffMessage.Item.rb)
- return &rb_;
- }
- // optional .protobuf_unittest.TestField m = 6;
- inline bool TestDiffMessage_Item::has_m() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestDiffMessage_Item::set_has_m() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestDiffMessage_Item::clear_has_m() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestDiffMessage_Item::clear_m() {
- if (m_ != NULL) m_->Clear();
- clear_has_m();
- }
- inline const ::protobuf_unittest::TestField& TestDiffMessage_Item::_internal_m() const {
- return *m_;
- }
- inline const ::protobuf_unittest::TestField& TestDiffMessage_Item::m() const {
- const ::protobuf_unittest::TestField* p = m_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.Item.m)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestField*>(
- &::protobuf_unittest::_TestField_default_instance_);
- }
- inline ::protobuf_unittest::TestField* TestDiffMessage_Item::release_m() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestDiffMessage.Item.m)
- clear_has_m();
- ::protobuf_unittest::TestField* temp = m_;
- m_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestField* TestDiffMessage_Item::mutable_m() {
- set_has_m();
- if (m_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestField>(GetArenaNoVirtual());
- m_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.Item.m)
- return m_;
- }
- inline void TestDiffMessage_Item::set_allocated_m(::protobuf_unittest::TestField* m) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete m_;
- }
- if (m) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- m = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, m, submessage_arena);
- }
- set_has_m();
- } else {
- clear_has_m();
- }
- m_ = m;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDiffMessage.Item.m)
- }
- // repeated .protobuf_unittest.TestField rm = 7;
- inline int TestDiffMessage_Item::rm_size() const {
- return rm_.size();
- }
- inline void TestDiffMessage_Item::clear_rm() {
- rm_.Clear();
- }
- inline ::protobuf_unittest::TestField* TestDiffMessage_Item::mutable_rm(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.Item.rm)
- return rm_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField >*
- TestDiffMessage_Item::mutable_rm() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDiffMessage.Item.rm)
- return &rm_;
- }
- inline const ::protobuf_unittest::TestField& TestDiffMessage_Item::rm(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.Item.rm)
- return rm_.Get(index);
- }
- inline ::protobuf_unittest::TestField* TestDiffMessage_Item::add_rm() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.Item.rm)
- return rm_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField >&
- TestDiffMessage_Item::rm() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDiffMessage.Item.rm)
- return rm_;
- }
- // -------------------------------------------------------------------
- // TestDiffMessage
- // repeated group Item = 1 { ... };
- inline int TestDiffMessage::item_size() const {
- return item_.size();
- }
- inline void TestDiffMessage::clear_item() {
- item_.Clear();
- }
- inline ::protobuf_unittest::TestDiffMessage_Item* TestDiffMessage::mutable_item(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.item)
- return item_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestDiffMessage_Item >*
- TestDiffMessage::mutable_item() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDiffMessage.item)
- return &item_;
- }
- inline const ::protobuf_unittest::TestDiffMessage_Item& TestDiffMessage::item(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.item)
- return item_.Get(index);
- }
- inline ::protobuf_unittest::TestDiffMessage_Item* TestDiffMessage::add_item() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.item)
- return item_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestDiffMessage_Item >&
- TestDiffMessage::item() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDiffMessage.item)
- return item_;
- }
- // optional int32 v = 13 [deprecated = true];
- inline bool TestDiffMessage::has_v() const {
- return (_has_bits_[0] & 0x00000004u) != 0;
- }
- inline void TestDiffMessage::set_has_v() {
- _has_bits_[0] |= 0x00000004u;
- }
- inline void TestDiffMessage::clear_has_v() {
- _has_bits_[0] &= ~0x00000004u;
- }
- inline void TestDiffMessage::clear_v() {
- v_ = 0;
- clear_has_v();
- }
- inline ::google::protobuf::int32 TestDiffMessage::v() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.v)
- return v_;
- }
- inline void TestDiffMessage::set_v(::google::protobuf::int32 value) {
- set_has_v();
- v_ = value;
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.v)
- }
- // optional string w = 14;
- inline bool TestDiffMessage::has_w() const {
- return (_has_bits_[0] & 0x00000001u) != 0;
- }
- inline void TestDiffMessage::set_has_w() {
- _has_bits_[0] |= 0x00000001u;
- }
- inline void TestDiffMessage::clear_has_w() {
- _has_bits_[0] &= ~0x00000001u;
- }
- inline void TestDiffMessage::clear_w() {
- w_.ClearToEmptyNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- clear_has_w();
- }
- inline const ::std::string& TestDiffMessage::w() const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.w)
- return w_.GetNoArena();
- }
- inline void TestDiffMessage::set_w(const ::std::string& value) {
- set_has_w();
- w_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.w)
- }
- #if LANG_CXX11
- inline void TestDiffMessage::set_w(::std::string&& value) {
- set_has_w();
- w_.SetNoArena(
- &::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::move(value));
- // @@protoc_insertion_point(field_set_rvalue:protobuf_unittest.TestDiffMessage.w)
- }
- #endif
- inline void TestDiffMessage::set_w(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- set_has_w();
- w_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), ::std::string(value));
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestDiffMessage.w)
- }
- inline void TestDiffMessage::set_w(const char* value, size_t size) {
- set_has_w();
- w_.SetNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(),
- ::std::string(reinterpret_cast<const char*>(value), size));
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestDiffMessage.w)
- }
- inline ::std::string* TestDiffMessage::mutable_w() {
- set_has_w();
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.w)
- return w_.MutableNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline ::std::string* TestDiffMessage::release_w() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestDiffMessage.w)
- if (!has_w()) {
- return NULL;
- }
- clear_has_w();
- return w_.ReleaseNonDefaultNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
- }
- inline void TestDiffMessage::set_allocated_w(::std::string* w) {
- if (w != NULL) {
- set_has_w();
- } else {
- clear_has_w();
- }
- w_.SetAllocatedNoArena(&::google::protobuf::internal::GetEmptyStringAlreadyInited(), w);
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDiffMessage.w)
- }
- // optional .protobuf_unittest.TestField m = 15;
- inline bool TestDiffMessage::has_m() const {
- return (_has_bits_[0] & 0x00000002u) != 0;
- }
- inline void TestDiffMessage::set_has_m() {
- _has_bits_[0] |= 0x00000002u;
- }
- inline void TestDiffMessage::clear_has_m() {
- _has_bits_[0] &= ~0x00000002u;
- }
- inline void TestDiffMessage::clear_m() {
- if (m_ != NULL) m_->Clear();
- clear_has_m();
- }
- inline const ::protobuf_unittest::TestField& TestDiffMessage::_internal_m() const {
- return *m_;
- }
- inline const ::protobuf_unittest::TestField& TestDiffMessage::m() const {
- const ::protobuf_unittest::TestField* p = m_;
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.m)
- return p != NULL ? *p : *reinterpret_cast<const ::protobuf_unittest::TestField*>(
- &::protobuf_unittest::_TestField_default_instance_);
- }
- inline ::protobuf_unittest::TestField* TestDiffMessage::release_m() {
- // @@protoc_insertion_point(field_release:protobuf_unittest.TestDiffMessage.m)
- clear_has_m();
- ::protobuf_unittest::TestField* temp = m_;
- m_ = NULL;
- return temp;
- }
- inline ::protobuf_unittest::TestField* TestDiffMessage::mutable_m() {
- set_has_m();
- if (m_ == NULL) {
- auto* p = CreateMaybeMessage<::protobuf_unittest::TestField>(GetArenaNoVirtual());
- m_ = p;
- }
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.m)
- return m_;
- }
- inline void TestDiffMessage::set_allocated_m(::protobuf_unittest::TestField* m) {
- ::google::protobuf::Arena* message_arena = GetArenaNoVirtual();
- if (message_arena == NULL) {
- delete m_;
- }
- if (m) {
- ::google::protobuf::Arena* submessage_arena = NULL;
- if (message_arena != submessage_arena) {
- m = ::google::protobuf::internal::GetOwnedMessage(
- message_arena, m, submessage_arena);
- }
- set_has_m();
- } else {
- clear_has_m();
- }
- m_ = m;
- // @@protoc_insertion_point(field_set_allocated:protobuf_unittest.TestDiffMessage.m)
- }
- // repeated int32 rv = 11;
- inline int TestDiffMessage::rv_size() const {
- return rv_.size();
- }
- inline void TestDiffMessage::clear_rv() {
- rv_.Clear();
- }
- inline ::google::protobuf::int32 TestDiffMessage::rv(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.rv)
- return rv_.Get(index);
- }
- inline void TestDiffMessage::set_rv(int index, ::google::protobuf::int32 value) {
- rv_.Set(index, value);
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.rv)
- }
- inline void TestDiffMessage::add_rv(::google::protobuf::int32 value) {
- rv_.Add(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.rv)
- }
- inline const ::google::protobuf::RepeatedField< ::google::protobuf::int32 >&
- TestDiffMessage::rv() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDiffMessage.rv)
- return rv_;
- }
- inline ::google::protobuf::RepeatedField< ::google::protobuf::int32 >*
- TestDiffMessage::mutable_rv() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDiffMessage.rv)
- return &rv_;
- }
- // repeated string rw = 10;
- inline int TestDiffMessage::rw_size() const {
- return rw_.size();
- }
- inline void TestDiffMessage::clear_rw() {
- rw_.Clear();
- }
- inline const ::std::string& TestDiffMessage::rw(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.rw)
- return rw_.Get(index);
- }
- inline ::std::string* TestDiffMessage::mutable_rw(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.rw)
- return rw_.Mutable(index);
- }
- inline void TestDiffMessage::set_rw(int index, const ::std::string& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.rw)
- rw_.Mutable(index)->assign(value);
- }
- #if LANG_CXX11
- inline void TestDiffMessage::set_rw(int index, ::std::string&& value) {
- // @@protoc_insertion_point(field_set:protobuf_unittest.TestDiffMessage.rw)
- rw_.Mutable(index)->assign(std::move(value));
- }
- #endif
- inline void TestDiffMessage::set_rw(int index, const char* value) {
- GOOGLE_DCHECK(value != NULL);
- rw_.Mutable(index)->assign(value);
- // @@protoc_insertion_point(field_set_char:protobuf_unittest.TestDiffMessage.rw)
- }
- inline void TestDiffMessage::set_rw(int index, const char* value, size_t size) {
- rw_.Mutable(index)->assign(
- reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_set_pointer:protobuf_unittest.TestDiffMessage.rw)
- }
- inline ::std::string* TestDiffMessage::add_rw() {
- // @@protoc_insertion_point(field_add_mutable:protobuf_unittest.TestDiffMessage.rw)
- return rw_.Add();
- }
- inline void TestDiffMessage::add_rw(const ::std::string& value) {
- rw_.Add()->assign(value);
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.rw)
- }
- #if LANG_CXX11
- inline void TestDiffMessage::add_rw(::std::string&& value) {
- rw_.Add(std::move(value));
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.rw)
- }
- #endif
- inline void TestDiffMessage::add_rw(const char* value) {
- GOOGLE_DCHECK(value != NULL);
- rw_.Add()->assign(value);
- // @@protoc_insertion_point(field_add_char:protobuf_unittest.TestDiffMessage.rw)
- }
- inline void TestDiffMessage::add_rw(const char* value, size_t size) {
- rw_.Add()->assign(reinterpret_cast<const char*>(value), size);
- // @@protoc_insertion_point(field_add_pointer:protobuf_unittest.TestDiffMessage.rw)
- }
- inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
- TestDiffMessage::rw() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDiffMessage.rw)
- return rw_;
- }
- inline ::google::protobuf::RepeatedPtrField< ::std::string>*
- TestDiffMessage::mutable_rw() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDiffMessage.rw)
- return &rw_;
- }
- // repeated .protobuf_unittest.TestField rm = 12 [deprecated = true];
- inline int TestDiffMessage::rm_size() const {
- return rm_.size();
- }
- inline void TestDiffMessage::clear_rm() {
- rm_.Clear();
- }
- inline ::protobuf_unittest::TestField* TestDiffMessage::mutable_rm(int index) {
- // @@protoc_insertion_point(field_mutable:protobuf_unittest.TestDiffMessage.rm)
- return rm_.Mutable(index);
- }
- inline ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField >*
- TestDiffMessage::mutable_rm() {
- // @@protoc_insertion_point(field_mutable_list:protobuf_unittest.TestDiffMessage.rm)
- return &rm_;
- }
- inline const ::protobuf_unittest::TestField& TestDiffMessage::rm(int index) const {
- // @@protoc_insertion_point(field_get:protobuf_unittest.TestDiffMessage.rm)
- return rm_.Get(index);
- }
- inline ::protobuf_unittest::TestField* TestDiffMessage::add_rm() {
- // @@protoc_insertion_point(field_add:protobuf_unittest.TestDiffMessage.rm)
- return rm_.Add();
- }
- inline const ::google::protobuf::RepeatedPtrField< ::protobuf_unittest::TestField >&
- TestDiffMessage::rm() const {
- // @@protoc_insertion_point(field_list:protobuf_unittest.TestDiffMessage.rm)
- return rm_;
- }
- #ifdef __GNUC__
- #pragma GCC diagnostic pop
- #endif // __GNUC__
- // -------------------------------------------------------------------
- // -------------------------------------------------------------------
- // @@protoc_insertion_point(namespace_scope)
- } // namespace protobuf_unittest
- // @@protoc_insertion_point(global_scope)
- #endif // PROTOBUF_INCLUDED_google_2fprotobuf_2futil_2fmessage_5fdifferencer_5funittest_2eproto
|