|
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
|
|
|
* ConnEstablish is the message used for the gossip handshake |
|
13
|
|
|
* Whenever a peer connects to another peer, it handshakes |
|
14
|
|
|
* with it by sending this message that proves its identity |
|
15
|
|
|
* |
|
16
|
|
|
* Generated from protobuf message <code>gossip.ConnEstablish</code> |
|
17
|
|
|
*/ |
|
18
|
|
|
class ConnEstablish extends \Google\Protobuf\Internal\Message |
|
19
|
|
|
{ |
|
20
|
|
|
/** |
|
21
|
|
|
* Generated from protobuf field <code>bytes pki_id = 1;</code> |
|
22
|
|
|
*/ |
|
23
|
|
|
private $pki_id = ''; |
|
24
|
|
|
/** |
|
25
|
|
|
* Generated from protobuf field <code>bytes identity = 2;</code> |
|
26
|
|
|
*/ |
|
27
|
|
|
private $identity = ''; |
|
28
|
|
|
/** |
|
29
|
|
|
* Generated from protobuf field <code>bytes tls_cert_hash = 3;</code> |
|
30
|
|
|
*/ |
|
31
|
|
|
private $tls_cert_hash = ''; |
|
32
|
|
|
|
|
33
|
|
|
public function __construct() { |
|
34
|
|
|
\GPBMetadata\Gossip\Message::initOnce(); |
|
35
|
|
|
parent::__construct(); |
|
36
|
|
|
} |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* Generated from protobuf field <code>bytes pki_id = 1;</code> |
|
40
|
|
|
* @return string |
|
41
|
|
|
*/ |
|
42
|
|
|
public function getPkiId() |
|
43
|
|
|
{ |
|
44
|
|
|
return $this->pki_id; |
|
45
|
|
|
} |
|
46
|
|
|
|
|
47
|
|
|
/** |
|
48
|
|
|
* Generated from protobuf field <code>bytes pki_id = 1;</code> |
|
49
|
|
|
* @param string $var |
|
50
|
|
|
* @return $this |
|
51
|
|
|
*/ |
|
52
|
|
|
public function setPkiId($var) |
|
53
|
|
|
{ |
|
54
|
|
|
GPBUtil::checkString($var, False); |
|
55
|
|
|
$this->pki_id = $var; |
|
56
|
|
|
|
|
57
|
|
|
return $this; |
|
58
|
|
|
} |
|
59
|
|
|
|
|
60
|
|
|
/** |
|
61
|
|
|
* Generated from protobuf field <code>bytes identity = 2;</code> |
|
62
|
|
|
* @return string |
|
63
|
|
|
*/ |
|
64
|
|
|
public function getIdentity() |
|
65
|
|
|
{ |
|
66
|
|
|
return $this->identity; |
|
67
|
|
|
} |
|
68
|
|
|
|
|
69
|
|
|
/** |
|
70
|
|
|
* Generated from protobuf field <code>bytes identity = 2;</code> |
|
71
|
|
|
* @param string $var |
|
72
|
|
|
* @return $this |
|
73
|
|
|
*/ |
|
74
|
|
|
public function setIdentity($var) |
|
75
|
|
|
{ |
|
76
|
|
|
GPBUtil::checkString($var, False); |
|
77
|
|
|
$this->identity = $var; |
|
78
|
|
|
|
|
79
|
|
|
return $this; |
|
80
|
|
|
} |
|
81
|
|
|
|
|
82
|
|
|
/** |
|
83
|
|
|
* Generated from protobuf field <code>bytes tls_cert_hash = 3;</code> |
|
84
|
|
|
* @return string |
|
85
|
|
|
*/ |
|
86
|
|
|
public function getTlsCertHash() |
|
87
|
|
|
{ |
|
88
|
|
|
return $this->tls_cert_hash; |
|
89
|
|
|
} |
|
90
|
|
|
|
|
91
|
|
|
/** |
|
92
|
|
|
* Generated from protobuf field <code>bytes tls_cert_hash = 3;</code> |
|
93
|
|
|
* @param string $var |
|
94
|
|
|
* @return $this |
|
95
|
|
|
*/ |
|
96
|
|
|
public function setTlsCertHash($var) |
|
97
|
|
|
{ |
|
98
|
|
|
GPBUtil::checkString($var, False); |
|
99
|
|
|
$this->tls_cert_hash = $var; |
|
100
|
|
|
|
|
101
|
|
|
return $this; |
|
102
|
|
|
} |
|
103
|
|
|
|
|
104
|
|
|
} |
|
105
|
|
|
|
|
106
|
|
|
|