forked from pydio/cells
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mailer.pb.go
358 lines (311 loc) · 12.1 KB
/
mailer.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: mailer.proto
/*
Package mailer is a generated protocol buffer package.
It is generated from these files:
mailer.proto
It has these top-level messages:
User
Mail
SendMailRequest
SendMailResponse
ConsumeQueueRequest
ConsumeQueueResponse
*/
package mailer
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 User struct {
Uuid string `protobuf:"bytes,1,opt,name=Uuid" json:"Uuid,omitempty"`
Address string `protobuf:"bytes,2,opt,name=Address" json:"Address,omitempty"`
Name string `protobuf:"bytes,3,opt,name=Name" json:"Name,omitempty"`
Language string `protobuf:"bytes,4,opt,name=Language" json:"Language,omitempty"`
}
func (m *User) Reset() { *m = User{} }
func (m *User) String() string { return proto.CompactTextString(m) }
func (*User) ProtoMessage() {}
func (*User) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *User) GetUuid() string {
if m != nil {
return m.Uuid
}
return ""
}
func (m *User) GetAddress() string {
if m != nil {
return m.Address
}
return ""
}
func (m *User) GetName() string {
if m != nil {
return m.Name
}
return ""
}
func (m *User) GetLanguage() string {
if m != nil {
return m.Language
}
return ""
}
type Mail struct {
// User object used to compute the From header
From *User `protobuf:"bytes,1,opt,name=From" json:"From,omitempty"`
// List of target users to send the mail to
To []*User `protobuf:"bytes,3,rep,name=To" json:"To,omitempty"`
// List of target users to put in CC
Cc []*User `protobuf:"bytes,4,rep,name=Cc" json:"Cc,omitempty"`
// Date of sending
DateSent int64 `protobuf:"varint,5,opt,name=DateSent" json:"DateSent,omitempty"`
// String used as subject for the email
Subject string `protobuf:"bytes,6,opt,name=Subject" json:"Subject,omitempty"`
// Plain-text content used for the body, if not set will be generated from the ContentHtml
ContentPlain string `protobuf:"bytes,7,opt,name=ContentPlain" json:"ContentPlain,omitempty"`
// HTML content used for the body
ContentHtml string `protobuf:"bytes,8,opt,name=ContentHtml" json:"ContentHtml,omitempty"`
// Markdown content used for the body
ContentMarkdown string `protobuf:"bytes,9,opt,name=ContentMarkdown" json:"ContentMarkdown,omitempty"`
// List of attachments
Attachments []string `protobuf:"bytes,10,rep,name=Attachments" json:"Attachments,omitempty"`
// Not used, could be used to create conversations
ThreadUuid string `protobuf:"bytes,11,opt,name=ThreadUuid" json:"ThreadUuid,omitempty"`
// Not used, could be used to create conversations
ThreadIndex string `protobuf:"bytes,12,opt,name=ThreadIndex" json:"ThreadIndex,omitempty"`
// Mail Template Id refers to predefined templates
TemplateId string `protobuf:"bytes,13,opt,name=TemplateId" json:"TemplateId,omitempty"`
// Key/values to pass to the template
TemplateData map[string]string `protobuf:"bytes,14,rep,name=TemplateData" json:"TemplateData,omitempty" protobuf_key:"bytes,1,opt,name=key" protobuf_val:"bytes,2,opt,name=value"`
// Number of retries after failed attempts (used internally)
Retries int32 `protobuf:"varint,15,opt,name=Retries" json:"Retries,omitempty"`
// Errors stacked on failed attempts
SendErrors []string `protobuf:"bytes,16,rep,name=sendErrors" json:"sendErrors,omitempty"`
// User object used to compute the Sender header
Sender *User `protobuf:"bytes,17,opt,name=Sender" json:"Sender,omitempty"`
}
func (m *Mail) Reset() { *m = Mail{} }
func (m *Mail) String() string { return proto.CompactTextString(m) }
func (*Mail) ProtoMessage() {}
func (*Mail) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *Mail) GetFrom() *User {
if m != nil {
return m.From
}
return nil
}
func (m *Mail) GetTo() []*User {
if m != nil {
return m.To
}
return nil
}
func (m *Mail) GetCc() []*User {
if m != nil {
return m.Cc
}
return nil
}
func (m *Mail) GetDateSent() int64 {
if m != nil {
return m.DateSent
}
return 0
}
func (m *Mail) GetSubject() string {
if m != nil {
return m.Subject
}
return ""
}
func (m *Mail) GetContentPlain() string {
if m != nil {
return m.ContentPlain
}
return ""
}
func (m *Mail) GetContentHtml() string {
if m != nil {
return m.ContentHtml
}
return ""
}
func (m *Mail) GetContentMarkdown() string {
if m != nil {
return m.ContentMarkdown
}
return ""
}
func (m *Mail) GetAttachments() []string {
if m != nil {
return m.Attachments
}
return nil
}
func (m *Mail) GetThreadUuid() string {
if m != nil {
return m.ThreadUuid
}
return ""
}
func (m *Mail) GetThreadIndex() string {
if m != nil {
return m.ThreadIndex
}
return ""
}
func (m *Mail) GetTemplateId() string {
if m != nil {
return m.TemplateId
}
return ""
}
func (m *Mail) GetTemplateData() map[string]string {
if m != nil {
return m.TemplateData
}
return nil
}
func (m *Mail) GetRetries() int32 {
if m != nil {
return m.Retries
}
return 0
}
func (m *Mail) GetSendErrors() []string {
if m != nil {
return m.SendErrors
}
return nil
}
func (m *Mail) GetSender() *User {
if m != nil {
return m.Sender
}
return nil
}
type SendMailRequest struct {
// Complete mail object to send
Mail *Mail `protobuf:"bytes,1,opt,name=Mail" json:"Mail,omitempty"`
// Whether to place in mails queue or to send right away
InQueue bool `protobuf:"varint,2,opt,name=InQueue" json:"InQueue,omitempty"`
}
func (m *SendMailRequest) Reset() { *m = SendMailRequest{} }
func (m *SendMailRequest) String() string { return proto.CompactTextString(m) }
func (*SendMailRequest) ProtoMessage() {}
func (*SendMailRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *SendMailRequest) GetMail() *Mail {
if m != nil {
return m.Mail
}
return nil
}
func (m *SendMailRequest) GetInQueue() bool {
if m != nil {
return m.InQueue
}
return false
}
type SendMailResponse struct {
Success bool `protobuf:"varint,1,opt,name=Success" json:"Success,omitempty"`
}
func (m *SendMailResponse) Reset() { *m = SendMailResponse{} }
func (m *SendMailResponse) String() string { return proto.CompactTextString(m) }
func (*SendMailResponse) ProtoMessage() {}
func (*SendMailResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func (m *SendMailResponse) GetSuccess() bool {
if m != nil {
return m.Success
}
return false
}
type ConsumeQueueRequest struct {
MaxEmails int64 `protobuf:"varint,1,opt,name=MaxEmails" json:"MaxEmails,omitempty"`
}
func (m *ConsumeQueueRequest) Reset() { *m = ConsumeQueueRequest{} }
func (m *ConsumeQueueRequest) String() string { return proto.CompactTextString(m) }
func (*ConsumeQueueRequest) ProtoMessage() {}
func (*ConsumeQueueRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{4} }
func (m *ConsumeQueueRequest) GetMaxEmails() int64 {
if m != nil {
return m.MaxEmails
}
return 0
}
type ConsumeQueueResponse struct {
Message string `protobuf:"bytes,1,opt,name=Message" json:"Message,omitempty"`
EmailsSent int64 `protobuf:"varint,2,opt,name=EmailsSent" json:"EmailsSent,omitempty"`
}
func (m *ConsumeQueueResponse) Reset() { *m = ConsumeQueueResponse{} }
func (m *ConsumeQueueResponse) String() string { return proto.CompactTextString(m) }
func (*ConsumeQueueResponse) ProtoMessage() {}
func (*ConsumeQueueResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{5} }
func (m *ConsumeQueueResponse) GetMessage() string {
if m != nil {
return m.Message
}
return ""
}
func (m *ConsumeQueueResponse) GetEmailsSent() int64 {
if m != nil {
return m.EmailsSent
}
return 0
}
func init() {
proto.RegisterType((*User)(nil), "mailer.User")
proto.RegisterType((*Mail)(nil), "mailer.Mail")
proto.RegisterType((*SendMailRequest)(nil), "mailer.SendMailRequest")
proto.RegisterType((*SendMailResponse)(nil), "mailer.SendMailResponse")
proto.RegisterType((*ConsumeQueueRequest)(nil), "mailer.ConsumeQueueRequest")
proto.RegisterType((*ConsumeQueueResponse)(nil), "mailer.ConsumeQueueResponse")
}
func init() { proto.RegisterFile("mailer.proto", fileDescriptor0) }
var fileDescriptor0 = []byte{
// 570 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x6c, 0x54, 0xcd, 0x4e, 0xdb, 0x40,
0x10, 0xae, 0x63, 0x13, 0xc2, 0x10, 0x4a, 0xd8, 0x22, 0x75, 0x95, 0x46, 0xc8, 0xb2, 0x7a, 0xc8,
0xa1, 0xca, 0x01, 0x2e, 0x55, 0x2f, 0x88, 0x86, 0x54, 0x8d, 0x5a, 0x57, 0xd4, 0x09, 0x0f, 0xb0,
0xd8, 0x23, 0x70, 0xb1, 0xd7, 0xe9, 0xee, 0x9a, 0xc2, 0xc3, 0xf4, 0x29, 0xfb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