Line data Source code
1 : // Generated by the protocol buffer compiler. DO NOT EDIT!
2 : // source: paymentrequest.proto
3 :
4 : #define INTERNAL_SUPPRESS_PROTOBUF_FIELD_DEPRECATION
5 : #include "paymentrequest.pb.h"
6 :
7 : #include <algorithm>
8 :
9 : #include <google/protobuf/stubs/common.h>
10 : #include <google/protobuf/stubs/once.h>
11 : #include <google/protobuf/io/coded_stream.h>
12 : #include <google/protobuf/wire_format_lite_inl.h>
13 : #include <google/protobuf/descriptor.h>
14 : #include <google/protobuf/generated_message_reflection.h>
15 : #include <google/protobuf/reflection_ops.h>
16 : #include <google/protobuf/wire_format.h>
17 : // @@protoc_insertion_point(includes)
18 :
19 : namespace payments {
20 :
21 : namespace {
22 :
23 : const ::google::protobuf::Descriptor* Output_descriptor_ = NULL;
24 : const ::google::protobuf::internal::GeneratedMessageReflection*
25 : Output_reflection_ = NULL;
26 : const ::google::protobuf::Descriptor* PaymentDetails_descriptor_ = NULL;
27 : const ::google::protobuf::internal::GeneratedMessageReflection*
28 : PaymentDetails_reflection_ = NULL;
29 : const ::google::protobuf::Descriptor* PaymentRequest_descriptor_ = NULL;
30 : const ::google::protobuf::internal::GeneratedMessageReflection*
31 : PaymentRequest_reflection_ = NULL;
32 : const ::google::protobuf::Descriptor* X509Certificates_descriptor_ = NULL;
33 : const ::google::protobuf::internal::GeneratedMessageReflection*
34 : X509Certificates_reflection_ = NULL;
35 : const ::google::protobuf::Descriptor* Payment_descriptor_ = NULL;
36 : const ::google::protobuf::internal::GeneratedMessageReflection*
37 : Payment_reflection_ = NULL;
38 : const ::google::protobuf::Descriptor* PaymentACK_descriptor_ = NULL;
39 : const ::google::protobuf::internal::GeneratedMessageReflection*
40 : PaymentACK_reflection_ = NULL;
41 :
42 : } // namespace
43 :
44 :
45 0 : void protobuf_AssignDesc_paymentrequest_2eproto() {
46 0 : protobuf_AddDesc_paymentrequest_2eproto();
47 : const ::google::protobuf::FileDescriptor* file =
48 : ::google::protobuf::DescriptorPool::generated_pool()->FindFileByName(
49 0 : "paymentrequest.proto");
50 0 : GOOGLE_CHECK(file != NULL);
51 0 : Output_descriptor_ = file->message_type(0);
52 : static const int Output_offsets_[2] = {
53 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Output, amount_),
54 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Output, script_),
55 : };
56 : Output_reflection_ =
57 : new ::google::protobuf::internal::GeneratedMessageReflection(
58 : Output_descriptor_,
59 : Output::default_instance_,
60 : Output_offsets_,
61 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Output, _has_bits_[0]),
62 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Output, _unknown_fields_),
63 : -1,
64 : ::google::protobuf::DescriptorPool::generated_pool(),
65 : ::google::protobuf::MessageFactory::generated_factory(),
66 0 : sizeof(Output));
67 0 : PaymentDetails_descriptor_ = file->message_type(1);
68 : static const int PaymentDetails_offsets_[7] = {
69 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, network_),
70 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, outputs_),
71 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, time_),
72 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, expires_),
73 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, memo_),
74 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, payment_url_),
75 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, merchant_data_),
76 : };
77 : PaymentDetails_reflection_ =
78 : new ::google::protobuf::internal::GeneratedMessageReflection(
79 : PaymentDetails_descriptor_,
80 : PaymentDetails::default_instance_,
81 : PaymentDetails_offsets_,
82 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, _has_bits_[0]),
83 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentDetails, _unknown_fields_),
84 : -1,
85 : ::google::protobuf::DescriptorPool::generated_pool(),
86 : ::google::protobuf::MessageFactory::generated_factory(),
87 0 : sizeof(PaymentDetails));
88 0 : PaymentRequest_descriptor_ = file->message_type(2);
89 : static const int PaymentRequest_offsets_[5] = {
90 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentRequest, payment_details_version_),
91 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentRequest, pki_type_),
92 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentRequest, pki_data_),
93 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentRequest, serialized_payment_details_),
94 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentRequest, signature_),
95 : };
96 : PaymentRequest_reflection_ =
97 : new ::google::protobuf::internal::GeneratedMessageReflection(
98 : PaymentRequest_descriptor_,
99 : PaymentRequest::default_instance_,
100 : PaymentRequest_offsets_,
101 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentRequest, _has_bits_[0]),
102 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentRequest, _unknown_fields_),
103 : -1,
104 : ::google::protobuf::DescriptorPool::generated_pool(),
105 : ::google::protobuf::MessageFactory::generated_factory(),
106 0 : sizeof(PaymentRequest));
107 0 : X509Certificates_descriptor_ = file->message_type(3);
108 : static const int X509Certificates_offsets_[1] = {
109 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(X509Certificates, certificate_),
110 : };
111 : X509Certificates_reflection_ =
112 : new ::google::protobuf::internal::GeneratedMessageReflection(
113 : X509Certificates_descriptor_,
114 : X509Certificates::default_instance_,
115 : X509Certificates_offsets_,
116 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(X509Certificates, _has_bits_[0]),
117 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(X509Certificates, _unknown_fields_),
118 : -1,
119 : ::google::protobuf::DescriptorPool::generated_pool(),
120 : ::google::protobuf::MessageFactory::generated_factory(),
121 0 : sizeof(X509Certificates));
122 0 : Payment_descriptor_ = file->message_type(4);
123 : static const int Payment_offsets_[4] = {
124 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payment, merchant_data_),
125 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payment, transactions_),
126 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payment, refund_to_),
127 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payment, memo_),
128 : };
129 : Payment_reflection_ =
130 : new ::google::protobuf::internal::GeneratedMessageReflection(
131 : Payment_descriptor_,
132 : Payment::default_instance_,
133 : Payment_offsets_,
134 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payment, _has_bits_[0]),
135 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(Payment, _unknown_fields_),
136 : -1,
137 : ::google::protobuf::DescriptorPool::generated_pool(),
138 : ::google::protobuf::MessageFactory::generated_factory(),
139 0 : sizeof(Payment));
140 0 : PaymentACK_descriptor_ = file->message_type(5);
141 : static const int PaymentACK_offsets_[2] = {
142 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentACK, payment_),
143 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentACK, memo_),
144 : };
145 : PaymentACK_reflection_ =
146 : new ::google::protobuf::internal::GeneratedMessageReflection(
147 : PaymentACK_descriptor_,
148 : PaymentACK::default_instance_,
149 : PaymentACK_offsets_,
150 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentACK, _has_bits_[0]),
151 : GOOGLE_PROTOBUF_GENERATED_MESSAGE_FIELD_OFFSET(PaymentACK, _unknown_fields_),
152 : -1,
153 : ::google::protobuf::DescriptorPool::generated_pool(),
154 : ::google::protobuf::MessageFactory::generated_factory(),
155 0 : sizeof(PaymentACK));
156 0 : }
157 :
158 : namespace {
159 :
160 : GOOGLE_PROTOBUF_DECLARE_ONCE(protobuf_AssignDescriptors_once_);
161 : inline void protobuf_AssignDescriptorsOnce() {
162 : ::google::protobuf::GoogleOnceInit(&protobuf_AssignDescriptors_once_,
163 0 : &protobuf_AssignDesc_paymentrequest_2eproto);
164 : }
165 :
166 0 : void protobuf_RegisterTypes(const ::std::string&) {
167 : protobuf_AssignDescriptorsOnce();
168 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
169 0 : Output_descriptor_, &Output::default_instance());
170 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
171 0 : PaymentDetails_descriptor_, &PaymentDetails::default_instance());
172 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
173 0 : PaymentRequest_descriptor_, &PaymentRequest::default_instance());
174 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
175 0 : X509Certificates_descriptor_, &X509Certificates::default_instance());
176 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
177 0 : Payment_descriptor_, &Payment::default_instance());
178 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedMessage(
179 0 : PaymentACK_descriptor_, &PaymentACK::default_instance());
180 0 : }
181 :
182 : } // namespace
183 :
184 1 : void protobuf_ShutdownFile_paymentrequest_2eproto() {
185 1 : delete Output::default_instance_;
186 1 : delete Output_reflection_;
187 1 : delete PaymentDetails::default_instance_;
188 1 : delete PaymentDetails_reflection_;
189 2 : delete PaymentDetails::_default_network_;
190 1 : delete PaymentRequest::default_instance_;
191 1 : delete PaymentRequest_reflection_;
192 2 : delete PaymentRequest::_default_pki_type_;
193 1 : delete X509Certificates::default_instance_;
194 1 : delete X509Certificates_reflection_;
195 1 : delete Payment::default_instance_;
196 1 : delete Payment_reflection_;
197 1 : delete PaymentACK::default_instance_;
198 1 : delete PaymentACK_reflection_;
199 1 : }
200 :
201 1 : void protobuf_AddDesc_paymentrequest_2eproto() {
202 : static bool already_here = false;
203 2 : if (already_here) return;
204 1 : already_here = true;
205 1 : GOOGLE_PROTOBUF_VERIFY_VERSION;
206 :
207 : ::google::protobuf::DescriptorPool::InternalAddGeneratedFile(
208 : "\n\024paymentrequest.proto\022\010payments\"+\n\006Outp"
209 : "ut\022\021\n\006amount\030\001 \001(\004:\0010\022\016\n\006script\030\002 \002(\014\"\243\001"
210 : "\n\016PaymentDetails\022\025\n\007network\030\001 \001(\t:\004main\022"
211 : "!\n\007outputs\030\002 \003(\0132\020.payments.Output\022\014\n\004ti"
212 : "me\030\003 \002(\004\022\017\n\007expires\030\004 \001(\004\022\014\n\004memo\030\005 \001(\t\022"
213 : "\023\n\013payment_url\030\006 \001(\t\022\025\n\rmerchant_data\030\007 "
214 : "\001(\014\"\225\001\n\016PaymentRequest\022\"\n\027payment_detail"
215 : "s_version\030\001 \001(\r:\0011\022\026\n\010pki_type\030\002 \001(\t:\004no"
216 : "ne\022\020\n\010pki_data\030\003 \001(\014\022\"\n\032serialized_payme"
217 : "nt_details\030\004 \002(\014\022\021\n\tsignature\030\005 \001(\014\"\'\n\020X"
218 : "509Certificates\022\023\n\013certificate\030\001 \003(\014\"i\n\007"
219 : "Payment\022\025\n\rmerchant_data\030\001 \001(\014\022\024\n\014transa"
220 : "ctions\030\002 \003(\014\022#\n\trefund_to\030\003 \003(\0132\020.paymen"
221 : "ts.Output\022\014\n\004memo\030\004 \001(\t\">\n\nPaymentACK\022\"\n"
222 : "\007payment\030\001 \002(\0132\021.payments.Payment\022\014\n\004mem"
223 : "o\030\002 \001(\tB(\n\036org.bitcoin.protocols.payment"
224 1 : "sB\006Protos", 649);
225 : ::google::protobuf::MessageFactory::InternalRegisterGeneratedFile(
226 1 : "paymentrequest.proto", &protobuf_RegisterTypes);
227 1 : Output::default_instance_ = new Output();
228 : PaymentDetails::_default_network_ =
229 2 : new ::std::string("main", 4);
230 1 : PaymentDetails::default_instance_ = new PaymentDetails();
231 : PaymentRequest::_default_pki_type_ =
232 2 : new ::std::string("none", 4);
233 1 : PaymentRequest::default_instance_ = new PaymentRequest();
234 1 : X509Certificates::default_instance_ = new X509Certificates();
235 1 : Payment::default_instance_ = new Payment();
236 1 : PaymentACK::default_instance_ = new PaymentACK();
237 1 : Output::default_instance_->InitAsDefaultInstance();
238 1 : PaymentDetails::default_instance_->InitAsDefaultInstance();
239 1 : PaymentRequest::default_instance_->InitAsDefaultInstance();
240 1 : X509Certificates::default_instance_->InitAsDefaultInstance();
241 1 : Payment::default_instance_->InitAsDefaultInstance();
242 1 : PaymentACK::default_instance_->InitAsDefaultInstance();
243 1 : ::google::protobuf::internal::OnShutdown(&protobuf_ShutdownFile_paymentrequest_2eproto);
244 : }
245 :
246 : // Force AddDescriptors() to be called at static initialization time.
247 : struct StaticDescriptorInitializer_paymentrequest_2eproto {
248 0 : StaticDescriptorInitializer_paymentrequest_2eproto() {
249 1 : protobuf_AddDesc_paymentrequest_2eproto();
250 0 : }
251 : } static_descriptor_initializer_paymentrequest_2eproto_;
252 :
253 : // ===================================================================
254 :
255 : #ifndef _MSC_VER
256 : const int Output::kAmountFieldNumber;
257 : const int Output::kScriptFieldNumber;
258 : #endif // !_MSC_VER
259 :
260 38 : Output::Output()
261 76 : : ::google::protobuf::Message() {
262 : SharedCtor();
263 38 : }
264 :
265 0 : void Output::InitAsDefaultInstance() {
266 0 : }
267 :
268 0 : Output::Output(const Output& from)
269 0 : : ::google::protobuf::Message() {
270 : SharedCtor();
271 0 : MergeFrom(from);
272 0 : }
273 :
274 0 : void Output::SharedCtor() {
275 38 : _cached_size_ = 0;
276 38 : amount_ = GOOGLE_ULONGLONG(0);
277 38 : script_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
278 38 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
279 0 : }
280 :
281 114 : Output::~Output() {
282 38 : SharedDtor();
283 76 : }
284 :
285 38 : void Output::SharedDtor() {
286 38 : if (script_ != &::google::protobuf::internal::kEmptyString) {
287 74 : delete script_;
288 : }
289 : if (this != default_instance_) {
290 : }
291 38 : }
292 :
293 0 : void Output::SetCachedSize(int size) const {
294 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
295 0 : _cached_size_ = size;
296 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
297 0 : }
298 0 : const ::google::protobuf::Descriptor* Output::descriptor() {
299 : protobuf_AssignDescriptorsOnce();
300 0 : return Output_descriptor_;
301 : }
302 :
303 0 : const Output& Output::default_instance() {
304 0 : if (default_instance_ == NULL) protobuf_AddDesc_paymentrequest_2eproto();
305 0 : return *default_instance_;
306 : }
307 :
308 : Output* Output::default_instance_ = NULL;
309 :
310 0 : Output* Output::New() const {
311 0 : return new Output;
312 : }
313 :
314 10 : void Output::Clear() {
315 10 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
316 10 : amount_ = GOOGLE_ULONGLONG(0);
317 20 : if (has_script()) {
318 10 : if (script_ != &::google::protobuf::internal::kEmptyString) {
319 10 : script_->clear();
320 : }
321 : }
322 : }
323 10 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
324 10 : mutable_unknown_fields()->Clear();
325 10 : }
326 :
327 11 : bool Output::MergePartialFromCodedStream(
328 : ::google::protobuf::io::CodedInputStream* input) {
329 : #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
330 : ::google::protobuf::uint32 tag;
331 22 : while ((tag = input->ReadTag()) != 0) {
332 11 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
333 : // optional uint64 amount = 1 [default = 0];
334 : case 1: {
335 11 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
336 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
337 22 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
338 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
339 : input, &amount_)));
340 11 : set_has_amount();
341 : } else {
342 : goto handle_uninterpreted;
343 : }
344 11 : if (input->ExpectTag(18)) goto parse_script;
345 : break;
346 : }
347 :
348 : // required bytes script = 2;
349 : case 2: {
350 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
351 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
352 : parse_script:
353 11 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
354 : input, this->mutable_script()));
355 : } else {
356 : goto handle_uninterpreted;
357 : }
358 11 : if (input->ExpectAtEnd()) return true;
359 : break;
360 : }
361 :
362 : default: {
363 : handle_uninterpreted:
364 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
365 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
366 : return true;
367 : }
368 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
369 : input, tag, mutable_unknown_fields()));
370 : break;
371 : }
372 : }
373 : }
374 : return true;
375 : #undef DO_
376 : }
377 :
378 0 : void Output::SerializeWithCachedSizes(
379 : ::google::protobuf::io::CodedOutputStream* output) const {
380 : // optional uint64 amount = 1 [default = 0];
381 0 : if (has_amount()) {
382 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(1, this->amount(), output);
383 : }
384 :
385 : // required bytes script = 2;
386 0 : if (has_script()) {
387 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
388 0 : 2, this->script(), output);
389 : }
390 :
391 0 : if (!unknown_fields().empty()) {
392 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
393 0 : unknown_fields(), output);
394 : }
395 0 : }
396 :
397 0 : ::google::protobuf::uint8* Output::SerializeWithCachedSizesToArray(
398 : ::google::protobuf::uint8* target) const {
399 : // optional uint64 amount = 1 [default = 0];
400 0 : if (has_amount()) {
401 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(1, this->amount(), target);
402 : }
403 :
404 : // required bytes script = 2;
405 0 : if (has_script()) {
406 : target =
407 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
408 0 : 2, this->script(), target);
409 : }
410 :
411 0 : if (!unknown_fields().empty()) {
412 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
413 0 : unknown_fields(), target);
414 : }
415 0 : return target;
416 : }
417 :
418 0 : int Output::ByteSize() const {
419 0 : int total_size = 0;
420 :
421 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
422 : // optional uint64 amount = 1 [default = 0];
423 0 : if (has_amount()) {
424 : total_size += 1 +
425 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
426 0 : this->amount());
427 : }
428 :
429 : // required bytes script = 2;
430 0 : if (has_script()) {
431 : total_size += 1 +
432 : ::google::protobuf::internal::WireFormatLite::BytesSize(
433 0 : this->script());
434 : }
435 :
436 : }
437 0 : if (!unknown_fields().empty()) {
438 : total_size +=
439 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
440 0 : unknown_fields());
441 : }
442 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
443 0 : _cached_size_ = total_size;
444 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
445 0 : return total_size;
446 : }
447 :
448 0 : void Output::MergeFrom(const ::google::protobuf::Message& from) {
449 0 : GOOGLE_CHECK_NE(&from, this);
450 : const Output* source =
451 : ::google::protobuf::internal::dynamic_cast_if_available<const Output*>(
452 0 : &from);
453 0 : if (source == NULL) {
454 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
455 : } else {
456 0 : MergeFrom(*source);
457 : }
458 0 : }
459 :
460 36 : void Output::MergeFrom(const Output& from) {
461 36 : GOOGLE_CHECK_NE(&from, this);
462 36 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
463 72 : if (from.has_amount()) {
464 36 : set_amount(from.amount());
465 : }
466 72 : if (from.has_script()) {
467 36 : set_script(from.script());
468 : }
469 : }
470 72 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
471 36 : }
472 :
473 0 : void Output::CopyFrom(const ::google::protobuf::Message& from) {
474 0 : if (&from == this) return;
475 0 : Clear();
476 0 : MergeFrom(from);
477 : }
478 :
479 0 : void Output::CopyFrom(const Output& from) {
480 0 : if (&from == this) return;
481 0 : Clear();
482 0 : MergeFrom(from);
483 : }
484 :
485 11 : bool Output::IsInitialized() const {
486 11 : if ((_has_bits_[0] & 0x00000002) != 0x00000002) return false;
487 :
488 11 : return true;
489 : }
490 :
491 0 : void Output::Swap(Output* other) {
492 0 : if (other != this) {
493 0 : std::swap(amount_, other->amount_);
494 0 : std::swap(script_, other->script_);
495 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
496 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
497 0 : std::swap(_cached_size_, other->_cached_size_);
498 : }
499 0 : }
500 :
501 0 : ::google::protobuf::Metadata Output::GetMetadata() const {
502 : protobuf_AssignDescriptorsOnce();
503 : ::google::protobuf::Metadata metadata;
504 0 : metadata.descriptor = Output_descriptor_;
505 0 : metadata.reflection = Output_reflection_;
506 0 : return metadata;
507 : }
508 :
509 :
510 : // ===================================================================
511 :
512 : ::std::string* PaymentDetails::_default_network_ = NULL;
513 : #ifndef _MSC_VER
514 : const int PaymentDetails::kNetworkFieldNumber;
515 : const int PaymentDetails::kOutputsFieldNumber;
516 : const int PaymentDetails::kTimeFieldNumber;
517 : const int PaymentDetails::kExpiresFieldNumber;
518 : const int PaymentDetails::kMemoFieldNumber;
519 : const int PaymentDetails::kPaymentUrlFieldNumber;
520 : const int PaymentDetails::kMerchantDataFieldNumber;
521 : #endif // !_MSC_VER
522 :
523 32 : PaymentDetails::PaymentDetails()
524 64 : : ::google::protobuf::Message() {
525 32 : SharedCtor();
526 32 : }
527 :
528 0 : void PaymentDetails::InitAsDefaultInstance() {
529 0 : }
530 :
531 18 : PaymentDetails::PaymentDetails(const PaymentDetails& from)
532 36 : : ::google::protobuf::Message() {
533 18 : SharedCtor();
534 18 : MergeFrom(from);
535 18 : }
536 :
537 50 : void PaymentDetails::SharedCtor() {
538 50 : _cached_size_ = 0;
539 50 : network_ = const_cast< ::std::string*>(_default_network_);
540 50 : time_ = GOOGLE_ULONGLONG(0);
541 50 : expires_ = GOOGLE_ULONGLONG(0);
542 50 : memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
543 50 : payment_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
544 50 : merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
545 50 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
546 50 : }
547 :
548 151 : PaymentDetails::~PaymentDetails() {
549 50 : SharedDtor();
550 51 : }
551 :
552 50 : void PaymentDetails::SharedDtor() {
553 50 : if (network_ != _default_network_) {
554 2 : delete network_;
555 : }
556 50 : if (memo_ != &::google::protobuf::internal::kEmptyString) {
557 74 : delete memo_;
558 : }
559 50 : if (payment_url_ != &::google::protobuf::internal::kEmptyString) {
560 0 : delete payment_url_;
561 : }
562 50 : if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
563 0 : delete merchant_data_;
564 : }
565 : if (this != default_instance_) {
566 : }
567 50 : }
568 :
569 0 : void PaymentDetails::SetCachedSize(int size) const {
570 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
571 0 : _cached_size_ = size;
572 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
573 0 : }
574 0 : const ::google::protobuf::Descriptor* PaymentDetails::descriptor() {
575 : protobuf_AssignDescriptorsOnce();
576 0 : return PaymentDetails_descriptor_;
577 : }
578 :
579 0 : const PaymentDetails& PaymentDetails::default_instance() {
580 0 : if (default_instance_ == NULL) protobuf_AddDesc_paymentrequest_2eproto();
581 0 : return *default_instance_;
582 : }
583 :
584 : PaymentDetails* PaymentDetails::default_instance_ = NULL;
585 :
586 0 : PaymentDetails* PaymentDetails::New() const {
587 0 : return new PaymentDetails;
588 : }
589 :
590 37 : void PaymentDetails::Clear() {
591 37 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
592 20 : if (has_network()) {
593 4 : if (network_ != _default_network_) {
594 4 : network_->assign(*_default_network_);
595 : }
596 : }
597 10 : time_ = GOOGLE_ULONGLONG(0);
598 10 : expires_ = GOOGLE_ULONGLONG(0);
599 20 : if (has_memo()) {
600 10 : if (memo_ != &::google::protobuf::internal::kEmptyString) {
601 10 : memo_->clear();
602 : }
603 : }
604 20 : if (has_payment_url()) {
605 0 : if (payment_url_ != &::google::protobuf::internal::kEmptyString) {
606 0 : payment_url_->clear();
607 : }
608 : }
609 20 : if (has_merchant_data()) {
610 0 : if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
611 0 : merchant_data_->clear();
612 : }
613 : }
614 : }
615 37 : outputs_.Clear();
616 37 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
617 37 : mutable_unknown_fields()->Clear();
618 37 : }
619 :
620 11 : bool PaymentDetails::MergePartialFromCodedStream(
621 : ::google::protobuf::io::CodedInputStream* input) {
622 : #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
623 : ::google::protobuf::uint32 tag;
624 41 : while ((tag = input->ReadTag()) != 0) {
625 19 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
626 : // optional string network = 1 [default = "main"];
627 : case 1: {
628 5 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
629 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
630 5 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
631 : input, this->mutable_network()));
632 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
633 10 : this->network().data(), this->network().length(),
634 10 : ::google::protobuf::internal::WireFormat::PARSE);
635 : } else {
636 : goto handle_uninterpreted;
637 : }
638 5 : if (input->ExpectTag(18)) goto parse_outputs;
639 : break;
640 : }
641 :
642 : // repeated .payments.Output outputs = 2;
643 : case 2: {
644 6 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
645 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
646 : parse_outputs:
647 11 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
648 : input, add_outputs()));
649 : } else {
650 : goto handle_uninterpreted;
651 : }
652 11 : if (input->ExpectTag(18)) goto parse_outputs;
653 11 : if (input->ExpectTag(24)) goto parse_time;
654 : break;
655 : }
656 :
657 : // required uint64 time = 3;
658 : case 3: {
659 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
660 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
661 : parse_time:
662 22 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
663 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
664 : input, &time_)));
665 11 : set_has_time();
666 : } else {
667 : goto handle_uninterpreted;
668 : }
669 11 : if (input->ExpectTag(32)) goto parse_expires;
670 : break;
671 : }
672 :
673 : // optional uint64 expires = 4;
674 : case 4: {
675 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
676 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
677 : parse_expires:
678 6 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
679 : ::google::protobuf::uint64, ::google::protobuf::internal::WireFormatLite::TYPE_UINT64>(
680 : input, &expires_)));
681 3 : set_has_expires();
682 : } else {
683 : goto handle_uninterpreted;
684 : }
685 3 : if (input->ExpectTag(42)) goto parse_memo;
686 : break;
687 : }
688 :
689 : // optional string memo = 5;
690 : case 5: {
691 8 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
692 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
693 : parse_memo:
694 11 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
695 : input, this->mutable_memo()));
696 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
697 22 : this->memo().data(), this->memo().length(),
698 22 : ::google::protobuf::internal::WireFormat::PARSE);
699 : } else {
700 : goto handle_uninterpreted;
701 : }
702 11 : if (input->ExpectTag(50)) goto parse_payment_url;
703 : break;
704 : }
705 :
706 : // optional string payment_url = 6;
707 : case 6: {
708 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
709 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
710 : parse_payment_url:
711 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
712 : input, this->mutable_payment_url()));
713 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
714 0 : this->payment_url().data(), this->payment_url().length(),
715 0 : ::google::protobuf::internal::WireFormat::PARSE);
716 : } else {
717 : goto handle_uninterpreted;
718 : }
719 0 : if (input->ExpectTag(58)) goto parse_merchant_data;
720 : break;
721 : }
722 :
723 : // optional bytes merchant_data = 7;
724 : case 7: {
725 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
726 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
727 : parse_merchant_data:
728 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
729 : input, this->mutable_merchant_data()));
730 : } else {
731 : goto handle_uninterpreted;
732 : }
733 0 : if (input->ExpectAtEnd()) return true;
734 : break;
735 : }
736 :
737 : default: {
738 : handle_uninterpreted:
739 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
740 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
741 : return true;
742 : }
743 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
744 : input, tag, mutable_unknown_fields()));
745 : break;
746 : }
747 : }
748 : }
749 : return true;
750 : #undef DO_
751 : }
752 :
753 0 : void PaymentDetails::SerializeWithCachedSizes(
754 : ::google::protobuf::io::CodedOutputStream* output) const {
755 : // optional string network = 1 [default = "main"];
756 0 : if (has_network()) {
757 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
758 0 : this->network().data(), this->network().length(),
759 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
760 : ::google::protobuf::internal::WireFormatLite::WriteString(
761 0 : 1, this->network(), output);
762 : }
763 :
764 : // repeated .payments.Output outputs = 2;
765 0 : for (int i = 0; i < this->outputs_size(); i++) {
766 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
767 0 : 2, this->outputs(i), output);
768 : }
769 :
770 : // required uint64 time = 3;
771 0 : if (has_time()) {
772 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(3, this->time(), output);
773 : }
774 :
775 : // optional uint64 expires = 4;
776 0 : if (has_expires()) {
777 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt64(4, this->expires(), output);
778 : }
779 :
780 : // optional string memo = 5;
781 0 : if (has_memo()) {
782 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
783 0 : this->memo().data(), this->memo().length(),
784 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
785 : ::google::protobuf::internal::WireFormatLite::WriteString(
786 0 : 5, this->memo(), output);
787 : }
788 :
789 : // optional string payment_url = 6;
790 0 : if (has_payment_url()) {
791 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
792 0 : this->payment_url().data(), this->payment_url().length(),
793 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
794 : ::google::protobuf::internal::WireFormatLite::WriteString(
795 0 : 6, this->payment_url(), output);
796 : }
797 :
798 : // optional bytes merchant_data = 7;
799 0 : if (has_merchant_data()) {
800 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
801 0 : 7, this->merchant_data(), output);
802 : }
803 :
804 0 : if (!unknown_fields().empty()) {
805 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
806 0 : unknown_fields(), output);
807 : }
808 0 : }
809 :
810 0 : ::google::protobuf::uint8* PaymentDetails::SerializeWithCachedSizesToArray(
811 : ::google::protobuf::uint8* target) const {
812 : // optional string network = 1 [default = "main"];
813 0 : if (has_network()) {
814 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
815 0 : this->network().data(), this->network().length(),
816 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
817 : target =
818 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
819 0 : 1, this->network(), target);
820 : }
821 :
822 : // repeated .payments.Output outputs = 2;
823 0 : for (int i = 0; i < this->outputs_size(); i++) {
824 : target = ::google::protobuf::internal::WireFormatLite::
825 : WriteMessageNoVirtualToArray(
826 0 : 2, this->outputs(i), target);
827 : }
828 :
829 : // required uint64 time = 3;
830 0 : if (has_time()) {
831 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(3, this->time(), target);
832 : }
833 :
834 : // optional uint64 expires = 4;
835 0 : if (has_expires()) {
836 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt64ToArray(4, this->expires(), target);
837 : }
838 :
839 : // optional string memo = 5;
840 0 : if (has_memo()) {
841 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
842 0 : this->memo().data(), this->memo().length(),
843 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
844 : target =
845 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
846 0 : 5, this->memo(), target);
847 : }
848 :
849 : // optional string payment_url = 6;
850 0 : if (has_payment_url()) {
851 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
852 0 : this->payment_url().data(), this->payment_url().length(),
853 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
854 : target =
855 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
856 0 : 6, this->payment_url(), target);
857 : }
858 :
859 : // optional bytes merchant_data = 7;
860 0 : if (has_merchant_data()) {
861 : target =
862 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
863 0 : 7, this->merchant_data(), target);
864 : }
865 :
866 0 : if (!unknown_fields().empty()) {
867 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
868 0 : unknown_fields(), target);
869 : }
870 0 : return target;
871 : }
872 :
873 0 : int PaymentDetails::ByteSize() const {
874 0 : int total_size = 0;
875 :
876 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
877 : // optional string network = 1 [default = "main"];
878 0 : if (has_network()) {
879 : total_size += 1 +
880 : ::google::protobuf::internal::WireFormatLite::StringSize(
881 0 : this->network());
882 : }
883 :
884 : // required uint64 time = 3;
885 0 : if (has_time()) {
886 : total_size += 1 +
887 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
888 0 : this->time());
889 : }
890 :
891 : // optional uint64 expires = 4;
892 0 : if (has_expires()) {
893 : total_size += 1 +
894 : ::google::protobuf::internal::WireFormatLite::UInt64Size(
895 0 : this->expires());
896 : }
897 :
898 : // optional string memo = 5;
899 0 : if (has_memo()) {
900 : total_size += 1 +
901 : ::google::protobuf::internal::WireFormatLite::StringSize(
902 0 : this->memo());
903 : }
904 :
905 : // optional string payment_url = 6;
906 0 : if (has_payment_url()) {
907 : total_size += 1 +
908 : ::google::protobuf::internal::WireFormatLite::StringSize(
909 0 : this->payment_url());
910 : }
911 :
912 : // optional bytes merchant_data = 7;
913 0 : if (has_merchant_data()) {
914 : total_size += 1 +
915 : ::google::protobuf::internal::WireFormatLite::BytesSize(
916 0 : this->merchant_data());
917 : }
918 :
919 : }
920 : // repeated .payments.Output outputs = 2;
921 0 : total_size += 1 * this->outputs_size();
922 0 : for (int i = 0; i < this->outputs_size(); i++) {
923 : total_size +=
924 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
925 0 : this->outputs(i));
926 : }
927 :
928 0 : if (!unknown_fields().empty()) {
929 : total_size +=
930 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
931 0 : unknown_fields());
932 : }
933 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
934 0 : _cached_size_ = total_size;
935 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
936 0 : return total_size;
937 : }
938 :
939 0 : void PaymentDetails::MergeFrom(const ::google::protobuf::Message& from) {
940 0 : GOOGLE_CHECK_NE(&from, this);
941 : const PaymentDetails* source =
942 : ::google::protobuf::internal::dynamic_cast_if_available<const PaymentDetails*>(
943 0 : &from);
944 0 : if (source == NULL) {
945 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
946 : } else {
947 0 : MergeFrom(*source);
948 : }
949 0 : }
950 :
951 44 : void PaymentDetails::MergeFrom(const PaymentDetails& from) {
952 44 : GOOGLE_CHECK_NE(&from, this);
953 44 : outputs_.MergeFrom(from.outputs_);
954 44 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
955 72 : if (from.has_network()) {
956 0 : set_network(from.network());
957 : }
958 72 : if (from.has_time()) {
959 36 : set_time(from.time());
960 : }
961 72 : if (from.has_expires()) {
962 0 : set_expires(from.expires());
963 : }
964 72 : if (from.has_memo()) {
965 36 : set_memo(from.memo());
966 : }
967 72 : if (from.has_payment_url()) {
968 0 : set_payment_url(from.payment_url());
969 : }
970 72 : if (from.has_merchant_data()) {
971 0 : set_merchant_data(from.merchant_data());
972 : }
973 : }
974 88 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
975 44 : }
976 :
977 0 : void PaymentDetails::CopyFrom(const ::google::protobuf::Message& from) {
978 0 : if (&from == this) return;
979 0 : Clear();
980 0 : MergeFrom(from);
981 : }
982 :
983 26 : void PaymentDetails::CopyFrom(const PaymentDetails& from) {
984 52 : if (&from == this) return;
985 26 : Clear();
986 26 : MergeFrom(from);
987 : }
988 :
989 11 : bool PaymentDetails::IsInitialized() const {
990 11 : if ((_has_bits_[0] & 0x00000004) != 0x00000004) return false;
991 :
992 33 : for (int i = 0; i < outputs_size(); i++) {
993 11 : if (!this->outputs(i).IsInitialized()) return false;
994 : }
995 : return true;
996 : }
997 :
998 0 : void PaymentDetails::Swap(PaymentDetails* other) {
999 0 : if (other != this) {
1000 0 : std::swap(network_, other->network_);
1001 0 : outputs_.Swap(&other->outputs_);
1002 0 : std::swap(time_, other->time_);
1003 0 : std::swap(expires_, other->expires_);
1004 0 : std::swap(memo_, other->memo_);
1005 0 : std::swap(payment_url_, other->payment_url_);
1006 0 : std::swap(merchant_data_, other->merchant_data_);
1007 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1008 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
1009 0 : std::swap(_cached_size_, other->_cached_size_);
1010 : }
1011 0 : }
1012 :
1013 0 : ::google::protobuf::Metadata PaymentDetails::GetMetadata() const {
1014 : protobuf_AssignDescriptorsOnce();
1015 : ::google::protobuf::Metadata metadata;
1016 0 : metadata.descriptor = PaymentDetails_descriptor_;
1017 0 : metadata.reflection = PaymentDetails_reflection_;
1018 0 : return metadata;
1019 : }
1020 :
1021 :
1022 : // ===================================================================
1023 :
1024 : ::std::string* PaymentRequest::_default_pki_type_ = NULL;
1025 : #ifndef _MSC_VER
1026 : const int PaymentRequest::kPaymentDetailsVersionFieldNumber;
1027 : const int PaymentRequest::kPkiTypeFieldNumber;
1028 : const int PaymentRequest::kPkiDataFieldNumber;
1029 : const int PaymentRequest::kSerializedPaymentDetailsFieldNumber;
1030 : const int PaymentRequest::kSignatureFieldNumber;
1031 : #endif // !_MSC_VER
1032 :
1033 32 : PaymentRequest::PaymentRequest()
1034 64 : : ::google::protobuf::Message() {
1035 32 : SharedCtor();
1036 32 : }
1037 :
1038 0 : void PaymentRequest::InitAsDefaultInstance() {
1039 0 : }
1040 :
1041 22 : PaymentRequest::PaymentRequest(const PaymentRequest& from)
1042 44 : : ::google::protobuf::Message() {
1043 22 : SharedCtor();
1044 22 : MergeFrom(from);
1045 22 : }
1046 :
1047 54 : void PaymentRequest::SharedCtor() {
1048 54 : _cached_size_ = 0;
1049 54 : payment_details_version_ = 1u;
1050 54 : pki_type_ = const_cast< ::std::string*>(_default_pki_type_);
1051 54 : pki_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1052 54 : serialized_payment_details_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1053 54 : signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1054 54 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1055 54 : }
1056 :
1057 109 : PaymentRequest::~PaymentRequest() {
1058 54 : SharedDtor();
1059 55 : }
1060 :
1061 54 : void PaymentRequest::SharedDtor() {
1062 54 : if (pki_type_ != _default_pki_type_) {
1063 82 : delete pki_type_;
1064 : }
1065 54 : if (pki_data_ != &::google::protobuf::internal::kEmptyString) {
1066 82 : delete pki_data_;
1067 : }
1068 54 : if (serialized_payment_details_ != &::google::protobuf::internal::kEmptyString) {
1069 82 : delete serialized_payment_details_;
1070 : }
1071 54 : if (signature_ != &::google::protobuf::internal::kEmptyString) {
1072 82 : delete signature_;
1073 : }
1074 : if (this != default_instance_) {
1075 : }
1076 54 : }
1077 :
1078 0 : void PaymentRequest::SetCachedSize(int size) const {
1079 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1080 0 : _cached_size_ = size;
1081 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1082 0 : }
1083 0 : const ::google::protobuf::Descriptor* PaymentRequest::descriptor() {
1084 : protobuf_AssignDescriptorsOnce();
1085 0 : return PaymentRequest_descriptor_;
1086 : }
1087 :
1088 0 : const PaymentRequest& PaymentRequest::default_instance() {
1089 0 : if (default_instance_ == NULL) protobuf_AddDesc_paymentrequest_2eproto();
1090 0 : return *default_instance_;
1091 : }
1092 :
1093 : PaymentRequest* PaymentRequest::default_instance_ = NULL;
1094 :
1095 0 : PaymentRequest* PaymentRequest::New() const {
1096 0 : return new PaymentRequest;
1097 : }
1098 :
1099 37 : void PaymentRequest::Clear() {
1100 37 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1101 10 : payment_details_version_ = 1u;
1102 20 : if (has_pki_type()) {
1103 10 : if (pki_type_ != _default_pki_type_) {
1104 10 : pki_type_->assign(*_default_pki_type_);
1105 : }
1106 : }
1107 20 : if (has_pki_data()) {
1108 10 : if (pki_data_ != &::google::protobuf::internal::kEmptyString) {
1109 10 : pki_data_->clear();
1110 : }
1111 : }
1112 20 : if (has_serialized_payment_details()) {
1113 10 : if (serialized_payment_details_ != &::google::protobuf::internal::kEmptyString) {
1114 10 : serialized_payment_details_->clear();
1115 : }
1116 : }
1117 20 : if (has_signature()) {
1118 10 : if (signature_ != &::google::protobuf::internal::kEmptyString) {
1119 10 : signature_->clear();
1120 : }
1121 : }
1122 : }
1123 37 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1124 37 : mutable_unknown_fields()->Clear();
1125 37 : }
1126 :
1127 11 : bool PaymentRequest::MergePartialFromCodedStream(
1128 : ::google::protobuf::io::CodedInputStream* input) {
1129 : #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1130 : ::google::protobuf::uint32 tag;
1131 22 : while ((tag = input->ReadTag()) != 0) {
1132 11 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1133 : // optional uint32 payment_details_version = 1 [default = 1];
1134 : case 1: {
1135 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1136 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_VARINT) {
1137 0 : DO_((::google::protobuf::internal::WireFormatLite::ReadPrimitive<
1138 : ::google::protobuf::uint32, ::google::protobuf::internal::WireFormatLite::TYPE_UINT32>(
1139 : input, &payment_details_version_)));
1140 0 : set_has_payment_details_version();
1141 : } else {
1142 : goto handle_uninterpreted;
1143 : }
1144 0 : if (input->ExpectTag(18)) goto parse_pki_type;
1145 : break;
1146 : }
1147 :
1148 : // optional string pki_type = 2 [default = "none"];
1149 : case 2: {
1150 11 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1151 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1152 : parse_pki_type:
1153 11 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1154 : input, this->mutable_pki_type()));
1155 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1156 22 : this->pki_type().data(), this->pki_type().length(),
1157 22 : ::google::protobuf::internal::WireFormat::PARSE);
1158 : } else {
1159 : goto handle_uninterpreted;
1160 : }
1161 11 : if (input->ExpectTag(26)) goto parse_pki_data;
1162 : break;
1163 : }
1164 :
1165 : // optional bytes pki_data = 3;
1166 : case 3: {
1167 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1168 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1169 : parse_pki_data:
1170 11 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1171 : input, this->mutable_pki_data()));
1172 : } else {
1173 : goto handle_uninterpreted;
1174 : }
1175 11 : if (input->ExpectTag(34)) goto parse_serialized_payment_details;
1176 : break;
1177 : }
1178 :
1179 : // required bytes serialized_payment_details = 4;
1180 : case 4: {
1181 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1182 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1183 : parse_serialized_payment_details:
1184 11 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1185 : input, this->mutable_serialized_payment_details()));
1186 : } else {
1187 : goto handle_uninterpreted;
1188 : }
1189 11 : if (input->ExpectTag(42)) goto parse_signature;
1190 : break;
1191 : }
1192 :
1193 : // optional bytes signature = 5;
1194 : case 5: {
1195 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1196 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1197 : parse_signature:
1198 11 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1199 : input, this->mutable_signature()));
1200 : } else {
1201 : goto handle_uninterpreted;
1202 : }
1203 11 : if (input->ExpectAtEnd()) return true;
1204 : break;
1205 : }
1206 :
1207 : default: {
1208 : handle_uninterpreted:
1209 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1210 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1211 : return true;
1212 : }
1213 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
1214 : input, tag, mutable_unknown_fields()));
1215 : break;
1216 : }
1217 : }
1218 : }
1219 : return true;
1220 : #undef DO_
1221 : }
1222 :
1223 0 : void PaymentRequest::SerializeWithCachedSizes(
1224 : ::google::protobuf::io::CodedOutputStream* output) const {
1225 : // optional uint32 payment_details_version = 1 [default = 1];
1226 0 : if (has_payment_details_version()) {
1227 0 : ::google::protobuf::internal::WireFormatLite::WriteUInt32(1, this->payment_details_version(), output);
1228 : }
1229 :
1230 : // optional string pki_type = 2 [default = "none"];
1231 0 : if (has_pki_type()) {
1232 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1233 0 : this->pki_type().data(), this->pki_type().length(),
1234 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
1235 : ::google::protobuf::internal::WireFormatLite::WriteString(
1236 0 : 2, this->pki_type(), output);
1237 : }
1238 :
1239 : // optional bytes pki_data = 3;
1240 0 : if (has_pki_data()) {
1241 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
1242 0 : 3, this->pki_data(), output);
1243 : }
1244 :
1245 : // required bytes serialized_payment_details = 4;
1246 0 : if (has_serialized_payment_details()) {
1247 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
1248 0 : 4, this->serialized_payment_details(), output);
1249 : }
1250 :
1251 : // optional bytes signature = 5;
1252 0 : if (has_signature()) {
1253 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
1254 0 : 5, this->signature(), output);
1255 : }
1256 :
1257 0 : if (!unknown_fields().empty()) {
1258 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1259 0 : unknown_fields(), output);
1260 : }
1261 0 : }
1262 :
1263 4 : ::google::protobuf::uint8* PaymentRequest::SerializeWithCachedSizesToArray(
1264 : ::google::protobuf::uint8* target) const {
1265 : // optional uint32 payment_details_version = 1 [default = 1];
1266 8 : if (has_payment_details_version()) {
1267 0 : target = ::google::protobuf::internal::WireFormatLite::WriteUInt32ToArray(1, this->payment_details_version(), target);
1268 : }
1269 :
1270 : // optional string pki_type = 2 [default = "none"];
1271 8 : if (has_pki_type()) {
1272 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1273 8 : this->pki_type().data(), this->pki_type().length(),
1274 8 : ::google::protobuf::internal::WireFormat::SERIALIZE);
1275 : target =
1276 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1277 8 : 2, this->pki_type(), target);
1278 : }
1279 :
1280 : // optional bytes pki_data = 3;
1281 8 : if (has_pki_data()) {
1282 : target =
1283 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1284 8 : 3, this->pki_data(), target);
1285 : }
1286 :
1287 : // required bytes serialized_payment_details = 4;
1288 8 : if (has_serialized_payment_details()) {
1289 : target =
1290 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1291 8 : 4, this->serialized_payment_details(), target);
1292 : }
1293 :
1294 : // optional bytes signature = 5;
1295 8 : if (has_signature()) {
1296 : target =
1297 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1298 8 : 5, this->signature(), target);
1299 : }
1300 :
1301 8 : if (!unknown_fields().empty()) {
1302 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1303 0 : unknown_fields(), target);
1304 : }
1305 4 : return target;
1306 : }
1307 :
1308 4 : int PaymentRequest::ByteSize() const {
1309 4 : int total_size = 0;
1310 :
1311 4 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1312 : // optional uint32 payment_details_version = 1 [default = 1];
1313 8 : if (has_payment_details_version()) {
1314 : total_size += 1 +
1315 : ::google::protobuf::internal::WireFormatLite::UInt32Size(
1316 0 : this->payment_details_version());
1317 : }
1318 :
1319 : // optional string pki_type = 2 [default = "none"];
1320 8 : if (has_pki_type()) {
1321 : total_size += 1 +
1322 : ::google::protobuf::internal::WireFormatLite::StringSize(
1323 4 : this->pki_type());
1324 : }
1325 :
1326 : // optional bytes pki_data = 3;
1327 8 : if (has_pki_data()) {
1328 : total_size += 1 +
1329 : ::google::protobuf::internal::WireFormatLite::BytesSize(
1330 4 : this->pki_data());
1331 : }
1332 :
1333 : // required bytes serialized_payment_details = 4;
1334 8 : if (has_serialized_payment_details()) {
1335 : total_size += 1 +
1336 : ::google::protobuf::internal::WireFormatLite::BytesSize(
1337 4 : this->serialized_payment_details());
1338 : }
1339 :
1340 : // optional bytes signature = 5;
1341 8 : if (has_signature()) {
1342 : total_size += 1 +
1343 : ::google::protobuf::internal::WireFormatLite::BytesSize(
1344 4 : this->signature());
1345 : }
1346 :
1347 : }
1348 8 : if (!unknown_fields().empty()) {
1349 : total_size +=
1350 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1351 0 : unknown_fields());
1352 : }
1353 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1354 4 : _cached_size_ = total_size;
1355 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1356 4 : return total_size;
1357 : }
1358 :
1359 0 : void PaymentRequest::MergeFrom(const ::google::protobuf::Message& from) {
1360 0 : GOOGLE_CHECK_NE(&from, this);
1361 : const PaymentRequest* source =
1362 : ::google::protobuf::internal::dynamic_cast_if_available<const PaymentRequest*>(
1363 0 : &from);
1364 0 : if (source == NULL) {
1365 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1366 : } else {
1367 0 : MergeFrom(*source);
1368 : }
1369 0 : }
1370 :
1371 48 : void PaymentRequest::MergeFrom(const PaymentRequest& from) {
1372 48 : GOOGLE_CHECK_NE(&from, this);
1373 48 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1374 80 : if (from.has_payment_details_version()) {
1375 0 : set_payment_details_version(from.payment_details_version());
1376 : }
1377 80 : if (from.has_pki_type()) {
1378 40 : set_pki_type(from.pki_type());
1379 : }
1380 80 : if (from.has_pki_data()) {
1381 40 : set_pki_data(from.pki_data());
1382 : }
1383 80 : if (from.has_serialized_payment_details()) {
1384 40 : set_serialized_payment_details(from.serialized_payment_details());
1385 : }
1386 80 : if (from.has_signature()) {
1387 40 : set_signature(from.signature());
1388 : }
1389 : }
1390 96 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1391 48 : }
1392 :
1393 0 : void PaymentRequest::CopyFrom(const ::google::protobuf::Message& from) {
1394 0 : if (&from == this) return;
1395 0 : Clear();
1396 0 : MergeFrom(from);
1397 : }
1398 :
1399 26 : void PaymentRequest::CopyFrom(const PaymentRequest& from) {
1400 52 : if (&from == this) return;
1401 26 : Clear();
1402 26 : MergeFrom(from);
1403 : }
1404 :
1405 38 : bool PaymentRequest::IsInitialized() const {
1406 38 : if ((_has_bits_[0] & 0x00000008) != 0x00000008) return false;
1407 :
1408 38 : return true;
1409 : }
1410 :
1411 0 : void PaymentRequest::Swap(PaymentRequest* other) {
1412 0 : if (other != this) {
1413 0 : std::swap(payment_details_version_, other->payment_details_version_);
1414 0 : std::swap(pki_type_, other->pki_type_);
1415 0 : std::swap(pki_data_, other->pki_data_);
1416 0 : std::swap(serialized_payment_details_, other->serialized_payment_details_);
1417 0 : std::swap(signature_, other->signature_);
1418 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1419 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
1420 0 : std::swap(_cached_size_, other->_cached_size_);
1421 : }
1422 0 : }
1423 :
1424 0 : ::google::protobuf::Metadata PaymentRequest::GetMetadata() const {
1425 : protobuf_AssignDescriptorsOnce();
1426 : ::google::protobuf::Metadata metadata;
1427 0 : metadata.descriptor = PaymentRequest_descriptor_;
1428 0 : metadata.reflection = PaymentRequest_reflection_;
1429 0 : return metadata;
1430 : }
1431 :
1432 :
1433 : // ===================================================================
1434 :
1435 : #ifndef _MSC_VER
1436 : const int X509Certificates::kCertificateFieldNumber;
1437 : #endif // !_MSC_VER
1438 :
1439 13 : X509Certificates::X509Certificates()
1440 26 : : ::google::protobuf::Message() {
1441 : SharedCtor();
1442 13 : }
1443 :
1444 0 : void X509Certificates::InitAsDefaultInstance() {
1445 0 : }
1446 :
1447 0 : X509Certificates::X509Certificates(const X509Certificates& from)
1448 0 : : ::google::protobuf::Message() {
1449 : SharedCtor();
1450 0 : MergeFrom(from);
1451 0 : }
1452 :
1453 0 : void X509Certificates::SharedCtor() {
1454 13 : _cached_size_ = 0;
1455 13 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1456 0 : }
1457 :
1458 27 : X509Certificates::~X509Certificates() {
1459 : SharedDtor();
1460 14 : }
1461 :
1462 0 : void X509Certificates::SharedDtor() {
1463 : if (this != default_instance_) {
1464 : }
1465 0 : }
1466 :
1467 0 : void X509Certificates::SetCachedSize(int size) const {
1468 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1469 0 : _cached_size_ = size;
1470 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1471 0 : }
1472 0 : const ::google::protobuf::Descriptor* X509Certificates::descriptor() {
1473 : protobuf_AssignDescriptorsOnce();
1474 0 : return X509Certificates_descriptor_;
1475 : }
1476 :
1477 0 : const X509Certificates& X509Certificates::default_instance() {
1478 0 : if (default_instance_ == NULL) protobuf_AddDesc_paymentrequest_2eproto();
1479 0 : return *default_instance_;
1480 : }
1481 :
1482 : X509Certificates* X509Certificates::default_instance_ = NULL;
1483 :
1484 0 : X509Certificates* X509Certificates::New() const {
1485 0 : return new X509Certificates;
1486 : }
1487 :
1488 12 : void X509Certificates::Clear() {
1489 12 : certificate_.Clear();
1490 12 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1491 12 : mutable_unknown_fields()->Clear();
1492 12 : }
1493 :
1494 12 : bool X509Certificates::MergePartialFromCodedStream(
1495 : ::google::protobuf::io::CodedInputStream* input) {
1496 : #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1497 : ::google::protobuf::uint32 tag;
1498 24 : while ((tag = input->ReadTag()) != 0) {
1499 12 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1500 : // repeated bytes certificate = 1;
1501 : case 1: {
1502 12 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1503 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1504 : parse_certificate:
1505 44 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1506 : input, this->add_certificate()));
1507 : } else {
1508 : goto handle_uninterpreted;
1509 : }
1510 44 : if (input->ExpectTag(10)) goto parse_certificate;
1511 12 : if (input->ExpectAtEnd()) return true;
1512 : break;
1513 : }
1514 :
1515 : default: {
1516 : handle_uninterpreted:
1517 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1518 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1519 : return true;
1520 : }
1521 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
1522 : input, tag, mutable_unknown_fields()));
1523 : break;
1524 : }
1525 : }
1526 : }
1527 : return true;
1528 : #undef DO_
1529 : }
1530 :
1531 0 : void X509Certificates::SerializeWithCachedSizes(
1532 : ::google::protobuf::io::CodedOutputStream* output) const {
1533 : // repeated bytes certificate = 1;
1534 0 : for (int i = 0; i < this->certificate_size(); i++) {
1535 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
1536 0 : 1, this->certificate(i), output);
1537 : }
1538 :
1539 0 : if (!unknown_fields().empty()) {
1540 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1541 0 : unknown_fields(), output);
1542 : }
1543 0 : }
1544 :
1545 0 : ::google::protobuf::uint8* X509Certificates::SerializeWithCachedSizesToArray(
1546 : ::google::protobuf::uint8* target) const {
1547 : // repeated bytes certificate = 1;
1548 0 : for (int i = 0; i < this->certificate_size(); i++) {
1549 : target = ::google::protobuf::internal::WireFormatLite::
1550 0 : WriteBytesToArray(1, this->certificate(i), target);
1551 : }
1552 :
1553 0 : if (!unknown_fields().empty()) {
1554 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1555 0 : unknown_fields(), target);
1556 : }
1557 0 : return target;
1558 : }
1559 :
1560 0 : int X509Certificates::ByteSize() const {
1561 0 : int total_size = 0;
1562 :
1563 : // repeated bytes certificate = 1;
1564 0 : total_size += 1 * this->certificate_size();
1565 0 : for (int i = 0; i < this->certificate_size(); i++) {
1566 : total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
1567 0 : this->certificate(i));
1568 : }
1569 :
1570 0 : if (!unknown_fields().empty()) {
1571 : total_size +=
1572 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1573 0 : unknown_fields());
1574 : }
1575 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1576 0 : _cached_size_ = total_size;
1577 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1578 0 : return total_size;
1579 : }
1580 :
1581 0 : void X509Certificates::MergeFrom(const ::google::protobuf::Message& from) {
1582 0 : GOOGLE_CHECK_NE(&from, this);
1583 : const X509Certificates* source =
1584 : ::google::protobuf::internal::dynamic_cast_if_available<const X509Certificates*>(
1585 0 : &from);
1586 0 : if (source == NULL) {
1587 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1588 : } else {
1589 0 : MergeFrom(*source);
1590 : }
1591 0 : }
1592 :
1593 0 : void X509Certificates::MergeFrom(const X509Certificates& from) {
1594 0 : GOOGLE_CHECK_NE(&from, this);
1595 0 : certificate_.MergeFrom(from.certificate_);
1596 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1597 0 : }
1598 :
1599 0 : void X509Certificates::CopyFrom(const ::google::protobuf::Message& from) {
1600 0 : if (&from == this) return;
1601 0 : Clear();
1602 0 : MergeFrom(from);
1603 : }
1604 :
1605 0 : void X509Certificates::CopyFrom(const X509Certificates& from) {
1606 0 : if (&from == this) return;
1607 0 : Clear();
1608 0 : MergeFrom(from);
1609 : }
1610 :
1611 12 : bool X509Certificates::IsInitialized() const {
1612 :
1613 12 : return true;
1614 : }
1615 :
1616 0 : void X509Certificates::Swap(X509Certificates* other) {
1617 0 : if (other != this) {
1618 0 : certificate_.Swap(&other->certificate_);
1619 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1620 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
1621 0 : std::swap(_cached_size_, other->_cached_size_);
1622 : }
1623 0 : }
1624 :
1625 0 : ::google::protobuf::Metadata X509Certificates::GetMetadata() const {
1626 : protobuf_AssignDescriptorsOnce();
1627 : ::google::protobuf::Metadata metadata;
1628 0 : metadata.descriptor = X509Certificates_descriptor_;
1629 0 : metadata.reflection = X509Certificates_reflection_;
1630 0 : return metadata;
1631 : }
1632 :
1633 :
1634 : // ===================================================================
1635 :
1636 : #ifndef _MSC_VER
1637 : const int Payment::kMerchantDataFieldNumber;
1638 : const int Payment::kTransactionsFieldNumber;
1639 : const int Payment::kRefundToFieldNumber;
1640 : const int Payment::kMemoFieldNumber;
1641 : #endif // !_MSC_VER
1642 :
1643 1 : Payment::Payment()
1644 3 : : ::google::protobuf::Message() {
1645 : SharedCtor();
1646 1 : }
1647 :
1648 0 : void Payment::InitAsDefaultInstance() {
1649 0 : }
1650 :
1651 0 : Payment::Payment(const Payment& from)
1652 0 : : ::google::protobuf::Message() {
1653 : SharedCtor();
1654 0 : MergeFrom(from);
1655 0 : }
1656 :
1657 0 : void Payment::SharedCtor() {
1658 1 : _cached_size_ = 0;
1659 1 : merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1660 1 : memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1661 1 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1662 0 : }
1663 :
1664 5 : Payment::~Payment() {
1665 1 : SharedDtor();
1666 2 : }
1667 :
1668 1 : void Payment::SharedDtor() {
1669 1 : if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
1670 0 : delete merchant_data_;
1671 : }
1672 1 : if (memo_ != &::google::protobuf::internal::kEmptyString) {
1673 0 : delete memo_;
1674 : }
1675 : if (this != default_instance_) {
1676 : }
1677 1 : }
1678 :
1679 0 : void Payment::SetCachedSize(int size) const {
1680 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1681 0 : _cached_size_ = size;
1682 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1683 0 : }
1684 0 : const ::google::protobuf::Descriptor* Payment::descriptor() {
1685 : protobuf_AssignDescriptorsOnce();
1686 0 : return Payment_descriptor_;
1687 : }
1688 :
1689 0 : const Payment& Payment::default_instance() {
1690 1 : if (default_instance_ == NULL) protobuf_AddDesc_paymentrequest_2eproto();
1691 1 : return *default_instance_;
1692 : }
1693 :
1694 : Payment* Payment::default_instance_ = NULL;
1695 :
1696 0 : Payment* Payment::New() const {
1697 0 : return new Payment;
1698 : }
1699 :
1700 0 : void Payment::Clear() {
1701 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1702 0 : if (has_merchant_data()) {
1703 0 : if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
1704 0 : merchant_data_->clear();
1705 : }
1706 : }
1707 0 : if (has_memo()) {
1708 0 : if (memo_ != &::google::protobuf::internal::kEmptyString) {
1709 0 : memo_->clear();
1710 : }
1711 : }
1712 : }
1713 0 : transactions_.Clear();
1714 0 : refund_to_.Clear();
1715 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
1716 0 : mutable_unknown_fields()->Clear();
1717 0 : }
1718 :
1719 0 : bool Payment::MergePartialFromCodedStream(
1720 : ::google::protobuf::io::CodedInputStream* input) {
1721 : #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
1722 : ::google::protobuf::uint32 tag;
1723 0 : while ((tag = input->ReadTag()) != 0) {
1724 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
1725 : // optional bytes merchant_data = 1;
1726 : case 1: {
1727 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1728 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1729 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1730 : input, this->mutable_merchant_data()));
1731 : } else {
1732 : goto handle_uninterpreted;
1733 : }
1734 0 : if (input->ExpectTag(18)) goto parse_transactions;
1735 : break;
1736 : }
1737 :
1738 : // repeated bytes transactions = 2;
1739 : case 2: {
1740 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1741 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1742 : parse_transactions:
1743 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadBytes(
1744 : input, this->add_transactions()));
1745 : } else {
1746 : goto handle_uninterpreted;
1747 : }
1748 0 : if (input->ExpectTag(18)) goto parse_transactions;
1749 0 : if (input->ExpectTag(26)) goto parse_refund_to;
1750 : break;
1751 : }
1752 :
1753 : // repeated .payments.Output refund_to = 3;
1754 : case 3: {
1755 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1756 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1757 : parse_refund_to:
1758 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
1759 : input, add_refund_to()));
1760 : } else {
1761 : goto handle_uninterpreted;
1762 : }
1763 0 : if (input->ExpectTag(26)) goto parse_refund_to;
1764 0 : if (input->ExpectTag(34)) goto parse_memo;
1765 : break;
1766 : }
1767 :
1768 : // optional string memo = 4;
1769 : case 4: {
1770 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1771 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
1772 : parse_memo:
1773 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
1774 : input, this->mutable_memo()));
1775 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1776 0 : this->memo().data(), this->memo().length(),
1777 0 : ::google::protobuf::internal::WireFormat::PARSE);
1778 : } else {
1779 : goto handle_uninterpreted;
1780 : }
1781 0 : if (input->ExpectAtEnd()) return true;
1782 : break;
1783 : }
1784 :
1785 : default: {
1786 : handle_uninterpreted:
1787 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
1788 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
1789 : return true;
1790 : }
1791 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
1792 : input, tag, mutable_unknown_fields()));
1793 : break;
1794 : }
1795 : }
1796 : }
1797 : return true;
1798 : #undef DO_
1799 : }
1800 :
1801 0 : void Payment::SerializeWithCachedSizes(
1802 : ::google::protobuf::io::CodedOutputStream* output) const {
1803 : // optional bytes merchant_data = 1;
1804 0 : if (has_merchant_data()) {
1805 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
1806 0 : 1, this->merchant_data(), output);
1807 : }
1808 :
1809 : // repeated bytes transactions = 2;
1810 0 : for (int i = 0; i < this->transactions_size(); i++) {
1811 : ::google::protobuf::internal::WireFormatLite::WriteBytes(
1812 0 : 2, this->transactions(i), output);
1813 : }
1814 :
1815 : // repeated .payments.Output refund_to = 3;
1816 0 : for (int i = 0; i < this->refund_to_size(); i++) {
1817 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
1818 0 : 3, this->refund_to(i), output);
1819 : }
1820 :
1821 : // optional string memo = 4;
1822 0 : if (has_memo()) {
1823 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1824 0 : this->memo().data(), this->memo().length(),
1825 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
1826 : ::google::protobuf::internal::WireFormatLite::WriteString(
1827 0 : 4, this->memo(), output);
1828 : }
1829 :
1830 0 : if (!unknown_fields().empty()) {
1831 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
1832 0 : unknown_fields(), output);
1833 : }
1834 0 : }
1835 :
1836 0 : ::google::protobuf::uint8* Payment::SerializeWithCachedSizesToArray(
1837 : ::google::protobuf::uint8* target) const {
1838 : // optional bytes merchant_data = 1;
1839 0 : if (has_merchant_data()) {
1840 : target =
1841 : ::google::protobuf::internal::WireFormatLite::WriteBytesToArray(
1842 0 : 1, this->merchant_data(), target);
1843 : }
1844 :
1845 : // repeated bytes transactions = 2;
1846 0 : for (int i = 0; i < this->transactions_size(); i++) {
1847 : target = ::google::protobuf::internal::WireFormatLite::
1848 0 : WriteBytesToArray(2, this->transactions(i), target);
1849 : }
1850 :
1851 : // repeated .payments.Output refund_to = 3;
1852 0 : for (int i = 0; i < this->refund_to_size(); i++) {
1853 : target = ::google::protobuf::internal::WireFormatLite::
1854 : WriteMessageNoVirtualToArray(
1855 0 : 3, this->refund_to(i), target);
1856 : }
1857 :
1858 : // optional string memo = 4;
1859 0 : if (has_memo()) {
1860 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
1861 0 : this->memo().data(), this->memo().length(),
1862 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
1863 : target =
1864 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
1865 0 : 4, this->memo(), target);
1866 : }
1867 :
1868 0 : if (!unknown_fields().empty()) {
1869 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
1870 0 : unknown_fields(), target);
1871 : }
1872 0 : return target;
1873 : }
1874 :
1875 0 : int Payment::ByteSize() const {
1876 0 : int total_size = 0;
1877 :
1878 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1879 : // optional bytes merchant_data = 1;
1880 0 : if (has_merchant_data()) {
1881 : total_size += 1 +
1882 : ::google::protobuf::internal::WireFormatLite::BytesSize(
1883 0 : this->merchant_data());
1884 : }
1885 :
1886 : // optional string memo = 4;
1887 0 : if (has_memo()) {
1888 : total_size += 1 +
1889 : ::google::protobuf::internal::WireFormatLite::StringSize(
1890 0 : this->memo());
1891 : }
1892 :
1893 : }
1894 : // repeated bytes transactions = 2;
1895 0 : total_size += 1 * this->transactions_size();
1896 0 : for (int i = 0; i < this->transactions_size(); i++) {
1897 : total_size += ::google::protobuf::internal::WireFormatLite::BytesSize(
1898 0 : this->transactions(i));
1899 : }
1900 :
1901 : // repeated .payments.Output refund_to = 3;
1902 0 : total_size += 1 * this->refund_to_size();
1903 0 : for (int i = 0; i < this->refund_to_size(); i++) {
1904 : total_size +=
1905 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
1906 0 : this->refund_to(i));
1907 : }
1908 :
1909 0 : if (!unknown_fields().empty()) {
1910 : total_size +=
1911 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
1912 0 : unknown_fields());
1913 : }
1914 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
1915 0 : _cached_size_ = total_size;
1916 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
1917 0 : return total_size;
1918 : }
1919 :
1920 0 : void Payment::MergeFrom(const ::google::protobuf::Message& from) {
1921 0 : GOOGLE_CHECK_NE(&from, this);
1922 : const Payment* source =
1923 : ::google::protobuf::internal::dynamic_cast_if_available<const Payment*>(
1924 0 : &from);
1925 0 : if (source == NULL) {
1926 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
1927 : } else {
1928 0 : MergeFrom(*source);
1929 : }
1930 0 : }
1931 :
1932 0 : void Payment::MergeFrom(const Payment& from) {
1933 0 : GOOGLE_CHECK_NE(&from, this);
1934 0 : transactions_.MergeFrom(from.transactions_);
1935 0 : refund_to_.MergeFrom(from.refund_to_);
1936 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
1937 0 : if (from.has_merchant_data()) {
1938 0 : set_merchant_data(from.merchant_data());
1939 : }
1940 0 : if (from.has_memo()) {
1941 0 : set_memo(from.memo());
1942 : }
1943 : }
1944 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
1945 0 : }
1946 :
1947 0 : void Payment::CopyFrom(const ::google::protobuf::Message& from) {
1948 0 : if (&from == this) return;
1949 0 : Clear();
1950 0 : MergeFrom(from);
1951 : }
1952 :
1953 0 : void Payment::CopyFrom(const Payment& from) {
1954 0 : if (&from == this) return;
1955 0 : Clear();
1956 0 : MergeFrom(from);
1957 : }
1958 :
1959 0 : bool Payment::IsInitialized() const {
1960 :
1961 0 : for (int i = 0; i < refund_to_size(); i++) {
1962 0 : if (!this->refund_to(i).IsInitialized()) return false;
1963 : }
1964 : return true;
1965 : }
1966 :
1967 0 : void Payment::Swap(Payment* other) {
1968 0 : if (other != this) {
1969 0 : std::swap(merchant_data_, other->merchant_data_);
1970 0 : transactions_.Swap(&other->transactions_);
1971 0 : refund_to_.Swap(&other->refund_to_);
1972 0 : std::swap(memo_, other->memo_);
1973 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
1974 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
1975 0 : std::swap(_cached_size_, other->_cached_size_);
1976 : }
1977 0 : }
1978 :
1979 0 : ::google::protobuf::Metadata Payment::GetMetadata() const {
1980 : protobuf_AssignDescriptorsOnce();
1981 : ::google::protobuf::Metadata metadata;
1982 0 : metadata.descriptor = Payment_descriptor_;
1983 0 : metadata.reflection = Payment_reflection_;
1984 0 : return metadata;
1985 : }
1986 :
1987 :
1988 : // ===================================================================
1989 :
1990 : #ifndef _MSC_VER
1991 : const int PaymentACK::kPaymentFieldNumber;
1992 : const int PaymentACK::kMemoFieldNumber;
1993 : #endif // !_MSC_VER
1994 :
1995 1 : PaymentACK::PaymentACK()
1996 2 : : ::google::protobuf::Message() {
1997 : SharedCtor();
1998 1 : }
1999 :
2000 1 : void PaymentACK::InitAsDefaultInstance() {
2001 1 : payment_ = const_cast< ::payments::Payment*>(&::payments::Payment::default_instance());
2002 1 : }
2003 :
2004 0 : PaymentACK::PaymentACK(const PaymentACK& from)
2005 0 : : ::google::protobuf::Message() {
2006 : SharedCtor();
2007 0 : MergeFrom(from);
2008 0 : }
2009 :
2010 0 : void PaymentACK::SharedCtor() {
2011 1 : _cached_size_ = 0;
2012 1 : payment_ = NULL;
2013 1 : memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
2014 1 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2015 0 : }
2016 :
2017 3 : PaymentACK::~PaymentACK() {
2018 1 : SharedDtor();
2019 2 : }
2020 :
2021 1 : void PaymentACK::SharedDtor() {
2022 1 : if (memo_ != &::google::protobuf::internal::kEmptyString) {
2023 0 : delete memo_;
2024 : }
2025 1 : if (this != default_instance_) {
2026 0 : delete payment_;
2027 : }
2028 1 : }
2029 :
2030 0 : void PaymentACK::SetCachedSize(int size) const {
2031 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2032 0 : _cached_size_ = size;
2033 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2034 0 : }
2035 0 : const ::google::protobuf::Descriptor* PaymentACK::descriptor() {
2036 : protobuf_AssignDescriptorsOnce();
2037 0 : return PaymentACK_descriptor_;
2038 : }
2039 :
2040 0 : const PaymentACK& PaymentACK::default_instance() {
2041 0 : if (default_instance_ == NULL) protobuf_AddDesc_paymentrequest_2eproto();
2042 0 : return *default_instance_;
2043 : }
2044 :
2045 : PaymentACK* PaymentACK::default_instance_ = NULL;
2046 :
2047 0 : PaymentACK* PaymentACK::New() const {
2048 0 : return new PaymentACK;
2049 : }
2050 :
2051 0 : void PaymentACK::Clear() {
2052 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2053 0 : if (has_payment()) {
2054 0 : if (payment_ != NULL) payment_->::payments::Payment::Clear();
2055 : }
2056 0 : if (has_memo()) {
2057 0 : if (memo_ != &::google::protobuf::internal::kEmptyString) {
2058 0 : memo_->clear();
2059 : }
2060 : }
2061 : }
2062 0 : ::memset(_has_bits_, 0, sizeof(_has_bits_));
2063 0 : mutable_unknown_fields()->Clear();
2064 0 : }
2065 :
2066 0 : bool PaymentACK::MergePartialFromCodedStream(
2067 : ::google::protobuf::io::CodedInputStream* input) {
2068 : #define DO_(EXPRESSION) if (!(EXPRESSION)) return false
2069 : ::google::protobuf::uint32 tag;
2070 0 : while ((tag = input->ReadTag()) != 0) {
2071 0 : switch (::google::protobuf::internal::WireFormatLite::GetTagFieldNumber(tag)) {
2072 : // required .payments.Payment payment = 1;
2073 : case 1: {
2074 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2075 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2076 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadMessageNoVirtual(
2077 : input, mutable_payment()));
2078 : } else {
2079 : goto handle_uninterpreted;
2080 : }
2081 0 : if (input->ExpectTag(18)) goto parse_memo;
2082 : break;
2083 : }
2084 :
2085 : // optional string memo = 2;
2086 : case 2: {
2087 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2088 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_LENGTH_DELIMITED) {
2089 : parse_memo:
2090 0 : DO_(::google::protobuf::internal::WireFormatLite::ReadString(
2091 : input, this->mutable_memo()));
2092 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2093 0 : this->memo().data(), this->memo().length(),
2094 0 : ::google::protobuf::internal::WireFormat::PARSE);
2095 : } else {
2096 : goto handle_uninterpreted;
2097 : }
2098 0 : if (input->ExpectAtEnd()) return true;
2099 : break;
2100 : }
2101 :
2102 : default: {
2103 : handle_uninterpreted:
2104 0 : if (::google::protobuf::internal::WireFormatLite::GetTagWireType(tag) ==
2105 : ::google::protobuf::internal::WireFormatLite::WIRETYPE_END_GROUP) {
2106 : return true;
2107 : }
2108 0 : DO_(::google::protobuf::internal::WireFormat::SkipField(
2109 : input, tag, mutable_unknown_fields()));
2110 : break;
2111 : }
2112 : }
2113 : }
2114 : return true;
2115 : #undef DO_
2116 : }
2117 :
2118 0 : void PaymentACK::SerializeWithCachedSizes(
2119 : ::google::protobuf::io::CodedOutputStream* output) const {
2120 : // required .payments.Payment payment = 1;
2121 0 : if (has_payment()) {
2122 : ::google::protobuf::internal::WireFormatLite::WriteMessageMaybeToArray(
2123 0 : 1, this->payment(), output);
2124 : }
2125 :
2126 : // optional string memo = 2;
2127 0 : if (has_memo()) {
2128 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2129 0 : this->memo().data(), this->memo().length(),
2130 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
2131 : ::google::protobuf::internal::WireFormatLite::WriteString(
2132 0 : 2, this->memo(), output);
2133 : }
2134 :
2135 0 : if (!unknown_fields().empty()) {
2136 : ::google::protobuf::internal::WireFormat::SerializeUnknownFields(
2137 0 : unknown_fields(), output);
2138 : }
2139 0 : }
2140 :
2141 0 : ::google::protobuf::uint8* PaymentACK::SerializeWithCachedSizesToArray(
2142 : ::google::protobuf::uint8* target) const {
2143 : // required .payments.Payment payment = 1;
2144 0 : if (has_payment()) {
2145 : target = ::google::protobuf::internal::WireFormatLite::
2146 : WriteMessageNoVirtualToArray(
2147 0 : 1, this->payment(), target);
2148 : }
2149 :
2150 : // optional string memo = 2;
2151 0 : if (has_memo()) {
2152 : ::google::protobuf::internal::WireFormat::VerifyUTF8String(
2153 0 : this->memo().data(), this->memo().length(),
2154 0 : ::google::protobuf::internal::WireFormat::SERIALIZE);
2155 : target =
2156 : ::google::protobuf::internal::WireFormatLite::WriteStringToArray(
2157 0 : 2, this->memo(), target);
2158 : }
2159 :
2160 0 : if (!unknown_fields().empty()) {
2161 : target = ::google::protobuf::internal::WireFormat::SerializeUnknownFieldsToArray(
2162 0 : unknown_fields(), target);
2163 : }
2164 0 : return target;
2165 : }
2166 :
2167 0 : int PaymentACK::ByteSize() const {
2168 0 : int total_size = 0;
2169 :
2170 0 : if (_has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2171 : // required .payments.Payment payment = 1;
2172 0 : if (has_payment()) {
2173 : total_size += 1 +
2174 : ::google::protobuf::internal::WireFormatLite::MessageSizeNoVirtual(
2175 0 : this->payment());
2176 : }
2177 :
2178 : // optional string memo = 2;
2179 0 : if (has_memo()) {
2180 : total_size += 1 +
2181 : ::google::protobuf::internal::WireFormatLite::StringSize(
2182 0 : this->memo());
2183 : }
2184 :
2185 : }
2186 0 : if (!unknown_fields().empty()) {
2187 : total_size +=
2188 : ::google::protobuf::internal::WireFormat::ComputeUnknownFieldsSize(
2189 0 : unknown_fields());
2190 : }
2191 : GOOGLE_SAFE_CONCURRENT_WRITES_BEGIN();
2192 0 : _cached_size_ = total_size;
2193 : GOOGLE_SAFE_CONCURRENT_WRITES_END();
2194 0 : return total_size;
2195 : }
2196 :
2197 0 : void PaymentACK::MergeFrom(const ::google::protobuf::Message& from) {
2198 0 : GOOGLE_CHECK_NE(&from, this);
2199 : const PaymentACK* source =
2200 : ::google::protobuf::internal::dynamic_cast_if_available<const PaymentACK*>(
2201 0 : &from);
2202 0 : if (source == NULL) {
2203 0 : ::google::protobuf::internal::ReflectionOps::Merge(from, this);
2204 : } else {
2205 0 : MergeFrom(*source);
2206 : }
2207 0 : }
2208 :
2209 0 : void PaymentACK::MergeFrom(const PaymentACK& from) {
2210 0 : GOOGLE_CHECK_NE(&from, this);
2211 0 : if (from._has_bits_[0 / 32] & (0xffu << (0 % 32))) {
2212 0 : if (from.has_payment()) {
2213 0 : mutable_payment()->::payments::Payment::MergeFrom(from.payment());
2214 : }
2215 0 : if (from.has_memo()) {
2216 0 : set_memo(from.memo());
2217 : }
2218 : }
2219 0 : mutable_unknown_fields()->MergeFrom(from.unknown_fields());
2220 0 : }
2221 :
2222 0 : void PaymentACK::CopyFrom(const ::google::protobuf::Message& from) {
2223 0 : if (&from == this) return;
2224 0 : Clear();
2225 0 : MergeFrom(from);
2226 : }
2227 :
2228 0 : void PaymentACK::CopyFrom(const PaymentACK& from) {
2229 0 : if (&from == this) return;
2230 0 : Clear();
2231 0 : MergeFrom(from);
2232 : }
2233 :
2234 0 : bool PaymentACK::IsInitialized() const {
2235 0 : if ((_has_bits_[0] & 0x00000001) != 0x00000001) return false;
2236 :
2237 0 : if (has_payment()) {
2238 0 : if (!this->payment().IsInitialized()) return false;
2239 : }
2240 : return true;
2241 : }
2242 :
2243 0 : void PaymentACK::Swap(PaymentACK* other) {
2244 0 : if (other != this) {
2245 0 : std::swap(payment_, other->payment_);
2246 0 : std::swap(memo_, other->memo_);
2247 0 : std::swap(_has_bits_[0], other->_has_bits_[0]);
2248 0 : _unknown_fields_.Swap(&other->_unknown_fields_);
2249 0 : std::swap(_cached_size_, other->_cached_size_);
2250 : }
2251 0 : }
2252 :
2253 0 : ::google::protobuf::Metadata PaymentACK::GetMetadata() const {
2254 : protobuf_AssignDescriptorsOnce();
2255 : ::google::protobuf::Metadata metadata;
2256 0 : metadata.descriptor = PaymentACK_descriptor_;
2257 0 : metadata.reflection = PaymentACK_reflection_;
2258 0 : return metadata;
2259 : }
2260 :
2261 :
2262 : // @@protoc_insertion_point(namespace_scope)
2263 :
2264 2 : } // namespace payments
2265 :
2266 : // @@protoc_insertion_point(global_scope)
|