|
1
|
|
|
<?php |
|
2
|
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT! |
|
3
|
|
|
# source: peer/transaction.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
|
|
|
* ChaincodeActionPayload is the message to be used for the TransactionAction's |
|
13
|
|
|
* payload when the Header's type is set to CHAINCODE. It carries the |
|
14
|
|
|
* chaincodeProposalPayload and an endorsed action to apply to the ledger. |
|
15
|
|
|
* |
|
16
|
|
|
* Generated from protobuf message <code>protos.ChaincodeActionPayload</code> |
|
17
|
|
|
*/ |
|
18
|
|
|
class ChaincodeActionPayload extends \Google\Protobuf\Internal\Message |
|
19
|
|
|
{ |
|
20
|
|
|
/** |
|
21
|
|
|
* This field contains the bytes of the ChaincodeProposalPayload message from |
|
22
|
|
|
* the original invocation (essentially the arguments) after the application |
|
23
|
|
|
* of the visibility function. The main visibility modes are "full" (the |
|
24
|
|
|
* entire ChaincodeProposalPayload message is included here), "hash" (only |
|
25
|
|
|
* the hash of the ChaincodeProposalPayload message is included) or |
|
26
|
|
|
* "nothing". This field will be used to check the consistency of |
|
27
|
|
|
* ProposalResponsePayload.proposalHash. For the CHAINCODE type, |
|
28
|
|
|
* ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || |
|
29
|
|
|
* f(ChaincodeProposalPayload)) where f is the visibility function. |
|
30
|
|
|
* |
|
31
|
|
|
* Generated from protobuf field <code>bytes chaincode_proposal_payload = 1;</code> |
|
32
|
|
|
*/ |
|
33
|
|
|
private $chaincode_proposal_payload = ''; |
|
34
|
|
|
/** |
|
35
|
|
|
* The list of actions to apply to the ledger |
|
36
|
|
|
* |
|
37
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeEndorsedAction action = 2;</code> |
|
38
|
|
|
*/ |
|
39
|
|
|
private $action = null; |
|
40
|
|
|
|
|
41
|
|
|
public function __construct() { |
|
42
|
|
|
\GPBMetadata\Peer\Transaction::initOnce(); |
|
43
|
|
|
parent::__construct(); |
|
44
|
|
|
} |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* This field contains the bytes of the ChaincodeProposalPayload message from |
|
48
|
|
|
* the original invocation (essentially the arguments) after the application |
|
49
|
|
|
* of the visibility function. The main visibility modes are "full" (the |
|
50
|
|
|
* entire ChaincodeProposalPayload message is included here), "hash" (only |
|
51
|
|
|
* the hash of the ChaincodeProposalPayload message is included) or |
|
52
|
|
|
* "nothing". This field will be used to check the consistency of |
|
53
|
|
|
* ProposalResponsePayload.proposalHash. For the CHAINCODE type, |
|
54
|
|
|
* ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || |
|
55
|
|
|
* f(ChaincodeProposalPayload)) where f is the visibility function. |
|
56
|
|
|
* |
|
57
|
|
|
* Generated from protobuf field <code>bytes chaincode_proposal_payload = 1;</code> |
|
58
|
|
|
* @return string |
|
59
|
|
|
*/ |
|
60
|
|
|
public function getChaincodeProposalPayload() |
|
61
|
|
|
{ |
|
62
|
|
|
return $this->chaincode_proposal_payload; |
|
63
|
|
|
} |
|
64
|
|
|
|
|
65
|
|
|
/** |
|
66
|
|
|
* This field contains the bytes of the ChaincodeProposalPayload message from |
|
67
|
|
|
* the original invocation (essentially the arguments) after the application |
|
68
|
|
|
* of the visibility function. The main visibility modes are "full" (the |
|
69
|
|
|
* entire ChaincodeProposalPayload message is included here), "hash" (only |
|
70
|
|
|
* the hash of the ChaincodeProposalPayload message is included) or |
|
71
|
|
|
* "nothing". This field will be used to check the consistency of |
|
72
|
|
|
* ProposalResponsePayload.proposalHash. For the CHAINCODE type, |
|
73
|
|
|
* ProposalResponsePayload.proposalHash is supposed to be H(ProposalHeader || |
|
74
|
|
|
* f(ChaincodeProposalPayload)) where f is the visibility function. |
|
75
|
|
|
* |
|
76
|
|
|
* Generated from protobuf field <code>bytes chaincode_proposal_payload = 1;</code> |
|
77
|
|
|
* @param string $var |
|
78
|
|
|
* @return $this |
|
79
|
|
|
*/ |
|
80
|
|
|
public function setChaincodeProposalPayload($var) |
|
81
|
|
|
{ |
|
82
|
|
|
GPBUtil::checkString($var, False); |
|
83
|
|
|
$this->chaincode_proposal_payload = $var; |
|
84
|
|
|
|
|
85
|
|
|
return $this; |
|
86
|
|
|
} |
|
87
|
|
|
|
|
88
|
|
|
/** |
|
89
|
|
|
* The list of actions to apply to the ledger |
|
90
|
|
|
* |
|
91
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeEndorsedAction action = 2;</code> |
|
92
|
|
|
* @return \Hyperledger\Fabric\Protos\Peer\ChaincodeEndorsedAction |
|
93
|
|
|
*/ |
|
94
|
|
|
public function getAction() |
|
95
|
|
|
{ |
|
96
|
|
|
return $this->action; |
|
97
|
|
|
} |
|
98
|
|
|
|
|
99
|
|
|
/** |
|
100
|
|
|
* The list of actions to apply to the ledger |
|
101
|
|
|
* |
|
102
|
|
|
* Generated from protobuf field <code>.protos.ChaincodeEndorsedAction action = 2;</code> |
|
103
|
|
|
* @param \Hyperledger\Fabric\Protos\Peer\ChaincodeEndorsedAction $var |
|
104
|
|
|
* @return $this |
|
105
|
|
|
*/ |
|
106
|
|
|
public function setAction($var) |
|
107
|
|
|
{ |
|
108
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Peer\ChaincodeEndorsedAction::class); |
|
109
|
|
|
$this->action = $var; |
|
110
|
|
|
|
|
111
|
|
|
return $this; |
|
112
|
|
|
} |
|
113
|
|
|
|
|
114
|
|
|
} |
|
115
|
|
|
|
|
116
|
|
|
|