4 #ifndef PROTOBUF_paymentrequest_2eproto__INCLUDED 5 #define PROTOBUF_paymentrequest_2eproto__INCLUDED 9 #include <google/protobuf/stubs/common.h> 11 #if GOOGLE_PROTOBUF_VERSION < 2006000 12 #error This file was generated by a newer version of protoc which is 13 #error incompatible with your Protocol Buffer headers. Please update 16 #if 2006001 < GOOGLE_PROTOBUF_MIN_PROTOC_VERSION 17 #error This file was generated by an older version of protoc which is 18 #error incompatible with your Protocol Buffer headers. Please 19 #error regenerate this file with a newer version of protoc. 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> 39 class X509Certificates;
45 class Output :
public ::google::protobuf::Message {
65 static const ::google::protobuf::Descriptor*
descriptor();
73 void CopyFrom(const ::google::protobuf::Message& from);
74 void MergeFrom(const ::google::protobuf::Message& from);
82 ::google::protobuf::io::CodedInputStream* input);
84 ::google::protobuf::io::CodedOutputStream* output)
const;
102 inline ::google::protobuf::uint64
amount()
const;
103 inline void set_amount(::google::protobuf::uint64 value);
109 inline const ::std::string&
script()
const;
110 inline void set_script(const ::std::string& value);
112 inline void set_script(
const void* value,
size_t size);
159 static const ::google::protobuf::Descriptor*
descriptor();
167 void CopyFrom(const ::google::protobuf::Message& from);
168 void MergeFrom(const ::google::protobuf::Message& from);
176 ::google::protobuf::io::CodedInputStream* input);
178 ::google::protobuf::io::CodedOutputStream* output)
const;
193 inline bool has_network()
const;
194 inline void clear_network();
195 static const int kNetworkFieldNumber = 1;
196 inline const ::std::string& network()
const;
197 inline void set_network(const ::std::string& value);
198 inline void set_network(
const char* value);
199 inline void set_network(
const char* value,
size_t size);
200 inline ::std::string* mutable_network();
201 inline ::std::string* release_network();
202 inline void set_allocated_network(::std::string* network);
205 inline int outputs_size()
const;
206 inline void clear_outputs();
207 static const int kOutputsFieldNumber = 2;
208 inline const ::payments::Output& outputs(
int index)
const;
209 inline ::payments::Output* mutable_outputs(
int index);
210 inline ::payments::Output* add_outputs();
211 inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
213 inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
217 inline bool has_time()
const;
218 inline void clear_time();
219 static const int kTimeFieldNumber = 3;
220 inline ::google::protobuf::uint64 time()
const;
221 inline void set_time(::google::protobuf::uint64 value);
224 inline bool has_expires()
const;
225 inline void clear_expires();
226 static const int kExpiresFieldNumber = 4;
227 inline ::google::protobuf::uint64 expires()
const;
228 inline void set_expires(::google::protobuf::uint64 value);
231 inline bool has_memo()
const;
232 inline void clear_memo();
233 static const int kMemoFieldNumber = 5;
234 inline const ::std::string& memo()
const;
235 inline void set_memo(const ::std::string& value);
236 inline void set_memo(
const char* value);
237 inline void set_memo(
const char* value,
size_t size);
238 inline ::std::string* mutable_memo();
239 inline ::std::string* release_memo();
240 inline void set_allocated_memo(::std::string* memo);
243 inline bool has_payment_url()
const;
244 inline void clear_payment_url();
245 static const int kPaymentUrlFieldNumber = 6;
246 inline const ::std::string& payment_url()
const;
247 inline void set_payment_url(const ::std::string& value);
248 inline void set_payment_url(
const char* value);
249 inline void set_payment_url(
const char* value,
size_t size);
250 inline ::std::string* mutable_payment_url();
251 inline ::std::string* release_payment_url();
252 inline void set_allocated_payment_url(::std::string* payment_url);
255 inline bool has_merchant_data()
const;
256 inline void clear_merchant_data();
257 static const int kMerchantDataFieldNumber = 7;
258 inline const ::std::string& merchant_data()
const;
259 inline void set_merchant_data(const ::std::string& value);
260 inline void set_merchant_data(
const char* value);
261 inline void set_merchant_data(
const void* value,
size_t size);
262 inline ::std::string* mutable_merchant_data();
263 inline ::std::string* release_merchant_data();
264 inline void set_allocated_merchant_data(::std::string* merchant_data);
268 inline void set_has_network();
269 inline void clear_has_network();
270 inline void set_has_time();
271 inline void clear_has_time();
272 inline void set_has_expires();
273 inline void clear_has_expires();
274 inline void set_has_memo();
275 inline void clear_has_memo();
276 inline void set_has_payment_url();
277 inline void clear_has_payment_url();
278 inline void set_has_merchant_data();
279 inline void clear_has_merchant_data();
287 ::google::protobuf::RepeatedPtrField< ::payments::Output >
outputs_;
322 static const ::google::protobuf::Descriptor*
descriptor();
330 void CopyFrom(const ::google::protobuf::Message& from);
331 void MergeFrom(const ::google::protobuf::Message& from);
339 ::google::protobuf::io::CodedInputStream* input);
341 ::google::protobuf::io::CodedOutputStream* output)
const;
356 inline bool has_payment_details_version()
const;
357 inline void clear_payment_details_version();
358 static const int kPaymentDetailsVersionFieldNumber = 1;
359 inline ::google::protobuf::uint32 payment_details_version()
const;
360 inline void set_payment_details_version(::google::protobuf::uint32 value);
363 inline bool has_pki_type()
const;
364 inline void clear_pki_type();
365 static const int kPkiTypeFieldNumber = 2;
366 inline const ::std::string& pki_type()
const;
367 inline void set_pki_type(const ::std::string& value);
368 inline void set_pki_type(
const char* value);
369 inline void set_pki_type(
const char* value,
size_t size);
370 inline ::std::string* mutable_pki_type();
371 inline ::std::string* release_pki_type();
372 inline void set_allocated_pki_type(::std::string* pki_type);
375 inline bool has_pki_data()
const;
376 inline void clear_pki_data();
377 static const int kPkiDataFieldNumber = 3;
378 inline const ::std::string& pki_data()
const;
379 inline void set_pki_data(const ::std::string& value);
380 inline void set_pki_data(
const char* value);
381 inline void set_pki_data(
const void* value,
size_t size);
382 inline ::std::string* mutable_pki_data();
383 inline ::std::string* release_pki_data();
384 inline void set_allocated_pki_data(::std::string* pki_data);
387 inline bool has_serialized_payment_details()
const;
388 inline void clear_serialized_payment_details();
389 static const int kSerializedPaymentDetailsFieldNumber = 4;
390 inline const ::std::string& serialized_payment_details()
const;
391 inline void set_serialized_payment_details(const ::std::string& value);
392 inline void set_serialized_payment_details(
const char* value);
393 inline void set_serialized_payment_details(
const void* value,
size_t size);
394 inline ::std::string* mutable_serialized_payment_details();
395 inline ::std::string* release_serialized_payment_details();
396 inline void set_allocated_serialized_payment_details(::std::string* serialized_payment_details);
399 inline bool has_signature()
const;
400 inline void clear_signature();
401 static const int kSignatureFieldNumber = 5;
402 inline const ::std::string& signature()
const;
403 inline void set_signature(const ::std::string& value);
404 inline void set_signature(
const char* value);
405 inline void set_signature(
const void* value,
size_t size);
406 inline ::std::string* mutable_signature();
407 inline ::std::string* release_signature();
408 inline void set_allocated_signature(::std::string* signature);
412 inline void set_has_payment_details_version();
413 inline void clear_has_payment_details_version();
414 inline void set_has_pki_type();
415 inline void clear_has_pki_type();
416 inline void set_has_pki_data();
417 inline void clear_has_pki_data();
418 inline void set_has_serialized_payment_details();
419 inline void clear_has_serialized_payment_details();
420 inline void set_has_signature();
421 inline void clear_has_signature();
462 static const ::google::protobuf::Descriptor*
descriptor();
470 void CopyFrom(const ::google::protobuf::Message& from);
471 void MergeFrom(const ::google::protobuf::Message& from);
479 ::google::protobuf::io::CodedInputStream* input);
481 ::google::protobuf::io::CodedOutputStream* output)
const;
496 inline int certificate_size()
const;
497 inline void clear_certificate();
498 static const int kCertificateFieldNumber = 1;
499 inline const ::std::string& certificate(
int index)
const;
500 inline ::std::string* mutable_certificate(
int index);
501 inline void set_certificate(
int index, const ::std::string& value);
502 inline void set_certificate(
int index,
const char* value);
503 inline void set_certificate(
int index,
const void* value,
size_t size);
504 inline ::std::string* add_certificate();
505 inline void add_certificate(const ::std::string& value);
506 inline void add_certificate(
const char* value);
507 inline void add_certificate(
const void* value,
size_t size);
508 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& certificate()
const;
509 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_certificate();
528 class Payment :
public ::google::protobuf::Message {
548 static const ::google::protobuf::Descriptor*
descriptor();
556 void CopyFrom(const ::google::protobuf::Message& from);
557 void MergeFrom(const ::google::protobuf::Message& from);
565 ::google::protobuf::io::CodedInputStream* input);
567 ::google::protobuf::io::CodedOutputStream* output)
const;
582 inline bool has_merchant_data()
const;
583 inline void clear_merchant_data();
584 static const int kMerchantDataFieldNumber = 1;
585 inline const ::std::string& merchant_data()
const;
586 inline void set_merchant_data(const ::std::string& value);
587 inline void set_merchant_data(
const char* value);
588 inline void set_merchant_data(
const void* value,
size_t size);
589 inline ::std::string* mutable_merchant_data();
590 inline ::std::string* release_merchant_data();
591 inline void set_allocated_merchant_data(::std::string* merchant_data);
594 inline int transactions_size()
const;
595 inline void clear_transactions();
596 static const int kTransactionsFieldNumber = 2;
597 inline const ::std::string& transactions(
int index)
const;
598 inline ::std::string* mutable_transactions(
int index);
599 inline void set_transactions(
int index, const ::std::string& value);
600 inline void set_transactions(
int index,
const char* value);
601 inline void set_transactions(
int index,
const void* value,
size_t size);
602 inline ::std::string* add_transactions();
603 inline void add_transactions(const ::std::string& value);
604 inline void add_transactions(
const char* value);
605 inline void add_transactions(
const void* value,
size_t size);
606 inline const ::google::protobuf::RepeatedPtrField< ::std::string>& transactions()
const;
607 inline ::google::protobuf::RepeatedPtrField< ::std::string>* mutable_transactions();
610 inline int refund_to_size()
const;
611 inline void clear_refund_to();
612 static const int kRefundToFieldNumber = 3;
613 inline const ::payments::Output& refund_to(
int index)
const;
614 inline ::payments::Output* mutable_refund_to(
int index);
615 inline ::payments::Output* add_refund_to();
616 inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
618 inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
622 inline bool has_memo()
const;
623 inline void clear_memo();
624 static const int kMemoFieldNumber = 4;
625 inline const ::std::string& memo()
const;
626 inline void set_memo(const ::std::string& value);
627 inline void set_memo(
const char* value);
628 inline void set_memo(
const char* value,
size_t size);
629 inline ::std::string* mutable_memo();
630 inline ::std::string* release_memo();
631 inline void set_allocated_memo(::std::string* memo);
635 inline void set_has_merchant_data();
636 inline void clear_has_merchant_data();
637 inline void set_has_memo();
638 inline void clear_has_memo();
646 ::google::protobuf::RepeatedPtrField< ::payments::Output >
refund_to_;
677 static const ::google::protobuf::Descriptor*
descriptor();
685 void CopyFrom(const ::google::protobuf::Message& from);
686 void MergeFrom(const ::google::protobuf::Message& from);
694 ::google::protobuf::io::CodedInputStream* input);
696 ::google::protobuf::io::CodedOutputStream* output)
const;
711 inline bool has_payment()
const;
712 inline void clear_payment();
713 static const int kPaymentFieldNumber = 1;
714 inline const ::payments::Payment& payment()
const;
715 inline ::payments::Payment* mutable_payment();
716 inline ::payments::Payment* release_payment();
720 inline bool has_memo()
const;
721 inline void clear_memo();
722 static const int kMemoFieldNumber = 2;
723 inline const ::std::string& memo()
const;
724 inline void set_memo(const ::std::string& value);
725 inline void set_memo(
const char* value);
726 inline void set_memo(
const char* value,
size_t size);
727 inline ::std::string* mutable_memo();
728 inline ::std::string* release_memo();
729 inline void set_allocated_memo(::std::string* memo);
733 inline void set_has_payment();
734 inline void clear_has_payment();
735 inline void set_has_memo();
736 inline void clear_has_memo();
793 if (
script_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
804 if (
script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
812 if (
script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
820 if (
script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
823 script_->assign(reinterpret_cast<const char*>(value), size);
828 if (
script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
836 if (
script_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
840 script_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
845 if (
script_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
853 script_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
873 if (network_ != _default_network_) {
874 network_->assign(*_default_network_);
884 if (network_ == _default_network_) {
885 network_ = new ::std::string;
887 network_->assign(value);
892 if (network_ == _default_network_) {
893 network_ = new ::std::string;
895 network_->assign(value);
900 if (network_ == _default_network_) {
901 network_ = new ::std::string;
903 network_->assign(reinterpret_cast<const char*>(value), size);
908 if (network_ == _default_network_) {
909 network_ = new ::std::string(*_default_network_);
916 if (network_ == _default_network_) {
919 ::std::string* temp = network_;
920 network_ =
const_cast< ::std::string*
>(_default_network_);
925 if (network_ != _default_network_) {
933 network_ =
const_cast< ::std::string*
>(_default_network_);
940 return outputs_.size();
947 return outputs_.Get(index);
951 return outputs_.Mutable(index);
955 return outputs_.Add();
957 inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
962 inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
979 time_ = GOOGLE_ULONGLONG(0);
1003 expires_ = GOOGLE_ULONGLONG(0);
1004 clear_has_expires();
1027 if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1038 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1039 memo_ = new ::std::string;
1041 memo_->assign(value);
1046 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1047 memo_ = new ::std::string;
1049 memo_->assign(value);
1054 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1055 memo_ = new ::std::string;
1057 memo_->assign(reinterpret_cast<const char*>(value), size);
1062 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1063 memo_ = new ::std::string;
1070 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1073 ::std::string* temp = memo_;
1074 memo_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1079 if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1087 memo_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1103 if (payment_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1104 payment_url_->clear();
1106 clear_has_payment_url();
1110 return *payment_url_;
1113 set_has_payment_url();
1114 if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1115 payment_url_ = new ::std::string;
1117 payment_url_->assign(value);
1121 set_has_payment_url();
1122 if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1123 payment_url_ = new ::std::string;
1125 payment_url_->assign(value);
1129 set_has_payment_url();
1130 if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1131 payment_url_ = new ::std::string;
1133 payment_url_->assign(reinterpret_cast<const char*>(value), size);
1137 set_has_payment_url();
1138 if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1139 payment_url_ = new ::std::string;
1142 return payment_url_;
1145 clear_has_payment_url();
1146 if (payment_url_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1149 ::std::string* temp = payment_url_;
1150 payment_url_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1155 if (payment_url_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1156 delete payment_url_;
1159 set_has_payment_url();
1160 payment_url_ = payment_url;
1162 clear_has_payment_url();
1163 payment_url_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1179 if (merchant_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1180 merchant_data_->clear();
1182 clear_has_merchant_data();
1186 return *merchant_data_;
1189 set_has_merchant_data();
1190 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1191 merchant_data_ = new ::std::string;
1193 merchant_data_->assign(value);
1197 set_has_merchant_data();
1198 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1199 merchant_data_ = new ::std::string;
1201 merchant_data_->assign(value);
1205 set_has_merchant_data();
1206 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1207 merchant_data_ = new ::std::string;
1209 merchant_data_->assign(reinterpret_cast<const char*>(value), size);
1213 set_has_merchant_data();
1214 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1215 merchant_data_ = new ::std::string;
1218 return merchant_data_;
1221 clear_has_merchant_data();
1222 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1225 ::std::string* temp = merchant_data_;
1226 merchant_data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1231 if (merchant_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1232 delete merchant_data_;
1234 if (merchant_data) {
1235 set_has_merchant_data();
1236 merchant_data_ = merchant_data;
1238 clear_has_merchant_data();
1239 merchant_data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1259 payment_details_version_ = 1u;
1260 clear_has_payment_details_version();
1264 return payment_details_version_;
1267 set_has_payment_details_version();
1268 payment_details_version_ = value;
1283 if (pki_type_ != _default_pki_type_) {
1284 pki_type_->assign(*_default_pki_type_);
1286 clear_has_pki_type();
1294 if (pki_type_ == _default_pki_type_) {
1295 pki_type_ = new ::std::string;
1297 pki_type_->assign(value);
1302 if (pki_type_ == _default_pki_type_) {
1303 pki_type_ = new ::std::string;
1305 pki_type_->assign(value);
1310 if (pki_type_ == _default_pki_type_) {
1311 pki_type_ = new ::std::string;
1313 pki_type_->assign(reinterpret_cast<const char*>(value), size);
1318 if (pki_type_ == _default_pki_type_) {
1319 pki_type_ = new ::std::string(*_default_pki_type_);
1325 clear_has_pki_type();
1326 if (pki_type_ == _default_pki_type_) {
1329 ::std::string* temp = pki_type_;
1330 pki_type_ =
const_cast< ::std::string*
>(_default_pki_type_);
1335 if (pki_type_ != _default_pki_type_) {
1340 pki_type_ = pki_type;
1342 clear_has_pki_type();
1343 pki_type_ =
const_cast< ::std::string*
>(_default_pki_type_);
1359 if (pki_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1362 clear_has_pki_data();
1370 if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1371 pki_data_ = new ::std::string;
1373 pki_data_->assign(value);
1378 if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1379 pki_data_ = new ::std::string;
1381 pki_data_->assign(value);
1386 if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1387 pki_data_ = new ::std::string;
1389 pki_data_->assign(reinterpret_cast<const char*>(value), size);
1394 if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1395 pki_data_ = new ::std::string;
1401 clear_has_pki_data();
1402 if (pki_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1405 ::std::string* temp = pki_data_;
1406 pki_data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1411 if (pki_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1416 pki_data_ = pki_data;
1418 clear_has_pki_data();
1419 pki_data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1435 if (serialized_payment_details_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1436 serialized_payment_details_->clear();
1438 clear_has_serialized_payment_details();
1442 return *serialized_payment_details_;
1445 set_has_serialized_payment_details();
1446 if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1447 serialized_payment_details_ = new ::std::string;
1449 serialized_payment_details_->assign(value);
1453 set_has_serialized_payment_details();
1454 if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1455 serialized_payment_details_ = new ::std::string;
1457 serialized_payment_details_->assign(value);
1461 set_has_serialized_payment_details();
1462 if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1463 serialized_payment_details_ = new ::std::string;
1465 serialized_payment_details_->assign(reinterpret_cast<const char*>(value), size);
1469 set_has_serialized_payment_details();
1470 if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1471 serialized_payment_details_ = new ::std::string;
1474 return serialized_payment_details_;
1477 clear_has_serialized_payment_details();
1478 if (serialized_payment_details_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1481 ::std::string* temp = serialized_payment_details_;
1482 serialized_payment_details_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1487 if (serialized_payment_details_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1488 delete serialized_payment_details_;
1490 if (serialized_payment_details) {
1491 set_has_serialized_payment_details();
1492 serialized_payment_details_ = serialized_payment_details;
1494 clear_has_serialized_payment_details();
1495 serialized_payment_details_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1511 if (signature_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1512 signature_->clear();
1514 clear_has_signature();
1521 set_has_signature();
1522 if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1523 signature_ = new ::std::string;
1525 signature_->assign(value);
1529 set_has_signature();
1530 if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1531 signature_ = new ::std::string;
1533 signature_->assign(value);
1537 set_has_signature();
1538 if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1539 signature_ = new ::std::string;
1541 signature_->assign(reinterpret_cast<const char*>(value), size);
1545 set_has_signature();
1546 if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1547 signature_ = new ::std::string;
1553 clear_has_signature();
1554 if (signature_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1557 ::std::string* temp = signature_;
1558 signature_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1563 if (signature_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1567 set_has_signature();
1568 signature_ = signature;
1570 clear_has_signature();
1571 signature_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1582 return certificate_.size();
1585 certificate_.Clear();
1589 return certificate_.Get(index);
1593 return certificate_.Mutable(index);
1597 certificate_.Mutable(index)->assign(value);
1600 certificate_.Mutable(index)->assign(value);
1604 certificate_.Mutable(index)->assign(
1605 reinterpret_cast<const char*>(value), size);
1609 return certificate_.Add();
1612 certificate_.Add()->assign(value);
1616 certificate_.Add()->assign(value);
1620 certificate_.Add()->assign(reinterpret_cast<const char*>(value), size);
1623 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1626 return certificate_;
1628 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1631 return &certificate_;
1649 if (merchant_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1650 merchant_data_->clear();
1652 clear_has_merchant_data();
1656 return *merchant_data_;
1659 set_has_merchant_data();
1660 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1661 merchant_data_ = new ::std::string;
1663 merchant_data_->assign(value);
1667 set_has_merchant_data();
1668 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1669 merchant_data_ = new ::std::string;
1671 merchant_data_->assign(value);
1675 set_has_merchant_data();
1676 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1677 merchant_data_ = new ::std::string;
1679 merchant_data_->assign(reinterpret_cast<const char*>(value), size);
1683 set_has_merchant_data();
1684 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1685 merchant_data_ = new ::std::string;
1688 return merchant_data_;
1691 clear_has_merchant_data();
1692 if (merchant_data_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1695 ::std::string* temp = merchant_data_;
1696 merchant_data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1701 if (merchant_data_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1702 delete merchant_data_;
1704 if (merchant_data) {
1705 set_has_merchant_data();
1706 merchant_data_ = merchant_data;
1708 clear_has_merchant_data();
1709 merchant_data_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1716 return transactions_.size();
1719 transactions_.Clear();
1723 return transactions_.Get(index);
1727 return transactions_.Mutable(index);
1731 transactions_.Mutable(index)->assign(value);
1734 transactions_.Mutable(index)->assign(value);
1738 transactions_.Mutable(index)->assign(
1739 reinterpret_cast<const char*>(value), size);
1743 return transactions_.Add();
1746 transactions_.Add()->assign(value);
1750 transactions_.Add()->assign(value);
1754 transactions_.Add()->assign(reinterpret_cast<const char*>(value), size);
1757 inline const ::google::protobuf::RepeatedPtrField< ::std::string>&
1760 return transactions_;
1762 inline ::google::protobuf::RepeatedPtrField< ::std::string>*
1765 return &transactions_;
1770 return refund_to_.size();
1777 return refund_to_.Get(index);
1781 return refund_to_.Mutable(index);
1785 return refund_to_.Add();
1787 inline const ::google::protobuf::RepeatedPtrField< ::payments::Output >&
1792 inline ::google::protobuf::RepeatedPtrField< ::payments::Output >*
1809 if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1820 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1821 memo_ = new ::std::string;
1823 memo_->assign(value);
1828 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1829 memo_ = new ::std::string;
1831 memo_->assign(value);
1836 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1837 memo_ = new ::std::string;
1839 memo_->assign(reinterpret_cast<const char*>(value), size);
1844 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1845 memo_ = new ::std::string;
1852 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1855 ::std::string* temp = memo_;
1856 memo_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1861 if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1869 memo_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1889 if (payment_ != NULL) payment_->::payments::Payment::Clear();
1890 clear_has_payment();
1898 if (payment_ == NULL) payment_ = new ::payments::Payment;
1903 clear_has_payment();
1914 clear_has_payment();
1930 if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1941 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1942 memo_ = new ::std::string;
1944 memo_->assign(value);
1949 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1950 memo_ = new ::std::string;
1952 memo_->assign(value);
1957 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1958 memo_ = new ::std::string;
1960 memo_->assign(reinterpret_cast<const char*>(value), size);
1965 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1966 memo_ = new ::std::string;
1973 if (memo_ == &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1976 ::std::string* temp = memo_;
1977 memo_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
1982 if (memo_ != &::google::protobuf::internal::GetEmptyStringAlreadyInited()) {
1990 memo_ =
const_cast< ::std::string*
>(&::google::protobuf::internal::GetEmptyStringAlreadyInited());
2002 namespace protobuf {
2011 #endif // PROTOBUF_paymentrequest_2eproto__INCLUDED ::google::protobuf::uint32 _has_bits_[1]
friend void protobuf_AddDesc_paymentrequest_2eproto()
::std::string * merchant_data_
void protobuf_AddDesc_paymentrequest_2eproto()
::google::protobuf::uint64 expires_
const ::google::protobuf::RepeatedPtrField< ::std::string > & certificate() const
static const Output & default_instance()
static PaymentACK * default_instance_
::google::protobuf::RepeatedPtrField< ::payments::Output > refund_to_
void clear_has_serialized_payment_details()
inline::std::string * release_pki_data()
static Output * default_instance_
friend void protobuf_AssignDesc_paymentrequest_2eproto()
inline::google::protobuf::uint32 payment_details_version() const
static X509Certificates * default_instance_
Output & operator=(const Output &from)
void set_payment_url(const ::std::string &value)
inline::std::string * mutable_payment_url()
inline::std::string * release_memo()
void set_script(const ::std::string &value)
::std::string * pki_data_
void set_memo(const ::std::string &value)
void set_allocated_memo(::std::string *memo)
inline::std::string * release_serialized_payment_details()
void set_pki_data(const ::std::string &value)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void MergeFrom(const ::google::protobuf::Message &from)
inline::std::string * release_memo()
void set_allocated_merchant_data(::std::string *merchant_data)
::std::string * signature_
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
int GetCachedSize() const
void clear_merchant_data()
::std::string * _default_network_
::std::string * pki_type_
static const ::google::protobuf::Descriptor * descriptor()
void set_allocated_signature(::std::string *signature)
bool has_payment_url() const
int GetCachedSize() const
static const int kAmountFieldNumber
const ::std::string & pki_data() const
void set_merchant_data(const ::std::string &value)
inline::google::protobuf::uint64 expires() const
Payment & operator=(const Payment &from)
static PaymentRequest * default_instance_
void set_allocated_payment(::payments::Payment *payment)
inline::std::string * mutable_merchant_data()
::google::protobuf::Metadata GetMetadata() const
const ::std::string & memo() const
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
const ::std::string & signature() const
inline::std::string * release_network()
inline::std::string * mutable_script()
inline::std::string * mutable_memo()
int GetCachedSize() const
void set_has_payment_details_version()
void set_has_serialized_payment_details()
inline::std::string * release_merchant_data()
static const int kScriptFieldNumber
inline::std::string * mutable_signature()
::std::string * serialized_payment_details_
void clear_has_pki_type()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
inline::std::string * add_transactions()
void set_network(const ::std::string &value)
void SerializeWithCachedSizes(::google::protobuf::io::CodedOutputStream *output) const
void set_allocated_pki_data(::std::string *pki_data)
const ::std::string & script() const
int GetCachedSize() const
inline::google::protobuf::RepeatedPtrField< ::std::string > * mutable_transactions()
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::std::string & payment_url() const
bool IsInitialized() const
void clear_has_signature()
static PaymentDetails * default_instance_
inline::std::string * mutable_network()
void clear_has_payment_details_version()
static Payment * default_instance_
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void clear_has_merchant_data()
bool has_merchant_data() const
void set_allocated_serialized_payment_details(::std::string *serialized_payment_details)
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
inline::std::string * release_signature()
void protobuf_AssignDesc_paymentrequest_2eproto()
::google::protobuf::UnknownFieldSet _unknown_fields_
bool has_signature() const
bool MergePartialFromCodedStream(::google::protobuf::io::CodedInputStream *input)
bool has_pki_data() const
void protobuf_ShutdownFile_paymentrequest_2eproto()
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
const ::google::protobuf::RepeatedPtrField< ::payments::Output > & refund_to() const
void set_transactions(int index, const ::std::string &value)
int GetCachedSize() const
const ::std::string & memo() const
inline::std::string * add_certificate()
inline::std::string * release_script()
inline::payments::Output * add_outputs()
void clear_has_payment_url()
::google::protobuf::UnknownFieldSet _unknown_fields_
inline::std::string * mutable_serialized_payment_details()
void set_allocated_payment_url(::std::string *payment_url)
void InitAsDefaultInstance()
void set_certificate(int index, const ::std::string &value)
void clear_merchant_data()
void SetCachedSize(int size) const
int transactions_size() const
inline::std::string * release_memo()
void clear_serialized_payment_details()
const ::std::string & network() const
void clear_has_pki_data()
::google::protobuf::UnknownFieldSet _unknown_fields_
void set_expires(::google::protobuf::uint64 value)
PaymentACK & operator=(const PaymentACK &from)
const ::google::protobuf::RepeatedPtrField< ::std::string > & transactions() const
void set_allocated_network(::std::string *network)
inline::std::string * release_merchant_data()
inline::payments::Payment * release_payment()
inline::google::protobuf::RepeatedPtrField< ::payments::Output > * mutable_outputs()
const ::google::protobuf::RepeatedPtrField< ::payments::Output > & outputs() const
::google::protobuf::uint32 payment_details_version_
PaymentRequest & operator=(const PaymentRequest &from)
void set_allocated_memo(::std::string *memo)
inline::std::string * mutable_memo()
void set_allocated_memo(::std::string *memo)
void set_has_merchant_data()
inline::std::string * mutable_merchant_data()
void set_allocated_merchant_data(::std::string *merchant_data)
inline::google::protobuf::RepeatedPtrField< ::std::string > * mutable_certificate()
inline::google::protobuf::uint64 amount() const
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
void CopyFrom(const ::google::protobuf::Message &from)
bool has_merchant_data() const
::std::string * _default_pki_type_
void set_has_merchant_data()
::std::string * merchant_data_
inline::std::string * mutable_memo()
const ::std::string & merchant_data() const
bool has_pki_type() const
void set_memo(const ::std::string &value)
void set_signature(const ::std::string &value)
::google::protobuf::uint64 time_
void clear_payment_details_version()
::google::protobuf::uint64 amount_
uint8_t const size_t const size
friend void protobuf_ShutdownFile_paymentrequest_2eproto()
void set_pki_type(const ::std::string &value)
void set_allocated_pki_type(::std::string *pki_type)
bool has_payment_details_version() const
const ::payments::Payment & payment() const
const ::std::string & serialized_payment_details() const
void set_merchant_data(const ::std::string &value)
::std::string * payment_url_
void set_serialized_payment_details(const ::std::string &value)
::payments::Payment * payment_
inline::std::string * mutable_pki_data()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
void clear_transactions()
inline::payments::Output * add_refund_to()
const ::std::string & memo() const
inline::payments::Payment * mutable_payment()
::google::protobuf::uint8 * SerializeWithCachedSizesToArray(::google::protobuf::uint8 *output) const
inline::std::string * mutable_pki_type()
::google::protobuf::RepeatedPtrField< ::std::string > certificate_
void set_allocated_script(::std::string *script)
void set_time(::google::protobuf::uint64 value)
::google::protobuf::UnknownFieldSet _unknown_fields_
int certificate_size() const
inline::google::protobuf::RepeatedPtrField< ::payments::Output > * mutable_refund_to()
int refund_to_size() const
void set_has_payment_url()
const ::google::protobuf::UnknownFieldSet & unknown_fields() const
const ::std::string & merchant_data() const
void set_amount(::google::protobuf::uint64 value)
void clear_has_merchant_data()
::google::protobuf::RepeatedPtrField< ::payments::Output > outputs_
inline::std::string * release_pki_type()
int GetCachedSize() const
void set_memo(const ::std::string &value)
inline::std::string * release_payment_url()
bool has_serialized_payment_details() const
PaymentDetails & operator=(const PaymentDetails &from)
inline::google::protobuf::uint64 time() const
X509Certificates & operator=(const X509Certificates &from)
inline::google::protobuf::UnknownFieldSet * mutable_unknown_fields()
::google::protobuf::RepeatedPtrField< ::std::string > transactions_
::google::protobuf::UnknownFieldSet _unknown_fields_
const ::std::string & pki_type() const
void set_payment_details_version(::google::protobuf::uint32 value)