github.com/tenywen/fabric@v1.0.0-beta.0.20170620030522-a5b1ed380643/protos/peer/query.pb.go (about) 1 // Code generated by protoc-gen-go. DO NOT EDIT. 2 // source: peer/query.proto 3 4 package peer 5 6 import proto "github.com/golang/protobuf/proto" 7 import fmt "fmt" 8 import math "math" 9 10 // Reference imports to suppress errors if they are not otherwise used. 11 var _ = proto.Marshal 12 var _ = fmt.Errorf 13 var _ = math.Inf 14 15 // ChaincodeQueryResponse returns information about each chaincode that pertains 16 // to a query in lscc.go, such as GetChaincodes (returns all chaincodes 17 // instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes 18 // installed on a peer) 19 type ChaincodeQueryResponse struct { 20 Chaincodes []*ChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes" json:"chaincodes,omitempty"` 21 } 22 23 func (m *ChaincodeQueryResponse) Reset() { *m = ChaincodeQueryResponse{} } 24 func (m *ChaincodeQueryResponse) String() string { return proto.CompactTextString(m) } 25 func (*ChaincodeQueryResponse) ProtoMessage() {} 26 func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{0} } 27 28 func (m *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo { 29 if m != nil { 30 return m.Chaincodes 31 } 32 return nil 33 } 34 35 // ChaincodeInfo contains general information about an installed/instantiated 36 // chaincode 37 type ChaincodeInfo struct { 38 Name string `protobuf:"bytes,1,opt,name=name" json:"name,omitempty"` 39 Version string `protobuf:"bytes,2,opt,name=version" json:"version,omitempty"` 40 // the path as specified by the install/instantiate transaction 41 Path string `protobuf:"bytes,3,opt,name=path" json:"path,omitempty"` 42 // the chaincode function upon instantiation and its arguments. This will be 43 // blank if the query is returning information about installed chaincodes. 44 Input string `protobuf:"bytes,4,opt,name=input" json:"input,omitempty"` 45 // the name of the ESCC for this chaincode. This will be 46 // blank if the query is returning information about installed chaincodes. 47 Escc string `protobuf:"bytes,5,opt,name=escc" json:"escc,omitempty"` 48 // the name of the VSCC for this chaincode. This will be 49 // blank if the query is returning information about installed chaincodes. 50 Vscc string `protobuf:"bytes,6,opt,name=vscc" json:"vscc,omitempty"` 51 } 52 53 func (m *ChaincodeInfo) Reset() { *m = ChaincodeInfo{} } 54 func (m *ChaincodeInfo) String() string { return proto.CompactTextString(m) } 55 func (*ChaincodeInfo) ProtoMessage() {} 56 func (*ChaincodeInfo) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{1} } 57 58 func (m *ChaincodeInfo) GetName() string { 59 if m != nil { 60 return m.Name 61 } 62 return "" 63 } 64 65 func (m *ChaincodeInfo) GetVersion() string { 66 if m != nil { 67 return m.Version 68 } 69 return "" 70 } 71 72 func (m *ChaincodeInfo) GetPath() string { 73 if m != nil { 74 return m.Path 75 } 76 return "" 77 } 78 79 func (m *ChaincodeInfo) GetInput() string { 80 if m != nil { 81 return m.Input 82 } 83 return "" 84 } 85 86 func (m *ChaincodeInfo) GetEscc() string { 87 if m != nil { 88 return m.Escc 89 } 90 return "" 91 } 92 93 func (m *ChaincodeInfo) GetVscc() string { 94 if m != nil { 95 return m.Vscc 96 } 97 return "" 98 } 99 100 // ChannelQueryResponse returns information about each channel that pertains 101 // to a query in lscc.go, such as GetChannels (returns all channels for a 102 // given peer) 103 type ChannelQueryResponse struct { 104 Channels []*ChannelInfo `protobuf:"bytes,1,rep,name=channels" json:"channels,omitempty"` 105 } 106 107 func (m *ChannelQueryResponse) Reset() { *m = ChannelQueryResponse{} } 108 func (m *ChannelQueryResponse) String() string { return proto.CompactTextString(m) } 109 func (*ChannelQueryResponse) ProtoMessage() {} 110 func (*ChannelQueryResponse) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{2} } 111 112 func (m *ChannelQueryResponse) GetChannels() []*ChannelInfo { 113 if m != nil { 114 return m.Channels 115 } 116 return nil 117 } 118 119 // ChannelInfo contains general information about channels 120 type ChannelInfo struct { 121 ChannelId string `protobuf:"bytes,1,opt,name=channel_id,json=channelId" json:"channel_id,omitempty"` 122 } 123 124 func (m *ChannelInfo) Reset() { *m = ChannelInfo{} } 125 func (m *ChannelInfo) String() string { return proto.CompactTextString(m) } 126 func (*ChannelInfo) ProtoMessage() {} 127 func (*ChannelInfo) Descriptor() ([]byte, []int) { return fileDescriptor9, []int{3} } 128 129 func (m *ChannelInfo) GetChannelId() string { 130 if m != nil { 131 return m.ChannelId 132 } 133 return "" 134 } 135 136 func init() { 137 proto.RegisterType((*ChaincodeQueryResponse)(nil), "protos.ChaincodeQueryResponse") 138 proto.RegisterType((*ChaincodeInfo)(nil), "protos.ChaincodeInfo") 139 proto.RegisterType((*ChannelQueryResponse)(nil), "protos.ChannelQueryResponse") 140 proto.RegisterType((*ChannelInfo)(nil), "protos.ChannelInfo") 141 } 142 143 func init() { proto.RegisterFile("peer/query.proto", fileDescriptor9) } 144 145 var fileDescriptor9 = []byte{ 146 // 284 bytes of a gzipped FileDescriptorProto 147 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x54, 0x91, 0xdf, 0x4a, 0xc3, 0x30, 148 0x14, 0xc6, 0xa9, 0xfb, 0xa3, 0x3b, 0x43, 0x90, 0x38, 0x25, 0x37, 0xc2, 0xe8, 0xd5, 0x04, 0x69, 149 0x40, 0xf1, 0x05, 0xdc, 0x85, 0xec, 0x6a, 0xb8, 0x4b, 0x6f, 0xa4, 0x4d, 0xcf, 0xda, 0xc0, 0x96, 150 0xc4, 0xa4, 0x1d, 0xec, 0x29, 0x7c, 0x65, 0x39, 0xc9, 0x3a, 0xba, 0xab, 0x9e, 0xf3, 0xfb, 0x7e, 151 0xa1, 0x7c, 0x09, 0xdc, 0x59, 0x44, 0x27, 0x7e, 0x5b, 0x74, 0xc7, 0xcc, 0x3a, 0xd3, 0x18, 0x36, 152 0x0e, 0x1f, 0x9f, 0xae, 0xe1, 0x71, 0x59, 0xe7, 0x4a, 0x4b, 0x53, 0xe2, 0x17, 0xe5, 0x1b, 0xf4, 153 0xd6, 0x68, 0x8f, 0xec, 0x1d, 0x40, 0x76, 0x89, 0xe7, 0xc9, 0x7c, 0xb0, 0x98, 0xbe, 0x3e, 0xc4, 154 0xd3, 0x3e, 0x3b, 0x9f, 0x59, 0xe9, 0xad, 0xd9, 0xf4, 0xc4, 0xf4, 0x2f, 0x81, 0xdb, 0x8b, 0x94, 155 0x31, 0x18, 0xea, 0x7c, 0x8f, 0x3c, 0x99, 0x27, 0x8b, 0xc9, 0x26, 0xcc, 0x8c, 0xc3, 0xf5, 0x01, 156 0x9d, 0x57, 0x46, 0xf3, 0xab, 0x80, 0xbb, 0x95, 0x6c, 0x9b, 0x37, 0x35, 0x1f, 0x44, 0x9b, 0x66, 157 0x36, 0x83, 0x91, 0xd2, 0xb6, 0x6d, 0xf8, 0x30, 0xc0, 0xb8, 0x90, 0x89, 0x5e, 0x4a, 0x3e, 0x8a, 158 0x26, 0xcd, 0xc4, 0x0e, 0xc4, 0xc6, 0x91, 0xd1, 0x9c, 0x7e, 0xc2, 0x6c, 0x59, 0xe7, 0x5a, 0xe3, 159 0xee, 0xb2, 0xa0, 0x80, 0x1b, 0x19, 0x79, 0x57, 0xef, 0xbe, 0x57, 0x8f, 0x78, 0x28, 0x77, 0x96, 160 0xd2, 0x17, 0x98, 0xf6, 0x02, 0xf6, 0x14, 0x2e, 0x88, 0xd6, 0x1f, 0x55, 0x9e, 0xda, 0x4d, 0x4e, 161 0x64, 0x55, 0x7e, 0xac, 0x21, 0x35, 0xae, 0xca, 0xea, 0xa3, 0x45, 0xb7, 0xc3, 0xb2, 0x42, 0x97, 162 0x6d, 0xf3, 0xc2, 0x29, 0xd9, 0xfd, 0x84, 0xde, 0xe4, 0xfb, 0xb9, 0x52, 0x4d, 0xdd, 0x16, 0x99, 163 0x34, 0x7b, 0xd1, 0x53, 0x45, 0x54, 0x45, 0x54, 0x05, 0xa9, 0x45, 0x7c, 0xb2, 0xb7, 0xff, 0x00, 164 0x00, 0x00, 0xff, 0xff, 0x56, 0xd1, 0xfe, 0x74, 0xcd, 0x01, 0x00, 0x00, 165 }