github.com/kchristidis/fabric@v1.0.4-0.20171028114726-837acd08cde1/protos/peer/chaincode.pb.go (about)

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