github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/bddtests/peer/transaction_pb2.py (about)

     1  # Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  # source: peer/transaction.proto
     3  
     4  import sys
     5  _b=sys.version_info[0]<3 and (lambda x:x) or (lambda x:x.encode('latin1'))
     6  from google.protobuf.internal import enum_type_wrapper
     7  from google.protobuf import descriptor as _descriptor
     8  from google.protobuf import message as _message
     9  from google.protobuf import reflection as _reflection
    10  from google.protobuf import symbol_database as _symbol_database
    11  from google.protobuf import descriptor_pb2
    12  # @@protoc_insertion_point(imports)
    13  
    14  _sym_db = _symbol_database.Default()
    15  
    16  
    17  from google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2
    18  from peer import proposal_response_pb2 as peer_dot_proposal__response__pb2
    19  from common import common_pb2 as common_dot_common__pb2
    20  
    21  
    22  DESCRIPTOR = _descriptor.FileDescriptor(
    23    name='peer/transaction.proto',
    24    package='protos',
    25    syntax='proto3',
    26    serialized_pb=_b('\n\x16peer/transaction.proto\x12\x06protos\x1a\x1fgoogle/protobuf/timestamp.proto\x1a\x1cpeer/proposal_response.proto\x1a\x13\x63ommon/common.proto\"A\n\x11SignedTransaction\x12\x19\n\x11transaction_bytes\x18\x01 \x01(\x0c\x12\x11\n\tsignature\x18\x02 \x01(\x0c\"]\n\x14ProcessedTransaction\x12-\n\x13transactionEnvelope\x18\x01 \x01(\x0b\x32\x10.common.Envelope\x12\x16\n\x0evalidationCode\x18\x02 \x01(\x05\"9\n\x0bTransaction\x12*\n\x07\x61\x63tions\x18\x01 \x03(\x0b\x32\x19.protos.TransactionAction\"4\n\x11TransactionAction\x12\x0e\n\x06header\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\"m\n\x16\x43haincodeActionPayload\x12\"\n\x1a\x63haincode_proposal_payload\x18\x01 \x01(\x0c\x12/\n\x06\x61\x63tion\x18\x02 \x01(\x0b\x32\x1f.protos.ChaincodeEndorsedAction\"g\n\x17\x43haincodeEndorsedAction\x12!\n\x19proposal_response_payload\x18\x01 \x01(\x0c\x12)\n\x0c\x65ndorsements\x18\x02 \x03(\x0b\x32\x13.protos.Endorsement*\xc2\x03\n\x10TxValidationCode\x12\t\n\x05VALID\x10\x00\x12\x10\n\x0cNIL_ENVELOPE\x10\x01\x12\x0f\n\x0b\x42\x41\x44_PAYLOAD\x10\x02\x12\x15\n\x11\x42\x41\x44_COMMON_HEADER\x10\x03\x12\x19\n\x15\x42\x41\x44_CREATOR_SIGNATURE\x10\x04\x12 \n\x1cINVALID_ENDORSER_TRANSACTION\x10\x05\x12\x1e\n\x1aINVALID_CONFIG_TRANSACTION\x10\x06\x12\x1a\n\x16UNSUPPORTED_TX_PAYLOAD\x10\x07\x12\x15\n\x11\x42\x41\x44_PROPOSAL_TXID\x10\x08\x12\x12\n\x0e\x44UPLICATE_TXID\x10\t\x12\x1e\n\x1a\x45NDORSEMENT_POLICY_FAILURE\x10\n\x12\x16\n\x12MVCC_READ_CONFLICT\x10\x0b\x12\x19\n\x15PHANTOM_READ_CONFLICT\x10\x0c\x12\x13\n\x0fUNKNOWN_TX_TYPE\x10\r\x12\x1a\n\x16TARGET_CHAIN_NOT_FOUND\x10\x0e\x12\x14\n\x10MARSHAL_TX_ERROR\x10\x0f\x12\x10\n\x0cNIL_TXACTION\x10\x10\x12\x19\n\x14INVALID_OTHER_REASON\x10\xff\x01\x42\x63\n\"org.hyperledger.fabric.protos.peerB\x12TransactionPackageZ)github.com/hyperledger/fabric/protos/peerb\x06proto3')
    27    ,
    28    dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,peer_dot_proposal__response__pb2.DESCRIPTOR,common_dot_common__pb2.DESCRIPTOR,])
    29  _sym_db.RegisterFileDescriptor(DESCRIPTOR)
    30  
    31  _TXVALIDATIONCODE = _descriptor.EnumDescriptor(
    32    name='TxValidationCode',
    33    full_name='protos.TxValidationCode',
    34    filename=None,
    35    file=DESCRIPTOR,
    36    values=[
    37      _descriptor.EnumValueDescriptor(
    38        name='VALID', index=0, number=0,
    39        options=None,
    40        type=None),
    41      _descriptor.EnumValueDescriptor(
    42        name='NIL_ENVELOPE', index=1, number=1,
    43        options=None,
    44        type=None),
    45      _descriptor.EnumValueDescriptor(
    46        name='BAD_PAYLOAD', index=2, number=2,
    47        options=None,
    48        type=None),
    49      _descriptor.EnumValueDescriptor(
    50        name='BAD_COMMON_HEADER', index=3, number=3,
    51        options=None,
    52        type=None),
    53      _descriptor.EnumValueDescriptor(
    54        name='BAD_CREATOR_SIGNATURE', index=4, number=4,
    55        options=None,
    56        type=None),
    57      _descriptor.EnumValueDescriptor(
    58        name='INVALID_ENDORSER_TRANSACTION', index=5, number=5,
    59        options=None,
    60        type=None),
    61      _descriptor.EnumValueDescriptor(
    62        name='INVALID_CONFIG_TRANSACTION', index=6, number=6,
    63        options=None,
    64        type=None),
    65      _descriptor.EnumValueDescriptor(
    66        name='UNSUPPORTED_TX_PAYLOAD', index=7, number=7,
    67        options=None,
    68        type=None),
    69      _descriptor.EnumValueDescriptor(
    70        name='BAD_PROPOSAL_TXID', index=8, number=8,
    71        options=None,
    72        type=None),
    73      _descriptor.EnumValueDescriptor(
    74        name='DUPLICATE_TXID', index=9, number=9,
    75        options=None,
    76        type=None),
    77      _descriptor.EnumValueDescriptor(
    78        name='ENDORSEMENT_POLICY_FAILURE', index=10, number=10,
    79        options=None,
    80        type=None),
    81      _descriptor.EnumValueDescriptor(
    82        name='MVCC_READ_CONFLICT', index=11, number=11,
    83        options=None,
    84        type=None),
    85      _descriptor.EnumValueDescriptor(
    86        name='PHANTOM_READ_CONFLICT', index=12, number=12,
    87        options=None,
    88        type=None),
    89      _descriptor.EnumValueDescriptor(
    90        name='UNKNOWN_TX_TYPE', index=13, number=13,
    91        options=None,
    92        type=None),
    93      _descriptor.EnumValueDescriptor(
    94        name='TARGET_CHAIN_NOT_FOUND', index=14, number=14,
    95        options=None,
    96        type=None),
    97      _descriptor.EnumValueDescriptor(
    98        name='MARSHAL_TX_ERROR', index=15, number=15,
    99        options=None,
   100        type=None),
   101      _descriptor.EnumValueDescriptor(
   102        name='NIL_TXACTION', index=16, number=16,
   103        options=None,
   104        type=None),
   105      _descriptor.EnumValueDescriptor(
   106        name='INVALID_OTHER_REASON', index=17, number=255,
   107        options=None,
   108        type=None),
   109    ],
   110    containing_type=None,
   111    options=None,
   112    serialized_start=610,
   113    serialized_end=1060,
   114  )
   115  _sym_db.RegisterEnumDescriptor(_TXVALIDATIONCODE)
   116  
   117  TxValidationCode = enum_type_wrapper.EnumTypeWrapper(_TXVALIDATIONCODE)
   118  VALID = 0
   119  NIL_ENVELOPE = 1
   120  BAD_PAYLOAD = 2
   121  BAD_COMMON_HEADER = 3
   122  BAD_CREATOR_SIGNATURE = 4
   123  INVALID_ENDORSER_TRANSACTION = 5
   124  INVALID_CONFIG_TRANSACTION = 6
   125  UNSUPPORTED_TX_PAYLOAD = 7
   126  BAD_PROPOSAL_TXID = 8
   127  DUPLICATE_TXID = 9
   128  ENDORSEMENT_POLICY_FAILURE = 10
   129  MVCC_READ_CONFLICT = 11
   130  PHANTOM_READ_CONFLICT = 12
   131  UNKNOWN_TX_TYPE = 13
   132  TARGET_CHAIN_NOT_FOUND = 14
   133  MARSHAL_TX_ERROR = 15
   134  NIL_TXACTION = 16
   135  INVALID_OTHER_REASON = 255
   136  
   137  
   138  
   139  _SIGNEDTRANSACTION = _descriptor.Descriptor(
   140    name='SignedTransaction',
   141    full_name='protos.SignedTransaction',
   142    filename=None,
   143    file=DESCRIPTOR,
   144    containing_type=None,
   145    fields=[
   146      _descriptor.FieldDescriptor(
   147        name='transaction_bytes', full_name='protos.SignedTransaction.transaction_bytes', index=0,
   148        number=1, type=12, cpp_type=9, label=1,
   149        has_default_value=False, default_value=_b(""),
   150        message_type=None, enum_type=None, containing_type=None,
   151        is_extension=False, extension_scope=None,
   152        options=None),
   153      _descriptor.FieldDescriptor(
   154        name='signature', full_name='protos.SignedTransaction.signature', index=1,
   155        number=2, type=12, cpp_type=9, label=1,
   156        has_default_value=False, default_value=_b(""),
   157        message_type=None, enum_type=None, containing_type=None,
   158        is_extension=False, extension_scope=None,
   159        options=None),
   160    ],
   161    extensions=[
   162    ],
   163    nested_types=[],
   164    enum_types=[
   165    ],
   166    options=None,
   167    is_extendable=False,
   168    syntax='proto3',
   169    extension_ranges=[],
   170    oneofs=[
   171    ],
   172    serialized_start=118,
   173    serialized_end=183,
   174  )
   175  
   176  
   177  _PROCESSEDTRANSACTION = _descriptor.Descriptor(
   178    name='ProcessedTransaction',
   179    full_name='protos.ProcessedTransaction',
   180    filename=None,
   181    file=DESCRIPTOR,
   182    containing_type=None,
   183    fields=[
   184      _descriptor.FieldDescriptor(
   185        name='transactionEnvelope', full_name='protos.ProcessedTransaction.transactionEnvelope', index=0,
   186        number=1, type=11, cpp_type=10, label=1,
   187        has_default_value=False, default_value=None,
   188        message_type=None, enum_type=None, containing_type=None,
   189        is_extension=False, extension_scope=None,
   190        options=None),
   191      _descriptor.FieldDescriptor(
   192        name='validationCode', full_name='protos.ProcessedTransaction.validationCode', index=1,
   193        number=2, type=5, cpp_type=1, label=1,
   194        has_default_value=False, default_value=0,
   195        message_type=None, enum_type=None, containing_type=None,
   196        is_extension=False, extension_scope=None,
   197        options=None),
   198    ],
   199    extensions=[
   200    ],
   201    nested_types=[],
   202    enum_types=[
   203    ],
   204    options=None,
   205    is_extendable=False,
   206    syntax='proto3',
   207    extension_ranges=[],
   208    oneofs=[
   209    ],
   210    serialized_start=185,
   211    serialized_end=278,
   212  )
   213  
   214  
   215  _TRANSACTION = _descriptor.Descriptor(
   216    name='Transaction',
   217    full_name='protos.Transaction',
   218    filename=None,
   219    file=DESCRIPTOR,
   220    containing_type=None,
   221    fields=[
   222      _descriptor.FieldDescriptor(
   223        name='actions', full_name='protos.Transaction.actions', index=0,
   224        number=1, type=11, cpp_type=10, label=3,
   225        has_default_value=False, default_value=[],
   226        message_type=None, enum_type=None, containing_type=None,
   227        is_extension=False, extension_scope=None,
   228        options=None),
   229    ],
   230    extensions=[
   231    ],
   232    nested_types=[],
   233    enum_types=[
   234    ],
   235    options=None,
   236    is_extendable=False,
   237    syntax='proto3',
   238    extension_ranges=[],
   239    oneofs=[
   240    ],
   241    serialized_start=280,
   242    serialized_end=337,
   243  )
   244  
   245  
   246  _TRANSACTIONACTION = _descriptor.Descriptor(
   247    name='TransactionAction',
   248    full_name='protos.TransactionAction',
   249    filename=None,
   250    file=DESCRIPTOR,
   251    containing_type=None,
   252    fields=[
   253      _descriptor.FieldDescriptor(
   254        name='header', full_name='protos.TransactionAction.header', index=0,
   255        number=1, type=12, cpp_type=9, label=1,
   256        has_default_value=False, default_value=_b(""),
   257        message_type=None, enum_type=None, containing_type=None,
   258        is_extension=False, extension_scope=None,
   259        options=None),
   260      _descriptor.FieldDescriptor(
   261        name='payload', full_name='protos.TransactionAction.payload', index=1,
   262        number=2, type=12, cpp_type=9, label=1,
   263        has_default_value=False, default_value=_b(""),
   264        message_type=None, enum_type=None, containing_type=None,
   265        is_extension=False, extension_scope=None,
   266        options=None),
   267    ],
   268    extensions=[
   269    ],
   270    nested_types=[],
   271    enum_types=[
   272    ],
   273    options=None,
   274    is_extendable=False,
   275    syntax='proto3',
   276    extension_ranges=[],
   277    oneofs=[
   278    ],
   279    serialized_start=339,
   280    serialized_end=391,
   281  )
   282  
   283  
   284  _CHAINCODEACTIONPAYLOAD = _descriptor.Descriptor(
   285    name='ChaincodeActionPayload',
   286    full_name='protos.ChaincodeActionPayload',
   287    filename=None,
   288    file=DESCRIPTOR,
   289    containing_type=None,
   290    fields=[
   291      _descriptor.FieldDescriptor(
   292        name='chaincode_proposal_payload', full_name='protos.ChaincodeActionPayload.chaincode_proposal_payload', index=0,
   293        number=1, type=12, cpp_type=9, label=1,
   294        has_default_value=False, default_value=_b(""),
   295        message_type=None, enum_type=None, containing_type=None,
   296        is_extension=False, extension_scope=None,
   297        options=None),
   298      _descriptor.FieldDescriptor(
   299        name='action', full_name='protos.ChaincodeActionPayload.action', index=1,
   300        number=2, type=11, cpp_type=10, label=1,
   301        has_default_value=False, default_value=None,
   302        message_type=None, enum_type=None, containing_type=None,
   303        is_extension=False, extension_scope=None,
   304        options=None),
   305    ],
   306    extensions=[
   307    ],
   308    nested_types=[],
   309    enum_types=[
   310    ],
   311    options=None,
   312    is_extendable=False,
   313    syntax='proto3',
   314    extension_ranges=[],
   315    oneofs=[
   316    ],
   317    serialized_start=393,
   318    serialized_end=502,
   319  )
   320  
   321  
   322  _CHAINCODEENDORSEDACTION = _descriptor.Descriptor(
   323    name='ChaincodeEndorsedAction',
   324    full_name='protos.ChaincodeEndorsedAction',
   325    filename=None,
   326    file=DESCRIPTOR,
   327    containing_type=None,
   328    fields=[
   329      _descriptor.FieldDescriptor(
   330        name='proposal_response_payload', full_name='protos.ChaincodeEndorsedAction.proposal_response_payload', index=0,
   331        number=1, type=12, cpp_type=9, label=1,
   332        has_default_value=False, default_value=_b(""),
   333        message_type=None, enum_type=None, containing_type=None,
   334        is_extension=False, extension_scope=None,
   335        options=None),
   336      _descriptor.FieldDescriptor(
   337        name='endorsements', full_name='protos.ChaincodeEndorsedAction.endorsements', index=1,
   338        number=2, type=11, cpp_type=10, label=3,
   339        has_default_value=False, default_value=[],
   340        message_type=None, enum_type=None, containing_type=None,
   341        is_extension=False, extension_scope=None,
   342        options=None),
   343    ],
   344    extensions=[
   345    ],
   346    nested_types=[],
   347    enum_types=[
   348    ],
   349    options=None,
   350    is_extendable=False,
   351    syntax='proto3',
   352    extension_ranges=[],
   353    oneofs=[
   354    ],
   355    serialized_start=504,
   356    serialized_end=607,
   357  )
   358  
   359  _PROCESSEDTRANSACTION.fields_by_name['transactionEnvelope'].message_type = common_dot_common__pb2._ENVELOPE
   360  _TRANSACTION.fields_by_name['actions'].message_type = _TRANSACTIONACTION
   361  _CHAINCODEACTIONPAYLOAD.fields_by_name['action'].message_type = _CHAINCODEENDORSEDACTION
   362  _CHAINCODEENDORSEDACTION.fields_by_name['endorsements'].message_type = peer_dot_proposal__response__pb2._ENDORSEMENT
   363  DESCRIPTOR.message_types_by_name['SignedTransaction'] = _SIGNEDTRANSACTION
   364  DESCRIPTOR.message_types_by_name['ProcessedTransaction'] = _PROCESSEDTRANSACTION
   365  DESCRIPTOR.message_types_by_name['Transaction'] = _TRANSACTION
   366  DESCRIPTOR.message_types_by_name['TransactionAction'] = _TRANSACTIONACTION
   367  DESCRIPTOR.message_types_by_name['ChaincodeActionPayload'] = _CHAINCODEACTIONPAYLOAD
   368  DESCRIPTOR.message_types_by_name['ChaincodeEndorsedAction'] = _CHAINCODEENDORSEDACTION
   369  DESCRIPTOR.enum_types_by_name['TxValidationCode'] = _TXVALIDATIONCODE
   370  
   371  SignedTransaction = _reflection.GeneratedProtocolMessageType('SignedTransaction', (_message.Message,), dict(
   372    DESCRIPTOR = _SIGNEDTRANSACTION,
   373    __module__ = 'peer.transaction_pb2'
   374    # @@protoc_insertion_point(class_scope:protos.SignedTransaction)
   375    ))
   376  _sym_db.RegisterMessage(SignedTransaction)
   377  
   378  ProcessedTransaction = _reflection.GeneratedProtocolMessageType('ProcessedTransaction', (_message.Message,), dict(
   379    DESCRIPTOR = _PROCESSEDTRANSACTION,
   380    __module__ = 'peer.transaction_pb2'
   381    # @@protoc_insertion_point(class_scope:protos.ProcessedTransaction)
   382    ))
   383  _sym_db.RegisterMessage(ProcessedTransaction)
   384  
   385  Transaction = _reflection.GeneratedProtocolMessageType('Transaction', (_message.Message,), dict(
   386    DESCRIPTOR = _TRANSACTION,
   387    __module__ = 'peer.transaction_pb2'
   388    # @@protoc_insertion_point(class_scope:protos.Transaction)
   389    ))
   390  _sym_db.RegisterMessage(Transaction)
   391  
   392  TransactionAction = _reflection.GeneratedProtocolMessageType('TransactionAction', (_message.Message,), dict(
   393    DESCRIPTOR = _TRANSACTIONACTION,
   394    __module__ = 'peer.transaction_pb2'
   395    # @@protoc_insertion_point(class_scope:protos.TransactionAction)
   396    ))
   397  _sym_db.RegisterMessage(TransactionAction)
   398  
   399  ChaincodeActionPayload = _reflection.GeneratedProtocolMessageType('ChaincodeActionPayload', (_message.Message,), dict(
   400    DESCRIPTOR = _CHAINCODEACTIONPAYLOAD,
   401    __module__ = 'peer.transaction_pb2'
   402    # @@protoc_insertion_point(class_scope:protos.ChaincodeActionPayload)
   403    ))
   404  _sym_db.RegisterMessage(ChaincodeActionPayload)
   405  
   406  ChaincodeEndorsedAction = _reflection.GeneratedProtocolMessageType('ChaincodeEndorsedAction', (_message.Message,), dict(
   407    DESCRIPTOR = _CHAINCODEENDORSEDACTION,
   408    __module__ = 'peer.transaction_pb2'
   409    # @@protoc_insertion_point(class_scope:protos.ChaincodeEndorsedAction)
   410    ))
   411  _sym_db.RegisterMessage(ChaincodeEndorsedAction)
   412  
   413  
   414  DESCRIPTOR.has_options = True
   415  DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"org.hyperledger.fabric.protos.peerB\022TransactionPackageZ)github.com/hyperledger/fabric/protos/peer'))
   416  try:
   417    # THESE ELEMENTS WILL BE DEPRECATED.
   418    # Please use the generated *_pb2_grpc.py files instead.
   419    import grpc
   420    from grpc.framework.common import cardinality
   421    from grpc.framework.interfaces.face import utilities as face_utilities
   422    from grpc.beta import implementations as beta_implementations
   423    from grpc.beta import interfaces as beta_interfaces
   424  except ImportError:
   425    pass
   426  # @@protoc_insertion_point(module_scope)