-
Notifications
You must be signed in to change notification settings - Fork 246
/
command.pb.go
435 lines (380 loc) · 15.6 KB
/
command.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
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: command.proto
package protobuf
import (
fmt "fmt"
proto "github.com/golang/protobuf/proto"
math "math"
)
// 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 RequestAddressForTransaction struct {
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
Contract string `protobuf:"bytes,3,opt,name=contract,proto3" json:"contract,omitempty"`
ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RequestAddressForTransaction) Reset() { *m = RequestAddressForTransaction{} }
func (m *RequestAddressForTransaction) String() string { return proto.CompactTextString(m) }
func (*RequestAddressForTransaction) ProtoMessage() {}
func (*RequestAddressForTransaction) Descriptor() ([]byte, []int) {
return fileDescriptor_213c0bb044472049, []int{0}
}
func (m *RequestAddressForTransaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestAddressForTransaction.Unmarshal(m, b)
}
func (m *RequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestAddressForTransaction.Marshal(b, m, deterministic)
}
func (m *RequestAddressForTransaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestAddressForTransaction.Merge(m, src)
}
func (m *RequestAddressForTransaction) XXX_Size() int {
return xxx_messageInfo_RequestAddressForTransaction.Size(m)
}
func (m *RequestAddressForTransaction) XXX_DiscardUnknown() {
xxx_messageInfo_RequestAddressForTransaction.DiscardUnknown(m)
}
var xxx_messageInfo_RequestAddressForTransaction proto.InternalMessageInfo
func (m *RequestAddressForTransaction) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *RequestAddressForTransaction) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *RequestAddressForTransaction) GetContract() string {
if m != nil {
return m.Contract
}
return ""
}
func (m *RequestAddressForTransaction) GetChatId() string {
if m != nil {
return m.ChatId
}
return ""
}
type AcceptRequestAddressForTransaction struct {
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
Address string `protobuf:"bytes,3,opt,name=address,proto3" json:"address,omitempty"`
ChatId string `protobuf:"bytes,4,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *AcceptRequestAddressForTransaction) Reset() { *m = AcceptRequestAddressForTransaction{} }
func (m *AcceptRequestAddressForTransaction) String() string { return proto.CompactTextString(m) }
func (*AcceptRequestAddressForTransaction) ProtoMessage() {}
func (*AcceptRequestAddressForTransaction) Descriptor() ([]byte, []int) {
return fileDescriptor_213c0bb044472049, []int{1}
}
func (m *AcceptRequestAddressForTransaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_AcceptRequestAddressForTransaction.Unmarshal(m, b)
}
func (m *AcceptRequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_AcceptRequestAddressForTransaction.Marshal(b, m, deterministic)
}
func (m *AcceptRequestAddressForTransaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_AcceptRequestAddressForTransaction.Merge(m, src)
}
func (m *AcceptRequestAddressForTransaction) XXX_Size() int {
return xxx_messageInfo_AcceptRequestAddressForTransaction.Size(m)
}
func (m *AcceptRequestAddressForTransaction) XXX_DiscardUnknown() {
xxx_messageInfo_AcceptRequestAddressForTransaction.DiscardUnknown(m)
}
var xxx_messageInfo_AcceptRequestAddressForTransaction proto.InternalMessageInfo
func (m *AcceptRequestAddressForTransaction) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *AcceptRequestAddressForTransaction) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *AcceptRequestAddressForTransaction) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *AcceptRequestAddressForTransaction) GetChatId() string {
if m != nil {
return m.ChatId
}
return ""
}
type DeclineRequestAddressForTransaction struct {
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeclineRequestAddressForTransaction) Reset() { *m = DeclineRequestAddressForTransaction{} }
func (m *DeclineRequestAddressForTransaction) String() string { return proto.CompactTextString(m) }
func (*DeclineRequestAddressForTransaction) ProtoMessage() {}
func (*DeclineRequestAddressForTransaction) Descriptor() ([]byte, []int) {
return fileDescriptor_213c0bb044472049, []int{2}
}
func (m *DeclineRequestAddressForTransaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeclineRequestAddressForTransaction.Unmarshal(m, b)
}
func (m *DeclineRequestAddressForTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeclineRequestAddressForTransaction.Marshal(b, m, deterministic)
}
func (m *DeclineRequestAddressForTransaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeclineRequestAddressForTransaction.Merge(m, src)
}
func (m *DeclineRequestAddressForTransaction) XXX_Size() int {
return xxx_messageInfo_DeclineRequestAddressForTransaction.Size(m)
}
func (m *DeclineRequestAddressForTransaction) XXX_DiscardUnknown() {
xxx_messageInfo_DeclineRequestAddressForTransaction.DiscardUnknown(m)
}
var xxx_messageInfo_DeclineRequestAddressForTransaction proto.InternalMessageInfo
func (m *DeclineRequestAddressForTransaction) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *DeclineRequestAddressForTransaction) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *DeclineRequestAddressForTransaction) GetChatId() string {
if m != nil {
return m.ChatId
}
return ""
}
type DeclineRequestTransaction struct {
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
ChatId string `protobuf:"bytes,3,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *DeclineRequestTransaction) Reset() { *m = DeclineRequestTransaction{} }
func (m *DeclineRequestTransaction) String() string { return proto.CompactTextString(m) }
func (*DeclineRequestTransaction) ProtoMessage() {}
func (*DeclineRequestTransaction) Descriptor() ([]byte, []int) {
return fileDescriptor_213c0bb044472049, []int{3}
}
func (m *DeclineRequestTransaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_DeclineRequestTransaction.Unmarshal(m, b)
}
func (m *DeclineRequestTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_DeclineRequestTransaction.Marshal(b, m, deterministic)
}
func (m *DeclineRequestTransaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_DeclineRequestTransaction.Merge(m, src)
}
func (m *DeclineRequestTransaction) XXX_Size() int {
return xxx_messageInfo_DeclineRequestTransaction.Size(m)
}
func (m *DeclineRequestTransaction) XXX_DiscardUnknown() {
xxx_messageInfo_DeclineRequestTransaction.DiscardUnknown(m)
}
var xxx_messageInfo_DeclineRequestTransaction proto.InternalMessageInfo
func (m *DeclineRequestTransaction) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *DeclineRequestTransaction) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *DeclineRequestTransaction) GetChatId() string {
if m != nil {
return m.ChatId
}
return ""
}
type RequestTransaction struct {
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
Address string `protobuf:"bytes,2,opt,name=address,proto3" json:"address,omitempty"`
Value string `protobuf:"bytes,3,opt,name=value,proto3" json:"value,omitempty"`
Contract string `protobuf:"bytes,4,opt,name=contract,proto3" json:"contract,omitempty"`
ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *RequestTransaction) Reset() { *m = RequestTransaction{} }
func (m *RequestTransaction) String() string { return proto.CompactTextString(m) }
func (*RequestTransaction) ProtoMessage() {}
func (*RequestTransaction) Descriptor() ([]byte, []int) {
return fileDescriptor_213c0bb044472049, []int{4}
}
func (m *RequestTransaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_RequestTransaction.Unmarshal(m, b)
}
func (m *RequestTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_RequestTransaction.Marshal(b, m, deterministic)
}
func (m *RequestTransaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_RequestTransaction.Merge(m, src)
}
func (m *RequestTransaction) XXX_Size() int {
return xxx_messageInfo_RequestTransaction.Size(m)
}
func (m *RequestTransaction) XXX_DiscardUnknown() {
xxx_messageInfo_RequestTransaction.DiscardUnknown(m)
}
var xxx_messageInfo_RequestTransaction proto.InternalMessageInfo
func (m *RequestTransaction) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *RequestTransaction) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *RequestTransaction) GetValue() string {
if m != nil {
return m.Value
}
return ""
}
func (m *RequestTransaction) GetContract() string {
if m != nil {
return m.Contract
}
return ""
}
func (m *RequestTransaction) GetChatId() string {
if m != nil {
return m.ChatId
}
return ""
}
type SendTransaction struct {
Clock uint64 `protobuf:"varint,1,opt,name=clock,proto3" json:"clock,omitempty"`
Id string `protobuf:"bytes,2,opt,name=id,proto3" json:"id,omitempty"`
TransactionHash string `protobuf:"bytes,3,opt,name=transaction_hash,json=transactionHash,proto3" json:"transaction_hash,omitempty"`
Signature []byte `protobuf:"bytes,4,opt,name=signature,proto3" json:"signature,omitempty"`
ChatId string `protobuf:"bytes,5,opt,name=chat_id,json=chatId,proto3" json:"chat_id,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SendTransaction) Reset() { *m = SendTransaction{} }
func (m *SendTransaction) String() string { return proto.CompactTextString(m) }
func (*SendTransaction) ProtoMessage() {}
func (*SendTransaction) Descriptor() ([]byte, []int) {
return fileDescriptor_213c0bb044472049, []int{5}
}
func (m *SendTransaction) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SendTransaction.Unmarshal(m, b)
}
func (m *SendTransaction) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SendTransaction.Marshal(b, m, deterministic)
}
func (m *SendTransaction) XXX_Merge(src proto.Message) {
xxx_messageInfo_SendTransaction.Merge(m, src)
}
func (m *SendTransaction) XXX_Size() int {
return xxx_messageInfo_SendTransaction.Size(m)
}
func (m *SendTransaction) XXX_DiscardUnknown() {
xxx_messageInfo_SendTransaction.DiscardUnknown(m)
}
var xxx_messageInfo_SendTransaction proto.InternalMessageInfo
func (m *SendTransaction) GetClock() uint64 {
if m != nil {
return m.Clock
}
return 0
}
func (m *SendTransaction) GetId() string {
if m != nil {
return m.Id
}
return ""
}
func (m *SendTransaction) GetTransactionHash() string {
if m != nil {
return m.TransactionHash
}
return ""
}
func (m *SendTransaction) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func (m *SendTransaction) GetChatId() string {
if m != nil {
return m.ChatId
}
return ""
}
func init() {
proto.RegisterType((*RequestAddressForTransaction)(nil), "protobuf.RequestAddressForTransaction")
proto.RegisterType((*AcceptRequestAddressForTransaction)(nil), "protobuf.AcceptRequestAddressForTransaction")
proto.RegisterType((*DeclineRequestAddressForTransaction)(nil), "protobuf.DeclineRequestAddressForTransaction")
proto.RegisterType((*DeclineRequestTransaction)(nil), "protobuf.DeclineRequestTransaction")
proto.RegisterType((*RequestTransaction)(nil), "protobuf.RequestTransaction")
proto.RegisterType((*SendTransaction)(nil), "protobuf.SendTransaction")
}
func init() {
proto.RegisterFile("command.proto", fileDescriptor_213c0bb044472049)
}
var fileDescriptor_213c0bb044472049 = []byte{
// 301 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x92, 0x3d, 0x4f, 0xf3, 0x30,
0x10, 0xc7, 0x95, 0x97, 0xbe, 0xdd, 0xf3, 0x94, 0x22, 0x0b, 0x89, 0x80, 0x3a, 0x54, 0x61, 0x29,
0x4b, 0x19, 0x18, 0x99, 0x8a, 0x10, 0x82, 0x35, 0x30, 0x75, 0xa9, 0xdc, 0xb3, 0x21, 0x16, 0xa9,
0x5d, 0x6c, 0x87, 0x0d, 0xf1, 0x11, 0x98, 0xf9, 0xb6, 0xa8, 0x4e, 0xda, 0x26, 0x43, 0x24, 0x40,
0x9d, 0xec, 0xff, 0x9d, 0xee, 0xfe, 0x3f, 0xdf, 0x19, 0xfa, 0xa8, 0x96, 0x4b, 0x2a, 0xd9, 0x64,
0xa5, 0x95, 0x55, 0xa4, 0xeb, 0x8e, 0x45, 0xfe, 0x14, 0x7f, 0xc0, 0x30, 0xe1, 0xaf, 0x39, 0x37,
0x76, 0xca, 0x98, 0xe6, 0xc6, 0xdc, 0x2a, 0xfd, 0xa8, 0xa9, 0x34, 0x14, 0xad, 0x50, 0x92, 0x1c,
0x41, 0x0b, 0x33, 0x85, 0x2f, 0x91, 0x37, 0xf2, 0xc6, 0x61, 0x52, 0x88, 0x75, 0xf4, 0x8d, 0x66,
0x39, 0x8f, 0xfc,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