-
Notifications
You must be signed in to change notification settings - Fork 568
/
pps.pb.go
220 lines (187 loc) · 8.25 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
// 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"`
Index uint64 `protobuf:"varint,4,opt,name=index" json:"index,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"`
Index uint64 `protobuf:"varint,2,opt,name=index" json:"index,omitempty"`
Success bool `protobuf:"varint,3,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.
// 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) (interface{}, error) {
in := new(StartJobRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(InternalJobAPIServer).StartJob(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
func _InternalJobAPI_FinishJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error) (interface{}, error) {
in := new(FinishJobRequest)
if err := dec(in); err != nil {
return nil, err
}
out, err := srv.(InternalJobAPIServer).FinishJob(ctx, in)
if err != nil {
return nil, err
}
return out, nil
}
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{
// 348 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x94, 0x92, 0x41, 0x4b, 0xeb, 0x40,
0x10, 0xc7, 0x9b, 0xa6, 0x7d, 0xaf, 0xdd, 0xf7, 0xfa, 0x5e, 0x5d, 0x8a, 0x84, 0x08, 0x5a, 0x82,
0x07, 0x4f, 0x1b, 0xa8, 0xa0, 0x67, 0x15, 0x0b, 0x15, 0x0a, 0x12, 0x3d, 0x79, 0x91, 0x24, 0x9d,
0xb4, 0x91, 0x66, 0x37, 0xee, 0x6c, 0xc4, 0x7e, 0x13, 0xbf, 0x81, 0x5f, 0xd3, 0x4d, 0xd2, 0x98,
0x1a, 0xf0, 0xe0, 0x61, 0x03, 0x33, 0xbf, 0x99, 0xff, 0xe4, 0x3f, 0x0c, 0x19, 0x21, 0xc8, 0x17,
0x90, 0x6e, 0x9a, 0x62, 0xfe, 0x58, 0x2a, 0x85, 0x12, 0x74, 0x90, 0xfa, 0xe1, 0x6a, 0xb3, 0x00,
0x99, 0x30, 0x9d, 0xb4, 0x0f, 0x96, 0x42, 0x2c, 0xd7, 0xe0, 0x16, 0x30, 0xc8, 0x22, 0x17, 0x92,
0x54, 0x6d, 0xca, 0x5a, 0xdb, 0xae, 0x14, 0x22, 0x74, 0xa3, 0x0c, 0xa1, 0xf8, 0x6c, 0xd9, 0x28,
0x5c, 0xc7, 0x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