Fabcoin Core  0.16.2
P2P Digital Currency
paymentrequest.pb.h
Go to the documentation of this file.
1 // Generated by the protocol buffer compiler. DO NOT EDIT!
2 // source: paymentrequest.proto
3 
4 #ifndef PROTOBUF_paymentrequest_2eproto__INCLUDED
5 #define PROTOBUF_paymentrequest_2eproto__INCLUDED
6 
7 #include <string>
8 
9 #include <google/protobuf/stubs/common.h>
10 
11 #if GOOGLE_PROTOBUF_VERSION < 2006000
12 #error This file was generated by a newer version of protoc which is
13 #error incompatible with your Protocol Buffer headers. Please update
14 #error your headers.
15 #endif
16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION
17 #error This file was generated by an older version of protoc which is
18 #error incompatible with your Protocol Buffer headers. Please
19 #error regenerate this file with a newer version of protoc.
20 #endif
21 
22 #include <google/protobuf/generated_message_util.h>
23 #include <google/protobuf/message.h>
24 #include <google/protobuf/repeated_field.h>
25 #include <google/protobuf/extension_set.h>
26 #include <google/protobuf/unknown_field_set.h>
27 // @@protoc_insertion_point(includes)
28 
29 namespace payments {
30 
31 // Internal implementation detail -- do not call these.
35 
36 class Output;
37 class PaymentDetails;
38 class PaymentRequest;
39 class X509Certificates;
40 class Payment;
41 class PaymentACK;
42 
43 // ===================================================================
44 
45 class Output : public ::google::protobuf::Message {
46  public:
47  Output();
48  virtual ~Output();
49 
50  Output(const Output& from);
51 
52  inline Output& operator=(const Output& from) {
53  CopyFrom(from);
54  return *this;
55  }
56 
57  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
58  return _unknown_fields_;
59  }
60 
61  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
62  return &_unknown_fields_;
63  }
64 
65  static const ::google::protobuf::Descriptor* descriptor();
66  static const Output& default_instance();
67 
68  void Swap(Output* other);
69 
70  // implements Message ----------------------------------------------
71 
72  Output* New() const;
73  void CopyFrom(const ::google::protobuf::Message& from);
74  void MergeFrom(const ::google::protobuf::Message& from);
75  void CopyFrom(const Output& from);
76  void MergeFrom(const Output& from);
77  void Clear();
78  bool IsInitialized() const;
79 
80  int ByteSize() const;
82  ::google::protobuf::io::CodedInputStream* input);
84  ::google::protobuf::io::CodedOutputStream* output) const;
85  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
86  int GetCachedSize() const { return _cached_size_; }
87  private:
88  void SharedCtor();
89  void SharedDtor();
90  void SetCachedSize(int size) const;
91  public:
92  ::google::protobuf::Metadata GetMetadata() const;
93 
94  // nested types ----------------------------------------------------
95 
96  // accessors -------------------------------------------------------
97 
98  // optional uint64 amount = 1 [default = 0];
99  inline bool has_amount() const;
100  inline void clear_amount();
101  static const int kAmountFieldNumber = 1;
102  inline ::google::protobuf::uint64 amount() const;
103  inline void set_amount(::google::protobuf::uint64 value);
104 
105  // required bytes script = 2;
106  inline bool has_script() const;
107  inline void clear_script();
108  static const int kScriptFieldNumber = 2;
109  inline const ::std::string& script() const;
110  inline void set_script(const ::std::string& value);
111  inline void set_script(const char* value);
112  inline void set_script(const void* value, size_t size);
113  inline ::std::string* mutable_script();
114  inline ::std::string* release_script();
115  inline void set_allocated_script(::std::string* script);
116 
117  // @@protoc_insertion_point(class_scope:payments.Output)
118  private:
119  inline void set_has_amount();
120  inline void clear_has_amount();
121  inline void set_has_script();
122  inline void clear_has_script();
123 
124  ::google::protobuf::UnknownFieldSet _unknown_fields_;
125 
126  ::google::protobuf::uint32 _has_bits_[1];
127  mutable int _cached_size_;
128  ::google::protobuf::uint64 amount_;
129  ::std::string* script_;
133 
134  void InitAsDefaultInstance();
136 };
137 // -------------------------------------------------------------------
138 
139 class PaymentDetails : public ::google::protobuf::Message {
140  public:
141  PaymentDetails();
142  virtual ~PaymentDetails();
143 
144  PaymentDetails(const PaymentDetails& from);
145 
146  inline PaymentDetails& operator=(const PaymentDetails& from) {
147  CopyFrom(from);
148  return *this;
149  }
150 
151  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
152  return _unknown_fields_;
153  }
154 
155  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
156  return &_unknown_fields_;
157  }
158 
159  static const ::google::protobuf::Descriptor* descriptor();
160  static const PaymentDetails& default_instance();
161 
162  void Swap(PaymentDetails* other);
163 
164  // implements Message ----------------------------------------------
165 
166  PaymentDetails* New() const;
167  void CopyFrom(const ::google::protobuf::Message& from);
168  void MergeFrom(const ::google::protobuf::Message& from);
169  void CopyFrom(const PaymentDetails& from);
170  void MergeFrom(const PaymentDetails& from);
171  void Clear();
172  bool IsInitialized() const;
173 
174  int ByteSize() const;
176  ::google::protobuf::io::CodedInputStream* input);
178  ::google::protobuf::io::CodedOutputStream* output) const;
179  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
180  int GetCachedSize() const { return _cached_size_; }
181  private:
182  void SharedCtor();
183  void SharedDtor();
184  void SetCachedSize(int size) const;
185  public:
186  ::google::protobuf::Metadata GetMetadata() const;
187 
188  // nested types ----------------------------------------------------
189 
190  // accessors -------------------------------------------------------
191 
192  // optional string network = 1 [default = "main"];
193  inline bool has_network() const;
194  inline void clear_network();
195  static const int kNetworkFieldNumber = 1;
196  inline const ::std::string& network() const;
197  inline void set_network(const ::std::string& value);
198  inline void set_network(const char* value);
199  inline void set_network(const char* value, size_t size);
200  inline ::std::string* mutable_network();
201  inline ::std::string* release_network();
202  inline void set_allocated_network(::std::string* network);
203 
204  // repeated .payments.Output outputs = 2;
205  inline int outputs_size() const;
206  inline void clear_outputs();
207  static const int kOutputsFieldNumber = 2;
208  inline const ::payments::Output& outputs(int index) const;
209  inline ::payments::Output* mutable_outputs(int index);
210  inline ::payments::Output* add_outputs();
211  inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
212  outputs() const;
213  inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
214  mutable_outputs();
215 
216  // required uint64 time = 3;
217  inline bool has_time() const;
218  inline void clear_time();
219  static const int kTimeFieldNumber = 3;
220  inline ::google::protobuf::uint64 time() const;
221  inline void set_time(::google::protobuf::uint64 value);
222 
223  // optional uint64 expires = 4;
224  inline bool has_expires() const;
225  inline void clear_expires();
226  static const int kExpiresFieldNumber = 4;
227  inline ::google::protobuf::uint64 expires() const;
228  inline void set_expires(::google::protobuf::uint64 value);
229 
230  // optional string memo = 5;
231  inline bool has_memo() const;
232  inline void clear_memo();
233  static const int kMemoFieldNumber = 5;
234  inline const ::std::string& memo() const;
235  inline void set_memo(const ::std::string& value);
236  inline void set_memo(const char* value);
237  inline void set_memo(const char* value, size_t size);
238  inline ::std::string* mutable_memo();
239  inline ::std::string* release_memo();
240  inline void set_allocated_memo(::std::string* memo);
241 
242  // optional string payment_url = 6;
243  inline bool has_payment_url() const;
244  inline void clear_payment_url();
245  static const int kPaymentUrlFieldNumber = 6;
246  inline const ::std::string& payment_url() const;
247  inline void set_payment_url(const ::std::string& value);
248  inline void set_payment_url(const char* value);
249  inline void set_payment_url(const char* value, size_t size);
250  inline ::std::string* mutable_payment_url();
251  inline ::std::string* release_payment_url();
252  inline void set_allocated_payment_url(::std::string* payment_url);
253 
254  // optional bytes merchant_data = 7;
255  inline bool has_merchant_data() const;
256  inline void clear_merchant_data();
257  static const int kMerchantDataFieldNumber = 7;
258  inline const ::std::string& merchant_data() const;
259  inline void set_merchant_data(const ::std::string& value);
260  inline void set_merchant_data(const char* value);
261  inline void set_merchant_data(const void* value, size_t size);
262  inline ::std::string* mutable_merchant_data();
263  inline ::std::string* release_merchant_data();
264  inline void set_allocated_merchant_data(::std::string* merchant_data);
265 
266  // @@protoc_insertion_point(class_scope:payments.PaymentDetails)
267  private:
268  inline void set_has_network();
269  inline void clear_has_network();
270  inline void set_has_time();
271  inline void clear_has_time();
272  inline void set_has_expires();
273  inline void clear_has_expires();
274  inline void set_has_memo();
275  inline void clear_has_memo();
276  inline void set_has_payment_url();
277  inline void clear_has_payment_url();
278  inline void set_has_merchant_data();
279  inline void clear_has_merchant_data();
280 
281  ::google::protobuf::UnknownFieldSet _unknown_fields_;
282 
283  ::google::protobuf::uint32 _has_bits_[1];
284  mutable int _cached_size_;
285  static ::std::string* _default_network_;
286  ::std::string* network_;
287  ::google::protobuf::RepeatedPtrField< ::payments::Output > outputs_;
288  ::google::protobuf::uint64 time_;
289  ::google::protobuf::uint64 expires_;
290  ::std::string* memo_;
291  ::std::string* payment_url_;
292  ::std::string* merchant_data_;
296 
297  void InitAsDefaultInstance();
299 };
300 // -------------------------------------------------------------------
301 
302 class PaymentRequest : public ::google::protobuf::Message {
303  public:
304  PaymentRequest();
305  virtual ~PaymentRequest();
306 
307  PaymentRequest(const PaymentRequest& from);
308 
309  inline PaymentRequest& operator=(const PaymentRequest& from) {
310  CopyFrom(from);
311  return *this;
312  }
313 
314  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
315  return _unknown_fields_;
316  }
317 
318  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
319  return &_unknown_fields_;
320  }
321 
322  static const ::google::protobuf::Descriptor* descriptor();
323  static const PaymentRequest& default_instance();
324 
325  void Swap(PaymentRequest* other);
326 
327  // implements Message ----------------------------------------------
328 
329  PaymentRequest* New() const;
330  void CopyFrom(const ::google::protobuf::Message& from);
331  void MergeFrom(const ::google::protobuf::Message& from);
332  void CopyFrom(const PaymentRequest& from);
333  void MergeFrom(const PaymentRequest& from);
334  void Clear();
335  bool IsInitialized() const;
336 
337  int ByteSize() const;
339  ::google::protobuf::io::CodedInputStream* input);
341  ::google::protobuf::io::CodedOutputStream* output) const;
342  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
343  int GetCachedSize() const { return _cached_size_; }
344  private:
345  void SharedCtor();
346  void SharedDtor();
347  void SetCachedSize(int size) const;
348  public:
349  ::google::protobuf::Metadata GetMetadata() const;
350 
351  // nested types ----------------------------------------------------
352 
353  // accessors -------------------------------------------------------
354 
355  // optional uint32 payment_details_version = 1 [default = 1];
356  inline bool has_payment_details_version() const;
357  inline void clear_payment_details_version();
358  static const int kPaymentDetailsVersionFieldNumber = 1;
359  inline ::google::protobuf::uint32 payment_details_version() const;
360  inline void set_payment_details_version(::google::protobuf::uint32 value);
361 
362  // optional string pki_type = 2 [default = "none"];
363  inline bool has_pki_type() const;
364  inline void clear_pki_type();
365  static const int kPkiTypeFieldNumber = 2;
366  inline const ::std::string& pki_type() const;
367  inline void set_pki_type(const ::std::string& value);
368  inline void set_pki_type(const char* value);
369  inline void set_pki_type(const char* value, size_t size);
370  inline ::std::string* mutable_pki_type();
371  inline ::std::string* release_pki_type();
372  inline void set_allocated_pki_type(::std::string* pki_type);
373 
374  // optional bytes pki_data = 3;
375  inline bool has_pki_data() const;
376  inline void clear_pki_data();
377  static const int kPkiDataFieldNumber = 3;
378  inline const ::std::string& pki_data() const;
379  inline void set_pki_data(const ::std::string& value);
380  inline void set_pki_data(const char* value);
381  inline void set_pki_data(const void* value, size_t size);
382  inline ::std::string* mutable_pki_data();
383  inline ::std::string* release_pki_data();
384  inline void set_allocated_pki_data(::std::string* pki_data);
385 
386  // required bytes serialized_payment_details = 4;
387  inline bool has_serialized_payment_details() const;
388  inline void clear_serialized_payment_details();
389  static const int kSerializedPaymentDetailsFieldNumber = 4;
390  inline const ::std::string& serialized_payment_details() const;
391  inline void set_serialized_payment_details(const ::std::string& value);
392  inline void set_serialized_payment_details(const char* value);
393  inline void set_serialized_payment_details(const void* value, size_t size);
394  inline ::std::string* mutable_serialized_payment_details();
395  inline ::std::string* release_serialized_payment_details();
396  inline void set_allocated_serialized_payment_details(::std::string* serialized_payment_details);
397 
398  // optional bytes signature = 5;
399  inline bool has_signature() const;
400  inline void clear_signature();
401  static const int kSignatureFieldNumber = 5;
402  inline const ::std::string& signature() const;
403  inline void set_signature(const ::std::string& value);
404  inline void set_signature(const char* value);
405  inline void set_signature(const void* value, size_t size);
406  inline ::std::string* mutable_signature();
407  inline ::std::string* release_signature();
408  inline void set_allocated_signature(::std::string* signature);
409 
410  // @@protoc_insertion_point(class_scope:payments.PaymentRequest)
411  private:
412  inline void set_has_payment_details_version();
413  inline void clear_has_payment_details_version();
414  inline void set_has_pki_type();
415  inline void clear_has_pki_type();
416  inline void set_has_pki_data();
417  inline void clear_has_pki_data();
418  inline void set_has_serialized_payment_details();
419  inline void clear_has_serialized_payment_details();
420  inline void set_has_signature();
421  inline void clear_has_signature();
422 
423  ::google::protobuf::UnknownFieldSet _unknown_fields_;
424 
425  ::google::protobuf::uint32 _has_bits_[1];
426  mutable int _cached_size_;
427  static ::std::string* _default_pki_type_;
428  ::std::string* pki_type_;
429  ::std::string* pki_data_;
431  ::std::string* signature_;
432  ::google::protobuf::uint32 payment_details_version_;
436 
437  void InitAsDefaultInstance();
439 };
440 // -------------------------------------------------------------------
441 
442 class X509Certificates : public ::google::protobuf::Message {
443  public:
445  virtual ~X509Certificates();
446 
447  X509Certificates(const X509Certificates& from);
448 
450  CopyFrom(from);
451  return *this;
452  }
453 
454  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
455  return _unknown_fields_;
456  }
457 
458  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
459  return &_unknown_fields_;
460  }
461 
462  static const ::google::protobuf::Descriptor* descriptor();
463  static const X509Certificates& default_instance();
464 
465  void Swap(X509Certificates* other);
466 
467  // implements Message ----------------------------------------------
468 
469  X509Certificates* New() const;
470  void CopyFrom(const ::google::protobuf::Message& from);
471  void MergeFrom(const ::google::protobuf::Message& from);
472  void CopyFrom(const X509Certificates& from);
473  void MergeFrom(const X509Certificates& from);
474  void Clear();
475  bool IsInitialized() const;
476 
477  int ByteSize() const;
479  ::google::protobuf::io::CodedInputStream* input);
481  ::google::protobuf::io::CodedOutputStream* output) const;
482  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
483  int GetCachedSize() const { return _cached_size_; }
484  private:
485  void SharedCtor();
486  void SharedDtor();
487  void SetCachedSize(int size) const;
488  public:
489  ::google::protobuf::Metadata GetMetadata() const;
490 
491  // nested types ----------------------------------------------------
492 
493  // accessors -------------------------------------------------------
494 
495  // repeated bytes certificate = 1;
496  inline int certificate_size() const;
497  inline void clear_certificate();
498  static const int kCertificateFieldNumber = 1;
499  inline const ::std::string& certificate(int index) const;
500  inline ::std::string* mutable_certificate(int index);
501  inline void set_certificate(int index, const ::std::string& value);
502  inline void set_certificate(int index, const char* value);
503  inline void set_certificate(int index, const void* value, size_t size);
504  inline ::std::string* add_certificate();
505  inline void add_certificate(const ::std::string& value);
506  inline void add_certificate(const char* value);
507  inline void add_certificate(const void* value, size_t size);
508  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& certificate() const;
509  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_certificate();
510 
511  // @@protoc_insertion_point(class_scope:payments.X509Certificates)
512  private:
513 
514  ::google::protobuf::UnknownFieldSet _unknown_fields_;
515 
516  ::google::protobuf::uint32 _has_bits_[1];
517  mutable int _cached_size_;
518  ::google::protobuf::RepeatedPtrField< ::std::string> certificate_;
522 
523  void InitAsDefaultInstance();
525 };
526 // -------------------------------------------------------------------
527 
528 class Payment : public ::google::protobuf::Message {
529  public:
530  Payment();
531  virtual ~Payment();
532 
533  Payment(const Payment& from);
534 
535  inline Payment& operator=(const Payment& from) {
536  CopyFrom(from);
537  return *this;
538  }
539 
540  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
541  return _unknown_fields_;
542  }
543 
544  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
545  return &_unknown_fields_;
546  }
547 
548  static const ::google::protobuf::Descriptor* descriptor();
549  static const Payment& default_instance();
550 
551  void Swap(Payment* other);
552 
553  // implements Message ----------------------------------------------
554 
555  Payment* New() const;
556  void CopyFrom(const ::google::protobuf::Message& from);
557  void MergeFrom(const ::google::protobuf::Message& from);
558  void CopyFrom(const Payment& from);
559  void MergeFrom(const Payment& from);
560  void Clear();
561  bool IsInitialized() const;
562 
563  int ByteSize() const;
565  ::google::protobuf::io::CodedInputStream* input);
567  ::google::protobuf::io::CodedOutputStream* output) const;
568  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
569  int GetCachedSize() const { return _cached_size_; }
570  private:
571  void SharedCtor();
572  void SharedDtor();
573  void SetCachedSize(int size) const;
574  public:
575  ::google::protobuf::Metadata GetMetadata() const;
576 
577  // nested types ----------------------------------------------------
578 
579  // accessors -------------------------------------------------------
580 
581  // optional bytes merchant_data = 1;
582  inline bool has_merchant_data() const;
583  inline void clear_merchant_data();
584  static const int kMerchantDataFieldNumber = 1;
585  inline const ::std::string& merchant_data() const;
586  inline void set_merchant_data(const ::std::string& value);
587  inline void set_merchant_data(const char* value);
588  inline void set_merchant_data(const void* value, size_t size);
589  inline ::std::string* mutable_merchant_data();
590  inline ::std::string* release_merchant_data();
591  inline void set_allocated_merchant_data(::std::string* merchant_data);
592 
593  // repeated bytes transactions = 2;
594  inline int transactions_size() const;
595  inline void clear_transactions();
596  static const int kTransactionsFieldNumber = 2;
597  inline const ::std::string& transactions(int index) const;
598  inline ::std::string* mutable_transactions(int index);
599  inline void set_transactions(int index, const ::std::string& value);
600  inline void set_transactions(int index, const char* value);
601  inline void set_transactions(int index, const void* value, size_t size);
602  inline ::std::string* add_transactions();
603  inline void add_transactions(const ::std::string& value);
604  inline void add_transactions(const char* value);
605  inline void add_transactions(const void* value, size_t size);
606  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& transactions() const;
607  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_transactions();
608 
609  // repeated .payments.Output refund_to = 3;
610  inline int refund_to_size() const;
611  inline void clear_refund_to();
612  static const int kRefundToFieldNumber = 3;
613  inline const ::payments::Output& refund_to(int index) const;
614  inline ::payments::Output* mutable_refund_to(int index);
615  inline ::payments::Output* add_refund_to();
616  inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
617  refund_to() const;
618  inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
619  mutable_refund_to();
620 
621  // optional string memo = 4;
622  inline bool has_memo() const;
623  inline void clear_memo();
624  static const int kMemoFieldNumber = 4;
625  inline const ::std::string& memo() const;
626  inline void set_memo(const ::std::string& value);
627  inline void set_memo(const char* value);
628  inline void set_memo(const char* value, size_t size);
629  inline ::std::string* mutable_memo();
630  inline ::std::string* release_memo();
631  inline void set_allocated_memo(::std::string* memo);
632 
633  // @@protoc_insertion_point(class_scope:payments.Payment)
634  private:
635  inline void set_has_merchant_data();
636  inline void clear_has_merchant_data();
637  inline void set_has_memo();
638  inline void clear_has_memo();
639 
640  ::google::protobuf::UnknownFieldSet _unknown_fields_;
641 
642  ::google::protobuf::uint32 _has_bits_[1];
643  mutable int _cached_size_;
644  ::std::string* merchant_data_;
645  ::google::protobuf::RepeatedPtrField< ::std::string> transactions_;
646  ::google::protobuf::RepeatedPtrField< ::payments::Output > refund_to_;
647  ::std::string* memo_;
651 
652  void InitAsDefaultInstance();
654 };
655 // -------------------------------------------------------------------
656 
657 class PaymentACK : public ::google::protobuf::Message {
658  public:
659  PaymentACK();
660  virtual ~PaymentACK();
661 
662  PaymentACK(const PaymentACK& from);
663 
664  inline PaymentACK& operator=(const PaymentACK& from) {
665  CopyFrom(from);
666  return *this;
667  }
668 
669  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
670  return _unknown_fields_;
671  }
672 
673  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
674  return &_unknown_fields_;
675  }
676 
677  static const ::google::protobuf::Descriptor* descriptor();
678  static const PaymentACK& default_instance();
679 
680  void Swap(PaymentACK* other);
681 
682  // implements Message ----------------------------------------------
683 
684  PaymentACK* New() const;
685  void CopyFrom(const ::google::protobuf::Message& from);
686  void MergeFrom(const ::google::protobuf::Message& from);
687  void CopyFrom(const PaymentACK& from);
688  void MergeFrom(const PaymentACK& from);
689  void Clear();
690  bool IsInitialized() const;
691 
692  int ByteSize() const;
694  ::google::protobuf::io::CodedInputStream* input);
696  ::google::protobuf::io::CodedOutputStream* output) const;
697  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
698  int GetCachedSize() const { return _cached_size_; }
699  private:
700  void SharedCtor();
701  void SharedDtor();
702  void SetCachedSize(int size) const;
703  public:
704  ::google::protobuf::Metadata GetMetadata() const;
705 
706  // nested types ----------------------------------------------------
707 
708  // accessors -------------------------------------------------------
709 
710  // required .payments.Payment payment = 1;
711  inline bool has_payment() const;
712  inline void clear_payment();
713  static const int kPaymentFieldNumber = 1;
714  inline const ::payments::Payment& payment() const;
715  inline ::payments::Payment* mutable_payment();
716  inline ::payments::Payment* release_payment();
717  inline void set_allocated_payment(::payments::Payment* payment);
718 
719  // optional string memo = 2;
720  inline bool has_memo() const;
721  inline void clear_memo();
722  static const int kMemoFieldNumber = 2;
723  inline const ::std::string& memo() const;
724  inline void set_memo(const ::std::string& value);
725  inline void set_memo(const char* value);
726  inline void set_memo(const char* value, size_t size);
727  inline ::std::string* mutable_memo();
728  inline ::std::string* release_memo();
729  inline void set_allocated_memo(::std::string* memo);
730 
731  // @@protoc_insertion_point(class_scope:payments.PaymentACK)
732  private:
733  inline void set_has_payment();
734  inline void clear_has_payment();
735  inline void set_has_memo();
736  inline void clear_has_memo();
737 
738  ::google::protobuf::UnknownFieldSet _unknown_fields_;
739 
740  ::google::protobuf::uint32 _has_bits_[1];
741  mutable int _cached_size_;
743  ::std::string* memo_;
747 
748  void InitAsDefaultInstance();
750 };
751 // ===================================================================
752 
753 
754 // ===================================================================
755 
756 // Output
757 
758 // optional uint64 amount = 1 [default = 0];
759 inline bool Output::has_amount() const {
760  return (_has_bits_[0] & 0x00000001u) != 0;
761 }
762 inline void Output::set_has_amount() {
763  _has_bits_[0] |= 0x00000001u;
764 }
766  _has_bits_[0] &= ~0x00000001u;
767 }
768 inline void Output::clear_amount() {
769  amount_ = GOOGLE_ULONGLONG(0);
771 }
772 inline ::google::protobuf::uint64 Output::amount() const {
773  // @@protoc_insertion_point(field_get:payments.Output.amount)
774  return amount_;
775 }
776 inline void Output::set_amount(::google::protobuf::uint64 value) {
777  set_has_amount();
778  amount_ = value;
779  // @@protoc_insertion_point(field_set:payments.Output.amount)
780 }
781 
782 // required bytes script = 2;
783 inline bool Output::has_script() const {
784  return (_has_bits_[0] & 0x00000002u) != 0;
785 }
786 inline void Output::set_has_script() {
787  _has_bits_[0] |= 0x00000002u;
788 }
790  _has_bits_[0] &= ~0x00000002u;
791 }
792 inline void Output::clear_script() {
793  if (script_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
794  script_->clear();
795  }
797 }
798 inline const ::std::string& Output::script() const {
799  // @@protoc_insertion_point(field_get:payments.Output.script)
800  return *script_;
801 }
802 inline void Output::set_script(const ::std::string& value) {
803  set_has_script();
804  if (script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
805  script_ = new ::std::string;
806  }
807  script_->assign(value);
808  // @@protoc_insertion_point(field_set:payments.Output.script)
809 }
810 inline void Output::set_script(const char* value) {
811  set_has_script();
812  if (script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
813  script_ = new ::std::string;
814  }
815  script_->assign(value);
816  // @@protoc_insertion_point(field_set_char:payments.Output.script)
817 }
818 inline void Output::set_script(const void* value, size_t size) {
819  set_has_script();
820  if (script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
821  script_ = new ::std::string;
822  }
823  script_->assign(reinterpret_cast<const char*>(value), size);
824  // @@protoc_insertion_point(field_set_pointer:payments.Output.script)
825 }
826 inline ::std::string* Output::mutable_script() {
827  set_has_script();
828  if (script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
829  script_ = new ::std::string;
830  }
831  // @@protoc_insertion_point(field_mutable:payments.Output.script)
832  return script_;
833 }
834 inline ::std::string* Output::release_script() {
836  if (script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
837  return NULL;
838  } else {
839  ::std::string* temp = script_;
840  script_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
841  return temp;
842  }
843 }
844 inline void Output::set_allocated_script(::std::string* script) {
845  if (script_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
846  delete script_;
847  }
848  if (script) {
849  set_has_script();
850  script_ = script;
851  } else {
853  script_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
854  }
855  // @@protoc_insertion_point(field_set_allocated:payments.Output.script)
856 }
857 
858 // -------------------------------------------------------------------
859 
860 // PaymentDetails
861 
862 // optional string network = 1 [default = "main"];
863 inline bool PaymentDetails::has_network() const {
864  return (_has_bits_[0] & 0x00000001u) != 0;
865 }
867  _has_bits_[0] |= 0x00000001u;
868 }
870  _has_bits_[0] &= ~0x00000001u;
871 }
873  if (network_ != _default_network_) {
874  network_->assign(*_default_network_);
875  }
876  clear_has_network();
877 }
878 inline const ::std::string& PaymentDetails::network() const {
879  // @@protoc_insertion_point(field_get:payments.PaymentDetails.network)
880  return *network_;
881 }
882 inline void PaymentDetails::set_network(const ::std::string& value) {
883  set_has_network();
884  if (network_ == _default_network_) {
885  network_ = new ::std::string;
886  }
887  network_->assign(value);
888  // @@protoc_insertion_point(field_set:payments.PaymentDetails.network)
889 }
890 inline void PaymentDetails::set_network(const char* value) {
891  set_has_network();
892  if (network_ == _default_network_) {
893  network_ = new ::std::string;
894  }
895  network_->assign(value);
896  // @@protoc_insertion_point(field_set_char:payments.PaymentDetails.network)
897 }
898 inline void PaymentDetails::set_network(const char* value, size_t size) {
899  set_has_network();
900  if (network_ == _default_network_) {
901  network_ = new ::std::string;
902  }
903  network_->assign(reinterpret_cast<const char*>(value), size);
904  // @@protoc_insertion_point(field_set_pointer:payments.PaymentDetails.network)
905 }
906 inline ::std::string* PaymentDetails::mutable_network() {
907  set_has_network();
908  if (network_ == _default_network_) {
909  network_ = new ::std::string(*_default_network_);
910  }
911  // @@protoc_insertion_point(field_mutable:payments.PaymentDetails.network)
912  return network_;
913 }
914 inline ::std::string* PaymentDetails::release_network() {
915  clear_has_network();
916  if (network_ == _default_network_) {
917  return NULL;
918  } else {
919  ::std::string* temp = network_;
920  network_ = const_cast< ::std::string*>(_default_network_);
921  return temp;
922  }
923 }
924 inline void PaymentDetails::set_allocated_network(::std::string* network) {
925  if (network_ != _default_network_) {
926  delete network_;
927  }
928  if (network) {
929  set_has_network();
930  network_ = network;
931  } else {
932  clear_has_network();
933  network_ = const_cast< ::std::string*>(_default_network_);
934  }
935  // @@protoc_insertion_point(field_set_allocated:payments.PaymentDetails.network)
936 }
937 
938 // repeated .payments.Output outputs = 2;
939 inline int PaymentDetails::outputs_size() const {
940  return outputs_.size();
941 }
943  outputs_.Clear();
944 }
945 inline const ::payments::Output& PaymentDetails::outputs(int index) const {
946  // @@protoc_insertion_point(field_get:payments.PaymentDetails.outputs)
947  return outputs_.Get(index);
948 }
949 inline ::payments::Output* PaymentDetails::mutable_outputs(int index) {
950  // @@protoc_insertion_point(field_mutable:payments.PaymentDetails.outputs)
951  return outputs_.Mutable(index);
952 }
953 inline ::payments::Output* PaymentDetails::add_outputs() {
954  // @@protoc_insertion_point(field_add:payments.PaymentDetails.outputs)
955  return outputs_.Add();
956 }
957 inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
959  // @@protoc_insertion_point(field_list:payments.PaymentDetails.outputs)
960  return outputs_;
961 }
962 inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
964  // @@protoc_insertion_point(field_mutable_list:payments.PaymentDetails.outputs)
965  return &outputs_;
966 }
967 
968 // required uint64 time = 3;
969 inline bool PaymentDetails::has_time() const {
970  return (_has_bits_[0] & 0x00000004u) != 0;
971 }
973  _has_bits_[0] |= 0x00000004u;
974 }
976  _has_bits_[0] &= ~0x00000004u;
977 }
979  time_ = GOOGLE_ULONGLONG(0);
980  clear_has_time();
981 }
982 inline ::google::protobuf::uint64 PaymentDetails::time() const {
983  // @@protoc_insertion_point(field_get:payments.PaymentDetails.time)
984  return time_;
985 }
986 inline void PaymentDetails::set_time(::google::protobuf::uint64 value) {
987  set_has_time();
988  time_ = value;
989  // @@protoc_insertion_point(field_set:payments.PaymentDetails.time)
990 }
991 
992 // optional uint64 expires = 4;
993 inline bool PaymentDetails::has_expires() const {
994  return (_has_bits_[0] & 0x00000008u) != 0;
995 }
997  _has_bits_[0] |= 0x00000008u;
998 }
1000  _has_bits_[0] &= ~0x00000008u;
1001 }
1003  expires_ = GOOGLE_ULONGLONG(0);
1004  clear_has_expires();
1005 }
1006 inline ::google::protobuf::uint64 PaymentDetails::expires() const {
1007  // @@protoc_insertion_point(field_get:payments.PaymentDetails.expires)
1008  return expires_;
1009 }
1010 inline void PaymentDetails::set_expires(::google::protobuf::uint64 value) {
1011  set_has_expires();
1012  expires_ = value;
1013  // @@protoc_insertion_point(field_set:payments.PaymentDetails.expires)
1014 }
1015 
1016 // optional string memo = 5;
1017 inline bool PaymentDetails::has_memo() const {
1018  return (_has_bits_[0] & 0x00000010u) != 0;
1019 }
1021  _has_bits_[0] |= 0x00000010u;
1022 }
1024  _has_bits_[0] &= ~0x00000010u;
1025 }
1027  if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1028  memo_->clear();
1029  }
1030  clear_has_memo();
1031 }
1032 inline const ::std::string& PaymentDetails::memo() const {
1033  // @@protoc_insertion_point(field_get:payments.PaymentDetails.memo)
1034  return *memo_;
1035 }
1036 inline void PaymentDetails::set_memo(const ::std::string& value) {
1037  set_has_memo();
1038  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1039  memo_ = new ::std::string;
1040  }
1041  memo_->assign(value);
1042  // @@protoc_insertion_point(field_set:payments.PaymentDetails.memo)
1043 }
1044 inline void PaymentDetails::set_memo(const char* value) {
1045  set_has_memo();
1046  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1047  memo_ = new ::std::string;
1048  }
1049  memo_->assign(value);
1050  // @@protoc_insertion_point(field_set_char:payments.PaymentDetails.memo)
1051 }
1052 inline void PaymentDetails::set_memo(const char* value, size_t size) {
1053  set_has_memo();
1054  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1055  memo_ = new ::std::string;
1056  }
1057  memo_->assign(reinterpret_cast<const char*>(value), size);
1058  // @@protoc_insertion_point(field_set_pointer:payments.PaymentDetails.memo)
1059 }
1060 inline ::std::string* PaymentDetails::mutable_memo() {
1061  set_has_memo();
1062  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1063  memo_ = new ::std::string;
1064  }
1065  // @@protoc_insertion_point(field_mutable:payments.PaymentDetails.memo)
1066  return memo_;
1067 }
1068 inline ::std::string* PaymentDetails::release_memo() {
1069  clear_has_memo();
1070  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1071  return NULL;
1072  } else {
1073  ::std::string* temp = memo_;
1074  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1075  return temp;
1076  }
1077 }
1078 inline void PaymentDetails::set_allocated_memo(::std::string* memo) {
1079  if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1080  delete memo_;
1081  }
1082  if (memo) {
1083  set_has_memo();
1084  memo_ = memo;
1085  } else {
1086  clear_has_memo();
1087  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1088  }
1089  // @@protoc_insertion_point(field_set_allocated:payments.PaymentDetails.memo)
1090 }
1091 
1092 // optional string payment_url = 6;
1093 inline bool PaymentDetails::has_payment_url() const {
1094  return (_has_bits_[0] & 0x00000020u) != 0;
1095 }
1097  _has_bits_[0] |= 0x00000020u;
1098 }
1100  _has_bits_[0] &= ~0x00000020u;
1101 }
1103  if (payment_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1104  payment_url_->clear();
1105  }
1106  clear_has_payment_url();
1107 }
1108 inline const ::std::string& PaymentDetails::payment_url() const {
1109  // @@protoc_insertion_point(field_get:payments.PaymentDetails.payment_url)
1110  return *payment_url_;
1111 }
1112 inline void PaymentDetails::set_payment_url(const ::std::string& value) {
1113  set_has_payment_url();
1114  if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1115  payment_url_ = new ::std::string;
1116  }
1117  payment_url_->assign(value);
1118  // @@protoc_insertion_point(field_set:payments.PaymentDetails.payment_url)
1119 }
1120 inline void PaymentDetails::set_payment_url(const char* value) {
1121  set_has_payment_url();
1122  if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1123  payment_url_ = new ::std::string;
1124  }
1125  payment_url_->assign(value);
1126  // @@protoc_insertion_point(field_set_char:payments.PaymentDetails.payment_url)
1127 }
1128 inline void PaymentDetails::set_payment_url(const char* value, size_t size) {
1129  set_has_payment_url();
1130  if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1131  payment_url_ = new ::std::string;
1132  }
1133  payment_url_->assign(reinterpret_cast<const char*>(value), size);
1134  // @@protoc_insertion_point(field_set_pointer:payments.PaymentDetails.payment_url)
1135 }
1136 inline ::std::string* PaymentDetails::mutable_payment_url() {
1137  set_has_payment_url();
1138  if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1139  payment_url_ = new ::std::string;
1140  }
1141  // @@protoc_insertion_point(field_mutable:payments.PaymentDetails.payment_url)
1142  return payment_url_;
1143 }
1144 inline ::std::string* PaymentDetails::release_payment_url() {
1145  clear_has_payment_url();
1146  if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1147  return NULL;
1148  } else {
1149  ::std::string* temp = payment_url_;
1150  payment_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1151  return temp;
1152  }
1153 }
1154 inline void PaymentDetails::set_allocated_payment_url(::std::string* payment_url) {
1155  if (payment_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1156  delete payment_url_;
1157  }
1158  if (payment_url) {
1159  set_has_payment_url();
1160  payment_url_ = payment_url;
1161  } else {
1162  clear_has_payment_url();
1163  payment_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1164  }
1165  // @@protoc_insertion_point(field_set_allocated:payments.PaymentDetails.payment_url)
1166 }
1167 
1168 // optional bytes merchant_data = 7;
1170  return (_has_bits_[0] & 0x00000040u) != 0;
1171 }
1173  _has_bits_[0] |= 0x00000040u;
1174 }
1176  _has_bits_[0] &= ~0x00000040u;
1177 }
1179  if (merchant_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1180  merchant_data_->clear();
1181  }
1182  clear_has_merchant_data();
1183 }
1184 inline const ::std::string& PaymentDetails::merchant_data() const {
1185  // @@protoc_insertion_point(field_get:payments.PaymentDetails.merchant_data)
1186  return *merchant_data_;
1187 }
1188 inline void PaymentDetails::set_merchant_data(const ::std::string& value) {
1189  set_has_merchant_data();
1190  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1191  merchant_data_ = new ::std::string;
1192  }
1193  merchant_data_->assign(value);
1194  // @@protoc_insertion_point(field_set:payments.PaymentDetails.merchant_data)
1195 }
1196 inline void PaymentDetails::set_merchant_data(const char* value) {
1197  set_has_merchant_data();
1198  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1199  merchant_data_ = new ::std::string;
1200  }
1201  merchant_data_->assign(value);
1202  // @@protoc_insertion_point(field_set_char:payments.PaymentDetails.merchant_data)
1203 }
1204 inline void PaymentDetails::set_merchant_data(const void* value, size_t size) {
1205  set_has_merchant_data();
1206  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1207  merchant_data_ = new ::std::string;
1208  }
1209  merchant_data_->assign(reinterpret_cast<const char*>(value), size);
1210  // @@protoc_insertion_point(field_set_pointer:payments.PaymentDetails.merchant_data)
1211 }
1212 inline ::std::string* PaymentDetails::mutable_merchant_data() {
1213  set_has_merchant_data();
1214  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1215  merchant_data_ = new ::std::string;
1216  }
1217  // @@protoc_insertion_point(field_mutable:payments.PaymentDetails.merchant_data)
1218  return merchant_data_;
1219 }
1220 inline ::std::string* PaymentDetails::release_merchant_data() {
1221  clear_has_merchant_data();
1222  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1223  return NULL;
1224  } else {
1225  ::std::string* temp = merchant_data_;
1226  merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1227  return temp;
1228  }
1229 }
1230 inline void PaymentDetails::set_allocated_merchant_data(::std::string* merchant_data) {
1231  if (merchant_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1232  delete merchant_data_;
1233  }
1234  if (merchant_data) {
1235  set_has_merchant_data();
1236  merchant_data_ = merchant_data;
1237  } else {
1238  clear_has_merchant_data();
1239  merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1240  }
1241  // @@protoc_insertion_point(field_set_allocated:payments.PaymentDetails.merchant_data)
1242 }
1243 
1244 // -------------------------------------------------------------------
1245 
1246 // PaymentRequest
1247 
1248 // optional uint32 payment_details_version = 1 [default = 1];
1250  return (_has_bits_[0] & 0x00000001u) != 0;
1251 }
1253  _has_bits_[0] |= 0x00000001u;
1254 }
1256  _has_bits_[0] &= ~0x00000001u;
1257 }
1259  payment_details_version_ = 1u;
1260  clear_has_payment_details_version();
1261 }
1262 inline ::google::protobuf::uint32 PaymentRequest::payment_details_version() const {
1263  // @@protoc_insertion_point(field_get:payments.PaymentRequest.payment_details_version)
1264  return payment_details_version_;
1265 }
1266 inline void PaymentRequest::set_payment_details_version(::google::protobuf::uint32 value) {
1267  set_has_payment_details_version();
1268  payment_details_version_ = value;
1269  // @@protoc_insertion_point(field_set:payments.PaymentRequest.payment_details_version)
1270 }
1271 
1272 // optional string pki_type = 2 [default = "none"];
1273 inline bool PaymentRequest::has_pki_type() const {
1274  return (_has_bits_[0] & 0x00000002u) != 0;
1275 }
1277  _has_bits_[0] |= 0x00000002u;
1278 }
1280  _has_bits_[0] &= ~0x00000002u;
1281 }
1283  if (pki_type_ != _default_pki_type_) {
1284  pki_type_->assign(*_default_pki_type_);
1285  }
1286  clear_has_pki_type();
1287 }
1288 inline const ::std::string& PaymentRequest::pki_type() const {
1289  // @@protoc_insertion_point(field_get:payments.PaymentRequest.pki_type)
1290  return *pki_type_;
1291 }
1292 inline void PaymentRequest::set_pki_type(const ::std::string& value) {
1293  set_has_pki_type();
1294  if (pki_type_ == _default_pki_type_) {
1295  pki_type_ = new ::std::string;
1296  }
1297  pki_type_->assign(value);
1298  // @@protoc_insertion_point(field_set:payments.PaymentRequest.pki_type)
1299 }
1300 inline void PaymentRequest::set_pki_type(const char* value) {
1301  set_has_pki_type();
1302  if (pki_type_ == _default_pki_type_) {
1303  pki_type_ = new ::std::string;
1304  }
1305  pki_type_->assign(value);
1306  // @@protoc_insertion_point(field_set_char:payments.PaymentRequest.pki_type)
1307 }
1308 inline void PaymentRequest::set_pki_type(const char* value, size_t size) {
1309  set_has_pki_type();
1310  if (pki_type_ == _default_pki_type_) {
1311  pki_type_ = new ::std::string;
1312  }
1313  pki_type_->assign(reinterpret_cast<const char*>(value), size);
1314  // @@protoc_insertion_point(field_set_pointer:payments.PaymentRequest.pki_type)
1315 }
1316 inline ::std::string* PaymentRequest::mutable_pki_type() {
1317  set_has_pki_type();
1318  if (pki_type_ == _default_pki_type_) {
1319  pki_type_ = new ::std::string(*_default_pki_type_);
1320  }
1321  // @@protoc_insertion_point(field_mutable:payments.PaymentRequest.pki_type)
1322  return pki_type_;
1323 }
1324 inline ::std::string* PaymentRequest::release_pki_type() {
1325  clear_has_pki_type();
1326  if (pki_type_ == _default_pki_type_) {
1327  return NULL;
1328  } else {
1329  ::std::string* temp = pki_type_;
1330  pki_type_ = const_cast< ::std::string*>(_default_pki_type_);
1331  return temp;
1332  }
1333 }
1334 inline void PaymentRequest::set_allocated_pki_type(::std::string* pki_type) {
1335  if (pki_type_ != _default_pki_type_) {
1336  delete pki_type_;
1337  }
1338  if (pki_type) {
1339  set_has_pki_type();
1340  pki_type_ = pki_type;
1341  } else {
1342  clear_has_pki_type();
1343  pki_type_ = const_cast< ::std::string*>(_default_pki_type_);
1344  }
1345  // @@protoc_insertion_point(field_set_allocated:payments.PaymentRequest.pki_type)
1346 }
1347 
1348 // optional bytes pki_data = 3;
1349 inline bool PaymentRequest::has_pki_data() const {
1350  return (_has_bits_[0] & 0x00000004u) != 0;
1351 }
1353  _has_bits_[0] |= 0x00000004u;
1354 }
1356  _has_bits_[0] &= ~0x00000004u;
1357 }
1359  if (pki_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1360  pki_data_->clear();
1361  }
1362  clear_has_pki_data();
1363 }
1364 inline const ::std::string& PaymentRequest::pki_data() const {
1365  // @@protoc_insertion_point(field_get:payments.PaymentRequest.pki_data)
1366  return *pki_data_;
1367 }
1368 inline void PaymentRequest::set_pki_data(const ::std::string& value) {
1369  set_has_pki_data();
1370  if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1371  pki_data_ = new ::std::string;
1372  }
1373  pki_data_->assign(value);
1374  // @@protoc_insertion_point(field_set:payments.PaymentRequest.pki_data)
1375 }
1376 inline void PaymentRequest::set_pki_data(const char* value) {
1377  set_has_pki_data();
1378  if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1379  pki_data_ = new ::std::string;
1380  }
1381  pki_data_->assign(value);
1382  // @@protoc_insertion_point(field_set_char:payments.PaymentRequest.pki_data)
1383 }
1384 inline void PaymentRequest::set_pki_data(const void* value, size_t size) {
1385  set_has_pki_data();
1386  if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1387  pki_data_ = new ::std::string;
1388  }
1389  pki_data_->assign(reinterpret_cast<const char*>(value), size);
1390  // @@protoc_insertion_point(field_set_pointer:payments.PaymentRequest.pki_data)
1391 }
1392 inline ::std::string* PaymentRequest::mutable_pki_data() {
1393  set_has_pki_data();
1394  if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1395  pki_data_ = new ::std::string;
1396  }
1397  // @@protoc_insertion_point(field_mutable:payments.PaymentRequest.pki_data)
1398  return pki_data_;
1399 }
1400 inline ::std::string* PaymentRequest::release_pki_data() {
1401  clear_has_pki_data();
1402  if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1403  return NULL;
1404  } else {
1405  ::std::string* temp = pki_data_;
1406  pki_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1407  return temp;
1408  }
1409 }
1410 inline void PaymentRequest::set_allocated_pki_data(::std::string* pki_data) {
1411  if (pki_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1412  delete pki_data_;
1413  }
1414  if (pki_data) {
1415  set_has_pki_data();
1416  pki_data_ = pki_data;
1417  } else {
1418  clear_has_pki_data();
1419  pki_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1420  }
1421  // @@protoc_insertion_point(field_set_allocated:payments.PaymentRequest.pki_data)
1422 }
1423 
1424 // required bytes serialized_payment_details = 4;
1426  return (_has_bits_[0] & 0x00000008u) != 0;
1427 }
1429  _has_bits_[0] |= 0x00000008u;
1430 }
1432  _has_bits_[0] &= ~0x00000008u;
1433 }
1435  if (serialized_payment_details_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1436  serialized_payment_details_->clear();
1437  }
1438  clear_has_serialized_payment_details();
1439 }
1440 inline const ::std::string& PaymentRequest::serialized_payment_details() const {
1441  // @@protoc_insertion_point(field_get:payments.PaymentRequest.serialized_payment_details)
1442  return *serialized_payment_details_;
1443 }
1444 inline void PaymentRequest::set_serialized_payment_details(const ::std::string& value) {
1445  set_has_serialized_payment_details();
1446  if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1447  serialized_payment_details_ = new ::std::string;
1448  }
1449  serialized_payment_details_->assign(value);
1450  // @@protoc_insertion_point(field_set:payments.PaymentRequest.serialized_payment_details)
1451 }
1452 inline void PaymentRequest::set_serialized_payment_details(const char* value) {
1453  set_has_serialized_payment_details();
1454  if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1455  serialized_payment_details_ = new ::std::string;
1456  }
1457  serialized_payment_details_->assign(value);
1458  // @@protoc_insertion_point(field_set_char:payments.PaymentRequest.serialized_payment_details)
1459 }
1460 inline void PaymentRequest::set_serialized_payment_details(const void* value, size_t size) {
1461  set_has_serialized_payment_details();
1462  if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1463  serialized_payment_details_ = new ::std::string;
1464  }
1465  serialized_payment_details_->assign(reinterpret_cast<const char*>(value), size);
1466  // @@protoc_insertion_point(field_set_pointer:payments.PaymentRequest.serialized_payment_details)
1467 }
1469  set_has_serialized_payment_details();
1470  if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1471  serialized_payment_details_ = new ::std::string;
1472  }
1473  // @@protoc_insertion_point(field_mutable:payments.PaymentRequest.serialized_payment_details)
1474  return serialized_payment_details_;
1475 }
1477  clear_has_serialized_payment_details();
1478  if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1479  return NULL;
1480  } else {
1481  ::std::string* temp = serialized_payment_details_;
1482  serialized_payment_details_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1483  return temp;
1484  }
1485 }
1486 inline void PaymentRequest::set_allocated_serialized_payment_details(::std::string* serialized_payment_details) {
1487  if (serialized_payment_details_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1488  delete serialized_payment_details_;
1489  }
1490  if (serialized_payment_details) {
1491  set_has_serialized_payment_details();
1492  serialized_payment_details_ = serialized_payment_details;
1493  } else {
1494  clear_has_serialized_payment_details();
1495  serialized_payment_details_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1496  }
1497  // @@protoc_insertion_point(field_set_allocated:payments.PaymentRequest.serialized_payment_details)
1498 }
1499 
1500 // optional bytes signature = 5;
1501 inline bool PaymentRequest::has_signature() const {
1502  return (_has_bits_[0] & 0x00000010u) != 0;
1503 }
1505  _has_bits_[0] |= 0x00000010u;
1506 }
1508  _has_bits_[0] &= ~0x00000010u;
1509 }
1511  if (signature_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1512  signature_->clear();
1513  }
1514  clear_has_signature();
1515 }
1516 inline const ::std::string& PaymentRequest::signature() const {
1517  // @@protoc_insertion_point(field_get:payments.PaymentRequest.signature)
1518  return *signature_;
1519 }
1520 inline void PaymentRequest::set_signature(const ::std::string& value) {
1521  set_has_signature();
1522  if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1523  signature_ = new ::std::string;
1524  }
1525  signature_->assign(value);
1526  // @@protoc_insertion_point(field_set:payments.PaymentRequest.signature)
1527 }
1528 inline void PaymentRequest::set_signature(const char* value) {
1529  set_has_signature();
1530  if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1531  signature_ = new ::std::string;
1532  }
1533  signature_->assign(value);
1534  // @@protoc_insertion_point(field_set_char:payments.PaymentRequest.signature)
1535 }
1536 inline void PaymentRequest::set_signature(const void* value, size_t size) {
1537  set_has_signature();
1538  if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1539  signature_ = new ::std::string;
1540  }
1541  signature_->assign(reinterpret_cast<const char*>(value), size);
1542  // @@protoc_insertion_point(field_set_pointer:payments.PaymentRequest.signature)
1543 }
1544 inline ::std::string* PaymentRequest::mutable_signature() {
1545  set_has_signature();
1546  if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1547  signature_ = new ::std::string;
1548  }
1549  // @@protoc_insertion_point(field_mutable:payments.PaymentRequest.signature)
1550  return signature_;
1551 }
1552 inline ::std::string* PaymentRequest::release_signature() {
1553  clear_has_signature();
1554  if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1555  return NULL;
1556  } else {
1557  ::std::string* temp = signature_;
1558  signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1559  return temp;
1560  }
1561 }
1562 inline void PaymentRequest::set_allocated_signature(::std::string* signature) {
1563  if (signature_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1564  delete signature_;
1565  }
1566  if (signature) {
1567  set_has_signature();
1568  signature_ = signature;
1569  } else {
1570  clear_has_signature();
1571  signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1572  }
1573  // @@protoc_insertion_point(field_set_allocated:payments.PaymentRequest.signature)
1574 }
1575 
1576 // -------------------------------------------------------------------
1577 
1578 // X509Certificates
1579 
1580 // repeated bytes certificate = 1;
1582  return certificate_.size();
1583 }
1585  certificate_.Clear();
1586 }
1587 inline const ::std::string& X509Certificates::certificate(int index) const {
1588  // @@protoc_insertion_point(field_get:payments.X509Certificates.certificate)
1589  return certificate_.Get(index);
1590 }
1591 inline ::std::string* X509Certificates::mutable_certificate(int index) {
1592  // @@protoc_insertion_point(field_mutable:payments.X509Certificates.certificate)
1593  return certificate_.Mutable(index);
1594 }
1595 inline void X509Certificates::set_certificate(int index, const ::std::string& value) {
1596  // @@protoc_insertion_point(field_set:payments.X509Certificates.certificate)
1597  certificate_.Mutable(index)->assign(value);
1598 }
1599 inline void X509Certificates::set_certificate(int index, const char* value) {
1600  certificate_.Mutable(index)->assign(value);
1601  // @@protoc_insertion_point(field_set_char:payments.X509Certificates.certificate)
1602 }
1603 inline void X509Certificates::set_certificate(int index, const void* value, size_t size) {
1604  certificate_.Mutable(index)->assign(
1605  reinterpret_cast<const char*>(value), size);
1606  // @@protoc_insertion_point(field_set_pointer:payments.X509Certificates.certificate)
1607 }
1608 inline ::std::string* X509Certificates::add_certificate() {
1609  return certificate_.Add();
1610 }
1611 inline void X509Certificates::add_certificate(const ::std::string& value) {
1612  certificate_.Add()->assign(value);
1613  // @@protoc_insertion_point(field_add:payments.X509Certificates.certificate)
1614 }
1615 inline void X509Certificates::add_certificate(const char* value) {
1616  certificate_.Add()->assign(value);
1617  // @@protoc_insertion_point(field_add_char:payments.X509Certificates.certificate)
1618 }
1619 inline void X509Certificates::add_certificate(const void* value, size_t size) {
1620  certificate_.Add()->assign(reinterpret_cast<const char*>(value), size);
1621  // @@protoc_insertion_point(field_add_pointer:payments.X509Certificates.certificate)
1622 }
1623 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1625  // @@protoc_insertion_point(field_list:payments.X509Certificates.certificate)
1626  return certificate_;
1627 }
1628 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1630  // @@protoc_insertion_point(field_mutable_list:payments.X509Certificates.certificate)
1631  return &certificate_;
1632 }
1633 
1634 // -------------------------------------------------------------------
1635 
1636 // Payment
1637 
1638 // optional bytes merchant_data = 1;
1639 inline bool Payment::has_merchant_data() const {
1640  return (_has_bits_[0] & 0x00000001u) != 0;
1641 }
1643  _has_bits_[0] |= 0x00000001u;
1644 }
1646  _has_bits_[0] &= ~0x00000001u;
1647 }
1649  if (merchant_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1650  merchant_data_->clear();
1651  }
1652  clear_has_merchant_data();
1653 }
1654 inline const ::std::string& Payment::merchant_data() const {
1655  // @@protoc_insertion_point(field_get:payments.Payment.merchant_data)
1656  return *merchant_data_;
1657 }
1658 inline void Payment::set_merchant_data(const ::std::string& value) {
1659  set_has_merchant_data();
1660  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1661  merchant_data_ = new ::std::string;
1662  }
1663  merchant_data_->assign(value);
1664  // @@protoc_insertion_point(field_set:payments.Payment.merchant_data)
1665 }
1666 inline void Payment::set_merchant_data(const char* value) {
1667  set_has_merchant_data();
1668  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1669  merchant_data_ = new ::std::string;
1670  }
1671  merchant_data_->assign(value);
1672  // @@protoc_insertion_point(field_set_char:payments.Payment.merchant_data)
1673 }
1674 inline void Payment::set_merchant_data(const void* value, size_t size) {
1675  set_has_merchant_data();
1676  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1677  merchant_data_ = new ::std::string;
1678  }
1679  merchant_data_->assign(reinterpret_cast<const char*>(value), size);
1680  // @@protoc_insertion_point(field_set_pointer:payments.Payment.merchant_data)
1681 }
1682 inline ::std::string* Payment::mutable_merchant_data() {
1683  set_has_merchant_data();
1684  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1685  merchant_data_ = new ::std::string;
1686  }
1687  // @@protoc_insertion_point(field_mutable:payments.Payment.merchant_data)
1688  return merchant_data_;
1689 }
1690 inline ::std::string* Payment::release_merchant_data() {
1691  clear_has_merchant_data();
1692  if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1693  return NULL;
1694  } else {
1695  ::std::string* temp = merchant_data_;
1696  merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1697  return temp;
1698  }
1699 }
1700 inline void Payment::set_allocated_merchant_data(::std::string* merchant_data) {
1701  if (merchant_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1702  delete merchant_data_;
1703  }
1704  if (merchant_data) {
1705  set_has_merchant_data();
1706  merchant_data_ = merchant_data;
1707  } else {
1708  clear_has_merchant_data();
1709  merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1710  }
1711  // @@protoc_insertion_point(field_set_allocated:payments.Payment.merchant_data)
1712 }
1713 
1714 // repeated bytes transactions = 2;
1715 inline int Payment::transactions_size() const {
1716  return transactions_.size();
1717 }
1719  transactions_.Clear();
1720 }
1721 inline const ::std::string& Payment::transactions(int index) const {
1722  // @@protoc_insertion_point(field_get:payments.Payment.transactions)
1723  return transactions_.Get(index);
1724 }
1725 inline ::std::string* Payment::mutable_transactions(int index) {
1726  // @@protoc_insertion_point(field_mutable:payments.Payment.transactions)
1727  return transactions_.Mutable(index);
1728 }
1729 inline void Payment::set_transactions(int index, const ::std::string& value) {
1730  // @@protoc_insertion_point(field_set:payments.Payment.transactions)
1731  transactions_.Mutable(index)->assign(value);
1732 }
1733 inline void Payment::set_transactions(int index, const char* value) {
1734  transactions_.Mutable(index)->assign(value);
1735  // @@protoc_insertion_point(field_set_char:payments.Payment.transactions)
1736 }
1737 inline void Payment::set_transactions(int index, const void* value, size_t size) {
1738  transactions_.Mutable(index)->assign(
1739  reinterpret_cast<const char*>(value), size);
1740  // @@protoc_insertion_point(field_set_pointer:payments.Payment.transactions)
1741 }
1742 inline ::std::string* Payment::add_transactions() {
1743  return transactions_.Add();
1744 }
1745 inline void Payment::add_transactions(const ::std::string& value) {
1746  transactions_.Add()->assign(value);
1747  // @@protoc_insertion_point(field_add:payments.Payment.transactions)
1748 }
1749 inline void Payment::add_transactions(const char* value) {
1750  transactions_.Add()->assign(value);
1751  // @@protoc_insertion_point(field_add_char:payments.Payment.transactions)
1752 }
1753 inline void Payment::add_transactions(const void* value, size_t size) {
1754  transactions_.Add()->assign(reinterpret_cast<const char*>(value), size);
1755  // @@protoc_insertion_point(field_add_pointer:payments.Payment.transactions)
1756 }
1757 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1759  // @@protoc_insertion_point(field_list:payments.Payment.transactions)
1760  return transactions_;
1761 }
1762 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1764  // @@protoc_insertion_point(field_mutable_list:payments.Payment.transactions)
1765  return &transactions_;
1766 }
1767 
1768 // repeated .payments.Output refund_to = 3;
1769 inline int Payment::refund_to_size() const {
1770  return refund_to_.size();
1771 }
1773  refund_to_.Clear();
1774 }
1775 inline const ::payments::Output& Payment::refund_to(int index) const {
1776  // @@protoc_insertion_point(field_get:payments.Payment.refund_to)
1777  return refund_to_.Get(index);
1778 }
1779 inline ::payments::Output* Payment::mutable_refund_to(int index) {
1780  // @@protoc_insertion_point(field_mutable:payments.Payment.refund_to)
1781  return refund_to_.Mutable(index);
1782 }
1783 inline ::payments::Output* Payment::add_refund_to() {
1784  // @@protoc_insertion_point(field_add:payments.Payment.refund_to)
1785  return refund_to_.Add();
1786 }
1787 inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
1789  // @@protoc_insertion_point(field_list:payments.Payment.refund_to)
1790  return refund_to_;
1791 }
1792 inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
1794  // @@protoc_insertion_point(field_mutable_list:payments.Payment.refund_to)
1795  return &refund_to_;
1796 }
1797 
1798 // optional string memo = 4;
1799 inline bool Payment::has_memo() const {
1800  return (_has_bits_[0] & 0x00000008u) != 0;
1801 }
1802 inline void Payment::set_has_memo() {
1803  _has_bits_[0] |= 0x00000008u;
1804 }
1806  _has_bits_[0] &= ~0x00000008u;
1807 }
1808 inline void Payment::clear_memo() {
1809  if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1810  memo_->clear();
1811  }
1812  clear_has_memo();
1813 }
1814 inline const ::std::string& Payment::memo() const {
1815  // @@protoc_insertion_point(field_get:payments.Payment.memo)
1816  return *memo_;
1817 }
1818 inline void Payment::set_memo(const ::std::string& value) {
1819  set_has_memo();
1820  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1821  memo_ = new ::std::string;
1822  }
1823  memo_->assign(value);
1824  // @@protoc_insertion_point(field_set:payments.Payment.memo)
1825 }
1826 inline void Payment::set_memo(const char* value) {
1827  set_has_memo();
1828  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1829  memo_ = new ::std::string;
1830  }
1831  memo_->assign(value);
1832  // @@protoc_insertion_point(field_set_char:payments.Payment.memo)
1833 }
1834 inline void Payment::set_memo(const char* value, size_t size) {
1835  set_has_memo();
1836  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1837  memo_ = new ::std::string;
1838  }
1839  memo_->assign(reinterpret_cast<const char*>(value), size);
1840  // @@protoc_insertion_point(field_set_pointer:payments.Payment.memo)
1841 }
1842 inline ::std::string* Payment::mutable_memo() {
1843  set_has_memo();
1844  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1845  memo_ = new ::std::string;
1846  }
1847  // @@protoc_insertion_point(field_mutable:payments.Payment.memo)
1848  return memo_;
1849 }
1850 inline ::std::string* Payment::release_memo() {
1851  clear_has_memo();
1852  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1853  return NULL;
1854  } else {
1855  ::std::string* temp = memo_;
1856  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1857  return temp;
1858  }
1859 }
1860 inline void Payment::set_allocated_memo(::std::string* memo) {
1861  if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1862  delete memo_;
1863  }
1864  if (memo) {
1865  set_has_memo();
1866  memo_ = memo;
1867  } else {
1868  clear_has_memo();
1869  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1870  }
1871  // @@protoc_insertion_point(field_set_allocated:payments.Payment.memo)
1872 }
1873 
1874 // -------------------------------------------------------------------
1875 
1876 // PaymentACK
1877 
1878 // required .payments.Payment payment = 1;
1879 inline bool PaymentACK::has_payment() const {
1880  return (_has_bits_[0] & 0x00000001u) != 0;
1881 }
1883  _has_bits_[0] |= 0x00000001u;
1884 }
1886  _has_bits_[0] &= ~0x00000001u;
1887 }
1889  if (payment_ != NULL) payment_->::payments::Payment::Clear();
1890  clear_has_payment();
1891 }
1892 inline const ::payments::Payment& PaymentACK::payment() const {
1893  // @@protoc_insertion_point(field_get:payments.PaymentACK.payment)
1894  return payment_ != NULL ? *payment_ : *default_instance_->payment_;
1895 }
1896 inline ::payments::Payment* PaymentACK::mutable_payment() {
1897  set_has_payment();
1898  if (payment_ == NULL) payment_ = new ::payments::Payment;
1899  // @@protoc_insertion_point(field_mutable:payments.PaymentACK.payment)
1900  return payment_;
1901 }
1902 inline ::payments::Payment* PaymentACK::release_payment() {
1903  clear_has_payment();
1904  ::payments::Payment* temp = payment_;
1905  payment_ = NULL;
1906  return temp;
1907 }
1909  delete payment_;
1910  payment_ = payment;
1911  if (payment) {
1912  set_has_payment();
1913  } else {
1914  clear_has_payment();
1915  }
1916  // @@protoc_insertion_point(field_set_allocated:payments.PaymentACK.payment)
1917 }
1918 
1919 // optional string memo = 2;
1920 inline bool PaymentACK::has_memo() const {
1921  return (_has_bits_[0] & 0x00000002u) != 0;
1922 }
1924  _has_bits_[0] |= 0x00000002u;
1925 }
1927  _has_bits_[0] &= ~0x00000002u;
1928 }
1929 inline void PaymentACK::clear_memo() {
1930  if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1931  memo_->clear();
1932  }
1933  clear_has_memo();
1934 }
1935 inline const ::std::string& PaymentACK::memo() const {
1936  // @@protoc_insertion_point(field_get:payments.PaymentACK.memo)
1937  return *memo_;
1938 }
1939 inline void PaymentACK::set_memo(const ::std::string& value) {
1940  set_has_memo();
1941  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1942  memo_ = new ::std::string;
1943  }
1944  memo_->assign(value);
1945  // @@protoc_insertion_point(field_set:payments.PaymentACK.memo)
1946 }
1947 inline void PaymentACK::set_memo(const char* value) {
1948  set_has_memo();
1949  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1950  memo_ = new ::std::string;
1951  }
1952  memo_->assign(value);
1953  // @@protoc_insertion_point(field_set_char:payments.PaymentACK.memo)
1954 }
1955 inline void PaymentACK::set_memo(const char* value, size_t size) {
1956  set_has_memo();
1957  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1958  memo_ = new ::std::string;
1959  }
1960  memo_->assign(reinterpret_cast<const char*>(value), size);
1961  // @@protoc_insertion_point(field_set_pointer:payments.PaymentACK.memo)
1962 }
1963 inline ::std::string* PaymentACK::mutable_memo() {
1964  set_has_memo();
1965  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1966  memo_ = new ::std::string;
1967  }
1968  // @@protoc_insertion_point(field_mutable:payments.PaymentACK.memo)
1969  return memo_;
1970 }
1971 inline ::std::string* PaymentACK::release_memo() {
1972  clear_has_memo();
1973  if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1974  return NULL;
1975  } else {
1976  ::std::string* temp = memo_;
1977  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1978  return temp;
1979  }
1980 }
1981 inline void PaymentACK::set_allocated_memo(::std::string* memo) {
1982  if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1983  delete memo_;
1984  }
1985  if (memo) {
1986  set_has_memo();
1987  memo_ = memo;
1988  } else {
1989  clear_has_memo();
1990  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1991  }
1992  // @@protoc_insertion_point(field_set_allocated:payments.PaymentACK.memo)
1993 }
1994 
1995 
1996 // @@protoc_insertion_point(namespace_scope)
1997 
1998 } // namespace payments
1999 
2000 #ifndef SWIG
2001 namespace google {
2002 namespace protobuf {
2003 
2004 
2005 } // namespace google
2006 } // namespace protobuf
2007 #endif // SWIG
2008 
2009 // @@protoc_insertion_point(global_scope)
2010 
2011 #endif // PROTOBUF_paymentrequest_2eproto__INCLUDED
::google::protobuf::uint32 _has_bits_[1]
friend void protobuf_AddDesc_paymentrequest_2eproto()
::std::string * merchant_data_
void protobuf_AddDesc_paymentrequest_2eproto()
::google::protobuf::uint64 expires_
const ::google::protobuf::RepeatedPtrField< ::std::string > & certificate() const
static const Output & default_instance()
static PaymentACK * default_instance_
::google::protobuf::RepeatedPtrField< ::payments::Output > refund_to_
bool has_amount() const
inline::std::string * release_pki_data()
static Output * default_instance_
friend void protobuf_AssignDesc_paymentrequest_2eproto()
inline::google::protobuf::uint32 payment_details_version() const
static X509Certificates * default_instance_
Output & operator=(const Output &from)
void set_payment_url(const ::std::string &value)
inline::std::string * mutable_payment_url()
inline::std::string * release_memo()
void set_script(const ::std::string &value)
void set_memo(const ::std::string &value)
void set_allocated_memo(::std::string *memo)
inline::std::string * release_serialized_payment_details()
void set_pki_data(const ::std::string &value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void MergeFrom(const ::google::protobuf::Message &from)
inline::std::string * release_memo()
void set_allocated_merchant_data(::std::string *merchant_data)
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::std::string * _default_network_
static const ::google::protobuf::Descriptor * descriptor()
void set_allocated_signature(::std::string *signature)
static const int kAmountFieldNumber
const ::std::string & pki_data() const
void set_merchant_data(const ::std::string &value)
inline::google::protobuf::uint64 expires() const
Payment & operator=(const Payment &from)
static PaymentRequest * default_instance_
void set_allocated_payment(::payments::Payment *payment)
inline::std::string * mutable_merchant_data()
::google::protobuf::Metadata GetMetadata() const
const ::std::string & memo() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
const ::std::string & signature() const
inline::std::string * release_network()
inline::std::string * mutable_script()
inline::std::string * mutable_memo()
int GetCachedSize() const
inline::std::string * release_merchant_data()
static const int kScriptFieldNumber
inline::std::string * mutable_signature()
::std::string * serialized_payment_details_
::google::protobuf::UnknownFieldSet _unknown_fields_
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline::std::string * add_transactions()
void set_network(const ::std::string &value)
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
void set_allocated_pki_data(::std::string *pki_data)
const ::std::string & script() const
int GetCachedSize() const
inline::google::protobuf::RepeatedPtrField< ::std::string > * mutable_transactions()
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::std::string & payment_url() const
bool IsInitialized() const
static PaymentDetails * default_instance_
Output * New() const
inline::std::string * mutable_network()
static Payment * default_instance_
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void set_allocated_serialized_payment_details(::std::string *serialized_payment_details)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline::std::string * release_signature()
void protobuf_AssignDesc_paymentrequest_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
void protobuf_ShutdownFile_paymentrequest_2eproto()
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::google::protobuf::RepeatedPtrField< ::payments::Output > & refund_to() const
void set_transactions(int index, const ::std::string &value)
const ::std::string & memo() const
inline::std::string * add_certificate()
inline::std::string * release_script()
inline::payments::Output * add_outputs()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline::std::string * mutable_serialized_payment_details()
void set_allocated_payment_url(::std::string *payment_url)
void set_certificate(int index, const ::std::string &value)
void SetCachedSize(int size) const
int transactions_size() const
inline::std::string * release_memo()
const ::std::string & network() const
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_expires(::google::protobuf::uint64 value)
PaymentACK & operator=(const PaymentACK &from)
const ::google::protobuf::RepeatedPtrField< ::std::string > & transactions() const
void set_allocated_network(::std::string *network)
inline::std::string * release_merchant_data()
inline::payments::Payment * release_payment()
inline::google::protobuf::RepeatedPtrField< ::payments::Output > * mutable_outputs()
const ::google::protobuf::RepeatedPtrField< ::payments::Output > & outputs() const
::google::protobuf::uint32 payment_details_version_
::std::string * script_
PaymentRequest & operator=(const PaymentRequest &from)
void set_allocated_memo(::std::string *memo)
inline::std::string * mutable_memo()
void set_allocated_memo(::std::string *memo)
inline::std::string * mutable_merchant_data()
void set_allocated_merchant_data(::std::string *merchant_data)
inline::google::protobuf::RepeatedPtrField< ::std::string > * mutable_certificate()
inline::google::protobuf::uint64 amount() const
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void CopyFrom(const ::google::protobuf::Message &from)
bool has_merchant_data() const
::std::string * _default_pki_type_
void Swap(Output *other)
::std::string * merchant_data_
::std::string * memo_
inline::std::string * mutable_memo()
const ::std::string & merchant_data() const
void set_memo(const ::std::string &value)
void set_signature(const ::std::string &value)
::google::protobuf::uint64 time_
::google::protobuf::uint64 amount_
uint8_t const size_t const size
Definition: sha3.h:20
friend void protobuf_ShutdownFile_paymentrequest_2eproto()
void set_pki_type(const ::std::string &value)
void set_allocated_pki_type(::std::string *pki_type)
bool has_payment_details_version() const
const ::payments::Payment & payment() const
const ::std::string & serialized_payment_details() const
void set_merchant_data(const ::std::string &value)
void set_serialized_payment_details(const ::std::string &value)
::payments::Payment * payment_
inline::std::string * mutable_pki_data()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline::payments::Output * add_refund_to()
const ::std::string & memo() const
inline::payments::Payment * mutable_payment()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
inline::std::string * mutable_pki_type()
::google::protobuf::RepeatedPtrField< ::std::string > certificate_
void set_allocated_script(::std::string *script)
void set_time(::google::protobuf::uint64 value)
bool has_script() const
::google::protobuf::UnknownFieldSet _unknown_fields_
inline::google::protobuf::RepeatedPtrField< ::payments::Output > * mutable_refund_to()
int refund_to_size() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
const ::std::string & merchant_data() const
void set_amount(::google::protobuf::uint64 value)
::google::protobuf::RepeatedPtrField< ::payments::Output > outputs_
inline::std::string * release_pki_type()
void set_memo(const ::std::string &value)
inline::std::string * release_payment_url()
bool has_serialized_payment_details() const
PaymentDetails & operator=(const PaymentDetails &from)
inline::google::protobuf::uint64 time() const
X509Certificates & operator=(const X509Certificates &from)
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::RepeatedPtrField< ::std::string > transactions_
::google::protobuf::UnknownFieldSet _unknown_fields_
bool has_memo() const
const ::std::string & pki_type() const
void set_payment_details_version(::google::protobuf::uint32 value)