Passed
Pull Request — master (#3)
by Timothy
06:14
created

Interest   A

Complexity

Total Complexity 8

Size/Duplication

Total Lines 89
Duplicated Lines 0 %

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 89
rs 10
wmc 8
1
<?php
2
# Generated by the protocol buffer compiler.  DO NOT EDIT!
3
# source: peer/events.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
 * Generated from protobuf message <code>protos.Interest</code>
13
 */
14
class Interest extends \Google\Protobuf\Internal\Message
15
{
16
    /**
17
     * Generated from protobuf field <code>.protos.EventType event_type = 1;</code>
18
     */
19
    private $event_type = 0;
20
    /**
21
     * Generated from protobuf field <code>string chainID = 3;</code>
22
     */
23
    private $chainID = '';
24
    protected $RegInfo;
25
26
    public function __construct() {
27
        \GPBMetadata\Peer\Events::initOnce();
28
        parent::__construct();
29
    }
30
31
    /**
32
     * Generated from protobuf field <code>.protos.EventType event_type = 1;</code>
33
     * @return int
34
     */
35
    public function getEventType()
36
    {
37
        return $this->event_type;
38
    }
39
40
    /**
41
     * Generated from protobuf field <code>.protos.EventType event_type = 1;</code>
42
     * @param int $var
43
     * @return $this
44
     */
45
    public function setEventType($var)
46
    {
47
        GPBUtil::checkEnum($var, \Hyperledger\Fabric\Protos\Peer\EventType::class);
48
        $this->event_type = $var;
49
50
        return $this;
51
    }
52
53
    /**
54
     * Generated from protobuf field <code>.protos.ChaincodeReg chaincode_reg_info = 2;</code>
55
     * @return \Hyperledger\Fabric\Protos\Peer\ChaincodeReg
56
     */
57
    public function getChaincodeRegInfo()
58
    {
59
        return $this->readOneof(2);
60
    }
61
62
    /**
63
     * Generated from protobuf field <code>.protos.ChaincodeReg chaincode_reg_info = 2;</code>
64
     * @param \Hyperledger\Fabric\Protos\Peer\ChaincodeReg $var
65
     * @return $this
66
     */
67
    public function setChaincodeRegInfo($var)
68
    {
69
        GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Peer\ChaincodeReg::class);
70
        $this->writeOneof(2, $var);
71
72
        return $this;
73
    }
74
75
    /**
76
     * Generated from protobuf field <code>string chainID = 3;</code>
77
     * @return string
78
     */
79
    public function getChainID()
80
    {
81
        return $this->chainID;
82
    }
83
84
    /**
85
     * Generated from protobuf field <code>string chainID = 3;</code>
86
     * @param string $var
87
     * @return $this
88
     */
89
    public function setChainID($var)
90
    {
91
        GPBUtil::checkString($var, True);
92
        $this->chainID = $var;
93
94
        return $this;
95
    }
96
97
    /**
98
     * @return string
99
     */
100
    public function getRegInfo()
101
    {
102
        return $this->whichOneof("RegInfo");
103
    }
104
105
}
106
107