-
Notifications
You must be signed in to change notification settings - Fork 0
/
posts.pb.go
328 lines (289 loc) · 10.8 KB
/
posts.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
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: posts.proto
package pb
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import timestamp "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
// 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 Post_PostType int32
const (
Post_POST Post_PostType = 0
Post_COMMENT Post_PostType = 1
Post_REPOST Post_PostType = 2
)
var Post_PostType_name = map[int32]string{
0: "POST",
1: "COMMENT",
2: "REPOST",
}
var Post_PostType_value = map[string]int32{
"POST": 0,
"COMMENT": 1,
"REPOST": 2,
}
func (x Post_PostType) String() string {
return proto.EnumName(Post_PostType_name, int32(x))
}
func (Post_PostType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_posts_590fe5621382a1af, []int{0, 0}
}
type Post struct {
Slug string `protobuf:"bytes,1,opt,name=slug,proto3" json:"slug,omitempty"`
VendorID *ID `protobuf:"bytes,2,opt,name=vendorID,proto3" json:"vendorID,omitempty"`
Status string `protobuf:"bytes,3,opt,name=status,proto3" json:"status,omitempty"`
LongForm string `protobuf:"bytes,4,opt,name=longForm,proto3" json:"longForm,omitempty"`
Images []*Post_Image `protobuf:"bytes,5,rep,name=images,proto3" json:"images,omitempty"`
Tags []string `protobuf:"bytes,6,rep,name=tags,proto3" json:"tags,omitempty"`
Channels []string `protobuf:"bytes,7,rep,name=channels,proto3" json:"channels,omitempty"`
PostType Post_PostType `protobuf:"varint,8,opt,name=postType,proto3,enum=Post_PostType" json:"postType,omitempty"`
Reference string `protobuf:"bytes,9,opt,name=reference,proto3" json:"reference,omitempty"`
Timestamp *timestamp.Timestamp `protobuf:"bytes,10,opt,name=timestamp,proto3" json:"timestamp,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Post) Reset() { *m = Post{} }
func (m *Post) String() string { return proto.CompactTextString(m) }
func (*Post) ProtoMessage() {}
func (*Post) Descriptor() ([]byte, []int) {
return fileDescriptor_posts_590fe5621382a1af, []int{0}
}
func (m *Post) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Post.Unmarshal(m, b)
}
func (m *Post) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Post.Marshal(b, m, deterministic)
}
func (dst *Post) XXX_Merge(src proto.Message) {
xxx_messageInfo_Post.Merge(dst, src)
}
func (m *Post) XXX_Size() int {
return xxx_messageInfo_Post.Size(m)
}
func (m *Post) XXX_DiscardUnknown() {
xxx_messageInfo_Post.DiscardUnknown(m)
}
var xxx_messageInfo_Post proto.InternalMessageInfo
func (m *Post) GetSlug() string {
if m != nil {
return m.Slug
}
return ""
}
func (m *Post) GetVendorID() *ID {
if m != nil {
return m.VendorID
}
return nil
}
func (m *Post) GetStatus() string {
if m != nil {
return m.Status
}
return ""
}
func (m *Post) GetLongForm() string {
if m != nil {
return m.LongForm
}
return ""
}
func (m *Post) GetImages() []*Post_Image {
if m != nil {
return m.Images
}
return nil
}
func (m *Post) GetTags() []string {
if m != nil {
return m.Tags
}
return nil
}
func (m *Post) GetChannels() []string {
if m != nil {
return m.Channels
}
return nil
}
func (m *Post) GetPostType() Post_PostType {
if m != nil {
return m.PostType
}
return Post_POST
}
func (m *Post) GetReference() string {
if m != nil {
return m.Reference
}
return ""
}
func (m *Post) GetTimestamp() *timestamp.Timestamp {
if m != nil {
return m.Timestamp
}
return nil
}
type Post_Image struct {
Filename string `protobuf:"bytes,1,opt,name=filename,proto3" json:"filename,omitempty"`
Original string `protobuf:"bytes,2,opt,name=original,proto3" json:"original,omitempty"`
Large string `protobuf:"bytes,3,opt,name=large,proto3" json:"large,omitempty"`
Medium string `protobuf:"bytes,4,opt,name=medium,proto3" json:"medium,omitempty"`
Small string `protobuf:"bytes,5,opt,name=small,proto3" json:"small,omitempty"`
Tiny string `protobuf:"bytes,6,opt,name=tiny,proto3" json:"tiny,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *Post_Image) Reset() { *m = Post_Image{} }
func (m *Post_Image) String() string { return proto.CompactTextString(m) }
func (*Post_Image) ProtoMessage() {}
func (*Post_Image) Descriptor() ([]byte, []int) {
return fileDescriptor_posts_590fe5621382a1af, []int{0, 0}
}
func (m *Post_Image) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_Post_Image.Unmarshal(m, b)
}
func (m *Post_Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_Post_Image.Marshal(b, m, deterministic)
}
func (dst *Post_Image) XXX_Merge(src proto.Message) {
xxx_messageInfo_Post_Image.Merge(dst, src)
}
func (m *Post_Image) XXX_Size() int {
return xxx_messageInfo_Post_Image.Size(m)
}
func (m *Post_Image) XXX_DiscardUnknown() {
xxx_messageInfo_Post_Image.DiscardUnknown(m)
}
var xxx_messageInfo_Post_Image proto.InternalMessageInfo
func (m *Post_Image) GetFilename() string {
if m != nil {
return m.Filename
}
return ""
}
func (m *Post_Image) GetOriginal() string {
if m != nil {
return m.Original
}
return ""
}
func (m *Post_Image) GetLarge() string {
if m != nil {
return m.Large
}
return ""
}
func (m *Post_Image) GetMedium() string {
if m != nil {
return m.Medium
}
return ""
}
func (m *Post_Image) GetSmall() string {
if m != nil {
return m.Small
}
return ""
}
func (m *Post_Image) GetTiny() string {
if m != nil {
return m.Tiny
}
return ""
}
type SignedPost struct {
Post *Post `protobuf:"bytes,1,opt,name=post,proto3" json:"post,omitempty"`
Hash string `protobuf:"bytes,2,opt,name=hash,proto3" json:"hash,omitempty"`
Signature []byte `protobuf:"bytes,3,opt,name=signature,proto3" json:"signature,omitempty"`
XXX_NoUnkeyedLiteral struct{} `json:"-"`
XXX_unrecognized []byte `json:"-"`
XXX_sizecache int32 `json:"-"`
}
func (m *SignedPost) Reset() { *m = SignedPost{} }
func (m *SignedPost) String() string { return proto.CompactTextString(m) }
func (*SignedPost) ProtoMessage() {}
func (*SignedPost) Descriptor() ([]byte, []int) {
return fileDescriptor_posts_590fe5621382a1af, []int{1}
}
func (m *SignedPost) XXX_Unmarshal(b []byte) error {
return xxx_messageInfo_SignedPost.Unmarshal(m, b)
}
func (m *SignedPost) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
return xxx_messageInfo_SignedPost.Marshal(b, m, deterministic)
}
func (dst *SignedPost) XXX_Merge(src proto.Message) {
xxx_messageInfo_SignedPost.Merge(dst, src)
}
func (m *SignedPost) XXX_Size() int {
return xxx_messageInfo_SignedPost.Size(m)
}
func (m *SignedPost) XXX_DiscardUnknown() {
xxx_messageInfo_SignedPost.DiscardUnknown(m)
}
var xxx_messageInfo_SignedPost proto.InternalMessageInfo
func (m *SignedPost) GetPost() *Post {
if m != nil {
return m.Post
}
return nil
}
func (m *SignedPost) GetHash() string {
if m != nil {
return m.Hash
}
return ""
}
func (m *SignedPost) GetSignature() []byte {
if m != nil {
return m.Signature
}
return nil
}
func init() {
proto.RegisterType((*Post)(nil), "Post")
proto.RegisterType((*Post_Image)(nil), "Post.Image")
proto.RegisterType((*SignedPost)(nil), "SignedPost")
proto.RegisterEnum("Post_PostType", Post_PostType_name, Post_PostType_value)
}
func init() { proto.RegisterFile("posts.proto", fileDescriptor_posts_590fe5621382a1af) }
var fileDescriptor_posts_590fe5621382a1af = []byte{
// 429 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x44, 0x92, 0x4f, 0x8b, 0xdb, 0x30,
0x10, 0xc5, 0xeb, 0xc4, 0xf6, 0xda, 0xe3, 0xb2, 0x5d, 0x44, 0x29, 0x6a, 0x28, 0xac, 0x49, 0x2f,
0xa1, 0x50, 0x2f, 0xa4, 0x97, 0x9e, 0xdb, 0xdd, 0x42, 0x0e, 0xdb, 0x0d, 0xde, 0x5c, 0xda, 0x9b,
0x92, 0x28, 0x8a, 0x40, 0x96, 0x8c, 0x24, 0x17, 0xf6, 0x63, 0xf4, 0xd4, 0xaf, 0x5b, 0x34, 0xfe,
0x93, 0xdb, 0xbc, 0x37, 0x23, 0x69, 0xde, 0xcf, 0x86, 0xa2, 0x35, 0xce, 0xbb, 0xaa, 0xb5, 0xc6,
0x9b, 0xc5, 0xad, 0x30, 0x46, 0x28, 0x7e, 0x87, 0x6a, 0xdf, 0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