electrum

Electrum Bitcoin wallet
git clone https://git.parazyd.org/electrum
Log | Files | Refs | Submodules

paymentrequest_pb2.py (15537B)


      1 # -*- coding: utf-8 -*-
      2 # Generated by the protocol buffer compiler.  DO NOT EDIT!
      3 # source: paymentrequest.proto
      4 
      5 from google.protobuf import descriptor as _descriptor
      6 from google.protobuf import message as _message
      7 from google.protobuf import reflection as _reflection
      8 from google.protobuf import symbol_database as _symbol_database
      9 # @@protoc_insertion_point(imports)
     10 
     11 _sym_db = _symbol_database.Default()
     12 
     13 
     14 
     15 
     16 DESCRIPTOR = _descriptor.FileDescriptor(
     17   name='paymentrequest.proto',
     18   package='payments',
     19   syntax='proto2',
     20   serialized_options=b'\n\036org.bitcoin.protocols.paymentsB\006Protos',
     21   create_key=_descriptor._internal_create_key,
     22   serialized_pb=b'\n\x14paymentrequest.proto\x12\x08payments\"+\n\x06Output\x12\x11\n\x06\x61mount\x18\x01 \x01(\x04:\x01\x30\x12\x0e\n\x06script\x18\x02 \x02(\x0c\"\xa3\x01\n\x0ePaymentDetails\x12\x15\n\x07network\x18\x01 \x01(\t:\x04main\x12!\n\x07outputs\x18\x02 \x03(\x0b\x32\x10.payments.Output\x12\x0c\n\x04time\x18\x03 \x02(\x04\x12\x0f\n\x07\x65xpires\x18\x04 \x01(\x04\x12\x0c\n\x04memo\x18\x05 \x01(\t\x12\x13\n\x0bpayment_url\x18\x06 \x01(\t\x12\x15\n\rmerchant_data\x18\x07 \x01(\x0c\"\x95\x01\n\x0ePaymentRequest\x12\"\n\x17payment_details_version\x18\x01 \x01(\r:\x01\x31\x12\x16\n\x08pki_type\x18\x02 \x01(\t:\x04none\x12\x10\n\x08pki_data\x18\x03 \x01(\x0c\x12\"\n\x1aserialized_payment_details\x18\x04 \x02(\x0c\x12\x11\n\tsignature\x18\x05 \x01(\x0c\"\'\n\x10X509Certificates\x12\x13\n\x0b\x63\x65rtificate\x18\x01 \x03(\x0c\"i\n\x07Payment\x12\x15\n\rmerchant_data\x18\x01 \x01(\x0c\x12\x14\n\x0ctransactions\x18\x02 \x03(\x0c\x12#\n\trefund_to\x18\x03 \x03(\x0b\x32\x10.payments.Output\x12\x0c\n\x04memo\x18\x04 \x01(\t\">\n\nPaymentACK\x12\"\n\x07payment\x18\x01 \x02(\x0b\x32\x11.payments.Payment\x12\x0c\n\x04memo\x18\x02 \x01(\tB(\n\x1eorg.bitcoin.protocols.paymentsB\x06Protos'
     23 )
     24 
     25 
     26 
     27 
     28 _OUTPUT = _descriptor.Descriptor(
     29   name='Output',
     30   full_name='payments.Output',
     31   filename=None,
     32   file=DESCRIPTOR,
     33   containing_type=None,
     34   create_key=_descriptor._internal_create_key,
     35   fields=[
     36     _descriptor.FieldDescriptor(
     37       name='amount', full_name='payments.Output.amount', index=0,
     38       number=1, type=4, cpp_type=4, label=1,
     39       has_default_value=True, default_value=0,
     40       message_type=None, enum_type=None, containing_type=None,
     41       is_extension=False, extension_scope=None,
     42       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
     43     _descriptor.FieldDescriptor(
     44       name='script', full_name='payments.Output.script', index=1,
     45       number=2, type=12, cpp_type=9, label=2,
     46       has_default_value=False, default_value=b"",
     47       message_type=None, enum_type=None, containing_type=None,
     48       is_extension=False, extension_scope=None,
     49       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
     50   ],
     51   extensions=[
     52   ],
     53   nested_types=[],
     54   enum_types=[
     55   ],
     56   serialized_options=None,
     57   is_extendable=False,
     58   syntax='proto2',
     59   extension_ranges=[],
     60   oneofs=[
     61   ],
     62   serialized_start=34,
     63   serialized_end=77,
     64 )
     65 
     66 
     67 _PAYMENTDETAILS = _descriptor.Descriptor(
     68   name='PaymentDetails',
     69   full_name='payments.PaymentDetails',
     70   filename=None,
     71   file=DESCRIPTOR,
     72   containing_type=None,
     73   create_key=_descriptor._internal_create_key,
     74   fields=[
     75     _descriptor.FieldDescriptor(
     76       name='network', full_name='payments.PaymentDetails.network', index=0,
     77       number=1, type=9, cpp_type=9, label=1,
     78       has_default_value=True, default_value=b"main".decode('utf-8'),
     79       message_type=None, enum_type=None, containing_type=None,
     80       is_extension=False, extension_scope=None,
     81       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
     82     _descriptor.FieldDescriptor(
     83       name='outputs', full_name='payments.PaymentDetails.outputs', index=1,
     84       number=2, type=11, cpp_type=10, label=3,
     85       has_default_value=False, default_value=[],
     86       message_type=None, enum_type=None, containing_type=None,
     87       is_extension=False, extension_scope=None,
     88       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
     89     _descriptor.FieldDescriptor(
     90       name='time', full_name='payments.PaymentDetails.time', index=2,
     91       number=3, type=4, cpp_type=4, label=2,
     92       has_default_value=False, default_value=0,
     93       message_type=None, enum_type=None, containing_type=None,
     94       is_extension=False, extension_scope=None,
     95       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
     96     _descriptor.FieldDescriptor(
     97       name='expires', full_name='payments.PaymentDetails.expires', index=3,
     98       number=4, type=4, cpp_type=4, label=1,
     99       has_default_value=False, default_value=0,
    100       message_type=None, enum_type=None, containing_type=None,
    101       is_extension=False, extension_scope=None,
    102       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    103     _descriptor.FieldDescriptor(
    104       name='memo', full_name='payments.PaymentDetails.memo', index=4,
    105       number=5, type=9, cpp_type=9, label=1,
    106       has_default_value=False, default_value=b"".decode('utf-8'),
    107       message_type=None, enum_type=None, containing_type=None,
    108       is_extension=False, extension_scope=None,
    109       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    110     _descriptor.FieldDescriptor(
    111       name='payment_url', full_name='payments.PaymentDetails.payment_url', index=5,
    112       number=6, type=9, cpp_type=9, label=1,
    113       has_default_value=False, default_value=b"".decode('utf-8'),
    114       message_type=None, enum_type=None, containing_type=None,
    115       is_extension=False, extension_scope=None,
    116       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    117     _descriptor.FieldDescriptor(
    118       name='merchant_data', full_name='payments.PaymentDetails.merchant_data', index=6,
    119       number=7, type=12, cpp_type=9, label=1,
    120       has_default_value=False, default_value=b"",
    121       message_type=None, enum_type=None, containing_type=None,
    122       is_extension=False, extension_scope=None,
    123       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    124   ],
    125   extensions=[
    126   ],
    127   nested_types=[],
    128   enum_types=[
    129   ],
    130   serialized_options=None,
    131   is_extendable=False,
    132   syntax='proto2',
    133   extension_ranges=[],
    134   oneofs=[
    135   ],
    136   serialized_start=80,
    137   serialized_end=243,
    138 )
    139 
    140 
    141 _PAYMENTREQUEST = _descriptor.Descriptor(
    142   name='PaymentRequest',
    143   full_name='payments.PaymentRequest',
    144   filename=None,
    145   file=DESCRIPTOR,
    146   containing_type=None,
    147   create_key=_descriptor._internal_create_key,
    148   fields=[
    149     _descriptor.FieldDescriptor(
    150       name='payment_details_version', full_name='payments.PaymentRequest.payment_details_version', index=0,
    151       number=1, type=13, cpp_type=3, label=1,
    152       has_default_value=True, default_value=1,
    153       message_type=None, enum_type=None, containing_type=None,
    154       is_extension=False, extension_scope=None,
    155       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    156     _descriptor.FieldDescriptor(
    157       name='pki_type', full_name='payments.PaymentRequest.pki_type', index=1,
    158       number=2, type=9, cpp_type=9, label=1,
    159       has_default_value=True, default_value=b"none".decode('utf-8'),
    160       message_type=None, enum_type=None, containing_type=None,
    161       is_extension=False, extension_scope=None,
    162       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    163     _descriptor.FieldDescriptor(
    164       name='pki_data', full_name='payments.PaymentRequest.pki_data', index=2,
    165       number=3, type=12, cpp_type=9, label=1,
    166       has_default_value=False, default_value=b"",
    167       message_type=None, enum_type=None, containing_type=None,
    168       is_extension=False, extension_scope=None,
    169       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    170     _descriptor.FieldDescriptor(
    171       name='serialized_payment_details', full_name='payments.PaymentRequest.serialized_payment_details', index=3,
    172       number=4, type=12, cpp_type=9, label=2,
    173       has_default_value=False, default_value=b"",
    174       message_type=None, enum_type=None, containing_type=None,
    175       is_extension=False, extension_scope=None,
    176       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    177     _descriptor.FieldDescriptor(
    178       name='signature', full_name='payments.PaymentRequest.signature', index=4,
    179       number=5, type=12, cpp_type=9, label=1,
    180       has_default_value=False, default_value=b"",
    181       message_type=None, enum_type=None, containing_type=None,
    182       is_extension=False, extension_scope=None,
    183       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    184   ],
    185   extensions=[
    186   ],
    187   nested_types=[],
    188   enum_types=[
    189   ],
    190   serialized_options=None,
    191   is_extendable=False,
    192   syntax='proto2',
    193   extension_ranges=[],
    194   oneofs=[
    195   ],
    196   serialized_start=246,
    197   serialized_end=395,
    198 )
    199 
    200 
    201 _X509CERTIFICATES = _descriptor.Descriptor(
    202   name='X509Certificates',
    203   full_name='payments.X509Certificates',
    204   filename=None,
    205   file=DESCRIPTOR,
    206   containing_type=None,
    207   create_key=_descriptor._internal_create_key,
    208   fields=[
    209     _descriptor.FieldDescriptor(
    210       name='certificate', full_name='payments.X509Certificates.certificate', index=0,
    211       number=1, type=12, cpp_type=9, label=3,
    212       has_default_value=False, default_value=[],
    213       message_type=None, enum_type=None, containing_type=None,
    214       is_extension=False, extension_scope=None,
    215       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    216   ],
    217   extensions=[
    218   ],
    219   nested_types=[],
    220   enum_types=[
    221   ],
    222   serialized_options=None,
    223   is_extendable=False,
    224   syntax='proto2',
    225   extension_ranges=[],
    226   oneofs=[
    227   ],
    228   serialized_start=397,
    229   serialized_end=436,
    230 )
    231 
    232 
    233 _PAYMENT = _descriptor.Descriptor(
    234   name='Payment',
    235   full_name='payments.Payment',
    236   filename=None,
    237   file=DESCRIPTOR,
    238   containing_type=None,
    239   create_key=_descriptor._internal_create_key,
    240   fields=[
    241     _descriptor.FieldDescriptor(
    242       name='merchant_data', full_name='payments.Payment.merchant_data', index=0,
    243       number=1, type=12, cpp_type=9, label=1,
    244       has_default_value=False, default_value=b"",
    245       message_type=None, enum_type=None, containing_type=None,
    246       is_extension=False, extension_scope=None,
    247       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    248     _descriptor.FieldDescriptor(
    249       name='transactions', full_name='payments.Payment.transactions', index=1,
    250       number=2, type=12, cpp_type=9, label=3,
    251       has_default_value=False, default_value=[],
    252       message_type=None, enum_type=None, containing_type=None,
    253       is_extension=False, extension_scope=None,
    254       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    255     _descriptor.FieldDescriptor(
    256       name='refund_to', full_name='payments.Payment.refund_to', index=2,
    257       number=3, type=11, cpp_type=10, label=3,
    258       has_default_value=False, default_value=[],
    259       message_type=None, enum_type=None, containing_type=None,
    260       is_extension=False, extension_scope=None,
    261       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    262     _descriptor.FieldDescriptor(
    263       name='memo', full_name='payments.Payment.memo', index=3,
    264       number=4, type=9, cpp_type=9, label=1,
    265       has_default_value=False, default_value=b"".decode('utf-8'),
    266       message_type=None, enum_type=None, containing_type=None,
    267       is_extension=False, extension_scope=None,
    268       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    269   ],
    270   extensions=[
    271   ],
    272   nested_types=[],
    273   enum_types=[
    274   ],
    275   serialized_options=None,
    276   is_extendable=False,
    277   syntax='proto2',
    278   extension_ranges=[],
    279   oneofs=[
    280   ],
    281   serialized_start=438,
    282   serialized_end=543,
    283 )
    284 
    285 
    286 _PAYMENTACK = _descriptor.Descriptor(
    287   name='PaymentACK',
    288   full_name='payments.PaymentACK',
    289   filename=None,
    290   file=DESCRIPTOR,
    291   containing_type=None,
    292   create_key=_descriptor._internal_create_key,
    293   fields=[
    294     _descriptor.FieldDescriptor(
    295       name='payment', full_name='payments.PaymentACK.payment', index=0,
    296       number=1, type=11, cpp_type=10, label=2,
    297       has_default_value=False, default_value=None,
    298       message_type=None, enum_type=None, containing_type=None,
    299       is_extension=False, extension_scope=None,
    300       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    301     _descriptor.FieldDescriptor(
    302       name='memo', full_name='payments.PaymentACK.memo', index=1,
    303       number=2, type=9, cpp_type=9, label=1,
    304       has_default_value=False, default_value=b"".decode('utf-8'),
    305       message_type=None, enum_type=None, containing_type=None,
    306       is_extension=False, extension_scope=None,
    307       serialized_options=None, file=DESCRIPTOR,  create_key=_descriptor._internal_create_key),
    308   ],
    309   extensions=[
    310   ],
    311   nested_types=[],
    312   enum_types=[
    313   ],
    314   serialized_options=None,
    315   is_extendable=False,
    316   syntax='proto2',
    317   extension_ranges=[],
    318   oneofs=[
    319   ],
    320   serialized_start=545,
    321   serialized_end=607,
    322 )
    323 
    324 _PAYMENTDETAILS.fields_by_name['outputs'].message_type = _OUTPUT
    325 _PAYMENT.fields_by_name['refund_to'].message_type = _OUTPUT
    326 _PAYMENTACK.fields_by_name['payment'].message_type = _PAYMENT
    327 DESCRIPTOR.message_types_by_name['Output'] = _OUTPUT
    328 DESCRIPTOR.message_types_by_name['PaymentDetails'] = _PAYMENTDETAILS
    329 DESCRIPTOR.message_types_by_name['PaymentRequest'] = _PAYMENTREQUEST
    330 DESCRIPTOR.message_types_by_name['X509Certificates'] = _X509CERTIFICATES
    331 DESCRIPTOR.message_types_by_name['Payment'] = _PAYMENT
    332 DESCRIPTOR.message_types_by_name['PaymentACK'] = _PAYMENTACK
    333 _sym_db.RegisterFileDescriptor(DESCRIPTOR)
    334 
    335 Output = _reflection.GeneratedProtocolMessageType('Output', (_message.Message,), {
    336   'DESCRIPTOR' : _OUTPUT,
    337   '__module__' : 'paymentrequest_pb2'
    338   # @@protoc_insertion_point(class_scope:payments.Output)
    339   })
    340 _sym_db.RegisterMessage(Output)
    341 
    342 PaymentDetails = _reflection.GeneratedProtocolMessageType('PaymentDetails', (_message.Message,), {
    343   'DESCRIPTOR' : _PAYMENTDETAILS,
    344   '__module__' : 'paymentrequest_pb2'
    345   # @@protoc_insertion_point(class_scope:payments.PaymentDetails)
    346   })
    347 _sym_db.RegisterMessage(PaymentDetails)
    348 
    349 PaymentRequest = _reflection.GeneratedProtocolMessageType('PaymentRequest', (_message.Message,), {
    350   'DESCRIPTOR' : _PAYMENTREQUEST,
    351   '__module__' : 'paymentrequest_pb2'
    352   # @@protoc_insertion_point(class_scope:payments.PaymentRequest)
    353   })
    354 _sym_db.RegisterMessage(PaymentRequest)
    355 
    356 X509Certificates = _reflection.GeneratedProtocolMessageType('X509Certificates', (_message.Message,), {
    357   'DESCRIPTOR' : _X509CERTIFICATES,
    358   '__module__' : 'paymentrequest_pb2'
    359   # @@protoc_insertion_point(class_scope:payments.X509Certificates)
    360   })
    361 _sym_db.RegisterMessage(X509Certificates)
    362 
    363 Payment = _reflection.GeneratedProtocolMessageType('Payment', (_message.Message,), {
    364   'DESCRIPTOR' : _PAYMENT,
    365   '__module__' : 'paymentrequest_pb2'
    366   # @@protoc_insertion_point(class_scope:payments.Payment)
    367   })
    368 _sym_db.RegisterMessage(Payment)
    369 
    370 PaymentACK = _reflection.GeneratedProtocolMessageType('PaymentACK', (_message.Message,), {
    371   'DESCRIPTOR' : _PAYMENTACK,
    372   '__module__' : 'paymentrequest_pb2'
    373   # @@protoc_insertion_point(class_scope:payments.PaymentACK)
    374   })
    375 _sym_db.RegisterMessage(PaymentACK)
    376 
    377 
    378 DESCRIPTOR._options = None
    379 # @@protoc_insertion_point(module_scope)