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

     1  # Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  # source: peer/proposal.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 import descriptor as _descriptor
     7  from google.protobuf import message as _message
     8  from google.protobuf import reflection as _reflection
     9  from google.protobuf import symbol_database as _symbol_database
    10  from google.protobuf import descriptor_pb2
    11  # @@protoc_insertion_point(imports)
    12  
    13  _sym_db = _symbol_database.Default()
    14  
    15  
    16  from peer import chaincode_pb2 as peer_dot_chaincode__pb2
    17  from peer import proposal_response_pb2 as peer_dot_proposal__response__pb2
    18  
    19  
    20  DESCRIPTOR = _descriptor.FileDescriptor(
    21    name='peer/proposal.proto',
    22    package='protos',
    23    syntax='proto3',
    24    serialized_pb=_b('\n\x13peer/proposal.proto\x12\x06protos\x1a\x14peer/chaincode.proto\x1a\x1cpeer/proposal_response.proto\";\n\x0eSignedProposal\x12\x16\n\x0eproposal_bytes\x18\x01 \x01(\x0c\x12\x11\n\tsignature\x18\x02 \x01(\x0c\">\n\x08Proposal\x12\x0e\n\x06header\x18\x01 \x01(\x0c\x12\x0f\n\x07payload\x18\x02 \x01(\x0c\x12\x11\n\textension\x18\x03 \x01(\x0c\"a\n\x18\x43haincodeHeaderExtension\x12\x1a\n\x12payload_visibility\x18\x01 \x01(\x0c\x12)\n\x0c\x63haincode_id\x18\x02 \x01(\x0b\x32\x13.protos.ChaincodeID\"\xa8\x01\n\x18\x43haincodeProposalPayload\x12\r\n\x05input\x18\x01 \x01(\x0c\x12H\n\x0cTransientMap\x18\x02 \x03(\x0b\x32\x32.protos.ChaincodeProposalPayload.TransientMapEntry\x1a\x33\n\x11TransientMapEntry\x12\x0b\n\x03key\x18\x01 \x01(\t\x12\r\n\x05value\x18\x02 \x01(\x0c:\x02\x38\x01\"V\n\x0f\x43haincodeAction\x12\x0f\n\x07results\x18\x01 \x01(\x0c\x12\x0e\n\x06\x65vents\x18\x02 \x01(\x0c\x12\"\n\x08response\x18\x03 \x01(\x0b\x32\x10.protos.ResponseB`\n\"org.hyperledger.fabric.protos.peerB\x0fProposalPackageZ)github.com/hyperledger/fabric/protos/peerb\x06proto3')
    25    ,
    26    dependencies=[peer_dot_chaincode__pb2.DESCRIPTOR,peer_dot_proposal__response__pb2.DESCRIPTOR,])
    27  _sym_db.RegisterFileDescriptor(DESCRIPTOR)
    28  
    29  
    30  
    31  
    32  _SIGNEDPROPOSAL = _descriptor.Descriptor(
    33    name='SignedProposal',
    34    full_name='protos.SignedProposal',
    35    filename=None,
    36    file=DESCRIPTOR,
    37    containing_type=None,
    38    fields=[
    39      _descriptor.FieldDescriptor(
    40        name='proposal_bytes', full_name='protos.SignedProposal.proposal_bytes', index=0,
    41        number=1, type=12, cpp_type=9, label=1,
    42        has_default_value=False, default_value=_b(""),
    43        message_type=None, enum_type=None, containing_type=None,
    44        is_extension=False, extension_scope=None,
    45        options=None),
    46      _descriptor.FieldDescriptor(
    47        name='signature', full_name='protos.SignedProposal.signature', index=1,
    48        number=2, type=12, cpp_type=9, label=1,
    49        has_default_value=False, default_value=_b(""),
    50        message_type=None, enum_type=None, containing_type=None,
    51        is_extension=False, extension_scope=None,
    52        options=None),
    53    ],
    54    extensions=[
    55    ],
    56    nested_types=[],
    57    enum_types=[
    58    ],
    59    options=None,
    60    is_extendable=False,
    61    syntax='proto3',
    62    extension_ranges=[],
    63    oneofs=[
    64    ],
    65    serialized_start=83,
    66    serialized_end=142,
    67  )
    68  
    69  
    70  _PROPOSAL = _descriptor.Descriptor(
    71    name='Proposal',
    72    full_name='protos.Proposal',
    73    filename=None,
    74    file=DESCRIPTOR,
    75    containing_type=None,
    76    fields=[
    77      _descriptor.FieldDescriptor(
    78        name='header', full_name='protos.Proposal.header', index=0,
    79        number=1, type=12, cpp_type=9, label=1,
    80        has_default_value=False, default_value=_b(""),
    81        message_type=None, enum_type=None, containing_type=None,
    82        is_extension=False, extension_scope=None,
    83        options=None),
    84      _descriptor.FieldDescriptor(
    85        name='payload', full_name='protos.Proposal.payload', index=1,
    86        number=2, type=12, cpp_type=9, label=1,
    87        has_default_value=False, default_value=_b(""),
    88        message_type=None, enum_type=None, containing_type=None,
    89        is_extension=False, extension_scope=None,
    90        options=None),
    91      _descriptor.FieldDescriptor(
    92        name='extension', full_name='protos.Proposal.extension', index=2,
    93        number=3, type=12, cpp_type=9, label=1,
    94        has_default_value=False, default_value=_b(""),
    95        message_type=None, enum_type=None, containing_type=None,
    96        is_extension=False, extension_scope=None,
    97        options=None),
    98    ],
    99    extensions=[
   100    ],
   101    nested_types=[],
   102    enum_types=[
   103    ],
   104    options=None,
   105    is_extendable=False,
   106    syntax='proto3',
   107    extension_ranges=[],
   108    oneofs=[
   109    ],
   110    serialized_start=144,
   111    serialized_end=206,
   112  )
   113  
   114  
   115  _CHAINCODEHEADEREXTENSION = _descriptor.Descriptor(
   116    name='ChaincodeHeaderExtension',
   117    full_name='protos.ChaincodeHeaderExtension',
   118    filename=None,
   119    file=DESCRIPTOR,
   120    containing_type=None,
   121    fields=[
   122      _descriptor.FieldDescriptor(
   123        name='payload_visibility', full_name='protos.ChaincodeHeaderExtension.payload_visibility', index=0,
   124        number=1, type=12, cpp_type=9, label=1,
   125        has_default_value=False, default_value=_b(""),
   126        message_type=None, enum_type=None, containing_type=None,
   127        is_extension=False, extension_scope=None,
   128        options=None),
   129      _descriptor.FieldDescriptor(
   130        name='chaincode_id', full_name='protos.ChaincodeHeaderExtension.chaincode_id', index=1,
   131        number=2, type=11, cpp_type=10, label=1,
   132        has_default_value=False, default_value=None,
   133        message_type=None, enum_type=None, containing_type=None,
   134        is_extension=False, extension_scope=None,
   135        options=None),
   136    ],
   137    extensions=[
   138    ],
   139    nested_types=[],
   140    enum_types=[
   141    ],
   142    options=None,
   143    is_extendable=False,
   144    syntax='proto3',
   145    extension_ranges=[],
   146    oneofs=[
   147    ],
   148    serialized_start=208,
   149    serialized_end=305,
   150  )
   151  
   152  
   153  _CHAINCODEPROPOSALPAYLOAD_TRANSIENTMAPENTRY = _descriptor.Descriptor(
   154    name='TransientMapEntry',
   155    full_name='protos.ChaincodeProposalPayload.TransientMapEntry',
   156    filename=None,
   157    file=DESCRIPTOR,
   158    containing_type=None,
   159    fields=[
   160      _descriptor.FieldDescriptor(
   161        name='key', full_name='protos.ChaincodeProposalPayload.TransientMapEntry.key', index=0,
   162        number=1, type=9, cpp_type=9, label=1,
   163        has_default_value=False, default_value=_b("").decode('utf-8'),
   164        message_type=None, enum_type=None, containing_type=None,
   165        is_extension=False, extension_scope=None,
   166        options=None),
   167      _descriptor.FieldDescriptor(
   168        name='value', full_name='protos.ChaincodeProposalPayload.TransientMapEntry.value', index=1,
   169        number=2, type=12, cpp_type=9, label=1,
   170        has_default_value=False, default_value=_b(""),
   171        message_type=None, enum_type=None, containing_type=None,
   172        is_extension=False, extension_scope=None,
   173        options=None),
   174    ],
   175    extensions=[
   176    ],
   177    nested_types=[],
   178    enum_types=[
   179    ],
   180    options=_descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001')),
   181    is_extendable=False,
   182    syntax='proto3',
   183    extension_ranges=[],
   184    oneofs=[
   185    ],
   186    serialized_start=425,
   187    serialized_end=476,
   188  )
   189  
   190  _CHAINCODEPROPOSALPAYLOAD = _descriptor.Descriptor(
   191    name='ChaincodeProposalPayload',
   192    full_name='protos.ChaincodeProposalPayload',
   193    filename=None,
   194    file=DESCRIPTOR,
   195    containing_type=None,
   196    fields=[
   197      _descriptor.FieldDescriptor(
   198        name='input', full_name='protos.ChaincodeProposalPayload.input', index=0,
   199        number=1, type=12, cpp_type=9, label=1,
   200        has_default_value=False, default_value=_b(""),
   201        message_type=None, enum_type=None, containing_type=None,
   202        is_extension=False, extension_scope=None,
   203        options=None),
   204      _descriptor.FieldDescriptor(
   205        name='TransientMap', full_name='protos.ChaincodeProposalPayload.TransientMap', index=1,
   206        number=2, type=11, cpp_type=10, label=3,
   207        has_default_value=False, default_value=[],
   208        message_type=None, enum_type=None, containing_type=None,
   209        is_extension=False, extension_scope=None,
   210        options=None),
   211    ],
   212    extensions=[
   213    ],
   214    nested_types=[_CHAINCODEPROPOSALPAYLOAD_TRANSIENTMAPENTRY, ],
   215    enum_types=[
   216    ],
   217    options=None,
   218    is_extendable=False,
   219    syntax='proto3',
   220    extension_ranges=[],
   221    oneofs=[
   222    ],
   223    serialized_start=308,
   224    serialized_end=476,
   225  )
   226  
   227  
   228  _CHAINCODEACTION = _descriptor.Descriptor(
   229    name='ChaincodeAction',
   230    full_name='protos.ChaincodeAction',
   231    filename=None,
   232    file=DESCRIPTOR,
   233    containing_type=None,
   234    fields=[
   235      _descriptor.FieldDescriptor(
   236        name='results', full_name='protos.ChaincodeAction.results', index=0,
   237        number=1, type=12, cpp_type=9, label=1,
   238        has_default_value=False, default_value=_b(""),
   239        message_type=None, enum_type=None, containing_type=None,
   240        is_extension=False, extension_scope=None,
   241        options=None),
   242      _descriptor.FieldDescriptor(
   243        name='events', full_name='protos.ChaincodeAction.events', index=1,
   244        number=2, type=12, cpp_type=9, label=1,
   245        has_default_value=False, default_value=_b(""),
   246        message_type=None, enum_type=None, containing_type=None,
   247        is_extension=False, extension_scope=None,
   248        options=None),
   249      _descriptor.FieldDescriptor(
   250        name='response', full_name='protos.ChaincodeAction.response', index=2,
   251        number=3, type=11, cpp_type=10, label=1,
   252        has_default_value=False, default_value=None,
   253        message_type=None, enum_type=None, containing_type=None,
   254        is_extension=False, extension_scope=None,
   255        options=None),
   256    ],
   257    extensions=[
   258    ],
   259    nested_types=[],
   260    enum_types=[
   261    ],
   262    options=None,
   263    is_extendable=False,
   264    syntax='proto3',
   265    extension_ranges=[],
   266    oneofs=[
   267    ],
   268    serialized_start=478,
   269    serialized_end=564,
   270  )
   271  
   272  _CHAINCODEHEADEREXTENSION.fields_by_name['chaincode_id'].message_type = peer_dot_chaincode__pb2._CHAINCODEID
   273  _CHAINCODEPROPOSALPAYLOAD_TRANSIENTMAPENTRY.containing_type = _CHAINCODEPROPOSALPAYLOAD
   274  _CHAINCODEPROPOSALPAYLOAD.fields_by_name['TransientMap'].message_type = _CHAINCODEPROPOSALPAYLOAD_TRANSIENTMAPENTRY
   275  _CHAINCODEACTION.fields_by_name['response'].message_type = peer_dot_proposal__response__pb2._RESPONSE
   276  DESCRIPTOR.message_types_by_name['SignedProposal'] = _SIGNEDPROPOSAL
   277  DESCRIPTOR.message_types_by_name['Proposal'] = _PROPOSAL
   278  DESCRIPTOR.message_types_by_name['ChaincodeHeaderExtension'] = _CHAINCODEHEADEREXTENSION
   279  DESCRIPTOR.message_types_by_name['ChaincodeProposalPayload'] = _CHAINCODEPROPOSALPAYLOAD
   280  DESCRIPTOR.message_types_by_name['ChaincodeAction'] = _CHAINCODEACTION
   281  
   282  SignedProposal = _reflection.GeneratedProtocolMessageType('SignedProposal', (_message.Message,), dict(
   283    DESCRIPTOR = _SIGNEDPROPOSAL,
   284    __module__ = 'peer.proposal_pb2'
   285    # @@protoc_insertion_point(class_scope:protos.SignedProposal)
   286    ))
   287  _sym_db.RegisterMessage(SignedProposal)
   288  
   289  Proposal = _reflection.GeneratedProtocolMessageType('Proposal', (_message.Message,), dict(
   290    DESCRIPTOR = _PROPOSAL,
   291    __module__ = 'peer.proposal_pb2'
   292    # @@protoc_insertion_point(class_scope:protos.Proposal)
   293    ))
   294  _sym_db.RegisterMessage(Proposal)
   295  
   296  ChaincodeHeaderExtension = _reflection.GeneratedProtocolMessageType('ChaincodeHeaderExtension', (_message.Message,), dict(
   297    DESCRIPTOR = _CHAINCODEHEADEREXTENSION,
   298    __module__ = 'peer.proposal_pb2'
   299    # @@protoc_insertion_point(class_scope:protos.ChaincodeHeaderExtension)
   300    ))
   301  _sym_db.RegisterMessage(ChaincodeHeaderExtension)
   302  
   303  ChaincodeProposalPayload = _reflection.GeneratedProtocolMessageType('ChaincodeProposalPayload', (_message.Message,), dict(
   304  
   305    TransientMapEntry = _reflection.GeneratedProtocolMessageType('TransientMapEntry', (_message.Message,), dict(
   306      DESCRIPTOR = _CHAINCODEPROPOSALPAYLOAD_TRANSIENTMAPENTRY,
   307      __module__ = 'peer.proposal_pb2'
   308      # @@protoc_insertion_point(class_scope:protos.ChaincodeProposalPayload.TransientMapEntry)
   309      ))
   310    ,
   311    DESCRIPTOR = _CHAINCODEPROPOSALPAYLOAD,
   312    __module__ = 'peer.proposal_pb2'
   313    # @@protoc_insertion_point(class_scope:protos.ChaincodeProposalPayload)
   314    ))
   315  _sym_db.RegisterMessage(ChaincodeProposalPayload)
   316  _sym_db.RegisterMessage(ChaincodeProposalPayload.TransientMapEntry)
   317  
   318  ChaincodeAction = _reflection.GeneratedProtocolMessageType('ChaincodeAction', (_message.Message,), dict(
   319    DESCRIPTOR = _CHAINCODEACTION,
   320    __module__ = 'peer.proposal_pb2'
   321    # @@protoc_insertion_point(class_scope:protos.ChaincodeAction)
   322    ))
   323  _sym_db.RegisterMessage(ChaincodeAction)
   324  
   325  
   326  DESCRIPTOR.has_options = True
   327  DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"org.hyperledger.fabric.protos.peerB\017ProposalPackageZ)github.com/hyperledger/fabric/protos/peer'))
   328  _CHAINCODEPROPOSALPAYLOAD_TRANSIENTMAPENTRY.has_options = True
   329  _CHAINCODEPROPOSALPAYLOAD_TRANSIENTMAPENTRY._options = _descriptor._ParseOptions(descriptor_pb2.MessageOptions(), _b('8\001'))
   330  try:
   331    # THESE ELEMENTS WILL BE DEPRECATED.
   332    # Please use the generated *_pb2_grpc.py files instead.
   333    import grpc
   334    from grpc.framework.common import cardinality
   335    from grpc.framework.interfaces.face import utilities as face_utilities
   336    from grpc.beta import implementations as beta_implementations
   337    from grpc.beta import interfaces as beta_interfaces
   338  except ImportError:
   339    pass
   340  # @@protoc_insertion_point(module_scope)