github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/peer/chaincode_pb2.py (about)

     1  # Generated by the protocol buffer compiler.  DO NOT EDIT!
     2  # source: peer/chaincode.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  
    19  
    20  DESCRIPTOR = _descriptor.FileDescriptor(
    21    name='peer/chaincode.proto',
    22    package='protos',
    23    syntax='proto3',
    24    serialized_pb=_b('\n\x14peer/chaincode.proto\x12\x06protos\x1a\x1fgoogle/protobuf/timestamp.proto\":\n\x0b\x43haincodeID\x12\x0c\n\x04path\x18\x01 \x01(\t\x12\x0c\n\x04name\x18\x02 \x01(\t\x12\x0f\n\x07version\x18\x03 \x01(\t\"\x1e\n\x0e\x43haincodeInput\x12\x0c\n\x04\x61rgs\x18\x01 \x03(\x0c\"\xdc\x01\n\rChaincodeSpec\x12(\n\x04type\x18\x01 \x01(\x0e\x32\x1a.protos.ChaincodeSpec.Type\x12)\n\x0c\x63haincode_id\x18\x02 \x01(\x0b\x32\x13.protos.ChaincodeID\x12%\n\x05input\x18\x03 \x01(\x0b\x32\x16.protos.ChaincodeInput\x12\x0f\n\x07timeout\x18\x04 \x01(\x05\">\n\x04Type\x12\r\n\tUNDEFINED\x10\x00\x12\n\n\x06GOLANG\x10\x01\x12\x08\n\x04NODE\x10\x02\x12\x07\n\x03\x43\x41R\x10\x03\x12\x08\n\x04JAVA\x10\x04\"\x8a\x02\n\x17\x43haincodeDeploymentSpec\x12-\n\x0e\x63haincode_spec\x18\x01 \x01(\x0b\x32\x15.protos.ChaincodeSpec\x12\x32\n\x0e\x65\x66\x66\x65\x63tive_date\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\x14\n\x0c\x63ode_package\x18\x03 \x01(\x0c\x12\x46\n\x08\x65xec_env\x18\x04 \x01(\x0e\x32\x34.protos.ChaincodeDeploymentSpec.ExecutionEnvironment\".\n\x14\x45xecutionEnvironment\x12\n\n\x06\x44OCKER\x10\x00\x12\n\n\x06SYSTEM\x10\x01\"c\n\x17\x43haincodeInvocationSpec\x12-\n\x0e\x63haincode_spec\x18\x01 \x01(\x0b\x32\x15.protos.ChaincodeSpec\x12\x19\n\x11id_generation_alg\x18\x02 \x01(\t*4\n\x14\x43onfidentialityLevel\x12\n\n\x06PUBLIC\x10\x00\x12\x10\n\x0c\x43ONFIDENTIAL\x10\x01\x42O\n\"org.hyperledger.fabric.protos.peerZ)github.com/hyperledger/fabric/protos/peerb\x06proto3')
    25    ,
    26    dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,])
    27  _sym_db.RegisterFileDescriptor(DESCRIPTOR)
    28  
    29  _CONFIDENTIALITYLEVEL = _descriptor.EnumDescriptor(
    30    name='ConfidentialityLevel',
    31    full_name='protos.ConfidentialityLevel',
    32    filename=None,
    33    file=DESCRIPTOR,
    34    values=[
    35      _descriptor.EnumValueDescriptor(
    36        name='PUBLIC', index=0, number=0,
    37        options=None,
    38        type=None),
    39      _descriptor.EnumValueDescriptor(
    40        name='CONFIDENTIAL', index=1, number=1,
    41        options=None,
    42        type=None),
    43    ],
    44    containing_type=None,
    45    options=None,
    46    serialized_start=750,
    47    serialized_end=802,
    48  )
    49  _sym_db.RegisterEnumDescriptor(_CONFIDENTIALITYLEVEL)
    50  
    51  ConfidentialityLevel = enum_type_wrapper.EnumTypeWrapper(_CONFIDENTIALITYLEVEL)
    52  PUBLIC = 0
    53  CONFIDENTIAL = 1
    54  
    55  
    56  _CHAINCODESPEC_TYPE = _descriptor.EnumDescriptor(
    57    name='Type',
    58    full_name='protos.ChaincodeSpec.Type',
    59    filename=None,
    60    file=DESCRIPTOR,
    61    values=[
    62      _descriptor.EnumValueDescriptor(
    63        name='UNDEFINED', index=0, number=0,
    64        options=None,
    65        type=None),
    66      _descriptor.EnumValueDescriptor(
    67        name='GOLANG', index=1, number=1,
    68        options=None,
    69        type=None),
    70      _descriptor.EnumValueDescriptor(
    71        name='NODE', index=2, number=2,
    72        options=None,
    73        type=None),
    74      _descriptor.EnumValueDescriptor(
    75        name='CAR', index=3, number=3,
    76        options=None,
    77        type=None),
    78      _descriptor.EnumValueDescriptor(
    79        name='JAVA', index=4, number=4,
    80        options=None,
    81        type=None),
    82    ],
    83    containing_type=None,
    84    options=None,
    85    serialized_start=316,
    86    serialized_end=378,
    87  )
    88  _sym_db.RegisterEnumDescriptor(_CHAINCODESPEC_TYPE)
    89  
    90  _CHAINCODEDEPLOYMENTSPEC_EXECUTIONENVIRONMENT = _descriptor.EnumDescriptor(
    91    name='ExecutionEnvironment',
    92    full_name='protos.ChaincodeDeploymentSpec.ExecutionEnvironment',
    93    filename=None,
    94    file=DESCRIPTOR,
    95    values=[
    96      _descriptor.EnumValueDescriptor(
    97        name='DOCKER', index=0, number=0,
    98        options=None,
    99        type=None),
   100      _descriptor.EnumValueDescriptor(
   101        name='SYSTEM', index=1, number=1,
   102        options=None,
   103        type=None),
   104    ],
   105    containing_type=None,
   106    options=None,
   107    serialized_start=601,
   108    serialized_end=647,
   109  )
   110  _sym_db.RegisterEnumDescriptor(_CHAINCODEDEPLOYMENTSPEC_EXECUTIONENVIRONMENT)
   111  
   112  
   113  _CHAINCODEID = _descriptor.Descriptor(
   114    name='ChaincodeID',
   115    full_name='protos.ChaincodeID',
   116    filename=None,
   117    file=DESCRIPTOR,
   118    containing_type=None,
   119    fields=[
   120      _descriptor.FieldDescriptor(
   121        name='path', full_name='protos.ChaincodeID.path', index=0,
   122        number=1, type=9, cpp_type=9, label=1,
   123        has_default_value=False, default_value=_b("").decode('utf-8'),
   124        message_type=None, enum_type=None, containing_type=None,
   125        is_extension=False, extension_scope=None,
   126        options=None),
   127      _descriptor.FieldDescriptor(
   128        name='name', full_name='protos.ChaincodeID.name', index=1,
   129        number=2, type=9, cpp_type=9, label=1,
   130        has_default_value=False, default_value=_b("").decode('utf-8'),
   131        message_type=None, enum_type=None, containing_type=None,
   132        is_extension=False, extension_scope=None,
   133        options=None),
   134      _descriptor.FieldDescriptor(
   135        name='version', full_name='protos.ChaincodeID.version', index=2,
   136        number=3, type=9, cpp_type=9, label=1,
   137        has_default_value=False, default_value=_b("").decode('utf-8'),
   138        message_type=None, enum_type=None, containing_type=None,
   139        is_extension=False, extension_scope=None,
   140        options=None),
   141    ],
   142    extensions=[
   143    ],
   144    nested_types=[],
   145    enum_types=[
   146    ],
   147    options=None,
   148    is_extendable=False,
   149    syntax='proto3',
   150    extension_ranges=[],
   151    oneofs=[
   152    ],
   153    serialized_start=65,
   154    serialized_end=123,
   155  )
   156  
   157  
   158  _CHAINCODEINPUT = _descriptor.Descriptor(
   159    name='ChaincodeInput',
   160    full_name='protos.ChaincodeInput',
   161    filename=None,
   162    file=DESCRIPTOR,
   163    containing_type=None,
   164    fields=[
   165      _descriptor.FieldDescriptor(
   166        name='args', full_name='protos.ChaincodeInput.args', index=0,
   167        number=1, type=12, cpp_type=9, label=3,
   168        has_default_value=False, default_value=[],
   169        message_type=None, enum_type=None, containing_type=None,
   170        is_extension=False, extension_scope=None,
   171        options=None),
   172    ],
   173    extensions=[
   174    ],
   175    nested_types=[],
   176    enum_types=[
   177    ],
   178    options=None,
   179    is_extendable=False,
   180    syntax='proto3',
   181    extension_ranges=[],
   182    oneofs=[
   183    ],
   184    serialized_start=125,
   185    serialized_end=155,
   186  )
   187  
   188  
   189  _CHAINCODESPEC = _descriptor.Descriptor(
   190    name='ChaincodeSpec',
   191    full_name='protos.ChaincodeSpec',
   192    filename=None,
   193    file=DESCRIPTOR,
   194    containing_type=None,
   195    fields=[
   196      _descriptor.FieldDescriptor(
   197        name='type', full_name='protos.ChaincodeSpec.type', index=0,
   198        number=1, type=14, cpp_type=8, label=1,
   199        has_default_value=False, default_value=0,
   200        message_type=None, enum_type=None, containing_type=None,
   201        is_extension=False, extension_scope=None,
   202        options=None),
   203      _descriptor.FieldDescriptor(
   204        name='chaincode_id', full_name='protos.ChaincodeSpec.chaincode_id', index=1,
   205        number=2, type=11, cpp_type=10, label=1,
   206        has_default_value=False, default_value=None,
   207        message_type=None, enum_type=None, containing_type=None,
   208        is_extension=False, extension_scope=None,
   209        options=None),
   210      _descriptor.FieldDescriptor(
   211        name='input', full_name='protos.ChaincodeSpec.input', index=2,
   212        number=3, type=11, cpp_type=10, label=1,
   213        has_default_value=False, default_value=None,
   214        message_type=None, enum_type=None, containing_type=None,
   215        is_extension=False, extension_scope=None,
   216        options=None),
   217      _descriptor.FieldDescriptor(
   218        name='timeout', full_name='protos.ChaincodeSpec.timeout', index=3,
   219        number=4, type=5, cpp_type=1, label=1,
   220        has_default_value=False, default_value=0,
   221        message_type=None, enum_type=None, containing_type=None,
   222        is_extension=False, extension_scope=None,
   223        options=None),
   224    ],
   225    extensions=[
   226    ],
   227    nested_types=[],
   228    enum_types=[
   229      _CHAINCODESPEC_TYPE,
   230    ],
   231    options=None,
   232    is_extendable=False,
   233    syntax='proto3',
   234    extension_ranges=[],
   235    oneofs=[
   236    ],
   237    serialized_start=158,
   238    serialized_end=378,
   239  )
   240  
   241  
   242  _CHAINCODEDEPLOYMENTSPEC = _descriptor.Descriptor(
   243    name='ChaincodeDeploymentSpec',
   244    full_name='protos.ChaincodeDeploymentSpec',
   245    filename=None,
   246    file=DESCRIPTOR,
   247    containing_type=None,
   248    fields=[
   249      _descriptor.FieldDescriptor(
   250        name='chaincode_spec', full_name='protos.ChaincodeDeploymentSpec.chaincode_spec', index=0,
   251        number=1, 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      _descriptor.FieldDescriptor(
   257        name='effective_date', full_name='protos.ChaincodeDeploymentSpec.effective_date', index=1,
   258        number=2, type=11, cpp_type=10, label=1,
   259        has_default_value=False, default_value=None,
   260        message_type=None, enum_type=None, containing_type=None,
   261        is_extension=False, extension_scope=None,
   262        options=None),
   263      _descriptor.FieldDescriptor(
   264        name='code_package', full_name='protos.ChaincodeDeploymentSpec.code_package', index=2,
   265        number=3, type=12, cpp_type=9, label=1,
   266        has_default_value=False, default_value=_b(""),
   267        message_type=None, enum_type=None, containing_type=None,
   268        is_extension=False, extension_scope=None,
   269        options=None),
   270      _descriptor.FieldDescriptor(
   271        name='exec_env', full_name='protos.ChaincodeDeploymentSpec.exec_env', index=3,
   272        number=4, type=14, cpp_type=8, label=1,
   273        has_default_value=False, default_value=0,
   274        message_type=None, enum_type=None, containing_type=None,
   275        is_extension=False, extension_scope=None,
   276        options=None),
   277    ],
   278    extensions=[
   279    ],
   280    nested_types=[],
   281    enum_types=[
   282      _CHAINCODEDEPLOYMENTSPEC_EXECUTIONENVIRONMENT,
   283    ],
   284    options=None,
   285    is_extendable=False,
   286    syntax='proto3',
   287    extension_ranges=[],
   288    oneofs=[
   289    ],
   290    serialized_start=381,
   291    serialized_end=647,
   292  )
   293  
   294  
   295  _CHAINCODEINVOCATIONSPEC = _descriptor.Descriptor(
   296    name='ChaincodeInvocationSpec',
   297    full_name='protos.ChaincodeInvocationSpec',
   298    filename=None,
   299    file=DESCRIPTOR,
   300    containing_type=None,
   301    fields=[
   302      _descriptor.FieldDescriptor(
   303        name='chaincode_spec', full_name='protos.ChaincodeInvocationSpec.chaincode_spec', index=0,
   304        number=1, type=11, cpp_type=10, label=1,
   305        has_default_value=False, default_value=None,
   306        message_type=None, enum_type=None, containing_type=None,
   307        is_extension=False, extension_scope=None,
   308        options=None),
   309      _descriptor.FieldDescriptor(
   310        name='id_generation_alg', full_name='protos.ChaincodeInvocationSpec.id_generation_alg', index=1,
   311        number=2, type=9, cpp_type=9, label=1,
   312        has_default_value=False, default_value=_b("").decode('utf-8'),
   313        message_type=None, enum_type=None, containing_type=None,
   314        is_extension=False, extension_scope=None,
   315        options=None),
   316    ],
   317    extensions=[
   318    ],
   319    nested_types=[],
   320    enum_types=[
   321    ],
   322    options=None,
   323    is_extendable=False,
   324    syntax='proto3',
   325    extension_ranges=[],
   326    oneofs=[
   327    ],
   328    serialized_start=649,
   329    serialized_end=748,
   330  )
   331  
   332  _CHAINCODESPEC.fields_by_name['type'].enum_type = _CHAINCODESPEC_TYPE
   333  _CHAINCODESPEC.fields_by_name['chaincode_id'].message_type = _CHAINCODEID
   334  _CHAINCODESPEC.fields_by_name['input'].message_type = _CHAINCODEINPUT
   335  _CHAINCODESPEC_TYPE.containing_type = _CHAINCODESPEC
   336  _CHAINCODEDEPLOYMENTSPEC.fields_by_name['chaincode_spec'].message_type = _CHAINCODESPEC
   337  _CHAINCODEDEPLOYMENTSPEC.fields_by_name['effective_date'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP
   338  _CHAINCODEDEPLOYMENTSPEC.fields_by_name['exec_env'].enum_type = _CHAINCODEDEPLOYMENTSPEC_EXECUTIONENVIRONMENT
   339  _CHAINCODEDEPLOYMENTSPEC_EXECUTIONENVIRONMENT.containing_type = _CHAINCODEDEPLOYMENTSPEC
   340  _CHAINCODEINVOCATIONSPEC.fields_by_name['chaincode_spec'].message_type = _CHAINCODESPEC
   341  DESCRIPTOR.message_types_by_name['ChaincodeID'] = _CHAINCODEID
   342  DESCRIPTOR.message_types_by_name['ChaincodeInput'] = _CHAINCODEINPUT
   343  DESCRIPTOR.message_types_by_name['ChaincodeSpec'] = _CHAINCODESPEC
   344  DESCRIPTOR.message_types_by_name['ChaincodeDeploymentSpec'] = _CHAINCODEDEPLOYMENTSPEC
   345  DESCRIPTOR.message_types_by_name['ChaincodeInvocationSpec'] = _CHAINCODEINVOCATIONSPEC
   346  DESCRIPTOR.enum_types_by_name['ConfidentialityLevel'] = _CONFIDENTIALITYLEVEL
   347  
   348  ChaincodeID = _reflection.GeneratedProtocolMessageType('ChaincodeID', (_message.Message,), dict(
   349    DESCRIPTOR = _CHAINCODEID,
   350    __module__ = 'peer.chaincode_pb2'
   351    # @@protoc_insertion_point(class_scope:protos.ChaincodeID)
   352    ))
   353  _sym_db.RegisterMessage(ChaincodeID)
   354  
   355  ChaincodeInput = _reflection.GeneratedProtocolMessageType('ChaincodeInput', (_message.Message,), dict(
   356    DESCRIPTOR = _CHAINCODEINPUT,
   357    __module__ = 'peer.chaincode_pb2'
   358    # @@protoc_insertion_point(class_scope:protos.ChaincodeInput)
   359    ))
   360  _sym_db.RegisterMessage(ChaincodeInput)
   361  
   362  ChaincodeSpec = _reflection.GeneratedProtocolMessageType('ChaincodeSpec', (_message.Message,), dict(
   363    DESCRIPTOR = _CHAINCODESPEC,
   364    __module__ = 'peer.chaincode_pb2'
   365    # @@protoc_insertion_point(class_scope:protos.ChaincodeSpec)
   366    ))
   367  _sym_db.RegisterMessage(ChaincodeSpec)
   368  
   369  ChaincodeDeploymentSpec = _reflection.GeneratedProtocolMessageType('ChaincodeDeploymentSpec', (_message.Message,), dict(
   370    DESCRIPTOR = _CHAINCODEDEPLOYMENTSPEC,
   371    __module__ = 'peer.chaincode_pb2'
   372    # @@protoc_insertion_point(class_scope:protos.ChaincodeDeploymentSpec)
   373    ))
   374  _sym_db.RegisterMessage(ChaincodeDeploymentSpec)
   375  
   376  ChaincodeInvocationSpec = _reflection.GeneratedProtocolMessageType('ChaincodeInvocationSpec', (_message.Message,), dict(
   377    DESCRIPTOR = _CHAINCODEINVOCATIONSPEC,
   378    __module__ = 'peer.chaincode_pb2'
   379    # @@protoc_insertion_point(class_scope:protos.ChaincodeInvocationSpec)
   380    ))
   381  _sym_db.RegisterMessage(ChaincodeInvocationSpec)
   382  
   383  
   384  DESCRIPTOR.has_options = True
   385  DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"org.hyperledger.fabric.protos.peerZ)github.com/hyperledger/fabric/protos/peer'))
   386  try:
   387    # THESE ELEMENTS WILL BE DEPRECATED.
   388    # Please use the generated *_pb2_grpc.py files instead.
   389    import grpc
   390    from grpc.framework.common import cardinality
   391    from grpc.framework.interfaces.face import utilities as face_utilities
   392    from grpc.beta import implementations as beta_implementations
   393    from grpc.beta import interfaces as beta_interfaces
   394  except ImportError:
   395    pass
   396  # @@protoc_insertion_point(module_scope)