github.com/ZihuaZhang/fabric-protos-go@v1.0.7/peer/resources.pb.go (about)

     1  // Code generated by protoc-gen-go. DO NOT EDIT.
     2  // source: peer/resources.proto
     3  
     4  package peer
     5  
     6  import (
     7  	fmt "fmt"
     8  	proto "github.com/golang/protobuf/proto"
     9  	common "github.com/ZihuaZhang/fabric-protos-go/common"
    10  	math "math"
    11  )
    12  
    13  // Reference imports to suppress errors if they are not otherwise used.
    14  var _ = proto.Marshal
    15  var _ = fmt.Errorf
    16  var _ = math.Inf
    17  
    18  // This is a compile-time assertion to ensure that this generated file
    19  // is compatible with the proto package it is being compiled against.
    20  // A compilation error at this line likely means your copy of the
    21  // proto package needs to be updated.
    22  const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
    23  
    24  // ChaincodeIdentifier identifies a piece of chaincode.  For a peer to accept invocations of
    25  // this chaincode, the hash of the installed code must match, as must the version string
    26  // included with the install command.
    27  type ChaincodeIdentifier struct {
    28  	Hash                 []byte   `protobuf:"bytes,1,opt,name=hash,proto3" json:"hash,omitempty"`
    29  	Version              string   `protobuf:"bytes,2,opt,name=version,proto3" json:"version,omitempty"`
    30  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    31  	XXX_unrecognized     []byte   `json:"-"`
    32  	XXX_sizecache        int32    `json:"-"`
    33  }
    34  
    35  func (m *ChaincodeIdentifier) Reset()         { *m = ChaincodeIdentifier{} }
    36  func (m *ChaincodeIdentifier) String() string { return proto.CompactTextString(m) }
    37  func (*ChaincodeIdentifier) ProtoMessage()    {}
    38  func (*ChaincodeIdentifier) Descriptor() ([]byte, []int) {
    39  	return fileDescriptor_4991d8496920b696, []int{0}
    40  }
    41  
    42  func (m *ChaincodeIdentifier) XXX_Unmarshal(b []byte) error {
    43  	return xxx_messageInfo_ChaincodeIdentifier.Unmarshal(m, b)
    44  }
    45  func (m *ChaincodeIdentifier) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    46  	return xxx_messageInfo_ChaincodeIdentifier.Marshal(b, m, deterministic)
    47  }
    48  func (m *ChaincodeIdentifier) XXX_Merge(src proto.Message) {
    49  	xxx_messageInfo_ChaincodeIdentifier.Merge(m, src)
    50  }
    51  func (m *ChaincodeIdentifier) XXX_Size() int {
    52  	return xxx_messageInfo_ChaincodeIdentifier.Size(m)
    53  }
    54  func (m *ChaincodeIdentifier) XXX_DiscardUnknown() {
    55  	xxx_messageInfo_ChaincodeIdentifier.DiscardUnknown(m)
    56  }
    57  
    58  var xxx_messageInfo_ChaincodeIdentifier proto.InternalMessageInfo
    59  
    60  func (m *ChaincodeIdentifier) GetHash() []byte {
    61  	if m != nil {
    62  		return m.Hash
    63  	}
    64  	return nil
    65  }
    66  
    67  func (m *ChaincodeIdentifier) GetVersion() string {
    68  	if m != nil {
    69  		return m.Version
    70  	}
    71  	return ""
    72  }
    73  
    74  // ChaincodeValidation instructs the peer how transactions for this chaincode should be
    75  // validated.  The only validation mechanism which ships with fabric today is the standard
    76  // 'vscc' validation mechanism.  This built in validation method utilizes an endorsement policy
    77  // which checks that a sufficient number of signatures have been included.  The 'arguement'
    78  // field encodes any parameters required by the validation implementation.
    79  type ChaincodeValidation struct {
    80  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
    81  	Argument             []byte   `protobuf:"bytes,2,opt,name=argument,proto3" json:"argument,omitempty"`
    82  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
    83  	XXX_unrecognized     []byte   `json:"-"`
    84  	XXX_sizecache        int32    `json:"-"`
    85  }
    86  
    87  func (m *ChaincodeValidation) Reset()         { *m = ChaincodeValidation{} }
    88  func (m *ChaincodeValidation) String() string { return proto.CompactTextString(m) }
    89  func (*ChaincodeValidation) ProtoMessage()    {}
    90  func (*ChaincodeValidation) Descriptor() ([]byte, []int) {
    91  	return fileDescriptor_4991d8496920b696, []int{1}
    92  }
    93  
    94  func (m *ChaincodeValidation) XXX_Unmarshal(b []byte) error {
    95  	return xxx_messageInfo_ChaincodeValidation.Unmarshal(m, b)
    96  }
    97  func (m *ChaincodeValidation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
    98  	return xxx_messageInfo_ChaincodeValidation.Marshal(b, m, deterministic)
    99  }
   100  func (m *ChaincodeValidation) XXX_Merge(src proto.Message) {
   101  	xxx_messageInfo_ChaincodeValidation.Merge(m, src)
   102  }
   103  func (m *ChaincodeValidation) XXX_Size() int {
   104  	return xxx_messageInfo_ChaincodeValidation.Size(m)
   105  }
   106  func (m *ChaincodeValidation) XXX_DiscardUnknown() {
   107  	xxx_messageInfo_ChaincodeValidation.DiscardUnknown(m)
   108  }
   109  
   110  var xxx_messageInfo_ChaincodeValidation proto.InternalMessageInfo
   111  
   112  func (m *ChaincodeValidation) GetName() string {
   113  	if m != nil {
   114  		return m.Name
   115  	}
   116  	return ""
   117  }
   118  
   119  func (m *ChaincodeValidation) GetArgument() []byte {
   120  	if m != nil {
   121  		return m.Argument
   122  	}
   123  	return nil
   124  }
   125  
   126  // VSCCArgs is passed (marshaled) as a parameter to the VSCC imlementation via the
   127  // argument field of the ChaincodeValidation message.
   128  type VSCCArgs struct {
   129  	EndorsementPolicyRef string   `protobuf:"bytes,1,opt,name=endorsement_policy_ref,json=endorsementPolicyRef,proto3" json:"endorsement_policy_ref,omitempty"`
   130  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   131  	XXX_unrecognized     []byte   `json:"-"`
   132  	XXX_sizecache        int32    `json:"-"`
   133  }
   134  
   135  func (m *VSCCArgs) Reset()         { *m = VSCCArgs{} }
   136  func (m *VSCCArgs) String() string { return proto.CompactTextString(m) }
   137  func (*VSCCArgs) ProtoMessage()    {}
   138  func (*VSCCArgs) Descriptor() ([]byte, []int) {
   139  	return fileDescriptor_4991d8496920b696, []int{2}
   140  }
   141  
   142  func (m *VSCCArgs) XXX_Unmarshal(b []byte) error {
   143  	return xxx_messageInfo_VSCCArgs.Unmarshal(m, b)
   144  }
   145  func (m *VSCCArgs) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   146  	return xxx_messageInfo_VSCCArgs.Marshal(b, m, deterministic)
   147  }
   148  func (m *VSCCArgs) XXX_Merge(src proto.Message) {
   149  	xxx_messageInfo_VSCCArgs.Merge(m, src)
   150  }
   151  func (m *VSCCArgs) XXX_Size() int {
   152  	return xxx_messageInfo_VSCCArgs.Size(m)
   153  }
   154  func (m *VSCCArgs) XXX_DiscardUnknown() {
   155  	xxx_messageInfo_VSCCArgs.DiscardUnknown(m)
   156  }
   157  
   158  var xxx_messageInfo_VSCCArgs proto.InternalMessageInfo
   159  
   160  func (m *VSCCArgs) GetEndorsementPolicyRef() string {
   161  	if m != nil {
   162  		return m.EndorsementPolicyRef
   163  	}
   164  	return ""
   165  }
   166  
   167  // ChaincodeEndorsement instructs the peer how transactions should be endorsed.  The only
   168  // endorsement mechanism which ships with the fabric today is the standard 'escc' mechanism.
   169  // This code simply simulates the proposal to generate a RW set, then signs the result
   170  // using the peer's local signing identity.
   171  type ChaincodeEndorsement struct {
   172  	Name                 string   `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
   173  	XXX_NoUnkeyedLiteral struct{} `json:"-"`
   174  	XXX_unrecognized     []byte   `json:"-"`
   175  	XXX_sizecache        int32    `json:"-"`
   176  }
   177  
   178  func (m *ChaincodeEndorsement) Reset()         { *m = ChaincodeEndorsement{} }
   179  func (m *ChaincodeEndorsement) String() string { return proto.CompactTextString(m) }
   180  func (*ChaincodeEndorsement) ProtoMessage()    {}
   181  func (*ChaincodeEndorsement) Descriptor() ([]byte, []int) {
   182  	return fileDescriptor_4991d8496920b696, []int{3}
   183  }
   184  
   185  func (m *ChaincodeEndorsement) XXX_Unmarshal(b []byte) error {
   186  	return xxx_messageInfo_ChaincodeEndorsement.Unmarshal(m, b)
   187  }
   188  func (m *ChaincodeEndorsement) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   189  	return xxx_messageInfo_ChaincodeEndorsement.Marshal(b, m, deterministic)
   190  }
   191  func (m *ChaincodeEndorsement) XXX_Merge(src proto.Message) {
   192  	xxx_messageInfo_ChaincodeEndorsement.Merge(m, src)
   193  }
   194  func (m *ChaincodeEndorsement) XXX_Size() int {
   195  	return xxx_messageInfo_ChaincodeEndorsement.Size(m)
   196  }
   197  func (m *ChaincodeEndorsement) XXX_DiscardUnknown() {
   198  	xxx_messageInfo_ChaincodeEndorsement.DiscardUnknown(m)
   199  }
   200  
   201  var xxx_messageInfo_ChaincodeEndorsement proto.InternalMessageInfo
   202  
   203  func (m *ChaincodeEndorsement) GetName() string {
   204  	if m != nil {
   205  		return m.Name
   206  	}
   207  	return ""
   208  }
   209  
   210  // ConfigTree encapsulates channel and resources configuration of a channel.
   211  // Both configurations are represented as common.Config
   212  type ConfigTree struct {
   213  	ChannelConfig        *common.Config `protobuf:"bytes,1,opt,name=channel_config,json=channelConfig,proto3" json:"channel_config,omitempty"`
   214  	ResourcesConfig      *common.Config `protobuf:"bytes,2,opt,name=resources_config,json=resourcesConfig,proto3" json:"resources_config,omitempty"`
   215  	XXX_NoUnkeyedLiteral struct{}       `json:"-"`
   216  	XXX_unrecognized     []byte         `json:"-"`
   217  	XXX_sizecache        int32          `json:"-"`
   218  }
   219  
   220  func (m *ConfigTree) Reset()         { *m = ConfigTree{} }
   221  func (m *ConfigTree) String() string { return proto.CompactTextString(m) }
   222  func (*ConfigTree) ProtoMessage()    {}
   223  func (*ConfigTree) Descriptor() ([]byte, []int) {
   224  	return fileDescriptor_4991d8496920b696, []int{4}
   225  }
   226  
   227  func (m *ConfigTree) XXX_Unmarshal(b []byte) error {
   228  	return xxx_messageInfo_ConfigTree.Unmarshal(m, b)
   229  }
   230  func (m *ConfigTree) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
   231  	return xxx_messageInfo_ConfigTree.Marshal(b, m, deterministic)
   232  }
   233  func (m *ConfigTree) XXX_Merge(src proto.Message) {
   234  	xxx_messageInfo_ConfigTree.Merge(m, src)
   235  }
   236  func (m *ConfigTree) XXX_Size() int {
   237  	return xxx_messageInfo_ConfigTree.Size(m)
   238  }
   239  func (m *ConfigTree) XXX_DiscardUnknown() {
   240  	xxx_messageInfo_ConfigTree.DiscardUnknown(m)
   241  }
   242  
   243  var xxx_messageInfo_ConfigTree proto.InternalMessageInfo
   244  
   245  func (m *ConfigTree) GetChannelConfig() *common.Config {
   246  	if m != nil {
   247  		return m.ChannelConfig
   248  	}
   249  	return nil
   250  }
   251  
   252  func (m *ConfigTree) GetResourcesConfig() *common.Config {
   253  	if m != nil {
   254  		return m.ResourcesConfig
   255  	}
   256  	return nil
   257  }
   258  
   259  func init() {
   260  	proto.RegisterType((*ChaincodeIdentifier)(nil), "protos.ChaincodeIdentifier")
   261  	proto.RegisterType((*ChaincodeValidation)(nil), "protos.ChaincodeValidation")
   262  	proto.RegisterType((*VSCCArgs)(nil), "protos.VSCCArgs")
   263  	proto.RegisterType((*ChaincodeEndorsement)(nil), "protos.ChaincodeEndorsement")
   264  	proto.RegisterType((*ConfigTree)(nil), "protos.ConfigTree")
   265  }
   266  
   267  func init() { proto.RegisterFile("peer/resources.proto", fileDescriptor_4991d8496920b696) }
   268  
   269  var fileDescriptor_4991d8496920b696 = []byte{
   270  	// 327 bytes of a gzipped FileDescriptorProto
   271  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x91, 0x3f, 0x4f, 0xc3, 0x30,
   272  	0x10, 0xc5, 0xd5, 0x0a, 0x41, 0x6b, 0x4a, 0x41, 0xa6, 0xa0, 0xaa, 0x53, 0x95, 0xa9, 0x42, 0x34,
   273  	0x91, 0xf8, 0x33, 0xb0, 0x01, 0x51, 0x07, 0x36, 0x64, 0x50, 0x07, 0x96, 0xca, 0x75, 0x2e, 0x8e,
   274  	0xa5, 0xc4, 0x8e, 0xce, 0x29, 0xa2, 0x0b, 0x9f, 0x1d, 0xc5, 0x6e, 0x43, 0x86, 0x4e, 0xbe, 0xf3,
   275  	0xfb, 0xdd, 0xd3, 0xe9, 0x1d, 0x19, 0x95, 0x00, 0x18, 0x21, 0x58, 0xb3, 0x41, 0x01, 0x36, 0x2c,
   276  	0xd1, 0x54, 0x86, 0x1e, 0xbb, 0xc7, 0x4e, 0xae, 0x84, 0x29, 0x0a, 0xa3, 0x23, 0x61, 0x74, 0xaa,
   277  	0x64, 0xf5, 0xe3, 0xe5, 0x20, 0x26, 0x97, 0x71, 0xc6, 0x95, 0x16, 0x26, 0x81, 0xb7, 0x04, 0x74,
   278  	0xa5, 0x52, 0x05, 0x48, 0x29, 0x39, 0xca, 0xb8, 0xcd, 0xc6, 0x9d, 0x69, 0x67, 0x36, 0x60, 0xae,
   279  	0xa6, 0x63, 0x72, 0xf2, 0x0d, 0x68, 0x95, 0xd1, 0xe3, 0xee, 0xb4, 0x33, 0xeb, 0xb3, 0x7d, 0x1b,
   280  	0x2c, 0x5a, 0x26, 0x4b, 0x9e, 0xab, 0x84, 0x57, 0xca, 0xe8, 0xda, 0x44, 0xf3, 0x02, 0x9c, 0x49,
   281  	0x9f, 0xb9, 0x9a, 0x4e, 0x48, 0x8f, 0xa3, 0xdc, 0x14, 0xa0, 0x2b, 0xe7, 0x32, 0x60, 0x4d, 0x1f,
   282  	0x3c, 0x93, 0xde, 0xf2, 0x23, 0x8e, 0x5f, 0x50, 0x5a, 0xfa, 0x40, 0xae, 0x41, 0x27, 0x06, 0x2d,
   283  	0xd4, 0xd2, 0xaa, 0x34, 0xb9, 0x12, 0xdb, 0x15, 0x42, 0xba, 0x73, 0x1b, 0xb5, 0xd4, 0x77, 0x27,
   284  	0x32, 0x48, 0x83, 0x1b, 0x32, 0x6a, 0x16, 0x59, 0xfc, 0x03, 0x87, 0x36, 0x09, 0x7e, 0x09, 0x89,
   285  	0x5d, 0x16, 0x9f, 0x08, 0x40, 0x1f, 0xc9, 0x50, 0x64, 0x5c, 0x6b, 0xc8, 0x57, 0x3e, 0x21, 0xc7,
   286  	0x9e, 0xde, 0x0d, 0x43, 0x9f, 0x5b, 0xe8, 0x59, 0x76, 0xb6, 0xa3, 0x7c, 0x4b, 0x9f, 0xc8, 0x45,
   287  	0x13, 0xf8, 0x7e, 0xb0, 0x7b, 0x70, 0xf0, 0xbc, 0xe1, 0xfc, 0xc7, 0x2b, 0x23, 0x81, 0x41, 0x19,
   288  	0x66, 0xdb, 0x12, 0x30, 0x87, 0x44, 0x02, 0x86, 0x29, 0x5f, 0xa3, 0x12, 0xfe, 0x32, 0x36, 0xac,
   289  	0xcf, 0xf9, 0x75, 0x2b, 0x55, 0x95, 0x6d, 0xd6, 0xb5, 0x59, 0xd4, 0x42, 0x23, 0x8f, 0xce, 0x3d,
   290  	0x3a, 0x97, 0x26, 0xaa, 0xe9, 0xb5, 0x3f, 0xf6, 0xfd, 0x5f, 0x00, 0x00, 0x00, 0xff, 0xff, 0xae,
   291  	0x32, 0x27, 0x0c, 0x0b, 0x02, 0x00, 0x00,
   292  }