-
Notifications
You must be signed in to change notification settings - Fork 0
/
bluzelle.pb.go
260 lines (215 loc) · 8.24 KB
/
bluzelle.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: bluzelle.proto
package pb
import (
fmt "fmt"
math "math"
proto "github.com/golang/protobuf/proto"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package
type BznEnvelope struct {
Sender string `protobuf:"bytes,1,opt,name=sender,proto3" json:"sender,omitempty"`
Signature []byte `protobuf:"bytes,2,opt,name=signature,proto3" json:"signature,omitempty"`
Timestamp uint64 `protobuf:"varint,3,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
// Types that are valid to be assigned to Payload:
// *BznEnvelope_DatabaseMsg
// *BznEnvelope_PbftInternalRequest
// *BznEnvelope_DatabaseResponse
// *BznEnvelope_Json
// *BznEnvelope_Audit
// *BznEnvelope_Pbft
// *BznEnvelope_PbftMembership
// *BznEnvelope_StatusRequest
// *BznEnvelope_StatusResponse
Payload isBznEnvelope_Payload `protobuf_oneof:"payload"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *BznEnvelope) Reset() { *m = BznEnvelope{} }
func (m *BznEnvelope) String() string { return proto.CompactTextString(m) }
func (*BznEnvelope) ProtoMessage() {}
func (*BznEnvelope) Descriptor() ([]byte, []int) {
return fileDescriptor_37e4e006cca7cf40, []int{0}
}
func (m *BznEnvelope) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_BznEnvelope.Unmarshal(m, b)
}
func (m *BznEnvelope) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_BznEnvelope.Marshal(b, m, deterministic)
}
func (m *BznEnvelope) XXX_Merge(src proto.Message) {
xxx_messageInfo_BznEnvelope.Merge(m, src)
}
func (m *BznEnvelope) XXX_Size() int {
return xxx_messageInfo_BznEnvelope.Size(m)
}
func (m *BznEnvelope) XXX_DiscardUnknown() {
xxx_messageInfo_BznEnvelope.DiscardUnknown(m)
}
var xxx_messageInfo_BznEnvelope proto.InternalMessageInfo
func (m *BznEnvelope) GetSender() string {
if m != nil {
return m.Sender
}
return ""
}
func (m *BznEnvelope) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *BznEnvelope) GetTimestamp() uint64 {
if m != nil {
return m.Timestamp
}
return 0
}
type isBznEnvelope_Payload interface {
isBznEnvelope_Payload()
}
type BznEnvelope_DatabaseMsg struct {
DatabaseMsg []byte `protobuf:"bytes,10,opt,name=database_msg,json=databaseMsg,proto3,oneof"`
}
type BznEnvelope_PbftInternalRequest struct {
PbftInternalRequest []byte `protobuf:"bytes,11,opt,name=pbft_internal_request,json=pbftInternalRequest,proto3,oneof"`
}
type BznEnvelope_DatabaseResponse struct {
DatabaseResponse []byte `protobuf:"bytes,12,opt,name=database_response,json=databaseResponse,proto3,oneof"`
}
type BznEnvelope_Json struct {
Json []byte `protobuf:"bytes,13,opt,name=json,proto3,oneof"`
}
type BznEnvelope_Audit struct {
Audit []byte `protobuf:"bytes,14,opt,name=audit,proto3,oneof"`
}
type BznEnvelope_Pbft struct {
Pbft []byte `protobuf:"bytes,15,opt,name=pbft,proto3,oneof"`
}
type BznEnvelope_PbftMembership struct {
PbftMembership []byte `protobuf:"bytes,16,opt,name=pbft_membership,json=pbftMembership,proto3,oneof"`
}
type BznEnvelope_StatusRequest struct {
StatusRequest []byte `protobuf:"bytes,17,opt,name=status_request,json=statusRequest,proto3,oneof"`
}
type BznEnvelope_StatusResponse struct {
StatusResponse []byte `protobuf:"bytes,18,opt,name=status_response,json=statusResponse,proto3,oneof"`
}
func (*BznEnvelope_DatabaseMsg) isBznEnvelope_Payload() {}
func (*BznEnvelope_PbftInternalRequest) isBznEnvelope_Payload() {}
func (*BznEnvelope_DatabaseResponse) isBznEnvelope_Payload() {}
func (*BznEnvelope_Json) isBznEnvelope_Payload() {}
func (*BznEnvelope_Audit) isBznEnvelope_Payload() {}
func (*BznEnvelope_Pbft) isBznEnvelope_Payload() {}
func (*BznEnvelope_PbftMembership) isBznEnvelope_Payload() {}
func (*BznEnvelope_StatusRequest) isBznEnvelope_Payload() {}
func (*BznEnvelope_StatusResponse) isBznEnvelope_Payload() {}
func (m *BznEnvelope) GetPayload() isBznEnvelope_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (m *BznEnvelope) GetDatabaseMsg() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_DatabaseMsg); ok {
return x.DatabaseMsg
}
return nil
}
func (m *BznEnvelope) GetPbftInternalRequest() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_PbftInternalRequest); ok {
return x.PbftInternalRequest
}
return nil
}
func (m *BznEnvelope) GetDatabaseResponse() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_DatabaseResponse); ok {
return x.DatabaseResponse
}
return nil
}
func (m *BznEnvelope) GetJson() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_Json); ok {
return x.Json
}
return nil
}
func (m *BznEnvelope) GetAudit() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_Audit); ok {
return x.Audit
}
return nil
}
func (m *BznEnvelope) GetPbft() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_Pbft); ok {
return x.Pbft
}
return nil
}
func (m *BznEnvelope) GetPbftMembership() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_PbftMembership); ok {
return x.PbftMembership
}
return nil
}
func (m *BznEnvelope) GetStatusRequest() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_StatusRequest); ok {
return x.StatusRequest
}
return nil
}
func (m *BznEnvelope) GetStatusResponse() []byte {
if x, ok := m.GetPayload().(*BznEnvelope_StatusResponse); ok {
return x.StatusResponse
}
return nil
}
// XXX_OneofWrappers is for the internal use of the proto package.
func (*BznEnvelope) XXX_OneofWrappers() []interface{} {
return []interface{}{
(*BznEnvelope_DatabaseMsg)(nil),
(*BznEnvelope_PbftInternalRequest)(nil),
(*BznEnvelope_DatabaseResponse)(nil),
(*BznEnvelope_Json)(nil),
(*BznEnvelope_Audit)(nil),
(*BznEnvelope_Pbft)(nil),
(*BznEnvelope_PbftMembership)(nil),
(*BznEnvelope_StatusRequest)(nil),
(*BznEnvelope_StatusResponse)(nil),
}
}
func init() {
proto.RegisterType((*BznEnvelope)(nil), "pb.bzn_envelope")
}
func init() { proto.RegisterFile("bluzelle.proto", fileDescriptor_37e4e006cca7cf40) }
var fileDescriptor_37e4e006cca7cf40 = []byte{
// 299 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x91, 0x41, 0x4e, 0xeb, 0x30,
0x10, 0x86, 0x5f, 0xda, 0xbe, 0xa2, 0x4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