1
|
|
|
<?php |
2
|
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT! |
3
|
|
|
# source: common/configtx.proto |
4
|
|
|
|
5
|
|
|
namespace Hyperledger\Fabric\Protos\Common; |
6
|
|
|
|
7
|
|
|
use Google\Protobuf\Internal\GPBType; |
8
|
|
|
use Google\Protobuf\Internal\RepeatedField; |
9
|
|
|
use Google\Protobuf\Internal\GPBUtil; |
10
|
|
|
|
11
|
|
|
/** |
12
|
|
|
* Generated from protobuf message <code>common.ConfigPolicy</code> |
13
|
|
|
*/ |
14
|
|
|
class ConfigPolicy extends \Google\Protobuf\Internal\Message |
15
|
|
|
{ |
16
|
|
|
/** |
17
|
|
|
* Generated from protobuf field <code>uint64 version = 1;</code> |
18
|
|
|
*/ |
19
|
|
|
private $version = 0; |
20
|
|
|
/** |
21
|
|
|
* Generated from protobuf field <code>.common.Policy policy = 2;</code> |
22
|
|
|
*/ |
23
|
|
|
private $policy = null; |
24
|
|
|
/** |
25
|
|
|
* Generated from protobuf field <code>string mod_policy = 3;</code> |
26
|
|
|
*/ |
27
|
|
|
private $mod_policy = ''; |
28
|
|
|
|
29
|
|
|
public function __construct() { |
30
|
|
|
\GPBMetadata\Common\Configtx::initOnce(); |
31
|
|
|
parent::__construct(); |
32
|
|
|
} |
33
|
|
|
|
34
|
|
|
/** |
35
|
|
|
* Generated from protobuf field <code>uint64 version = 1;</code> |
36
|
|
|
* @return int|string |
37
|
|
|
*/ |
38
|
|
|
public function getVersion() |
39
|
|
|
{ |
40
|
|
|
return $this->version; |
41
|
|
|
} |
42
|
|
|
|
43
|
|
|
/** |
44
|
|
|
* Generated from protobuf field <code>uint64 version = 1;</code> |
45
|
|
|
* @param int|string $var |
46
|
|
|
* @return $this |
47
|
|
|
*/ |
48
|
|
|
public function setVersion($var) |
49
|
|
|
{ |
50
|
|
|
GPBUtil::checkUint64($var); |
51
|
|
|
$this->version = $var; |
52
|
|
|
|
53
|
|
|
return $this; |
54
|
|
|
} |
55
|
|
|
|
56
|
|
|
/** |
57
|
|
|
* Generated from protobuf field <code>.common.Policy policy = 2;</code> |
58
|
|
|
* @return \Hyperledger\Fabric\Protos\Common\Policy |
59
|
|
|
*/ |
60
|
|
|
public function getPolicy() |
61
|
|
|
{ |
62
|
|
|
return $this->policy; |
63
|
|
|
} |
64
|
|
|
|
65
|
|
|
/** |
66
|
|
|
* Generated from protobuf field <code>.common.Policy policy = 2;</code> |
67
|
|
|
* @param \Hyperledger\Fabric\Protos\Common\Policy $var |
68
|
|
|
* @return $this |
69
|
|
|
*/ |
70
|
|
|
public function setPolicy($var) |
71
|
|
|
{ |
72
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Common\Policy::class); |
73
|
|
|
$this->policy = $var; |
74
|
|
|
|
75
|
|
|
return $this; |
76
|
|
|
} |
77
|
|
|
|
78
|
|
|
/** |
79
|
|
|
* Generated from protobuf field <code>string mod_policy = 3;</code> |
80
|
|
|
* @return string |
81
|
|
|
*/ |
82
|
|
|
public function getModPolicy() |
83
|
|
|
{ |
84
|
|
|
return $this->mod_policy; |
85
|
|
|
} |
86
|
|
|
|
87
|
|
|
/** |
88
|
|
|
* Generated from protobuf field <code>string mod_policy = 3;</code> |
89
|
|
|
* @param string $var |
90
|
|
|
* @return $this |
91
|
|
|
*/ |
92
|
|
|
public function setModPolicy($var) |
93
|
|
|
{ |
94
|
|
|
GPBUtil::checkString($var, True); |
95
|
|
|
$this->mod_policy = $var; |
96
|
|
|
|
97
|
|
|
return $this; |
98
|
|
|
} |
99
|
|
|
|
100
|
|
|
} |
101
|
|
|
|
102
|
|
|
|