github.com/leonlxy/hyperledger@v1.0.0-alpha.0.20170427033203-34922035d248/bddtests/peer/proposal_response_pb2.py (about) 1 # Generated by the protocol buffer compiler. DO NOT EDIT! 2 # source: peer/proposal_response.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 google.protobuf import timestamp_pb2 as google_dot_protobuf_dot_timestamp__pb2 17 18 19 DESCRIPTOR = _descriptor.FileDescriptor( 20 name='peer/proposal_response.proto', 21 package='protos', 22 syntax='proto3', 23 serialized_pb=_b('\n\x1cpeer/proposal_response.proto\x12\x06protos\x1a\x1fgoogle/protobuf/timestamp.proto\"\xb1\x01\n\x10ProposalResponse\x12\x0f\n\x07version\x18\x01 \x01(\x05\x12-\n\ttimestamp\x18\x02 \x01(\x0b\x32\x1a.google.protobuf.Timestamp\x12\"\n\x08response\x18\x04 \x01(\x0b\x32\x10.protos.Response\x12\x0f\n\x07payload\x18\x05 \x01(\x0c\x12(\n\x0b\x65ndorsement\x18\x06 \x01(\x0b\x32\x13.protos.Endorsement\"<\n\x08Response\x12\x0e\n\x06status\x18\x01 \x01(\x05\x12\x0f\n\x07message\x18\x02 \x01(\t\x12\x0f\n\x07payload\x18\x03 \x01(\x0c\"C\n\x17ProposalResponsePayload\x12\x15\n\rproposal_hash\x18\x01 \x01(\x0c\x12\x11\n\textension\x18\x02 \x01(\x0c\"2\n\x0b\x45ndorsement\x12\x10\n\x08\x65ndorser\x18\x01 \x01(\x0c\x12\x11\n\tsignature\x18\x02 \x01(\x0c\x42h\n\"org.hyperledger.fabric.protos.peerB\x17ProposalResponsePackageZ)github.com/hyperledger/fabric/protos/peerb\x06proto3') 24 , 25 dependencies=[google_dot_protobuf_dot_timestamp__pb2.DESCRIPTOR,]) 26 _sym_db.RegisterFileDescriptor(DESCRIPTOR) 27 28 29 30 31 _PROPOSALRESPONSE = _descriptor.Descriptor( 32 name='ProposalResponse', 33 full_name='protos.ProposalResponse', 34 filename=None, 35 file=DESCRIPTOR, 36 containing_type=None, 37 fields=[ 38 _descriptor.FieldDescriptor( 39 name='version', full_name='protos.ProposalResponse.version', index=0, 40 number=1, type=5, cpp_type=1, label=1, 41 has_default_value=False, default_value=0, 42 message_type=None, enum_type=None, containing_type=None, 43 is_extension=False, extension_scope=None, 44 options=None), 45 _descriptor.FieldDescriptor( 46 name='timestamp', full_name='protos.ProposalResponse.timestamp', index=1, 47 number=2, type=11, cpp_type=10, label=1, 48 has_default_value=False, default_value=None, 49 message_type=None, enum_type=None, containing_type=None, 50 is_extension=False, extension_scope=None, 51 options=None), 52 _descriptor.FieldDescriptor( 53 name='response', full_name='protos.ProposalResponse.response', index=2, 54 number=4, type=11, cpp_type=10, label=1, 55 has_default_value=False, default_value=None, 56 message_type=None, enum_type=None, containing_type=None, 57 is_extension=False, extension_scope=None, 58 options=None), 59 _descriptor.FieldDescriptor( 60 name='payload', full_name='protos.ProposalResponse.payload', index=3, 61 number=5, type=12, cpp_type=9, label=1, 62 has_default_value=False, default_value=_b(""), 63 message_type=None, enum_type=None, containing_type=None, 64 is_extension=False, extension_scope=None, 65 options=None), 66 _descriptor.FieldDescriptor( 67 name='endorsement', full_name='protos.ProposalResponse.endorsement', index=4, 68 number=6, type=11, cpp_type=10, label=1, 69 has_default_value=False, default_value=None, 70 message_type=None, enum_type=None, containing_type=None, 71 is_extension=False, extension_scope=None, 72 options=None), 73 ], 74 extensions=[ 75 ], 76 nested_types=[], 77 enum_types=[ 78 ], 79 options=None, 80 is_extendable=False, 81 syntax='proto3', 82 extension_ranges=[], 83 oneofs=[ 84 ], 85 serialized_start=74, 86 serialized_end=251, 87 ) 88 89 90 _RESPONSE = _descriptor.Descriptor( 91 name='Response', 92 full_name='protos.Response', 93 filename=None, 94 file=DESCRIPTOR, 95 containing_type=None, 96 fields=[ 97 _descriptor.FieldDescriptor( 98 name='status', full_name='protos.Response.status', index=0, 99 number=1, type=5, cpp_type=1, label=1, 100 has_default_value=False, default_value=0, 101 message_type=None, enum_type=None, containing_type=None, 102 is_extension=False, extension_scope=None, 103 options=None), 104 _descriptor.FieldDescriptor( 105 name='message', full_name='protos.Response.message', index=1, 106 number=2, type=9, cpp_type=9, label=1, 107 has_default_value=False, default_value=_b("").decode('utf-8'), 108 message_type=None, enum_type=None, containing_type=None, 109 is_extension=False, extension_scope=None, 110 options=None), 111 _descriptor.FieldDescriptor( 112 name='payload', full_name='protos.Response.payload', index=2, 113 number=3, type=12, cpp_type=9, label=1, 114 has_default_value=False, default_value=_b(""), 115 message_type=None, enum_type=None, containing_type=None, 116 is_extension=False, extension_scope=None, 117 options=None), 118 ], 119 extensions=[ 120 ], 121 nested_types=[], 122 enum_types=[ 123 ], 124 options=None, 125 is_extendable=False, 126 syntax='proto3', 127 extension_ranges=[], 128 oneofs=[ 129 ], 130 serialized_start=253, 131 serialized_end=313, 132 ) 133 134 135 _PROPOSALRESPONSEPAYLOAD = _descriptor.Descriptor( 136 name='ProposalResponsePayload', 137 full_name='protos.ProposalResponsePayload', 138 filename=None, 139 file=DESCRIPTOR, 140 containing_type=None, 141 fields=[ 142 _descriptor.FieldDescriptor( 143 name='proposal_hash', full_name='protos.ProposalResponsePayload.proposal_hash', index=0, 144 number=1, type=12, cpp_type=9, label=1, 145 has_default_value=False, default_value=_b(""), 146 message_type=None, enum_type=None, containing_type=None, 147 is_extension=False, extension_scope=None, 148 options=None), 149 _descriptor.FieldDescriptor( 150 name='extension', full_name='protos.ProposalResponsePayload.extension', index=1, 151 number=2, type=12, cpp_type=9, label=1, 152 has_default_value=False, default_value=_b(""), 153 message_type=None, enum_type=None, containing_type=None, 154 is_extension=False, extension_scope=None, 155 options=None), 156 ], 157 extensions=[ 158 ], 159 nested_types=[], 160 enum_types=[ 161 ], 162 options=None, 163 is_extendable=False, 164 syntax='proto3', 165 extension_ranges=[], 166 oneofs=[ 167 ], 168 serialized_start=315, 169 serialized_end=382, 170 ) 171 172 173 _ENDORSEMENT = _descriptor.Descriptor( 174 name='Endorsement', 175 full_name='protos.Endorsement', 176 filename=None, 177 file=DESCRIPTOR, 178 containing_type=None, 179 fields=[ 180 _descriptor.FieldDescriptor( 181 name='endorser', full_name='protos.Endorsement.endorser', index=0, 182 number=1, type=12, cpp_type=9, label=1, 183 has_default_value=False, default_value=_b(""), 184 message_type=None, enum_type=None, containing_type=None, 185 is_extension=False, extension_scope=None, 186 options=None), 187 _descriptor.FieldDescriptor( 188 name='signature', full_name='protos.Endorsement.signature', index=1, 189 number=2, type=12, cpp_type=9, label=1, 190 has_default_value=False, default_value=_b(""), 191 message_type=None, enum_type=None, containing_type=None, 192 is_extension=False, extension_scope=None, 193 options=None), 194 ], 195 extensions=[ 196 ], 197 nested_types=[], 198 enum_types=[ 199 ], 200 options=None, 201 is_extendable=False, 202 syntax='proto3', 203 extension_ranges=[], 204 oneofs=[ 205 ], 206 serialized_start=384, 207 serialized_end=434, 208 ) 209 210 _PROPOSALRESPONSE.fields_by_name['timestamp'].message_type = google_dot_protobuf_dot_timestamp__pb2._TIMESTAMP 211 _PROPOSALRESPONSE.fields_by_name['response'].message_type = _RESPONSE 212 _PROPOSALRESPONSE.fields_by_name['endorsement'].message_type = _ENDORSEMENT 213 DESCRIPTOR.message_types_by_name['ProposalResponse'] = _PROPOSALRESPONSE 214 DESCRIPTOR.message_types_by_name['Response'] = _RESPONSE 215 DESCRIPTOR.message_types_by_name['ProposalResponsePayload'] = _PROPOSALRESPONSEPAYLOAD 216 DESCRIPTOR.message_types_by_name['Endorsement'] = _ENDORSEMENT 217 218 ProposalResponse = _reflection.GeneratedProtocolMessageType('ProposalResponse', (_message.Message,), dict( 219 DESCRIPTOR = _PROPOSALRESPONSE, 220 __module__ = 'peer.proposal_response_pb2' 221 # @@protoc_insertion_point(class_scope:protos.ProposalResponse) 222 )) 223 _sym_db.RegisterMessage(ProposalResponse) 224 225 Response = _reflection.GeneratedProtocolMessageType('Response', (_message.Message,), dict( 226 DESCRIPTOR = _RESPONSE, 227 __module__ = 'peer.proposal_response_pb2' 228 # @@protoc_insertion_point(class_scope:protos.Response) 229 )) 230 _sym_db.RegisterMessage(Response) 231 232 ProposalResponsePayload = _reflection.GeneratedProtocolMessageType('ProposalResponsePayload', (_message.Message,), dict( 233 DESCRIPTOR = _PROPOSALRESPONSEPAYLOAD, 234 __module__ = 'peer.proposal_response_pb2' 235 # @@protoc_insertion_point(class_scope:protos.ProposalResponsePayload) 236 )) 237 _sym_db.RegisterMessage(ProposalResponsePayload) 238 239 Endorsement = _reflection.GeneratedProtocolMessageType('Endorsement', (_message.Message,), dict( 240 DESCRIPTOR = _ENDORSEMENT, 241 __module__ = 'peer.proposal_response_pb2' 242 # @@protoc_insertion_point(class_scope:protos.Endorsement) 243 )) 244 _sym_db.RegisterMessage(Endorsement) 245 246 247 DESCRIPTOR.has_options = True 248 DESCRIPTOR._options = _descriptor._ParseOptions(descriptor_pb2.FileOptions(), _b('\n\"org.hyperledger.fabric.protos.peerB\027ProposalResponsePackageZ)github.com/hyperledger/fabric/protos/peer')) 249 try: 250 # THESE ELEMENTS WILL BE DEPRECATED. 251 # Please use the generated *_pb2_grpc.py files instead. 252 import grpc 253 from grpc.framework.common import cardinality 254 from grpc.framework.interfaces.face import utilities as face_utilities 255 from grpc.beta import implementations as beta_implementations 256 from grpc.beta import interfaces as beta_interfaces 257 except ImportError: 258 pass 259 # @@protoc_insertion_point(module_scope)