github.com/inklabsfoundation/inkchain@v0.17.1-0.20181025012015-c3cef8062f19/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 // 289 bytes of a gzipped FileDescriptorProto 147 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x91, 0x5f, 0x4b, 0xc3, 0x30, 148 0x14, 0xc5, 0xa9, 0xfb, 0xa3, 0xbb, 0x43, 0x90, 0x38, 0x25, 0x2f, 0xc2, 0xe8, 0xd3, 0x10, 0x69, 149 0x50, 0xf1, 0x0b, 0xb8, 0x07, 0xd9, 0x93, 0xb8, 0x47, 0x5f, 0x46, 0x9a, 0x66, 0x6b, 0x70, 0xbb, 150 0xa9, 0x4d, 0x3b, 0xf0, 0x53, 0xf8, 0x95, 0xe5, 0x26, 0xcb, 0xe8, 0xf0, 0xa9, 0xf7, 0xfe, 0xce, 151 0x39, 0x94, 0x93, 0x0b, 0x57, 0x95, 0xd6, 0xb5, 0xf8, 0x6e, 0x75, 0xfd, 0x93, 0x55, 0xb5, 0x6d, 152 0x2c, 0x1b, 0xfa, 0x8f, 0x4b, 0xdf, 0xe1, 0x76, 0x5e, 0x4a, 0x83, 0xca, 0x16, 0xfa, 0x83, 0xf4, 153 0xa5, 0x76, 0x95, 0x45, 0xa7, 0xd9, 0x0b, 0x80, 0x8a, 0x8a, 0xe3, 0xc9, 0xb4, 0x37, 0x1b, 0x3f, 154 0xdd, 0x84, 0xb4, 0xcb, 0x8e, 0x99, 0x05, 0xae, 0xed, 0xb2, 0x63, 0x4c, 0x7f, 0x13, 0xb8, 0x3c, 155 0x51, 0x19, 0x83, 0x3e, 0xca, 0x9d, 0xe6, 0xc9, 0x34, 0x99, 0x8d, 0x96, 0x7e, 0x66, 0x1c, 0xce, 156 0xf7, 0xba, 0x76, 0xc6, 0x22, 0x3f, 0xf3, 0x38, 0xae, 0xe4, 0xae, 0x64, 0x53, 0xf2, 0x5e, 0x70, 157 0xd3, 0xcc, 0x26, 0x30, 0x30, 0x58, 0xb5, 0x0d, 0xef, 0x7b, 0x18, 0x16, 0x72, 0x6a, 0xa7, 0x14, 158 0x1f, 0x04, 0x27, 0xcd, 0xc4, 0xf6, 0xc4, 0x86, 0x81, 0xd1, 0x9c, 0xbe, 0xc1, 0x64, 0x5e, 0x4a, 159 0x44, 0xbd, 0x3d, 0x2d, 0x28, 0xe0, 0x42, 0x05, 0x1e, 0xeb, 0x5d, 0x77, 0xea, 0x11, 0xf7, 0xe5, 160 0x8e, 0xa6, 0xf4, 0x01, 0xc6, 0x1d, 0x81, 0xdd, 0xf9, 0x07, 0xa2, 0x75, 0x65, 0x8a, 0x43, 0xbb, 161 0xd1, 0x81, 0x2c, 0x8a, 0xd7, 0x15, 0xdc, 0xdb, 0x7a, 0x93, 0x19, 0xfc, 0xda, 0xca, 0xdc, 0xad, 162 0x6d, 0x8b, 0x85, 0x6c, 0x8c, 0x45, 0x22, 0xfe, 0xbd, 0xe2, 0xcf, 0xe8, 0x36, 0x9f, 0x8f, 0x1b, 163 0xd3, 0x94, 0x6d, 0x9e, 0x29, 0xbb, 0x13, 0xff, 0x22, 0x22, 0x46, 0x44, 0x88, 0x08, 0x8a, 0xe4, 164 0xe1, 0x84, 0xcf, 0x7f, 0x01, 0x00, 0x00, 0xff, 0xff, 0xfe, 0x61, 0x50, 0xe3, 0xdd, 0x01, 0x00, 165 0x00, 166 }