blob: 6447b8d62e58f8553ad229aaaa3449443ed7cd50 [file] [log] [blame]
// Code generated by protoc-gen-go-grpc. DO NOT EDIT.
package execlog
import (
context "context"
api ""
grpc ""
codes ""
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
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 :=, "/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)
// 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 {
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",