github.com/ZihuaZhang/fabric-protos-go@v1.0.7/peer/chaincode_shim.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: peer/chaincode_shim.proto 3 4 package peer 5 6 import ( 7 context "context" 8 fmt "fmt" 9 proto "github.com/golang/protobuf/proto" 10 grpc "google.golang.org/grpc" 11 codes "google.golang.org/grpc/codes" 12 status "google.golang.org/grpc/status" 13 timestamppb "google.golang.org/protobuf/types/known/timestamppb" 14 math "math" 15 ) 16 17 // Reference imports to suppress errors if they are not otherwise used. 18 var _ = proto.Marshal 19 var _ = fmt.Errorf 20 var _ = math.Inf 21 22 // This is a compile-time assertion to ensure that this generated file 23 // is compatible with the proto package it is being compiled against. 24 // A compilation error at this line likely means your copy of the 25 // proto package needs to be updated. 26 const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 27 28 type ChaincodeMessage_Type int32 29 30 const ( 31 ChaincodeMessage_UNDEFINED ChaincodeMessage_Type = 0 32 ChaincodeMessage_REGISTER ChaincodeMessage_Type = 1 33 ChaincodeMessage_REGISTERED ChaincodeMessage_Type = 2 34 ChaincodeMessage_INIT ChaincodeMessage_Type = 3 35 ChaincodeMessage_READY ChaincodeMessage_Type = 4 36 ChaincodeMessage_TRANSACTION ChaincodeMessage_Type = 5 37 ChaincodeMessage_COMPLETED ChaincodeMessage_Type = 6 38 ChaincodeMessage_ERROR ChaincodeMessage_Type = 7 39 ChaincodeMessage_GET_STATE ChaincodeMessage_Type = 8 40 ChaincodeMessage_PUT_STATE ChaincodeMessage_Type = 9 41 ChaincodeMessage_DEL_STATE ChaincodeMessage_Type = 10 42 ChaincodeMessage_INVOKE_CHAINCODE ChaincodeMessage_Type = 11 43 ChaincodeMessage_RESPONSE ChaincodeMessage_Type = 13 44 ChaincodeMessage_GET_STATE_BY_RANGE ChaincodeMessage_Type = 14 45 ChaincodeMessage_GET_QUERY_RESULT ChaincodeMessage_Type = 15 46 ChaincodeMessage_QUERY_STATE_NEXT ChaincodeMessage_Type = 16 47 ChaincodeMessage_QUERY_STATE_CLOSE ChaincodeMessage_Type = 17 48 ChaincodeMessage_KEEPALIVE ChaincodeMessage_Type = 18 49 ChaincodeMessage_GET_HISTORY_FOR_KEY ChaincodeMessage_Type = 19 50 ChaincodeMessage_GET_STATE_METADATA ChaincodeMessage_Type = 20 51 ChaincodeMessage_PUT_STATE_METADATA ChaincodeMessage_Type = 21 52 ChaincodeMessage_GET_PRIVATE_DATA_HASH ChaincodeMessage_Type = 22 53 ChaincodeMessage_PURGE_PRIVATE_DATA ChaincodeMessage_Type = 23 54 ) 55 56 var ChaincodeMessage_Type_name = map[int32]string{ 57 0: "UNDEFINED", 58 1: "REGISTER", 59 2: "REGISTERED", 60 3: "INIT", 61 4: "READY", 62 5: "TRANSACTION", 63 6: "COMPLETED", 64 7: "ERROR", 65 8: "GET_STATE", 66 9: "PUT_STATE", 67 10: "DEL_STATE", 68 11: "INVOKE_CHAINCODE", 69 13: "RESPONSE", 70 14: "GET_STATE_BY_RANGE", 71 15: "GET_QUERY_RESULT", 72 16: "QUERY_STATE_NEXT", 73 17: "QUERY_STATE_CLOSE", 74 18: "KEEPALIVE", 75 19: "GET_HISTORY_FOR_KEY", 76 20: "GET_STATE_METADATA", 77 21: "PUT_STATE_METADATA", 78 22: "GET_PRIVATE_DATA_HASH", 79 23: "PURGE_PRIVATE_DATA", 80 } 81 82 var ChaincodeMessage_Type_value = map[string]int32{ 83 "UNDEFINED": 0, 84 "REGISTER": 1, 85 "REGISTERED": 2, 86 "INIT": 3, 87 "READY": 4, 88 "TRANSACTION": 5, 89 "COMPLETED": 6, 90 "ERROR": 7, 91 "GET_STATE": 8, 92 "PUT_STATE": 9, 93 "DEL_STATE": 10, 94 "INVOKE_CHAINCODE": 11, 95 "RESPONSE": 13, 96 "GET_STATE_BY_RANGE": 14, 97 "GET_QUERY_RESULT": 15, 98 "QUERY_STATE_NEXT": 16, 99 "QUERY_STATE_CLOSE": 17, 100 "KEEPALIVE": 18, 101 "GET_HISTORY_FOR_KEY": 19, 102 "GET_STATE_METADATA": 20, 103 "PUT_STATE_METADATA": 21, 104 "GET_PRIVATE_DATA_HASH": 22, 105 "PURGE_PRIVATE_DATA": 23, 106 } 107 108 func (x ChaincodeMessage_Type) String() string { 109 return proto.EnumName(ChaincodeMessage_Type_name, int32(x)) 110 } 111 112 func (ChaincodeMessage_Type) EnumDescriptor() ([]byte, []int) { 113 return fileDescriptor_e5819fec16c96da2, []int{0, 0} 114 } 115 116 type ChaincodeMessage struct { 117 Type ChaincodeMessage_Type `protobuf:"varint,1,opt,name=type,proto3,enum=protos.ChaincodeMessage_Type" json:"type,omitempty"` 118 Timestamp *timestamppb.Timestamp `protobuf:"bytes,2,opt,name=timestamp,proto3" json:"timestamp,omitempty"` 119 Payload []byte `protobuf:"bytes,3,opt,name=payload,proto3" json:"payload,omitempty"` 120 Txid string `protobuf:"bytes,4,opt,name=txid,proto3" json:"txid,omitempty"` 121 Proposal *SignedProposal `protobuf:"bytes,5,opt,name=proposal,proto3" json:"proposal,omitempty"` 122 // event emitted by chaincode. Used only with Init or Invoke. 123 // This event is then stored (currently) 124 // with Block.NonHashData.TransactionResult 125 ChaincodeEvent *ChaincodeEvent `protobuf:"bytes,6,opt,name=chaincode_event,json=chaincodeEvent,proto3" json:"chaincode_event,omitempty"` 126 // channel id 127 ChannelId string `protobuf:"bytes,7,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"` 128 XXX_NoUnkeyedLiteral struct{} `json:"-"` 129 XXX_unrecognized []byte `json:"-"` 130 XXX_sizecache int32 `json:"-"` 131 } 132 133 func (m *ChaincodeMessage) Reset() { *m = ChaincodeMessage{} } 134 func (m *ChaincodeMessage) String() string { return proto.CompactTextString(m) } 135 func (*ChaincodeMessage) ProtoMessage() {} 136 func (*ChaincodeMessage) Descriptor() ([]byte, []int) { 137 return fileDescriptor_e5819fec16c96da2, []int{0} 138 } 139 140 func (m *ChaincodeMessage) XXX_Unmarshal(b []byte) error { 141 return xxx_messageInfo_ChaincodeMessage.Unmarshal(m, b) 142 } 143 func (m *ChaincodeMessage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 144 return xxx_messageInfo_ChaincodeMessage.Marshal(b, m, deterministic) 145 } 146 func (m *ChaincodeMessage) XXX_Merge(src proto.Message) { 147 xxx_messageInfo_ChaincodeMessage.Merge(m, src) 148 } 149 func (m *ChaincodeMessage) XXX_Size() int { 150 return xxx_messageInfo_ChaincodeMessage.Size(m) 151 } 152 func (m *ChaincodeMessage) XXX_DiscardUnknown() { 153 xxx_messageInfo_ChaincodeMessage.DiscardUnknown(m) 154 } 155 156 var xxx_messageInfo_ChaincodeMessage proto.InternalMessageInfo 157 158 func (m *ChaincodeMessage) GetType() ChaincodeMessage_Type { 159 if m != nil { 160 return m.Type 161 } 162 return ChaincodeMessage_UNDEFINED 163 } 164 165 func (m *ChaincodeMessage) GetTimestamp() *timestamppb.Timestamp { 166 if m != nil { 167 return m.Timestamp 168 } 169 return nil 170 } 171 172 func (m *ChaincodeMessage) GetPayload() []byte { 173 if m != nil { 174 return m.Payload 175 } 176 return nil 177 } 178 179 func (m *ChaincodeMessage) GetTxid() string { 180 if m != nil { 181 return m.Txid 182 } 183 return "" 184 } 185 186 func (m *ChaincodeMessage) GetProposal() *SignedProposal { 187 if m != nil { 188 return m.Proposal 189 } 190 return nil 191 } 192 193 func (m *ChaincodeMessage) GetChaincodeEvent() *ChaincodeEvent { 194 if m != nil { 195 return m.ChaincodeEvent 196 } 197 return nil 198 } 199 200 func (m *ChaincodeMessage) GetChannelId() string { 201 if m != nil { 202 return m.ChannelId 203 } 204 return "" 205 } 206 207 // GetState is the payload of a ChaincodeMessage. It contains a key which 208 // is to be fetched from the ledger. If the collection is specified, the key 209 // would be fetched from the collection (i.e., private state) 210 type GetState struct { 211 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 212 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 213 XXX_NoUnkeyedLiteral struct{} `json:"-"` 214 XXX_unrecognized []byte `json:"-"` 215 XXX_sizecache int32 `json:"-"` 216 } 217 218 func (m *GetState) Reset() { *m = GetState{} } 219 func (m *GetState) String() string { return proto.CompactTextString(m) } 220 func (*GetState) ProtoMessage() {} 221 func (*GetState) Descriptor() ([]byte, []int) { 222 return fileDescriptor_e5819fec16c96da2, []int{1} 223 } 224 225 func (m *GetState) XXX_Unmarshal(b []byte) error { 226 return xxx_messageInfo_GetState.Unmarshal(m, b) 227 } 228 func (m *GetState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 229 return xxx_messageInfo_GetState.Marshal(b, m, deterministic) 230 } 231 func (m *GetState) XXX_Merge(src proto.Message) { 232 xxx_messageInfo_GetState.Merge(m, src) 233 } 234 func (m *GetState) XXX_Size() int { 235 return xxx_messageInfo_GetState.Size(m) 236 } 237 func (m *GetState) XXX_DiscardUnknown() { 238 xxx_messageInfo_GetState.DiscardUnknown(m) 239 } 240 241 var xxx_messageInfo_GetState proto.InternalMessageInfo 242 243 func (m *GetState) GetKey() string { 244 if m != nil { 245 return m.Key 246 } 247 return "" 248 } 249 250 func (m *GetState) GetCollection() string { 251 if m != nil { 252 return m.Collection 253 } 254 return "" 255 } 256 257 type GetStateMetadata struct { 258 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 259 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 260 XXX_NoUnkeyedLiteral struct{} `json:"-"` 261 XXX_unrecognized []byte `json:"-"` 262 XXX_sizecache int32 `json:"-"` 263 } 264 265 func (m *GetStateMetadata) Reset() { *m = GetStateMetadata{} } 266 func (m *GetStateMetadata) String() string { return proto.CompactTextString(m) } 267 func (*GetStateMetadata) ProtoMessage() {} 268 func (*GetStateMetadata) Descriptor() ([]byte, []int) { 269 return fileDescriptor_e5819fec16c96da2, []int{2} 270 } 271 272 func (m *GetStateMetadata) XXX_Unmarshal(b []byte) error { 273 return xxx_messageInfo_GetStateMetadata.Unmarshal(m, b) 274 } 275 func (m *GetStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 276 return xxx_messageInfo_GetStateMetadata.Marshal(b, m, deterministic) 277 } 278 func (m *GetStateMetadata) XXX_Merge(src proto.Message) { 279 xxx_messageInfo_GetStateMetadata.Merge(m, src) 280 } 281 func (m *GetStateMetadata) XXX_Size() int { 282 return xxx_messageInfo_GetStateMetadata.Size(m) 283 } 284 func (m *GetStateMetadata) XXX_DiscardUnknown() { 285 xxx_messageInfo_GetStateMetadata.DiscardUnknown(m) 286 } 287 288 var xxx_messageInfo_GetStateMetadata proto.InternalMessageInfo 289 290 func (m *GetStateMetadata) GetKey() string { 291 if m != nil { 292 return m.Key 293 } 294 return "" 295 } 296 297 func (m *GetStateMetadata) GetCollection() string { 298 if m != nil { 299 return m.Collection 300 } 301 return "" 302 } 303 304 // PutState is the payload of a ChaincodeMessage. It contains a key and value 305 // which needs to be written to the transaction's write set. If the collection is 306 // specified, the key and value would be written to the transaction's private 307 // write set. 308 type PutState struct { 309 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 310 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 311 Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` 312 XXX_NoUnkeyedLiteral struct{} `json:"-"` 313 XXX_unrecognized []byte `json:"-"` 314 XXX_sizecache int32 `json:"-"` 315 } 316 317 func (m *PutState) Reset() { *m = PutState{} } 318 func (m *PutState) String() string { return proto.CompactTextString(m) } 319 func (*PutState) ProtoMessage() {} 320 func (*PutState) Descriptor() ([]byte, []int) { 321 return fileDescriptor_e5819fec16c96da2, []int{3} 322 } 323 324 func (m *PutState) XXX_Unmarshal(b []byte) error { 325 return xxx_messageInfo_PutState.Unmarshal(m, b) 326 } 327 func (m *PutState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 328 return xxx_messageInfo_PutState.Marshal(b, m, deterministic) 329 } 330 func (m *PutState) XXX_Merge(src proto.Message) { 331 xxx_messageInfo_PutState.Merge(m, src) 332 } 333 func (m *PutState) XXX_Size() int { 334 return xxx_messageInfo_PutState.Size(m) 335 } 336 func (m *PutState) XXX_DiscardUnknown() { 337 xxx_messageInfo_PutState.DiscardUnknown(m) 338 } 339 340 var xxx_messageInfo_PutState proto.InternalMessageInfo 341 342 func (m *PutState) GetKey() string { 343 if m != nil { 344 return m.Key 345 } 346 return "" 347 } 348 349 func (m *PutState) GetValue() []byte { 350 if m != nil { 351 return m.Value 352 } 353 return nil 354 } 355 356 func (m *PutState) GetCollection() string { 357 if m != nil { 358 return m.Collection 359 } 360 return "" 361 } 362 363 type PutStateMetadata struct { 364 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 365 Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` 366 Metadata *StateMetadata `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` 367 XXX_NoUnkeyedLiteral struct{} `json:"-"` 368 XXX_unrecognized []byte `json:"-"` 369 XXX_sizecache int32 `json:"-"` 370 } 371 372 func (m *PutStateMetadata) Reset() { *m = PutStateMetadata{} } 373 func (m *PutStateMetadata) String() string { return proto.CompactTextString(m) } 374 func (*PutStateMetadata) ProtoMessage() {} 375 func (*PutStateMetadata) Descriptor() ([]byte, []int) { 376 return fileDescriptor_e5819fec16c96da2, []int{4} 377 } 378 379 func (m *PutStateMetadata) XXX_Unmarshal(b []byte) error { 380 return xxx_messageInfo_PutStateMetadata.Unmarshal(m, b) 381 } 382 func (m *PutStateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 383 return xxx_messageInfo_PutStateMetadata.Marshal(b, m, deterministic) 384 } 385 func (m *PutStateMetadata) XXX_Merge(src proto.Message) { 386 xxx_messageInfo_PutStateMetadata.Merge(m, src) 387 } 388 func (m *PutStateMetadata) XXX_Size() int { 389 return xxx_messageInfo_PutStateMetadata.Size(m) 390 } 391 func (m *PutStateMetadata) XXX_DiscardUnknown() { 392 xxx_messageInfo_PutStateMetadata.DiscardUnknown(m) 393 } 394 395 var xxx_messageInfo_PutStateMetadata proto.InternalMessageInfo 396 397 func (m *PutStateMetadata) GetKey() string { 398 if m != nil { 399 return m.Key 400 } 401 return "" 402 } 403 404 func (m *PutStateMetadata) GetCollection() string { 405 if m != nil { 406 return m.Collection 407 } 408 return "" 409 } 410 411 func (m *PutStateMetadata) GetMetadata() *StateMetadata { 412 if m != nil { 413 return m.Metadata 414 } 415 return nil 416 } 417 418 // DelState is the payload of a ChaincodeMessage. It contains a key which 419 // needs to be recorded in the transaction's write set as a delete operation. 420 // If the collection is specified, the key needs to be recorded in the 421 // transaction's private write set as a delete operation. 422 type DelState struct { 423 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 424 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 425 XXX_NoUnkeyedLiteral struct{} `json:"-"` 426 XXX_unrecognized []byte `json:"-"` 427 XXX_sizecache int32 `json:"-"` 428 } 429 430 func (m *DelState) Reset() { *m = DelState{} } 431 func (m *DelState) String() string { return proto.CompactTextString(m) } 432 func (*DelState) ProtoMessage() {} 433 func (*DelState) Descriptor() ([]byte, []int) { 434 return fileDescriptor_e5819fec16c96da2, []int{5} 435 } 436 437 func (m *DelState) XXX_Unmarshal(b []byte) error { 438 return xxx_messageInfo_DelState.Unmarshal(m, b) 439 } 440 func (m *DelState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 441 return xxx_messageInfo_DelState.Marshal(b, m, deterministic) 442 } 443 func (m *DelState) XXX_Merge(src proto.Message) { 444 xxx_messageInfo_DelState.Merge(m, src) 445 } 446 func (m *DelState) XXX_Size() int { 447 return xxx_messageInfo_DelState.Size(m) 448 } 449 func (m *DelState) XXX_DiscardUnknown() { 450 xxx_messageInfo_DelState.DiscardUnknown(m) 451 } 452 453 var xxx_messageInfo_DelState proto.InternalMessageInfo 454 455 func (m *DelState) GetKey() string { 456 if m != nil { 457 return m.Key 458 } 459 return "" 460 } 461 462 func (m *DelState) GetCollection() string { 463 if m != nil { 464 return m.Collection 465 } 466 return "" 467 } 468 469 type PurgePrivateState struct { 470 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 471 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 472 XXX_NoUnkeyedLiteral struct{} `json:"-"` 473 XXX_unrecognized []byte `json:"-"` 474 XXX_sizecache int32 `json:"-"` 475 } 476 477 func (m *PurgePrivateState) Reset() { *m = PurgePrivateState{} } 478 func (m *PurgePrivateState) String() string { return proto.CompactTextString(m) } 479 func (*PurgePrivateState) ProtoMessage() {} 480 func (*PurgePrivateState) Descriptor() ([]byte, []int) { 481 return fileDescriptor_e5819fec16c96da2, []int{6} 482 } 483 484 func (m *PurgePrivateState) XXX_Unmarshal(b []byte) error { 485 return xxx_messageInfo_PurgePrivateState.Unmarshal(m, b) 486 } 487 func (m *PurgePrivateState) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 488 return xxx_messageInfo_PurgePrivateState.Marshal(b, m, deterministic) 489 } 490 func (m *PurgePrivateState) XXX_Merge(src proto.Message) { 491 xxx_messageInfo_PurgePrivateState.Merge(m, src) 492 } 493 func (m *PurgePrivateState) XXX_Size() int { 494 return xxx_messageInfo_PurgePrivateState.Size(m) 495 } 496 func (m *PurgePrivateState) XXX_DiscardUnknown() { 497 xxx_messageInfo_PurgePrivateState.DiscardUnknown(m) 498 } 499 500 var xxx_messageInfo_PurgePrivateState proto.InternalMessageInfo 501 502 func (m *PurgePrivateState) GetKey() string { 503 if m != nil { 504 return m.Key 505 } 506 return "" 507 } 508 509 func (m *PurgePrivateState) GetCollection() string { 510 if m != nil { 511 return m.Collection 512 } 513 return "" 514 } 515 516 // GetStateByRange is the payload of a ChaincodeMessage. It contains a start key and 517 // a end key required to execute range query. If the collection is specified, 518 // the range query needs to be executed on the private data. The metadata hold 519 // the byte representation of QueryMetadata. 520 type GetStateByRange struct { 521 StartKey string `protobuf:"bytes,1,opt,name=startKey,proto3" json:"startKey,omitempty"` 522 EndKey string `protobuf:"bytes,2,opt,name=endKey,proto3" json:"endKey,omitempty"` 523 Collection string `protobuf:"bytes,3,opt,name=collection,proto3" json:"collection,omitempty"` 524 Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` 525 XXX_NoUnkeyedLiteral struct{} `json:"-"` 526 XXX_unrecognized []byte `json:"-"` 527 XXX_sizecache int32 `json:"-"` 528 } 529 530 func (m *GetStateByRange) Reset() { *m = GetStateByRange{} } 531 func (m *GetStateByRange) String() string { return proto.CompactTextString(m) } 532 func (*GetStateByRange) ProtoMessage() {} 533 func (*GetStateByRange) Descriptor() ([]byte, []int) { 534 return fileDescriptor_e5819fec16c96da2, []int{7} 535 } 536 537 func (m *GetStateByRange) XXX_Unmarshal(b []byte) error { 538 return xxx_messageInfo_GetStateByRange.Unmarshal(m, b) 539 } 540 func (m *GetStateByRange) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 541 return xxx_messageInfo_GetStateByRange.Marshal(b, m, deterministic) 542 } 543 func (m *GetStateByRange) XXX_Merge(src proto.Message) { 544 xxx_messageInfo_GetStateByRange.Merge(m, src) 545 } 546 func (m *GetStateByRange) XXX_Size() int { 547 return xxx_messageInfo_GetStateByRange.Size(m) 548 } 549 func (m *GetStateByRange) XXX_DiscardUnknown() { 550 xxx_messageInfo_GetStateByRange.DiscardUnknown(m) 551 } 552 553 var xxx_messageInfo_GetStateByRange proto.InternalMessageInfo 554 555 func (m *GetStateByRange) GetStartKey() string { 556 if m != nil { 557 return m.StartKey 558 } 559 return "" 560 } 561 562 func (m *GetStateByRange) GetEndKey() string { 563 if m != nil { 564 return m.EndKey 565 } 566 return "" 567 } 568 569 func (m *GetStateByRange) GetCollection() string { 570 if m != nil { 571 return m.Collection 572 } 573 return "" 574 } 575 576 func (m *GetStateByRange) GetMetadata() []byte { 577 if m != nil { 578 return m.Metadata 579 } 580 return nil 581 } 582 583 // GetQueryResult is the payload of a ChaincodeMessage. It contains a query 584 // string in the form that is supported by the underlying state database. 585 // If the collection is specified, the query needs to be executed on the 586 // private data. The metadata hold the byte representation of QueryMetadata. 587 type GetQueryResult struct { 588 Query string `protobuf:"bytes,1,opt,name=query,proto3" json:"query,omitempty"` 589 Collection string `protobuf:"bytes,2,opt,name=collection,proto3" json:"collection,omitempty"` 590 Metadata []byte `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"` 591 XXX_NoUnkeyedLiteral struct{} `json:"-"` 592 XXX_unrecognized []byte `json:"-"` 593 XXX_sizecache int32 `json:"-"` 594 } 595 596 func (m *GetQueryResult) Reset() { *m = GetQueryResult{} } 597 func (m *GetQueryResult) String() string { return proto.CompactTextString(m) } 598 func (*GetQueryResult) ProtoMessage() {} 599 func (*GetQueryResult) Descriptor() ([]byte, []int) { 600 return fileDescriptor_e5819fec16c96da2, []int{8} 601 } 602 603 func (m *GetQueryResult) XXX_Unmarshal(b []byte) error { 604 return xxx_messageInfo_GetQueryResult.Unmarshal(m, b) 605 } 606 func (m *GetQueryResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 607 return xxx_messageInfo_GetQueryResult.Marshal(b, m, deterministic) 608 } 609 func (m *GetQueryResult) XXX_Merge(src proto.Message) { 610 xxx_messageInfo_GetQueryResult.Merge(m, src) 611 } 612 func (m *GetQueryResult) XXX_Size() int { 613 return xxx_messageInfo_GetQueryResult.Size(m) 614 } 615 func (m *GetQueryResult) XXX_DiscardUnknown() { 616 xxx_messageInfo_GetQueryResult.DiscardUnknown(m) 617 } 618 619 var xxx_messageInfo_GetQueryResult proto.InternalMessageInfo 620 621 func (m *GetQueryResult) GetQuery() string { 622 if m != nil { 623 return m.Query 624 } 625 return "" 626 } 627 628 func (m *GetQueryResult) GetCollection() string { 629 if m != nil { 630 return m.Collection 631 } 632 return "" 633 } 634 635 func (m *GetQueryResult) GetMetadata() []byte { 636 if m != nil { 637 return m.Metadata 638 } 639 return nil 640 } 641 642 // QueryMetadata is the metadata of a GetStateByRange and GetQueryResult. 643 // It contains a pageSize which denotes the number of records to be fetched 644 // and a bookmark. 645 type QueryMetadata struct { 646 PageSize int32 `protobuf:"varint,1,opt,name=pageSize,proto3" json:"pageSize,omitempty"` 647 Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` 648 XXX_NoUnkeyedLiteral struct{} `json:"-"` 649 XXX_unrecognized []byte `json:"-"` 650 XXX_sizecache int32 `json:"-"` 651 } 652 653 func (m *QueryMetadata) Reset() { *m = QueryMetadata{} } 654 func (m *QueryMetadata) String() string { return proto.CompactTextString(m) } 655 func (*QueryMetadata) ProtoMessage() {} 656 func (*QueryMetadata) Descriptor() ([]byte, []int) { 657 return fileDescriptor_e5819fec16c96da2, []int{9} 658 } 659 660 func (m *QueryMetadata) XXX_Unmarshal(b []byte) error { 661 return xxx_messageInfo_QueryMetadata.Unmarshal(m, b) 662 } 663 func (m *QueryMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 664 return xxx_messageInfo_QueryMetadata.Marshal(b, m, deterministic) 665 } 666 func (m *QueryMetadata) XXX_Merge(src proto.Message) { 667 xxx_messageInfo_QueryMetadata.Merge(m, src) 668 } 669 func (m *QueryMetadata) XXX_Size() int { 670 return xxx_messageInfo_QueryMetadata.Size(m) 671 } 672 func (m *QueryMetadata) XXX_DiscardUnknown() { 673 xxx_messageInfo_QueryMetadata.DiscardUnknown(m) 674 } 675 676 var xxx_messageInfo_QueryMetadata proto.InternalMessageInfo 677 678 func (m *QueryMetadata) GetPageSize() int32 { 679 if m != nil { 680 return m.PageSize 681 } 682 return 0 683 } 684 685 func (m *QueryMetadata) GetBookmark() string { 686 if m != nil { 687 return m.Bookmark 688 } 689 return "" 690 } 691 692 // GetHistoryForKey is the payload of a ChaincodeMessage. It contains a key 693 // for which the historical values need to be retrieved. 694 type GetHistoryForKey struct { 695 Key string `protobuf:"bytes,1,opt,name=key,proto3" json:"key,omitempty"` 696 XXX_NoUnkeyedLiteral struct{} `json:"-"` 697 XXX_unrecognized []byte `json:"-"` 698 XXX_sizecache int32 `json:"-"` 699 } 700 701 func (m *GetHistoryForKey) Reset() { *m = GetHistoryForKey{} } 702 func (m *GetHistoryForKey) String() string { return proto.CompactTextString(m) } 703 func (*GetHistoryForKey) ProtoMessage() {} 704 func (*GetHistoryForKey) Descriptor() ([]byte, []int) { 705 return fileDescriptor_e5819fec16c96da2, []int{10} 706 } 707 708 func (m *GetHistoryForKey) XXX_Unmarshal(b []byte) error { 709 return xxx_messageInfo_GetHistoryForKey.Unmarshal(m, b) 710 } 711 func (m *GetHistoryForKey) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 712 return xxx_messageInfo_GetHistoryForKey.Marshal(b, m, deterministic) 713 } 714 func (m *GetHistoryForKey) XXX_Merge(src proto.Message) { 715 xxx_messageInfo_GetHistoryForKey.Merge(m, src) 716 } 717 func (m *GetHistoryForKey) XXX_Size() int { 718 return xxx_messageInfo_GetHistoryForKey.Size(m) 719 } 720 func (m *GetHistoryForKey) XXX_DiscardUnknown() { 721 xxx_messageInfo_GetHistoryForKey.DiscardUnknown(m) 722 } 723 724 var xxx_messageInfo_GetHistoryForKey proto.InternalMessageInfo 725 726 func (m *GetHistoryForKey) GetKey() string { 727 if m != nil { 728 return m.Key 729 } 730 return "" 731 } 732 733 type QueryStateNext struct { 734 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 735 XXX_NoUnkeyedLiteral struct{} `json:"-"` 736 XXX_unrecognized []byte `json:"-"` 737 XXX_sizecache int32 `json:"-"` 738 } 739 740 func (m *QueryStateNext) Reset() { *m = QueryStateNext{} } 741 func (m *QueryStateNext) String() string { return proto.CompactTextString(m) } 742 func (*QueryStateNext) ProtoMessage() {} 743 func (*QueryStateNext) Descriptor() ([]byte, []int) { 744 return fileDescriptor_e5819fec16c96da2, []int{11} 745 } 746 747 func (m *QueryStateNext) XXX_Unmarshal(b []byte) error { 748 return xxx_messageInfo_QueryStateNext.Unmarshal(m, b) 749 } 750 func (m *QueryStateNext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 751 return xxx_messageInfo_QueryStateNext.Marshal(b, m, deterministic) 752 } 753 func (m *QueryStateNext) XXX_Merge(src proto.Message) { 754 xxx_messageInfo_QueryStateNext.Merge(m, src) 755 } 756 func (m *QueryStateNext) XXX_Size() int { 757 return xxx_messageInfo_QueryStateNext.Size(m) 758 } 759 func (m *QueryStateNext) XXX_DiscardUnknown() { 760 xxx_messageInfo_QueryStateNext.DiscardUnknown(m) 761 } 762 763 var xxx_messageInfo_QueryStateNext proto.InternalMessageInfo 764 765 func (m *QueryStateNext) GetId() string { 766 if m != nil { 767 return m.Id 768 } 769 return "" 770 } 771 772 type QueryStateClose struct { 773 Id string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty"` 774 XXX_NoUnkeyedLiteral struct{} `json:"-"` 775 XXX_unrecognized []byte `json:"-"` 776 XXX_sizecache int32 `json:"-"` 777 } 778 779 func (m *QueryStateClose) Reset() { *m = QueryStateClose{} } 780 func (m *QueryStateClose) String() string { return proto.CompactTextString(m) } 781 func (*QueryStateClose) ProtoMessage() {} 782 func (*QueryStateClose) Descriptor() ([]byte, []int) { 783 return fileDescriptor_e5819fec16c96da2, []int{12} 784 } 785 786 func (m *QueryStateClose) XXX_Unmarshal(b []byte) error { 787 return xxx_messageInfo_QueryStateClose.Unmarshal(m, b) 788 } 789 func (m *QueryStateClose) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 790 return xxx_messageInfo_QueryStateClose.Marshal(b, m, deterministic) 791 } 792 func (m *QueryStateClose) XXX_Merge(src proto.Message) { 793 xxx_messageInfo_QueryStateClose.Merge(m, src) 794 } 795 func (m *QueryStateClose) XXX_Size() int { 796 return xxx_messageInfo_QueryStateClose.Size(m) 797 } 798 func (m *QueryStateClose) XXX_DiscardUnknown() { 799 xxx_messageInfo_QueryStateClose.DiscardUnknown(m) 800 } 801 802 var xxx_messageInfo_QueryStateClose proto.InternalMessageInfo 803 804 func (m *QueryStateClose) GetId() string { 805 if m != nil { 806 return m.Id 807 } 808 return "" 809 } 810 811 // QueryResultBytes hold the byte representation of a record returned by the peer. 812 type QueryResultBytes struct { 813 ResultBytes []byte `protobuf:"bytes,1,opt,name=resultBytes,proto3" json:"resultBytes,omitempty"` 814 XXX_NoUnkeyedLiteral struct{} `json:"-"` 815 XXX_unrecognized []byte `json:"-"` 816 XXX_sizecache int32 `json:"-"` 817 } 818 819 func (m *QueryResultBytes) Reset() { *m = QueryResultBytes{} } 820 func (m *QueryResultBytes) String() string { return proto.CompactTextString(m) } 821 func (*QueryResultBytes) ProtoMessage() {} 822 func (*QueryResultBytes) Descriptor() ([]byte, []int) { 823 return fileDescriptor_e5819fec16c96da2, []int{13} 824 } 825 826 func (m *QueryResultBytes) XXX_Unmarshal(b []byte) error { 827 return xxx_messageInfo_QueryResultBytes.Unmarshal(m, b) 828 } 829 func (m *QueryResultBytes) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 830 return xxx_messageInfo_QueryResultBytes.Marshal(b, m, deterministic) 831 } 832 func (m *QueryResultBytes) XXX_Merge(src proto.Message) { 833 xxx_messageInfo_QueryResultBytes.Merge(m, src) 834 } 835 func (m *QueryResultBytes) XXX_Size() int { 836 return xxx_messageInfo_QueryResultBytes.Size(m) 837 } 838 func (m *QueryResultBytes) XXX_DiscardUnknown() { 839 xxx_messageInfo_QueryResultBytes.DiscardUnknown(m) 840 } 841 842 var xxx_messageInfo_QueryResultBytes proto.InternalMessageInfo 843 844 func (m *QueryResultBytes) GetResultBytes() []byte { 845 if m != nil { 846 return m.ResultBytes 847 } 848 return nil 849 } 850 851 // QueryResponse is returned by the peer as a result of a GetStateByRange, 852 // GetQueryResult, and GetHistoryForKey. It holds a bunch of records in 853 // results field, a flag to denote whether more results need to be fetched from 854 // the peer in has_more field, transaction id in id field, and a QueryResponseMetadata 855 // in metadata field. 856 type QueryResponse struct { 857 Results []*QueryResultBytes `protobuf:"bytes,1,rep,name=results,proto3" json:"results,omitempty"` 858 HasMore bool `protobuf:"varint,2,opt,name=has_more,json=hasMore,proto3" json:"has_more,omitempty"` 859 Id string `protobuf:"bytes,3,opt,name=id,proto3" json:"id,omitempty"` 860 Metadata []byte `protobuf:"bytes,4,opt,name=metadata,proto3" json:"metadata,omitempty"` 861 XXX_NoUnkeyedLiteral struct{} `json:"-"` 862 XXX_unrecognized []byte `json:"-"` 863 XXX_sizecache int32 `json:"-"` 864 } 865 866 func (m *QueryResponse) Reset() { *m = QueryResponse{} } 867 func (m *QueryResponse) String() string { return proto.CompactTextString(m) } 868 func (*QueryResponse) ProtoMessage() {} 869 func (*QueryResponse) Descriptor() ([]byte, []int) { 870 return fileDescriptor_e5819fec16c96da2, []int{14} 871 } 872 873 func (m *QueryResponse) XXX_Unmarshal(b []byte) error { 874 return xxx_messageInfo_QueryResponse.Unmarshal(m, b) 875 } 876 func (m *QueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 877 return xxx_messageInfo_QueryResponse.Marshal(b, m, deterministic) 878 } 879 func (m *QueryResponse) XXX_Merge(src proto.Message) { 880 xxx_messageInfo_QueryResponse.Merge(m, src) 881 } 882 func (m *QueryResponse) XXX_Size() int { 883 return xxx_messageInfo_QueryResponse.Size(m) 884 } 885 func (m *QueryResponse) XXX_DiscardUnknown() { 886 xxx_messageInfo_QueryResponse.DiscardUnknown(m) 887 } 888 889 var xxx_messageInfo_QueryResponse proto.InternalMessageInfo 890 891 func (m *QueryResponse) GetResults() []*QueryResultBytes { 892 if m != nil { 893 return m.Results 894 } 895 return nil 896 } 897 898 func (m *QueryResponse) GetHasMore() bool { 899 if m != nil { 900 return m.HasMore 901 } 902 return false 903 } 904 905 func (m *QueryResponse) GetId() string { 906 if m != nil { 907 return m.Id 908 } 909 return "" 910 } 911 912 func (m *QueryResponse) GetMetadata() []byte { 913 if m != nil { 914 return m.Metadata 915 } 916 return nil 917 } 918 919 // QueryResponseMetadata is the metadata of a QueryResponse. It contains a count 920 // which denotes the number of records fetched from the ledger and a bookmark. 921 type QueryResponseMetadata struct { 922 FetchedRecordsCount int32 `protobuf:"varint,1,opt,name=fetched_records_count,json=fetchedRecordsCount,proto3" json:"fetched_records_count,omitempty"` 923 Bookmark string `protobuf:"bytes,2,opt,name=bookmark,proto3" json:"bookmark,omitempty"` 924 XXX_NoUnkeyedLiteral struct{} `json:"-"` 925 XXX_unrecognized []byte `json:"-"` 926 XXX_sizecache int32 `json:"-"` 927 } 928 929 func (m *QueryResponseMetadata) Reset() { *m = QueryResponseMetadata{} } 930 func (m *QueryResponseMetadata) String() string { return proto.CompactTextString(m) } 931 func (*QueryResponseMetadata) ProtoMessage() {} 932 func (*QueryResponseMetadata) Descriptor() ([]byte, []int) { 933 return fileDescriptor_e5819fec16c96da2, []int{15} 934 } 935 936 func (m *QueryResponseMetadata) XXX_Unmarshal(b []byte) error { 937 return xxx_messageInfo_QueryResponseMetadata.Unmarshal(m, b) 938 } 939 func (m *QueryResponseMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 940 return xxx_messageInfo_QueryResponseMetadata.Marshal(b, m, deterministic) 941 } 942 func (m *QueryResponseMetadata) XXX_Merge(src proto.Message) { 943 xxx_messageInfo_QueryResponseMetadata.Merge(m, src) 944 } 945 func (m *QueryResponseMetadata) XXX_Size() int { 946 return xxx_messageInfo_QueryResponseMetadata.Size(m) 947 } 948 func (m *QueryResponseMetadata) XXX_DiscardUnknown() { 949 xxx_messageInfo_QueryResponseMetadata.DiscardUnknown(m) 950 } 951 952 var xxx_messageInfo_QueryResponseMetadata proto.InternalMessageInfo 953 954 func (m *QueryResponseMetadata) GetFetchedRecordsCount() int32 { 955 if m != nil { 956 return m.FetchedRecordsCount 957 } 958 return 0 959 } 960 961 func (m *QueryResponseMetadata) GetBookmark() string { 962 if m != nil { 963 return m.Bookmark 964 } 965 return "" 966 } 967 968 type StateMetadata struct { 969 Metakey string `protobuf:"bytes,1,opt,name=metakey,proto3" json:"metakey,omitempty"` 970 Value []byte `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"` 971 XXX_NoUnkeyedLiteral struct{} `json:"-"` 972 XXX_unrecognized []byte `json:"-"` 973 XXX_sizecache int32 `json:"-"` 974 } 975 976 func (m *StateMetadata) Reset() { *m = StateMetadata{} } 977 func (m *StateMetadata) String() string { return proto.CompactTextString(m) } 978 func (*StateMetadata) ProtoMessage() {} 979 func (*StateMetadata) Descriptor() ([]byte, []int) { 980 return fileDescriptor_e5819fec16c96da2, []int{16} 981 } 982 983 func (m *StateMetadata) XXX_Unmarshal(b []byte) error { 984 return xxx_messageInfo_StateMetadata.Unmarshal(m, b) 985 } 986 func (m *StateMetadata) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 987 return xxx_messageInfo_StateMetadata.Marshal(b, m, deterministic) 988 } 989 func (m *StateMetadata) XXX_Merge(src proto.Message) { 990 xxx_messageInfo_StateMetadata.Merge(m, src) 991 } 992 func (m *StateMetadata) XXX_Size() int { 993 return xxx_messageInfo_StateMetadata.Size(m) 994 } 995 func (m *StateMetadata) XXX_DiscardUnknown() { 996 xxx_messageInfo_StateMetadata.DiscardUnknown(m) 997 } 998 999 var xxx_messageInfo_StateMetadata proto.InternalMessageInfo 1000 1001 func (m *StateMetadata) GetMetakey() string { 1002 if m != nil { 1003 return m.Metakey 1004 } 1005 return "" 1006 } 1007 1008 func (m *StateMetadata) GetValue() []byte { 1009 if m != nil { 1010 return m.Value 1011 } 1012 return nil 1013 } 1014 1015 type StateMetadataResult struct { 1016 Entries []*StateMetadata `protobuf:"bytes,1,rep,name=entries,proto3" json:"entries,omitempty"` 1017 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1018 XXX_unrecognized []byte `json:"-"` 1019 XXX_sizecache int32 `json:"-"` 1020 } 1021 1022 func (m *StateMetadataResult) Reset() { *m = StateMetadataResult{} } 1023 func (m *StateMetadataResult) String() string { return proto.CompactTextString(m) } 1024 func (*StateMetadataResult) ProtoMessage() {} 1025 func (*StateMetadataResult) Descriptor() ([]byte, []int) { 1026 return fileDescriptor_e5819fec16c96da2, []int{17} 1027 } 1028 1029 func (m *StateMetadataResult) XXX_Unmarshal(b []byte) error { 1030 return xxx_messageInfo_StateMetadataResult.Unmarshal(m, b) 1031 } 1032 func (m *StateMetadataResult) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1033 return xxx_messageInfo_StateMetadataResult.Marshal(b, m, deterministic) 1034 } 1035 func (m *StateMetadataResult) XXX_Merge(src proto.Message) { 1036 xxx_messageInfo_StateMetadataResult.Merge(m, src) 1037 } 1038 func (m *StateMetadataResult) XXX_Size() int { 1039 return xxx_messageInfo_StateMetadataResult.Size(m) 1040 } 1041 func (m *StateMetadataResult) XXX_DiscardUnknown() { 1042 xxx_messageInfo_StateMetadataResult.DiscardUnknown(m) 1043 } 1044 1045 var xxx_messageInfo_StateMetadataResult proto.InternalMessageInfo 1046 1047 func (m *StateMetadataResult) GetEntries() []*StateMetadata { 1048 if m != nil { 1049 return m.Entries 1050 } 1051 return nil 1052 } 1053 1054 func init() { 1055 proto.RegisterEnum("protos.ChaincodeMessage_Type", ChaincodeMessage_Type_name, ChaincodeMessage_Type_value) 1056 proto.RegisterType((*ChaincodeMessage)(nil), "protos.ChaincodeMessage") 1057 proto.RegisterType((*GetState)(nil), "protos.GetState") 1058 proto.RegisterType((*GetStateMetadata)(nil), "protos.GetStateMetadata") 1059 proto.RegisterType((*PutState)(nil), "protos.PutState") 1060 proto.RegisterType((*PutStateMetadata)(nil), "protos.PutStateMetadata") 1061 proto.RegisterType((*DelState)(nil), "protos.DelState") 1062 proto.RegisterType((*PurgePrivateState)(nil), "protos.PurgePrivateState") 1063 proto.RegisterType((*GetStateByRange)(nil), "protos.GetStateByRange") 1064 proto.RegisterType((*GetQueryResult)(nil), "protos.GetQueryResult") 1065 proto.RegisterType((*QueryMetadata)(nil), "protos.QueryMetadata") 1066 proto.RegisterType((*GetHistoryForKey)(nil), "protos.GetHistoryForKey") 1067 proto.RegisterType((*QueryStateNext)(nil), "protos.QueryStateNext") 1068 proto.RegisterType((*QueryStateClose)(nil), "protos.QueryStateClose") 1069 proto.RegisterType((*QueryResultBytes)(nil), "protos.QueryResultBytes") 1070 proto.RegisterType((*QueryResponse)(nil), "protos.QueryResponse") 1071 proto.RegisterType((*QueryResponseMetadata)(nil), "protos.QueryResponseMetadata") 1072 proto.RegisterType((*StateMetadata)(nil), "protos.StateMetadata") 1073 proto.RegisterType((*StateMetadataResult)(nil), "protos.StateMetadataResult") 1074 } 1075 1076 func init() { proto.RegisterFile("peer/chaincode_shim.proto", fileDescriptor_e5819fec16c96da2) } 1077 1078 var fileDescriptor_e5819fec16c96da2 = []byte{ 1079 // 1068 bytes of a gzipped FileDescriptorProto 1080 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x9c, 0x56, 0xcf, 0x72, 0xe2, 0xc6, 1081 0x13, 0xfe, 0x61, 0x8c, 0x11, 0x8d, 0x8d, 0x67, 0xc7, 0x8b, 0x97, 0xa5, 0x6a, 0x7f, 0x21, 0x54, 1082 0x0e, 0x1c, 0xb2, 0x90, 0x25, 0x39, 0xe4, 0x90, 0xaa, 0x2d, 0x19, 0xc6, 0x98, 0xb2, 0x2d, 0xd8, 1083 0x91, 0xec, 0x8a, 0x73, 0x51, 0x09, 0x69, 0x56, 0xa8, 0x16, 0x34, 0x8a, 0x34, 0x6c, 0x96, 0xdc, 1084 0x72, 0xcd, 0xa3, 0xe4, 0xe1, 0xf2, 0x0c, 0xa9, 0xd1, 0x3f, 0x03, 0x8e, 0x77, 0x53, 0x3e, 0xc1, 1085 0xd7, 0xfd, 0xf5, 0xd7, 0x3d, 0xdd, 0xd3, 0xaa, 0x81, 0x97, 0x01, 0x63, 0x61, 0xcf, 0x9e, 0x5b, 1086 0x9e, 0x6f, 0x73, 0x87, 0x99, 0xd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, 0x85, 0xf1, 0x2b, 0x00, 0x7b, 0x6e, 0xf9, 0x3e, 0x5b, 1098 0x98, 0x9e, 0xd3, 0x28, 0xc7, 0xe5, 0x54, 0x52, 0xcb, 0xd8, 0x69, 0xff, 0x55, 0x84, 0x7d, 0xd9, 1099 0x0a, 0x7c, 0x04, 0x95, 0x1b, 0x6d, 0x48, 0xce, 0xc7, 0x1a, 0x19, 0xa2, 0xff, 0xe1, 0x43, 0x50, 1100 0x28, 0x19, 0x8d, 0x75, 0x83, 0x50, 0x54, 0xc0, 0x35, 0x80, 0x0c, 0x91, 0x21, 0xda, 0xc3, 0x0a, 1101 0xec, 0x8f, 0xb5, 0xb1, 0x81, 0x8a, 0xb8, 0x02, 0x25, 0x4a, 0xd4, 0xe1, 0x1d, 0xda, 0xc7, 0xc7, 1102 0x50, 0x35, 0xa8, 0xaa, 0xe9, 0xea, 0xc0, 0x18, 0x4f, 0x34, 0x54, 0x92, 0x92, 0x83, 0xc9, 0xf5, 1103 0xf4, 0x8a, 0x18, 0x64, 0x88, 0x0e, 0x24, 0x95, 0x50, 0x3a, 0xa1, 0xa8, 0x2c, 0x3d, 0x23, 0x62, 1104 0x98, 0xba, 0xa1, 0x1a, 0x04, 0x29, 0x12, 0x4e, 0x6f, 0x32, 0x58, 0x91, 0x70, 0x48, 0xae, 0x52, 1105 0x08, 0xf8, 0x39, 0xa0, 0xb1, 0x76, 0x3b, 0xb9, 0x24, 0xe6, 0xe0, 0x42, 0x1d, 0x6b, 0x83, 0xc9, 1106 0x90, 0xa0, 0x6a, 0x52, 0xa0, 0x3e, 0x9d, 0x68, 0x3a, 0x41, 0x47, 0xf8, 0x14, 0x70, 0x2e, 0x68, 1107 0x9e, 0xdd, 0x99, 0x54, 0xd5, 0x46, 0x04, 0xd5, 0x64, 0xac, 0xb4, 0xbf, 0xbb, 0x21, 0xf4, 0xce, 1108 0xa4, 0x44, 0xbf, 0xb9, 0x32, 0xd0, 0xb1, 0xb4, 0x26, 0x96, 0x84,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, 0x06, 0x95, 0xdc, 0x8e, 1142 0x55, 0x28, 0x0f, 0xb8, 0xef, 0x33, 0x5b, 0x3c, 0x55, 0xef, 0x8c, 0x42, 0x9b, 0x87, 0x6e, 0x77, 1143 0xbe, 0x0e, 0x58, 0xb8, 0x60, 0x8e, 0xcb, 0xc2, 0xee, 0x7b, 0x6b, 0x16, 0x7a, 0x76, 0x16, 0x25, 1144 0x5f, 0x45, 0xbf, 0x7c, 0xeb, 0x7a, 0x62, 0xbe, 0x9a, 0x75, 0x6d, 0xbe, 0xec, 0x6d, 0x50, 0x7b, 1145 0x09, 0xf5, 0x75, 0x42, 0x7d, 0xed, 0xf2, 0x9e, 0x64, 0xcf, 0x92, 0xd7, 0xd6, 0xf7, 0xff, 0x04, 1146 0x00, 0x00, 0xff, 0xff, 0xea, 0xa6, 0x7b, 0x03, 0x91, 0x09, 0x00, 0x00, 1147 } 1148 1149 // Reference imports to suppress errors if they are not otherwise used. 1150 var _ context.Context 1151 var _ grpc.ClientConn 1152 1153 // This is a compile-time assertion to ensure that this generated file 1154 // is compatible with the grpc package it is being compiled against. 1155 const _ = grpc.SupportPackageIsVersion4 1156 1157 // ChaincodeSupportClient is the client API for ChaincodeSupport service. 1158 // 1159 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1160 type ChaincodeSupportClient interface { 1161 Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error) 1162 } 1163 1164 type chaincodeSupportClient struct { 1165 cc *grpc.ClientConn 1166 } 1167 1168 func NewChaincodeSupportClient(cc *grpc.ClientConn) ChaincodeSupportClient { 1169 return &chaincodeSupportClient{cc} 1170 } 1171 1172 func (c *chaincodeSupportClient) Register(ctx context.Context, opts ...grpc.CallOption) (ChaincodeSupport_RegisterClient, error) { 1173 stream, err := c.cc.NewStream(ctx, &_ChaincodeSupport_serviceDesc.Streams[0], "/protos.ChaincodeSupport/Register", opts...) 1174 if err != nil { 1175 return nil, err 1176 } 1177 x := &chaincodeSupportRegisterClient{stream} 1178 return x, nil 1179 } 1180 1181 type ChaincodeSupport_RegisterClient interface { 1182 Send(*ChaincodeMessage) error 1183 Recv() (*ChaincodeMessage, error) 1184 grpc.ClientStream 1185 } 1186 1187 type chaincodeSupportRegisterClient struct { 1188 grpc.ClientStream 1189 } 1190 1191 func (x *chaincodeSupportRegisterClient) Send(m *ChaincodeMessage) error { 1192 return x.ClientStream.SendMsg(m) 1193 } 1194 1195 func (x *chaincodeSupportRegisterClient) Recv() (*ChaincodeMessage, error) { 1196 m := new(ChaincodeMessage) 1197 if err := x.ClientStream.RecvMsg(m); err != nil { 1198 return nil, err 1199 } 1200 return m, nil 1201 } 1202 1203 // ChaincodeSupportServer is the server API for ChaincodeSupport service. 1204 type ChaincodeSupportServer interface { 1205 Register(ChaincodeSupport_RegisterServer) error 1206 } 1207 1208 // UnimplementedChaincodeSupportServer can be embedded to have forward compatible implementations. 1209 type UnimplementedChaincodeSupportServer struct { 1210 } 1211 1212 func (*UnimplementedChaincodeSupportServer) Register(srv ChaincodeSupport_RegisterServer) error { 1213 return status.Errorf(codes.Unimplemented, "method Register not implemented") 1214 } 1215 1216 func RegisterChaincodeSupportServer(s *grpc.Server, srv ChaincodeSupportServer) { 1217 s.RegisterService(&_ChaincodeSupport_serviceDesc, srv) 1218 } 1219 1220 func _ChaincodeSupport_Register_Handler(srv interface{}, stream grpc.ServerStream) error { 1221 return srv.(ChaincodeSupportServer).Register(&chaincodeSupportRegisterServer{stream}) 1222 } 1223 1224 type ChaincodeSupport_RegisterServer interface { 1225 Send(*ChaincodeMessage) error 1226 Recv() (*ChaincodeMessage, error) 1227 grpc.ServerStream 1228 } 1229 1230 type chaincodeSupportRegisterServer struct { 1231 grpc.ServerStream 1232 } 1233 1234 func (x *chaincodeSupportRegisterServer) Send(m *ChaincodeMessage) error { 1235 return x.ServerStream.SendMsg(m) 1236 } 1237 1238 func (x *chaincodeSupportRegisterServer) Recv() (*ChaincodeMessage, error) { 1239 m := new(ChaincodeMessage) 1240 if err := x.ServerStream.RecvMsg(m); err != nil { 1241 return nil, err 1242 } 1243 return m, nil 1244 } 1245 1246 var _ChaincodeSupport_serviceDesc = grpc.ServiceDesc{ 1247 ServiceName: "protos.ChaincodeSupport", 1248 HandlerType: (*ChaincodeSupportServer)(nil), 1249 Methods: []grpc.MethodDesc{}, 1250 Streams: []grpc.StreamDesc{ 1251 { 1252 StreamName: "Register", 1253 Handler: _ChaincodeSupport_Register_Handler, 1254 ServerStreams: true, 1255 ClientStreams: true, 1256 }, 1257 }, 1258 Metadata: "peer/chaincode_shim.proto", 1259 } 1260 1261 // ChaincodeClient is the client API for Chaincode service. 1262 // 1263 // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1264 type ChaincodeClient interface { 1265 Connect(ctx context.Context, opts ...grpc.CallOption) (Chaincode_ConnectClient, error) 1266 } 1267 1268 type chaincodeClient struct { 1269 cc *grpc.ClientConn 1270 } 1271 1272 func NewChaincodeClient(cc *grpc.ClientConn) ChaincodeClient { 1273 return &chaincodeClient{cc} 1274 } 1275 1276 func (c *chaincodeClient) Connect(ctx context.Context, opts ...grpc.CallOption) (Chaincode_ConnectClient, error) { 1277 stream, err := c.cc.NewStream(ctx, &_Chaincode_serviceDesc.Streams[0], "/protos.Chaincode/Connect", opts...) 1278 if err != nil { 1279 return nil, err 1280 } 1281 x := &chaincodeConnectClient{stream} 1282 return x, nil 1283 } 1284 1285 type Chaincode_ConnectClient interface { 1286 Send(*ChaincodeMessage) error 1287 Recv() (*ChaincodeMessage, error) 1288 grpc.ClientStream 1289 } 1290 1291 type chaincodeConnectClient struct { 1292 grpc.ClientStream 1293 } 1294 1295 func (x *chaincodeConnectClient) Send(m *ChaincodeMessage) error { 1296 return x.ClientStream.SendMsg(m) 1297 } 1298 1299 func (x *chaincodeConnectClient) Recv() (*ChaincodeMessage, error) { 1300 m := new(ChaincodeMessage) 1301 if err := x.ClientStream.RecvMsg(m); err != nil { 1302 return nil, err 1303 } 1304 return m, nil 1305 } 1306 1307 // ChaincodeServer is the server API for Chaincode service. 1308 type ChaincodeServer interface { 1309 Connect(Chaincode_ConnectServer) error 1310 } 1311 1312 // UnimplementedChaincodeServer can be embedded to have forward compatible implementations. 1313 type UnimplementedChaincodeServer struct { 1314 } 1315 1316 func (*UnimplementedChaincodeServer) Connect(srv Chaincode_ConnectServer) error { 1317 return status.Errorf(codes.Unimplemented, "method Connect not implemented") 1318 } 1319 1320 func RegisterChaincodeServer(s *grpc.Server, srv ChaincodeServer) { 1321 s.RegisterService(&_Chaincode_serviceDesc, srv) 1322 } 1323 1324 func _Chaincode_Connect_Handler(srv interface{}, stream grpc.ServerStream) error { 1325 return srv.(ChaincodeServer).Connect(&chaincodeConnectServer{stream}) 1326 } 1327 1328 type Chaincode_ConnectServer interface { 1329 Send(*ChaincodeMessage) error 1330 Recv() (*ChaincodeMessage, error) 1331 grpc.ServerStream 1332 } 1333 1334 type chaincodeConnectServer struct { 1335 grpc.ServerStream 1336 } 1337 1338 func (x *chaincodeConnectServer) Send(m *ChaincodeMessage) error { 1339 return x.ServerStream.SendMsg(m) 1340 } 1341 1342 func (x *chaincodeConnectServer) Recv() (*ChaincodeMessage, error) { 1343 m := new(ChaincodeMessage) 1344 if err := x.ServerStream.RecvMsg(m); err != nil { 1345 return nil, err 1346 } 1347 return m, nil 1348 } 1349 1350 var _Chaincode_serviceDesc = grpc.ServiceDesc{ 1351 ServiceName: "protos.Chaincode", 1352 HandlerType: (*ChaincodeServer)(nil), 1353 Methods: []grpc.MethodDesc{}, 1354 Streams: []grpc.StreamDesc{ 1355 { 1356 StreamName: "Connect", 1357 Handler: _Chaincode_Connect_Handler, 1358 ServerStreams: true, 1359 ClientStreams: true, 1360 }, 1361 }, 1362 Metadata: "peer/chaincode_shim.proto", 1363 }