Passed
Pull Request — master (#3)
by Timothy
11:06 queued 05:35
created

RemoteStateRequest   A

Complexity

Total Complexity 5

Size/Duplication

Total Lines 58
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 58
rs 10
wmc 5
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
 * RemoteStateRequest is used to ask a set of blocks
13
 * from a remote peer
14
 *
15
 * Generated from protobuf message <code>gossip.RemoteStateRequest</code>
16
 */
17
class RemoteStateRequest extends \Google\Protobuf\Internal\Message
18
{
19
    /**
20
     * Generated from protobuf field <code>uint64 start_seq_num = 1;</code>
21
     */
22
    private $start_seq_num = 0;
23
    /**
24
     * Generated from protobuf field <code>uint64 end_seq_num = 2;</code>
25
     */
26
    private $end_seq_num = 0;
27
28
    public function __construct() {
29
        \GPBMetadata\Gossip\Message::initOnce();
30
        parent::__construct();
31
    }
32
33
    /**
34
     * Generated from protobuf field <code>uint64 start_seq_num = 1;</code>
35
     * @return int|string
36
     */
37
    public function getStartSeqNum()
38
    {
39
        return $this->start_seq_num;
40
    }
41
42
    /**
43
     * Generated from protobuf field <code>uint64 start_seq_num = 1;</code>
44
     * @param int|string $var
45
     * @return $this
46
     */
47
    public function setStartSeqNum($var)
48
    {
49
        GPBUtil::checkUint64($var);
50
        $this->start_seq_num = $var;
51
52
        return $this;
53
    }
54
55
    /**
56
     * Generated from protobuf field <code>uint64 end_seq_num = 2;</code>
57
     * @return int|string
58
     */
59
    public function getEndSeqNum()
60
    {
61
        return $this->end_seq_num;
62
    }
63
64
    /**
65
     * Generated from protobuf field <code>uint64 end_seq_num = 2;</code>
66
     * @param int|string $var
67
     * @return $this
68
     */
69
    public function setEndSeqNum($var)
70
    {
71
        GPBUtil::checkUint64($var);
72
        $this->end_seq_num = $var;
73
74
        return $this;
75
    }
76
77
}
78
79