mail_service.pb.go 6.1 KB

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