Anoncoin  0.9.4
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 < 2005000
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 2005000 < 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 
93  ::google::protobuf::Metadata GetMetadata() const;
94 
95  // nested types ----------------------------------------------------
96 
97  // accessors -------------------------------------------------------
98 
99  // optional uint64 amount = 1 [default = 0];
100  inline bool has_amount() const;
101  inline void clear_amount();
102  static const int kAmountFieldNumber = 1;
103  inline ::google::protobuf::uint64 amount() const;
104  inline void set_amount(::google::protobuf::uint64 value);
105 
106  // required bytes script = 2;
107  inline bool has_script() const;
108  inline void clear_script();
109  static const int kScriptFieldNumber = 2;
110  inline const ::std::string& script() const;
111  inline void set_script(const ::std::string& value);
112  inline void set_script(const char* value);
113  inline void set_script(const void* value, size_t size);
114  inline ::std::string* mutable_script();
115  inline ::std::string* release_script();
116  inline void set_allocated_script(::std::string* script);
117 
118  // @@protoc_insertion_point(class_scope:payments.Output)
119  private:
120  inline void set_has_amount();
121  inline void clear_has_amount();
122  inline void set_has_script();
123  inline void clear_has_script();
124 
125  ::google::protobuf::UnknownFieldSet _unknown_fields_;
126 
127  ::google::protobuf::uint64 amount_;
128  ::std::string* script_;
129 
130  mutable int _cached_size_;
131  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
132 
136 
137  void InitAsDefaultInstance();
139 };
140 // -------------------------------------------------------------------
141 
142 class PaymentDetails : public ::google::protobuf::Message {
143  public:
144  PaymentDetails();
145  virtual ~PaymentDetails();
146 
147  PaymentDetails(const PaymentDetails& from);
148 
149  inline PaymentDetails& operator=(const PaymentDetails& from) {
150  CopyFrom(from);
151  return *this;
152  }
153 
154  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
155  return _unknown_fields_;
156  }
157 
158  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
159  return &_unknown_fields_;
160  }
161 
162  static const ::google::protobuf::Descriptor* descriptor();
163  static const PaymentDetails& default_instance();
164 
165  void Swap(PaymentDetails* other);
166 
167  // implements Message ----------------------------------------------
168 
169  PaymentDetails* New() const;
170  void CopyFrom(const ::google::protobuf::Message& from);
171  void MergeFrom(const ::google::protobuf::Message& from);
172  void CopyFrom(const PaymentDetails& from);
173  void MergeFrom(const PaymentDetails& from);
174  void Clear();
175  bool IsInitialized() const;
176 
177  int ByteSize() const;
179  ::google::protobuf::io::CodedInputStream* input);
181  ::google::protobuf::io::CodedOutputStream* output) const;
182  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
183  int GetCachedSize() const { return _cached_size_; }
184  private:
185  void SharedCtor();
186  void SharedDtor();
187  void SetCachedSize(int size) const;
188  public:
189 
190  ::google::protobuf::Metadata GetMetadata() const;
191 
192  // nested types ----------------------------------------------------
193 
194  // accessors -------------------------------------------------------
195 
196  // optional string network = 1 [default = "main"];
197  inline bool has_network() const;
198  inline void clear_network();
199  static const int kNetworkFieldNumber = 1;
200  inline const ::std::string& network() const;
201  inline void set_network(const ::std::string& value);
202  inline void set_network(const char* value);
203  inline void set_network(const char* value, size_t size);
204  inline ::std::string* mutable_network();
205  inline ::std::string* release_network();
206  inline void set_allocated_network(::std::string* network);
207 
208  // repeated .payments.Output outputs = 2;
209  inline int outputs_size() const;
210  inline void clear_outputs();
211  static const int kOutputsFieldNumber = 2;
212  inline const ::payments::Output& outputs(int index) const;
213  inline ::payments::Output* mutable_outputs(int index);
214  inline ::payments::Output* add_outputs();
215  inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
216  outputs() const;
217  inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
218  mutable_outputs();
219 
220  // required uint64 time = 3;
221  inline bool has_time() const;
222  inline void clear_time();
223  static const int kTimeFieldNumber = 3;
224  inline ::google::protobuf::uint64 time() const;
225  inline void set_time(::google::protobuf::uint64 value);
226 
227  // optional uint64 expires = 4;
228  inline bool has_expires() const;
229  inline void clear_expires();
230  static const int kExpiresFieldNumber = 4;
231  inline ::google::protobuf::uint64 expires() const;
232  inline void set_expires(::google::protobuf::uint64 value);
233 
234  // optional string memo = 5;
235  inline bool has_memo() const;
236  inline void clear_memo();
237  static const int kMemoFieldNumber = 5;
238  inline const ::std::string& memo() const;
239  inline void set_memo(const ::std::string& value);
240  inline void set_memo(const char* value);
241  inline void set_memo(const char* value, size_t size);
242  inline ::std::string* mutable_memo();
243  inline ::std::string* release_memo();
244  inline void set_allocated_memo(::std::string* memo);
245 
246  // optional string payment_url = 6;
247  inline bool has_payment_url() const;
248  inline void clear_payment_url();
249  static const int kPaymentUrlFieldNumber = 6;
250  inline const ::std::string& payment_url() const;
251  inline void set_payment_url(const ::std::string& value);
252  inline void set_payment_url(const char* value);
253  inline void set_payment_url(const char* value, size_t size);
254  inline ::std::string* mutable_payment_url();
255  inline ::std::string* release_payment_url();
256  inline void set_allocated_payment_url(::std::string* payment_url);
257 
258  // optional bytes merchant_data = 7;
259  inline bool has_merchant_data() const;
260  inline void clear_merchant_data();
261  static const int kMerchantDataFieldNumber = 7;
262  inline const ::std::string& merchant_data() const;
263  inline void set_merchant_data(const ::std::string& value);
264  inline void set_merchant_data(const char* value);
265  inline void set_merchant_data(const void* value, size_t size);
266  inline ::std::string* mutable_merchant_data();
267  inline ::std::string* release_merchant_data();
268  inline void set_allocated_merchant_data(::std::string* merchant_data);
269 
270  // @@protoc_insertion_point(class_scope:payments.PaymentDetails)
271  private:
272  inline void set_has_network();
273  inline void clear_has_network();
274  inline void set_has_time();
275  inline void clear_has_time();
276  inline void set_has_expires();
277  inline void clear_has_expires();
278  inline void set_has_memo();
279  inline void clear_has_memo();
280  inline void set_has_payment_url();
281  inline void clear_has_payment_url();
282  inline void set_has_merchant_data();
283  inline void clear_has_merchant_data();
284 
285  ::google::protobuf::UnknownFieldSet _unknown_fields_;
286 
287  ::std::string* network_;
288  static ::std::string* _default_network_;
289  ::google::protobuf::RepeatedPtrField< ::payments::Output > outputs_;
290  ::google::protobuf::uint64 time_;
291  ::google::protobuf::uint64 expires_;
292  ::std::string* memo_;
293  ::std::string* payment_url_;
294  ::std::string* merchant_data_;
295 
296  mutable int _cached_size_;
297  ::google::protobuf::uint32 _has_bits_[(7 + 31) / 32];
298 
302 
303  void InitAsDefaultInstance();
305 };
306 // -------------------------------------------------------------------
307 
308 class PaymentRequest : public ::google::protobuf::Message {
309  public:
310  PaymentRequest();
311  virtual ~PaymentRequest();
312 
313  PaymentRequest(const PaymentRequest& from);
314 
315  inline PaymentRequest& operator=(const PaymentRequest& from) {
316  CopyFrom(from);
317  return *this;
318  }
319 
320  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
321  return _unknown_fields_;
322  }
323 
324  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
325  return &_unknown_fields_;
326  }
327 
328  static const ::google::protobuf::Descriptor* descriptor();
329  static const PaymentRequest& default_instance();
330 
331  void Swap(PaymentRequest* other);
332 
333  // implements Message ----------------------------------------------
334 
335  PaymentRequest* New() const;
336  void CopyFrom(const ::google::protobuf::Message& from);
337  void MergeFrom(const ::google::protobuf::Message& from);
338  void CopyFrom(const PaymentRequest& from);
339  void MergeFrom(const PaymentRequest& from);
340  void Clear();
341  bool IsInitialized() const;
342 
343  int ByteSize() const;
345  ::google::protobuf::io::CodedInputStream* input);
347  ::google::protobuf::io::CodedOutputStream* output) const;
348  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
349  int GetCachedSize() const { return _cached_size_; }
350  private:
351  void SharedCtor();
352  void SharedDtor();
353  void SetCachedSize(int size) const;
354  public:
355 
356  ::google::protobuf::Metadata GetMetadata() const;
357 
358  // nested types ----------------------------------------------------
359 
360  // accessors -------------------------------------------------------
361 
362  // optional uint32 payment_details_version = 1 [default = 1];
363  inline bool has_payment_details_version() const;
364  inline void clear_payment_details_version();
365  static const int kPaymentDetailsVersionFieldNumber = 1;
366  inline ::google::protobuf::uint32 payment_details_version() const;
367  inline void set_payment_details_version(::google::protobuf::uint32 value);
368 
369  // optional string pki_type = 2 [default = "none"];
370  inline bool has_pki_type() const;
371  inline void clear_pki_type();
372  static const int kPkiTypeFieldNumber = 2;
373  inline const ::std::string& pki_type() const;
374  inline void set_pki_type(const ::std::string& value);
375  inline void set_pki_type(const char* value);
376  inline void set_pki_type(const char* value, size_t size);
377  inline ::std::string* mutable_pki_type();
378  inline ::std::string* release_pki_type();
379  inline void set_allocated_pki_type(::std::string* pki_type);
380 
381  // optional bytes pki_data = 3;
382  inline bool has_pki_data() const;
383  inline void clear_pki_data();
384  static const int kPkiDataFieldNumber = 3;
385  inline const ::std::string& pki_data() const;
386  inline void set_pki_data(const ::std::string& value);
387  inline void set_pki_data(const char* value);
388  inline void set_pki_data(const void* value, size_t size);
389  inline ::std::string* mutable_pki_data();
390  inline ::std::string* release_pki_data();
391  inline void set_allocated_pki_data(::std::string* pki_data);
392 
393  // required bytes serialized_payment_details = 4;
394  inline bool has_serialized_payment_details() const;
395  inline void clear_serialized_payment_details();
397  inline const ::std::string& serialized_payment_details() const;
398  inline void set_serialized_payment_details(const ::std::string& value);
399  inline void set_serialized_payment_details(const char* value);
400  inline void set_serialized_payment_details(const void* value, size_t size);
401  inline ::std::string* mutable_serialized_payment_details();
402  inline ::std::string* release_serialized_payment_details();
404 
405  // optional bytes signature = 5;
406  inline bool has_signature() const;
407  inline void clear_signature();
408  static const int kSignatureFieldNumber = 5;
409  inline const ::std::string& signature() const;
410  inline void set_signature(const ::std::string& value);
411  inline void set_signature(const char* value);
412  inline void set_signature(const void* value, size_t size);
413  inline ::std::string* mutable_signature();
414  inline ::std::string* release_signature();
415  inline void set_allocated_signature(::std::string* signature);
416 
417  // @@protoc_insertion_point(class_scope:payments.PaymentRequest)
418  private:
419  inline void set_has_payment_details_version();
420  inline void clear_has_payment_details_version();
421  inline void set_has_pki_type();
422  inline void clear_has_pki_type();
423  inline void set_has_pki_data();
424  inline void clear_has_pki_data();
427  inline void set_has_signature();
428  inline void clear_has_signature();
429 
430  ::google::protobuf::UnknownFieldSet _unknown_fields_;
431 
432  ::std::string* pki_type_;
433  static ::std::string* _default_pki_type_;
434  ::std::string* pki_data_;
436  ::std::string* signature_;
437  ::google::protobuf::uint32 payment_details_version_;
438 
439  mutable int _cached_size_;
440  ::google::protobuf::uint32 _has_bits_[(5 + 31) / 32];
441 
445 
446  void InitAsDefaultInstance();
448 };
449 // -------------------------------------------------------------------
450 
451 class X509Certificates : public ::google::protobuf::Message {
452  public:
454  virtual ~X509Certificates();
455 
456  X509Certificates(const X509Certificates& from);
457 
459  CopyFrom(from);
460  return *this;
461  }
462 
463  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
464  return _unknown_fields_;
465  }
466 
467  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
468  return &_unknown_fields_;
469  }
470 
471  static const ::google::protobuf::Descriptor* descriptor();
472  static const X509Certificates& default_instance();
473 
474  void Swap(X509Certificates* other);
475 
476  // implements Message ----------------------------------------------
477 
478  X509Certificates* New() const;
479  void CopyFrom(const ::google::protobuf::Message& from);
480  void MergeFrom(const ::google::protobuf::Message& from);
481  void CopyFrom(const X509Certificates& from);
482  void MergeFrom(const X509Certificates& from);
483  void Clear();
484  bool IsInitialized() const;
485 
486  int ByteSize() const;
488  ::google::protobuf::io::CodedInputStream* input);
490  ::google::protobuf::io::CodedOutputStream* output) const;
491  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
492  int GetCachedSize() const { return _cached_size_; }
493  private:
494  void SharedCtor();
495  void SharedDtor();
496  void SetCachedSize(int size) const;
497  public:
498 
499  ::google::protobuf::Metadata GetMetadata() const;
500 
501  // nested types ----------------------------------------------------
502 
503  // accessors -------------------------------------------------------
504 
505  // repeated bytes certificate = 1;
506  inline int certificate_size() const;
507  inline void clear_certificate();
508  static const int kCertificateFieldNumber = 1;
509  inline const ::std::string& certificate(int index) const;
510  inline ::std::string* mutable_certificate(int index);
511  inline void set_certificate(int index, const ::std::string& value);
512  inline void set_certificate(int index, const char* value);
513  inline void set_certificate(int index, const void* value, size_t size);
514  inline ::std::string* add_certificate();
515  inline void add_certificate(const ::std::string& value);
516  inline void add_certificate(const char* value);
517  inline void add_certificate(const void* value, size_t size);
518  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& certificate() const;
519  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_certificate();
520 
521  // @@protoc_insertion_point(class_scope:payments.X509Certificates)
522  private:
523 
524  ::google::protobuf::UnknownFieldSet _unknown_fields_;
525 
526  ::google::protobuf::RepeatedPtrField< ::std::string> certificate_;
527 
528  mutable int _cached_size_;
529  ::google::protobuf::uint32 _has_bits_[(1 + 31) / 32];
530 
534 
535  void InitAsDefaultInstance();
537 };
538 // -------------------------------------------------------------------
539 
540 class Payment : public ::google::protobuf::Message {
541  public:
542  Payment();
543  virtual ~Payment();
544 
545  Payment(const Payment& from);
546 
547  inline Payment& operator=(const Payment& from) {
548  CopyFrom(from);
549  return *this;
550  }
551 
552  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
553  return _unknown_fields_;
554  }
555 
556  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
557  return &_unknown_fields_;
558  }
559 
560  static const ::google::protobuf::Descriptor* descriptor();
561  static const Payment& default_instance();
562 
563  void Swap(Payment* other);
564 
565  // implements Message ----------------------------------------------
566 
567  Payment* New() const;
568  void CopyFrom(const ::google::protobuf::Message& from);
569  void MergeFrom(const ::google::protobuf::Message& from);
570  void CopyFrom(const Payment& from);
571  void MergeFrom(const Payment& from);
572  void Clear();
573  bool IsInitialized() const;
574 
575  int ByteSize() const;
577  ::google::protobuf::io::CodedInputStream* input);
579  ::google::protobuf::io::CodedOutputStream* output) const;
580  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
581  int GetCachedSize() const { return _cached_size_; }
582  private:
583  void SharedCtor();
584  void SharedDtor();
585  void SetCachedSize(int size) const;
586  public:
587 
588  ::google::protobuf::Metadata GetMetadata() const;
589 
590  // nested types ----------------------------------------------------
591 
592  // accessors -------------------------------------------------------
593 
594  // optional bytes merchant_data = 1;
595  inline bool has_merchant_data() const;
596  inline void clear_merchant_data();
597  static const int kMerchantDataFieldNumber = 1;
598  inline const ::std::string& merchant_data() const;
599  inline void set_merchant_data(const ::std::string& value);
600  inline void set_merchant_data(const char* value);
601  inline void set_merchant_data(const void* value, size_t size);
602  inline ::std::string* mutable_merchant_data();
603  inline ::std::string* release_merchant_data();
604  inline void set_allocated_merchant_data(::std::string* merchant_data);
605 
606  // repeated bytes transactions = 2;
607  inline int transactions_size() const;
608  inline void clear_transactions();
609  static const int kTransactionsFieldNumber = 2;
610  inline const ::std::string& transactions(int index) const;
611  inline ::std::string* mutable_transactions(int index);
612  inline void set_transactions(int index, const ::std::string& value);
613  inline void set_transactions(int index, const char* value);
614  inline void set_transactions(int index, const void* value, size_t size);
615  inline ::std::string* add_transactions();
616  inline void add_transactions(const ::std::string& value);
617  inline void add_transactions(const char* value);
618  inline void add_transactions(const void* value, size_t size);
619  inline const ::google::protobuf::RepeatedPtrField< ::std::string>& transactions() const;
620  inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_transactions();
621 
622  // repeated .payments.Output refund_to = 3;
623  inline int refund_to_size() const;
624  inline void clear_refund_to();
625  static const int kRefundToFieldNumber = 3;
626  inline const ::payments::Output& refund_to(int index) const;
627  inline ::payments::Output* mutable_refund_to(int index);
628  inline ::payments::Output* add_refund_to();
629  inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
630  refund_to() const;
631  inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
633 
634  // optional string memo = 4;
635  inline bool has_memo() const;
636  inline void clear_memo();
637  static const int kMemoFieldNumber = 4;
638  inline const ::std::string& memo() const;
639  inline void set_memo(const ::std::string& value);
640  inline void set_memo(const char* value);
641  inline void set_memo(const char* value, size_t size);
642  inline ::std::string* mutable_memo();
643  inline ::std::string* release_memo();
644  inline void set_allocated_memo(::std::string* memo);
645 
646  // @@protoc_insertion_point(class_scope:payments.Payment)
647  private:
648  inline void set_has_merchant_data();
649  inline void clear_has_merchant_data();
650  inline void set_has_memo();
651  inline void clear_has_memo();
652 
653  ::google::protobuf::UnknownFieldSet _unknown_fields_;
654 
655  ::std::string* merchant_data_;
656  ::google::protobuf::RepeatedPtrField< ::std::string> transactions_;
657  ::google::protobuf::RepeatedPtrField< ::payments::Output > refund_to_;
658  ::std::string* memo_;
659 
660  mutable int _cached_size_;
661  ::google::protobuf::uint32 _has_bits_[(4 + 31) / 32];
662 
666 
667  void InitAsDefaultInstance();
669 };
670 // -------------------------------------------------------------------
671 
672 class PaymentACK : public ::google::protobuf::Message {
673  public:
674  PaymentACK();
675  virtual ~PaymentACK();
676 
677  PaymentACK(const PaymentACK& from);
678 
679  inline PaymentACK& operator=(const PaymentACK& from) {
680  CopyFrom(from);
681  return *this;
682  }
683 
684  inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
685  return _unknown_fields_;
686  }
687 
688  inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
689  return &_unknown_fields_;
690  }
691 
692  static const ::google::protobuf::Descriptor* descriptor();
693  static const PaymentACK& default_instance();
694 
695  void Swap(PaymentACK* other);
696 
697  // implements Message ----------------------------------------------
698 
699  PaymentACK* New() const;
700  void CopyFrom(const ::google::protobuf::Message& from);
701  void MergeFrom(const ::google::protobuf::Message& from);
702  void CopyFrom(const PaymentACK& from);
703  void MergeFrom(const PaymentACK& from);
704  void Clear();
705  bool IsInitialized() const;
706 
707  int ByteSize() const;
709  ::google::protobuf::io::CodedInputStream* input);
711  ::google::protobuf::io::CodedOutputStream* output) const;
712  ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
713  int GetCachedSize() const { return _cached_size_; }
714  private:
715  void SharedCtor();
716  void SharedDtor();
717  void SetCachedSize(int size) const;
718  public:
719 
720  ::google::protobuf::Metadata GetMetadata() const;
721 
722  // nested types ----------------------------------------------------
723 
724  // accessors -------------------------------------------------------
725 
726  // required .payments.Payment payment = 1;
727  inline bool has_payment() const;
728  inline void clear_payment();
729  static const int kPaymentFieldNumber = 1;
730  inline const ::payments::Payment& payment() const;
731  inline ::payments::Payment* mutable_payment();
732  inline ::payments::Payment* release_payment();
734 
735  // optional string memo = 2;
736  inline bool has_memo() const;
737  inline void clear_memo();
738  static const int kMemoFieldNumber = 2;
739  inline const ::std::string& memo() const;
740  inline void set_memo(const ::std::string& value);
741  inline void set_memo(const char* value);
742  inline void set_memo(const char* value, size_t size);
743  inline ::std::string* mutable_memo();
744  inline ::std::string* release_memo();
745  inline void set_allocated_memo(::std::string* memo);
746 
747  // @@protoc_insertion_point(class_scope:payments.PaymentACK)
748  private:
749  inline void set_has_payment();
750  inline void clear_has_payment();
751  inline void set_has_memo();
752  inline void clear_has_memo();
753 
754  ::google::protobuf::UnknownFieldSet _unknown_fields_;
755 
757  ::std::string* memo_;
758 
759  mutable int _cached_size_;
760  ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
761 
765 
766  void InitAsDefaultInstance();
768 };
769 // ===================================================================
770 
771 
772 // ===================================================================
773 
774 // Output
775 
776 // optional uint64 amount = 1 [default = 0];
777 inline bool Output::has_amount() const {
778  return (_has_bits_[0] & 0x00000001u) != 0;
779 }
780 inline void Output::set_has_amount() {
781  _has_bits_[0] |= 0x00000001u;
782 }
784  _has_bits_[0] &= ~0x00000001u;
785 }
786 inline void Output::clear_amount() {
787  amount_ = GOOGLE_ULONGLONG(0);
789 }
790 inline ::google::protobuf::uint64 Output::amount() const {
791  return amount_;
792 }
793 inline void Output::set_amount(::google::protobuf::uint64 value) {
794  set_has_amount();
795  amount_ = value;
796 }
797 
798 // required bytes script = 2;
799 inline bool Output::has_script() const {
800  return (_has_bits_[0] & 0x00000002u) != 0;
801 }
802 inline void Output::set_has_script() {
803  _has_bits_[0] |= 0x00000002u;
804 }
806  _has_bits_[0] &= ~0x00000002u;
807 }
808 inline void Output::clear_script() {
809  if (script_ != &::google::protobuf::internal::kEmptyString) {
810  script_->clear();
811  }
813 }
814 inline const ::std::string& Output::script() const {
815  return *script_;
816 }
817 inline void Output::set_script(const ::std::string& value) {
818  set_has_script();
819  if (script_ == &::google::protobuf::internal::kEmptyString) {
820  script_ = new ::std::string;
821  }
822  script_->assign(value);
823 }
824 inline void Output::set_script(const char* value) {
825  set_has_script();
826  if (script_ == &::google::protobuf::internal::kEmptyString) {
827  script_ = new ::std::string;
828  }
829  script_->assign(value);
830 }
831 inline void Output::set_script(const void* value, size_t size) {
832  set_has_script();
833  if (script_ == &::google::protobuf::internal::kEmptyString) {
834  script_ = new ::std::string;
835  }
836  script_->assign(reinterpret_cast<const char*>(value), size);
837 }
838 inline ::std::string* Output::mutable_script() {
839  set_has_script();
840  if (script_ == &::google::protobuf::internal::kEmptyString) {
841  script_ = new ::std::string;
842  }
843  return script_;
844 }
845 inline ::std::string* Output::release_script() {
847  if (script_ == &::google::protobuf::internal::kEmptyString) {
848  return NULL;
849  } else {
850  ::std::string* temp = script_;
851  script_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
852  return temp;
853  }
854 }
855 inline void Output::set_allocated_script(::std::string* script) {
856  if (script_ != &::google::protobuf::internal::kEmptyString) {
857  delete script_;
858  }
859  if (script) {
860  set_has_script();
861  script_ = script;
862  } else {
864  script_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
865  }
866 }
867 
868 // -------------------------------------------------------------------
869 
870 // PaymentDetails
871 
872 // optional string network = 1 [default = "main"];
873 inline bool PaymentDetails::has_network() const {
874  return (_has_bits_[0] & 0x00000001u) != 0;
875 }
877  _has_bits_[0] |= 0x00000001u;
878 }
880  _has_bits_[0] &= ~0x00000001u;
881 }
883  if (network_ != _default_network_) {
884  network_->assign(*_default_network_);
885  }
887 }
888 inline const ::std::string& PaymentDetails::network() const {
889  return *network_;
890 }
891 inline void PaymentDetails::set_network(const ::std::string& value) {
892  set_has_network();
893  if (network_ == _default_network_) {
894  network_ = new ::std::string;
895  }
896  network_->assign(value);
897 }
898 inline void PaymentDetails::set_network(const char* value) {
899  set_has_network();
900  if (network_ == _default_network_) {
901  network_ = new ::std::string;
902  }
903  network_->assign(value);
904 }
905 inline void PaymentDetails::set_network(const char* value, size_t size) {
906  set_has_network();
907  if (network_ == _default_network_) {
908  network_ = new ::std::string;
909  }
910  network_->assign(reinterpret_cast<const char*>(value), size);
911 }
912 inline ::std::string* PaymentDetails::mutable_network() {
913  set_has_network();
914  if (network_ == _default_network_) {
915  network_ = new ::std::string(*_default_network_);
916  }
917  return network_;
918 }
919 inline ::std::string* PaymentDetails::release_network() {
921  if (network_ == _default_network_) {
922  return NULL;
923  } else {
924  ::std::string* temp = network_;
925  network_ = const_cast< ::std::string*>(_default_network_);
926  return temp;
927  }
928 }
929 inline void PaymentDetails::set_allocated_network(::std::string* network) {
930  if (network_ != _default_network_) {
931  delete network_;
932  }
933  if (network) {
934  set_has_network();
935  network_ = network;
936  } else {
938  network_ = const_cast< ::std::string*>(_default_network_);
939  }
940 }
941 
942 // repeated .payments.Output outputs = 2;
943 inline int PaymentDetails::outputs_size() const {
944  return outputs_.size();
945 }
947  outputs_.Clear();
948 }
949 inline const ::payments::Output& PaymentDetails::outputs(int index) const {
950  return outputs_.Get(index);
951 }
952 inline ::payments::Output* PaymentDetails::mutable_outputs(int index) {
953  return outputs_.Mutable(index);
954 }
955 inline ::payments::Output* PaymentDetails::add_outputs() {
956  return outputs_.Add();
957 }
958 inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
960  return outputs_;
961 }
962 inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
964  return &outputs_;
965 }
966 
967 // required uint64 time = 3;
968 inline bool PaymentDetails::has_time() const {
969  return (_has_bits_[0] & 0x00000004u) != 0;
970 }
972  _has_bits_[0] |= 0x00000004u;
973 }
975  _has_bits_[0] &= ~0x00000004u;
976 }
978  time_ = GOOGLE_ULONGLONG(0);
979  clear_has_time();
980 }
981 inline ::google::protobuf::uint64 PaymentDetails::time() const {
982  return time_;
983 }
984 inline void PaymentDetails::set_time(::google::protobuf::uint64 value) {
985  set_has_time();
986  time_ = value;
987 }
988 
989 // optional uint64 expires = 4;
990 inline bool PaymentDetails::has_expires() const {
991  return (_has_bits_[0] & 0x00000008u) != 0;
992 }
994  _has_bits_[0] |= 0x00000008u;
995 }
997  _has_bits_[0] &= ~0x00000008u;
998 }
1000  expires_ = GOOGLE_ULONGLONG(0);
1002 }
1003 inline ::google::protobuf::uint64 PaymentDetails::expires() const {
1004  return expires_;
1005 }
1006 inline void PaymentDetails::set_expires(::google::protobuf::uint64 value) {
1007  set_has_expires();
1008  expires_ = value;
1009 }
1010 
1011 // optional string memo = 5;
1012 inline bool PaymentDetails::has_memo() const {
1013  return (_has_bits_[0] & 0x00000010u) != 0;
1014 }
1016  _has_bits_[0] |= 0x00000010u;
1017 }
1019  _has_bits_[0] &= ~0x00000010u;
1020 }
1022  if (memo_ != &::google::protobuf::internal::kEmptyString) {
1023  memo_->clear();
1024  }
1025  clear_has_memo();
1026 }
1027 inline const ::std::string& PaymentDetails::memo() const {
1028  return *memo_;
1029 }
1030 inline void PaymentDetails::set_memo(const ::std::string& value) {
1031  set_has_memo();
1032  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1033  memo_ = new ::std::string;
1034  }
1035  memo_->assign(value);
1036 }
1037 inline void PaymentDetails::set_memo(const char* value) {
1038  set_has_memo();
1039  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1040  memo_ = new ::std::string;
1041  }
1042  memo_->assign(value);
1043 }
1044 inline void PaymentDetails::set_memo(const char* value, size_t size) {
1045  set_has_memo();
1046  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1047  memo_ = new ::std::string;
1048  }
1049  memo_->assign(reinterpret_cast<const char*>(value), size);
1050 }
1051 inline ::std::string* PaymentDetails::mutable_memo() {
1052  set_has_memo();
1053  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1054  memo_ = new ::std::string;
1055  }
1056  return memo_;
1057 }
1058 inline ::std::string* PaymentDetails::release_memo() {
1059  clear_has_memo();
1060  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1061  return NULL;
1062  } else {
1063  ::std::string* temp = memo_;
1064  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1065  return temp;
1066  }
1067 }
1068 inline void PaymentDetails::set_allocated_memo(::std::string* memo) {
1069  if (memo_ != &::google::protobuf::internal::kEmptyString) {
1070  delete memo_;
1071  }
1072  if (memo) {
1073  set_has_memo();
1074  memo_ = memo;
1075  } else {
1076  clear_has_memo();
1077  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1078  }
1079 }
1080 
1081 // optional string payment_url = 6;
1082 inline bool PaymentDetails::has_payment_url() const {
1083  return (_has_bits_[0] & 0x00000020u) != 0;
1084 }
1086  _has_bits_[0] |= 0x00000020u;
1087 }
1089  _has_bits_[0] &= ~0x00000020u;
1090 }
1092  if (payment_url_ != &::google::protobuf::internal::kEmptyString) {
1093  payment_url_->clear();
1094  }
1096 }
1097 inline const ::std::string& PaymentDetails::payment_url() const {
1098  return *payment_url_;
1099 }
1100 inline void PaymentDetails::set_payment_url(const ::std::string& value) {
1102  if (payment_url_ == &::google::protobuf::internal::kEmptyString) {
1103  payment_url_ = new ::std::string;
1104  }
1105  payment_url_->assign(value);
1106 }
1107 inline void PaymentDetails::set_payment_url(const char* value) {
1109  if (payment_url_ == &::google::protobuf::internal::kEmptyString) {
1110  payment_url_ = new ::std::string;
1111  }
1112  payment_url_->assign(value);
1113 }
1114 inline void PaymentDetails::set_payment_url(const char* value, size_t size) {
1116  if (payment_url_ == &::google::protobuf::internal::kEmptyString) {
1117  payment_url_ = new ::std::string;
1118  }
1119  payment_url_->assign(reinterpret_cast<const char*>(value), size);
1120 }
1121 inline ::std::string* PaymentDetails::mutable_payment_url() {
1123  if (payment_url_ == &::google::protobuf::internal::kEmptyString) {
1124  payment_url_ = new ::std::string;
1125  }
1126  return payment_url_;
1127 }
1128 inline ::std::string* PaymentDetails::release_payment_url() {
1130  if (payment_url_ == &::google::protobuf::internal::kEmptyString) {
1131  return NULL;
1132  } else {
1133  ::std::string* temp = payment_url_;
1134  payment_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1135  return temp;
1136  }
1137 }
1138 inline void PaymentDetails::set_allocated_payment_url(::std::string* payment_url) {
1139  if (payment_url_ != &::google::protobuf::internal::kEmptyString) {
1140  delete payment_url_;
1141  }
1142  if (payment_url) {
1145  } else {
1147  payment_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1148  }
1149 }
1150 
1151 // optional bytes merchant_data = 7;
1153  return (_has_bits_[0] & 0x00000040u) != 0;
1154 }
1156  _has_bits_[0] |= 0x00000040u;
1157 }
1159  _has_bits_[0] &= ~0x00000040u;
1160 }
1162  if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
1163  merchant_data_->clear();
1164  }
1166 }
1167 inline const ::std::string& PaymentDetails::merchant_data() const {
1168  return *merchant_data_;
1169 }
1170 inline void PaymentDetails::set_merchant_data(const ::std::string& value) {
1172  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1173  merchant_data_ = new ::std::string;
1174  }
1175  merchant_data_->assign(value);
1176 }
1177 inline void PaymentDetails::set_merchant_data(const char* value) {
1179  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1180  merchant_data_ = new ::std::string;
1181  }
1182  merchant_data_->assign(value);
1183 }
1184 inline void PaymentDetails::set_merchant_data(const void* value, size_t size) {
1186  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1187  merchant_data_ = new ::std::string;
1188  }
1189  merchant_data_->assign(reinterpret_cast<const char*>(value), size);
1190 }
1191 inline ::std::string* PaymentDetails::mutable_merchant_data() {
1193  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1194  merchant_data_ = new ::std::string;
1195  }
1196  return merchant_data_;
1197 }
1198 inline ::std::string* PaymentDetails::release_merchant_data() {
1200  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1201  return NULL;
1202  } else {
1203  ::std::string* temp = merchant_data_;
1204  merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1205  return temp;
1206  }
1207 }
1208 inline void PaymentDetails::set_allocated_merchant_data(::std::string* merchant_data) {
1209  if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
1210  delete merchant_data_;
1211  }
1212  if (merchant_data) {
1215  } else {
1217  merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1218  }
1219 }
1220 
1221 // -------------------------------------------------------------------
1222 
1223 // PaymentRequest
1224 
1225 // optional uint32 payment_details_version = 1 [default = 1];
1227  return (_has_bits_[0] & 0x00000001u) != 0;
1228 }
1230  _has_bits_[0] |= 0x00000001u;
1231 }
1233  _has_bits_[0] &= ~0x00000001u;
1234 }
1238 }
1239 inline ::google::protobuf::uint32 PaymentRequest::payment_details_version() const {
1240  return payment_details_version_;
1241 }
1242 inline void PaymentRequest::set_payment_details_version(::google::protobuf::uint32 value) {
1244  payment_details_version_ = value;
1245 }
1246 
1247 // optional string pki_type = 2 [default = "none"];
1248 inline bool PaymentRequest::has_pki_type() const {
1249  return (_has_bits_[0] & 0x00000002u) != 0;
1250 }
1252  _has_bits_[0] |= 0x00000002u;
1253 }
1255  _has_bits_[0] &= ~0x00000002u;
1256 }
1258  if (pki_type_ != _default_pki_type_) {
1259  pki_type_->assign(*_default_pki_type_);
1260  }
1262 }
1263 inline const ::std::string& PaymentRequest::pki_type() const {
1264  return *pki_type_;
1265 }
1266 inline void PaymentRequest::set_pki_type(const ::std::string& value) {
1267  set_has_pki_type();
1268  if (pki_type_ == _default_pki_type_) {
1269  pki_type_ = new ::std::string;
1270  }
1271  pki_type_->assign(value);
1272 }
1273 inline void PaymentRequest::set_pki_type(const char* value) {
1274  set_has_pki_type();
1275  if (pki_type_ == _default_pki_type_) {
1276  pki_type_ = new ::std::string;
1277  }
1278  pki_type_->assign(value);
1279 }
1280 inline void PaymentRequest::set_pki_type(const char* value, size_t size) {
1281  set_has_pki_type();
1282  if (pki_type_ == _default_pki_type_) {
1283  pki_type_ = new ::std::string;
1284  }
1285  pki_type_->assign(reinterpret_cast<const char*>(value), size);
1286 }
1287 inline ::std::string* PaymentRequest::mutable_pki_type() {
1288  set_has_pki_type();
1289  if (pki_type_ == _default_pki_type_) {
1290  pki_type_ = new ::std::string(*_default_pki_type_);
1291  }
1292  return pki_type_;
1293 }
1294 inline ::std::string* PaymentRequest::release_pki_type() {
1296  if (pki_type_ == _default_pki_type_) {
1297  return NULL;
1298  } else {
1299  ::std::string* temp = pki_type_;
1300  pki_type_ = const_cast< ::std::string*>(_default_pki_type_);
1301  return temp;
1302  }
1303 }
1304 inline void PaymentRequest::set_allocated_pki_type(::std::string* pki_type) {
1305  if (pki_type_ != _default_pki_type_) {
1306  delete pki_type_;
1307  }
1308  if (pki_type) {
1309  set_has_pki_type();
1310  pki_type_ = pki_type;
1311  } else {
1313  pki_type_ = const_cast< ::std::string*>(_default_pki_type_);
1314  }
1315 }
1316 
1317 // optional bytes pki_data = 3;
1318 inline bool PaymentRequest::has_pki_data() const {
1319  return (_has_bits_[0] & 0x00000004u) != 0;
1320 }
1322  _has_bits_[0] |= 0x00000004u;
1323 }
1325  _has_bits_[0] &= ~0x00000004u;
1326 }
1328  if (pki_data_ != &::google::protobuf::internal::kEmptyString) {
1329  pki_data_->clear();
1330  }
1332 }
1333 inline const ::std::string& PaymentRequest::pki_data() const {
1334  return *pki_data_;
1335 }
1336 inline void PaymentRequest::set_pki_data(const ::std::string& value) {
1337  set_has_pki_data();
1338  if (pki_data_ == &::google::protobuf::internal::kEmptyString) {
1339  pki_data_ = new ::std::string;
1340  }
1341  pki_data_->assign(value);
1342 }
1343 inline void PaymentRequest::set_pki_data(const char* value) {
1344  set_has_pki_data();
1345  if (pki_data_ == &::google::protobuf::internal::kEmptyString) {
1346  pki_data_ = new ::std::string;
1347  }
1348  pki_data_->assign(value);
1349 }
1350 inline void PaymentRequest::set_pki_data(const void* value, size_t size) {
1351  set_has_pki_data();
1352  if (pki_data_ == &::google::protobuf::internal::kEmptyString) {
1353  pki_data_ = new ::std::string;
1354  }
1355  pki_data_->assign(reinterpret_cast<const char*>(value), size);
1356 }
1357 inline ::std::string* PaymentRequest::mutable_pki_data() {
1358  set_has_pki_data();
1359  if (pki_data_ == &::google::protobuf::internal::kEmptyString) {
1360  pki_data_ = new ::std::string;
1361  }
1362  return pki_data_;
1363 }
1364 inline ::std::string* PaymentRequest::release_pki_data() {
1366  if (pki_data_ == &::google::protobuf::internal::kEmptyString) {
1367  return NULL;
1368  } else {
1369  ::std::string* temp = pki_data_;
1370  pki_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1371  return temp;
1372  }
1373 }
1374 inline void PaymentRequest::set_allocated_pki_data(::std::string* pki_data) {
1375  if (pki_data_ != &::google::protobuf::internal::kEmptyString) {
1376  delete pki_data_;
1377  }
1378  if (pki_data) {
1379  set_has_pki_data();
1380  pki_data_ = pki_data;
1381  } else {
1383  pki_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1384  }
1385 }
1386 
1387 // required bytes serialized_payment_details = 4;
1389  return (_has_bits_[0] & 0x00000008u) != 0;
1390 }
1392  _has_bits_[0] |= 0x00000008u;
1393 }
1395  _has_bits_[0] &= ~0x00000008u;
1396 }
1398  if (serialized_payment_details_ != &::google::protobuf::internal::kEmptyString) {
1399  serialized_payment_details_->clear();
1400  }
1402 }
1403 inline const ::std::string& PaymentRequest::serialized_payment_details() const {
1405 }
1406 inline void PaymentRequest::set_serialized_payment_details(const ::std::string& value) {
1408  if (serialized_payment_details_ == &::google::protobuf::internal::kEmptyString) {
1409  serialized_payment_details_ = new ::std::string;
1410  }
1411  serialized_payment_details_->assign(value);
1412 }
1413 inline void PaymentRequest::set_serialized_payment_details(const char* value) {
1415  if (serialized_payment_details_ == &::google::protobuf::internal::kEmptyString) {
1416  serialized_payment_details_ = new ::std::string;
1417  }
1418  serialized_payment_details_->assign(value);
1419 }
1420 inline void PaymentRequest::set_serialized_payment_details(const void* value, size_t size) {
1422  if (serialized_payment_details_ == &::google::protobuf::internal::kEmptyString) {
1423  serialized_payment_details_ = new ::std::string;
1424  }
1425  serialized_payment_details_->assign(reinterpret_cast<const char*>(value), size);
1426 }
1429  if (serialized_payment_details_ == &::google::protobuf::internal::kEmptyString) {
1430  serialized_payment_details_ = new ::std::string;
1431  }
1433 }
1436  if (serialized_payment_details_ == &::google::protobuf::internal::kEmptyString) {
1437  return NULL;
1438  } else {
1439  ::std::string* temp = serialized_payment_details_;
1440  serialized_payment_details_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1441  return temp;
1442  }
1443 }
1444 inline void PaymentRequest::set_allocated_serialized_payment_details(::std::string* serialized_payment_details) {
1445  if (serialized_payment_details_ != &::google::protobuf::internal::kEmptyString) {
1447  }
1448  if (serialized_payment_details) {
1451  } else {
1453  serialized_payment_details_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1454  }
1455 }
1456 
1457 // optional bytes signature = 5;
1458 inline bool PaymentRequest::has_signature() const {
1459  return (_has_bits_[0] & 0x00000010u) != 0;
1460 }
1462  _has_bits_[0] |= 0x00000010u;
1463 }
1465  _has_bits_[0] &= ~0x00000010u;
1466 }
1468  if (signature_ != &::google::protobuf::internal::kEmptyString) {
1469  signature_->clear();
1470  }
1472 }
1473 inline const ::std::string& PaymentRequest::signature() const {
1474  return *signature_;
1475 }
1476 inline void PaymentRequest::set_signature(const ::std::string& value) {
1478  if (signature_ == &::google::protobuf::internal::kEmptyString) {
1479  signature_ = new ::std::string;
1480  }
1481  signature_->assign(value);
1482 }
1483 inline void PaymentRequest::set_signature(const char* value) {
1485  if (signature_ == &::google::protobuf::internal::kEmptyString) {
1486  signature_ = new ::std::string;
1487  }
1488  signature_->assign(value);
1489 }
1490 inline void PaymentRequest::set_signature(const void* value, size_t size) {
1492  if (signature_ == &::google::protobuf::internal::kEmptyString) {
1493  signature_ = new ::std::string;
1494  }
1495  signature_->assign(reinterpret_cast<const char*>(value), size);
1496 }
1497 inline ::std::string* PaymentRequest::mutable_signature() {
1499  if (signature_ == &::google::protobuf::internal::kEmptyString) {
1500  signature_ = new ::std::string;
1501  }
1502  return signature_;
1503 }
1504 inline ::std::string* PaymentRequest::release_signature() {
1506  if (signature_ == &::google::protobuf::internal::kEmptyString) {
1507  return NULL;
1508  } else {
1509  ::std::string* temp = signature_;
1510  signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1511  return temp;
1512  }
1513 }
1514 inline void PaymentRequest::set_allocated_signature(::std::string* signature) {
1515  if (signature_ != &::google::protobuf::internal::kEmptyString) {
1516  delete signature_;
1517  }
1518  if (signature) {
1521  } else {
1523  signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1524  }
1525 }
1526 
1527 // -------------------------------------------------------------------
1528 
1529 // X509Certificates
1530 
1531 // repeated bytes certificate = 1;
1533  return certificate_.size();
1534 }
1536  certificate_.Clear();
1537 }
1538 inline const ::std::string& X509Certificates::certificate(int index) const {
1539  return certificate_.Get(index);
1540 }
1541 inline ::std::string* X509Certificates::mutable_certificate(int index) {
1542  return certificate_.Mutable(index);
1543 }
1544 inline void X509Certificates::set_certificate(int index, const ::std::string& value) {
1545  certificate_.Mutable(index)->assign(value);
1546 }
1547 inline void X509Certificates::set_certificate(int index, const char* value) {
1548  certificate_.Mutable(index)->assign(value);
1549 }
1550 inline void X509Certificates::set_certificate(int index, const void* value, size_t size) {
1551  certificate_.Mutable(index)->assign(
1552  reinterpret_cast<const char*>(value), size);
1553 }
1554 inline ::std::string* X509Certificates::add_certificate() {
1555  return certificate_.Add();
1556 }
1557 inline void X509Certificates::add_certificate(const ::std::string& value) {
1558  certificate_.Add()->assign(value);
1559 }
1560 inline void X509Certificates::add_certificate(const char* value) {
1561  certificate_.Add()->assign(value);
1562 }
1563 inline void X509Certificates::add_certificate(const void* value, size_t size) {
1564  certificate_.Add()->assign(reinterpret_cast<const char*>(value), size);
1565 }
1566 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1568  return certificate_;
1569 }
1570 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1572  return &certificate_;
1573 }
1574 
1575 // -------------------------------------------------------------------
1576 
1577 // Payment
1578 
1579 // optional bytes merchant_data = 1;
1580 inline bool Payment::has_merchant_data() const {
1581  return (_has_bits_[0] & 0x00000001u) != 0;
1582 }
1584  _has_bits_[0] |= 0x00000001u;
1585 }
1587  _has_bits_[0] &= ~0x00000001u;
1588 }
1590  if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
1591  merchant_data_->clear();
1592  }
1594 }
1595 inline const ::std::string& Payment::merchant_data() const {
1596  return *merchant_data_;
1597 }
1598 inline void Payment::set_merchant_data(const ::std::string& value) {
1600  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1601  merchant_data_ = new ::std::string;
1602  }
1603  merchant_data_->assign(value);
1604 }
1605 inline void Payment::set_merchant_data(const char* value) {
1607  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1608  merchant_data_ = new ::std::string;
1609  }
1610  merchant_data_->assign(value);
1611 }
1612 inline void Payment::set_merchant_data(const void* value, size_t size) {
1614  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1615  merchant_data_ = new ::std::string;
1616  }
1617  merchant_data_->assign(reinterpret_cast<const char*>(value), size);
1618 }
1619 inline ::std::string* Payment::mutable_merchant_data() {
1621  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1622  merchant_data_ = new ::std::string;
1623  }
1624  return merchant_data_;
1625 }
1626 inline ::std::string* Payment::release_merchant_data() {
1628  if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
1629  return NULL;
1630  } else {
1631  ::std::string* temp = merchant_data_;
1632  merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1633  return temp;
1634  }
1635 }
1636 inline void Payment::set_allocated_merchant_data(::std::string* merchant_data) {
1637  if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
1638  delete merchant_data_;
1639  }
1640  if (merchant_data) {
1643  } else {
1645  merchant_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1646  }
1647 }
1648 
1649 // repeated bytes transactions = 2;
1650 inline int Payment::transactions_size() const {
1651  return transactions_.size();
1652 }
1654  transactions_.Clear();
1655 }
1656 inline const ::std::string& Payment::transactions(int index) const {
1657  return transactions_.Get(index);
1658 }
1659 inline ::std::string* Payment::mutable_transactions(int index) {
1660  return transactions_.Mutable(index);
1661 }
1662 inline void Payment::set_transactions(int index, const ::std::string& value) {
1663  transactions_.Mutable(index)->assign(value);
1664 }
1665 inline void Payment::set_transactions(int index, const char* value) {
1666  transactions_.Mutable(index)->assign(value);
1667 }
1668 inline void Payment::set_transactions(int index, const void* value, size_t size) {
1669  transactions_.Mutable(index)->assign(
1670  reinterpret_cast<const char*>(value), size);
1671 }
1672 inline ::std::string* Payment::add_transactions() {
1673  return transactions_.Add();
1674 }
1675 inline void Payment::add_transactions(const ::std::string& value) {
1676  transactions_.Add()->assign(value);
1677 }
1678 inline void Payment::add_transactions(const char* value) {
1679  transactions_.Add()->assign(value);
1680 }
1681 inline void Payment::add_transactions(const void* value, size_t size) {
1682  transactions_.Add()->assign(reinterpret_cast<const char*>(value), size);
1683 }
1684 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1686  return transactions_;
1687 }
1688 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1690  return &transactions_;
1691 }
1692 
1693 // repeated .payments.Output refund_to = 3;
1694 inline int Payment::refund_to_size() const {
1695  return refund_to_.size();
1696 }
1698  refund_to_.Clear();
1699 }
1700 inline const ::payments::Output& Payment::refund_to(int index) const {
1701  return refund_to_.Get(index);
1702 }
1703 inline ::payments::Output* Payment::mutable_refund_to(int index) {
1704  return refund_to_.Mutable(index);
1705 }
1706 inline ::payments::Output* Payment::add_refund_to() {
1707  return refund_to_.Add();
1708 }
1709 inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
1711  return refund_to_;
1712 }
1713 inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
1715  return &refund_to_;
1716 }
1717 
1718 // optional string memo = 4;
1719 inline bool Payment::has_memo() const {
1720  return (_has_bits_[0] & 0x00000008u) != 0;
1721 }
1722 inline void Payment::set_has_memo() {
1723  _has_bits_[0] |= 0x00000008u;
1724 }
1726  _has_bits_[0] &= ~0x00000008u;
1727 }
1728 inline void Payment::clear_memo() {
1729  if (memo_ != &::google::protobuf::internal::kEmptyString) {
1730  memo_->clear();
1731  }
1732  clear_has_memo();
1733 }
1734 inline const ::std::string& Payment::memo() const {
1735  return *memo_;
1736 }
1737 inline void Payment::set_memo(const ::std::string& value) {
1738  set_has_memo();
1739  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1740  memo_ = new ::std::string;
1741  }
1742  memo_->assign(value);
1743 }
1744 inline void Payment::set_memo(const char* value) {
1745  set_has_memo();
1746  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1747  memo_ = new ::std::string;
1748  }
1749  memo_->assign(value);
1750 }
1751 inline void Payment::set_memo(const char* value, size_t size) {
1752  set_has_memo();
1753  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1754  memo_ = new ::std::string;
1755  }
1756  memo_->assign(reinterpret_cast<const char*>(value), size);
1757 }
1758 inline ::std::string* Payment::mutable_memo() {
1759  set_has_memo();
1760  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1761  memo_ = new ::std::string;
1762  }
1763  return memo_;
1764 }
1765 inline ::std::string* Payment::release_memo() {
1766  clear_has_memo();
1767  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1768  return NULL;
1769  } else {
1770  ::std::string* temp = memo_;
1771  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1772  return temp;
1773  }
1774 }
1775 inline void Payment::set_allocated_memo(::std::string* memo) {
1776  if (memo_ != &::google::protobuf::internal::kEmptyString) {
1777  delete memo_;
1778  }
1779  if (memo) {
1780  set_has_memo();
1781  memo_ = memo;
1782  } else {
1783  clear_has_memo();
1784  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1785  }
1786 }
1787 
1788 // -------------------------------------------------------------------
1789 
1790 // PaymentACK
1791 
1792 // required .payments.Payment payment = 1;
1793 inline bool PaymentACK::has_payment() const {
1794  return (_has_bits_[0] & 0x00000001u) != 0;
1795 }
1797  _has_bits_[0] |= 0x00000001u;
1798 }
1800  _has_bits_[0] &= ~0x00000001u;
1801 }
1803  if (payment_ != NULL) payment_->::payments::Payment::Clear();
1805 }
1806 inline const ::payments::Payment& PaymentACK::payment() const {
1807  return payment_ != NULL ? *payment_ : *default_instance_->payment_;
1808 }
1809 inline ::payments::Payment* PaymentACK::mutable_payment() {
1810  set_has_payment();
1811  if (payment_ == NULL) payment_ = new ::payments::Payment;
1812  return payment_;
1813 }
1814 inline ::payments::Payment* PaymentACK::release_payment() {
1816  ::payments::Payment* temp = payment_;
1817  payment_ = NULL;
1818  return temp;
1819 }
1821  delete payment_;
1822  payment_ = payment;
1823  if (payment) {
1824  set_has_payment();
1825  } else {
1827  }
1828 }
1829 
1830 // optional string memo = 2;
1831 inline bool PaymentACK::has_memo() const {
1832  return (_has_bits_[0] & 0x00000002u) != 0;
1833 }
1835  _has_bits_[0] |= 0x00000002u;
1836 }
1838  _has_bits_[0] &= ~0x00000002u;
1839 }
1840 inline void PaymentACK::clear_memo() {
1841  if (memo_ != &::google::protobuf::internal::kEmptyString) {
1842  memo_->clear();
1843  }
1844  clear_has_memo();
1845 }
1846 inline const ::std::string& PaymentACK::memo() const {
1847  return *memo_;
1848 }
1849 inline void PaymentACK::set_memo(const ::std::string& value) {
1850  set_has_memo();
1851  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1852  memo_ = new ::std::string;
1853  }
1854  memo_->assign(value);
1855 }
1856 inline void PaymentACK::set_memo(const char* value) {
1857  set_has_memo();
1858  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1859  memo_ = new ::std::string;
1860  }
1861  memo_->assign(value);
1862 }
1863 inline void PaymentACK::set_memo(const char* value, size_t size) {
1864  set_has_memo();
1865  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1866  memo_ = new ::std::string;
1867  }
1868  memo_->assign(reinterpret_cast<const char*>(value), size);
1869 }
1870 inline ::std::string* PaymentACK::mutable_memo() {
1871  set_has_memo();
1872  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1873  memo_ = new ::std::string;
1874  }
1875  return memo_;
1876 }
1877 inline ::std::string* PaymentACK::release_memo() {
1878  clear_has_memo();
1879  if (memo_ == &::google::protobuf::internal::kEmptyString) {
1880  return NULL;
1881  } else {
1882  ::std::string* temp = memo_;
1883  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1884  return temp;
1885  }
1886 }
1887 inline void PaymentACK::set_allocated_memo(::std::string* memo) {
1888  if (memo_ != &::google::protobuf::internal::kEmptyString) {
1889  delete memo_;
1890  }
1891  if (memo) {
1892  set_has_memo();
1893  memo_ = memo;
1894  } else {
1895  clear_has_memo();
1896  memo_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
1897  }
1898 }
1899 
1900 
1901 // @@protoc_insertion_point(namespace_scope)
1902 
1903 } // namespace payments
1904 
1905 #ifndef SWIG
1906 namespace google {
1907 namespace protobuf {
1908 
1909 
1910 } // namespace google
1911 } // namespace protobuf
1912 #endif // SWIG
1913 
1914 // @@protoc_insertion_point(global_scope)
1915 
1916 #endif // PROTOBUF_paymentrequest_2eproto__INCLUDED
friend void protobuf_AddDesc_paymentrequest_2eproto()
::std::string * merchant_data_
friend void protobuf_AddDesc_paymentrequest_2eproto()
void protobuf_AddDesc_paymentrequest_2eproto()
::google::protobuf::uint64 expires_
const ::google::protobuf::RepeatedPtrField< ::std::string > & certificate() const
static const int kPkiDataFieldNumber
static const Output & default_instance()
::google::protobuf::Metadata GetMetadata() const
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()
static const int kPaymentDetailsVersionFieldNumber
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()
PaymentACK * New() const
static const int kPkiTypeFieldNumber
inline::std::string * release_memo()
void set_script(const ::std::string &value)
void set_memo(const ::std::string &value)
static const PaymentACK & default_instance()
void set_allocated_memo(::std::string *memo)
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
inline::std::string * release_serialized_payment_details()
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
void set_pki_data(const ::std::string &value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void MergeFrom(const ::google::protobuf::Message &from)
static const int kNetworkFieldNumber
::google::protobuf::Metadata GetMetadata() const
inline::std::string * release_memo()
void CopyFrom(const ::google::protobuf::Message &from)
void set_allocated_merchant_data(::std::string *merchant_data)
void CopyFrom(const ::google::protobuf::Message &from)
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
void Swap(PaymentRequest *other)
::std::string * _default_network_
static const ::google::protobuf::Descriptor * descriptor()
friend void protobuf_AddDesc_paymentrequest_2eproto()
void set_allocated_signature(::std::string *signature)
static const PaymentRequest & default_instance()
static const int kAmountFieldNumber
::google::protobuf::uint32 _has_bits_[(5+31)/32]
const ::std::string & pki_data() const
void Swap(PaymentDetails *other)
friend void protobuf_ShutdownFile_paymentrequest_2eproto()
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
friend void protobuf_ShutdownFile_paymentrequest_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
static const int kTimeFieldNumber
const ::std::string & memo() const
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const int kRefundToFieldNumber
const ::std::string & signature() const
inline::std::string * release_network()
inline::std::string * mutable_script()
static const ::google::protobuf::Descriptor * descriptor()
inline::std::string * mutable_memo()
int GetCachedSize() const
inline::std::string * release_merchant_data()
::google::protobuf::Metadata GetMetadata() const
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()
static const int kPaymentUrlFieldNumber
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
static const ::google::protobuf::Descriptor * descriptor()
static const int kOutputsFieldNumber
int GetCachedSize() const
PaymentDetails * New() 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
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
static PaymentDetails * default_instance_
Output * New() const
inline::std::string * mutable_network()
friend void protobuf_AddDesc_paymentrequest_2eproto()
static Payment * default_instance_
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const int kCertificateFieldNumber
static const int kExpiresFieldNumber
void set_allocated_serialized_payment_details(::std::string *serialized_payment_details)
X509Certificates * New() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
friend void protobuf_AssignDesc_paymentrequest_2eproto()
inline::std::string * release_signature()
void protobuf_AssignDesc_paymentrequest_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
void Swap(PaymentACK *other)
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)
::google::protobuf::uint32 _has_bits_[(2+31)/32]
const ::std::string & memo() const
inline::std::string * add_certificate()
inline::std::string * release_script()
void MergeFrom(const ::google::protobuf::Message &from)
inline::payments::Output * add_outputs()
::google::protobuf::UnknownFieldSet _unknown_fields_
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
friend void protobuf_AddDesc_paymentrequest_2eproto()
inline::std::string * mutable_serialized_payment_details()
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
void set_allocated_payment_url(::std::string *payment_url)
void MergeFrom(const ::google::protobuf::Message &from)
void set_certificate(int index, const ::std::string &value)
void SetCachedSize(int size) const
int transactions_size() const
void SetCachedSize(int size) const
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
::google::protobuf::uint32 _has_bits_[(2+31)/32]
inline::std::string * release_memo()
static const int kTransactionsFieldNumber
static const PaymentDetails & default_instance()
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
void CopyFrom(const ::google::protobuf::Message &from)
::google::protobuf::uint32 payment_details_version_
::std::string * script_
PaymentRequest & operator=(const PaymentRequest &from)
void MergeFrom(const ::google::protobuf::Message &from)
void set_allocated_memo(::std::string *memo)
inline::std::string * mutable_memo()
void set_allocated_memo(::std::string *memo)
void MergeFrom(const ::google::protobuf::Message &from)
inline::std::string * mutable_merchant_data()
void set_allocated_merchant_data(::std::string *merchant_data)
friend void protobuf_AssignDesc_paymentrequest_2eproto()
inline::google::protobuf::RepeatedPtrField< ::std::string > * mutable_certificate()
inline::google::protobuf::uint64 amount() const
static const X509Certificates & default_instance()
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void SetCachedSize(int size) const
friend void protobuf_ShutdownFile_paymentrequest_2eproto()
void MergeFrom(const ::google::protobuf::Message &from)
void CopyFrom(const ::google::protobuf::Message &from)
bool has_merchant_data() const
::std::string * _default_pki_type_
void Swap(Output *other)
void Swap(X509Certificates *other)
static const int kMemoFieldNumber
::std::string * merchant_data_
::std::string * memo_
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
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::Metadata GetMetadata() const
::google::protobuf::uint32 _has_bits_[(1+31)/32]
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
friend void protobuf_AssignDesc_paymentrequest_2eproto()
::google::protobuf::uint32 _has_bits_[(4+31)/32]
::google::protobuf::uint64 amount_
friend void protobuf_ShutdownFile_paymentrequest_2eproto()
friend void protobuf_AssignDesc_paymentrequest_2eproto()
void set_pki_type(const ::std::string &value)
void set_allocated_pki_type(::std::string *pki_type)
void CopyFrom(const ::google::protobuf::Message &from)
bool has_payment_details_version() const
void CopyFrom(const ::google::protobuf::Message &from)
Payment * New() 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_
friend void protobuf_AssignDesc_paymentrequest_2eproto()
static const ::google::protobuf::Descriptor * descriptor()
inline::std::string * mutable_pki_data()
static const Payment & default_instance()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
static const int kMemoFieldNumber
void Swap(Payment *other)
inline::payments::Output * add_refund_to()
static const ::google::protobuf::Descriptor * descriptor()
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::uint32 _has_bits_[(7+31)/32]
void SetCachedSize(int size) const
void SetCachedSize(int size) const
friend void protobuf_ShutdownFile_paymentrequest_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
static const int kPaymentFieldNumber
inline::google::protobuf::RepeatedPtrField< ::payments::Output > * mutable_refund_to()
static const int kSerializedPaymentDetailsFieldNumber
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)
void SetCachedSize(int size) const
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
::google::protobuf::RepeatedPtrField< ::payments::Output > outputs_
static const int kMerchantDataFieldNumber
inline::std::string * release_pki_type()
bool IsInitialized() const
void set_memo(const ::std::string &value)
PaymentRequest * New() const
static const int kMerchantDataFieldNumber
inline::std::string * release_payment_url()
friend void protobuf_AddDesc_paymentrequest_2eproto()
bool has_serialized_payment_details() const
static const int kMemoFieldNumber
PaymentDetails & operator=(const PaymentDetails &from)
static const int kSignatureFieldNumber
inline::google::protobuf::uint64 time() const
X509Certificates & operator=(const X509Certificates &from)
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::RepeatedPtrField< ::std::string > transactions_
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
::google::protobuf::UnknownFieldSet _unknown_fields_
bool has_memo() const
::google::protobuf::Metadata GetMetadata() const
const ::std::string & pki_type() const
friend void protobuf_ShutdownFile_paymentrequest_2eproto()
void set_payment_details_version(::google::protobuf::uint32 value)