Home | History | Annotate | Download | only in mail
      1 // Code generated by protoc-gen-go.
      2 // source: google.golang.org/appengine/internal/mail/mail_service.proto
      3 // DO NOT EDIT!
      4 
      5 /*
      6 Package mail is a generated protocol buffer package.
      7 
      8 It is generated from these files:
      9 	google.golang.org/appengine/internal/mail/mail_service.proto
     10 
     11 It has these top-level messages:
     12 	MailServiceError
     13 	MailAttachment
     14 	MailHeader
     15 	MailMessage
     16 */
     17 package mail
     18 
     19 import proto "github.com/golang/protobuf/proto"
     20 import fmt "fmt"
     21 import math "math"
     22 
     23 // Reference imports to suppress errors if they are not otherwise used.
     24 var _ = proto.Marshal
     25 var _ = fmt.Errorf
     26 var _ = math.Inf
     27 
     28 type MailServiceError_ErrorCode int32
     29 
     30 const (
     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 
     40 var 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 }
     49 var 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 
     59 func (x MailServiceError_ErrorCode) Enum() *MailServiceError_ErrorCode {
     60 	p := new(MailServiceError_ErrorCode)
     61 	*p = x
     62 	return p
     63 }
     64 func (x MailServiceError_ErrorCode) String() string {
     65 	return proto.EnumName(MailServiceError_ErrorCode_name, int32(x))
     66 }
     67 func (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 
     76 type MailServiceError struct {
     77 	XXX_unrecognized []byte `json:"-"`
     78 }
     79 
     80 func (m *MailServiceError) Reset()         { *m = MailServiceError{} }
     81 func (m *MailServiceError) String() string { return proto.CompactTextString(m) }
     82 func (*MailServiceError) ProtoMessage()    {}
     83 
     84 type 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 
     91 func (m *MailAttachment) Reset()         { *m = MailAttachment{} }
     92 func (m *MailAttachment) String() string { return proto.CompactTextString(m) }
     93 func (*MailAttachment) ProtoMessage()    {}
     94 
     95 func (m *MailAttachment) GetFileName() string {
     96 	if m != nil && m.FileName != nil {
     97 		return *m.FileName
     98 	}
     99 	return ""
    100 }
    101 
    102 func (m *MailAttachment) GetData() []byte {
    103 	if m != nil {
    104 		return m.Data
    105 	}
    106 	return nil
    107 }
    108 
    109 func (m *MailAttachment) GetContentID() string {
    110 	if m != nil && m.ContentID != nil {
    111 		return *m.ContentID
    112 	}
    113 	return ""
    114 }
    115 
    116 type 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 
    122 func (m *MailHeader) Reset()         { *m = MailHeader{} }
    123 func (m *MailHeader) String() string { return proto.CompactTextString(m) }
    124 func (*MailHeader) ProtoMessage()    {}
    125 
    126 func (m *MailHeader) GetName() string {
    127 	if m != nil && m.Name != nil {
    128 		return *m.Name
    129 	}
    130 	return ""
    131 }
    132 
    133 func (m *MailHeader) GetValue() string {
    134 	if m != nil && m.Value != nil {
    135 		return *m.Value
    136 	}
    137 	return ""
    138 }
    139 
    140 type 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 
    154 func (m *MailMessage) Reset()         { *m = MailMessage{} }
    155 func (m *MailMessage) String() string { return proto.CompactTextString(m) }
    156 func (*MailMessage) ProtoMessage()    {}
    157 
    158 func (m *MailMessage) GetSender() string {
    159 	if m != nil && m.Sender != nil {
    160 		return *m.Sender
    161 	}
    162 	return ""
    163 }
    164 
    165 func (m *MailMessage) GetReplyTo() string {
    166 	if m != nil && m.ReplyTo != nil {
    167 		return *m.ReplyTo
    168 	}
    169 	return ""
    170 }
    171 
    172 func (m *MailMessage) GetTo() []string {
    173 	if m != nil {
    174 		return m.To
    175 	}
    176 	return nil
    177 }
    178 
    179 func (m *MailMessage) GetCc() []string {
    180 	if m != nil {
    181 		return m.Cc
    182 	}
    183 	return nil
    184 }
    185 
    186 func (m *MailMessage) GetBcc() []string {
    187 	if m != nil {
    188 		return m.Bcc
    189 	}
    190 	return nil
    191 }
    192 
    193 func (m *MailMessage) GetSubject() string {
    194 	if m != nil && m.Subject != nil {
    195 		return *m.Subject
    196 	}
    197 	return ""
    198 }
    199 
    200 func (m *MailMessage) GetTextBody() string {
    201 	if m != nil && m.TextBody != nil {
    202 		return *m.TextBody
    203 	}
    204 	return ""
    205 }
    206 
    207 func (m *MailMessage) GetHtmlBody() string {
    208 	if m != nil && m.HtmlBody != nil {
    209 		return *m.HtmlBody
    210 	}
    211 	return ""
    212 }
    213 
    214 func (m *MailMessage) GetAttachment() []*MailAttachment {
    215 	if m != nil {
    216 		return m.Attachment
    217 	}
    218 	return nil
    219 }
    220 
    221 func (m *MailMessage) GetHeader() []*MailHeader {
    222 	if m != nil {
    223 		return m.Header
    224 	}
    225 	return nil
    226 }
    227 
    228 func init() {
    229 }
    230