forked from nknorg/nkn-sdk-go
/
payloads.pb.go
250 lines (220 loc) · 8.33 KB
/
payloads.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: payloads/payloads.proto
package payloads
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import 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.ProtoPackageIsVersion2 // please upgrade the proto package
type PayloadType int32
const (
PayloadType_BINARY PayloadType = 0
PayloadType_TEXT PayloadType = 1
PayloadType_ACK PayloadType = 2
PayloadType_SESSION PayloadType = 3
)
var PayloadType_name = map[int32]string{
0: "BINARY",
1: "TEXT",
2: "ACK",
3: "SESSION",
}
var PayloadType_value = map[string]int32{
"BINARY": 0,
"TEXT": 1,
"ACK": 2,
"SESSION": 3,
}
func (x PayloadType) String() string {
return proto.EnumName(PayloadType_name, int32(x))
}
func (PayloadType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_payloads_8ff53544ec82ba60, []int{0}
}
type Message struct {
Payload []byte `protobuf:"bytes,1,opt,name=payload,proto3" json:"payload,omitempty"`
Encrypted bool `protobuf:"varint,2,opt,name=encrypted,proto3" json:"encrypted,omitempty"`
Nonce []byte `protobuf:"bytes,3,opt,name=nonce,proto3" json:"nonce,omitempty"`
EncryptedKey []byte `protobuf:"bytes,4,opt,name=encrypted_key,json=encryptedKey,proto3" json:"encrypted_key,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) {
return fileDescriptor_payloads_8ff53544ec82ba60, []int{0}
}
func (m *Message) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Message.Unmarshal(m, b)
}
func (m *Message) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Message.Marshal(b, m, deterministic)
}
func (dst *Message) XXX_Merge(src proto.Message) {
xxx_messageInfo_Message.Merge(dst, src)
}
func (m *Message) XXX_Size() int {
return xxx_messageInfo_Message.Size(m)
}
func (m *Message) XXX_DiscardUnknown() {
xxx_messageInfo_Message.DiscardUnknown(m)
}
var xxx_messageInfo_Message proto.InternalMessageInfo
func (m *Message) GetPayload() []byte {
if m != nil {
return m.Payload
}
return nil
}
func (m *Message) GetEncrypted() bool {
if m != nil {
return m.Encrypted
}
return false
}
func (m *Message) GetNonce() []byte {
if m != nil {
return m.Nonce
}
return nil
}
func (m *Message) GetEncryptedKey() []byte {
if m != nil {
return m.EncryptedKey
}
return nil
}
type Payload struct {
Type PayloadType `protobuf:"varint,1,opt,name=type,proto3,enum=payloads.PayloadType" json:"type,omitempty"`
MessageId []byte `protobuf:"bytes,2,opt,name=message_id,json=messageId,proto3" json:"message_id,omitempty"`
Data []byte `protobuf:"bytes,3,opt,name=data,proto3" json:"data,omitempty"`
ReplyToId []byte `protobuf:"bytes,4,opt,name=reply_to_id,json=replyToId,proto3" json:"reply_to_id,omitempty"`
NoReply bool `protobuf:"varint,5,opt,name=no_reply,json=noReply,proto3" json:"no_reply,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Payload) Reset() { *m = Payload{} }
func (m *Payload) String() string { return proto.CompactTextString(m) }
func (*Payload) ProtoMessage() {}
func (*Payload) Descriptor() ([]byte, []int) {
return fileDescriptor_payloads_8ff53544ec82ba60, []int{1}
}
func (m *Payload) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Payload.Unmarshal(m, b)
}
func (m *Payload) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Payload.Marshal(b, m, deterministic)
}
func (dst *Payload) XXX_Merge(src proto.Message) {
xxx_messageInfo_Payload.Merge(dst, src)
}
func (m *Payload) XXX_Size() int {
return xxx_messageInfo_Payload.Size(m)
}
func (m *Payload) XXX_DiscardUnknown() {
xxx_messageInfo_Payload.DiscardUnknown(m)
}
var xxx_messageInfo_Payload proto.InternalMessageInfo
func (m *Payload) GetType() PayloadType {
if m != nil {
return m.Type
}
return PayloadType_BINARY
}
func (m *Payload) GetMessageId() []byte {
if m != nil {
return m.MessageId
}
return nil
}
func (m *Payload) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *Payload) GetReplyToId() []byte {
if m != nil {
return m.ReplyToId
}
return nil
}
func (m *Payload) GetNoReply() bool {
if m != nil {
return m.NoReply
}
return false
}
type TextData struct {
Text string `protobuf:"bytes,1,opt,name=text,proto3" json:"text,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *TextData) Reset() { *m = TextData{} }
func (m *TextData) String() string { return proto.CompactTextString(m) }
func (*TextData) ProtoMessage() {}
func (*TextData) Descriptor() ([]byte, []int) {
return fileDescriptor_payloads_8ff53544ec82ba60, []int{2}
}
func (m *TextData) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_TextData.Unmarshal(m, b)
}
func (m *TextData) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_TextData.Marshal(b, m, deterministic)
}
func (dst *TextData) XXX_Merge(src proto.Message) {
xxx_messageInfo_TextData.Merge(dst, src)
}
func (m *TextData) XXX_Size() int {
return xxx_messageInfo_TextData.Size(m)
}
func (m *TextData) XXX_DiscardUnknown() {
xxx_messageInfo_TextData.DiscardUnknown(m)
}
var xxx_messageInfo_TextData proto.InternalMessageInfo
func (m *TextData) GetText() string {
if m != nil {
return m.Text
}
return ""
}
func init() {
proto.RegisterType((*Message)(nil), "payloads.Message")
proto.RegisterType((*Payload)(nil), "payloads.Payload")
proto.RegisterType((*TextData)(nil), "payloads.TextData")
proto.RegisterEnum("payloads.PayloadType", PayloadType_name, PayloadType_value)
}
func init() { proto.RegisterFile("payloads/payloads.proto", fileDescriptor_payloads_8ff53544ec82ba60) }
var fileDescriptor_payloads_8ff53544ec82ba60 = []byte{
// 298 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x4c, 0x91, 0x4f, 0x4b, 0xc3, 0x40,
0x10, 0xc5, 0x4d, 0x9b, 0x76, 0x93, 0x69, 0x95, 0x30, 0x28, 0xae, 0xa0, 0xa5, 0xd4, 0x4b, 0xf5,
0x50, 0x41, 0x4f, 0x1e, 0xab, 0xf6, 0x10, 0x8a, 0x55, 0xb6, 0x39, 0xe8, 0x29, 0xc4, 0x66, 0x10,
0xb1, 0x66, 0x97, 0x64, 0x0f, 0x5d, 0xf0, 0xd3, 0xf8, 0x49, 0x25, 0x9b, 0x3f, 0x7a, 0x7b, 0xef,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