cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/aiplatformpb/model_monitoring_service_grpc.pb.go (about)

     1  // Copyright 2025 Google LLC
     2  //
     3  // Licensed under the Apache License, Version 2.0 (the "License");
     4  // you may not use this file except in compliance with the License.
     5  // You may obtain a copy of the License at
     6  //
     7  //     http://www.apache.org/licenses/LICENSE-2.0
     8  //
     9  // Unless required by applicable law or agreed to in writing, software
    10  // distributed under the License is distributed on an "AS IS" BASIS,
    11  // WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
    12  // See the License for the specific language governing permissions and
    13  // limitations under the License.
    14  
    15  // Code generated by protoc-gen-go-grpc. DO NOT EDIT.
    16  // versions:
    17  // - protoc-gen-go-grpc v1.3.0
    18  // - protoc             v4.25.7
    19  // source: google/cloud/aiplatform/v1beta1/model_monitoring_service.proto
    20  
    21  package aiplatformpb
    22  
    23  import (
    24  	longrunningpb "cloud.google.com/go/longrunning/autogen/longrunningpb"
    25  	context "context"
    26  	grpc "google.golang.org/grpc"
    27  	codes "google.golang.org/grpc/codes"
    28  	status "google.golang.org/grpc/status"
    29  )
    30  
    31  // This is a compile-time assertion to ensure that this generated file
    32  // is compatible with the grpc package it is being compiled against.
    33  // Requires gRPC-Go v1.32.0 or later.
    34  const _ = grpc.SupportPackageIsVersion7
    35  
    36  const (
    37  	ModelMonitoringService_CreateModelMonitor_FullMethodName          = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/CreateModelMonitor"
    38  	ModelMonitoringService_UpdateModelMonitor_FullMethodName          = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/UpdateModelMonitor"
    39  	ModelMonitoringService_GetModelMonitor_FullMethodName             = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/GetModelMonitor"
    40  	ModelMonitoringService_ListModelMonitors_FullMethodName           = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/ListModelMonitors"
    41  	ModelMonitoringService_DeleteModelMonitor_FullMethodName          = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/DeleteModelMonitor"
    42  	ModelMonitoringService_CreateModelMonitoringJob_FullMethodName    = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/CreateModelMonitoringJob"
    43  	ModelMonitoringService_GetModelMonitoringJob_FullMethodName       = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/GetModelMonitoringJob"
    44  	ModelMonitoringService_ListModelMonitoringJobs_FullMethodName     = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/ListModelMonitoringJobs"
    45  	ModelMonitoringService_DeleteModelMonitoringJob_FullMethodName    = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/DeleteModelMonitoringJob"
    46  	ModelMonitoringService_SearchModelMonitoringStats_FullMethodName  = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/SearchModelMonitoringStats"
    47  	ModelMonitoringService_SearchModelMonitoringAlerts_FullMethodName = "/google.cloud.aiplatform.v1beta1.ModelMonitoringService/SearchModelMonitoringAlerts"
    48  )
    49  
    50  // ModelMonitoringServiceClient is the client API for ModelMonitoringService service.
    51  //
    52  // 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.
    53  type ModelMonitoringServiceClient interface {
    54  	// Creates a ModelMonitor.
    55  	CreateModelMonitor(ctx context.Context, in *CreateModelMonitorRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    56  	// Updates a ModelMonitor.
    57  	UpdateModelMonitor(ctx context.Context, in *UpdateModelMonitorRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    58  	// Gets a ModelMonitor.
    59  	GetModelMonitor(ctx context.Context, in *GetModelMonitorRequest, opts ...grpc.CallOption) (*ModelMonitor, error)
    60  	// Lists ModelMonitors in a Location.
    61  	ListModelMonitors(ctx context.Context, in *ListModelMonitorsRequest, opts ...grpc.CallOption) (*ListModelMonitorsResponse, error)
    62  	// Deletes a ModelMonitor.
    63  	DeleteModelMonitor(ctx context.Context, in *DeleteModelMonitorRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    64  	// Creates a ModelMonitoringJob.
    65  	CreateModelMonitoringJob(ctx context.Context, in *CreateModelMonitoringJobRequest, opts ...grpc.CallOption) (*ModelMonitoringJob, error)
    66  	// Gets a ModelMonitoringJob.
    67  	GetModelMonitoringJob(ctx context.Context, in *GetModelMonitoringJobRequest, opts ...grpc.CallOption) (*ModelMonitoringJob, error)
    68  	// Lists ModelMonitoringJobs.
    69  	// Callers may choose to read across multiple Monitors as per
    70  	// [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
    71  	// character) as a wildcard character instead of modelMonitor id in the
    72  	// parent. Format
    73  	// `projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs`
    74  	ListModelMonitoringJobs(ctx context.Context, in *ListModelMonitoringJobsRequest, opts ...grpc.CallOption) (*ListModelMonitoringJobsResponse, error)
    75  	// Deletes a ModelMonitoringJob.
    76  	DeleteModelMonitoringJob(ctx context.Context, in *DeleteModelMonitoringJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    77  	// Searches Model Monitoring Stats generated within a given time window.
    78  	SearchModelMonitoringStats(ctx context.Context, in *SearchModelMonitoringStatsRequest, opts ...grpc.CallOption) (*SearchModelMonitoringStatsResponse, error)
    79  	// Returns the Model Monitoring alerts.
    80  	SearchModelMonitoringAlerts(ctx context.Context, in *SearchModelMonitoringAlertsRequest, opts ...grpc.CallOption) (*SearchModelMonitoringAlertsResponse, error)
    81  }
    82  
    83  type modelMonitoringServiceClient struct {
    84  	cc grpc.ClientConnInterface
    85  }
    86  
    87  func NewModelMonitoringServiceClient(cc grpc.ClientConnInterface) ModelMonitoringServiceClient {
    88  	return &modelMonitoringServiceClient{cc}
    89  }
    90  
    91  func (c *modelMonitoringServiceClient) CreateModelMonitor(ctx context.Context, in *CreateModelMonitorRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
    92  	out := new(longrunningpb.Operation)
    93  	err := c.cc.Invoke(ctx, ModelMonitoringService_CreateModelMonitor_FullMethodName, in, out, opts...)
    94  	if err != nil {
    95  		return nil, err
    96  	}
    97  	return out, nil
    98  }
    99  
   100  func (c *modelMonitoringServiceClient) UpdateModelMonitor(ctx context.Context, in *UpdateModelMonitorRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   101  	out := new(longrunningpb.Operation)
   102  	err := c.cc.Invoke(ctx, ModelMonitoringService_UpdateModelMonitor_FullMethodName, in, out, opts...)
   103  	if err != nil {
   104  		return nil, err
   105  	}
   106  	return out, nil
   107  }
   108  
   109  func (c *modelMonitoringServiceClient) GetModelMonitor(ctx context.Context, in *GetModelMonitorRequest, opts ...grpc.CallOption) (*ModelMonitor, error) {
   110  	out := new(ModelMonitor)
   111  	err := c.cc.Invoke(ctx, ModelMonitoringService_GetModelMonitor_FullMethodName, in, out, opts...)
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return out, nil
   116  }
   117  
   118  func (c *modelMonitoringServiceClient) ListModelMonitors(ctx context.Context, in *ListModelMonitorsRequest, opts ...grpc.CallOption) (*ListModelMonitorsResponse, error) {
   119  	out := new(ListModelMonitorsResponse)
   120  	err := c.cc.Invoke(ctx, ModelMonitoringService_ListModelMonitors_FullMethodName, in, out, opts...)
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	return out, nil
   125  }
   126  
   127  func (c *modelMonitoringServiceClient) DeleteModelMonitor(ctx context.Context, in *DeleteModelMonitorRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   128  	out := new(longrunningpb.Operation)
   129  	err := c.cc.Invoke(ctx, ModelMonitoringService_DeleteModelMonitor_FullMethodName, in, out, opts...)
   130  	if err != nil {
   131  		return nil, err
   132  	}
   133  	return out, nil
   134  }
   135  
   136  func (c *modelMonitoringServiceClient) CreateModelMonitoringJob(ctx context.Context, in *CreateModelMonitoringJobRequest, opts ...grpc.CallOption) (*ModelMonitoringJob, error) {
   137  	out := new(ModelMonitoringJob)
   138  	err := c.cc.Invoke(ctx, ModelMonitoringService_CreateModelMonitoringJob_FullMethodName, in, out, opts...)
   139  	if err != nil {
   140  		return nil, err
   141  	}
   142  	return out, nil
   143  }
   144  
   145  func (c *modelMonitoringServiceClient) GetModelMonitoringJob(ctx context.Context, in *GetModelMonitoringJobRequest, opts ...grpc.CallOption) (*ModelMonitoringJob, error) {
   146  	out := new(ModelMonitoringJob)
   147  	err := c.cc.Invoke(ctx, ModelMonitoringService_GetModelMonitoringJob_FullMethodName, in, out, opts...)
   148  	if err != nil {
   149  		return nil, err
   150  	}
   151  	return out, nil
   152  }
   153  
   154  func (c *modelMonitoringServiceClient) ListModelMonitoringJobs(ctx context.Context, in *ListModelMonitoringJobsRequest, opts ...grpc.CallOption) (*ListModelMonitoringJobsResponse, error) {
   155  	out := new(ListModelMonitoringJobsResponse)
   156  	err := c.cc.Invoke(ctx, ModelMonitoringService_ListModelMonitoringJobs_FullMethodName, in, out, opts...)
   157  	if err != nil {
   158  		return nil, err
   159  	}
   160  	return out, nil
   161  }
   162  
   163  func (c *modelMonitoringServiceClient) DeleteModelMonitoringJob(ctx context.Context, in *DeleteModelMonitoringJobRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   164  	out := new(longrunningpb.Operation)
   165  	err := c.cc.Invoke(ctx, ModelMonitoringService_DeleteModelMonitoringJob_FullMethodName, in, out, opts...)
   166  	if err != nil {
   167  		return nil, err
   168  	}
   169  	return out, nil
   170  }
   171  
   172  func (c *modelMonitoringServiceClient) SearchModelMonitoringStats(ctx context.Context, in *SearchModelMonitoringStatsRequest, opts ...grpc.CallOption) (*SearchModelMonitoringStatsResponse, error) {
   173  	out := new(SearchModelMonitoringStatsResponse)
   174  	err := c.cc.Invoke(ctx, ModelMonitoringService_SearchModelMonitoringStats_FullMethodName, in, out, opts...)
   175  	if err != nil {
   176  		return nil, err
   177  	}
   178  	return out, nil
   179  }
   180  
   181  func (c *modelMonitoringServiceClient) SearchModelMonitoringAlerts(ctx context.Context, in *SearchModelMonitoringAlertsRequest, opts ...grpc.CallOption) (*SearchModelMonitoringAlertsResponse, error) {
   182  	out := new(SearchModelMonitoringAlertsResponse)
   183  	err := c.cc.Invoke(ctx, ModelMonitoringService_SearchModelMonitoringAlerts_FullMethodName, in, out, opts...)
   184  	if err != nil {
   185  		return nil, err
   186  	}
   187  	return out, nil
   188  }
   189  
   190  // ModelMonitoringServiceServer is the server API for ModelMonitoringService service.
   191  // All implementations should embed UnimplementedModelMonitoringServiceServer
   192  // for forward compatibility
   193  type ModelMonitoringServiceServer interface {
   194  	// Creates a ModelMonitor.
   195  	CreateModelMonitor(context.Context, *CreateModelMonitorRequest) (*longrunningpb.Operation, error)
   196  	// Updates a ModelMonitor.
   197  	UpdateModelMonitor(context.Context, *UpdateModelMonitorRequest) (*longrunningpb.Operation, error)
   198  	// Gets a ModelMonitor.
   199  	GetModelMonitor(context.Context, *GetModelMonitorRequest) (*ModelMonitor, error)
   200  	// Lists ModelMonitors in a Location.
   201  	ListModelMonitors(context.Context, *ListModelMonitorsRequest) (*ListModelMonitorsResponse, error)
   202  	// Deletes a ModelMonitor.
   203  	DeleteModelMonitor(context.Context, *DeleteModelMonitorRequest) (*longrunningpb.Operation, error)
   204  	// Creates a ModelMonitoringJob.
   205  	CreateModelMonitoringJob(context.Context, *CreateModelMonitoringJobRequest) (*ModelMonitoringJob, error)
   206  	// Gets a ModelMonitoringJob.
   207  	GetModelMonitoringJob(context.Context, *GetModelMonitoringJobRequest) (*ModelMonitoringJob, error)
   208  	// Lists ModelMonitoringJobs.
   209  	// Callers may choose to read across multiple Monitors as per
   210  	// [AIP-159](https://google.aip.dev/159) by using '-' (the hyphen or dash
   211  	// character) as a wildcard character instead of modelMonitor id in the
   212  	// parent. Format
   213  	// `projects/{project_id}/locations/{location}/moodelMonitors/-/modelMonitoringJobs`
   214  	ListModelMonitoringJobs(context.Context, *ListModelMonitoringJobsRequest) (*ListModelMonitoringJobsResponse, error)
   215  	// Deletes a ModelMonitoringJob.
   216  	DeleteModelMonitoringJob(context.Context, *DeleteModelMonitoringJobRequest) (*longrunningpb.Operation, error)
   217  	// Searches Model Monitoring Stats generated within a given time window.
   218  	SearchModelMonitoringStats(context.Context, *SearchModelMonitoringStatsRequest) (*SearchModelMonitoringStatsResponse, error)
   219  	// Returns the Model Monitoring alerts.
   220  	SearchModelMonitoringAlerts(context.Context, *SearchModelMonitoringAlertsRequest) (*SearchModelMonitoringAlertsResponse, error)
   221  }
   222  
   223  // UnimplementedModelMonitoringServiceServer should be embedded to have forward compatible implementations.
   224  type UnimplementedModelMonitoringServiceServer struct {
   225  }
   226  
   227  func (UnimplementedModelMonitoringServiceServer) CreateModelMonitor(context.Context, *CreateModelMonitorRequest) (*longrunningpb.Operation, error) {
   228  	return nil, status.Errorf(codes.Unimplemented, "method CreateModelMonitor not implemented")
   229  }
   230  func (UnimplementedModelMonitoringServiceServer) UpdateModelMonitor(context.Context, *UpdateModelMonitorRequest) (*longrunningpb.Operation, error) {
   231  	return nil, status.Errorf(codes.Unimplemented, "method UpdateModelMonitor not implemented")
   232  }
   233  func (UnimplementedModelMonitoringServiceServer) GetModelMonitor(context.Context, *GetModelMonitorRequest) (*ModelMonitor, error) {
   234  	return nil, status.Errorf(codes.Unimplemented, "method GetModelMonitor not implemented")
   235  }
   236  func (UnimplementedModelMonitoringServiceServer) ListModelMonitors(context.Context, *ListModelMonitorsRequest) (*ListModelMonitorsResponse, error) {
   237  	return nil, status.Errorf(codes.Unimplemented, "method ListModelMonitors not implemented")
   238  }
   239  func (UnimplementedModelMonitoringServiceServer) DeleteModelMonitor(context.Context, *DeleteModelMonitorRequest) (*longrunningpb.Operation, error) {
   240  	return nil, status.Errorf(codes.Unimplemented, "method DeleteModelMonitor not implemented")
   241  }
   242  func (UnimplementedModelMonitoringServiceServer) CreateModelMonitoringJob(context.Context, *CreateModelMonitoringJobRequest) (*ModelMonitoringJob, error) {
   243  	return nil, status.Errorf(codes.Unimplemented, "method CreateModelMonitoringJob not implemented")
   244  }
   245  func (UnimplementedModelMonitoringServiceServer) GetModelMonitoringJob(context.Context, *GetModelMonitoringJobRequest) (*ModelMonitoringJob, error) {
   246  	return nil, status.Errorf(codes.Unimplemented, "method GetModelMonitoringJob not implemented")
   247  }
   248  func (UnimplementedModelMonitoringServiceServer) ListModelMonitoringJobs(context.Context, *ListModelMonitoringJobsRequest) (*ListModelMonitoringJobsResponse, error) {
   249  	return nil, status.Errorf(codes.Unimplemented, "method ListModelMonitoringJobs not implemented")
   250  }
   251  func (UnimplementedModelMonitoringServiceServer) DeleteModelMonitoringJob(context.Context, *DeleteModelMonitoringJobRequest) (*longrunningpb.Operation, error) {
   252  	return nil, status.Errorf(codes.Unimplemented, "method DeleteModelMonitoringJob not implemented")
   253  }
   254  func (UnimplementedModelMonitoringServiceServer) SearchModelMonitoringStats(context.Context, *SearchModelMonitoringStatsRequest) (*SearchModelMonitoringStatsResponse, error) {
   255  	return nil, status.Errorf(codes.Unimplemented, "method SearchModelMonitoringStats not implemented")
   256  }
   257  func (UnimplementedModelMonitoringServiceServer) SearchModelMonitoringAlerts(context.Context, *SearchModelMonitoringAlertsRequest) (*SearchModelMonitoringAlertsResponse, error) {
   258  	return nil, status.Errorf(codes.Unimplemented, "method SearchModelMonitoringAlerts not implemented")
   259  }
   260  
   261  // UnsafeModelMonitoringServiceServer may be embedded to opt out of forward compatibility for this service.
   262  // Use of this interface is not recommended, as added methods to ModelMonitoringServiceServer will
   263  // result in compilation errors.
   264  type UnsafeModelMonitoringServiceServer interface {
   265  	mustEmbedUnimplementedModelMonitoringServiceServer()
   266  }
   267  
   268  func RegisterModelMonitoringServiceServer(s grpc.ServiceRegistrar, srv ModelMonitoringServiceServer) {
   269  	s.RegisterService(&ModelMonitoringService_ServiceDesc, srv)
   270  }
   271  
   272  func _ModelMonitoringService_CreateModelMonitor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   273  	in := new(CreateModelMonitorRequest)
   274  	if err := dec(in); err != nil {
   275  		return nil, err
   276  	}
   277  	if interceptor == nil {
   278  		return srv.(ModelMonitoringServiceServer).CreateModelMonitor(ctx, in)
   279  	}
   280  	info := &grpc.UnaryServerInfo{
   281  		Server:     srv,
   282  		FullMethod: ModelMonitoringService_CreateModelMonitor_FullMethodName,
   283  	}
   284  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   285  		return srv.(ModelMonitoringServiceServer).CreateModelMonitor(ctx, req.(*CreateModelMonitorRequest))
   286  	}
   287  	return interceptor(ctx, in, info, handler)
   288  }
   289  
   290  func _ModelMonitoringService_UpdateModelMonitor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   291  	in := new(UpdateModelMonitorRequest)
   292  	if err := dec(in); err != nil {
   293  		return nil, err
   294  	}
   295  	if interceptor == nil {
   296  		return srv.(ModelMonitoringServiceServer).UpdateModelMonitor(ctx, in)
   297  	}
   298  	info := &grpc.UnaryServerInfo{
   299  		Server:     srv,
   300  		FullMethod: ModelMonitoringService_UpdateModelMonitor_FullMethodName,
   301  	}
   302  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   303  		return srv.(ModelMonitoringServiceServer).UpdateModelMonitor(ctx, req.(*UpdateModelMonitorRequest))
   304  	}
   305  	return interceptor(ctx, in, info, handler)
   306  }
   307  
   308  func _ModelMonitoringService_GetModelMonitor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   309  	in := new(GetModelMonitorRequest)
   310  	if err := dec(in); err != nil {
   311  		return nil, err
   312  	}
   313  	if interceptor == nil {
   314  		return srv.(ModelMonitoringServiceServer).GetModelMonitor(ctx, in)
   315  	}
   316  	info := &grpc.UnaryServerInfo{
   317  		Server:     srv,
   318  		FullMethod: ModelMonitoringService_GetModelMonitor_FullMethodName,
   319  	}
   320  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   321  		return srv.(ModelMonitoringServiceServer).GetModelMonitor(ctx, req.(*GetModelMonitorRequest))
   322  	}
   323  	return interceptor(ctx, in, info, handler)
   324  }
   325  
   326  func _ModelMonitoringService_ListModelMonitors_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   327  	in := new(ListModelMonitorsRequest)
   328  	if err := dec(in); err != nil {
   329  		return nil, err
   330  	}
   331  	if interceptor == nil {
   332  		return srv.(ModelMonitoringServiceServer).ListModelMonitors(ctx, in)
   333  	}
   334  	info := &grpc.UnaryServerInfo{
   335  		Server:     srv,
   336  		FullMethod: ModelMonitoringService_ListModelMonitors_FullMethodName,
   337  	}
   338  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   339  		return srv.(ModelMonitoringServiceServer).ListModelMonitors(ctx, req.(*ListModelMonitorsRequest))
   340  	}
   341  	return interceptor(ctx, in, info, handler)
   342  }
   343  
   344  func _ModelMonitoringService_DeleteModelMonitor_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   345  	in := new(DeleteModelMonitorRequest)
   346  	if err := dec(in); err != nil {
   347  		return nil, err
   348  	}
   349  	if interceptor == nil {
   350  		return srv.(ModelMonitoringServiceServer).DeleteModelMonitor(ctx, in)
   351  	}
   352  	info := &grpc.UnaryServerInfo{
   353  		Server:     srv,
   354  		FullMethod: ModelMonitoringService_DeleteModelMonitor_FullMethodName,
   355  	}
   356  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   357  		return srv.(ModelMonitoringServiceServer).DeleteModelMonitor(ctx, req.(*DeleteModelMonitorRequest))
   358  	}
   359  	return interceptor(ctx, in, info, handler)
   360  }
   361  
   362  func _ModelMonitoringService_CreateModelMonitoringJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   363  	in := new(CreateModelMonitoringJobRequest)
   364  	if err := dec(in); err != nil {
   365  		return nil, err
   366  	}
   367  	if interceptor == nil {
   368  		return srv.(ModelMonitoringServiceServer).CreateModelMonitoringJob(ctx, in)
   369  	}
   370  	info := &grpc.UnaryServerInfo{
   371  		Server:     srv,
   372  		FullMethod: ModelMonitoringService_CreateModelMonitoringJob_FullMethodName,
   373  	}
   374  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   375  		return srv.(ModelMonitoringServiceServer).CreateModelMonitoringJob(ctx, req.(*CreateModelMonitoringJobRequest))
   376  	}
   377  	return interceptor(ctx, in, info, handler)
   378  }
   379  
   380  func _ModelMonitoringService_GetModelMonitoringJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   381  	in := new(GetModelMonitoringJobRequest)
   382  	if err := dec(in); err != nil {
   383  		return nil, err
   384  	}
   385  	if interceptor == nil {
   386  		return srv.(ModelMonitoringServiceServer).GetModelMonitoringJob(ctx, in)
   387  	}
   388  	info := &grpc.UnaryServerInfo{
   389  		Server:     srv,
   390  		FullMethod: ModelMonitoringService_GetModelMonitoringJob_FullMethodName,
   391  	}
   392  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   393  		return srv.(ModelMonitoringServiceServer).GetModelMonitoringJob(ctx, req.(*GetModelMonitoringJobRequest))
   394  	}
   395  	return interceptor(ctx, in, info, handler)
   396  }
   397  
   398  func _ModelMonitoringService_ListModelMonitoringJobs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   399  	in := new(ListModelMonitoringJobsRequest)
   400  	if err := dec(in); err != nil {
   401  		return nil, err
   402  	}
   403  	if interceptor == nil {
   404  		return srv.(ModelMonitoringServiceServer).ListModelMonitoringJobs(ctx, in)
   405  	}
   406  	info := &grpc.UnaryServerInfo{
   407  		Server:     srv,
   408  		FullMethod: ModelMonitoringService_ListModelMonitoringJobs_FullMethodName,
   409  	}
   410  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   411  		return srv.(ModelMonitoringServiceServer).ListModelMonitoringJobs(ctx, req.(*ListModelMonitoringJobsRequest))
   412  	}
   413  	return interceptor(ctx, in, info, handler)
   414  }
   415  
   416  func _ModelMonitoringService_DeleteModelMonitoringJob_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   417  	in := new(DeleteModelMonitoringJobRequest)
   418  	if err := dec(in); err != nil {
   419  		return nil, err
   420  	}
   421  	if interceptor == nil {
   422  		return srv.(ModelMonitoringServiceServer).DeleteModelMonitoringJob(ctx, in)
   423  	}
   424  	info := &grpc.UnaryServerInfo{
   425  		Server:     srv,
   426  		FullMethod: ModelMonitoringService_DeleteModelMonitoringJob_FullMethodName,
   427  	}
   428  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   429  		return srv.(ModelMonitoringServiceServer).DeleteModelMonitoringJob(ctx, req.(*DeleteModelMonitoringJobRequest))
   430  	}
   431  	return interceptor(ctx, in, info, handler)
   432  }
   433  
   434  func _ModelMonitoringService_SearchModelMonitoringStats_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   435  	in := new(SearchModelMonitoringStatsRequest)
   436  	if err := dec(in); err != nil {
   437  		return nil, err
   438  	}
   439  	if interceptor == nil {
   440  		return srv.(ModelMonitoringServiceServer).SearchModelMonitoringStats(ctx, in)
   441  	}
   442  	info := &grpc.UnaryServerInfo{
   443  		Server:     srv,
   444  		FullMethod: ModelMonitoringService_SearchModelMonitoringStats_FullMethodName,
   445  	}
   446  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   447  		return srv.(ModelMonitoringServiceServer).SearchModelMonitoringStats(ctx, req.(*SearchModelMonitoringStatsRequest))
   448  	}
   449  	return interceptor(ctx, in, info, handler)
   450  }
   451  
   452  func _ModelMonitoringService_SearchModelMonitoringAlerts_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   453  	in := new(SearchModelMonitoringAlertsRequest)
   454  	if err := dec(in); err != nil {
   455  		return nil, err
   456  	}
   457  	if interceptor == nil {
   458  		return srv.(ModelMonitoringServiceServer).SearchModelMonitoringAlerts(ctx, in)
   459  	}
   460  	info := &grpc.UnaryServerInfo{
   461  		Server:     srv,
   462  		FullMethod: ModelMonitoringService_SearchModelMonitoringAlerts_FullMethodName,
   463  	}
   464  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   465  		return srv.(ModelMonitoringServiceServer).SearchModelMonitoringAlerts(ctx, req.(*SearchModelMonitoringAlertsRequest))
   466  	}
   467  	return interceptor(ctx, in, info, handler)
   468  }
   469  
   470  // ModelMonitoringService_ServiceDesc is the grpc.ServiceDesc for ModelMonitoringService service.
   471  // It's only intended for direct use with grpc.RegisterService,
   472  // and not to be introspected or modified (even as a copy)
   473  var ModelMonitoringService_ServiceDesc = grpc.ServiceDesc{
   474  	ServiceName: "google.cloud.aiplatform.v1beta1.ModelMonitoringService",
   475  	HandlerType: (*ModelMonitoringServiceServer)(nil),
   476  	Methods: []grpc.MethodDesc{
   477  		{
   478  			MethodName: "CreateModelMonitor",
   479  			Handler:    _ModelMonitoringService_CreateModelMonitor_Handler,
   480  		},
   481  		{
   482  			MethodName: "UpdateModelMonitor",
   483  			Handler:    _ModelMonitoringService_UpdateModelMonitor_Handler,
   484  		},
   485  		{
   486  			MethodName: "GetModelMonitor",
   487  			Handler:    _ModelMonitoringService_GetModelMonitor_Handler,
   488  		},
   489  		{
   490  			MethodName: "ListModelMonitors",
   491  			Handler:    _ModelMonitoringService_ListModelMonitors_Handler,
   492  		},
   493  		{
   494  			MethodName: "DeleteModelMonitor",
   495  			Handler:    _ModelMonitoringService_DeleteModelMonitor_Handler,
   496  		},
   497  		{
   498  			MethodName: "CreateModelMonitoringJob",
   499  			Handler:    _ModelMonitoringService_CreateModelMonitoringJob_Handler,
   500  		},
   501  		{
   502  			MethodName: "GetModelMonitoringJob",
   503  			Handler:    _ModelMonitoringService_GetModelMonitoringJob_Handler,
   504  		},
   505  		{
   506  			MethodName: "ListModelMonitoringJobs",
   507  			Handler:    _ModelMonitoringService_ListModelMonitoringJobs_Handler,
   508  		},
   509  		{
   510  			MethodName: "DeleteModelMonitoringJob",
   511  			Handler:    _ModelMonitoringService_DeleteModelMonitoringJob_Handler,
   512  		},
   513  		{
   514  			MethodName: "SearchModelMonitoringStats",
   515  			Handler:    _ModelMonitoringService_SearchModelMonitoringStats_Handler,
   516  		},
   517  		{
   518  			MethodName: "SearchModelMonitoringAlerts",
   519  			Handler:    _ModelMonitoringService_SearchModelMonitoringAlerts_Handler,
   520  		},
   521  	},
   522  	Streams:  []grpc.StreamDesc{},
   523  	Metadata: "google/cloud/aiplatform/v1beta1/model_monitoring_service.proto",
   524  }