Index: common/api/dm/service/v1/service.pb.go |
diff --git a/common/api/dm/service/v1/service.pb.go b/common/api/dm/service/v1/service.pb.go |
index fb1a3b6d9f3def707a138a10f637050917a5dcae..897661af822068406e16642aea07519b6b45197c 100644 |
--- a/common/api/dm/service/v1/service.pb.go |
+++ b/common/api/dm/service/v1/service.pb.go |
@@ -10,7 +10,7 @@ import prpc "github.com/luci/luci-go/server/prpc" |
import proto "github.com/golang/protobuf/proto" |
import fmt "fmt" |
import math "math" |
-import google_protobuf1 "github.com/luci/luci-go/common/proto/google" |
+import google_protobuf2 "github.com/luci/luci-go/common/proto/google" |
import ( |
context "golang.org/x/net/context" |
@@ -33,12 +33,14 @@ const _ = grpc.SupportPackageIsVersion2 |
// Client API for Deps service |
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) |
- ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) |
- FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) |
+ // is called by Execution clients to activate themselves with DM. |
+ ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) |
+ // is called by Execution clients to indicate that an Attempt is finished. |
+ FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*google_protobuf2.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) |
- // ClaimExecution is a totally temporary hack |
- ClaimExecution(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*ClaimExecutionRsp, error) |
} |
type depsPRPCClient struct { |
client *prpccommon.Client |
@@ -57,8 +59,8 @@ func (c *depsPRPCClient) EnsureGraphData(ctx context.Context, in *EnsureGraphDat |
return out, nil |
} |
-func (c *depsPRPCClient) ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { |
- out := new(google_protobuf1.Empty) |
+func (c *depsPRPCClient) ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) { |
+ out := new(google_protobuf2.Empty) |
err := c.client.Call(ctx, "dm.Deps", "ActivateExecution", in, out, opts...) |
if err != nil { |
return nil, err |
@@ -66,8 +68,8 @@ func (c *depsPRPCClient) ActivateExecution(ctx context.Context, in *ActivateExec |
return out, nil |
} |
-func (c *depsPRPCClient) FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { |
- out := new(google_protobuf1.Empty) |
+func (c *depsPRPCClient) FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) { |
+ out := new(google_protobuf2.Empty) |
err := c.client.Call(ctx, "dm.Deps", "FinishAttempt", in, out, opts...) |
if err != nil { |
return nil, err |
@@ -84,15 +86,6 @@ func (c *depsPRPCClient) WalkGraph(ctx context.Context, in *WalkGraphReq, opts . |
return out, nil |
} |
-func (c *depsPRPCClient) ClaimExecution(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*ClaimExecutionRsp, error) { |
- out := new(ClaimExecutionRsp) |
- err := c.client.Call(ctx, "dm.Deps", "ClaimExecution", in, out, opts...) |
- if err != nil { |
- return nil, err |
- } |
- return out, nil |
-} |
- |
type depsClient struct { |
cc *grpc.ClientConn |
} |
@@ -110,8 +103,8 @@ func (c *depsClient) EnsureGraphData(ctx context.Context, in *EnsureGraphDataReq |
return out, nil |
} |
-func (c *depsClient) ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { |
- out := new(google_protobuf1.Empty) |
+func (c *depsClient) ActivateExecution(ctx context.Context, in *ActivateExecutionReq, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) { |
+ out := new(google_protobuf2.Empty) |
err := grpc.Invoke(ctx, "/dm.Deps/ActivateExecution", in, out, c.cc, opts...) |
if err != nil { |
return nil, err |
@@ -119,8 +112,8 @@ func (c *depsClient) ActivateExecution(ctx context.Context, in *ActivateExecutio |
return out, nil |
} |
-func (c *depsClient) FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*google_protobuf1.Empty, error) { |
- out := new(google_protobuf1.Empty) |
+func (c *depsClient) FinishAttempt(ctx context.Context, in *FinishAttemptReq, opts ...grpc.CallOption) (*google_protobuf2.Empty, error) { |
+ out := new(google_protobuf2.Empty) |
err := grpc.Invoke(ctx, "/dm.Deps/FinishAttempt", in, out, c.cc, opts...) |
if err != nil { |
return nil, err |
@@ -137,24 +130,17 @@ func (c *depsClient) WalkGraph(ctx context.Context, in *WalkGraphReq, opts ...gr |
return out, nil |
} |
-func (c *depsClient) ClaimExecution(ctx context.Context, in *google_protobuf1.Empty, opts ...grpc.CallOption) (*ClaimExecutionRsp, error) { |
- out := new(ClaimExecutionRsp) |
- err := grpc.Invoke(ctx, "/dm.Deps/ClaimExecution", in, out, c.cc, opts...) |
- if err != nil { |
- return nil, err |
- } |
- return out, nil |
-} |
- |
// 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) |
- ActivateExecution(context.Context, *ActivateExecutionReq) (*google_protobuf1.Empty, error) |
- FinishAttempt(context.Context, *FinishAttemptReq) (*google_protobuf1.Empty, error) |
+ // is called by Execution clients to activate themselves with DM. |
+ ActivateExecution(context.Context, *ActivateExecutionReq) (*google_protobuf2.Empty, error) |
+ // is called by Execution clients to indicate that an Attempt is finished. |
+ FinishAttempt(context.Context, *FinishAttemptReq) (*google_protobuf2.Empty, error) |
+ // runs queries, and walks along the dependency graph from the query results. |
WalkGraph(context.Context, *WalkGraphReq) (*GraphData, error) |
- // ClaimExecution is a totally temporary hack |
- ClaimExecution(context.Context, *google_protobuf1.Empty) (*ClaimExecutionRsp, error) |
} |
func RegisterDepsServer(s prpc.Registrar, srv DepsServer) { |
@@ -233,24 +219,6 @@ func _Deps_WalkGraph_Handler(srv interface{}, ctx context.Context, dec func(inte |
return interceptor(ctx, in, info, handler) |
} |
-func _Deps_ClaimExecution_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
- in := new(google_protobuf1.Empty) |
- if err := dec(in); err != nil { |
- return nil, err |
- } |
- if interceptor == nil { |
- return srv.(DepsServer).ClaimExecution(ctx, in) |
- } |
- info := &grpc.UnaryServerInfo{ |
- Server: srv, |
- FullMethod: "/dm.Deps/ClaimExecution", |
- } |
- handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
- return srv.(DepsServer).ClaimExecution(ctx, req.(*google_protobuf1.Empty)) |
- } |
- return interceptor(ctx, in, info, handler) |
-} |
- |
var _Deps_serviceDesc = grpc.ServiceDesc{ |
ServiceName: "dm.Deps", |
HandlerType: (*DepsServer)(nil), |
@@ -271,31 +239,26 @@ var _Deps_serviceDesc = grpc.ServiceDesc{ |
MethodName: "WalkGraph", |
Handler: _Deps_WalkGraph_Handler, |
}, |
- { |
- MethodName: "ClaimExecution", |
- Handler: _Deps_ClaimExecution_Handler, |
- }, |
}, |
Streams: []grpc.StreamDesc{}, |
} |
-var fileDescriptor6 = []byte{ |
- // 267 bytes of a gzipped FileDescriptorProto |
- 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x90, 0x51, 0x4b, 0xc3, 0x30, |
- 0x14, 0x85, 0x61, 0x88, 0x60, 0xa0, 0x3a, 0xc3, 0xa6, 0xa3, 0xfe, 0x05, 0xc9, 0x40, 0x9f, 0x45, |
- 0x8a, 0xab, 0xbe, 0xfb, 0xe2, 0x63, 0xc9, 0xda, 0xbb, 0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 0xf4, 0xe1, 0xdd, 0x65, 0x7c, 0x4c, |
- 0xd2, 0x9f, 0x27, 0xc9, 0x22, 0x22, 0xdb, 0x8c, 0xf7, 0xec, 0xf4, 0x81, 0x8a, 0xd9, 0x1e, 0xfc, |
- 0x87, 0x6f, 0x3c, 0x25, 0xe1, 0xee, 0x6c, 0x1f, 0x7a, 0x79, 0xec, 0xc6, 0x6e, 0xbf, 0x03, 0x00, |
- 0x00, 0xff, 0xff, 0x4b, 0x84, 0xce, 0xf2, 0xfd, 0x01, 0x00, 0x00, |
+var fileDescriptor5 = []byte{ |
+ // 242 bytes of a gzipped FileDescriptorProto |
+ 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x09, 0x6e, 0x88, 0x02, 0xff, 0x7c, 0x90, 0x41, 0x4b, 0x03, 0x31, |
+ 0x10, 0x85, 0x51, 0x44, 0x30, 0xb0, 0x58, 0x87, 0xa2, 0x65, 0xfd, 0x0b, 0x92, 0x82, 0x9e, 0x3d, |
+ 0x2c, 0x74, 0xf5, 0xee, 0xc5, 0x63, 0x48, 0x77, 0xa7, 0xdb, 0x60, 0x77, 0x13, 0x93, 0xd9, 0xaa, |
+ 0x3f, 0x5e, 0xb0, 0x93, 0xec, 0x16, 0xb4, 0xd2, 0x63, 0xbe, 0x99, 0xf7, 0xe6, 0xe5, 0x89, 0x2c, |
+ 0xa0, 0xdf, 0x9a, 0x0a, 0xa5, 0xf3, 0x96, 0x2c, 0x9c, 0xd6, 0x6d, 0x7e, 0xdb, 0x58, 0xdb, 0x6c, |
+ 0x70, 0x1e, 0xc9, 0xb2, 0x5f, 0xcd, 0xb1, 0x75, 0xf4, 0x95, 0x16, 0xf2, 0x49, 0xe3, 0xb5, 0x5b, |
+ 0xab, 0x5a, 0x93, 0x1e, 0xc8, 0x0d, 0x76, 0xa1, 0xf7, 0xa8, 0x0e, 0x06, 0x33, 0x5d, 0x91, 0xd9, |
+ 0x6a, 0x42, 0x85, 0x9f, 0x58, 0xf5, 0x64, 0x6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