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
|
|
|
* Generated from protobuf message <code>orderer.SeekPosition</code> |
13
|
|
|
*/ |
14
|
|
|
class SeekPosition extends \Google\Protobuf\Internal\Message |
15
|
|
|
{ |
16
|
|
|
protected $Type; |
17
|
|
|
|
18
|
|
|
public function __construct() { |
19
|
|
|
\GPBMetadata\Orderer\Ab::initOnce(); |
20
|
|
|
parent::__construct(); |
21
|
|
|
} |
22
|
|
|
|
23
|
|
|
/** |
24
|
|
|
* Generated from protobuf field <code>.orderer.SeekNewest newest = 1;</code> |
25
|
|
|
* @return \Hyperledger\Fabric\Protos\Orderer\SeekNewest |
26
|
|
|
*/ |
27
|
|
|
public function getNewest() |
28
|
|
|
{ |
29
|
|
|
return $this->readOneof(1); |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
/** |
33
|
|
|
* Generated from protobuf field <code>.orderer.SeekNewest newest = 1;</code> |
34
|
|
|
* @param \Hyperledger\Fabric\Protos\Orderer\SeekNewest $var |
35
|
|
|
* @return $this |
36
|
|
|
*/ |
37
|
|
|
public function setNewest($var) |
38
|
|
|
{ |
39
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Orderer\SeekNewest::class); |
40
|
|
|
$this->writeOneof(1, $var); |
41
|
|
|
|
42
|
|
|
return $this; |
43
|
|
|
} |
44
|
|
|
|
45
|
|
|
/** |
46
|
|
|
* Generated from protobuf field <code>.orderer.SeekOldest oldest = 2;</code> |
47
|
|
|
* @return \Hyperledger\Fabric\Protos\Orderer\SeekOldest |
48
|
|
|
*/ |
49
|
|
|
public function getOldest() |
50
|
|
|
{ |
51
|
|
|
return $this->readOneof(2); |
52
|
|
|
} |
53
|
|
|
|
54
|
|
|
/** |
55
|
|
|
* Generated from protobuf field <code>.orderer.SeekOldest oldest = 2;</code> |
56
|
|
|
* @param \Hyperledger\Fabric\Protos\Orderer\SeekOldest $var |
57
|
|
|
* @return $this |
58
|
|
|
*/ |
59
|
|
|
public function setOldest($var) |
60
|
|
|
{ |
61
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Orderer\SeekOldest::class); |
62
|
|
|
$this->writeOneof(2, $var); |
63
|
|
|
|
64
|
|
|
return $this; |
65
|
|
|
} |
66
|
|
|
|
67
|
|
|
/** |
68
|
|
|
* Generated from protobuf field <code>.orderer.SeekSpecified specified = 3;</code> |
69
|
|
|
* @return \Hyperledger\Fabric\Protos\Orderer\SeekSpecified |
70
|
|
|
*/ |
71
|
|
|
public function getSpecified() |
72
|
|
|
{ |
73
|
|
|
return $this->readOneof(3); |
74
|
|
|
} |
75
|
|
|
|
76
|
|
|
/** |
77
|
|
|
* Generated from protobuf field <code>.orderer.SeekSpecified specified = 3;</code> |
78
|
|
|
* @param \Hyperledger\Fabric\Protos\Orderer\SeekSpecified $var |
79
|
|
|
* @return $this |
80
|
|
|
*/ |
81
|
|
|
public function setSpecified($var) |
82
|
|
|
{ |
83
|
|
|
GPBUtil::checkMessage($var, \Hyperledger\Fabric\Protos\Orderer\SeekSpecified::class); |
84
|
|
|
$this->writeOneof(3, $var); |
85
|
|
|
|
86
|
|
|
return $this; |
87
|
|
|
} |
88
|
|
|
|
89
|
|
|
/** |
90
|
|
|
* @return string |
91
|
|
|
*/ |
92
|
|
|
public function getType() |
93
|
|
|
{ |
94
|
|
|
return $this->whichOneof("Type"); |
95
|
|
|
} |
96
|
|
|
|
97
|
|
|
} |
98
|
|
|
|
99
|
|
|
|