github.com/castai/kvisor@v1.7.1-0.20240516114728-b3572a2607b5/api/v1/runtime/runtime_agent_api_grpc.pb.go (about)

     1  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
     2  // versions:
     3  // - protoc-gen-go-grpc v1.2.0
     4  // - protoc             v5.26.1
     5  // source: api/v1/runtime/runtime_agent_api.proto
     6  
     7  package v1
     8  
     9  import (
    10  	context "context"
    11  	grpc "google.golang.org/grpc"
    12  	codes "google.golang.org/grpc/codes"
    13  	status "google.golang.org/grpc/status"
    14  )
    15  
    16  // This is a compile-time assertion to ensure that this generated file
    17  // is compatible with the grpc package it is being compiled against.
    18  // Requires gRPC-Go v1.32.0 or later.
    19  const _ = grpc.SupportPackageIsVersion7
    20  
    21  // RuntimeSecurityAgentAPIClient is the client API for RuntimeSecurityAgentAPI service.
    22  //
    23  // 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.
    24  type RuntimeSecurityAgentAPIClient interface {
    25  	GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error)
    26  	EventsWriteStream(ctx context.Context, opts ...grpc.CallOption) (RuntimeSecurityAgentAPI_EventsWriteStreamClient, error)
    27  	LogsWriteStream(ctx context.Context, opts ...grpc.CallOption) (RuntimeSecurityAgentAPI_LogsWriteStreamClient, error)
    28  	ContainerStatsWriteStream(ctx context.Context, opts ...grpc.CallOption) (RuntimeSecurityAgentAPI_ContainerStatsWriteStreamClient, error)
    29  	GetSyncState(ctx context.Context, in *GetSyncStateRequest, opts ...grpc.CallOption) (*GetSyncStateResponse, error)
    30  	UpdateSyncState(ctx context.Context, in *UpdateSyncStateRequest, opts ...grpc.CallOption) (*UpdateSyncStateResponse, error)
    31  	KubernetesDeltaIngest(ctx context.Context, opts ...grpc.CallOption) (RuntimeSecurityAgentAPI_KubernetesDeltaIngestClient, error)
    32  	ImageMetadataIngest(ctx context.Context, in *ImageMetadata, opts ...grpc.CallOption) (*ImageMetadataIngestResponse, error)
    33  	KubeBenchReportIngest(ctx context.Context, in *KubeBenchReport, opts ...grpc.CallOption) (*KubeBenchReportIngestResponse, error)
    34  	KubeLinterReportIngest(ctx context.Context, in *KubeLinterReport, opts ...grpc.CallOption) (*KubeLinterReportIngestResponse, error)
    35  }
    36  
    37  type runtimeSecurityAgentAPIClient struct {
    38  	cc grpc.ClientConnInterface
    39  }
    40  
    41  func NewRuntimeSecurityAgentAPIClient(cc grpc.ClientConnInterface) RuntimeSecurityAgentAPIClient {
    42  	return &runtimeSecurityAgentAPIClient{cc}
    43  }
    44  
    45  func (c *runtimeSecurityAgentAPIClient) GetConfiguration(ctx context.Context, in *GetConfigurationRequest, opts ...grpc.CallOption) (*GetConfigurationResponse, error) {
    46  	out := new(GetConfigurationResponse)
    47  	err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeSecurityAgentAPI/GetConfiguration", in, out, opts...)
    48  	if err != nil {
    49  		return nil, err
    50  	}
    51  	return out, nil
    52  }
    53  
    54  func (c *runtimeSecurityAgentAPIClient) EventsWriteStream(ctx context.Context, opts ...grpc.CallOption) (RuntimeSecurityAgentAPI_EventsWriteStreamClient, error) {
    55  	stream, err := c.cc.NewStream(ctx, &RuntimeSecurityAgentAPI_ServiceDesc.Streams[0], "/runtime.v1.RuntimeSecurityAgentAPI/EventsWriteStream", opts...)
    56  	if err != nil {
    57  		return nil, err
    58  	}
    59  	x := &runtimeSecurityAgentAPIEventsWriteStreamClient{stream}
    60  	return x, nil
    61  }
    62  
    63  type RuntimeSecurityAgentAPI_EventsWriteStreamClient interface {
    64  	Send(*Event) error
    65  	CloseAndRecv() (*WriteStreamResponse, error)
    66  	grpc.ClientStream
    67  }
    68  
    69  type runtimeSecurityAgentAPIEventsWriteStreamClient struct {
    70  	grpc.ClientStream
    71  }
    72  
    73  func (x *runtimeSecurityAgentAPIEventsWriteStreamClient) Send(m *Event) error {
    74  	return x.ClientStream.SendMsg(m)
    75  }
    76  
    77  func (x *runtimeSecurityAgentAPIEventsWriteStreamClient) CloseAndRecv() (*WriteStreamResponse, error) {
    78  	if err := x.ClientStream.CloseSend(); err != nil {
    79  		return nil, err
    80  	}
    81  	m := new(WriteStreamResponse)
    82  	if err := x.ClientStream.RecvMsg(m); err != nil {
    83  		return nil, err
    84  	}
    85  	return m, nil
    86  }
    87  
    88  func (c *runtimeSecurityAgentAPIClient) LogsWriteStream(ctx context.Context, opts ...grpc.CallOption) (RuntimeSecurityAgentAPI_LogsWriteStreamClient, error) {
    89  	stream, err := c.cc.NewStream(ctx, &RuntimeSecurityAgentAPI_ServiceDesc.Streams[1], "/runtime.v1.RuntimeSecurityAgentAPI/LogsWriteStream", opts...)
    90  	if err != nil {
    91  		return nil, err
    92  	}
    93  	x := &runtimeSecurityAgentAPILogsWriteStreamClient{stream}
    94  	return x, nil
    95  }
    96  
    97  type RuntimeSecurityAgentAPI_LogsWriteStreamClient interface {
    98  	Send(*LogEvent) error
    99  	CloseAndRecv() (*WriteStreamResponse, error)
   100  	grpc.ClientStream
   101  }
   102  
   103  type runtimeSecurityAgentAPILogsWriteStreamClient struct {
   104  	grpc.ClientStream
   105  }
   106  
   107  func (x *runtimeSecurityAgentAPILogsWriteStreamClient) Send(m *LogEvent) error {
   108  	return x.ClientStream.SendMsg(m)
   109  }
   110  
   111  func (x *runtimeSecurityAgentAPILogsWriteStreamClient) CloseAndRecv() (*WriteStreamResponse, error) {
   112  	if err := x.ClientStream.CloseSend(); err != nil {
   113  		return nil, err
   114  	}
   115  	m := new(WriteStreamResponse)
   116  	if err := x.ClientStream.RecvMsg(m); err != nil {
   117  		return nil, err
   118  	}
   119  	return m, nil
   120  }
   121  
   122  func (c *runtimeSecurityAgentAPIClient) ContainerStatsWriteStream(ctx context.Context, opts ...grpc.CallOption) (RuntimeSecurityAgentAPI_ContainerStatsWriteStreamClient, error) {
   123  	stream, err := c.cc.NewStream(ctx, &RuntimeSecurityAgentAPI_ServiceDesc.Streams[2], "/runtime.v1.RuntimeSecurityAgentAPI/ContainerStatsWriteStream", opts...)
   124  	if err != nil {
   125  		return nil, err
   126  	}
   127  	x := &runtimeSecurityAgentAPIContainerStatsWriteStreamClient{stream}
   128  	return x, nil
   129  }
   130  
   131  type RuntimeSecurityAgentAPI_ContainerStatsWriteStreamClient interface {
   132  	Send(*ContainerStatsBatch) error
   133  	CloseAndRecv() (*WriteStreamResponse, error)
   134  	grpc.ClientStream
   135  }
   136  
   137  type runtimeSecurityAgentAPIContainerStatsWriteStreamClient struct {
   138  	grpc.ClientStream
   139  }
   140  
   141  func (x *runtimeSecurityAgentAPIContainerStatsWriteStreamClient) Send(m *ContainerStatsBatch) error {
   142  	return x.ClientStream.SendMsg(m)
   143  }
   144  
   145  func (x *runtimeSecurityAgentAPIContainerStatsWriteStreamClient) CloseAndRecv() (*WriteStreamResponse, error) {
   146  	if err := x.ClientStream.CloseSend(); err != nil {
   147  		return nil, err
   148  	}
   149  	m := new(WriteStreamResponse)
   150  	if err := x.ClientStream.RecvMsg(m); err != nil {
   151  		return nil, err
   152  	}
   153  	return m, nil
   154  }
   155  
   156  func (c *runtimeSecurityAgentAPIClient) GetSyncState(ctx context.Context, in *GetSyncStateRequest, opts ...grpc.CallOption) (*GetSyncStateResponse, error) {
   157  	out := new(GetSyncStateResponse)
   158  	err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeSecurityAgentAPI/GetSyncState", in, out, opts...)
   159  	if err != nil {
   160  		return nil, err
   161  	}
   162  	return out, nil
   163  }
   164  
   165  func (c *runtimeSecurityAgentAPIClient) UpdateSyncState(ctx context.Context, in *UpdateSyncStateRequest, opts ...grpc.CallOption) (*UpdateSyncStateResponse, error) {
   166  	out := new(UpdateSyncStateResponse)
   167  	err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeSecurityAgentAPI/UpdateSyncState", in, out, opts...)
   168  	if err != nil {
   169  		return nil, err
   170  	}
   171  	return out, nil
   172  }
   173  
   174  func (c *runtimeSecurityAgentAPIClient) KubernetesDeltaIngest(ctx context.Context, opts ...grpc.CallOption) (RuntimeSecurityAgentAPI_KubernetesDeltaIngestClient, error) {
   175  	stream, err := c.cc.NewStream(ctx, &RuntimeSecurityAgentAPI_ServiceDesc.Streams[3], "/runtime.v1.RuntimeSecurityAgentAPI/KubernetesDeltaIngest", opts...)
   176  	if err != nil {
   177  		return nil, err
   178  	}
   179  	x := &runtimeSecurityAgentAPIKubernetesDeltaIngestClient{stream}
   180  	return x, nil
   181  }
   182  
   183  type RuntimeSecurityAgentAPI_KubernetesDeltaIngestClient interface {
   184  	Send(*KubernetesDeltaItem) error
   185  	Recv() (*KubernetesDeltaIngestResponse, error)
   186  	grpc.ClientStream
   187  }
   188  
   189  type runtimeSecurityAgentAPIKubernetesDeltaIngestClient struct {
   190  	grpc.ClientStream
   191  }
   192  
   193  func (x *runtimeSecurityAgentAPIKubernetesDeltaIngestClient) Send(m *KubernetesDeltaItem) error {
   194  	return x.ClientStream.SendMsg(m)
   195  }
   196  
   197  func (x *runtimeSecurityAgentAPIKubernetesDeltaIngestClient) Recv() (*KubernetesDeltaIngestResponse, error) {
   198  	m := new(KubernetesDeltaIngestResponse)
   199  	if err := x.ClientStream.RecvMsg(m); err != nil {
   200  		return nil, err
   201  	}
   202  	return m, nil
   203  }
   204  
   205  func (c *runtimeSecurityAgentAPIClient) ImageMetadataIngest(ctx context.Context, in *ImageMetadata, opts ...grpc.CallOption) (*ImageMetadataIngestResponse, error) {
   206  	out := new(ImageMetadataIngestResponse)
   207  	err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeSecurityAgentAPI/ImageMetadataIngest", in, out, opts...)
   208  	if err != nil {
   209  		return nil, err
   210  	}
   211  	return out, nil
   212  }
   213  
   214  func (c *runtimeSecurityAgentAPIClient) KubeBenchReportIngest(ctx context.Context, in *KubeBenchReport, opts ...grpc.CallOption) (*KubeBenchReportIngestResponse, error) {
   215  	out := new(KubeBenchReportIngestResponse)
   216  	err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeSecurityAgentAPI/KubeBenchReportIngest", in, out, opts...)
   217  	if err != nil {
   218  		return nil, err
   219  	}
   220  	return out, nil
   221  }
   222  
   223  func (c *runtimeSecurityAgentAPIClient) KubeLinterReportIngest(ctx context.Context, in *KubeLinterReport, opts ...grpc.CallOption) (*KubeLinterReportIngestResponse, error) {
   224  	out := new(KubeLinterReportIngestResponse)
   225  	err := c.cc.Invoke(ctx, "/runtime.v1.RuntimeSecurityAgentAPI/KubeLinterReportIngest", in, out, opts...)
   226  	if err != nil {
   227  		return nil, err
   228  	}
   229  	return out, nil
   230  }
   231  
   232  // RuntimeSecurityAgentAPIServer is the server API for RuntimeSecurityAgentAPI service.
   233  // All implementations should embed UnimplementedRuntimeSecurityAgentAPIServer
   234  // for forward compatibility
   235  type RuntimeSecurityAgentAPIServer interface {
   236  	GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error)
   237  	EventsWriteStream(RuntimeSecurityAgentAPI_EventsWriteStreamServer) error
   238  	LogsWriteStream(RuntimeSecurityAgentAPI_LogsWriteStreamServer) error
   239  	ContainerStatsWriteStream(RuntimeSecurityAgentAPI_ContainerStatsWriteStreamServer) error
   240  	GetSyncState(context.Context, *GetSyncStateRequest) (*GetSyncStateResponse, error)
   241  	UpdateSyncState(context.Context, *UpdateSyncStateRequest) (*UpdateSyncStateResponse, error)
   242  	KubernetesDeltaIngest(RuntimeSecurityAgentAPI_KubernetesDeltaIngestServer) error
   243  	ImageMetadataIngest(context.Context, *ImageMetadata) (*ImageMetadataIngestResponse, error)
   244  	KubeBenchReportIngest(context.Context, *KubeBenchReport) (*KubeBenchReportIngestResponse, error)
   245  	KubeLinterReportIngest(context.Context, *KubeLinterReport) (*KubeLinterReportIngestResponse, error)
   246  }
   247  
   248  // UnimplementedRuntimeSecurityAgentAPIServer should be embedded to have forward compatible implementations.
   249  type UnimplementedRuntimeSecurityAgentAPIServer struct {
   250  }
   251  
   252  func (UnimplementedRuntimeSecurityAgentAPIServer) GetConfiguration(context.Context, *GetConfigurationRequest) (*GetConfigurationResponse, error) {
   253  	return nil, status.Errorf(codes.Unimplemented, "method GetConfiguration not implemented")
   254  }
   255  func (UnimplementedRuntimeSecurityAgentAPIServer) EventsWriteStream(RuntimeSecurityAgentAPI_EventsWriteStreamServer) error {
   256  	return status.Errorf(codes.Unimplemented, "method EventsWriteStream not implemented")
   257  }
   258  func (UnimplementedRuntimeSecurityAgentAPIServer) LogsWriteStream(RuntimeSecurityAgentAPI_LogsWriteStreamServer) error {
   259  	return status.Errorf(codes.Unimplemented, "method LogsWriteStream not implemented")
   260  }
   261  func (UnimplementedRuntimeSecurityAgentAPIServer) ContainerStatsWriteStream(RuntimeSecurityAgentAPI_ContainerStatsWriteStreamServer) error {
   262  	return status.Errorf(codes.Unimplemented, "method ContainerStatsWriteStream not implemented")
   263  }
   264  func (UnimplementedRuntimeSecurityAgentAPIServer) GetSyncState(context.Context, *GetSyncStateRequest) (*GetSyncStateResponse, error) {
   265  	return nil, status.Errorf(codes.Unimplemented, "method GetSyncState not implemented")
   266  }
   267  func (UnimplementedRuntimeSecurityAgentAPIServer) UpdateSyncState(context.Context, *UpdateSyncStateRequest) (*UpdateSyncStateResponse, error) {
   268  	return nil, status.Errorf(codes.Unimplemented, "method UpdateSyncState not implemented")
   269  }
   270  func (UnimplementedRuntimeSecurityAgentAPIServer) KubernetesDeltaIngest(RuntimeSecurityAgentAPI_KubernetesDeltaIngestServer) error {
   271  	return status.Errorf(codes.Unimplemented, "method KubernetesDeltaIngest not implemented")
   272  }
   273  func (UnimplementedRuntimeSecurityAgentAPIServer) ImageMetadataIngest(context.Context, *ImageMetadata) (*ImageMetadataIngestResponse, error) {
   274  	return nil, status.Errorf(codes.Unimplemented, "method ImageMetadataIngest not implemented")
   275  }
   276  func (UnimplementedRuntimeSecurityAgentAPIServer) KubeBenchReportIngest(context.Context, *KubeBenchReport) (*KubeBenchReportIngestResponse, error) {
   277  	return nil, status.Errorf(codes.Unimplemented, "method KubeBenchReportIngest not implemented")
   278  }
   279  func (UnimplementedRuntimeSecurityAgentAPIServer) KubeLinterReportIngest(context.Context, *KubeLinterReport) (*KubeLinterReportIngestResponse, error) {
   280  	return nil, status.Errorf(codes.Unimplemented, "method KubeLinterReportIngest not implemented")
   281  }
   282  
   283  // UnsafeRuntimeSecurityAgentAPIServer may be embedded to opt out of forward compatibility for this service.
   284  // Use of this interface is not recommended, as added methods to RuntimeSecurityAgentAPIServer will
   285  // result in compilation errors.
   286  type UnsafeRuntimeSecurityAgentAPIServer interface {
   287  	mustEmbedUnimplementedRuntimeSecurityAgentAPIServer()
   288  }
   289  
   290  func RegisterRuntimeSecurityAgentAPIServer(s grpc.ServiceRegistrar, srv RuntimeSecurityAgentAPIServer) {
   291  	s.RegisterService(&RuntimeSecurityAgentAPI_ServiceDesc, srv)
   292  }
   293  
   294  func _RuntimeSecurityAgentAPI_GetConfiguration_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   295  	in := new(GetConfigurationRequest)
   296  	if err := dec(in); err != nil {
   297  		return nil, err
   298  	}
   299  	if interceptor == nil {
   300  		return srv.(RuntimeSecurityAgentAPIServer).GetConfiguration(ctx, in)
   301  	}
   302  	info := &grpc.UnaryServerInfo{
   303  		Server:     srv,
   304  		FullMethod: "/runtime.v1.RuntimeSecurityAgentAPI/GetConfiguration",
   305  	}
   306  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   307  		return srv.(RuntimeSecurityAgentAPIServer).GetConfiguration(ctx, req.(*GetConfigurationRequest))
   308  	}
   309  	return interceptor(ctx, in, info, handler)
   310  }
   311  
   312  func _RuntimeSecurityAgentAPI_EventsWriteStream_Handler(srv interface{}, stream grpc.ServerStream) error {
   313  	return srv.(RuntimeSecurityAgentAPIServer).EventsWriteStream(&runtimeSecurityAgentAPIEventsWriteStreamServer{stream})
   314  }
   315  
   316  type RuntimeSecurityAgentAPI_EventsWriteStreamServer interface {
   317  	SendAndClose(*WriteStreamResponse) error
   318  	Recv() (*Event, error)
   319  	grpc.ServerStream
   320  }
   321  
   322  type runtimeSecurityAgentAPIEventsWriteStreamServer struct {
   323  	grpc.ServerStream
   324  }
   325  
   326  func (x *runtimeSecurityAgentAPIEventsWriteStreamServer) SendAndClose(m *WriteStreamResponse) error {
   327  	return x.ServerStream.SendMsg(m)
   328  }
   329  
   330  func (x *runtimeSecurityAgentAPIEventsWriteStreamServer) Recv() (*Event, error) {
   331  	m := new(Event)
   332  	if err := x.ServerStream.RecvMsg(m); err != nil {
   333  		return nil, err
   334  	}
   335  	return m, nil
   336  }
   337  
   338  func _RuntimeSecurityAgentAPI_LogsWriteStream_Handler(srv interface{}, stream grpc.ServerStream) error {
   339  	return srv.(RuntimeSecurityAgentAPIServer).LogsWriteStream(&runtimeSecurityAgentAPILogsWriteStreamServer{stream})
   340  }
   341  
   342  type RuntimeSecurityAgentAPI_LogsWriteStreamServer interface {
   343  	SendAndClose(*WriteStreamResponse) error
   344  	Recv() (*LogEvent, error)
   345  	grpc.ServerStream
   346  }
   347  
   348  type runtimeSecurityAgentAPILogsWriteStreamServer struct {
   349  	grpc.ServerStream
   350  }
   351  
   352  func (x *runtimeSecurityAgentAPILogsWriteStreamServer) SendAndClose(m *WriteStreamResponse) error {
   353  	return x.ServerStream.SendMsg(m)
   354  }
   355  
   356  func (x *runtimeSecurityAgentAPILogsWriteStreamServer) Recv() (*LogEvent, error) {
   357  	m := new(LogEvent)
   358  	if err := x.ServerStream.RecvMsg(m); err != nil {
   359  		return nil, err
   360  	}
   361  	return m, nil
   362  }
   363  
   364  func _RuntimeSecurityAgentAPI_ContainerStatsWriteStream_Handler(srv interface{}, stream grpc.ServerStream) error {
   365  	return srv.(RuntimeSecurityAgentAPIServer).ContainerStatsWriteStream(&runtimeSecurityAgentAPIContainerStatsWriteStreamServer{stream})
   366  }
   367  
   368  type RuntimeSecurityAgentAPI_ContainerStatsWriteStreamServer interface {
   369  	SendAndClose(*WriteStreamResponse) error
   370  	Recv() (*ContainerStatsBatch, error)
   371  	grpc.ServerStream
   372  }
   373  
   374  type runtimeSecurityAgentAPIContainerStatsWriteStreamServer struct {
   375  	grpc.ServerStream
   376  }
   377  
   378  func (x *runtimeSecurityAgentAPIContainerStatsWriteStreamServer) SendAndClose(m *WriteStreamResponse) error {
   379  	return x.ServerStream.SendMsg(m)
   380  }
   381  
   382  func (x *runtimeSecurityAgentAPIContainerStatsWriteStreamServer) Recv() (*ContainerStatsBatch, error) {
   383  	m := new(ContainerStatsBatch)
   384  	if err := x.ServerStream.RecvMsg(m); err != nil {
   385  		return nil, err
   386  	}
   387  	return m, nil
   388  }
   389  
   390  func _RuntimeSecurityAgentAPI_GetSyncState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   391  	in := new(GetSyncStateRequest)
   392  	if err := dec(in); err != nil {
   393  		return nil, err
   394  	}
   395  	if interceptor == nil {
   396  		return srv.(RuntimeSecurityAgentAPIServer).GetSyncState(ctx, in)
   397  	}
   398  	info := &grpc.UnaryServerInfo{
   399  		Server:     srv,
   400  		FullMethod: "/runtime.v1.RuntimeSecurityAgentAPI/GetSyncState",
   401  	}
   402  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   403  		return srv.(RuntimeSecurityAgentAPIServer).GetSyncState(ctx, req.(*GetSyncStateRequest))
   404  	}
   405  	return interceptor(ctx, in, info, handler)
   406  }
   407  
   408  func _RuntimeSecurityAgentAPI_UpdateSyncState_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   409  	in := new(UpdateSyncStateRequest)
   410  	if err := dec(in); err != nil {
   411  		return nil, err
   412  	}
   413  	if interceptor == nil {
   414  		return srv.(RuntimeSecurityAgentAPIServer).UpdateSyncState(ctx, in)
   415  	}
   416  	info := &grpc.UnaryServerInfo{
   417  		Server:     srv,
   418  		FullMethod: "/runtime.v1.RuntimeSecurityAgentAPI/UpdateSyncState",
   419  	}
   420  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   421  		return srv.(RuntimeSecurityAgentAPIServer).UpdateSyncState(ctx, req.(*UpdateSyncStateRequest))
   422  	}
   423  	return interceptor(ctx, in, info, handler)
   424  }
   425  
   426  func _RuntimeSecurityAgentAPI_KubernetesDeltaIngest_Handler(srv interface{}, stream grpc.ServerStream) error {
   427  	return srv.(RuntimeSecurityAgentAPIServer).KubernetesDeltaIngest(&runtimeSecurityAgentAPIKubernetesDeltaIngestServer{stream})
   428  }
   429  
   430  type RuntimeSecurityAgentAPI_KubernetesDeltaIngestServer interface {
   431  	Send(*KubernetesDeltaIngestResponse) error
   432  	Recv() (*KubernetesDeltaItem, error)
   433  	grpc.ServerStream
   434  }
   435  
   436  type runtimeSecurityAgentAPIKubernetesDeltaIngestServer struct {
   437  	grpc.ServerStream
   438  }
   439  
   440  func (x *runtimeSecurityAgentAPIKubernetesDeltaIngestServer) Send(m *KubernetesDeltaIngestResponse) error {
   441  	return x.ServerStream.SendMsg(m)
   442  }
   443  
   444  func (x *runtimeSecurityAgentAPIKubernetesDeltaIngestServer) Recv() (*KubernetesDeltaItem, error) {
   445  	m := new(KubernetesDeltaItem)
   446  	if err := x.ServerStream.RecvMsg(m); err != nil {
   447  		return nil, err
   448  	}
   449  	return m, nil
   450  }
   451  
   452  func _RuntimeSecurityAgentAPI_ImageMetadataIngest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   453  	in := new(ImageMetadata)
   454  	if err := dec(in); err != nil {
   455  		return nil, err
   456  	}
   457  	if interceptor == nil {
   458  		return srv.(RuntimeSecurityAgentAPIServer).ImageMetadataIngest(ctx, in)
   459  	}
   460  	info := &grpc.UnaryServerInfo{
   461  		Server:     srv,
   462  		FullMethod: "/runtime.v1.RuntimeSecurityAgentAPI/ImageMetadataIngest",
   463  	}
   464  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   465  		return srv.(RuntimeSecurityAgentAPIServer).ImageMetadataIngest(ctx, req.(*ImageMetadata))
   466  	}
   467  	return interceptor(ctx, in, info, handler)
   468  }
   469  
   470  func _RuntimeSecurityAgentAPI_KubeBenchReportIngest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   471  	in := new(KubeBenchReport)
   472  	if err := dec(in); err != nil {
   473  		return nil, err
   474  	}
   475  	if interceptor == nil {
   476  		return srv.(RuntimeSecurityAgentAPIServer).KubeBenchReportIngest(ctx, in)
   477  	}
   478  	info := &grpc.UnaryServerInfo{
   479  		Server:     srv,
   480  		FullMethod: "/runtime.v1.RuntimeSecurityAgentAPI/KubeBenchReportIngest",
   481  	}
   482  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   483  		return srv.(RuntimeSecurityAgentAPIServer).KubeBenchReportIngest(ctx, req.(*KubeBenchReport))
   484  	}
   485  	return interceptor(ctx, in, info, handler)
   486  }
   487  
   488  func _RuntimeSecurityAgentAPI_KubeLinterReportIngest_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   489  	in := new(KubeLinterReport)
   490  	if err := dec(in); err != nil {
   491  		return nil, err
   492  	}
   493  	if interceptor == nil {
   494  		return srv.(RuntimeSecurityAgentAPIServer).KubeLinterReportIngest(ctx, in)
   495  	}
   496  	info := &grpc.UnaryServerInfo{
   497  		Server:     srv,
   498  		FullMethod: "/runtime.v1.RuntimeSecurityAgentAPI/KubeLinterReportIngest",
   499  	}
   500  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   501  		return srv.(RuntimeSecurityAgentAPIServer).KubeLinterReportIngest(ctx, req.(*KubeLinterReport))
   502  	}
   503  	return interceptor(ctx, in, info, handler)
   504  }
   505  
   506  // RuntimeSecurityAgentAPI_ServiceDesc is the grpc.ServiceDesc for RuntimeSecurityAgentAPI service.
   507  // It's only intended for direct use with grpc.RegisterService,
   508  // and not to be introspected or modified (even as a copy)
   509  var RuntimeSecurityAgentAPI_ServiceDesc = grpc.ServiceDesc{
   510  	ServiceName: "runtime.v1.RuntimeSecurityAgentAPI",
   511  	HandlerType: (*RuntimeSecurityAgentAPIServer)(nil),
   512  	Methods: []grpc.MethodDesc{
   513  		{
   514  			MethodName: "GetConfiguration",
   515  			Handler:    _RuntimeSecurityAgentAPI_GetConfiguration_Handler,
   516  		},
   517  		{
   518  			MethodName: "GetSyncState",
   519  			Handler:    _RuntimeSecurityAgentAPI_GetSyncState_Handler,
   520  		},
   521  		{
   522  			MethodName: "UpdateSyncState",
   523  			Handler:    _RuntimeSecurityAgentAPI_UpdateSyncState_Handler,
   524  		},
   525  		{
   526  			MethodName: "ImageMetadataIngest",
   527  			Handler:    _RuntimeSecurityAgentAPI_ImageMetadataIngest_Handler,
   528  		},
   529  		{
   530  			MethodName: "KubeBenchReportIngest",
   531  			Handler:    _RuntimeSecurityAgentAPI_KubeBenchReportIngest_Handler,
   532  		},
   533  		{
   534  			MethodName: "KubeLinterReportIngest",
   535  			Handler:    _RuntimeSecurityAgentAPI_KubeLinterReportIngest_Handler,
   536  		},
   537  	},
   538  	Streams: []grpc.StreamDesc{
   539  		{
   540  			StreamName:    "EventsWriteStream",
   541  			Handler:       _RuntimeSecurityAgentAPI_EventsWriteStream_Handler,
   542  			ClientStreams: true,
   543  		},
   544  		{
   545  			StreamName:    "LogsWriteStream",
   546  			Handler:       _RuntimeSecurityAgentAPI_LogsWriteStream_Handler,
   547  			ClientStreams: true,
   548  		},
   549  		{
   550  			StreamName:    "ContainerStatsWriteStream",
   551  			Handler:       _RuntimeSecurityAgentAPI_ContainerStatsWriteStream_Handler,
   552  			ClientStreams: true,
   553  		},
   554  		{
   555  			StreamName:    "KubernetesDeltaIngest",
   556  			Handler:       _RuntimeSecurityAgentAPI_KubernetesDeltaIngest_Handler,
   557  			ServerStreams: true,
   558  			ClientStreams: true,
   559  		},
   560  	},
   561  	Metadata: "api/v1/runtime/runtime_agent_api.proto",
   562  }