|
1
|
|
|
<?php |
|
2
|
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT! |
|
3
|
|
|
# source: peer/chaincode.proto |
|
4
|
|
|
|
|
5
|
|
|
namespace Hyperledger\Fabric\Protos\Peer; |
|
6
|
|
|
|
|
7
|
|
|
use Google\Protobuf\Internal\GPBType; |
|
8
|
|
|
use Google\Protobuf\Internal\RepeatedField; |
|
9
|
|
|
use Google\Protobuf\Internal\GPBUtil; |
|
10
|
|
|
|
|
11
|
|
|
/** |
|
12
|
|
|
* Carries the chaincode specification. This is the actual metadata required for |
|
13
|
|
|
* defining a chaincode. |
|
14
|
|
|
* |
|
15
|
|
|
* Generated from protobuf message <code>protos.ChaincodeSpec</code> |
|
16
|
|
|
*/ |
|
17
|
|
|
class ChaincodeSpec extends \Google\Protobuf\Internal\Message |
|
18
|
|
|
{ |
|
19
|
|
|
/** |
|
20
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeSpec.Type type = 1;</code> |
|
21
|
|
|
*/ |
|
22
|
|
|
private $type = 0; |
|
23
|
|
|
/** |
|
24
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeID chaincode_id = 2;</code> |
|
25
|
|
|
*/ |
|
26
|
|
|
private $chaincode_id = null; |
|
27
|
|
|
/** |
|
28
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeInput input = 3;</code> |
|
29
|
|
|
*/ |
|
30
|
|
|
private $input = null; |
|
31
|
|
|
/** |
|
32
|
|
|
* Generated from protobuf field <code>int32 timeout = 4;</code> |
|
33
|
|
|
*/ |
|
34
|
|
|
private $timeout = 0; |
|
35
|
|
|
|
|
36
|
|
|
public function __construct() { |
|
37
|
|
|
\GPBMetadata\Peer\Chaincode::initOnce(); |
|
38
|
|
|
parent::__construct(); |
|
39
|
|
|
} |
|
40
|
|
|
|
|
41
|
|
|
/** |
|
42
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeSpec.Type type = 1;</code> |
|
43
|
|
|
* @return int |
|
44
|
|
|
*/ |
|
45
|
|
|
public function getType() |
|
46
|
|
|
{ |
|
47
|
|
|
return $this->type; |
|
48
|
|
|
} |
|
49
|
|
|
|
|
50
|
|
|
/** |
|
51
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeSpec.Type type = 1;</code> |
|
52
|
|
|
* @param int $var |
|
53
|
|
|
* @return $this |
|
54
|
|
|
*/ |
|
55
|
|
|
public function setType($var) |
|
56
|
|
|
{ |
|
57
|
|
|
GPBUtil::checkEnum($var, \Hyperledger\Fabric\Protos\Peer\ChaincodeSpec_Type::class); |
|
58
|
|
|
$this->type = $var; |
|
59
|
|
|
|
|
60
|
|
|
return $this; |
|
61
|
|
|
} |
|
62
|
|
|
|
|
63
|
|
|
/** |
|
64
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeID chaincode_id = 2;</code> |
|
65
|
|
|
* @return \Hyperledger\Fabric\Protos\Peer\ChaincodeID |
|
66
|
|
|
*/ |
|
67
|
|
|
public function getChaincodeId() |
|
68
|
|
|
{ |
|
69
|
|
|
return $this->chaincode_id; |
|
70
|
|
|
} |
|
71
|
|
|
|
|
72
|
|
|
/** |
|
73
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeID chaincode_id = 2;</code> |
|
74
|
|
|
* @param \Hyperledger\Fabric\Protos\Peer\ChaincodeID $var |
|
75
|
|
|
* @return $this |
|
76
|
|
|
*/ |
|
77
|
|
|
public function setChaincodeId($var) |
|
78
|
|
|
{ |
|
79
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Peer\ChaincodeID::class); |
|
80
|
|
|
$this->chaincode_id = $var; |
|
81
|
|
|
|
|
82
|
|
|
return $this; |
|
83
|
|
|
} |
|
84
|
|
|
|
|
85
|
|
|
/** |
|
86
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeInput input = 3;</code> |
|
87
|
|
|
* @return \Hyperledger\Fabric\Protos\Peer\ChaincodeInput |
|
88
|
|
|
*/ |
|
89
|
|
|
public function getInput() |
|
90
|
|
|
{ |
|
91
|
|
|
return $this->input; |
|
92
|
|
|
} |
|
93
|
|
|
|
|
94
|
|
|
/** |
|
95
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeInput input = 3;</code> |
|
96
|
|
|
* @param \Hyperledger\Fabric\Protos\Peer\ChaincodeInput $var |
|
97
|
|
|
* @return $this |
|
98
|
|
|
*/ |
|
99
|
|
|
public function setInput($var) |
|
100
|
|
|
{ |
|
101
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Peer\ChaincodeInput::class); |
|
102
|
|
|
$this->input = $var; |
|
103
|
|
|
|
|
104
|
|
|
return $this; |
|
105
|
|
|
} |
|
106
|
|
|
|
|
107
|
|
|
/** |
|
108
|
|
|
* Generated from protobuf field <code>int32 timeout = 4;</code> |
|
109
|
|
|
* @return int |
|
110
|
|
|
*/ |
|
111
|
|
|
public function getTimeout() |
|
112
|
|
|
{ |
|
113
|
|
|
return $this->timeout; |
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
/** |
|
117
|
|
|
* Generated from protobuf field <code>int32 timeout = 4;</code> |
|
118
|
|
|
* @param int $var |
|
119
|
|
|
* @return $this |
|
120
|
|
|
*/ |
|
121
|
|
|
public function setTimeout($var) |
|
122
|
|
|
{ |
|
123
|
|
|
GPBUtil::checkInt32($var); |
|
124
|
|
|
$this->timeout = $var; |
|
125
|
|
|
|
|
126
|
|
|
return $this; |
|
127
|
|
|
} |
|
128
|
|
|
|
|
129
|
|
|
} |
|
130
|
|
|
|
|
131
|
|
|
|