LCOV - code coverage report
Current view: top level - src/qt - paymentrequest.pb.h (source / functions) Hit Total Coverage
Test: total_coverage.info Lines: 113 302 37.4 %
Date: 2015-10-12 22:39:14 Functions: 13 83 15.7 %
Legend: Lines: hit not hit

          Line data    Source code
       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.
      32             : void  protobuf_AddDesc_paymentrequest_2eproto();
      33             : void protobuf_AssignDesc_paymentrequest_2eproto();
      34             : void protobuf_ShutdownFile_paymentrequest_2eproto();
      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          36 :     return _unknown_fields_;
      59             :   }
      60             : 
      61             :   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
      62          46 :     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;
      81             :   bool MergePartialFromCodedStream(
      82             :       ::google::protobuf::io::CodedInputStream* input);
      83             :   void SerializeWithCachedSizes(
      84             :       ::google::protobuf::io::CodedOutputStream* output) const;
      85             :   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
      86           0 :   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             : 
     133             :   friend void  protobuf_AddDesc_paymentrequest_2eproto();
     134             :   friend void protobuf_AssignDesc_paymentrequest_2eproto();
     135             :   friend void protobuf_ShutdownFile_paymentrequest_2eproto();
     136             : 
     137             :   void InitAsDefaultInstance();
     138             :   static Output* default_instance_;
     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          26 :     CopyFrom(from);
     151             :     return *this;
     152             :   }
     153             : 
     154             :   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
     155          44 :     return _unknown_fields_;
     156             :   }
     157             : 
     158             :   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
     159          81 :     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;
     178             :   bool MergePartialFromCodedStream(
     179             :       ::google::protobuf::io::CodedInputStream* input);
     180             :   void SerializeWithCachedSizes(
     181             :       ::google::protobuf::io::CodedOutputStream* output) const;
     182             :   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
     183           0 :   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             : 
     299             :   friend void  protobuf_AddDesc_paymentrequest_2eproto();
     300             :   friend void protobuf_AssignDesc_paymentrequest_2eproto();
     301             :   friend void protobuf_ShutdownFile_paymentrequest_2eproto();
     302             : 
     303             :   void InitAsDefaultInstance();
     304             :   static PaymentDetails* default_instance_;
     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          26 :     CopyFrom(from);
     317             :     return *this;
     318             :   }
     319             : 
     320             :   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
     321          56 :     return _unknown_fields_;
     322             :   }
     323             : 
     324             :   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
     325          85 :     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;
     344             :   bool MergePartialFromCodedStream(
     345             :       ::google::protobuf::io::CodedInputStream* input);
     346             :   void SerializeWithCachedSizes(
     347             :       ::google::protobuf::io::CodedOutputStream* output) const;
     348             :   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
     349           0 :   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();
     396             :   static const int kSerializedPaymentDetailsFieldNumber = 4;
     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();
     403             :   inline void set_allocated_serialized_payment_details(::std::string* 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();
     425             :   inline void set_has_serialized_payment_details();
     426             :   inline void clear_has_serialized_payment_details();
     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_;
     435             :   ::std::string* serialized_payment_details_;
     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             : 
     442             :   friend void  protobuf_AddDesc_paymentrequest_2eproto();
     443             :   friend void protobuf_AssignDesc_paymentrequest_2eproto();
     444             :   friend void protobuf_ShutdownFile_paymentrequest_2eproto();
     445             : 
     446             :   void InitAsDefaultInstance();
     447             :   static PaymentRequest* default_instance_;
     448             : };
     449             : // -------------------------------------------------------------------
     450             : 
     451             : class X509Certificates : public ::google::protobuf::Message {
     452             :  public:
     453             :   X509Certificates();
     454             :   virtual ~X509Certificates();
     455             : 
     456             :   X509Certificates(const X509Certificates& from);
     457             : 
     458             :   inline X509Certificates& operator=(const X509Certificates& from) {
     459             :     CopyFrom(from);
     460             :     return *this;
     461             :   }
     462             : 
     463             :   inline const ::google::protobuf::UnknownFieldSet& unknown_fields() const {
     464           0 :     return _unknown_fields_;
     465             :   }
     466             : 
     467             :   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
     468          12 :     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;
     487             :   bool MergePartialFromCodedStream(
     488             :       ::google::protobuf::io::CodedInputStream* input);
     489             :   void SerializeWithCachedSizes(
     490             :       ::google::protobuf::io::CodedOutputStream* output) const;
     491             :   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
     492           0 :   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             : 
     531             :   friend void  protobuf_AddDesc_paymentrequest_2eproto();
     532             :   friend void protobuf_AssignDesc_paymentrequest_2eproto();
     533             :   friend void protobuf_ShutdownFile_paymentrequest_2eproto();
     534             : 
     535             :   void InitAsDefaultInstance();
     536             :   static X509Certificates* default_instance_;
     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           0 :     return _unknown_fields_;
     554             :   }
     555             : 
     556             :   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
     557           0 :     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;
     576             :   bool MergePartialFromCodedStream(
     577             :       ::google::protobuf::io::CodedInputStream* input);
     578             :   void SerializeWithCachedSizes(
     579             :       ::google::protobuf::io::CodedOutputStream* output) const;
     580             :   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
     581           0 :   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 >*
     632             :       mutable_refund_to();
     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             : 
     663             :   friend void  protobuf_AddDesc_paymentrequest_2eproto();
     664             :   friend void protobuf_AssignDesc_paymentrequest_2eproto();
     665             :   friend void protobuf_ShutdownFile_paymentrequest_2eproto();
     666             : 
     667             :   void InitAsDefaultInstance();
     668             :   static Payment* default_instance_;
     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           0 :     return _unknown_fields_;
     686             :   }
     687             : 
     688             :   inline ::google::protobuf::UnknownFieldSet* mutable_unknown_fields() {
     689           0 :     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;
     708             :   bool MergePartialFromCodedStream(
     709             :       ::google::protobuf::io::CodedInputStream* input);
     710             :   void SerializeWithCachedSizes(
     711             :       ::google::protobuf::io::CodedOutputStream* output) const;
     712             :   ::google::protobuf::uint8* SerializeWithCachedSizesToArray(::google::protobuf::uint8* output) const;
     713           0 :   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();
     733             :   inline void set_allocated_payment(::payments::Payment* 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             : 
     756             :   ::payments::Payment* payment_;
     757             :   ::std::string* memo_;
     758             : 
     759             :   mutable int _cached_size_;
     760             :   ::google::protobuf::uint32 _has_bits_[(2 + 31) / 32];
     761             : 
     762             :   friend void  protobuf_AddDesc_paymentrequest_2eproto();
     763             :   friend void protobuf_AssignDesc_paymentrequest_2eproto();
     764             :   friend void protobuf_ShutdownFile_paymentrequest_2eproto();
     765             : 
     766             :   void InitAsDefaultInstance();
     767             :   static PaymentACK* default_instance_;
     768             : };
     769             : // ===================================================================
     770             : 
     771             : 
     772             : // ===================================================================
     773             : 
     774             : // Output
     775             : 
     776             : // optional uint64 amount = 1 [default = 0];
     777           0 : inline bool Output::has_amount() const {
     778          36 :   return (_has_bits_[0] & 0x00000001u) != 0;
     779             : }
     780           0 : inline void Output::set_has_amount() {
     781          47 :   _has_bits_[0] |= 0x00000001u;
     782           0 : }
     783             : inline void Output::clear_has_amount() {
     784             :   _has_bits_[0] &= ~0x00000001u;
     785             : }
     786             : inline void Output::clear_amount() {
     787             :   amount_ = GOOGLE_ULONGLONG(0);
     788             :   clear_has_amount();
     789             : }
     790           0 : inline ::google::protobuf::uint64 Output::amount() const {
     791           0 :   return amount_;
     792             : }
     793             : inline void Output::set_amount(::google::protobuf::uint64 value) {
     794          36 :   set_has_amount();
     795          36 :   amount_ = value;
     796             : }
     797             : 
     798             : // required bytes script = 2;
     799           0 : inline bool Output::has_script() const {
     800          46 :   return (_has_bits_[0] & 0x00000002u) != 0;
     801             : }
     802           0 : inline void Output::set_has_script() {
     803          47 :   _has_bits_[0] |= 0x00000002u;
     804           0 : }
     805             : inline void Output::clear_has_script() {
     806             :   _has_bits_[0] &= ~0x00000002u;
     807             : }
     808             : inline void Output::clear_script() {
     809             :   if (script_ != &::google::protobuf::internal::kEmptyString) {
     810             :     script_->clear();
     811             :   }
     812             :   clear_has_script();
     813             : }
     814           0 : inline const ::std::string& Output::script() const {
     815           0 :   return *script_;
     816             : }
     817          36 : inline void Output::set_script(const ::std::string& value) {
     818          36 :   set_has_script();
     819          36 :   if (script_ == &::google::protobuf::internal::kEmptyString) {
     820          62 :     script_ = new ::std::string;
     821             :   }
     822          36 :   script_->assign(value);
     823          36 : }
     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           0 : inline void Output::set_script(const void* value, size_t size) {
     832           0 :   set_has_script();
     833           0 :   if (script_ == &::google::protobuf::internal::kEmptyString) {
     834           0 :     script_ = new ::std::string;
     835             :   }
     836           0 :   script_->assign(reinterpret_cast<const char*>(value), size);
     837           0 : }
     838          11 : inline ::std::string* Output::mutable_script() {
     839          11 :   set_has_script();
     840          11 :   if (script_ == &::google::protobuf::internal::kEmptyString) {
     841          12 :     script_ = new ::std::string;
     842             :   }
     843          11 :   return script_;
     844             : }
     845             : inline ::std::string* Output::release_script() {
     846             :   clear_has_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 {
     863             :     clear_has_script();
     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           0 : inline bool PaymentDetails::has_network() const {
     874          46 :   return (_has_bits_[0] & 0x00000001u) != 0;
     875             : }
     876           0 : inline void PaymentDetails::set_has_network() {
     877           5 :   _has_bits_[0] |= 0x00000001u;
     878           0 : }
     879             : inline void PaymentDetails::clear_has_network() {
     880             :   _has_bits_[0] &= ~0x00000001u;
     881             : }
     882             : inline void PaymentDetails::clear_network() {
     883             :   if (network_ != _default_network_) {
     884             :     network_->assign(*_default_network_);
     885             :   }
     886             :   clear_has_network();
     887             : }
     888           0 : inline const ::std::string& PaymentDetails::network() const {
     889           0 :   return *network_;
     890             : }
     891           0 : inline void PaymentDetails::set_network(const ::std::string& value) {
     892           0 :   set_has_network();
     893           0 :   if (network_ == _default_network_) {
     894           0 :     network_ = new ::std::string;
     895             :   }
     896           0 :   network_->assign(value);
     897           0 : }
     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           5 : inline ::std::string* PaymentDetails::mutable_network() {
     913           5 :   set_has_network();
     914           5 :   if (network_ == _default_network_) {
     915           1 :     network_ = new ::std::string(*_default_network_);
     916             :   }
     917           5 :   return network_;
     918             : }
     919             : inline ::std::string* PaymentDetails::release_network() {
     920             :   clear_has_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 {
     937             :     clear_has_network();
     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          36 :   return outputs_.size();
     945             : }
     946             : inline void PaymentDetails::clear_outputs() {
     947             :   outputs_.Clear();
     948             : }
     949             : inline const ::payments::Output& PaymentDetails::outputs(int index) const {
     950          32 :   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          11 :   return outputs_.Add();
     957             : }
     958             : inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
     959             : PaymentDetails::outputs() const {
     960             :   return outputs_;
     961             : }
     962             : inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
     963             : PaymentDetails::mutable_outputs() {
     964             :   return &outputs_;
     965             : }
     966             : 
     967             : // required uint64 time = 3;
     968           0 : inline bool PaymentDetails::has_time() const {
     969          36 :   return (_has_bits_[0] & 0x00000004u) != 0;
     970             : }
     971           0 : inline void PaymentDetails::set_has_time() {
     972          47 :   _has_bits_[0] |= 0x00000004u;
     973           0 : }
     974             : inline void PaymentDetails::clear_has_time() {
     975             :   _has_bits_[0] &= ~0x00000004u;
     976             : }
     977             : inline void PaymentDetails::clear_time() {
     978             :   time_ = GOOGLE_ULONGLONG(0);
     979             :   clear_has_time();
     980             : }
     981           0 : inline ::google::protobuf::uint64 PaymentDetails::time() const {
     982           0 :   return time_;
     983             : }
     984             : inline void PaymentDetails::set_time(::google::protobuf::uint64 value) {
     985          36 :   set_has_time();
     986          36 :   time_ = value;
     987             : }
     988             : 
     989             : // optional uint64 expires = 4;
     990           0 : inline bool PaymentDetails::has_expires() const {
     991          45 :   return (_has_bits_[0] & 0x00000008u) != 0;
     992             : }
     993           0 : inline void PaymentDetails::set_has_expires() {
     994           3 :   _has_bits_[0] |= 0x00000008u;
     995           0 : }
     996             : inline void PaymentDetails::clear_has_expires() {
     997             :   _has_bits_[0] &= ~0x00000008u;
     998             : }
     999             : inline void PaymentDetails::clear_expires() {
    1000             :   expires_ = GOOGLE_ULONGLONG(0);
    1001             :   clear_has_expires();
    1002             : }
    1003           0 : inline ::google::protobuf::uint64 PaymentDetails::expires() const {
    1004           0 :   return expires_;
    1005             : }
    1006             : inline void PaymentDetails::set_expires(::google::protobuf::uint64 value) {
    1007           0 :   set_has_expires();
    1008           0 :   expires_ = value;
    1009             : }
    1010             : 
    1011             : // optional string memo = 5;
    1012           0 : inline bool PaymentDetails::has_memo() const {
    1013          46 :   return (_has_bits_[0] & 0x00000010u) != 0;
    1014             : }
    1015           0 : inline void PaymentDetails::set_has_memo() {
    1016          47 :   _has_bits_[0] |= 0x00000010u;
    1017           0 : }
    1018             : inline void PaymentDetails::clear_has_memo() {
    1019             :   _has_bits_[0] &= ~0x00000010u;
    1020             : }
    1021             : inline void PaymentDetails::clear_memo() {
    1022             :   if (memo_ != &::google::protobuf::internal::kEmptyString) {
    1023             :     memo_->clear();
    1024             :   }
    1025             :   clear_has_memo();
    1026             : }
    1027           0 : inline const ::std::string& PaymentDetails::memo() const {
    1028           0 :   return *memo_;
    1029             : }
    1030          36 : inline void PaymentDetails::set_memo(const ::std::string& value) {
    1031          36 :   set_has_memo();
    1032          36 :   if (memo_ == &::google::protobuf::internal::kEmptyString) {
    1033          62 :     memo_ = new ::std::string;
    1034             :   }
    1035          36 :   memo_->assign(value);
    1036          36 : }
    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          11 : inline ::std::string* PaymentDetails::mutable_memo() {
    1052          11 :   set_has_memo();
    1053          11 :   if (memo_ == &::google::protobuf::internal::kEmptyString) {
    1054          12 :     memo_ = new ::std::string;
    1055             :   }
    1056          11 :   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           0 : inline bool PaymentDetails::has_payment_url() const {
    1083          46 :   return (_has_bits_[0] & 0x00000020u) != 0;
    1084             : }
    1085           0 : inline void PaymentDetails::set_has_payment_url() {
    1086           0 :   _has_bits_[0] |= 0x00000020u;
    1087           0 : }
    1088             : inline void PaymentDetails::clear_has_payment_url() {
    1089             :   _has_bits_[0] &= ~0x00000020u;
    1090             : }
    1091             : inline void PaymentDetails::clear_payment_url() {
    1092             :   if (payment_url_ != &::google::protobuf::internal::kEmptyString) {
    1093             :     payment_url_->clear();
    1094             :   }
    1095             :   clear_has_payment_url();
    1096             : }
    1097           0 : inline const ::std::string& PaymentDetails::payment_url() const {
    1098           0 :   return *payment_url_;
    1099             : }
    1100           0 : inline void PaymentDetails::set_payment_url(const ::std::string& value) {
    1101           0 :   set_has_payment_url();
    1102           0 :   if (payment_url_ == &::google::protobuf::internal::kEmptyString) {
    1103           0 :     payment_url_ = new ::std::string;
    1104             :   }
    1105           0 :   payment_url_->assign(value);
    1106           0 : }
    1107             : inline void PaymentDetails::set_payment_url(const char* value) {
    1108             :   set_has_payment_url();
    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) {
    1115             :   set_has_payment_url();
    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           0 : inline ::std::string* PaymentDetails::mutable_payment_url() {
    1122           0 :   set_has_payment_url();
    1123           0 :   if (payment_url_ == &::google::protobuf::internal::kEmptyString) {
    1124           0 :     payment_url_ = new ::std::string;
    1125             :   }
    1126           0 :   return payment_url_;
    1127             : }
    1128             : inline ::std::string* PaymentDetails::release_payment_url() {
    1129             :   clear_has_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) {
    1143             :     set_has_payment_url();
    1144             :     payment_url_ = payment_url;
    1145             :   } else {
    1146             :     clear_has_payment_url();
    1147             :     payment_url_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
    1148             :   }
    1149             : }
    1150             : 
    1151             : // optional bytes merchant_data = 7;
    1152           0 : inline bool PaymentDetails::has_merchant_data() const {
    1153          46 :   return (_has_bits_[0] & 0x00000040u) != 0;
    1154             : }
    1155           0 : inline void PaymentDetails::set_has_merchant_data() {
    1156           0 :   _has_bits_[0] |= 0x00000040u;
    1157           0 : }
    1158             : inline void PaymentDetails::clear_has_merchant_data() {
    1159             :   _has_bits_[0] &= ~0x00000040u;
    1160             : }
    1161             : inline void PaymentDetails::clear_merchant_data() {
    1162             :   if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
    1163             :     merchant_data_->clear();
    1164             :   }
    1165             :   clear_has_merchant_data();
    1166             : }
    1167           0 : inline const ::std::string& PaymentDetails::merchant_data() const {
    1168           0 :   return *merchant_data_;
    1169             : }
    1170           0 : inline void PaymentDetails::set_merchant_data(const ::std::string& value) {
    1171           0 :   set_has_merchant_data();
    1172           0 :   if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
    1173           0 :     merchant_data_ = new ::std::string;
    1174             :   }
    1175           0 :   merchant_data_->assign(value);
    1176           0 : }
    1177             : inline void PaymentDetails::set_merchant_data(const char* value) {
    1178             :   set_has_merchant_data();
    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) {
    1185             :   set_has_merchant_data();
    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           0 : inline ::std::string* PaymentDetails::mutable_merchant_data() {
    1192           0 :   set_has_merchant_data();
    1193           0 :   if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
    1194           0 :     merchant_data_ = new ::std::string;
    1195             :   }
    1196           0 :   return merchant_data_;
    1197             : }
    1198             : inline ::std::string* PaymentDetails::release_merchant_data() {
    1199             :   clear_has_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) {
    1213             :     set_has_merchant_data();
    1214             :     merchant_data_ = merchant_data;
    1215             :   } else {
    1216             :     clear_has_merchant_data();
    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];
    1226           0 : inline bool PaymentRequest::has_payment_details_version() const {
    1227          48 :   return (_has_bits_[0] & 0x00000001u) != 0;
    1228             : }
    1229           0 : inline void PaymentRequest::set_has_payment_details_version() {
    1230           0 :   _has_bits_[0] |= 0x00000001u;
    1231           0 : }
    1232             : inline void PaymentRequest::clear_has_payment_details_version() {
    1233             :   _has_bits_[0] &= ~0x00000001u;
    1234             : }
    1235             : inline void PaymentRequest::clear_payment_details_version() {
    1236             :   payment_details_version_ = 1u;
    1237             :   clear_has_payment_details_version();
    1238             : }
    1239           0 : inline ::google::protobuf::uint32 PaymentRequest::payment_details_version() const {
    1240           0 :   return payment_details_version_;
    1241             : }
    1242             : inline void PaymentRequest::set_payment_details_version(::google::protobuf::uint32 value) {
    1243           0 :   set_has_payment_details_version();
    1244           0 :   payment_details_version_ = value;
    1245             : }
    1246             : 
    1247             : // optional string pki_type = 2 [default = "none"];
    1248           0 : inline bool PaymentRequest::has_pki_type() const {
    1249          58 :   return (_has_bits_[0] & 0x00000002u) != 0;
    1250             : }
    1251           0 : inline void PaymentRequest::set_has_pki_type() {
    1252          51 :   _has_bits_[0] |= 0x00000002u;
    1253           0 : }
    1254             : inline void PaymentRequest::clear_has_pki_type() {
    1255             :   _has_bits_[0] &= ~0x00000002u;
    1256             : }
    1257             : inline void PaymentRequest::clear_pki_type() {
    1258             :   if (pki_type_ != _default_pki_type_) {
    1259             :     pki_type_->assign(*_default_pki_type_);
    1260             :   }
    1261             :   clear_has_pki_type();
    1262             : }
    1263           0 : inline const ::std::string& PaymentRequest::pki_type() const {
    1264           0 :   return *pki_type_;
    1265             : }
    1266          40 : inline void PaymentRequest::set_pki_type(const ::std::string& value) {
    1267          40 :   set_has_pki_type();
    1268          40 :   if (pki_type_ == _default_pki_type_) {
    1269          70 :     pki_type_ = new ::std::string;
    1270             :   }
    1271          40 :   pki_type_->assign(value);
    1272          40 : }
    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          11 : inline ::std::string* PaymentRequest::mutable_pki_type() {
    1288          11 :   set_has_pki_type();
    1289          11 :   if (pki_type_ == _default_pki_type_) {
    1290           6 :     pki_type_ = new ::std::string(*_default_pki_type_);
    1291             :   }
    1292          11 :   return pki_type_;
    1293             : }
    1294             : inline ::std::string* PaymentRequest::release_pki_type() {
    1295             :   clear_has_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 {
    1312             :     clear_has_pki_type();
    1313             :     pki_type_ = const_cast< ::std::string*>(_default_pki_type_);
    1314             :   }
    1315             : }
    1316             : 
    1317             : // optional bytes pki_data = 3;
    1318           0 : inline bool PaymentRequest::has_pki_data() const {
    1319          58 :   return (_has_bits_[0] & 0x00000004u) != 0;
    1320             : }
    1321           0 : inline void PaymentRequest::set_has_pki_data() {
    1322          51 :   _has_bits_[0] |= 0x00000004u;
    1323           0 : }
    1324             : inline void PaymentRequest::clear_has_pki_data() {
    1325             :   _has_bits_[0] &= ~0x00000004u;
    1326             : }
    1327             : inline void PaymentRequest::clear_pki_data() {
    1328             :   if (pki_data_ != &::google::protobuf::internal::kEmptyString) {
    1329             :     pki_data_->clear();
    1330             :   }
    1331             :   clear_has_pki_data();
    1332             : }
    1333           0 : inline const ::std::string& PaymentRequest::pki_data() const {
    1334           0 :   return *pki_data_;
    1335             : }
    1336          40 : inline void PaymentRequest::set_pki_data(const ::std::string& value) {
    1337          40 :   set_has_pki_data();
    1338          40 :   if (pki_data_ == &::google::protobuf::internal::kEmptyString) {
    1339          70 :     pki_data_ = new ::std::string;
    1340             :   }
    1341          40 :   pki_data_->assign(value);
    1342          40 : }
    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          11 : inline ::std::string* PaymentRequest::mutable_pki_data() {
    1358          11 :   set_has_pki_data();
    1359          11 :   if (pki_data_ == &::google::protobuf::internal::kEmptyString) {
    1360          12 :     pki_data_ = new ::std::string;
    1361             :   }
    1362          11 :   return pki_data_;
    1363             : }
    1364             : inline ::std::string* PaymentRequest::release_pki_data() {
    1365             :   clear_has_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 {
    1382             :     clear_has_pki_data();
    1383             :     pki_data_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
    1384             :   }
    1385             : }
    1386             : 
    1387             : // required bytes serialized_payment_details = 4;
    1388           0 : inline bool PaymentRequest::has_serialized_payment_details() const {
    1389          58 :   return (_has_bits_[0] & 0x00000008u) != 0;
    1390             : }
    1391           0 : inline void PaymentRequest::set_has_serialized_payment_details() {
    1392          51 :   _has_bits_[0] |= 0x00000008u;
    1393           0 : }
    1394             : inline void PaymentRequest::clear_has_serialized_payment_details() {
    1395             :   _has_bits_[0] &= ~0x00000008u;
    1396             : }
    1397             : inline void PaymentRequest::clear_serialized_payment_details() {
    1398             :   if (serialized_payment_details_ != &::google::protobuf::internal::kEmptyString) {
    1399             :     serialized_payment_details_->clear();
    1400             :   }
    1401             :   clear_has_serialized_payment_details();
    1402             : }
    1403           0 : inline const ::std::string& PaymentRequest::serialized_payment_details() const {
    1404           0 :   return *serialized_payment_details_;
    1405             : }
    1406          40 : inline void PaymentRequest::set_serialized_payment_details(const ::std::string& value) {
    1407          40 :   set_has_serialized_payment_details();
    1408          40 :   if (serialized_payment_details_ == &::google::protobuf::internal::kEmptyString) {
    1409          70 :     serialized_payment_details_ = new ::std::string;
    1410             :   }
    1411          40 :   serialized_payment_details_->assign(value);
    1412          40 : }
    1413             : inline void PaymentRequest::set_serialized_payment_details(const char* value) {
    1414             :   set_has_serialized_payment_details();
    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) {
    1421             :   set_has_serialized_payment_details();
    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             : }
    1427          11 : inline ::std::string* PaymentRequest::mutable_serialized_payment_details() {
    1428          11 :   set_has_serialized_payment_details();
    1429          11 :   if (serialized_payment_details_ == &::google::protobuf::internal::kEmptyString) {
    1430          12 :     serialized_payment_details_ = new ::std::string;
    1431             :   }
    1432          11 :   return serialized_payment_details_;
    1433             : }
    1434             : inline ::std::string* PaymentRequest::release_serialized_payment_details() {
    1435             :   clear_has_serialized_payment_details();
    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) {
    1446             :     delete serialized_payment_details_;
    1447             :   }
    1448             :   if (serialized_payment_details) {
    1449             :     set_has_serialized_payment_details();
    1450             :     serialized_payment_details_ = serialized_payment_details;
    1451             :   } else {
    1452             :     clear_has_serialized_payment_details();
    1453             :     serialized_payment_details_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
    1454             :   }
    1455             : }
    1456             : 
    1457             : // optional bytes signature = 5;
    1458           0 : inline bool PaymentRequest::has_signature() const {
    1459          58 :   return (_has_bits_[0] & 0x00000010u) != 0;
    1460             : }
    1461           0 : inline void PaymentRequest::set_has_signature() {
    1462          55 :   _has_bits_[0] |= 0x00000010u;
    1463           0 : }
    1464             : inline void PaymentRequest::clear_has_signature() {
    1465             :   _has_bits_[0] &= ~0x00000010u;
    1466             : }
    1467             : inline void PaymentRequest::clear_signature() {
    1468             :   if (signature_ != &::google::protobuf::internal::kEmptyString) {
    1469             :     signature_->clear();
    1470             :   }
    1471             :   clear_has_signature();
    1472             : }
    1473           0 : inline const ::std::string& PaymentRequest::signature() const {
    1474           0 :   return *signature_;
    1475             : }
    1476          44 : inline void PaymentRequest::set_signature(const ::std::string& value) {
    1477          44 :   set_has_signature();
    1478          44 :   if (signature_ == &::google::protobuf::internal::kEmptyString) {
    1479          70 :     signature_ = new ::std::string;
    1480             :   }
    1481          44 :   signature_->assign(value);
    1482          44 : }
    1483             : inline void PaymentRequest::set_signature(const char* value) {
    1484             :   set_has_signature();
    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) {
    1491             :   set_has_signature();
    1492             :   if (signature_ == &::google::protobuf::internal::kEmptyString) {
    1493             :     signature_ = new ::std::string;
    1494             :   }
    1495             :   signature_->assign(reinterpret_cast<const char*>(value), size);
    1496             : }
    1497          11 : inline ::std::string* PaymentRequest::mutable_signature() {
    1498          11 :   set_has_signature();
    1499          11 :   if (signature_ == &::google::protobuf::internal::kEmptyString) {
    1500          12 :     signature_ = new ::std::string;
    1501             :   }
    1502          11 :   return signature_;
    1503             : }
    1504             : inline ::std::string* PaymentRequest::release_signature() {
    1505             :   clear_has_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) {
    1519             :     set_has_signature();
    1520             :     signature_ = signature;
    1521             :   } else {
    1522             :     clear_has_signature();
    1523             :     signature_ = const_cast< ::std::string*>(&::google::protobuf::internal::kEmptyString);
    1524             :   }
    1525             : }
    1526             : 
    1527             : // -------------------------------------------------------------------
    1528             : 
    1529             : // X509Certificates
    1530             : 
    1531             : // repeated bytes certificate = 1;
    1532             : inline int X509Certificates::certificate_size() const {
    1533          44 :   return certificate_.size();
    1534             : }
    1535             : inline void X509Certificates::clear_certificate() {
    1536             :   certificate_.Clear();
    1537             : }
    1538             : inline const ::std::string& X509Certificates::certificate(int index) const {
    1539         136 :   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          44 :   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>&
    1567             : X509Certificates::certificate() const {
    1568             :   return certificate_;
    1569             : }
    1570             : inline ::google::protobuf::RepeatedPtrField< ::std::string>*
    1571             : X509Certificates::mutable_certificate() {
    1572             :   return &certificate_;
    1573             : }
    1574             : 
    1575             : // -------------------------------------------------------------------
    1576             : 
    1577             : // Payment
    1578             : 
    1579             : // optional bytes merchant_data = 1;
    1580           0 : inline bool Payment::has_merchant_data() const {
    1581           0 :   return (_has_bits_[0] & 0x00000001u) != 0;
    1582             : }
    1583           0 : inline void Payment::set_has_merchant_data() {
    1584           0 :   _has_bits_[0] |= 0x00000001u;
    1585           0 : }
    1586             : inline void Payment::clear_has_merchant_data() {
    1587             :   _has_bits_[0] &= ~0x00000001u;
    1588             : }
    1589             : inline void Payment::clear_merchant_data() {
    1590             :   if (merchant_data_ != &::google::protobuf::internal::kEmptyString) {
    1591             :     merchant_data_->clear();
    1592             :   }
    1593             :   clear_has_merchant_data();
    1594             : }
    1595           0 : inline const ::std::string& Payment::merchant_data() const {
    1596           0 :   return *merchant_data_;
    1597             : }
    1598           0 : inline void Payment::set_merchant_data(const ::std::string& value) {
    1599           0 :   set_has_merchant_data();
    1600           0 :   if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
    1601           0 :     merchant_data_ = new ::std::string;
    1602             :   }
    1603           0 :   merchant_data_->assign(value);
    1604           0 : }
    1605             : inline void Payment::set_merchant_data(const char* value) {
    1606             :   set_has_merchant_data();
    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) {
    1613             :   set_has_merchant_data();
    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           0 : inline ::std::string* Payment::mutable_merchant_data() {
    1620           0 :   set_has_merchant_data();
    1621           0 :   if (merchant_data_ == &::google::protobuf::internal::kEmptyString) {
    1622           0 :     merchant_data_ = new ::std::string;
    1623             :   }
    1624           0 :   return merchant_data_;
    1625             : }
    1626             : inline ::std::string* Payment::release_merchant_data() {
    1627             :   clear_has_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) {
    1641             :     set_has_merchant_data();
    1642             :     merchant_data_ = merchant_data;
    1643             :   } else {
    1644             :     clear_has_merchant_data();
    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           0 :   return transactions_.size();
    1652             : }
    1653             : inline void Payment::clear_transactions() {
    1654             :   transactions_.Clear();
    1655             : }
    1656             : inline const ::std::string& Payment::transactions(int index) const {
    1657           0 :   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           0 :   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           0 :   transactions_.Add()->assign(reinterpret_cast<const char*>(value), size);
    1683             : }
    1684             : inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
    1685             : Payment::transactions() const {
    1686             :   return transactions_;
    1687             : }
    1688             : inline ::google::protobuf::RepeatedPtrField< ::std::string>*
    1689             : Payment::mutable_transactions() {
    1690             :   return &transactions_;
    1691             : }
    1692             : 
    1693             : // repeated .payments.Output refund_to = 3;
    1694             : inline int Payment::refund_to_size() const {
    1695           0 :   return refund_to_.size();
    1696             : }
    1697             : inline void Payment::clear_refund_to() {
    1698             :   refund_to_.Clear();
    1699             : }
    1700             : inline const ::payments::Output& Payment::refund_to(int index) const {
    1701           0 :   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           0 :   return refund_to_.Add();
    1708             : }
    1709             : inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
    1710             : Payment::refund_to() const {
    1711             :   return refund_to_;
    1712             : }
    1713             : inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
    1714             : Payment::mutable_refund_to() {
    1715             :   return &refund_to_;
    1716             : }
    1717             : 
    1718             : // optional string memo = 4;
    1719           0 : inline bool Payment::has_memo() const {
    1720           0 :   return (_has_bits_[0] & 0x00000008u) != 0;
    1721             : }
    1722           0 : inline void Payment::set_has_memo() {
    1723           0 :   _has_bits_[0] |= 0x00000008u;
    1724           0 : }
    1725             : inline void Payment::clear_has_memo() {
    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           0 : inline const ::std::string& Payment::memo() const {
    1735           0 :   return *memo_;
    1736             : }
    1737           0 : inline void Payment::set_memo(const ::std::string& value) {
    1738           0 :   set_has_memo();
    1739           0 :   if (memo_ == &::google::protobuf::internal::kEmptyString) {
    1740           0 :     memo_ = new ::std::string;
    1741             :   }
    1742           0 :   memo_->assign(value);
    1743           0 : }
    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           0 : inline ::std::string* Payment::mutable_memo() {
    1759           0 :   set_has_memo();
    1760           0 :   if (memo_ == &::google::protobuf::internal::kEmptyString) {
    1761           0 :     memo_ = new ::std::string;
    1762             :   }
    1763           0 :   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           0 : inline bool PaymentACK::has_payment() const {
    1794           0 :   return (_has_bits_[0] & 0x00000001u) != 0;
    1795             : }
    1796           0 : inline void PaymentACK::set_has_payment() {
    1797           0 :   _has_bits_[0] |= 0x00000001u;
    1798           0 : }
    1799             : inline void PaymentACK::clear_has_payment() {
    1800             :   _has_bits_[0] &= ~0x00000001u;
    1801             : }
    1802             : inline void PaymentACK::clear_payment() {
    1803             :   if (payment_ != NULL) payment_->::payments::Payment::Clear();
    1804             :   clear_has_payment();
    1805             : }
    1806           0 : inline const ::payments::Payment& PaymentACK::payment() const {
    1807           0 :   return payment_ != NULL ? *payment_ : *default_instance_->payment_;
    1808             : }
    1809           0 : inline ::payments::Payment* PaymentACK::mutable_payment() {
    1810           0 :   set_has_payment();
    1811           0 :   if (payment_ == NULL) payment_ = new ::payments::Payment;
    1812           0 :   return payment_;
    1813             : }
    1814             : inline ::payments::Payment* PaymentACK::release_payment() {
    1815             :   clear_has_payment();
    1816             :   ::payments::Payment* temp = payment_;
    1817             :   payment_ = NULL;
    1818             :   return temp;
    1819             : }
    1820             : inline void PaymentACK::set_allocated_payment(::payments::Payment* payment) {
    1821             :   delete payment_;
    1822             :   payment_ = payment;
    1823             :   if (payment) {
    1824             :     set_has_payment();
    1825             :   } else {
    1826             :     clear_has_payment();
    1827             :   }
    1828             : }
    1829             : 
    1830             : // optional string memo = 2;
    1831           0 : inline bool PaymentACK::has_memo() const {
    1832           0 :   return (_has_bits_[0] & 0x00000002u) != 0;
    1833             : }
    1834           0 : inline void PaymentACK::set_has_memo() {
    1835           0 :   _has_bits_[0] |= 0x00000002u;
    1836           0 : }
    1837             : inline void PaymentACK::clear_has_memo() {
    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           0 : inline const ::std::string& PaymentACK::memo() const {
    1847           0 :   return *memo_;
    1848             : }
    1849           0 : inline void PaymentACK::set_memo(const ::std::string& value) {
    1850           0 :   set_has_memo();
    1851           0 :   if (memo_ == &::google::protobuf::internal::kEmptyString) {
    1852           0 :     memo_ = new ::std::string;
    1853             :   }
    1854           0 :   memo_->assign(value);
    1855           0 : }
    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           0 : inline ::std::string* PaymentACK::mutable_memo() {
    1871           0 :   set_has_memo();
    1872           0 :   if (memo_ == &::google::protobuf::internal::kEmptyString) {
    1873           0 :     memo_ = new ::std::string;
    1874             :   }
    1875           0 :   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

Generated by: LCOV version 1.11