forked from OpenBazaar/openbazaar-go
/
message.pb.go
282 lines (250 loc) · 10.2 KB
/
message.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
// Code generated by protoc-gen-go.
// source: message.proto
// DO NOT EDIT!
package pb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf1 "github.com/golang/protobuf/ptypes/any"
import google_protobuf "github.com/golang/protobuf/ptypes/timestamp"
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
type Message_MessageType int32
const (
Message_PING Message_MessageType = 0
Message_CHAT Message_MessageType = 1
Message_FOLLOW Message_MessageType = 2
Message_UNFOLLOW Message_MessageType = 3
Message_ORDER Message_MessageType = 4
Message_ORDER_REJECT Message_MessageType = 5
Message_ORDER_CANCEL Message_MessageType = 6
Message_ORDER_CONFIRMATION Message_MessageType = 7
Message_ORDER_FULFILLMENT Message_MessageType = 8
Message_ORDER_COMPLETION Message_MessageType = 9
Message_DISPUTE_OPEN Message_MessageType = 10
Message_DISPUTE_UPDATE Message_MessageType = 11
Message_DISPUTE_CLOSE Message_MessageType = 12
Message_REFUND Message_MessageType = 13
Message_OFFLINE_ACK Message_MessageType = 14
Message_OFFLINE_RELAY Message_MessageType = 15
Message_MODERATOR_ADD Message_MessageType = 16
Message_MODERATOR_REMOVE Message_MessageType = 17
Message_ERROR Message_MessageType = 500
)
var Message_MessageType_name = map[int32]string{
0: "PING",
1: "CHAT",
2: "FOLLOW",
3: "UNFOLLOW",
4: "ORDER",
5: "ORDER_REJECT",
6: "ORDER_CANCEL",
7: "ORDER_CONFIRMATION",
8: "ORDER_FULFILLMENT",
9: "ORDER_COMPLETION",
10: "DISPUTE_OPEN",
11: "DISPUTE_UPDATE",
12: "DISPUTE_CLOSE",
13: "REFUND",
14: "OFFLINE_ACK",
15: "OFFLINE_RELAY",
16: "MODERATOR_ADD",
17: "MODERATOR_REMOVE",
500: "ERROR",
}
var Message_MessageType_value = map[string]int32{
"PING": 0,
"CHAT": 1,
"FOLLOW": 2,
"UNFOLLOW": 3,
"ORDER": 4,
"ORDER_REJECT": 5,
"ORDER_CANCEL": 6,
"ORDER_CONFIRMATION": 7,
"ORDER_FULFILLMENT": 8,
"ORDER_COMPLETION": 9,
"DISPUTE_OPEN": 10,
"DISPUTE_UPDATE": 11,
"DISPUTE_CLOSE": 12,
"REFUND": 13,
"OFFLINE_ACK": 14,
"OFFLINE_RELAY": 15,
"MODERATOR_ADD": 16,
"MODERATOR_REMOVE": 17,
"ERROR": 500,
}
func (x Message_MessageType) String() string {
return proto.EnumName(Message_MessageType_name, int32(x))
}
func (Message_MessageType) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{0, 0} }
type Chat_Flag int32
const (
Chat_MESSAGE Chat_Flag = 0
Chat_TYPING Chat_Flag = 1
Chat_READ Chat_Flag = 2
)
var Chat_Flag_name = map[int32]string{
0: "MESSAGE",
1: "TYPING",
2: "READ",
}
var Chat_Flag_value = map[string]int32{
"MESSAGE": 0,
"TYPING": 1,
"READ": 2,
}
func (x Chat_Flag) String() string {
return proto.EnumName(Chat_Flag_name, int32(x))
}
func (Chat_Flag) EnumDescriptor() ([]byte, []int) { return fileDescriptor3, []int{2, 0} }
type Message struct {
MessageType Message_MessageType `protobuf:"varint,1,opt,name=messageType,enum=Message_MessageType" json:"messageType,omitempty"`
Payload *google_protobuf1.Any `protobuf:"bytes,2,opt,name=payload" json:"payload,omitempty"`
RequestId int32 `protobuf:"varint,3,opt,name=requestId" json:"requestId,omitempty"`
IsResponse bool `protobuf:"varint,4,opt,name=isResponse" json:"isResponse,omitempty"`
}
func (m *Message) Reset() { *m = Message{} }
func (m *Message) String() string { return proto.CompactTextString(m) }
func (*Message) ProtoMessage() {}
func (*Message) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{0} }
func (m *Message) GetMessageType() Message_MessageType {
if m != nil {
return m.MessageType
}
return Message_PING
}
func (m *Message) GetPayload() *google_protobuf1.Any {
if m != nil {
return m.Payload
}
return nil
}
func (m *Message) GetRequestId() int32 {
if m != nil {
return m.RequestId
}
return 0
}
func (m *Message) GetIsResponse() bool {
if m != nil {
return m.IsResponse
}
return false
}
type Envelope struct {
Message *Message `protobuf:"bytes,1,opt,name=message" json:"message,omitempty"`
Pubkey []byte `protobuf:"bytes,2,opt,name=pubkey,proto3" json:"pubkey,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
}
func (m *Envelope) Reset() { *m = Envelope{} }
func (m *Envelope) String() string { return proto.CompactTextString(m) }
func (*Envelope) ProtoMessage() {}
func (*Envelope) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{1} }
func (m *Envelope) GetMessage() *Message {
if m != nil {
return m.Message
}
return nil
}
func (m *Envelope) GetPubkey() []byte {
if m != nil {
return m.Pubkey
}
return nil
}
func (m *Envelope) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
type Chat struct {
MessageId string `protobuf:"bytes,1,opt,name=messageId" json:"messageId,omitempty"`
Subject string `protobuf:"bytes,2,opt,name=subject" json:"subject,omitempty"`
Message string `protobuf:"bytes,3,opt,name=message" json:"message,omitempty"`
Timestamp *google_protobuf.Timestamp `protobuf:"bytes,4,opt,name=timestamp" json:"timestamp,omitempty"`
Flag Chat_Flag `protobuf:"varint,5,opt,name=flag,enum=Chat_Flag" json:"flag,omitempty"`
}
func (m *Chat) Reset() { *m = Chat{} }
func (m *Chat) String() string { return proto.CompactTextString(m) }
func (*Chat) ProtoMessage() {}
func (*Chat) Descriptor() ([]byte, []int) { return fileDescriptor3, []int{2} }
func (m *Chat) GetMessageId() string {
if m != nil {
return m.MessageId
}
return ""
}
func (m *Chat) GetSubject() string {
if m != nil {
return m.Subject
}
return ""
}
func (m *Chat) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *Chat) GetTimestamp() *google_protobuf.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
func (m *Chat) GetFlag() Chat_Flag {
if m != nil {
return m.Flag
}
return Chat_MESSAGE
}
func init() {
proto.RegisterType((*Message)(nil), "Message")
proto.RegisterType((*Envelope)(nil), "Envelope")
proto.RegisterType((*Chat)(nil), "Chat")
proto.RegisterEnum("Message_MessageType", Message_MessageType_name, Message_MessageType_value)
proto.RegisterEnum("Chat_Flag", Chat_Flag_name, Chat_Flag_value)
}
func init() { proto.RegisterFile("message.proto", fileDescriptor3) }
var fileDescriptor3 = []byte{
// 573 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x64, 0x92, 0x4f, 0x6f, 0xd3, 0x4c,
0x10, 0xc6, 0xeb, 0xc4, 0xf9, 0x37, 0x4e, 0xdb, 0xed, 0xaa, 0x6f, 0x95, 0xb7, 0x42, 0x25, 0xca,
0x29, 0x5c, 0x5c, 0x29, 0x48, 0x88, 0xab, 0xb1, 0xd7, 0xc5, 0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