forked from nytimes/gizmo
-
Notifications
You must be signed in to change notification settings - Fork 0
/
mostpopular.pb.go
146 lines (128 loc) · 7.18 KB
/
mostpopular.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
// Code generated by protoc-gen-go.
// source: mostpopular.proto
// DO NOT EDIT!
/*
Package nyt is a generated protocol buffer package.
It is generated from these files:
mostpopular.proto
semanticconcept.proto
It has these top-level messages:
MostPopularResponse
MostPopularResult
Media
MediaMetadata
SemanticConceptResponse
SemanticConceptResult
SemanticConceptArticleList
SemanticConceptArticle
*/
package nyt
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
type MostPopularResponse struct {
Status string `protobuf:"bytes,1,opt,name=status" json:"status,omitempty"`
Copyright string `protobuf:"bytes,2,opt,name=copyright" json:"copyright,omitempty"`
NumResults uint32 `protobuf:"varint,3,opt,name=num_results" json:"num_results,omitempty"`
Result []*MostPopularResult `protobuf:"bytes,4,rep,name=result" json:"result,omitempty"`
}
func (m *MostPopularResponse) Reset() { *m = MostPopularResponse{} }
func (m *MostPopularResponse) String() string { return proto.CompactTextString(m) }
func (*MostPopularResponse) ProtoMessage() {}
func (*MostPopularResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *MostPopularResponse) GetResult() []*MostPopularResult {
if m != nil {
return m.Result
}
return nil
}
type MostPopularResult struct {
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Id uint64 `protobuf:"varint,2,opt,name=id" json:"id,omitempty"`
AsssetId uint64 `protobuf:"varint,3,opt,name=assset_id" json:"assset_id,omitempty"`
AdxKeywords string `protobuf:"bytes,4,opt,name=adx_keywords" json:"adx_keywords,omitempty"`
Column string `protobuf:"bytes,5,opt,name=column" json:"column,omitempty"`
Section string `protobuf:"bytes,6,opt,name=section" json:"section,omitempty"`
Byline string `protobuf:"bytes,7,opt,name=byline" json:"byline,omitempty"`
Type string `protobuf:"bytes,8,opt,name=type" json:"type,omitempty"`
Title string `protobuf:"bytes,9,opt,name=title" json:"title,omitempty"`
Abstract string `protobuf:"bytes,10,opt,name=abstract" json:"abstract,omitempty"`
PublishedDate string `protobuf:"bytes,11,opt,name=published_date" json:"published_date,omitempty"`
Source string `protobuf:"bytes,12,opt,name=source" json:"source,omitempty"`
Views uint32 `protobuf:"varint,13,opt,name=views" json:"views,omitempty"`
Media []*Media `protobuf:"bytes,14,rep,name=media" json:"media,omitempty"`
}
func (m *MostPopularResult) Reset() { *m = MostPopularResult{} }
func (m *MostPopularResult) String() string { return proto.CompactTextString(m) }
func (*MostPopularResult) ProtoMessage() {}
func (*MostPopularResult) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *MostPopularResult) GetMedia() []*Media {
if m != nil {
return m.Media
}
return nil
}
type Media struct {
Type string `protobuf:"bytes,1,opt,name=type" json:"type,omitempty"`
Subtype string `protobuf:"bytes,2,opt,name=subtype" json:"subtype,omitempty"`
Caption string `protobuf:"bytes,3,opt,name=caption" json:"caption,omitempty"`
Copyright string `protobuf:"bytes,4,opt,name=copyright" json:"copyright,omitempty"`
MediaMetadata []*MediaMetadata `protobuf:"bytes,5,rep,name=media_metadata" json:"media_metadata,omitempty"`
}
func (m *Media) Reset() { *m = Media{} }
func (m *Media) String() string { return proto.CompactTextString(m) }
func (*Media) ProtoMessage() {}
func (*Media) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *Media) GetMediaMetadata() []*MediaMetadata {
if m != nil {
return m.MediaMetadata
}
return nil
}
type MediaMetadata struct {
Url string `protobuf:"bytes,1,opt,name=url" json:"url,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format" json:"format,omitempty"`
Height uint32 `protobuf:"varint,3,opt,name=height" json:"height,omitempty"`
Width uint32 `protobuf:"varint,4,opt,name=width" json:"width,omitempty"`
}
func (m *MediaMetadata) Reset() { *m = MediaMetadata{} }
func (m *MediaMetadata) String() string { return proto.CompactTextString(m) }
func (*MediaMetadata) ProtoMessage() {}
func (*MediaMetadata) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
func init() {
proto.RegisterType((*MostPopularResponse)(nil), "nyt.MostPopularResponse")
proto.RegisterType((*MostPopularResult)(nil), "nyt.MostPopularResult")
proto.RegisterType((*Media)(nil), "nyt.Media")
proto.RegisterType((*MediaMetadata)(nil), "nyt.MediaMetadata")
}
var fileDescriptor0 = []byte{
// 374 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x64, 0x92, 0xc1, 0x6e, 0x9b, 0x40,
0x10, 0x86, 0x65, 0x63, 0x3b, 0xf1, 0xd8, 0xd0, 0x9a, 0x54, 0xd1, 0xf6, 0x16, 0x71, 0xa8, 0xa2,
0x1e, 0x7c, 0x68, 0x1f, 0xa3, 0x8a, 0x54, 0xf5, 0x05, 0xd0, 0x02, 0xd3, 0xb2, 0x2a, 0xb0, 0xab,
0x9d, 0xd9, 0xb8, 0x3c, 0x41, 0x5f, 0xbb, 0xcb, 0x10, 0x52, 0x59, 0xb9, 0x31, 0xdf, 0xc0, 0x7e,
0x33, 0xff, 0x02, 0xa7, 0xde, 0x12, 0x3b, 0xeb, 0x42, 0xa7, 0xfd, 0xd9, 0x79, 0xcb, 0x36, 0x4f,
0x86, 0x91, 0x8b, 0x00, 0x77, 0x4f, 0xb1, 0xf3, 0x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