github.com/adnan-c/fabric_e2e_couchdb@v0.6.1-preview.0.20170228180935-21ce6b23cf91/protos/peer/chaincode.pb.go (about)

     1  // Code generated by protoc-gen-go.
     2  // source: peer/chaincode.proto
     3  // DO NOT EDIT!
     4  
     5  package peer
     6  
     7  import proto "github.com/golang/protobuf/proto"
     8  import fmt "fmt"
     9  import math "math"
    10  import google_protobuf1 "github.com/golang/protobuf/ptypes/timestamp"
    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  // Confidentiality Levels
    18  type ConfidentialityLevel int32
    19  
    20  const (
    21  	ConfidentialityLevel_PUBLIC       ConfidentialityLevel = 0
    22  	ConfidentialityLevel_CONFIDENTIAL ConfidentialityLevel = 1
    23  )
    24  
    25  var ConfidentialityLevel_name = map[int32]string{
    26  	0: "PUBLIC",
    27  	1: "CONFIDENTIAL",
    28  }
    29  var ConfidentialityLevel_value = map[string]int32{
    30  	"PUBLIC":       0,
    31  	"CONFIDENTIAL": 1,
    32  }
    33  
    34  func (x ConfidentialityLevel) String() string {
    35  	return proto.EnumName(ConfidentialityLevel_name, int32(x))
    36  }
    37  func (ConfidentialityLevel) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
    38  
    39  type ChaincodeSpec_Type int32
    40  
    41  const (
    42  	ChaincodeSpec_UNDEFINED ChaincodeSpec_Type = 0
    43  	ChaincodeSpec_GOLANG    ChaincodeSpec_Type = 1
    44  	ChaincodeSpec_NODE      ChaincodeSpec_Type = 2
    45  	ChaincodeSpec_CAR       ChaincodeSpec_Type = 3
    46  	ChaincodeSpec_JAVA      ChaincodeSpec_Type = 4
    47  )
    48  
    49  var ChaincodeSpec_Type_name = map[int32]string{
    50  	0: "UNDEFINED",
    51  	1: "GOLANG",
    52  	2: "NODE",
    53  	3: "CAR",
    54  	4: "JAVA",
    55  }
    56  var ChaincodeSpec_Type_value = map[string]int32{
    57  	"UNDEFINED": 0,
    58  	"GOLANG":    1,
    59  	"NODE":      2,
    60  	"CAR":       3,
    61  	"JAVA":      4,
    62  }
    63  
    64  func (x ChaincodeSpec_Type) String() string {
    65  	return proto.EnumName(ChaincodeSpec_Type_name, int32(x))
    66  }
    67  func (ChaincodeSpec_Type) EnumDescriptor() ([]byte, []int) { return fileDescriptor1, []int{2, 0} }
    68  
    69  type ChaincodeDeploymentSpec_ExecutionEnvironment int32
    70  
    71  const (
    72  	ChaincodeDeploymentSpec_DOCKER ChaincodeDeploymentSpec_ExecutionEnvironment = 0
    73  	ChaincodeDeploymentSpec_SYSTEM ChaincodeDeploymentSpec_ExecutionEnvironment = 1
    74  )
    75  
    76  var ChaincodeDeploymentSpec_ExecutionEnvironment_name = map[int32]string{
    77  	0: "DOCKER",
    78  	1: "SYSTEM",
    79  }
    80  var ChaincodeDeploymentSpec_ExecutionEnvironment_value = map[string]int32{
    81  	"DOCKER": 0,
    82  	"SYSTEM": 1,
    83  }
    84  
    85  func (x ChaincodeDeploymentSpec_ExecutionEnvironment) String() string {
    86  	return proto.EnumName(ChaincodeDeploymentSpec_ExecutionEnvironment_name, int32(x))
    87  }
    88  func (ChaincodeDeploymentSpec_ExecutionEnvironment) EnumDescriptor() ([]byte, []int) {
    89  	return fileDescriptor1, []int{3, 0}
    90  }
    91  
    92  // ChaincodeID contains the path as specified by the deploy transaction
    93  // that created it as well as the hashCode that is generated by the
    94  // system for the path. From the user level (ie, CLI, REST API and so on)
    95  // deploy transaction is expected to provide the path and other requests
    96  // are expected to provide the hashCode. The other value will be ignored.
    97  // Internally, the structure could contain both values. For instance, the
    98  // hashCode will be set when first generated using the path
    99  type ChaincodeID struct {
   100  	// deploy transaction will use the path
   101  	Path string `protobuf:"bytes,1,opt,name=path" json:"path,omitempty"`
   102  	// all other requests will use the name (really a hashcode) generated by
   103  	// the deploy transaction
   104  	Name string `protobuf:"bytes,2,opt,name=name" json:"name,omitempty"`
   105  	// user friendly version name for the chaincode
   106  	Version string `protobuf:"bytes,3,opt,name=version" json:"version,omitempty"`
   107  }
   108  
   109  func (m *ChaincodeID) Reset()                    { *m = ChaincodeID{} }
   110  func (m *ChaincodeID) String() string            { return proto.CompactTextString(m) }
   111  func (*ChaincodeID) ProtoMessage()               {}
   112  func (*ChaincodeID) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{0} }
   113  
   114  // Carries the chaincode function and its arguments.
   115  // UnmarshalJSON in transaction.go converts the string-based REST/JSON input to
   116  // the []byte-based current ChaincodeInput structure.
   117  type ChaincodeInput struct {
   118  	Args [][]byte `protobuf:"bytes,1,rep,name=args,proto3" json:"args,omitempty"`
   119  }
   120  
   121  func (m *ChaincodeInput) Reset()                    { *m = ChaincodeInput{} }
   122  func (m *ChaincodeInput) String() string            { return proto.CompactTextString(m) }
   123  func (*ChaincodeInput) ProtoMessage()               {}
   124  func (*ChaincodeInput) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{1} }
   125  
   126  // Carries the chaincode specification. This is the actual metadata required for
   127  // defining a chaincode.
   128  type ChaincodeSpec struct {
   129  	Type        ChaincodeSpec_Type `protobuf:"varint,1,opt,name=type,enum=protos.ChaincodeSpec_Type" json:"type,omitempty"`
   130  	ChaincodeId *ChaincodeID       `protobuf:"bytes,2,opt,name=chaincode_id,json=chaincodeId" json:"chaincode_id,omitempty"`
   131  	Input       *ChaincodeInput    `protobuf:"bytes,3,opt,name=input" json:"input,omitempty"`
   132  	Timeout     int32              `protobuf:"varint,4,opt,name=timeout" json:"timeout,omitempty"`
   133  }
   134  
   135  func (m *ChaincodeSpec) Reset()                    { *m = ChaincodeSpec{} }
   136  func (m *ChaincodeSpec) String() string            { return proto.CompactTextString(m) }
   137  func (*ChaincodeSpec) ProtoMessage()               {}
   138  func (*ChaincodeSpec) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{2} }
   139  
   140  func (m *ChaincodeSpec) GetChaincodeId() *ChaincodeID {
   141  	if m != nil {
   142  		return m.ChaincodeId
   143  	}
   144  	return nil
   145  }
   146  
   147  func (m *ChaincodeSpec) GetInput() *ChaincodeInput {
   148  	if m != nil {
   149  		return m.Input
   150  	}
   151  	return nil
   152  }
   153  
   154  // Specify the deployment of a chaincode.
   155  // TODO: Define `codePackage`.
   156  type ChaincodeDeploymentSpec struct {
   157  	ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec" json:"chaincode_spec,omitempty"`
   158  	// Controls when the chaincode becomes executable.
   159  	EffectiveDate *google_protobuf1.Timestamp                  `protobuf:"bytes,2,opt,name=effective_date,json=effectiveDate" json:"effective_date,omitempty"`
   160  	CodePackage   []byte                                       `protobuf:"bytes,3,opt,name=code_package,json=codePackage,proto3" json:"code_package,omitempty"`
   161  	ExecEnv       ChaincodeDeploymentSpec_ExecutionEnvironment `protobuf:"varint,4,opt,name=exec_env,json=execEnv,enum=protos.ChaincodeDeploymentSpec_ExecutionEnvironment" json:"exec_env,omitempty"`
   162  }
   163  
   164  func (m *ChaincodeDeploymentSpec) Reset()                    { *m = ChaincodeDeploymentSpec{} }
   165  func (m *ChaincodeDeploymentSpec) String() string            { return proto.CompactTextString(m) }
   166  func (*ChaincodeDeploymentSpec) ProtoMessage()               {}
   167  func (*ChaincodeDeploymentSpec) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{3} }
   168  
   169  func (m *ChaincodeDeploymentSpec) GetChaincodeSpec() *ChaincodeSpec {
   170  	if m != nil {
   171  		return m.ChaincodeSpec
   172  	}
   173  	return nil
   174  }
   175  
   176  func (m *ChaincodeDeploymentSpec) GetEffectiveDate() *google_protobuf1.Timestamp {
   177  	if m != nil {
   178  		return m.EffectiveDate
   179  	}
   180  	return nil
   181  }
   182  
   183  // Carries the chaincode function and its arguments.
   184  type ChaincodeInvocationSpec struct {
   185  	ChaincodeSpec *ChaincodeSpec `protobuf:"bytes,1,opt,name=chaincode_spec,json=chaincodeSpec" json:"chaincode_spec,omitempty"`
   186  	// This field can contain a user-specified ID generation algorithm
   187  	// If supplied, this will be used to generate a ID
   188  	// If not supplied (left empty), sha256base64 will be used
   189  	// The algorithm consists of two parts:
   190  	//  1, a hash function
   191  	//  2, a decoding used to decode user (string) input to bytes
   192  	// Currently, SHA256 with BASE64 is supported (e.g. idGenerationAlg='sha256base64')
   193  	IdGenerationAlg string `protobuf:"bytes,2,opt,name=id_generation_alg,json=idGenerationAlg" json:"id_generation_alg,omitempty"`
   194  }
   195  
   196  func (m *ChaincodeInvocationSpec) Reset()                    { *m = ChaincodeInvocationSpec{} }
   197  func (m *ChaincodeInvocationSpec) String() string            { return proto.CompactTextString(m) }
   198  func (*ChaincodeInvocationSpec) ProtoMessage()               {}
   199  func (*ChaincodeInvocationSpec) Descriptor() ([]byte, []int) { return fileDescriptor1, []int{4} }
   200  
   201  func (m *ChaincodeInvocationSpec) GetChaincodeSpec() *ChaincodeSpec {
   202  	if m != nil {
   203  		return m.ChaincodeSpec
   204  	}
   205  	return nil
   206  }
   207  
   208  func init() {
   209  	proto.RegisterType((*ChaincodeID)(nil), "protos.ChaincodeID")
   210  	proto.RegisterType((*ChaincodeInput)(nil), "protos.ChaincodeInput")
   211  	proto.RegisterType((*ChaincodeSpec)(nil), "protos.ChaincodeSpec")
   212  	proto.RegisterType((*ChaincodeDeploymentSpec)(nil), "protos.ChaincodeDeploymentSpec")
   213  	proto.RegisterType((*ChaincodeInvocationSpec)(nil), "protos.ChaincodeInvocationSpec")
   214  	proto.RegisterEnum("protos.ConfidentialityLevel", ConfidentialityLevel_name, ConfidentialityLevel_value)
   215  	proto.RegisterEnum("protos.ChaincodeSpec_Type", ChaincodeSpec_Type_name, ChaincodeSpec_Type_value)
   216  	proto.RegisterEnum("protos.ChaincodeDeploymentSpec_ExecutionEnvironment", ChaincodeDeploymentSpec_ExecutionEnvironment_name, ChaincodeDeploymentSpec_ExecutionEnvironment_value)
   217  }
   218  
   219  func init() { proto.RegisterFile("peer/chaincode.proto", fileDescriptor1) }
   220  
   221  var fileDescriptor1 = []byte{
   222  	// 585 bytes of a gzipped FileDescriptorProto
   223  	0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0xac, 0x53, 0x5d, 0x6f, 0xd3, 0x30,
   224  	0x14, 0x5d, 0xd6, 0xee, 0xeb, 0xf6, 0x83, 0x60, 0xc6, 0xa8, 0xf6, 0xc2, 0x88, 0x78, 0x18, 0x13,
   225  	0x4a, 0xa5, 0x32, 0xf1, 0x84, 0x90, 0xb2, 0x24, 0x9b, 0x02, 0xa5, 0x9d, 0xb2, 0x0e, 0x09, 0x5e,
   226  	0x2a, 0x37, 0xb9, 0x4d, 0x2d, 0x52, 0x3b, 0x4a, 0xdc, 0x68, 0x7d, 0xe6, 0x7f, 0xf1, 0xd7, 0x40,
   227  	0x76, 0xd6, 0x6e, 0xd3, 0xf6, 0xc8, 0x93, 0xed, 0xe3, 0x73, 0xec, 0x73, 0x8f, 0xee, 0x85, 0xfd,
   228  	0x0c, 0x31, 0xef, 0x46, 0x33, 0xca, 0x78, 0x24, 0x62, 0xb4, 0xb3, 0x5c, 0x48, 0x41, 0xb6, 0xf5,
   229  	0x52, 0x1c, 0xbe, 0x4e, 0x84, 0x48, 0x52, 0xec, 0xea, 0xe3, 0x64, 0x31, 0xed, 0x4a, 0x36, 0xc7,
   230  	0x42, 0xd2, 0x79, 0x56, 0x11, 0xad, 0x21, 0x34, 0xdc, 0x95, 0x36, 0xf0, 0x08, 0x81, 0x7a, 0x46,
   231  	0xe5, 0xac, 0x63, 0x1c, 0x19, 0xc7, 0x7b, 0xa1, 0xde, 0x2b, 0x8c, 0xd3, 0x39, 0x76, 0x36, 0x2b,
   232  	0x4c, 0xed, 0x49, 0x07, 0x76, 0x4a, 0xcc, 0x0b, 0x26, 0x78, 0xa7, 0xa6, 0xe1, 0xd5, 0xd1, 0x7a,
   233  	0x0b, 0xed, 0xbb, 0x07, 0x79, 0xb6, 0x90, 0x4a, 0x4f, 0xf3, 0xa4, 0xe8, 0x18, 0x47, 0xb5, 0xe3,
   234  	0x66, 0xa8, 0xf7, 0xd6, 0x5f, 0x03, 0x5a, 0x6b, 0xda, 0x55, 0x86, 0x11, 0xb1, 0xa1, 0x2e, 0x97,
   235  	0x19, 0xea, 0x9f, 0xdb, 0xbd, 0xc3, 0xca, 0x5e, 0x61, 0x3f, 0x20, 0xd9, 0xa3, 0x65, 0x86, 0xa1,
   236  	0xe6, 0x91, 0x8f, 0xd0, 0x5c, 0x17, 0x3d, 0x66, 0xb1, 0x76, 0xd7, 0xe8, 0xbd, 0x78, 0xa4, 0x0b,
   237  	0xbc, 0xb0, 0xb1, 0x26, 0x06, 0x31, 0x79, 0x0f, 0x5b, 0x4c, 0xd9, 0xd2, 0xbe, 0x1b, 0xbd, 0x83,
   238  	0xc7, 0x02, 0x75, 0x1b, 0x56, 0x24, 0x55, 0xa7, 0x4a, 0x4c, 0x2c, 0x64, 0xa7, 0x7e, 0x64, 0x1c,
   239  	0x6f, 0x85, 0xab, 0xa3, 0xf5, 0x19, 0xea, 0xca, 0x0d, 0x69, 0xc1, 0xde, 0xf5, 0xc0, 0xf3, 0xcf,
   240  	0x83, 0x81, 0xef, 0x99, 0x1b, 0x04, 0x60, 0xfb, 0x62, 0xd8, 0x77, 0x06, 0x17, 0xa6, 0x41, 0x76,
   241  	0xa1, 0x3e, 0x18, 0x7a, 0xbe, 0xb9, 0x49, 0x76, 0xa0, 0xe6, 0x3a, 0xa1, 0x59, 0x53, 0xd0, 0x17,
   242  	0xe7, 0xbb, 0x63, 0xd6, 0xad, 0x3f, 0x9b, 0xf0, 0x6a, 0xfd, 0xa7, 0x87, 0x59, 0x2a, 0x96, 0x73,
   243  	0xe4, 0x52, 0x67, 0xf1, 0x09, 0xda, 0x77, 0xb5, 0x15, 0x19, 0x46, 0x3a, 0x95, 0x46, 0xef, 0xe5,
   244  	0x93, 0xa9, 0x84, 0xad, 0xe8, 0x41, 0x92, 0x0e, 0xb4, 0x71, 0x3a, 0xc5, 0x48, 0xb2, 0x12, 0xc7,
   245  	0x31, 0x95, 0x78, 0x9b, 0xcd, 0xa1, 0x5d, 0x35, 0x83, 0xbd, 0x6a, 0x06, 0x7b, 0xb4, 0x6a, 0x86,
   246  	0xb0, 0xb5, 0x56, 0x78, 0x54, 0x22, 0x79, 0x03, 0x4d, 0xfd, 0x77, 0x46, 0xa3, 0x5f, 0x34, 0x41,
   247  	0x9d, 0x55, 0x33, 0x6c, 0x28, 0xec, 0xb2, 0x82, 0xc8, 0x10, 0x76, 0xf1, 0x06, 0xa3, 0x31, 0xf2,
   248  	0x52, 0x47, 0xd3, 0xee, 0x9d, 0x3e, 0x72, 0xf7, 0xb0, 0x2c, 0xdb, 0xbf, 0xc1, 0x68, 0x21, 0x99,
   249  	0xe0, 0x3e, 0x2f, 0x59, 0x2e, 0xb8, 0xba, 0x08, 0x77, 0xd4, 0x2b, 0x3e, 0x2f, 0x2d, 0x1b, 0xf6,
   250  	0x9f, 0x22, 0xa8, 0x44, 0xbd, 0xa1, 0xfb, 0xd5, 0x0f, 0xab, 0x74, 0xaf, 0x7e, 0x5c, 0x8d, 0xfc,
   251  	0x6f, 0xa6, 0x61, 0xfd, 0x36, 0xee, 0x05, 0x18, 0xf0, 0x52, 0x44, 0x54, 0x49, 0xff, 0x43, 0x80,
   252  	0x27, 0xf0, 0x9c, 0xc5, 0xe3, 0x04, 0x39, 0xe6, 0xfa, 0xc9, 0x31, 0x4d, 0x93, 0xdb, 0xee, 0x7f,
   253  	0xc6, 0xe2, 0x8b, 0x35, 0xee, 0xa4, 0xc9, 0xc9, 0x29, 0xec, 0xbb, 0x82, 0x4f, 0x59, 0x8c, 0x5c,
   254  	0x32, 0x9a, 0x32, 0xb9, 0xec, 0x63, 0x89, 0xa9, 0x72, 0x7a, 0x79, 0x7d, 0xd6, 0x0f, 0x5c, 0x73,
   255  	0x83, 0x98, 0xd0, 0x74, 0x87, 0x83, 0xf3, 0xc0, 0xf3, 0x07, 0xa3, 0xc0, 0xe9, 0x9b, 0xc6, 0x99,
   256  	0x0b, 0x07, 0x22, 0x4f, 0xec, 0xd9, 0x32, 0xc3, 0x3c, 0xc5, 0x38, 0xc1, 0xfc, 0xd6, 0xd8, 0xcf,
   257  	0x77, 0x09, 0x93, 0xb3, 0xc5, 0xc4, 0x8e, 0xc4, 0xbc, 0x7b, 0xef, 0xba, 0x3b, 0xa5, 0x93, 0x9c,
   258  	0x45, 0xd5, 0x1c, 0x17, 0x5d, 0x35, 0xf3, 0x93, 0x6a, 0xc6, 0x3f, 0xfc, 0x0b, 0x00, 0x00, 0xff,
   259  	0xff, 0xd7, 0xce, 0x97, 0x9a, 0x02, 0x04, 0x00, 0x00,
   260  }