forked from pachyderm/pachyderm
-
Notifications
You must be signed in to change notification settings - Fork 0
/
pps.pb.go
230 lines (197 loc) · 8.6 KB
/
pps.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
// Code generated by protoc-gen-go.
// source: server/pps/pps.proto
// DO NOT EDIT!
/*
Package pps is a generated protocol buffer package.
It is generated from these files:
server/pps/pps.proto
It has these top-level messages:
StartJobRequest
StartJobResponse
FinishJobRequest
*/
package pps
import proto "github.com/golang/protobuf/proto"
import fmt "fmt"
import math "math"
import google_protobuf "go.pedge.io/pb/go/google/protobuf"
import fuse "github.com/pachyderm/pachyderm/src/server/pfs/fuse"
import _ "github.com/pachyderm/pachyderm/src/client/pfs"
import pachyderm_pps "github.com/pachyderm/pachyderm/src/client/pps"
import (
context "golang.org/x/net/context"
grpc "google.golang.org/grpc"
)
// 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.
const _ = proto.ProtoPackageIsVersion1
type StartJobRequest struct {
Job *pachyderm_pps.Job `protobuf:"bytes,1,opt,name=job" json:"job,omitempty"`
}
func (m *StartJobRequest) Reset() { *m = StartJobRequest{} }
func (m *StartJobRequest) String() string { return proto.CompactTextString(m) }
func (*StartJobRequest) ProtoMessage() {}
func (*StartJobRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{0} }
func (m *StartJobRequest) GetJob() *pachyderm_pps.Job {
if m != nil {
return m.Job
}
return nil
}
type StartJobResponse struct {
Transform *pachyderm_pps.Transform `protobuf:"bytes,1,opt,name=transform" json:"transform,omitempty"`
CommitMounts []*fuse.CommitMount `protobuf:"bytes,2,rep,name=commit_mounts,json=commitMounts" json:"commit_mounts,omitempty"`
}
func (m *StartJobResponse) Reset() { *m = StartJobResponse{} }
func (m *StartJobResponse) String() string { return proto.CompactTextString(m) }
func (*StartJobResponse) ProtoMessage() {}
func (*StartJobResponse) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{1} }
func (m *StartJobResponse) GetTransform() *pachyderm_pps.Transform {
if m != nil {
return m.Transform
}
return nil
}
func (m *StartJobResponse) GetCommitMounts() []*fuse.CommitMount {
if m != nil {
return m.CommitMounts
}
return nil
}
type FinishJobRequest struct {
Job *pachyderm_pps.Job `protobuf:"bytes,1,opt,name=job" json:"job,omitempty"`
Success bool `protobuf:"varint,2,opt,name=success" json:"success,omitempty"`
}
func (m *FinishJobRequest) Reset() { *m = FinishJobRequest{} }
func (m *FinishJobRequest) String() string { return proto.CompactTextString(m) }
func (*FinishJobRequest) ProtoMessage() {}
func (*FinishJobRequest) Descriptor() ([]byte, []int) { return fileDescriptor0, []int{2} }
func (m *FinishJobRequest) GetJob() *pachyderm_pps.Job {
if m != nil {
return m.Job
}
return nil
}
func init() {
proto.RegisterType((*StartJobRequest)(nil), "pachyderm.pps.StartJobRequest")
proto.RegisterType((*StartJobResponse)(nil), "pachyderm.pps.StartJobResponse")
proto.RegisterType((*FinishJobRequest)(nil), "pachyderm.pps.FinishJobRequest")
}
// Reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConn
// This is a compile-time assertion to ensure that this generated file
// is compatible with the grpc package it is being compiled against.
const _ = grpc.SupportPackageIsVersion2
// Client API for InternalJobAPI service
type InternalJobAPIClient interface {
StartJob(ctx context.Context, in *StartJobRequest, opts ...grpc.CallOption) (*StartJobResponse, error)
FinishJob(ctx context.Context, in *FinishJobRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error)
}
type internalJobAPIClient struct {
cc *grpc.ClientConn
}
func NewInternalJobAPIClient(cc *grpc.ClientConn) InternalJobAPIClient {
return &internalJobAPIClient{cc}
}
func (c *internalJobAPIClient) StartJob(ctx context.Context, in *StartJobRequest, opts ...grpc.CallOption) (*StartJobResponse, error) {
out := new(StartJobResponse)
err := grpc.Invoke(ctx, "/pachyderm.pps.InternalJobAPI/StartJob", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *internalJobAPIClient) FinishJob(ctx context.Context, in *FinishJobRequest, opts ...grpc.CallOption) (*google_protobuf.Empty, error) {
out := new(google_protobuf.Empty)
err := grpc.Invoke(ctx, "/pachyderm.pps.InternalJobAPI/FinishJob", in, out, c.cc, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// Server API for InternalJobAPI service
type InternalJobAPIServer interface {
StartJob(context.Context, *StartJobRequest) (*StartJobResponse, error)
FinishJob(context.Context, *FinishJobRequest) (*google_protobuf.Empty, error)
}
func RegisterInternalJobAPIServer(s *grpc.Server, srv InternalJobAPIServer) {
s.RegisterService(&_InternalJobAPI_serviceDesc, srv)
}
func _InternalJobAPI_StartJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(StartJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalJobAPIServer).StartJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pachyderm.pps.InternalJobAPI/StartJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalJobAPIServer).StartJob(ctx, req.(*StartJobRequest))
}
return interceptor(ctx, in, info, handler)
}
func _InternalJobAPI_FinishJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FinishJobRequest)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(InternalJobAPIServer).FinishJob(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/pachyderm.pps.InternalJobAPI/FinishJob",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(InternalJobAPIServer).FinishJob(ctx, req.(*FinishJobRequest))
}
return interceptor(ctx, in, info, handler)
}
var _InternalJobAPI_serviceDesc = grpc.ServiceDesc{
ServiceName: "pachyderm.pps.InternalJobAPI",
HandlerType: (*InternalJobAPIServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "StartJob",
Handler: _InternalJobAPI_StartJob_Handler,
},
{
MethodName: "FinishJob",
Handler: _InternalJobAPI_FinishJob_Handler,
},
},
Streams: []grpc.StreamDesc{},
}
var fileDescriptor0 = []byte{
// 327 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x92, 0xc1, 0x4b, 0xfb, 0x30,
0x14, 0xc7, 0xd7, 0xdf, 0xf8, 0xe9, 0x16, 0x9d, 0xce, 0x30, 0xa4, 0x54, 0xd0, 0x51, 0x3c, 0xec,
0x94, 0xc2, 0x04, 0x3d, 0xab, 0x38, 0x98, 0x30, 0x90, 0xea, 0xc9, 0x8b, 0xb4, 0xf5, 0x75, 0xab,
0xac, 0x49, 0xcd, 0x4b, 0x85, 0x5d, 0xfd, 0x67, 0xfc, 0x37, 0x6d, 0xb2, 0xd5, 0x6a, 0xc0, 0x83,
0x87, 0x04, 0x92, 0xcf, 0xf7, 0xfb, 0xcd, 0x7b, 0xe1, 0x91, 0x01, 0x82, 0x7c, 0x03,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