// Code generated by protoc-gen-go-grpc. DO NOT EDIT. // versions: // - protoc-gen-go-grpc v1.6.2 // - protoc (unknown) // source: state/v1/status.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 ( StatusService_RecentLogs_FullMethodName = "/state.v1.StatusService/RecentLogs" StatusService_PutConfigSnapshot_FullMethodName = "/state.v1.StatusService/PutConfigSnapshot" StatusService_GetConfigSnapshot_FullMethodName = "/state.v1.StatusService/GetConfigSnapshot" StatusService_PutChannelStatus_FullMethodName = "/state.v1.StatusService/PutChannelStatus" StatusService_ListChannelStatus_FullMethodName = "/state.v1.StatusService/ListChannelStatus" StatusService_PutApplyStatus_FullMethodName = "/state.v1.StatusService/PutApplyStatus" StatusService_ListApplyStatus_FullMethodName = "/state.v1.StatusService/ListApplyStatus" StatusService_PutPresence_FullMethodName = "/state.v1.StatusService/PutPresence" StatusService_ListPresence_FullMethodName = "/state.v1.StatusService/ListPresence" ) // StatusServiceClient is the client API for StatusService 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 StatusServiceClient interface { RecentLogs(ctx context.Context, in *RecentLogsRequest, opts ...grpc.CallOption) (*RecentLogsResponse, error) // Configuration snapshot: the running configuration as the dashboard // renders it, published by the owner of configuration for the process that // displays it. PutConfigSnapshot is administrative; GetConfigSnapshot is // the UI's read (docs/architecture/migration-decisions.md, "Dashboard // configuration page"). PutConfigSnapshot(ctx context.Context, in *PutConfigSnapshotRequest, opts ...grpc.CallOption) (*PutConfigSnapshotResponse, error) GetConfigSnapshot(ctx context.Context, in *GetConfigSnapshotRequest, opts ...grpc.CallOption) (*GetConfigSnapshotResponse, error) // Channel status is what the process HOSTING the channels observes about them: // one row per channel, written by the Messaging Service and read by the UI // process. Administrative like the config snapshot, and for the same reason -- // a task-scoped grant reaches neither, so authorizesTaskScopedCall admits only // the administrative token. It is runtime state rather than a settings // document, which is why it is not a ControlPlaneService resource kind. PutChannelStatus(ctx context.Context, in *PutChannelStatusRequest, opts ...grpc.CallOption) (*PutChannelStatusResponse, error) ListChannelStatus(ctx context.Context, in *ListChannelStatusRequest, opts ...grpc.CallOption) (*ListChannelStatusResponse, error) // Apply status: which version of a control-plane resource each process is // running, and why it could not. Every process that applies a resource // publishes; the UI process reads (docs/prds/control-plane-apply-status.md). // Both are administrative. PutApplyStatus(ctx context.Context, in *PutApplyStatusRequest, opts ...grpc.CallOption) (*PutApplyStatusResponse, error) ListApplyStatus(ctx context.Context, in *ListApplyStatusRequest, opts ...grpc.CallOption) (*ListApplyStatusResponse, error) // Presence: every running service instance re-stamps one record, so a // record past the staleness window means that instance is down. // Administrative. PutPresence(ctx context.Context, in *PutPresenceRequest, opts ...grpc.CallOption) (*PutPresenceResponse, error) ListPresence(ctx context.Context, in *ListPresenceRequest, opts ...grpc.CallOption) (*ListPresenceResponse, error) } type statusServiceClient struct { cc grpc.ClientConnInterface } func NewStatusServiceClient(cc grpc.ClientConnInterface) StatusServiceClient { return &statusServiceClient{cc} } func (c *statusServiceClient) RecentLogs(ctx context.Context, in *RecentLogsRequest, opts ...grpc.CallOption) (*RecentLogsResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(RecentLogsResponse) err := c.cc.Invoke(ctx, StatusService_RecentLogs_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *statusServiceClient) PutConfigSnapshot(ctx context.Context, in *PutConfigSnapshotRequest, opts ...grpc.CallOption) (*PutConfigSnapshotResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PutConfigSnapshotResponse) err := c.cc.Invoke(ctx, StatusService_PutConfigSnapshot_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *statusServiceClient) GetConfigSnapshot(ctx context.Context, in *GetConfigSnapshotRequest, opts ...grpc.CallOption) (*GetConfigSnapshotResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(GetConfigSnapshotResponse) err := c.cc.Invoke(ctx, StatusService_GetConfigSnapshot_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *statusServiceClient) PutChannelStatus(ctx context.Context, in *PutChannelStatusRequest, opts ...grpc.CallOption) (*PutChannelStatusResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PutChannelStatusResponse) err := c.cc.Invoke(ctx, StatusService_PutChannelStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *statusServiceClient) ListChannelStatus(ctx context.Context, in *ListChannelStatusRequest, opts ...grpc.CallOption) (*ListChannelStatusResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListChannelStatusResponse) err := c.cc.Invoke(ctx, StatusService_ListChannelStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *statusServiceClient) PutApplyStatus(ctx context.Context, in *PutApplyStatusRequest, opts ...grpc.CallOption) (*PutApplyStatusResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PutApplyStatusResponse) err := c.cc.Invoke(ctx, StatusService_PutApplyStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *statusServiceClient) ListApplyStatus(ctx context.Context, in *ListApplyStatusRequest, opts ...grpc.CallOption) (*ListApplyStatusResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListApplyStatusResponse) err := c.cc.Invoke(ctx, StatusService_ListApplyStatus_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *statusServiceClient) PutPresence(ctx context.Context, in *PutPresenceRequest, opts ...grpc.CallOption) (*PutPresenceResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(PutPresenceResponse) err := c.cc.Invoke(ctx, StatusService_PutPresence_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } func (c *statusServiceClient) ListPresence(ctx context.Context, in *ListPresenceRequest, opts ...grpc.CallOption) (*ListPresenceResponse, error) { cOpts := append([]grpc.CallOption{grpc.StaticMethod()}, opts...) out := new(ListPresenceResponse) err := c.cc.Invoke(ctx, StatusService_ListPresence_FullMethodName, in, out, cOpts...) if err != nil { return nil, err } return out, nil } // StatusServiceServer is the server API for StatusService service. // All implementations must embed UnimplementedStatusServiceServer // for forward compatibility. type StatusServiceServer interface { RecentLogs(context.Context, *RecentLogsRequest) (*RecentLogsResponse, error) // Configuration snapshot: the running configuration as the dashboard // renders it, published by the owner of configuration for the process that // displays it. PutConfigSnapshot is administrative; GetConfigSnapshot is // the UI's read (docs/architecture/migration-decisions.md, "Dashboard // configuration page"). PutConfigSnapshot(context.Context, *PutConfigSnapshotRequest) (*PutConfigSnapshotResponse, error) GetConfigSnapshot(context.Context, *GetConfigSnapshotRequest) (*GetConfigSnapshotResponse, error) // Channel status is what the process HOSTING the channels observes about them: // one row per channel, written by the Messaging Service and read by the UI // process. Administrative like the config snapshot, and for the same reason -- // a task-scoped grant reaches neither, so authorizesTaskScopedCall admits only // the administrative token. It is runtime state rather than a settings // document, which is why it is not a ControlPlaneService resource kind. PutChannelStatus(context.Context, *PutChannelStatusRequest) (*PutChannelStatusResponse, error) ListChannelStatus(context.Context, *ListChannelStatusRequest) (*ListChannelStatusResponse, error) // Apply status: which version of a control-plane resource each process is // running, and why it could not. Every process that applies a resource // publishes; the UI process reads (docs/prds/control-plane-apply-status.md). // Both are administrative. PutApplyStatus(context.Context, *PutApplyStatusRequest) (*PutApplyStatusResponse, error) ListApplyStatus(context.Context, *ListApplyStatusRequest) (*ListApplyStatusResponse, error) // Presence: every running service instance re-stamps one record, so a // record past the staleness window means that instance is down. // Administrative. PutPresence(context.Context, *PutPresenceRequest) (*PutPresenceResponse, error) ListPresence(context.Context, *ListPresenceRequest) (*ListPresenceResponse, error) mustEmbedUnimplementedStatusServiceServer() } // UnimplementedStatusServiceServer 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 UnimplementedStatusServiceServer struct{} func (UnimplementedStatusServiceServer) RecentLogs(context.Context, *RecentLogsRequest) (*RecentLogsResponse, error) { return nil, status.Error(codes.Unimplemented, "method RecentLogs not implemented") } func (UnimplementedStatusServiceServer) PutConfigSnapshot(context.Context, *PutConfigSnapshotRequest) (*PutConfigSnapshotResponse, error) { return nil, status.Error(codes.Unimplemented, "method PutConfigSnapshot not implemented") } func (UnimplementedStatusServiceServer) GetConfigSnapshot(context.Context, *GetConfigSnapshotRequest) (*GetConfigSnapshotResponse, error) { return nil, status.Error(codes.Unimplemented, "method GetConfigSnapshot not implemented") } func (UnimplementedStatusServiceServer) PutChannelStatus(context.Context, *PutChannelStatusRequest) (*PutChannelStatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method PutChannelStatus not implemented") } func (UnimplementedStatusServiceServer) ListChannelStatus(context.Context, *ListChannelStatusRequest) (*ListChannelStatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListChannelStatus not implemented") } func (UnimplementedStatusServiceServer) PutApplyStatus(context.Context, *PutApplyStatusRequest) (*PutApplyStatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method PutApplyStatus not implemented") } func (UnimplementedStatusServiceServer) ListApplyStatus(context.Context, *ListApplyStatusRequest) (*ListApplyStatusResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListApplyStatus not implemented") } func (UnimplementedStatusServiceServer) PutPresence(context.Context, *PutPresenceRequest) (*PutPresenceResponse, error) { return nil, status.Error(codes.Unimplemented, "method PutPresence not implemented") } func (UnimplementedStatusServiceServer) ListPresence(context.Context, *ListPresenceRequest) (*ListPresenceResponse, error) { return nil, status.Error(codes.Unimplemented, "method ListPresence not implemented") } func (UnimplementedStatusServiceServer) mustEmbedUnimplementedStatusServiceServer() {} func (UnimplementedStatusServiceServer) testEmbeddedByValue() {} // UnsafeStatusServiceServer may be embedded to opt out of forward compatibility for this service. // Use of this interface is not recommended, as added methods to StatusServiceServer will // result in compilation errors. type UnsafeStatusServiceServer interface { mustEmbedUnimplementedStatusServiceServer() } func RegisterStatusServiceServer(s grpc.ServiceRegistrar, srv StatusServiceServer) { // If the following call panics, it indicates UnimplementedStatusServiceServer 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(&StatusService_ServiceDesc, srv) } func _StatusService_RecentLogs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(RecentLogsRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).RecentLogs(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_RecentLogs_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).RecentLogs(ctx, req.(*RecentLogsRequest)) } return interceptor(ctx, in, info, handler) } func _StatusService_PutConfigSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PutConfigSnapshotRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).PutConfigSnapshot(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_PutConfigSnapshot_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).PutConfigSnapshot(ctx, req.(*PutConfigSnapshotRequest)) } return interceptor(ctx, in, info, handler) } func _StatusService_GetConfigSnapshot_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(GetConfigSnapshotRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).GetConfigSnapshot(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_GetConfigSnapshot_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).GetConfigSnapshot(ctx, req.(*GetConfigSnapshotRequest)) } return interceptor(ctx, in, info, handler) } func _StatusService_PutChannelStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PutChannelStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).PutChannelStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_PutChannelStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).PutChannelStatus(ctx, req.(*PutChannelStatusRequest)) } return interceptor(ctx, in, info, handler) } func _StatusService_ListChannelStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListChannelStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).ListChannelStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_ListChannelStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).ListChannelStatus(ctx, req.(*ListChannelStatusRequest)) } return interceptor(ctx, in, info, handler) } func _StatusService_PutApplyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PutApplyStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).PutApplyStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_PutApplyStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).PutApplyStatus(ctx, req.(*PutApplyStatusRequest)) } return interceptor(ctx, in, info, handler) } func _StatusService_ListApplyStatus_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListApplyStatusRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).ListApplyStatus(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_ListApplyStatus_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).ListApplyStatus(ctx, req.(*ListApplyStatusRequest)) } return interceptor(ctx, in, info, handler) } func _StatusService_PutPresence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(PutPresenceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).PutPresence(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_PutPresence_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).PutPresence(ctx, req.(*PutPresenceRequest)) } return interceptor(ctx, in, info, handler) } func _StatusService_ListPresence_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { in := new(ListPresenceRequest) if err := dec(in); err != nil { return nil, err } if interceptor == nil { return srv.(StatusServiceServer).ListPresence(ctx, in) } info := &grpc.UnaryServerInfo{ Server: srv, FullMethod: StatusService_ListPresence_FullMethodName, } handler := func(ctx context.Context, req interface{}) (interface{}, error) { return srv.(StatusServiceServer).ListPresence(ctx, req.(*ListPresenceRequest)) } return interceptor(ctx, in, info, handler) } // StatusService_ServiceDesc is the grpc.ServiceDesc for StatusService service. // It's only intended for direct use with grpc.RegisterService, // and not to be introspected or modified (even as a copy) var StatusService_ServiceDesc = grpc.ServiceDesc{ ServiceName: "state.v1.StatusService", HandlerType: (*StatusServiceServer)(nil), Methods: []grpc.MethodDesc{ { MethodName: "RecentLogs", Handler: _StatusService_RecentLogs_Handler, }, { MethodName: "PutConfigSnapshot", Handler: _StatusService_PutConfigSnapshot_Handler, }, { MethodName: "GetConfigSnapshot", Handler: _StatusService_GetConfigSnapshot_Handler, }, { MethodName: "PutChannelStatus", Handler: _StatusService_PutChannelStatus_Handler, }, { MethodName: "ListChannelStatus", Handler: _StatusService_ListChannelStatus_Handler, }, { MethodName: "PutApplyStatus", Handler: _StatusService_PutApplyStatus_Handler, }, { MethodName: "ListApplyStatus", Handler: _StatusService_ListApplyStatus_Handler, }, { MethodName: "PutPresence", Handler: _StatusService_PutPresence_Handler, }, { MethodName: "ListPresence", Handler: _StatusService_ListPresence_Handler, }, }, Streams: []grpc.StreamDesc{}, Metadata: "state/v1/status.proto", }