github.com/ZihuaZhang/fabric-protos-go@v1.0.7/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 (
     7  	fmt "fmt"
     8  	proto "github.com/golang/protobuf/proto"
     9  	math "math"
    10  )
    11  
    12  // Reference imports to suppress errors if they are not otherwise used.
    13  var _ = proto.Marshal
    14  var _ = fmt.Errorf
    15  var _ = math.Inf
    16  
    17  // This is a compile-time assertion to ensure that this generated file
    18  // is compatible with the proto package it is being compiled against.
    19  // A compilation error at this line likely means your copy of the
    20  // proto package needs to be updated.
    21  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    22  
    23  // ChaincodeQueryResponse returns information about each chaincode that pertains
    24  // to a query in lscc.go, such as GetChaincodes (returns all chaincodes
    25  // instantiated on a channel), and GetInstalledChaincodes (returns all chaincodes
    26  // installed on a peer)
    27  type ChaincodeQueryResponse struct {
    28  	Chaincodes           []*ChaincodeInfo `protobuf:"bytes,1,rep,name=chaincodes,proto3" json:"chaincodes,omitempty"`
    29  	XXX_NoUnkeyedLiteral struct{}         `json:"-"`
    30  	XXX_unrecognized     []byte           `json:"-"`
    31  	XXX_sizecache        int32            `json:"-"`
    32  }
    33  
    34  func (m *ChaincodeQueryResponse) Reset()         { *m = ChaincodeQueryResponse{} }
    35  func (m *ChaincodeQueryResponse) String() string { return proto.CompactTextString(m) }
    36  func (*ChaincodeQueryResponse) ProtoMessage()    {}
    37  func (*ChaincodeQueryResponse) Descriptor() ([]byte, []int) {
    38  	return fileDescriptor_d45bcf7fe2423301, []int{0}
    39  }
    40  
    41  func (m *ChaincodeQueryResponse) XXX_Unmarshal(b []byte) error {
    42  	return xxx_messageInfo_ChaincodeQueryResponse.Unmarshal(m, b)
    43  }
    44  func (m *ChaincodeQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    45  	return xxx_messageInfo_ChaincodeQueryResponse.Marshal(b, m, deterministic)
    46  }
    47  func (m *ChaincodeQueryResponse) XXX_Merge(src proto.Message) {
    48  	xxx_messageInfo_ChaincodeQueryResponse.Merge(m, src)
    49  }
    50  func (m *ChaincodeQueryResponse) XXX_Size() int {
    51  	return xxx_messageInfo_ChaincodeQueryResponse.Size(m)
    52  }
    53  func (m *ChaincodeQueryResponse) XXX_DiscardUnknown() {
    54  	xxx_messageInfo_ChaincodeQueryResponse.DiscardUnknown(m)
    55  }
    56  
    57  var xxx_messageInfo_ChaincodeQueryResponse proto.InternalMessageInfo
    58  
    59  func (m *ChaincodeQueryResponse) GetChaincodes() []*ChaincodeInfo {
    60  	if m != nil {
    61  		return m.Chaincodes
    62  	}
    63  	return nil
    64  }
    65  
    66  // ChaincodeInfo contains general information about an installed/instantiated
    67  // chaincode
    68  type ChaincodeInfo struct {
    69  	Name    string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    70  	Version string `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
    71  	// the path as specified by the install/instantiate transaction
    72  	Path string `protobuf:"bytes,3,opt,name=path,proto3" json:"path,omitempty"`
    73  	// the chaincode function upon instantiation and its arguments. This will be
    74  	// blank if the query is returning information about installed chaincodes.
    75  	Input string `protobuf:"bytes,4,opt,name=input,proto3" json:"input,omitempty"`
    76  	// the name of the ESCC for this chaincode. This will be
    77  	// blank if the query is returning information about installed chaincodes.
    78  	Escc string `protobuf:"bytes,5,opt,name=escc,proto3" json:"escc,omitempty"`
    79  	// the name of the VSCC for this chaincode. This will be
    80  	// blank if the query is returning information about installed chaincodes.
    81  	Vscc string `protobuf:"bytes,6,opt,name=vscc,proto3" json:"vscc,omitempty"`
    82  	// the chaincode unique id.
    83  	// computed as: H(
    84  	//
    85  	//	  H(name || version) ||
    86  	//	  H(CodePackage)
    87  	//	)
    88  	Id                   []byte   `protobuf:"bytes,7,opt,name=id,proto3" json:"id,omitempty"`
    89  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    90  	XXX_unrecognized     []byte   `json:"-"`
    91  	XXX_sizecache        int32    `json:"-"`
    92  }
    93  
    94  func (m *ChaincodeInfo) Reset()         { *m = ChaincodeInfo{} }
    95  func (m *ChaincodeInfo) String() string { return proto.CompactTextString(m) }
    96  func (*ChaincodeInfo) ProtoMessage()    {}
    97  func (*ChaincodeInfo) Descriptor() ([]byte, []int) {
    98  	return fileDescriptor_d45bcf7fe2423301, []int{1}
    99  }
   100  
   101  func (m *ChaincodeInfo) XXX_Unmarshal(b []byte) error {
   102  	return xxx_messageInfo_ChaincodeInfo.Unmarshal(m, b)
   103  }
   104  func (m *ChaincodeInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   105  	return xxx_messageInfo_ChaincodeInfo.Marshal(b, m, deterministic)
   106  }
   107  func (m *ChaincodeInfo) XXX_Merge(src proto.Message) {
   108  	xxx_messageInfo_ChaincodeInfo.Merge(m, src)
   109  }
   110  func (m *ChaincodeInfo) XXX_Size() int {
   111  	return xxx_messageInfo_ChaincodeInfo.Size(m)
   112  }
   113  func (m *ChaincodeInfo) XXX_DiscardUnknown() {
   114  	xxx_messageInfo_ChaincodeInfo.DiscardUnknown(m)
   115  }
   116  
   117  var xxx_messageInfo_ChaincodeInfo proto.InternalMessageInfo
   118  
   119  func (m *ChaincodeInfo) GetName() string {
   120  	if m != nil {
   121  		return m.Name
   122  	}
   123  	return ""
   124  }
   125  
   126  func (m *ChaincodeInfo) GetVersion() string {
   127  	if m != nil {
   128  		return m.Version
   129  	}
   130  	return ""
   131  }
   132  
   133  func (m *ChaincodeInfo) GetPath() string {
   134  	if m != nil {
   135  		return m.Path
   136  	}
   137  	return ""
   138  }
   139  
   140  func (m *ChaincodeInfo) GetInput() string {
   141  	if m != nil {
   142  		return m.Input
   143  	}
   144  	return ""
   145  }
   146  
   147  func (m *ChaincodeInfo) GetEscc() string {
   148  	if m != nil {
   149  		return m.Escc
   150  	}
   151  	return ""
   152  }
   153  
   154  func (m *ChaincodeInfo) GetVscc() string {
   155  	if m != nil {
   156  		return m.Vscc
   157  	}
   158  	return ""
   159  }
   160  
   161  func (m *ChaincodeInfo) GetId() []byte {
   162  	if m != nil {
   163  		return m.Id
   164  	}
   165  	return nil
   166  }
   167  
   168  // ChannelQueryResponse returns information about each channel that pertains
   169  // to a query in lscc.go, such as GetChannels (returns all channels for a
   170  // given peer)
   171  type ChannelQueryResponse struct {
   172  	Channels             []*ChannelInfo `protobuf:"bytes,1,rep,name=channels,proto3" json:"channels,omitempty"`
   173  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   174  	XXX_unrecognized     []byte         `json:"-"`
   175  	XXX_sizecache        int32          `json:"-"`
   176  }
   177  
   178  func (m *ChannelQueryResponse) Reset()         { *m = ChannelQueryResponse{} }
   179  func (m *ChannelQueryResponse) String() string { return proto.CompactTextString(m) }
   180  func (*ChannelQueryResponse) ProtoMessage()    {}
   181  func (*ChannelQueryResponse) Descriptor() ([]byte, []int) {
   182  	return fileDescriptor_d45bcf7fe2423301, []int{2}
   183  }
   184  
   185  func (m *ChannelQueryResponse) XXX_Unmarshal(b []byte) error {
   186  	return xxx_messageInfo_ChannelQueryResponse.Unmarshal(m, b)
   187  }
   188  func (m *ChannelQueryResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   189  	return xxx_messageInfo_ChannelQueryResponse.Marshal(b, m, deterministic)
   190  }
   191  func (m *ChannelQueryResponse) XXX_Merge(src proto.Message) {
   192  	xxx_messageInfo_ChannelQueryResponse.Merge(m, src)
   193  }
   194  func (m *ChannelQueryResponse) XXX_Size() int {
   195  	return xxx_messageInfo_ChannelQueryResponse.Size(m)
   196  }
   197  func (m *ChannelQueryResponse) XXX_DiscardUnknown() {
   198  	xxx_messageInfo_ChannelQueryResponse.DiscardUnknown(m)
   199  }
   200  
   201  var xxx_messageInfo_ChannelQueryResponse proto.InternalMessageInfo
   202  
   203  func (m *ChannelQueryResponse) GetChannels() []*ChannelInfo {
   204  	if m != nil {
   205  		return m.Channels
   206  	}
   207  	return nil
   208  }
   209  
   210  // ChannelInfo contains general information about channels
   211  type ChannelInfo struct {
   212  	ChannelId            string   `protobuf:"bytes,1,opt,name=channel_id,json=channelId,proto3" json:"channel_id,omitempty"`
   213  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   214  	XXX_unrecognized     []byte   `json:"-"`
   215  	XXX_sizecache        int32    `json:"-"`
   216  }
   217  
   218  func (m *ChannelInfo) Reset()         { *m = ChannelInfo{} }
   219  func (m *ChannelInfo) String() string { return proto.CompactTextString(m) }
   220  func (*ChannelInfo) ProtoMessage()    {}
   221  func (*ChannelInfo) Descriptor() ([]byte, []int) {
   222  	return fileDescriptor_d45bcf7fe2423301, []int{3}
   223  }
   224  
   225  func (m *ChannelInfo) XXX_Unmarshal(b []byte) error {
   226  	return xxx_messageInfo_ChannelInfo.Unmarshal(m, b)
   227  }
   228  func (m *ChannelInfo) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   229  	return xxx_messageInfo_ChannelInfo.Marshal(b, m, deterministic)
   230  }
   231  func (m *ChannelInfo) XXX_Merge(src proto.Message) {
   232  	xxx_messageInfo_ChannelInfo.Merge(m, src)
   233  }
   234  func (m *ChannelInfo) XXX_Size() int {
   235  	return xxx_messageInfo_ChannelInfo.Size(m)
   236  }
   237  func (m *ChannelInfo) XXX_DiscardUnknown() {
   238  	xxx_messageInfo_ChannelInfo.DiscardUnknown(m)
   239  }
   240  
   241  var xxx_messageInfo_ChannelInfo proto.InternalMessageInfo
   242  
   243  func (m *ChannelInfo) GetChannelId() string {
   244  	if m != nil {
   245  		return m.ChannelId
   246  	}
   247  	return ""
   248  }
   249  
   250  // JoinBySnapshotStatus contains information about whether or a JoinBySnapshot operation
   251  // is in progress and the related bootstrap dir if it is running.
   252  type JoinBySnapshotStatus struct {
   253  	InProgress               bool     `protobuf:"varint,1,opt,name=in_progress,json=inProgress,proto3" json:"in_progress,omitempty"`
   254  	BootstrappingSnapshotDir string   `protobuf:"bytes,2,opt,name=bootstrapping_snapshot_dir,json=bootstrappingSnapshotDir,proto3" json:"bootstrapping_snapshot_dir,omitempty"`
   255  	XXX_NoUnkeyedLiteral     struct{} `json:"-"`
   256  	XXX_unrecognized         []byte   `json:"-"`
   257  	XXX_sizecache            int32    `json:"-"`
   258  }
   259  
   260  func (m *JoinBySnapshotStatus) Reset()         { *m = JoinBySnapshotStatus{} }
   261  func (m *JoinBySnapshotStatus) String() string { return proto.CompactTextString(m) }
   262  func (*JoinBySnapshotStatus) ProtoMessage()    {}
   263  func (*JoinBySnapshotStatus) Descriptor() ([]byte, []int) {
   264  	return fileDescriptor_d45bcf7fe2423301, []int{4}
   265  }
   266  
   267  func (m *JoinBySnapshotStatus) XXX_Unmarshal(b []byte) error {
   268  	return xxx_messageInfo_JoinBySnapshotStatus.Unmarshal(m, b)
   269  }
   270  func (m *JoinBySnapshotStatus) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   271  	return xxx_messageInfo_JoinBySnapshotStatus.Marshal(b, m, deterministic)
   272  }
   273  func (m *JoinBySnapshotStatus) XXX_Merge(src proto.Message) {
   274  	xxx_messageInfo_JoinBySnapshotStatus.Merge(m, src)
   275  }
   276  func (m *JoinBySnapshotStatus) XXX_Size() int {
   277  	return xxx_messageInfo_JoinBySnapshotStatus.Size(m)
   278  }
   279  func (m *JoinBySnapshotStatus) XXX_DiscardUnknown() {
   280  	xxx_messageInfo_JoinBySnapshotStatus.DiscardUnknown(m)
   281  }
   282  
   283  var xxx_messageInfo_JoinBySnapshotStatus proto.InternalMessageInfo
   284  
   285  func (m *JoinBySnapshotStatus) GetInProgress() bool {
   286  	if m != nil {
   287  		return m.InProgress
   288  	}
   289  	return false
   290  }
   291  
   292  func (m *JoinBySnapshotStatus) GetBootstrappingSnapshotDir() string {
   293  	if m != nil {
   294  		return m.BootstrappingSnapshotDir
   295  	}
   296  	return ""
   297  }
   298  
   299  func init() {
   300  	proto.RegisterType((*ChaincodeQueryResponse)(nil), "protos.ChaincodeQueryResponse")
   301  	proto.RegisterType((*ChaincodeInfo)(nil), "protos.ChaincodeInfo")
   302  	proto.RegisterType((*ChannelQueryResponse)(nil), "protos.ChannelQueryResponse")
   303  	proto.RegisterType((*ChannelInfo)(nil), "protos.ChannelInfo")
   304  	proto.RegisterType((*JoinBySnapshotStatus)(nil), "protos.JoinBySnapshotStatus")
   305  }
   306  
   307  func init() { proto.RegisterFile("peer/query.proto", fileDescriptor_d45bcf7fe2423301) }
   308  
   309  var fileDescriptor_d45bcf7fe2423301 = []byte{
   310  	// 366 bytes of a gzipped FileDescriptorProto
   311  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x54, 0x92, 0xcf, 0x6a, 0xe3, 0x30,
   312  	0x10, 0x87, 0x71, 0xfe, 0x67, 0xb2, 0xbb, 0x2c, 0x6a, 0x5a, 0x44, 0xa1, 0x34, 0xf8, 0x94, 0x43,
   313  	0x62, 0x43, 0x4b, 0x6f, 0x3d, 0x25, 0x85, 0x92, 0x5e, 0xda, 0x3a, 0xb7, 0x5e, 0x8c, 0x6c, 0x2b,
   314  	0xb6, 0x20, 0x91, 0x54, 0x49, 0x0e, 0xe4, 0x69, 0xfa, 0xaa, 0x45, 0x96, 0x1d, 0x9c, 0x93, 0x67,
   315  	0xbe, 0xf9, 0xc6, 0xe2, 0x27, 0x04, 0xff, 0x25, 0xa5, 0x2a, 0xfc, 0x2e, 0xa9, 0x3a, 0x05, 0x52,
   316  	0x09, 0x23, 0xd0, 0xa0, 0xfa, 0x68, 0xff, 0x1d, 0x6e, 0xd6, 0x05, 0x61, 0x3c, 0x15, 0x19, 0xfd,
   317  	0xb4, 0xf3, 0x88, 0x6a, 0x29, 0xb8, 0xa6, 0xe8, 0x09, 0x20, 0x6d, 0x26, 0x1a, 0x7b, 0xb3, 0xee,
   318  	0x7c, 0xf2, 0x70, 0xed, 0xb6, 0x75, 0x70, 0xde, 0xd9, 0xf0, 0x9d, 0x88, 0x5a, 0xa2, 0xff, 0xe3,
   319  	0xc1, 0xdf, 0x8b, 0x29, 0x42, 0xd0, 0xe3, 0xe4, 0x40, 0xb1, 0x37, 0xf3, 0xe6, 0xe3, 0xa8, 0xaa,
   320  	0x11, 0x86, 0xe1, 0x91, 0x2a, 0xcd, 0x04, 0xc7, 0x9d, 0x0a, 0x37, 0xad, 0xb5, 0x25, 0x31, 0x05,
   321  	0xee, 0x3a, 0xdb, 0xd6, 0x68, 0x0a, 0x7d, 0xc6, 0x65, 0x69, 0x70, 0xaf, 0x82, 0xae, 0xb1, 0x26,
   322  	0xd5, 0x69, 0x8a, 0xfb, 0xce, 0xb4, 0xb5, 0x65, 0x47, 0xcb, 0x06, 0x8e, 0xd9, 0x1a, 0xfd, 0x83,
   323  	0x0e, 0xcb, 0xf0, 0x70, 0xe6, 0xcd, 0xff, 0x44, 0x1d, 0x96, 0xf9, 0xaf, 0x30, 0x5d, 0x17, 0x84,
   324  	0x73, 0xba, 0xbf, 0x0c, 0x1c, 0xc2, 0x28, 0x75, 0xbc, 0x89, 0x7b, 0xd5, 0x8a, 0x6b, 0x79, 0x15,
   325  	0xf6, 0x2c, 0xf9, 0x0b, 0x98, 0xb4, 0x06, 0xe8, 0xae, 0xba, 0x30, 0xdb, 0xc6, 0x2c, 0xab, 0xd3,
   326  	0x8e, 0x6b, 0xb2, 0xc9, 0xfc, 0x12, 0xa6, 0x6f, 0x82, 0xf1, 0xd5, 0x69, 0xcb, 0x89, 0xd4, 0x85,
   327  	0x30, 0x5b, 0x43, 0x4c, 0xa9, 0xd1, 0x3d, 0x4c, 0x18, 0x8f, 0xa5, 0x12, 0xb9, 0xa2, 0x5a, 0x57,
   328  	0x7b, 0xa3, 0x08, 0x18, 0xff, 0xa8, 0x09, 0x7a, 0x86, 0xdb, 0x44, 0x08, 0xa3, 0x8d, 0x22, 0x52,
   329  	0x32, 0x9e, 0xc7, 0xba, 0xfe, 0x41, 0x9c, 0x31, 0x55, 0x5f, 0x1f, 0xbe, 0x30, 0x9a, 0x13, 0x5e,
   330  	0x98, 0x5a, 0x45, 0xe0, 0x0b, 0x95, 0x07, 0xc5, 0x49, 0x52, 0xb5, 0xa7, 0x59, 0x4e, 0x55, 0xb0,
   331  	0x23, 0x89, 0x62, 0x69, 0x93, 0xcd, 0x3e, 0x8d, 0xaf, 0x45, 0xce, 0x4c, 0x51, 0x26, 0x41, 0x2a,
   332  	0x0e, 0x61, 0x4b, 0x0d, 0x9d, 0xba, 0x74, 0xea, 0x32, 0x17, 0xa1, 0xb5, 0x13, 0xf7, 0x78, 0x1e,
   333  	0x7f, 0x03, 0x00, 0x00, 0xff, 0xff, 0x2c, 0x43, 0x94, 0x8d, 0x57, 0x02, 0x00, 0x00,
   334  }