Brian Silverman | 9c614bc | 2016-02-15 20:20:02 -0500 | [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 |
| 5 | #include <google/protobuf/empty.pb.h> |
| 6 | |
| 7 | #include <algorithm> |
| 8 | |
| 9 | #include <google/protobuf/stubs/common.h> |
| 10 | #include <google/protobuf/stubs/port.h> |
| 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" |
| 83 | "otobuf\"\007\n\005EmptyBP\n\023com.google.protobufB\n" |
| 84 | "EmptyProtoP\001\240\001\001\370\001\001\242\002\003GPB\252\002\036Google.Protob" |
| 85 | "uf.WellKnownTypesb\006proto3", 145); |
| 86 | ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile( |
| 87 | "google/protobuf/empty.proto", &protobuf_RegisterTypes); |
| 88 | Empty::default_instance_ = new Empty(); |
| 89 | Empty::default_instance_->InitAsDefaultInstance(); |
| 90 | ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_google_2fprotobuf_2fempty_2eproto); |
| 91 | } |
| 92 | |
| 93 | // Force AddDescriptors() to be called at static initialization time. |
| 94 | struct StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto { |
| 95 | StaticDescriptorInitializer_google_2fprotobuf_2fempty_2eproto() { |
| 96 | protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); |
| 97 | } |
| 98 | } static_descriptor_initializer_google_2fprotobuf_2fempty_2eproto_; |
| 99 | |
| 100 | namespace { |
| 101 | |
| 102 | static void MergeFromFail(int line) GOOGLE_ATTRIBUTE_COLD; |
| 103 | static void MergeFromFail(int line) { |
| 104 | GOOGLE_CHECK(false) << __FILE__ << ":" << line; |
| 105 | } |
| 106 | |
| 107 | } // namespace |
| 108 | |
| 109 | |
| 110 | // =================================================================== |
| 111 | |
| 112 | #if !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 113 | #endif // !defined(_MSC_VER) || _MSC_VER >= 1900 |
| 114 | |
| 115 | Empty::Empty() |
| 116 | : ::google::protobuf::Message(), _internal_metadata_(NULL) { |
| 117 | SharedCtor(); |
| 118 | // @@protoc_insertion_point(constructor:google.protobuf.Empty) |
| 119 | } |
| 120 | |
| 121 | Empty::Empty(::google::protobuf::Arena* arena) |
| 122 | : ::google::protobuf::Message(), |
| 123 | _internal_metadata_(arena) { |
| 124 | SharedCtor(); |
| 125 | RegisterArenaDtor(arena); |
| 126 | // @@protoc_insertion_point(arena_constructor:google.protobuf.Empty) |
| 127 | } |
| 128 | |
| 129 | void Empty::InitAsDefaultInstance() { |
| 130 | _is_default_instance_ = true; |
| 131 | } |
| 132 | |
| 133 | Empty::Empty(const Empty& from) |
| 134 | : ::google::protobuf::Message(), |
| 135 | _internal_metadata_(NULL) { |
| 136 | SharedCtor(); |
| 137 | MergeFrom(from); |
| 138 | // @@protoc_insertion_point(copy_constructor:google.protobuf.Empty) |
| 139 | } |
| 140 | |
| 141 | void Empty::SharedCtor() { |
| 142 | _is_default_instance_ = false; |
| 143 | _cached_size_ = 0; |
| 144 | } |
| 145 | |
| 146 | Empty::~Empty() { |
| 147 | // @@protoc_insertion_point(destructor:google.protobuf.Empty) |
| 148 | SharedDtor(); |
| 149 | } |
| 150 | |
| 151 | void Empty::SharedDtor() { |
| 152 | if (GetArenaNoVirtual() != NULL) { |
| 153 | return; |
| 154 | } |
| 155 | |
| 156 | if (this != default_instance_) { |
| 157 | } |
| 158 | } |
| 159 | |
| 160 | void Empty::ArenaDtor(void* object) { |
| 161 | Empty* _this = reinterpret_cast< Empty* >(object); |
| 162 | (void)_this; |
| 163 | } |
| 164 | void Empty::RegisterArenaDtor(::google::protobuf::Arena* arena) { |
| 165 | } |
| 166 | void Empty::SetCachedSize(int size) const { |
| 167 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 168 | _cached_size_ = size; |
| 169 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 170 | } |
| 171 | const ::google::protobuf::Descriptor* Empty::descriptor() { |
| 172 | protobuf_AssignDescriptorsOnce(); |
| 173 | return Empty_descriptor_; |
| 174 | } |
| 175 | |
| 176 | const Empty& Empty::default_instance() { |
| 177 | if (default_instance_ == NULL) protobuf_AddDesc_google_2fprotobuf_2fempty_2eproto(); |
| 178 | return *default_instance_; |
| 179 | } |
| 180 | |
| 181 | Empty* Empty::default_instance_ = NULL; |
| 182 | |
| 183 | Empty* Empty::New(::google::protobuf::Arena* arena) const { |
| 184 | return ::google::protobuf::Arena::CreateMessage<Empty>(arena); |
| 185 | } |
| 186 | |
| 187 | void Empty::Clear() { |
| 188 | } |
| 189 | |
| 190 | bool Empty::MergePartialFromCodedStream( |
| 191 | ::google::protobuf::io::CodedInputStream* input) { |
| 192 | #define DO_(EXPRESSION) if (!(EXPRESSION)) goto failure |
| 193 | ::google::protobuf::uint32 tag; |
| 194 | // @@protoc_insertion_point(parse_start:google.protobuf.Empty) |
| 195 | for (;;) { |
| 196 | ::std::pair< ::google::protobuf::uint32, bool> p = input->ReadTagWithCutoff(127); |
| 197 | tag = p.first; |
| 198 | if (!p.second) goto handle_unusual; |
| 199 | handle_unusual: |
| 200 | if (tag == 0 || |
| 201 | ::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) == |
| 202 | ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) { |
| 203 | goto success; |
| 204 | } |
| 205 | DO_(::google::protobuf::internal::WireFormatLite::SkipField(input, tag)); |
| 206 | } |
| 207 | success: |
| 208 | // @@protoc_insertion_point(parse_success:google.protobuf.Empty) |
| 209 | return true; |
| 210 | failure: |
| 211 | // @@protoc_insertion_point(parse_failure:google.protobuf.Empty) |
| 212 | return false; |
| 213 | #undef DO_ |
| 214 | } |
| 215 | |
| 216 | void Empty::SerializeWithCachedSizes( |
| 217 | ::google::protobuf::io::CodedOutputStream* output) const { |
| 218 | // @@protoc_insertion_point(serialize_start:google.protobuf.Empty) |
| 219 | // @@protoc_insertion_point(serialize_end:google.protobuf.Empty) |
| 220 | } |
| 221 | |
| 222 | ::google::protobuf::uint8* Empty::SerializeWithCachedSizesToArray( |
| 223 | ::google::protobuf::uint8* target) const { |
| 224 | // @@protoc_insertion_point(serialize_to_array_start:google.protobuf.Empty) |
| 225 | // @@protoc_insertion_point(serialize_to_array_end:google.protobuf.Empty) |
| 226 | return target; |
| 227 | } |
| 228 | |
| 229 | int Empty::ByteSize() const { |
| 230 | int total_size = 0; |
| 231 | |
| 232 | GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN(); |
| 233 | _cached_size_ = total_size; |
| 234 | GOOGLE_SAFE_CONCURRENT_WRITES_END(); |
| 235 | return total_size; |
| 236 | } |
| 237 | |
| 238 | void Empty::MergeFrom(const ::google::protobuf::Message& from) { |
| 239 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 240 | const Empty* source = |
| 241 | ::google::protobuf::internal::DynamicCastToGenerated<const Empty>( |
| 242 | &from); |
| 243 | if (source == NULL) { |
| 244 | ::google::protobuf::internal::ReflectionOps::Merge(from, this); |
| 245 | } else { |
| 246 | MergeFrom(*source); |
| 247 | } |
| 248 | } |
| 249 | |
| 250 | void Empty::MergeFrom(const Empty& from) { |
| 251 | if (GOOGLE_PREDICT_FALSE(&from == this)) MergeFromFail(__LINE__); |
| 252 | } |
| 253 | |
| 254 | void Empty::CopyFrom(const ::google::protobuf::Message& from) { |
| 255 | if (&from == this) return; |
| 256 | Clear(); |
| 257 | MergeFrom(from); |
| 258 | } |
| 259 | |
| 260 | void Empty::CopyFrom(const Empty& from) { |
| 261 | if (&from == this) return; |
| 262 | Clear(); |
| 263 | MergeFrom(from); |
| 264 | } |
| 265 | |
| 266 | bool Empty::IsInitialized() const { |
| 267 | |
| 268 | return true; |
| 269 | } |
| 270 | |
| 271 | void Empty::Swap(Empty* other) { |
| 272 | if (other == this) return; |
| 273 | if (GetArenaNoVirtual() == other->GetArenaNoVirtual()) { |
| 274 | InternalSwap(other); |
| 275 | } else { |
| 276 | Empty temp; |
| 277 | temp.MergeFrom(*this); |
| 278 | CopyFrom(*other); |
| 279 | other->CopyFrom(temp); |
| 280 | } |
| 281 | } |
| 282 | void Empty::UnsafeArenaSwap(Empty* other) { |
| 283 | if (other == this) return; |
| 284 | GOOGLE_DCHECK(GetArenaNoVirtual() == other->GetArenaNoVirtual()); |
| 285 | InternalSwap(other); |
| 286 | } |
| 287 | void Empty::InternalSwap(Empty* other) { |
| 288 | _internal_metadata_.Swap(&other->_internal_metadata_); |
| 289 | std::swap(_cached_size_, other->_cached_size_); |
| 290 | } |
| 291 | |
| 292 | ::google::protobuf::Metadata Empty::GetMetadata() const { |
| 293 | protobuf_AssignDescriptorsOnce(); |
| 294 | ::google::protobuf::Metadata metadata; |
| 295 | metadata.descriptor = Empty_descriptor_; |
| 296 | metadata.reflection = Empty_reflection_; |
| 297 | return metadata; |
| 298 | } |
| 299 | |
| 300 | #if PROTOBUF_INLINE_NOT_IN_HEADERS |
| 301 | // Empty |
| 302 | |
| 303 | #endif // PROTOBUF_INLINE_NOT_IN_HEADERS |
| 304 | |
| 305 | // @@protoc_insertion_point(namespace_scope) |
| 306 | |
| 307 | } // namespace protobuf |
| 308 | } // namespace google |
| 309 | |
| 310 | // @@protoc_insertion_point(global_scope) |