Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(103)

Side by Side Diff: milo/api/proto/buildbot.pb.go

Issue 2364653002: Buildbot build json grpc endpoint (Closed)
Patch Set: Pass tests Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « milo/api/proto/buildbot.proto ('k') | milo/api/proto/buildbotserver_dec.go » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Code generated by protoc-gen-go. 1 // Code generated by protoc-gen-go.
2 // source: github.com/luci/luci-go/milo/api/proto/buildbot.proto 2 // source: github.com/luci/luci-go/milo/api/proto/buildbot.proto
3 // DO NOT EDIT! 3 // DO NOT EDIT!
4 4
5 /* 5 /*
6 Package milo is a generated protocol buffer package. 6 Package milo is a generated protocol buffer package.
7 7
8 It is generated from these files: 8 It is generated from these files:
9 github.com/luci/luci-go/milo/api/proto/buildbot.proto 9 github.com/luci/luci-go/milo/api/proto/buildbot.proto
10 10
11 It has these top-level messages: 11 It has these top-level messages:
12 MasterRequest 12 MasterRequest
13 CompressedMasterJSON 13 CompressedMasterJSON
14 BuildbotBuildRequest
15 BuildbotBuildJSON
14 */ 16 */
15 package milo 17 package milo
16 18
17 import prpc "github.com/luci/luci-go/grpc/prpc" 19 import prpc "github.com/luci/luci-go/grpc/prpc"
18 20
19 import proto "github.com/golang/protobuf/proto" 21 import proto "github.com/golang/protobuf/proto"
20 import fmt "fmt" 22 import fmt "fmt"
21 import math "math" 23 import math "math"
22 import google_protobuf "github.com/luci/luci-go/common/proto/google" 24 import google_protobuf "github.com/luci/luci-go/common/proto/google"
23 25
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 func (*CompressedMasterJSON) ProtoMessage() {} 64 func (*CompressedMasterJSON) ProtoMessage() {}
63 func (*CompressedMasterJSON) Descriptor() ([]byte, []int) { return fileDescripto r0, []int{1} } 65 func (*CompressedMasterJSON) Descriptor() ([]byte, []int) { return fileDescripto r0, []int{1} }
64 66
65 func (m *CompressedMasterJSON) GetModified() *google_protobuf.Timestamp { 67 func (m *CompressedMasterJSON) GetModified() *google_protobuf.Timestamp {
66 if m != nil { 68 if m != nil {
67 return m.Modified 69 return m.Modified
68 } 70 }
69 return nil 71 return nil
70 } 72 }
71 73
74 // The request for a specific build.
75 type BuildbotBuildRequest struct {
76 Master string `protobuf:"bytes,1,opt,name=master" json:"master,omitemp ty"`
77 Builder string `protobuf:"bytes,2,opt,name=builder" json:"builder,omite mpty"`
78 BuildNum int64 `protobuf:"varint,3,opt,name=build_num,json=buildNum" js on:"build_num,omitempty"`
79 }
80
81 func (m *BuildbotBuildRequest) Reset() { *m = BuildbotBuildRe quest{} }
82 func (m *BuildbotBuildRequest) String() string { return proto.Compact TextString(m) }
83 func (*BuildbotBuildRequest) ProtoMessage() {}
84 func (*BuildbotBuildRequest) Descriptor() ([]byte, []int) { return fileDescripto r0, []int{2} }
85
86 // The response message for a specific build.
87 type BuildbotBuildJSON struct {
88 // Json data of the build.
89 Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempt y"`
90 }
91
92 func (m *BuildbotBuildJSON) Reset() { *m = BuildbotBuildJSON{ } }
93 func (m *BuildbotBuildJSON) String() string { return proto.CompactTex tString(m) }
94 func (*BuildbotBuildJSON) ProtoMessage() {}
95 func (*BuildbotBuildJSON) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{3} }
96
72 func init() { 97 func init() {
73 proto.RegisterType((*MasterRequest)(nil), "milo.MasterRequest") 98 proto.RegisterType((*MasterRequest)(nil), "milo.MasterRequest")
74 proto.RegisterType((*CompressedMasterJSON)(nil), "milo.CompressedMasterJ SON") 99 proto.RegisterType((*CompressedMasterJSON)(nil), "milo.CompressedMasterJ SON")
100 proto.RegisterType((*BuildbotBuildRequest)(nil), "milo.BuildbotBuildRequ est")
101 proto.RegisterType((*BuildbotBuildJSON)(nil), "milo.BuildbotBuildJSON")
75 } 102 }
76 103
77 // Reference imports to suppress errors if they are not otherwise used. 104 // Reference imports to suppress errors if they are not otherwise used.
78 var _ context.Context 105 var _ context.Context
79 var _ grpc.ClientConn 106 var _ grpc.ClientConn
80 107
81 // This is a compile-time assertion to ensure that this generated file 108 // This is a compile-time assertion to ensure that this generated file
82 // is compatible with the grpc package it is being compiled against. 109 // is compatible with the grpc package it is being compiled against.
83 const _ = grpc.SupportPackageIsVersion3 110 const _ = grpc.SupportPackageIsVersion3
84 111
85 // Client API for Buildbot service 112 // Client API for Buildbot service
86 113
87 type BuildbotClient interface { 114 type BuildbotClient interface {
88 GetCompressedMasterJSON(ctx context.Context, in *MasterRequest, opts ... grpc.CallOption) (*CompressedMasterJSON, error) 115 GetCompressedMasterJSON(ctx context.Context, in *MasterRequest, opts ... grpc.CallOption) (*CompressedMasterJSON, error)
116 GetBuildbotBuildJSON(ctx context.Context, in *BuildbotBuildRequest, opts ...grpc.CallOption) (*BuildbotBuildJSON, error)
89 } 117 }
90 type buildbotPRPCClient struct { 118 type buildbotPRPCClient struct {
91 client *prpc.Client 119 client *prpc.Client
92 } 120 }
93 121
94 func NewBuildbotPRPCClient(client *prpc.Client) BuildbotClient { 122 func NewBuildbotPRPCClient(client *prpc.Client) BuildbotClient {
95 return &buildbotPRPCClient{client} 123 return &buildbotPRPCClient{client}
96 } 124 }
97 125
98 func (c *buildbotPRPCClient) GetCompressedMasterJSON(ctx context.Context, in *Ma sterRequest, opts ...grpc.CallOption) (*CompressedMasterJSON, error) { 126 func (c *buildbotPRPCClient) GetCompressedMasterJSON(ctx context.Context, in *Ma sterRequest, opts ...grpc.CallOption) (*CompressedMasterJSON, error) {
99 out := new(CompressedMasterJSON) 127 out := new(CompressedMasterJSON)
100 err := c.client.Call(ctx, "milo.Buildbot", "GetCompressedMasterJSON", in , out, opts...) 128 err := c.client.Call(ctx, "milo.Buildbot", "GetCompressedMasterJSON", in , out, opts...)
101 if err != nil { 129 if err != nil {
102 return nil, err 130 return nil, err
103 } 131 }
104 return out, nil 132 return out, nil
105 } 133 }
106 134
135 func (c *buildbotPRPCClient) GetBuildbotBuildJSON(ctx context.Context, in *Build botBuildRequest, opts ...grpc.CallOption) (*BuildbotBuildJSON, error) {
136 out := new(BuildbotBuildJSON)
137 err := c.client.Call(ctx, "milo.Buildbot", "GetBuildbotBuildJSON", in, o ut, opts...)
138 if err != nil {
139 return nil, err
140 }
141 return out, nil
142 }
143
107 type buildbotClient struct { 144 type buildbotClient struct {
108 cc *grpc.ClientConn 145 cc *grpc.ClientConn
109 } 146 }
110 147
111 func NewBuildbotClient(cc *grpc.ClientConn) BuildbotClient { 148 func NewBuildbotClient(cc *grpc.ClientConn) BuildbotClient {
112 return &buildbotClient{cc} 149 return &buildbotClient{cc}
113 } 150 }
114 151
115 func (c *buildbotClient) GetCompressedMasterJSON(ctx context.Context, in *Master Request, opts ...grpc.CallOption) (*CompressedMasterJSON, error) { 152 func (c *buildbotClient) GetCompressedMasterJSON(ctx context.Context, in *Master Request, opts ...grpc.CallOption) (*CompressedMasterJSON, error) {
116 out := new(CompressedMasterJSON) 153 out := new(CompressedMasterJSON)
117 err := grpc.Invoke(ctx, "/milo.Buildbot/GetCompressedMasterJSON", in, ou t, c.cc, opts...) 154 err := grpc.Invoke(ctx, "/milo.Buildbot/GetCompressedMasterJSON", in, ou t, c.cc, opts...)
118 if err != nil { 155 if err != nil {
119 return nil, err 156 return nil, err
120 } 157 }
121 return out, nil 158 return out, nil
122 } 159 }
123 160
161 func (c *buildbotClient) GetBuildbotBuildJSON(ctx context.Context, in *BuildbotB uildRequest, opts ...grpc.CallOption) (*BuildbotBuildJSON, error) {
162 out := new(BuildbotBuildJSON)
163 err := grpc.Invoke(ctx, "/milo.Buildbot/GetBuildbotBuildJSON", in, out, c.cc, opts...)
164 if err != nil {
165 return nil, err
166 }
167 return out, nil
168 }
169
124 // Server API for Buildbot service 170 // Server API for Buildbot service
125 171
126 type BuildbotServer interface { 172 type BuildbotServer interface {
127 GetCompressedMasterJSON(context.Context, *MasterRequest) (*CompressedMas terJSON, error) 173 GetCompressedMasterJSON(context.Context, *MasterRequest) (*CompressedMas terJSON, error)
174 GetBuildbotBuildJSON(context.Context, *BuildbotBuildRequest) (*BuildbotB uildJSON, error)
128 } 175 }
129 176
130 func RegisterBuildbotServer(s prpc.Registrar, srv BuildbotServer) { 177 func RegisterBuildbotServer(s prpc.Registrar, srv BuildbotServer) {
131 s.RegisterService(&_Buildbot_serviceDesc, srv) 178 s.RegisterService(&_Buildbot_serviceDesc, srv)
132 } 179 }
133 180
134 func _Buildbot_GetCompressedMasterJSON_Handler(srv interface{}, ctx context.Cont ext, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (inte rface{}, error) { 181 func _Buildbot_GetCompressedMasterJSON_Handler(srv interface{}, ctx context.Cont ext, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (inte rface{}, error) {
135 in := new(MasterRequest) 182 in := new(MasterRequest)
136 if err := dec(in); err != nil { 183 if err := dec(in); err != nil {
137 return nil, err 184 return nil, err
138 } 185 }
139 if interceptor == nil { 186 if interceptor == nil {
140 return srv.(BuildbotServer).GetCompressedMasterJSON(ctx, in) 187 return srv.(BuildbotServer).GetCompressedMasterJSON(ctx, in)
141 } 188 }
142 info := &grpc.UnaryServerInfo{ 189 info := &grpc.UnaryServerInfo{
143 Server: srv, 190 Server: srv,
144 FullMethod: "/milo.Buildbot/GetCompressedMasterJSON", 191 FullMethod: "/milo.Buildbot/GetCompressedMasterJSON",
145 } 192 }
146 handler := func(ctx context.Context, req interface{}) (interface{}, erro r) { 193 handler := func(ctx context.Context, req interface{}) (interface{}, erro r) {
147 return srv.(BuildbotServer).GetCompressedMasterJSON(ctx, req.(*M asterRequest)) 194 return srv.(BuildbotServer).GetCompressedMasterJSON(ctx, req.(*M asterRequest))
148 } 195 }
149 return interceptor(ctx, in, info, handler) 196 return interceptor(ctx, in, info, handler)
150 } 197 }
151 198
199 func _Buildbot_GetBuildbotBuildJSON_Handler(srv interface{}, ctx context.Context , dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interfa ce{}, error) {
200 in := new(BuildbotBuildRequest)
201 if err := dec(in); err != nil {
202 return nil, err
203 }
204 if interceptor == nil {
205 return srv.(BuildbotServer).GetBuildbotBuildJSON(ctx, in)
206 }
207 info := &grpc.UnaryServerInfo{
208 Server: srv,
209 FullMethod: "/milo.Buildbot/GetBuildbotBuildJSON",
210 }
211 handler := func(ctx context.Context, req interface{}) (interface{}, erro r) {
212 return srv.(BuildbotServer).GetBuildbotBuildJSON(ctx, req.(*Buil dbotBuildRequest))
213 }
214 return interceptor(ctx, in, info, handler)
215 }
216
152 var _Buildbot_serviceDesc = grpc.ServiceDesc{ 217 var _Buildbot_serviceDesc = grpc.ServiceDesc{
153 ServiceName: "milo.Buildbot", 218 ServiceName: "milo.Buildbot",
154 HandlerType: (*BuildbotServer)(nil), 219 HandlerType: (*BuildbotServer)(nil),
155 Methods: []grpc.MethodDesc{ 220 Methods: []grpc.MethodDesc{
156 { 221 {
157 MethodName: "GetCompressedMasterJSON", 222 MethodName: "GetCompressedMasterJSON",
158 Handler: _Buildbot_GetCompressedMasterJSON_Handler, 223 Handler: _Buildbot_GetCompressedMasterJSON_Handler,
159 }, 224 },
225 {
226 MethodName: "GetBuildbotBuildJSON",
227 Handler: _Buildbot_GetBuildbotBuildJSON_Handler,
228 },
160 }, 229 },
161 Streams: []grpc.StreamDesc{}, 230 Streams: []grpc.StreamDesc{},
162 Metadata: fileDescriptor0, 231 Metadata: fileDescriptor0,
163 } 232 }
164 233
165 func init() { 234 func init() {
166 proto.RegisterFile("github.com/luci/luci-go/milo/api/proto/buildbot.prot o", fileDescriptor0) 235 proto.RegisterFile("github.com/luci/luci-go/milo/api/proto/buildbot.prot o", fileDescriptor0)
167 } 236 }
168 237
169 var fileDescriptor0 = []byte{ 238 var fileDescriptor0 = []byte{
170 » // 248 bytes of a gzipped FileDescriptorProto 239 » // 324 bytes of a gzipped FileDescriptorProto
171 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x8f, 0x4f, 0x4b, 0xc4, 0x30, 240 » 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x6c, 0x51, 0xb1, 0x4e, 0xc3, 0x30,
172 » 0x10, 0xc5, 0x5d, 0x5d, 0xa4, 0x46, 0xbd, 0x44, 0xc1, 0xd2, 0x8b, 0x52, 0x2f, 0x5e, 0x4c, 0x60, 241 » 0x10, 0x25, 0x6d, 0x55, 0xd2, 0x03, 0x06, 0x4c, 0x45, 0xa3, 0x30, 0x80, 0xc2, 0x00, 0x0b, 0x8e,
173 » 0x45, 0x3f, 0x80, 0x1e, 0x04, 0xf1, 0x0f, 0x44, 0x0f, 0x5e, 0x93, 0xcd, 0x6c, 0x1d, 0x48, 0x3a, 242 » 0x54, 0x04, 0x1f, 0x00, 0x03, 0x12, 0xa2, 0x45, 0x0a, 0xec, 0xc8, 0x69, 0xdc, 0x60, 0x29, 0x8e,
174 » 0xb5, 0x4d, 0xae, 0x7e, 0x76, 0xdb, 0xc4, 0x5d, 0x10, 0xf6, 0x12, 0xe6, 0xe5, 0xbd, 0x61, 0x7e, 243 » 0x43, 0x63, 0xaf, 0xfc, 0x0e, 0xbf, 0x49, 0x72, 0x8e, 0x8b, 0x2a, 0xb2, 0x24, 0xf7, 0xfc, 0xde,
175 » 0x8f, 0xdd, 0x36, 0x18, 0xbe, 0xa2, 0x11, 0x4b, 0xf2, 0xd2, 0xc5, 0x25, 0xa6, 0xe7, 0xba, 0x21, 244 » 0xf9, 0xde, 0x3d, 0xc3, 0x5d, 0x2e, 0xf4, 0xa7, 0x49, 0xe9, 0x4a, 0xc9, 0xb8, 0x30, 0x2b, 0x81,
176 » 0xe9, 0x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 250 » 0xb7, 0xd7, 0x25, 0x09, 0xc1, 0x17, 0x65, 0x03, 0x4a, 0x56, 0xa0, 0xde, 0x4f, 0xb6, 0x98, 0xdc,
182 » 0xb9, 0x3b, 0x7a, 0x87, 0x8b, 0x4a, 0x64, 0x18, 0xb1, 0x86, 0x11, 0x1f, 0x6b, 0x18, 0xb5, 0xc9, 251 » 0x83, 0x2f, 0x55, 0x26, 0xd6, 0x82, 0x67, 0xc1, 0xa0, 0xe1, 0x0e, 0xe6, 0x21, 0xb5, 0x66, 0xa8,
183 » 0x4e, 0xf7, 0xad, 0x0e, 0xba, 0xdc, 0x1b, 0x77, 0x8e, 0x54, 0x9a, 0x17, 0x9f, 0xac, 0xb8, 0xff, 252 » 0x33, 0x43, 0xdf, 0x9d, 0x99, 0x64, 0xab, 0x6d, 0xe7, 0x67, 0x4c, 0xb3, 0x60, 0xd8, 0xf4, 0x1c,
184 » 0x6b, 0xc7, 0x9f, 0xd9, 0xd9, 0x23, 0x84, 0xad, 0x38, 0x27, 0x62, 0xea, 0x2c, 0xfe, 0xf5, 0xa9, 253 » 0x26, 0x58, 0x47, 0x1c, 0xa6, 0x0f, 0xdd, 0x76, 0xf8, 0x77, 0x5e, 0x4f, 0x61, 0x2c, 0xd1, 0x4d,
185 » 0xaa, 0xfc, 0xb9, 0x6d, 0xa1, 0xde, 0x31, 0xfb, 0x89, 0xe5, 0xe6, 0x37, 0x00, 0x00, 0xff, 0xff, 254 » 0xe7, 0xb6, 0x43, 0x24, 0x80, 0x7d, 0x4c, 0xa3, 0x21, 0x06, 0x48, 0x38, 0x48, 0xce, 0x60, 0x82,
186 » 0xbd, 0xd5, 0xe2, 0x2d, 0x65, 0x01, 0x00, 0x00, 255 » 0xe5, 0x47, 0x69, 0x24, 0x8e, 0x18, 0x26, 0x3e, 0x1e, 0x2c, 0x8d, 0x8c, 0xae, 0xe0, 0x78, 0x67,
256 » 0x0c, 0xee, 0xe8, 0xfc, 0x78, 0x7f, 0x7e, 0xe6, 0x3f, 0x1e, 0xf8, 0x4e, 0x49, 0x5e, 0x60, 0xf6,
257 » 0xc4, 0x75, 0x6f, 0x3e, 0x27, 0xb4, 0x7d, 0x04, 0xba, 0x13, 0x70, 0x18, 0xda, 0xc3, 0xbe, 0x86,
258 » 0x68, 0x8f, 0x2c, 0x60, 0xda, 0xdc, 0xf6, 0xdf, 0x46, 0xd7, 0xd5, 0x17, 0x43, 0x38, 0xeb, 0xe1,
259 » 0xec, 0x75, 0xe9, 0x18, 0xb3, 0xbe, 0xfd, 0x0d, 0x00, 0x00, 0xff, 0xff, 0x9f, 0x70, 0x41, 0x6c,
260 » 0x45, 0x02, 0x00, 0x00,
187 } 261 }
OLDNEW
« no previous file with comments | « milo/api/proto/buildbot.proto ('k') | milo/api/proto/buildbotserver_dec.go » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698