| // Code generated by protoc-gen-go-grpc. DO NOT EDIT. |
| |
| package execlog |
| |
| import ( |
| context "context" |
| api "go.chromium.org/goma/server/proto/api" |
| grpc "google.golang.org/grpc" |
| codes "google.golang.org/grpc/codes" |
| status "google.golang.org/grpc/status" |
| ) |
| |
| // This is a compile-time assertion to ensure that this generated file |
| // is compatible with the grpc package it is being compiled against. |
| // Requires gRPC-Go v1.32.0 or later. |
| const _ = grpc.SupportPackageIsVersion7 |
| |
| // LogServiceClient is the client API for LogService service. |
| // |
| // For semantics around ctx use and closing/ending streaming RPCs, please refer to https://pkg.go.dev/google.golang.org/grpc/?tab=doc#ClientConn.NewStream. |
| type LogServiceClient interface { |
| SaveLog(ctx context.Context, in *api.SaveLogReq, opts ...grpc.CallOption) (*api.SaveLogResp, error) |
| } |
| |
| type logServiceClient struct { |
| cc grpc.ClientConnInterface |
| } |
| |
| func NewLogServiceClient(cc grpc.ClientConnInterface) LogServiceClient { |
| return &logServiceClient{cc} |
| } |
| |
| func (c *logServiceClient) SaveLog(ctx context.Context, in *api.SaveLogReq, opts ...grpc.CallOption) (*api.SaveLogResp, error) { |
| out := new(api.SaveLogResp) |
| err := c.cc.Invoke(ctx, "/devtools_goma.LogService/SaveLog", in, out, opts...) |
| if err != nil { |
| return nil, err |
| } |
| return out, nil |
| } |
| |
| // LogServiceServer is the server API for LogService service. |
| // All implementations must embed UnimplementedLogServiceServer |
| // for forward compatibility |
| type LogServiceServer interface { |
| SaveLog(context.Context, *api.SaveLogReq) (*api.SaveLogResp, error) |
| mustEmbedUnimplementedLogServiceServer() |
| } |
| |
| // UnimplementedLogServiceServer must be embedded to have forward compatible implementations. |
| type UnimplementedLogServiceServer struct { |
| } |
| |
| func (UnimplementedLogServiceServer) SaveLog(context.Context, *api.SaveLogReq) (*api.SaveLogResp, error) { |
| return nil, status.Errorf(codes.Unimplemented, "method SaveLog not implemented") |
| } |
| func (UnimplementedLogServiceServer) mustEmbedUnimplementedLogServiceServer() {} |
| |
| // UnsafeLogServiceServer may be embedded to opt out of forward compatibility for this service. |
| // Use of this interface is not recommended, as added methods to LogServiceServer will |
| // result in compilation errors. |
| type UnsafeLogServiceServer interface { |
| mustEmbedUnimplementedLogServiceServer() |
| } |
| |
| func RegisterLogServiceServer(s grpc.ServiceRegistrar, srv LogServiceServer) { |
| s.RegisterService(&LogService_ServiceDesc, srv) |
| } |
| |
| func _LogService_SaveLog_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| in := new(api.SaveLogReq) |
| if err := dec(in); err != nil { |
| return nil, err |
| } |
| if interceptor == nil { |
| return srv.(LogServiceServer).SaveLog(ctx, in) |
| } |
| info := &grpc.UnaryServerInfo{ |
| Server: srv, |
| FullMethod: "/devtools_goma.LogService/SaveLog", |
| } |
| handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| return srv.(LogServiceServer).SaveLog(ctx, req.(*api.SaveLogReq)) |
| } |
| return interceptor(ctx, in, info, handler) |
| } |
| |
| // LogService_ServiceDesc is the grpc.ServiceDesc for LogService service. |
| // It's only intended for direct use with grpc.RegisterService, |
| // and not to be introspected or modified (even as a copy) |
| var LogService_ServiceDesc = grpc.ServiceDesc{ |
| ServiceName: "devtools_goma.LogService", |
| HandlerType: (*LogServiceServer)(nil), |
| Methods: []grpc.MethodDesc{ |
| { |
| MethodName: "SaveLog", |
| Handler: _LogService_SaveLog_Handler, |
| }, |
| }, |
| Streams: []grpc.StreamDesc{}, |
| Metadata: "execlog/log_service.proto", |
| } |