• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1// Code generated by protoc-gen-go.
2// source: google.golang.org/appengine/internal/mail/mail_service.proto
3// DO NOT EDIT!
4
5/*
6Package mail is a generated protocol buffer package.
7
8It is generated from these files:
9	google.golang.org/appengine/internal/mail/mail_service.proto
10
11It has these top-level messages:
12	MailServiceError
13	MailAttachment
14	MailHeader
15	MailMessage
16*/
17package mail
18
19import proto "github.com/golang/protobuf/proto"
20import fmt "fmt"
21import math "math"
22
23// Reference imports to suppress errors if they are not otherwise used.
24var _ = proto.Marshal
25var _ = fmt.Errorf
26var _ = math.Inf
27
28type MailServiceError_ErrorCode int32
29
30const (
31	MailServiceError_OK                      MailServiceError_ErrorCode = 0
32	MailServiceError_INTERNAL_ERROR          MailServiceError_ErrorCode = 1
33	MailServiceError_BAD_REQUEST             MailServiceError_ErrorCode = 2
34	MailServiceError_UNAUTHORIZED_SENDER     MailServiceError_ErrorCode = 3
35	MailServiceError_INVALID_ATTACHMENT_TYPE MailServiceError_ErrorCode = 4
36	MailServiceError_INVALID_HEADER_NAME     MailServiceError_ErrorCode = 5
37	MailServiceError_INVALID_CONTENT_ID      MailServiceError_ErrorCode = 6
38)
39
40var MailServiceError_ErrorCode_name = map[int32]string{
41	0: "OK",
42	1: "INTERNAL_ERROR",
43	2: "BAD_REQUEST",
44	3: "UNAUTHORIZED_SENDER",
45	4: "INVALID_ATTACHMENT_TYPE",
46	5: "INVALID_HEADER_NAME",
47	6: "INVALID_CONTENT_ID",
48}
49var MailServiceError_ErrorCode_value = map[string]int32{
50	"OK":                      0,
51	"INTERNAL_ERROR":          1,
52	"BAD_REQUEST":             2,
53	"UNAUTHORIZED_SENDER":     3,
54	"INVALID_ATTACHMENT_TYPE": 4,
55	"INVALID_HEADER_NAME":     5,
56	"INVALID_CONTENT_ID":      6,
57}
58
59func (x MailServiceError_ErrorCode) Enum() *MailServiceError_ErrorCode {
60	p := new(MailServiceError_ErrorCode)
61	*p = x
62	return p
63}
64func (x MailServiceError_ErrorCode) String() string {
65	return proto.EnumName(MailServiceError_ErrorCode_name, int32(x))
66}
67func (x *MailServiceError_ErrorCode) UnmarshalJSON(data []byte) error {
68	value, err := proto.UnmarshalJSONEnum(MailServiceError_ErrorCode_value, data, "MailServiceError_ErrorCode")
69	if err != nil {
70		return err
71	}
72	*x = MailServiceError_ErrorCode(value)
73	return nil
74}
75
76type MailServiceError struct {
77	XXX_unrecognized []byte `json:"-"`
78}
79
80func (m *MailServiceError) Reset()         { *m = MailServiceError{} }
81func (m *MailServiceError) String() string { return proto.CompactTextString(m) }
82func (*MailServiceError) ProtoMessage()    {}
83
84type MailAttachment struct {
85	FileName         *string `protobuf:"bytes,1,req,name=FileName" json:"FileName,omitempty"`
86	Data             []byte  `protobuf:"bytes,2,req,name=Data" json:"Data,omitempty"`
87	ContentID        *string `protobuf:"bytes,3,opt,name=ContentID" json:"ContentID,omitempty"`
88	XXX_unrecognized []byte  `json:"-"`
89}
90
91func (m *MailAttachment) Reset()         { *m = MailAttachment{} }
92func (m *MailAttachment) String() string { return proto.CompactTextString(m) }
93func (*MailAttachment) ProtoMessage()    {}
94
95func (m *MailAttachment) GetFileName() string {
96	if m != nil && m.FileName != nil {
97		return *m.FileName
98	}
99	return ""
100}
101
102func (m *MailAttachment) GetData() []byte {
103	if m != nil {
104		return m.Data
105	}
106	return nil
107}
108
109func (m *MailAttachment) GetContentID() string {
110	if m != nil && m.ContentID != nil {
111		return *m.ContentID
112	}
113	return ""
114}
115
116type MailHeader struct {
117	Name             *string `protobuf:"bytes,1,req,name=name" json:"name,omitempty"`
118	Value            *string `protobuf:"bytes,2,req,name=value" json:"value,omitempty"`
119	XXX_unrecognized []byte  `json:"-"`
120}
121
122func (m *MailHeader) Reset()         { *m = MailHeader{} }
123func (m *MailHeader) String() string { return proto.CompactTextString(m) }
124func (*MailHeader) ProtoMessage()    {}
125
126func (m *MailHeader) GetName() string {
127	if m != nil && m.Name != nil {
128		return *m.Name
129	}
130	return ""
131}
132
133func (m *MailHeader) GetValue() string {
134	if m != nil && m.Value != nil {
135		return *m.Value
136	}
137	return ""
138}
139
140type MailMessage struct {
141	Sender           *string           `protobuf:"bytes,1,req,name=Sender" json:"Sender,omitempty"`
142	ReplyTo          *string           `protobuf:"bytes,2,opt,name=ReplyTo" json:"ReplyTo,omitempty"`
143	To               []string          `protobuf:"bytes,3,rep,name=To" json:"To,omitempty"`
144	Cc               []string          `protobuf:"bytes,4,rep,name=Cc" json:"Cc,omitempty"`
145	Bcc              []string          `protobuf:"bytes,5,rep,name=Bcc" json:"Bcc,omitempty"`
146	Subject          *string           `protobuf:"bytes,6,req,name=Subject" json:"Subject,omitempty"`
147	TextBody         *string           `protobuf:"bytes,7,opt,name=TextBody" json:"TextBody,omitempty"`
148	HtmlBody         *string           `protobuf:"bytes,8,opt,name=HtmlBody" json:"HtmlBody,omitempty"`
149	Attachment       []*MailAttachment `protobuf:"bytes,9,rep,name=Attachment" json:"Attachment,omitempty"`
150	Header           []*MailHeader     `protobuf:"bytes,10,rep,name=Header" json:"Header,omitempty"`
151	XXX_unrecognized []byte            `json:"-"`
152}
153
154func (m *MailMessage) Reset()         { *m = MailMessage{} }
155func (m *MailMessage) String() string { return proto.CompactTextString(m) }
156func (*MailMessage) ProtoMessage()    {}
157
158func (m *MailMessage) GetSender() string {
159	if m != nil && m.Sender != nil {
160		return *m.Sender
161	}
162	return ""
163}
164
165func (m *MailMessage) GetReplyTo() string {
166	if m != nil && m.ReplyTo != nil {
167		return *m.ReplyTo
168	}
169	return ""
170}
171
172func (m *MailMessage) GetTo() []string {
173	if m != nil {
174		return m.To
175	}
176	return nil
177}
178
179func (m *MailMessage) GetCc() []string {
180	if m != nil {
181		return m.Cc
182	}
183	return nil
184}
185
186func (m *MailMessage) GetBcc() []string {
187	if m != nil {
188		return m.Bcc
189	}
190	return nil
191}
192
193func (m *MailMessage) GetSubject() string {
194	if m != nil && m.Subject != nil {
195		return *m.Subject
196	}
197	return ""
198}
199
200func (m *MailMessage) GetTextBody() string {
201	if m != nil && m.TextBody != nil {
202		return *m.TextBody
203	}
204	return ""
205}
206
207func (m *MailMessage) GetHtmlBody() string {
208	if m != nil && m.HtmlBody != nil {
209		return *m.HtmlBody
210	}
211	return ""
212}
213
214func (m *MailMessage) GetAttachment() []*MailAttachment {
215	if m != nil {
216		return m.Attachment
217	}
218	return nil
219}
220
221func (m *MailMessage) GetHeader() []*MailHeader {
222	if m != nil {
223		return m.Header
224	}
225	return nil
226}
227
228func init() {
229}
230