// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.2 // - protoc (unknown) // source: state/v1/schedule.proto package statev1 import ( context "context" 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.64.0 or later. const _ = grpc.SupportPackageIsVersion9 const ( ScheduleService_ListSchedules_FullMethodName = "/state.v1.ScheduleService/ListSchedules" ScheduleService_GetSchedule_FullMethodName = "/state.v1.ScheduleService/GetSchedule" ScheduleService_PutSchedule_FullMethodName = "/state.v1.ScheduleService/PutSchedule" ScheduleService_DeleteSchedule_FullMethodName = "/state.v1.ScheduleService/DeleteSchedule" ScheduleService_EnsureBuiltinSchedules_FullMethodName = "/state.v1.ScheduleService/EnsureBuiltinSchedules" ScheduleService_ClaimDueRuns_FullMethodName = "/state.v1.ScheduleService/ClaimDueRuns" ScheduleService_RequestScheduleRun_FullMethodName = "/state.v1.ScheduleService/RequestScheduleRun" ScheduleService_FinishScheduleRun_FullMethodName = "/state.v1.ScheduleService/FinishScheduleRun" ScheduleService_SetScheduleRunCapture_FullMethodName = "/state.v1.ScheduleService/SetScheduleRunCapture" ScheduleService_ListScheduleRuns_FullMethodName = "/state.v1.ScheduleService/ListScheduleRuns" ) // ScheduleServiceClient is the client API for ScheduleService 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. // // Schedules and their runs (internal/domain/scheduling). The scheduler in // archied claims due runs and records their results; the dashboard edits // schedules and reads runs. Cron is read in the instance zone from the // schedule-settings resource. type ScheduleServiceClient interface { ListSchedules(ctx context.Context, in *ListSchedulesRequest, opts ...grpc.CallOption) (*ListSchedulesResponse, error) GetSchedule(ctx context.Context, in *GetScheduleRequest, opts ...grpc.CallOption) (*GetScheduleResponse, error) PutSchedule(ctx context.Context, in *PutScheduleRequest, opts ...grpc.CallOption) (*PutScheduleResponse, error) DeleteSchedule(ctx context.Context, in *DeleteScheduleRequest, opts ...grpc.CallOption) (*DeleteScheduleResponse, error) EnsureBuiltinSchedules(ctx context.Context, in *EnsureBuiltinSchedulesRequest, opts ...grpc.CallOption) (*EnsureBuiltinSchedulesResponse, error) ClaimDueRuns(ctx context.Context, in *ClaimDueRunsRequest, opts ...grpc.CallOption) (*ClaimDueRunsResponse, error) RequestScheduleRun(ctx context.Context, in *RequestScheduleRunRequest, opts ...grpc.CallOption) (*RequestScheduleRunResponse, error) FinishScheduleRun(ctx context.Context, in *FinishScheduleRunRequest, opts ...grpc.CallOption) (*FinishScheduleRunResponse, error) SetScheduleRunCapture(ctx context.Context, in *SetScheduleRunCaptureRequest, opts ...grpc.CallOption) (*SetScheduleRunCaptureResponse, error) ListScheduleRuns(ctx context.Context, in *ListScheduleRunsRequest, opts ...grpc.CallOption) (*ListScheduleRunsResponse, error) } type scheduleServiceClient struct { cc grpc.ClientConnInterface } func NewScheduleServiceClient(cc grpc.ClientConnInterface) ScheduleServiceClient { return &scheduleServiceClient{cc} } func (c *scheduleServiceClient) ListSchedules(ctx context.Context, in *ListSchedulesRequest, opts ...grpc.CallOption) (*ListSchedulesResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListSchedulesResponse) err := c.cc.Invoke(ctx, ScheduleService_ListSchedules_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) GetSchedule(ctx context.Context, in *GetScheduleRequest, opts ...grpc.CallOption) (*GetScheduleResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetScheduleResponse) err := c.cc.Invoke(ctx, ScheduleService_GetSchedule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) PutSchedule(ctx context.Context, in *PutScheduleRequest, opts ...grpc.CallOption) (*PutScheduleResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PutScheduleResponse) err := c.cc.Invoke(ctx, ScheduleService_PutSchedule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) DeleteSchedule(ctx context.Context, in *DeleteScheduleRequest, opts ...grpc.CallOption) (*DeleteScheduleResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(DeleteScheduleResponse) err := c.cc.Invoke(ctx, ScheduleService_DeleteSchedule_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) EnsureBuiltinSchedules(ctx context.Context, in *EnsureBuiltinSchedulesRequest, opts ...grpc.CallOption) (*EnsureBuiltinSchedulesResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(EnsureBuiltinSchedulesResponse) err := c.cc.Invoke(ctx, ScheduleService_EnsureBuiltinSchedules_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) ClaimDueRuns(ctx context.Context, in *ClaimDueRunsRequest, opts ...grpc.CallOption) (*ClaimDueRunsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ClaimDueRunsResponse) err := c.cc.Invoke(ctx, ScheduleService_ClaimDueRuns_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) RequestScheduleRun(ctx context.Context, in *RequestScheduleRunRequest, opts ...grpc.CallOption) (*RequestScheduleRunResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RequestScheduleRunResponse) err := c.cc.Invoke(ctx, ScheduleService_RequestScheduleRun_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) FinishScheduleRun(ctx context.Context, in *FinishScheduleRunRequest, opts ...grpc.CallOption) (*FinishScheduleRunResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(FinishScheduleRunResponse) err := c.cc.Invoke(ctx, ScheduleService_FinishScheduleRun_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) SetScheduleRunCapture(ctx context.Context, in *SetScheduleRunCaptureRequest, opts ...grpc.CallOption) (*SetScheduleRunCaptureResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(SetScheduleRunCaptureResponse) err := c.cc.Invoke(ctx, ScheduleService_SetScheduleRunCapture_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *scheduleServiceClient) ListScheduleRuns(ctx context.Context, in *ListScheduleRunsRequest, opts ...grpc.CallOption) (*ListScheduleRunsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListScheduleRunsResponse) err := c.cc.Invoke(ctx, ScheduleService_ListScheduleRuns_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // ScheduleServiceServer is the server API for ScheduleService service. // All implementations must embed UnimplementedScheduleServiceServer // for forward compatibility. // // Schedules and their runs (internal/domain/scheduling). The scheduler in // archied claims due runs and records their results; the dashboard edits // schedules and reads runs. Cron is read in the instance zone from the // schedule-settings resource. type ScheduleServiceServer interface { ListSchedules(context.Context, *ListSchedulesRequest) (*ListSchedulesResponse, error) GetSchedule(context.Context, *GetScheduleRequest) (*GetScheduleResponse, error) PutSchedule(context.Context, *PutScheduleRequest) (*PutScheduleResponse, error) DeleteSchedule(context.Context, *DeleteScheduleRequest) (*DeleteScheduleResponse, error) EnsureBuiltinSchedules(context.Context, *EnsureBuiltinSchedulesRequest) (*EnsureBuiltinSchedulesResponse, error) ClaimDueRuns(context.Context, *ClaimDueRunsRequest) (*ClaimDueRunsResponse, error) RequestScheduleRun(context.Context, *RequestScheduleRunRequest) (*RequestScheduleRunResponse, error) FinishScheduleRun(context.Context, *FinishScheduleRunRequest) (*FinishScheduleRunResponse, error) SetScheduleRunCapture(context.Context, *SetScheduleRunCaptureRequest) (*SetScheduleRunCaptureResponse, error) ListScheduleRuns(context.Context, *ListScheduleRunsRequest) (*ListScheduleRunsResponse, error) mustEmbedUnimplementedScheduleServiceServer() } // UnimplementedScheduleServiceServer must be embedded to have // forward compatible implementations. // // NOTE: this should be embedded by value instead of pointer to avoid a nil // pointer dereference when methods are called. type UnimplementedScheduleServiceServer struct{} func (UnimplementedScheduleServiceServer) ListSchedules(context.Context, *ListSchedulesRequest) (*ListSchedulesResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListSchedules not implemented") } func (UnimplementedScheduleServiceServer) GetSchedule(context.Context, *GetScheduleRequest) (*GetScheduleResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetSchedule not implemented") } func (UnimplementedScheduleServiceServer) PutSchedule(context.Context, *PutScheduleRequest) (*PutScheduleResponse, error) { return nil, status.Error(codes.Unimplemented, "method PutSchedule not implemented") } func (UnimplementedScheduleServiceServer) DeleteSchedule(context.Context, *DeleteScheduleRequest) (*DeleteScheduleResponse, error) { return nil, status.Error(codes.Unimplemented, "method DeleteSchedule not implemented") } func (UnimplementedScheduleServiceServer) EnsureBuiltinSchedules(context.Context, *EnsureBuiltinSchedulesRequest) (*EnsureBuiltinSchedulesResponse, error) { return nil, status.Error(codes.Unimplemented, "method EnsureBuiltinSchedules not implemented") } func (UnimplementedScheduleServiceServer) ClaimDueRuns(context.Context, *ClaimDueRunsRequest) (*ClaimDueRunsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ClaimDueRuns not implemented") } func (UnimplementedScheduleServiceServer) RequestScheduleRun(context.Context, *RequestScheduleRunRequest) (*RequestScheduleRunResponse, error) { return nil, status.Error(codes.Unimplemented, "method RequestScheduleRun not implemented") } func (UnimplementedScheduleServiceServer) FinishScheduleRun(context.Context, *FinishScheduleRunRequest) (*FinishScheduleRunResponse, error) { return nil, status.Error(codes.Unimplemented, "method FinishScheduleRun not implemented") } func (UnimplementedScheduleServiceServer) SetScheduleRunCapture(context.Context, *SetScheduleRunCaptureRequest) (*SetScheduleRunCaptureResponse, error) { return nil, status.Error(codes.Unimplemented, "method SetScheduleRunCapture not implemented") } func (UnimplementedScheduleServiceServer) ListScheduleRuns(context.Context, *ListScheduleRunsRequest) (*ListScheduleRunsResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListScheduleRuns not implemented") } func (UnimplementedScheduleServiceServer) mustEmbedUnimplementedScheduleServiceServer() {} func (UnimplementedScheduleServiceServer) testEmbeddedByValue() {} // UnsafeScheduleServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to ScheduleServiceServer will // result in compilation errors. type UnsafeScheduleServiceServer interface { mustEmbedUnimplementedScheduleServiceServer() } func RegisterScheduleServiceServer(s grpc.ServiceRegistrar, srv ScheduleServiceServer) { // If the following call panics, it indicates UnimplementedScheduleServiceServer was // embedded by pointer and is nil. This will cause panics if an // unimplemented method is ever invoked, so we test this at initialization // time to prevent it from happening at runtime later due to I/O. if t, ok := srv.(interface{ testEmbeddedByValue() }); ok { t.testEmbeddedByValue() } s.RegisterService(&ScheduleService_ServiceDesc, srv) } func _ScheduleService_ListSchedules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListSchedulesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).ListSchedules(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_ListSchedules_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).ListSchedules(ctx, req.(*ListSchedulesRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_GetSchedule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetScheduleRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).GetSchedule(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_GetSchedule_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).GetSchedule(ctx, req.(*GetScheduleRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_PutSchedule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PutScheduleRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).PutSchedule(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_PutSchedule_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).PutSchedule(ctx, req.(*PutScheduleRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_DeleteSchedule_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(DeleteScheduleRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).DeleteSchedule(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_DeleteSchedule_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).DeleteSchedule(ctx, req.(*DeleteScheduleRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_EnsureBuiltinSchedules_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(EnsureBuiltinSchedulesRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).EnsureBuiltinSchedules(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_EnsureBuiltinSchedules_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).EnsureBuiltinSchedules(ctx, req.(*EnsureBuiltinSchedulesRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_ClaimDueRuns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ClaimDueRunsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).ClaimDueRuns(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_ClaimDueRuns_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).ClaimDueRuns(ctx, req.(*ClaimDueRunsRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_RequestScheduleRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RequestScheduleRunRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).RequestScheduleRun(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_RequestScheduleRun_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).RequestScheduleRun(ctx, req.(*RequestScheduleRunRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_FinishScheduleRun_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(FinishScheduleRunRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).FinishScheduleRun(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_FinishScheduleRun_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).FinishScheduleRun(ctx, req.(*FinishScheduleRunRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_SetScheduleRunCapture_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(SetScheduleRunCaptureRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).SetScheduleRunCapture(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_SetScheduleRunCapture_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).SetScheduleRunCapture(ctx, req.(*SetScheduleRunCaptureRequest)) } return interceptor(ctx, in, info, handler) } func _ScheduleService_ListScheduleRuns_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListScheduleRunsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(ScheduleServiceServer).ListScheduleRuns(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: ScheduleService_ListScheduleRuns_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(ScheduleServiceServer).ListScheduleRuns(ctx, req.(*ListScheduleRunsRequest)) } return interceptor(ctx, in, info, handler) } // ScheduleService_ServiceDesc is the grpc.ServiceDesc for ScheduleService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var ScheduleService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "state.v1.ScheduleService", HandlerType: (*ScheduleServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "ListSchedules", Handler: _ScheduleService_ListSchedules_Handler, }, { MethodName: "GetSchedule", Handler: _ScheduleService_GetSchedule_Handler, }, { MethodName: "PutSchedule", Handler: _ScheduleService_PutSchedule_Handler, }, { MethodName: "DeleteSchedule", Handler: _ScheduleService_DeleteSchedule_Handler, }, { MethodName: "EnsureBuiltinSchedules", Handler: _ScheduleService_EnsureBuiltinSchedules_Handler, }, { MethodName: "ClaimDueRuns", Handler: _ScheduleService_ClaimDueRuns_Handler, }, { MethodName: "RequestScheduleRun", Handler: _ScheduleService_RequestScheduleRun_Handler, }, { MethodName: "FinishScheduleRun", Handler: _ScheduleService_FinishScheduleRun_Handler, }, { MethodName: "SetScheduleRunCapture", Handler: _ScheduleService_SetScheduleRunCapture_Handler, }, { MethodName: "ListScheduleRuns", Handler: _ScheduleService_ListScheduleRuns_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "state/v1/schedule.proto", }