Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 1 | // Generated by the protocol buffer compiler. DO NOT EDIT! |
| 2 | // source: google/protobuf/empty.proto |
| 3 | |
| 4 | #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION |
Bo Yang | 1f0286a | 2015-12-04 13:18:44 -0800 | [diff] [blame] | 5 | #include <google/protobuf/empty.pb.h> |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 6 | |
| 7 | #include <algorithm> |
| 8 | |
| 9 | #include <google/protobuf/stubs/common.h> |
Feng Xiao | e841bac | 2015-12-11 17:09:20 -0800 | [diff] [blame] | 10 | #include <google/protobuf/stubs/port.h> |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 11 | #include <google/protobuf/stubs/once.h> |
| 12 | #include <google/protobuf/io/coded_stream.h> |
| 13 | #include <google/protobuf/wire_format_lite_inl.h> |
| 14 | #include <google/protobuf/descriptor.h> |
| 15 | #include <google/protobuf/generated_message_reflection.h> |
| 16 | #include <google/protobuf/reflection_ops.h> |
| 17 | #include <google/protobuf/wire_format.h> |
| 18 | // @@protoc_insertion_point(includes) |
| 19 | |
| 20 | namespace google { |
| 21 | namespace protobuf { |
| 22 | |
| 23 | namespace { |
| 24 | |
| 25 | const ::google::protobuf::Descriptor* Empty_descriptor_ = NULL; |
| 26 | const ::google::protobuf::internal::GeneratedMessageReflection* |
| 27 | Empty_reflection_ = NULL; |
| 28 | |
| 29 | } // namespace |
| 30 | |
| 31 | |
| 32 | void protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto() { |
| 33 | protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); |
| 34 | const ::google::protobuf::FileDescriptor* file = |
| 35 | ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName( |
| 36 | "google/protobuf/empty.proto"); |
| 37 | GOOGLE_CHECK(file != NULL); |
| 38 | Empty_descriptor_ = file->message_type(0); |
| 39 | static const int Empty_offsets_[1] = { |
| 40 | }; |
| 41 | Empty_reflection_ = |
| 42 | ::google::protobuf::internal::GeneratedMessageReflection::NewGeneratedMessageReflection( |
| 43 | Empty_descriptor_, |
| 44 | Empty::default_instance_, |
| 45 | Empty_offsets_, |
| 46 | -1, |
| 47 | -1, |
| 48 | -1, |
| 49 | sizeof(Empty), |
| 50 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Empty, _internal_metadata_), |
| 51 | GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Empty, _is_default_instance_)); |
| 52 | } |
| 53 | |
| 54 | namespace { |
| 55 | |
| 56 | GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_); |
| 57 | inline void protobuf_AssignDescriptorsOnce() { |
| 58 | ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_, |
| 59 | &protobuf_AssignDesc_google_2fprotobuf_2fempty_2eproto); |
| 60 | } |
| 61 | |
| 62 | void protobuf_RegisterTypes(const ::std::string&) { |
| 63 | protobuf_AssignDescriptorsOnce(); |
| 64 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage( |
| 65 | Empty_descriptor_, &Empty::default_instance()); |
| 66 | } |
| 67 | |
| 68 | } // namespace |
| 69 | |
| 70 | void protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto() { |
| 71 | delete Empty::default_instance_; |
| 72 | delete Empty_reflection_; |
| 73 | } |
| 74 | |
| 75 | void protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto() { |
| 76 | static bool already_here = false; |
| 77 | if (already_here) return; |
| 78 | already_here = true; |
| 79 | GOOGLE_PROTOBUF_VERIFY_VERSION; |
| 80 | |
| 81 | ::google::protobuf::DescriptorPool::InternalAddGeneratedFile( |
| 82 | "\n\033google/protobuf/empty.proto\022\017google.pr" |
Jisi Liu | 3b3c8ab | 2016-03-30 11:39:59 -0700 | [diff] [blame] | 83 | "otobuf\"\007\n\005EmptyBy\n\023com.google.protobufB\n" |
| 84 | "EmptyProtoP\001Z\'github.com/golang/protobuf" |
| 85 | "/ptypes/empty\240\001\001\370\001\001\242\002\003GPB\252\002\036Google.Proto" |
| 86 | "buf.WellKnownTypesb\006proto3", 186); |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 87 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 88 | "google/protobuf/empty.proto", &protobuf_RegisterTypes); |
| 89 | Empty::default_instance_ = new Empty(); |
| 90 | Empty::default_instance_->InitAsDefaultInstance(); |
| 91 | ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto); |
| 92 | } |
| 93 | |
| 94 | // Force AddDescriptors() to be called at static initialization time. |
| 95 | struct StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto { |
| 96 | StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto() { |
| 97 | protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); |
| 98 | } |
| 99 | } static_descriptor_initializer_google_2fprotobuf_2fempty_2eproto_; |
| 100 | |
| 101 | namespace { |
| 102 | |
| 103 | static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
| 104 | static void MergeFromFail(int line) { |
| 105 | GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
| 106 | } |
| 107 | |
| 108 | } // namespace |
| 109 | |
| 110 | |
| 111 | // =================================================================== |
| 112 | |
Bo Yang | 1f0286a | 2015-12-04 13:18:44 -0800 | [diff] [blame] | 113 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 114 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 115 | |
| 116 | Empty::Empty() |
Bo Yang | 5db2173 | 2015-05-21 14:28:59 -0700 | [diff] [blame] | 117 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 118 | SharedCtor(); |
| 119 | // @@protoc_insertion_point(constructor:google.protobuf.Empty) |
| 120 | } |
| 121 | |
Feng Xiao | e841bac | 2015-12-11 17:09:20 -0800 | [diff] [blame] | 122 | Empty::Empty(::google::protobuf::Arena* arena) |
| 123 | : ::google::protobuf::Message(), |
| 124 | _internal_metadata_(arena) { |
| 125 | SharedCtor(); |
| 126 | RegisterArenaDtor(arena); |
| 127 | // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty) |
| 128 | } |
| 129 | |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 130 | void Empty::InitAsDefaultInstance() { |
| 131 | _is_default_instance_ = true; |
| 132 | } |
| 133 | |
| 134 | Empty::Empty(const Empty& from) |
| 135 | : ::google::protobuf::Message(), |
| 136 | _internal_metadata_(NULL) { |
| 137 | SharedCtor(); |
| 138 | MergeFrom(from); |
| 139 | // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty) |
| 140 | } |
| 141 | |
| 142 | void Empty::SharedCtor() { |
| 143 | _is_default_instance_ = false; |
| 144 | _cached_size_ = 0; |
| 145 | } |
| 146 | |
| 147 | Empty::~Empty() { |
| 148 | // @@protoc_insertion_point(destructor:google.protobuf.Empty) |
| 149 | SharedDtor(); |
| 150 | } |
| 151 | |
| 152 | void Empty::SharedDtor() { |
Feng Xiao | e841bac | 2015-12-11 17:09:20 -0800 | [diff] [blame] | 153 | if (GetArenaNoVirtual() != NULL) { |
| 154 | return; |
| 155 | } |
| 156 | |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 157 | if (this != default_instance_) { |
| 158 | } |
| 159 | } |
| 160 | |
Feng Xiao | e841bac | 2015-12-11 17:09:20 -0800 | [diff] [blame] | 161 | void Empty::ArenaDtor(void* object) { |
| 162 | Empty* _this = reinterpret_cast< Empty* >(object); |
| 163 | (void)_this; |
| 164 | } |
| 165 | void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 166 | } |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 167 | void Empty::SetCachedSize(int size) const { |
| 168 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 169 | _cached_size_ = size; |
| 170 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 171 | } |
| 172 | const ::google::protobuf::Descriptor* Empty::descriptor() { |
| 173 | protobuf_AssignDescriptorsOnce(); |
| 174 | return Empty_descriptor_; |
| 175 | } |
| 176 | |
| 177 | const Empty& Empty::default_instance() { |
| 178 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); |
| 179 | return *default_instance_; |
| 180 | } |
| 181 | |
| 182 | Empty* Empty::default_instance_ = NULL; |
| 183 | |
| 184 | Empty* Empty::New(::google::protobuf::Arena* arena) const { |
Feng Xiao | e841bac | 2015-12-11 17:09:20 -0800 | [diff] [blame] | 185 | return ::google::protobuf::Arena::CreateMessage<Empty>(arena); |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 186 | } |
| 187 | |
| 188 | void Empty::Clear() { |
| 189 | } |
| 190 | |
| 191 | bool Empty::MergePartialFromCodedStream( |
| 192 | ::google::protobuf::io::CodedInputStream* input) { |
| 193 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 194 | ::google::protobuf::uint32 tag; |
| 195 | // @@protoc_insertion_point(parse_start:google.protobuf.Empty) |
| 196 | for (;;) { |
| 197 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 198 | tag = p.first; |
| 199 | if (!p.second) goto handle_unusual; |
| 200 | handle_unusual: |
| 201 | if (tag == 0 || |
| 202 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 203 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 204 | goto success; |
| 205 | } |
| 206 | DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); |
| 207 | } |
| 208 | success: |
| 209 | // @@protoc_insertion_point(parse_success:google.protobuf.Empty) |
| 210 | return true; |
| 211 | failure: |
| 212 | // @@protoc_insertion_point(parse_failure:google.protobuf.Empty) |
| 213 | return false; |
| 214 | #undef DO_ |
| 215 | } |
| 216 | |
| 217 | void Empty::SerializeWithCachedSizes( |
| 218 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 219 | // @@protoc_insertion_point(serialize_start:google.protobuf.Empty) |
| 220 | // @@protoc_insertion_point(serialize_end:google.protobuf.Empty) |
| 221 | } |
| 222 | |
| 223 | ::google::protobuf::uint8* Empty::SerializeWithCachedSizesToArray( |
| 224 | ::google::protobuf::uint8* target) const { |
| 225 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty) |
| 226 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty) |
| 227 | return target; |
| 228 | } |
| 229 | |
| 230 | int Empty::ByteSize() const { |
| 231 | int total_size = 0; |
| 232 | |
| 233 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 234 | _cached_size_ = total_size; |
| 235 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 236 | return total_size; |
| 237 | } |
| 238 | |
| 239 | void Empty::MergeFrom(const ::google::protobuf::Message& from) { |
| 240 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
Bo Yang | 5db2173 | 2015-05-21 14:28:59 -0700 | [diff] [blame] | 241 | const Empty* source = |
| 242 | ::google::protobuf::internal::DynamicCastToGenerated<const Empty>( |
| 243 | &from); |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 244 | if (source == NULL) { |
| 245 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 246 | } else { |
| 247 | MergeFrom(*source); |
| 248 | } |
| 249 | } |
| 250 | |
| 251 | void Empty::MergeFrom(const Empty& from) { |
| 252 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 253 | } |
| 254 | |
| 255 | void Empty::CopyFrom(const ::google::protobuf::Message& from) { |
| 256 | if (&from == this) return; |
| 257 | Clear(); |
| 258 | MergeFrom(from); |
| 259 | } |
| 260 | |
| 261 | void Empty::CopyFrom(const Empty& from) { |
| 262 | if (&from == this) return; |
| 263 | Clear(); |
| 264 | MergeFrom(from); |
| 265 | } |
| 266 | |
| 267 | bool Empty::IsInitialized() const { |
| 268 | |
| 269 | return true; |
| 270 | } |
| 271 | |
| 272 | void Empty::Swap(Empty* other) { |
| 273 | if (other == this) return; |
Feng Xiao | e841bac | 2015-12-11 17:09:20 -0800 | [diff] [blame] | 274 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 275 | InternalSwap(other); |
| 276 | } else { |
| 277 | Empty temp; |
| 278 | temp.MergeFrom(*this); |
| 279 | CopyFrom(*other); |
| 280 | other->CopyFrom(temp); |
| 281 | } |
| 282 | } |
| 283 | void Empty::UnsafeArenaSwap(Empty* other) { |
| 284 | if (other == this) return; |
| 285 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
Feng Xiao | 33c9280 | 2015-05-11 13:47:41 -0700 | [diff] [blame] | 286 | InternalSwap(other); |
| 287 | } |
| 288 | void Empty::InternalSwap(Empty* other) { |
| 289 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 290 | std::swap(_cached_size_, other->_cached_size_); |
| 291 | } |
| 292 | |
| 293 | ::google::protobuf::Metadata Empty::GetMetadata() const { |
| 294 | protobuf_AssignDescriptorsOnce(); |
| 295 | ::google::protobuf::Metadata metadata; |
| 296 | metadata.descriptor = Empty_descriptor_; |
| 297 | metadata.reflection = Empty_reflection_; |
| 298 | return metadata; |
| 299 | } |
| 300 | |
| 301 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 302 | // Empty |
| 303 | |
| 304 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 305 | |
| 306 | // @@protoc_insertion_point(namespace_scope) |
| 307 | |
| 308 | } // namespace protobuf |
| 309 | } // namespace google |
| 310 | |
| 311 | // @@protoc_insertion_point(global_scope) |