blob: 792f0b18fedd22910f87121b7769c57bec3954f8 [file] [log] [blame]
// Code generated by protoc-gen-go. DO NOT EDIT.
// source: go.chromium.org/luci/dm/api/service/v1/service.proto
package dm
import prpc "go.chromium.org/luci/grpc/prpc"
import (
context "context"
fmt "fmt"
proto "github.com/golang/protobuf/proto"
empty "github.com/golang/protobuf/ptypes/empty"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status "google.golang.org/grpc/status"
math "math"
)
// 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.ProtoPackageIsVersion3 // please upgrade the proto package
func init() {
proto.RegisterFile("go.chromium.org/luci/dm/api/service/v1/service.proto", fileDescriptor_68bd6a527f0765eb)
}
var fileDescriptor_68bd6a527f0765eb = []byte{
// 278 bytes of a gzipped FileDescriptorProto
0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0x94, 0x91, 0x4d, 0x4b, 0xc4, 0x30,
0x10, 0x86, 0x51, 0x44, 0x30, 0xb0, 0xa8, 0x41, 0x44, 0xea, 0x5f, 0x90, 0x04, 0x3f, 0xc0, 0x83,
0xa8, 0x14, 0xb6, 0x7a, 0xf7, 0xe2, 0xb1, 0xcc, 0xb6, 0xb3, 0x6d, 0xd8, 0xa6, 0x89, 0x69, 0x52,
0xf5, 0xc7, 0x0b, 0x92, 0xa4, 0x5d, 0xd0, 0x15, 0xe9, 0xde, 0xda, 0x37, 0xf3, 0xbc, 0xcc, 0xc3,
0x90, 0x9b, 0x4a, 0xb1, 0xa2, 0x36, 0x4a, 0x0a, 0x27, 0x99, 0x32, 0x15, 0x6f, 0x5c, 0x21, 0x78,
0x29, 0x39, 0x68, 0xc1, 0x3b, 0x34, 0xbd, 0x28, 0x90, 0xf7, 0x97, 0xe3, 0x27,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reference imports to suppress errors if they are not otherwise used.
var _ context.Context
var _ grpc.ClientConnInterface
// 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.SupportPackageIsVersion6
// DepsClient is the client API for Deps service.
//
// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream.
type DepsClient interface {
// allows you to add additional data to the current dependency graph.
EnsureGraphData(ctx context.Context, in *EnsureGraphDataReq, opts ...grpc.CallOption) (*EnsureGraphDataRsp, error)
// is called by Execution clients to activate themselves with DM.
ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*empty.Empty, error)
// is called by Execution clients to indicate that an Attempt is finished.
FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*empty.Empty, error)
// runs queries, and walks along the dependency graph from the query results.
WalkGraph(ctx context.Context, in *WalkGraphReq, opts ...grpc.CallOption) (*GraphData, error)
}
type depsPRPCClient struct {
client *prpc.Client
}
func NewDepsPRPCClient(client *prpc.Client) DepsClient {
return &depsPRPCClient{client}
}
func (c *depsPRPCClient) EnsureGraphData(ctx context.Context, in *EnsureGraphDataReq, opts ...grpc.CallOption) (*EnsureGraphDataRsp, error) {
out := new(EnsureGraphDataRsp)
err := c.client.Call(ctx, "dm.Deps", "EnsureGraphData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depsPRPCClient) ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.client.Call(ctx, "dm.Deps", "ActivateExecution", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depsPRPCClient) FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.client.Call(ctx, "dm.Deps", "FinishAttempt", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depsPRPCClient) WalkGraph(ctx context.Context, in *WalkGraphReq, opts ...grpc.CallOption) (*GraphData, error) {
out := new(GraphData)
err := c.client.Call(ctx, "dm.Deps", "WalkGraph", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
type depsClient struct {
cc grpc.ClientConnInterface
}
func NewDepsClient(cc grpc.ClientConnInterface) DepsClient {
return &depsClient{cc}
}
func (c *depsClient) EnsureGraphData(ctx context.Context, in *EnsureGraphDataReq, opts ...grpc.CallOption) (*EnsureGraphDataRsp, error) {
out := new(EnsureGraphDataRsp)
err := c.cc.Invoke(ctx, "/dm.Deps/EnsureGraphData", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depsClient) ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/dm.Deps/ActivateExecution", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depsClient) FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*empty.Empty, error) {
out := new(empty.Empty)
err := c.cc.Invoke(ctx, "/dm.Deps/FinishAttempt", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
func (c *depsClient) WalkGraph(ctx context.Context, in *WalkGraphReq, opts ...grpc.CallOption) (*GraphData, error) {
out := new(GraphData)
err := c.cc.Invoke(ctx, "/dm.Deps/WalkGraph", in, out, opts...)
if err != nil {
return nil, err
}
return out, nil
}
// DepsServer is the server API for Deps service.
type DepsServer interface {
// allows you to add additional data to the current dependency graph.
EnsureGraphData(context.Context, *EnsureGraphDataReq) (*EnsureGraphDataRsp, error)
// is called by Execution clients to activate themselves with DM.
ActivateExecution(context.Context, *ActivateExecutionReq) (*empty.Empty, error)
// is called by Execution clients to indicate that an Attempt is finished.
FinishAttempt(context.Context, *FinishAttemptReq) (*empty.Empty, error)
// runs queries, and walks along the dependency graph from the query results.
WalkGraph(context.Context, *WalkGraphReq) (*GraphData, error)
}
// UnimplementedDepsServer can be embedded to have forward compatible implementations.
type UnimplementedDepsServer struct {
}
func (*UnimplementedDepsServer) EnsureGraphData(ctx context.Context, req *EnsureGraphDataReq) (*EnsureGraphDataRsp, error) {
return nil, status.Errorf(codes.Unimplemented, "method EnsureGraphData not implemented")
}
func (*UnimplementedDepsServer) ActivateExecution(ctx context.Context, req *ActivateExecutionReq) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method ActivateExecution not implemented")
}
func (*UnimplementedDepsServer) FinishAttempt(ctx context.Context, req *FinishAttemptReq) (*empty.Empty, error) {
return nil, status.Errorf(codes.Unimplemented, "method FinishAttempt not implemented")
}
func (*UnimplementedDepsServer) WalkGraph(ctx context.Context, req *WalkGraphReq) (*GraphData, error) {
return nil, status.Errorf(codes.Unimplemented, "method WalkGraph not implemented")
}
func RegisterDepsServer(s prpc.Registrar, srv DepsServer) {
s.RegisterService(&_Deps_serviceDesc, srv)
}
func _Deps_EnsureGraphData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(EnsureGraphDataReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DepsServer).EnsureGraphData(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/dm.Deps/EnsureGraphData",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DepsServer).EnsureGraphData(ctx, req.(*EnsureGraphDataReq))
}
return interceptor(ctx, in, info, handler)
}
func _Deps_ActivateExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(ActivateExecutionReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DepsServer).ActivateExecution(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/dm.Deps/ActivateExecution",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DepsServer).ActivateExecution(ctx, req.(*ActivateExecutionReq))
}
return interceptor(ctx, in, info, handler)
}
func _Deps_FinishAttempt_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(FinishAttemptReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DepsServer).FinishAttempt(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/dm.Deps/FinishAttempt",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DepsServer).FinishAttempt(ctx, req.(*FinishAttemptReq))
}
return interceptor(ctx, in, info, handler)
}
func _Deps_WalkGraph_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
in := new(WalkGraphReq)
if err := dec(in); err != nil {
return nil, err
}
if interceptor == nil {
return srv.(DepsServer).WalkGraph(ctx, in)
}
info := &grpc.UnaryServerInfo{
Server: srv,
FullMethod: "/dm.Deps/WalkGraph",
}
handler := func(ctx context.Context, req interface{}) (interface{}, error) {
return srv.(DepsServer).WalkGraph(ctx, req.(*WalkGraphReq))
}
return interceptor(ctx, in, info, handler)
}
var _Deps_serviceDesc = grpc.ServiceDesc{
ServiceName: "dm.Deps",
HandlerType: (*DepsServer)(nil),
Methods: []grpc.MethodDesc{
{
MethodName: "EnsureGraphData",
Handler: _Deps_EnsureGraphData_Handler,
},
{
MethodName: "ActivateExecution",
Handler: _Deps_ActivateExecution_Handler,
},
{
MethodName: "FinishAttempt",
Handler: _Deps_FinishAttempt_Handler,
},
{
MethodName: "WalkGraph",
Handler: _Deps_WalkGraph_Handler,
},
},
Streams: []grpc.StreamDesc{},
Metadata: "go.chromium.org/luci/dm/api/service/v1/service.proto",
}