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

StateInfoPullRequest   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 44
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 44
rs 10
wmc 3
1
<?php
2
# Generated by the protocol buffer compiler.  DO NOT EDIT!
3
# source: gossip/message.proto
4
5
namespace Hyperledger\Fabric\Protos\Gossip;
6
7
use Google\Protobuf\Internal\GPBType;
8
use Google\Protobuf\Internal\RepeatedField;
9
use Google\Protobuf\Internal\GPBUtil;
10
11
/**
12
 * StateInfoPullRequest is used to fetch a StateInfoSnapshot
13
 * from a remote peer
14
 *
15
 * Generated from protobuf message <code>gossip.StateInfoPullRequest</code>
16
 */
17
class StateInfoPullRequest extends \Google\Protobuf\Internal\Message
18
{
19
    /**
20
     * channel_MAC is an authentication code that proves
21
     * that the peer that sent this message knows
22
     * the name of the channel.
23
     *
24
     * Generated from protobuf field <code>bytes channel_MAC = 1;</code>
25
     */
26
    private $channel_MAC = '';
27
28
    public function __construct() {
29
        \GPBMetadata\Gossip\Message::initOnce();
30
        parent::__construct();
31
    }
32
33
    /**
34
     * channel_MAC is an authentication code that proves
35
     * that the peer that sent this message knows
36
     * the name of the channel.
37
     *
38
     * Generated from protobuf field <code>bytes channel_MAC = 1;</code>
39
     * @return string
40
     */
41
    public function getChannelMAC()
42
    {
43
        return $this->channel_MAC;
44
    }
45
46
    /**
47
     * channel_MAC is an authentication code that proves
48
     * that the peer that sent this message knows
49
     * the name of the channel.
50
     *
51
     * Generated from protobuf field <code>bytes channel_MAC = 1;</code>
52
     * @param string $var
53
     * @return $this
54
     */
55
    public function setChannelMAC($var)
56
    {
57
        GPBUtil::checkString($var, False);
58
        $this->channel_MAC = $var;
59
60
        return $this;
61
    }
62
63
}
64
65