| OLD | NEW |
| 1 // Generated by the protocol buffer compiler. DO NOT EDIT! | 1 // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 // source: google/protobuf/empty.proto | 2 // source: google/protobuf/empty.proto |
| 3 | 3 |
| 4 #ifndef PROTOBUF_google_2fprotobuf_2fempty_2eproto__INCLUDED | 4 #ifndef PROTOBUF_google_2fprotobuf_2fempty_2eproto__INCLUDED |
| 5 #define PROTOBUF_google_2fprotobuf_2fempty_2eproto__INCLUDED | 5 #define PROTOBUF_google_2fprotobuf_2fempty_2eproto__INCLUDED |
| 6 | 6 |
| 7 #include <string> | 7 #include <string> |
| 8 | 8 |
| 9 #include <google/protobuf/stubs/common.h> | 9 #include <google/protobuf/stubs/common.h> |
| 10 | 10 |
| 11 #if GOOGLE_PROTOBUF_VERSION < 3000000 | 11 #if GOOGLE_PROTOBUF_VERSION < 3001000 |
| 12 #error This file was generated by a newer version of protoc which is | 12 #error This file was generated by a newer version of protoc which is |
| 13 #error incompatible with your Protocol Buffer headers. Please update | 13 #error incompatible with your Protocol Buffer headers. Please update |
| 14 #error your headers. | 14 #error your headers. |
| 15 #endif | 15 #endif |
| 16 #if 3000000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION | 16 #if 3001000 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION |
| 17 #error This file was generated by an older version of protoc which is | 17 #error This file was generated by an older version of protoc which is |
| 18 #error incompatible with your Protocol Buffer headers. Please | 18 #error incompatible with your Protocol Buffer headers. Please |
| 19 #error regenerate this file with a newer version of protoc. | 19 #error regenerate this file with a newer version of protoc. |
| 20 #endif | 20 #endif |
| 21 | 21 |
| 22 #include <google/protobuf/arena.h> | 22 #include <google/protobuf/arena.h> |
| 23 #include <google/protobuf/arenastring.h> | 23 #include <google/protobuf/arenastring.h> |
| 24 #include <google/protobuf/generated_message_util.h> | 24 #include <google/protobuf/generated_message_util.h> |
| 25 #include <google/protobuf/metadata.h> | 25 #include <google/protobuf/metadata.h> |
| 26 #include <google/protobuf/message.h> | 26 #include <google/protobuf/message.h> |
| 27 #include <google/protobuf/repeated_field.h> | 27 #include <google/protobuf/repeated_field.h> // IWYU pragma: export |
| 28 #include <google/protobuf/extension_set.h> | 28 #include <google/protobuf/extension_set.h> // IWYU pragma: export |
| 29 #include <google/protobuf/unknown_field_set.h> | 29 #include <google/protobuf/unknown_field_set.h> |
| 30 // @@protoc_insertion_point(includes) | 30 // @@protoc_insertion_point(includes) |
| 31 namespace google { |
| 32 namespace protobuf { |
| 33 class Empty; |
| 34 class EmptyDefaultTypeInternal; |
| 35 LIBPROTOBUF_EXPORT extern EmptyDefaultTypeInternal _Empty_default_instance_; |
| 36 } // namespace protobuf |
| 37 } // namespace google |
| 31 | 38 |
| 32 namespace google { | 39 namespace google { |
| 33 namespace protobuf { | 40 namespace protobuf { |
| 34 | 41 |
| 35 // Internal implementation detail -- do not call these. | 42 // Internal implementation detail -- do not call these. |
| 36 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); | 43 void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); |
| 37 void protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto(); | 44 void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fempty_2eproto(
); |
| 38 void protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto(); | |
| 39 | |
| 40 class Empty; | |
| 41 | 45 |
| 42 // =================================================================== | 46 // =================================================================== |
| 43 | 47 |
| 44 class LIBPROTOBUF_EXPORT Empty : public ::google::protobuf::Message { | 48 class LIBPROTOBUF_EXPORT Empty : public ::google::protobuf::Message /* @@protoc_
insertion_point(class_definition:google.protobuf.Empty) */ { |
| 45 public: | 49 public: |
| 46 Empty(); | 50 Empty(); |
| 47 virtual ~Empty(); | 51 virtual ~Empty(); |
| 48 | 52 |
| 49 Empty(const Empty& from); | 53 Empty(const Empty& from); |
| 50 | 54 |
| 51 inline Empty& operator=(const Empty& from) { | 55 inline Empty& operator=(const Empty& from) { |
| 52 CopyFrom(from); | 56 CopyFrom(from); |
| 53 return *this; | 57 return *this; |
| 54 } | 58 } |
| 55 | 59 |
| 56 inline ::google::protobuf::Arena* GetArena() const { return GetArenaNoVirtual(
); } | 60 inline ::google::protobuf::Arena* GetArena() const PROTOBUF_FINAL { |
| 57 inline void* GetMaybeArenaPointer() const { | 61 return GetArenaNoVirtual(); |
| 62 } |
| 63 inline void* GetMaybeArenaPointer() const PROTOBUF_FINAL { |
| 58 return MaybeArenaPtr(); | 64 return MaybeArenaPtr(); |
| 59 } | 65 } |
| 60 static const ::google::protobuf::Descriptor* descriptor(); | 66 static const ::google::protobuf::Descriptor* descriptor(); |
| 61 static const Empty& default_instance(); | 67 static const Empty& default_instance(); |
| 62 | 68 |
| 69 static inline const Empty* internal_default_instance() { |
| 70 return reinterpret_cast<const Empty*>( |
| 71 &_Empty_default_instance_); |
| 72 } |
| 73 |
| 63 void UnsafeArenaSwap(Empty* other); | 74 void UnsafeArenaSwap(Empty* other); |
| 64 void Swap(Empty* other); | 75 void Swap(Empty* other); |
| 65 | 76 |
| 66 // implements Message ---------------------------------------------- | 77 // implements Message ---------------------------------------------- |
| 67 | 78 |
| 68 inline Empty* New() const { return New(NULL); } | 79 inline Empty* New() const PROTOBUF_FINAL { return New(NULL); } |
| 69 | 80 |
| 70 Empty* New(::google::protobuf::Arena* arena) const; | 81 Empty* New(::google::protobuf::Arena* arena) const PROTOBUF_FINAL; |
| 71 void CopyFrom(const ::google::protobuf::Message& from); | 82 void CopyFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 72 void MergeFrom(const ::google::protobuf::Message& from); | 83 void MergeFrom(const ::google::protobuf::Message& from) PROTOBUF_FINAL; |
| 73 void CopyFrom(const Empty& from); | 84 void CopyFrom(const Empty& from); |
| 74 void MergeFrom(const Empty& from); | 85 void MergeFrom(const Empty& from); |
| 75 void Clear(); | 86 void Clear() PROTOBUF_FINAL; |
| 76 bool IsInitialized() const; | 87 bool IsInitialized() const PROTOBUF_FINAL; |
| 77 | 88 |
| 78 int ByteSize() const; | 89 size_t ByteSizeLong() const PROTOBUF_FINAL; |
| 79 bool MergePartialFromCodedStream( | 90 bool MergePartialFromCodedStream( |
| 80 ::google::protobuf::io::CodedInputStream* input); | 91 ::google::protobuf::io::CodedInputStream* input) PROTOBUF_FINAL; |
| 81 void SerializeWithCachedSizes( | 92 void SerializeWithCachedSizes( |
| 82 ::google::protobuf::io::CodedOutputStream* output) const; | 93 ::google::protobuf::io::CodedOutputStream* output) const PROTOBUF_FINAL; |
| 83 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) const; | 94 ::google::protobuf::uint8* InternalSerializeWithCachedSizesToArray( |
| 84 int GetCachedSize() const { return _cached_size_; } | 95 bool deterministic, ::google::protobuf::uint8* target) const PROTOBUF_FINA
L; |
| 96 ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf:
:uint8* output) |
| 97 const PROTOBUF_FINAL { |
| 98 return InternalSerializeWithCachedSizesToArray(false, output); |
| 99 } |
| 100 int GetCachedSize() const PROTOBUF_FINAL { return _cached_size_; } |
| 85 private: | 101 private: |
| 86 void SharedCtor(); | 102 void SharedCtor(); |
| 87 void SharedDtor(); | 103 void SharedDtor(); |
| 88 void SetCachedSize(int size) const; | 104 void SetCachedSize(int size) const PROTOBUF_FINAL; |
| 89 void InternalSwap(Empty* other); | 105 void InternalSwap(Empty* other); |
| 90 protected: | 106 protected: |
| 91 explicit Empty(::google::protobuf::Arena* arena); | 107 explicit Empty(::google::protobuf::Arena* arena); |
| 92 private: | 108 private: |
| 93 static void ArenaDtor(void* object); | 109 static void ArenaDtor(void* object); |
| 94 inline void RegisterArenaDtor(::google::protobuf::Arena* arena); | 110 inline void RegisterArenaDtor(::google::protobuf::Arena* arena); |
| 95 private: | 111 private: |
| 96 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { | 112 inline ::google::protobuf::Arena* GetArenaNoVirtual() const { |
| 97 return _internal_metadata_.arena(); | 113 return _internal_metadata_.arena(); |
| 98 } | 114 } |
| 99 inline void* MaybeArenaPtr() const { | 115 inline void* MaybeArenaPtr() const { |
| 100 return _internal_metadata_.raw_arena_ptr(); | 116 return _internal_metadata_.raw_arena_ptr(); |
| 101 } | 117 } |
| 102 public: | 118 public: |
| 103 | 119 |
| 104 ::google::protobuf::Metadata GetMetadata() const; | 120 ::google::protobuf::Metadata GetMetadata() const PROTOBUF_FINAL; |
| 105 | 121 |
| 106 // nested types ---------------------------------------------------- | 122 // nested types ---------------------------------------------------- |
| 107 | 123 |
| 108 // accessors ------------------------------------------------------- | 124 // accessors ------------------------------------------------------- |
| 109 | 125 |
| 110 // @@protoc_insertion_point(class_scope:google.protobuf.Empty) | 126 // @@protoc_insertion_point(class_scope:google.protobuf.Empty) |
| 111 private: | 127 private: |
| 112 | 128 |
| 113 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; | 129 ::google::protobuf::internal::InternalMetadataWithArena _internal_metadata_; |
| 114 friend class ::google::protobuf::Arena; | 130 friend class ::google::protobuf::Arena; |
| 115 typedef void InternalArenaConstructable_; | 131 typedef void InternalArenaConstructable_; |
| 116 typedef void DestructorSkippable_; | 132 typedef void DestructorSkippable_; |
| 117 bool _is_default_instance_; | |
| 118 mutable int _cached_size_; | 133 mutable int _cached_size_; |
| 119 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fempty_2epr
oto(); | 134 friend void LIBPROTOBUF_EXPORT protobuf_InitDefaults_google_2fprotobuf_2fempty
_2eproto_impl(); |
| 120 friend void protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto(); | 135 friend void LIBPROTOBUF_EXPORT protobuf_AddDesc_google_2fprotobuf_2fempty_2epr
oto_impl(); |
| 136 friend const ::google::protobuf::uint32* protobuf_Offsets_google_2fprotobuf_2f
empty_2eproto(); |
| 121 friend void protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto(); | 137 friend void protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto(); |
| 122 | 138 |
| 123 void InitAsDefaultInstance(); | |
| 124 static Empty* default_instance_; | |
| 125 }; | 139 }; |
| 126 // =================================================================== | 140 // =================================================================== |
| 127 | 141 |
| 128 | 142 |
| 129 // =================================================================== | 143 // =================================================================== |
| 130 | 144 |
| 131 #if !PROTOBUF_INLINE_NOT_IN_HEADERS | 145 #if !PROTOBUF_INLINE_NOT_IN_HEADERS |
| 132 // Empty | 146 // Empty |
| 133 | 147 |
| 134 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS | 148 #endif // !PROTOBUF_INLINE_NOT_IN_HEADERS |
| 135 | 149 |
| 136 // @@protoc_insertion_point(namespace_scope) | 150 // @@protoc_insertion_point(namespace_scope) |
| 137 | 151 |
| 152 |
| 138 } // namespace protobuf | 153 } // namespace protobuf |
| 139 } // namespace google | 154 } // namespace google |
| 140 | 155 |
| 141 // @@protoc_insertion_point(global_scope) | 156 // @@protoc_insertion_point(global_scope) |
| 142 | 157 |
| 143 #endif // PROTOBUF_google_2fprotobuf_2fempty_2eproto__INCLUDED | 158 #endif // PROTOBUF_google_2fprotobuf_2fempty_2eproto__INCLUDED |
| OLD | NEW |