1
|
|
|
<?php |
2
|
|
|
# Generated by the protocol buffer compiler. DO NOT EDIT! |
3
|
|
|
# source: orderer/ab.proto |
4
|
|
|
|
5
|
|
|
namespace Hyperledger\Fabric\Protos\Orderer; |
6
|
|
|
|
7
|
|
|
use Google\Protobuf\Internal\GPBType; |
8
|
|
|
use Google\Protobuf\Internal\RepeatedField; |
9
|
|
|
use Google\Protobuf\Internal\GPBUtil; |
10
|
|
|
|
11
|
|
|
/** |
12
|
|
|
* SeekInfo specifies the range of requested blocks to return |
13
|
|
|
* If the start position is not found, an error is immediately returned |
14
|
|
|
* Otherwise, blocks are returned until a missing block is encountered, then behavior is dictated |
15
|
|
|
* by the SeekBehavior specified. If BLOCK_UNTIL_READY is specified, the reply will block until |
16
|
|
|
* the requested blocks are available, if FAIL_IF_NOT_READY is specified, the reply will return an |
17
|
|
|
* error indicating that the block is not found. To request that all blocks be returned indefinitely |
18
|
|
|
* as they are created, behavior should be set to BLOCK_UNTIL_READY and the stop should be set to |
19
|
|
|
* specified with a number of MAX_UINT64 |
20
|
|
|
* |
21
|
|
|
* Generated from protobuf message <code>orderer.SeekInfo</code> |
22
|
|
|
*/ |
23
|
|
|
class SeekInfo extends \Google\Protobuf\Internal\Message |
24
|
|
|
{ |
25
|
|
|
/** |
26
|
|
|
* The position to start the deliver from |
27
|
|
|
* |
28
|
|
|
* Generated from protobuf field <code>.orderer.SeekPosition start = 1;</code> |
29
|
|
|
*/ |
30
|
|
|
private $start = null; |
31
|
|
|
/** |
32
|
|
|
* The position to stop the deliver |
33
|
|
|
* |
34
|
|
|
* Generated from protobuf field <code>.orderer.SeekPosition stop = 2;</code> |
35
|
|
|
*/ |
36
|
|
|
private $stop = null; |
37
|
|
|
/** |
38
|
|
|
* The behavior when a missing block is encountered |
39
|
|
|
* |
40
|
|
|
* Generated from protobuf field <code>.orderer.SeekInfo.SeekBehavior behavior = 3;</code> |
41
|
|
|
*/ |
42
|
|
|
private $behavior = 0; |
43
|
|
|
|
44
|
|
|
public function __construct() { |
45
|
|
|
\GPBMetadata\Orderer\Ab::initOnce(); |
46
|
|
|
parent::__construct(); |
47
|
|
|
} |
48
|
|
|
|
49
|
|
|
/** |
50
|
|
|
* The position to start the deliver from |
51
|
|
|
* |
52
|
|
|
* Generated from protobuf field <code>.orderer.SeekPosition start = 1;</code> |
53
|
|
|
* @return \Hyperledger\Fabric\Protos\Orderer\SeekPosition |
54
|
|
|
*/ |
55
|
|
|
public function getStart() |
56
|
|
|
{ |
57
|
|
|
return $this->start; |
58
|
|
|
} |
59
|
|
|
|
60
|
|
|
/** |
61
|
|
|
* The position to start the deliver from |
62
|
|
|
* |
63
|
|
|
* Generated from protobuf field <code>.orderer.SeekPosition start = 1;</code> |
64
|
|
|
* @param \Hyperledger\Fabric\Protos\Orderer\SeekPosition $var |
65
|
|
|
* @return $this |
66
|
|
|
*/ |
67
|
|
|
public function setStart($var) |
68
|
|
|
{ |
69
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Orderer\SeekPosition::class); |
70
|
|
|
$this->start = $var; |
71
|
|
|
|
72
|
|
|
return $this; |
73
|
|
|
} |
74
|
|
|
|
75
|
|
|
/** |
76
|
|
|
* The position to stop the deliver |
77
|
|
|
* |
78
|
|
|
* Generated from protobuf field <code>.orderer.SeekPosition stop = 2;</code> |
79
|
|
|
* @return \Hyperledger\Fabric\Protos\Orderer\SeekPosition |
80
|
|
|
*/ |
81
|
|
|
public function getStop() |
82
|
|
|
{ |
83
|
|
|
return $this->stop; |
84
|
|
|
} |
85
|
|
|
|
86
|
|
|
/** |
87
|
|
|
* The position to stop the deliver |
88
|
|
|
* |
89
|
|
|
* Generated from protobuf field <code>.orderer.SeekPosition stop = 2;</code> |
90
|
|
|
* @param \Hyperledger\Fabric\Protos\Orderer\SeekPosition $var |
91
|
|
|
* @return $this |
92
|
|
|
*/ |
93
|
|
|
public function setStop($var) |
94
|
|
|
{ |
95
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Orderer\SeekPosition::class); |
96
|
|
|
$this->stop = $var; |
97
|
|
|
|
98
|
|
|
return $this; |
99
|
|
|
} |
100
|
|
|
|
101
|
|
|
/** |
102
|
|
|
* The behavior when a missing block is encountered |
103
|
|
|
* |
104
|
|
|
* Generated from protobuf field <code>.orderer.SeekInfo.SeekBehavior behavior = 3;</code> |
105
|
|
|
* @return int |
106
|
|
|
*/ |
107
|
|
|
public function getBehavior() |
108
|
|
|
{ |
109
|
|
|
return $this->behavior; |
110
|
|
|
} |
111
|
|
|
|
112
|
|
|
/** |
113
|
|
|
* The behavior when a missing block is encountered |
114
|
|
|
* |
115
|
|
|
* Generated from protobuf field <code>.orderer.SeekInfo.SeekBehavior behavior = 3;</code> |
116
|
|
|
* @param int $var |
117
|
|
|
* @return $this |
118
|
|
|
*/ |
119
|
|
|
public function setBehavior($var) |
120
|
|
|
{ |
121
|
|
|
GPBUtil::checkEnum($var, \Hyperledger\Fabric\Protos\Orderer\SeekInfo_SeekBehavior::class); |
122
|
|
|
$this->behavior = $var; |
123
|
|
|
|
124
|
|
|
return $this; |
125
|
|
|
} |
126
|
|
|
|
127
|
|
|
} |
128
|
|
|
|
129
|
|
|
|