cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/aiplatformpb/endpoint_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/endpoint_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  	EndpointService_CreateEndpoint_FullMethodName            = "/google.cloud.aiplatform.v1beta1.EndpointService/CreateEndpoint"
    38  	EndpointService_GetEndpoint_FullMethodName               = "/google.cloud.aiplatform.v1beta1.EndpointService/GetEndpoint"
    39  	EndpointService_ListEndpoints_FullMethodName             = "/google.cloud.aiplatform.v1beta1.EndpointService/ListEndpoints"
    40  	EndpointService_UpdateEndpoint_FullMethodName            = "/google.cloud.aiplatform.v1beta1.EndpointService/UpdateEndpoint"
    41  	EndpointService_UpdateEndpointLongRunning_FullMethodName = "/google.cloud.aiplatform.v1beta1.EndpointService/UpdateEndpointLongRunning"
    42  	EndpointService_DeleteEndpoint_FullMethodName            = "/google.cloud.aiplatform.v1beta1.EndpointService/DeleteEndpoint"
    43  	EndpointService_DeployModel_FullMethodName               = "/google.cloud.aiplatform.v1beta1.EndpointService/DeployModel"
    44  	EndpointService_UndeployModel_FullMethodName             = "/google.cloud.aiplatform.v1beta1.EndpointService/UndeployModel"
    45  	EndpointService_MutateDeployedModel_FullMethodName       = "/google.cloud.aiplatform.v1beta1.EndpointService/MutateDeployedModel"
    46  	EndpointService_SetPublisherModelConfig_FullMethodName   = "/google.cloud.aiplatform.v1beta1.EndpointService/SetPublisherModelConfig"
    47  	EndpointService_FetchPublisherModelConfig_FullMethodName = "/google.cloud.aiplatform.v1beta1.EndpointService/FetchPublisherModelConfig"
    48  )
    49  
    50  // EndpointServiceClient is the client API for EndpointService 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 EndpointServiceClient interface {
    54  	// Creates an Endpoint.
    55  	CreateEndpoint(ctx context.Context, in *CreateEndpointRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    56  	// Gets an Endpoint.
    57  	GetEndpoint(ctx context.Context, in *GetEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error)
    58  	// Lists Endpoints in a Location.
    59  	ListEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...grpc.CallOption) (*ListEndpointsResponse, error)
    60  	// Updates an Endpoint.
    61  	UpdateEndpoint(ctx context.Context, in *UpdateEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error)
    62  	// Updates an Endpoint with a long running operation.
    63  	UpdateEndpointLongRunning(ctx context.Context, in *UpdateEndpointLongRunningRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    64  	// Deletes an Endpoint.
    65  	DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    66  	// Deploys a Model into this Endpoint, creating a DeployedModel within it.
    67  	DeployModel(ctx context.Context, in *DeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    68  	// Undeploys a Model from an Endpoint, removing a DeployedModel from it, and
    69  	// freeing all resources it's using.
    70  	UndeployModel(ctx context.Context, in *UndeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    71  	// Updates an existing deployed model. Updatable fields include
    72  	// `min_replica_count`, `max_replica_count`, `required_replica_count`,
    73  	// `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and
    74  	// `enable_container_logging` (v1beta1 only).
    75  	MutateDeployedModel(ctx context.Context, in *MutateDeployedModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    76  	// Sets (creates or updates) configs of publisher models. For example, sets
    77  	// the request/response logging config.
    78  	SetPublisherModelConfig(ctx context.Context, in *SetPublisherModelConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error)
    79  	// Fetches the configs of publisher models.
    80  	FetchPublisherModelConfig(ctx context.Context, in *FetchPublisherModelConfigRequest, opts ...grpc.CallOption) (*PublisherModelConfig, error)
    81  }
    82  
    83  type endpointServiceClient struct {
    84  	cc grpc.ClientConnInterface
    85  }
    86  
    87  func NewEndpointServiceClient(cc grpc.ClientConnInterface) EndpointServiceClient {
    88  	return &endpointServiceClient{cc}
    89  }
    90  
    91  func (c *endpointServiceClient) CreateEndpoint(ctx context.Context, in *CreateEndpointRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
    92  	out := new(longrunningpb.Operation)
    93  	err := c.cc.Invoke(ctx, EndpointService_CreateEndpoint_FullMethodName, in, out, opts...)
    94  	if err != nil {
    95  		return nil, err
    96  	}
    97  	return out, nil
    98  }
    99  
   100  func (c *endpointServiceClient) GetEndpoint(ctx context.Context, in *GetEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error) {
   101  	out := new(Endpoint)
   102  	err := c.cc.Invoke(ctx, EndpointService_GetEndpoint_FullMethodName, in, out, opts...)
   103  	if err != nil {
   104  		return nil, err
   105  	}
   106  	return out, nil
   107  }
   108  
   109  func (c *endpointServiceClient) ListEndpoints(ctx context.Context, in *ListEndpointsRequest, opts ...grpc.CallOption) (*ListEndpointsResponse, error) {
   110  	out := new(ListEndpointsResponse)
   111  	err := c.cc.Invoke(ctx, EndpointService_ListEndpoints_FullMethodName, in, out, opts...)
   112  	if err != nil {
   113  		return nil, err
   114  	}
   115  	return out, nil
   116  }
   117  
   118  func (c *endpointServiceClient) UpdateEndpoint(ctx context.Context, in *UpdateEndpointRequest, opts ...grpc.CallOption) (*Endpoint, error) {
   119  	out := new(Endpoint)
   120  	err := c.cc.Invoke(ctx, EndpointService_UpdateEndpoint_FullMethodName, in, out, opts...)
   121  	if err != nil {
   122  		return nil, err
   123  	}
   124  	return out, nil
   125  }
   126  
   127  func (c *endpointServiceClient) UpdateEndpointLongRunning(ctx context.Context, in *UpdateEndpointLongRunningRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   128  	out := new(longrunningpb.Operation)
   129  	err := c.cc.Invoke(ctx, EndpointService_UpdateEndpointLongRunning_FullMethodName, in, out, opts...)
   130  	if err != nil {
   131  		return nil, err
   132  	}
   133  	return out, nil
   134  }
   135  
   136  func (c *endpointServiceClient) DeleteEndpoint(ctx context.Context, in *DeleteEndpointRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   137  	out := new(longrunningpb.Operation)
   138  	err := c.cc.Invoke(ctx, EndpointService_DeleteEndpoint_FullMethodName, in, out, opts...)
   139  	if err != nil {
   140  		return nil, err
   141  	}
   142  	return out, nil
   143  }
   144  
   145  func (c *endpointServiceClient) DeployModel(ctx context.Context, in *DeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   146  	out := new(longrunningpb.Operation)
   147  	err := c.cc.Invoke(ctx, EndpointService_DeployModel_FullMethodName, in, out, opts...)
   148  	if err != nil {
   149  		return nil, err
   150  	}
   151  	return out, nil
   152  }
   153  
   154  func (c *endpointServiceClient) UndeployModel(ctx context.Context, in *UndeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   155  	out := new(longrunningpb.Operation)
   156  	err := c.cc.Invoke(ctx, EndpointService_UndeployModel_FullMethodName, in, out, opts...)
   157  	if err != nil {
   158  		return nil, err
   159  	}
   160  	return out, nil
   161  }
   162  
   163  func (c *endpointServiceClient) MutateDeployedModel(ctx context.Context, in *MutateDeployedModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   164  	out := new(longrunningpb.Operation)
   165  	err := c.cc.Invoke(ctx, EndpointService_MutateDeployedModel_FullMethodName, in, out, opts...)
   166  	if err != nil {
   167  		return nil, err
   168  	}
   169  	return out, nil
   170  }
   171  
   172  func (c *endpointServiceClient) SetPublisherModelConfig(ctx context.Context, in *SetPublisherModelConfigRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) {
   173  	out := new(longrunningpb.Operation)
   174  	err := c.cc.Invoke(ctx, EndpointService_SetPublisherModelConfig_FullMethodName, in, out, opts...)
   175  	if err != nil {
   176  		return nil, err
   177  	}
   178  	return out, nil
   179  }
   180  
   181  func (c *endpointServiceClient) FetchPublisherModelConfig(ctx context.Context, in *FetchPublisherModelConfigRequest, opts ...grpc.CallOption) (*PublisherModelConfig, error) {
   182  	out := new(PublisherModelConfig)
   183  	err := c.cc.Invoke(ctx, EndpointService_FetchPublisherModelConfig_FullMethodName, in, out, opts...)
   184  	if err != nil {
   185  		return nil, err
   186  	}
   187  	return out, nil
   188  }
   189  
   190  // EndpointServiceServer is the server API for EndpointService service.
   191  // All implementations should embed UnimplementedEndpointServiceServer
   192  // for forward compatibility
   193  type EndpointServiceServer interface {
   194  	// Creates an Endpoint.
   195  	CreateEndpoint(context.Context, *CreateEndpointRequest) (*longrunningpb.Operation, error)
   196  	// Gets an Endpoint.
   197  	GetEndpoint(context.Context, *GetEndpointRequest) (*Endpoint, error)
   198  	// Lists Endpoints in a Location.
   199  	ListEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error)
   200  	// Updates an Endpoint.
   201  	UpdateEndpoint(context.Context, *UpdateEndpointRequest) (*Endpoint, error)
   202  	// Updates an Endpoint with a long running operation.
   203  	UpdateEndpointLongRunning(context.Context, *UpdateEndpointLongRunningRequest) (*longrunningpb.Operation, error)
   204  	// Deletes an Endpoint.
   205  	DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*longrunningpb.Operation, error)
   206  	// Deploys a Model into this Endpoint, creating a DeployedModel within it.
   207  	DeployModel(context.Context, *DeployModelRequest) (*longrunningpb.Operation, error)
   208  	// Undeploys a Model from an Endpoint, removing a DeployedModel from it, and
   209  	// freeing all resources it's using.
   210  	UndeployModel(context.Context, *UndeployModelRequest) (*longrunningpb.Operation, error)
   211  	// Updates an existing deployed model. Updatable fields include
   212  	// `min_replica_count`, `max_replica_count`, `required_replica_count`,
   213  	// `autoscaling_metric_specs`, `disable_container_logging` (v1 only), and
   214  	// `enable_container_logging` (v1beta1 only).
   215  	MutateDeployedModel(context.Context, *MutateDeployedModelRequest) (*longrunningpb.Operation, error)
   216  	// Sets (creates or updates) configs of publisher models. For example, sets
   217  	// the request/response logging config.
   218  	SetPublisherModelConfig(context.Context, *SetPublisherModelConfigRequest) (*longrunningpb.Operation, error)
   219  	// Fetches the configs of publisher models.
   220  	FetchPublisherModelConfig(context.Context, *FetchPublisherModelConfigRequest) (*PublisherModelConfig, error)
   221  }
   222  
   223  // UnimplementedEndpointServiceServer should be embedded to have forward compatible implementations.
   224  type UnimplementedEndpointServiceServer struct {
   225  }
   226  
   227  func (UnimplementedEndpointServiceServer) CreateEndpoint(context.Context, *CreateEndpointRequest) (*longrunningpb.Operation, error) {
   228  	return nil, status.Errorf(codes.Unimplemented, "method CreateEndpoint not implemented")
   229  }
   230  func (UnimplementedEndpointServiceServer) GetEndpoint(context.Context, *GetEndpointRequest) (*Endpoint, error) {
   231  	return nil, status.Errorf(codes.Unimplemented, "method GetEndpoint not implemented")
   232  }
   233  func (UnimplementedEndpointServiceServer) ListEndpoints(context.Context, *ListEndpointsRequest) (*ListEndpointsResponse, error) {
   234  	return nil, status.Errorf(codes.Unimplemented, "method ListEndpoints not implemented")
   235  }
   236  func (UnimplementedEndpointServiceServer) UpdateEndpoint(context.Context, *UpdateEndpointRequest) (*Endpoint, error) {
   237  	return nil, status.Errorf(codes.Unimplemented, "method UpdateEndpoint not implemented")
   238  }
   239  func (UnimplementedEndpointServiceServer) UpdateEndpointLongRunning(context.Context, *UpdateEndpointLongRunningRequest) (*longrunningpb.Operation, error) {
   240  	return nil, status.Errorf(codes.Unimplemented, "method UpdateEndpointLongRunning not implemented")
   241  }
   242  func (UnimplementedEndpointServiceServer) DeleteEndpoint(context.Context, *DeleteEndpointRequest) (*longrunningpb.Operation, error) {
   243  	return nil, status.Errorf(codes.Unimplemented, "method DeleteEndpoint not implemented")
   244  }
   245  func (UnimplementedEndpointServiceServer) DeployModel(context.Context, *DeployModelRequest) (*longrunningpb.Operation, error) {
   246  	return nil, status.Errorf(codes.Unimplemented, "method DeployModel not implemented")
   247  }
   248  func (UnimplementedEndpointServiceServer) UndeployModel(context.Context, *UndeployModelRequest) (*longrunningpb.Operation, error) {
   249  	return nil, status.Errorf(codes.Unimplemented, "method UndeployModel not implemented")
   250  }
   251  func (UnimplementedEndpointServiceServer) MutateDeployedModel(context.Context, *MutateDeployedModelRequest) (*longrunningpb.Operation, error) {
   252  	return nil, status.Errorf(codes.Unimplemented, "method MutateDeployedModel not implemented")
   253  }
   254  func (UnimplementedEndpointServiceServer) SetPublisherModelConfig(context.Context, *SetPublisherModelConfigRequest) (*longrunningpb.Operation, error) {
   255  	return nil, status.Errorf(codes.Unimplemented, "method SetPublisherModelConfig not implemented")
   256  }
   257  func (UnimplementedEndpointServiceServer) FetchPublisherModelConfig(context.Context, *FetchPublisherModelConfigRequest) (*PublisherModelConfig, error) {
   258  	return nil, status.Errorf(codes.Unimplemented, "method FetchPublisherModelConfig not implemented")
   259  }
   260  
   261  // UnsafeEndpointServiceServer may be embedded to opt out of forward compatibility for this service.
   262  // Use of this interface is not recommended, as added methods to EndpointServiceServer will
   263  // result in compilation errors.
   264  type UnsafeEndpointServiceServer interface {
   265  	mustEmbedUnimplementedEndpointServiceServer()
   266  }
   267  
   268  func RegisterEndpointServiceServer(s grpc.ServiceRegistrar, srv EndpointServiceServer) {
   269  	s.RegisterService(&EndpointService_ServiceDesc, srv)
   270  }
   271  
   272  func _EndpointService_CreateEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   273  	in := new(CreateEndpointRequest)
   274  	if err := dec(in); err != nil {
   275  		return nil, err
   276  	}
   277  	if interceptor == nil {
   278  		return srv.(EndpointServiceServer).CreateEndpoint(ctx, in)
   279  	}
   280  	info := &grpc.UnaryServerInfo{
   281  		Server:     srv,
   282  		FullMethod: EndpointService_CreateEndpoint_FullMethodName,
   283  	}
   284  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   285  		return srv.(EndpointServiceServer).CreateEndpoint(ctx, req.(*CreateEndpointRequest))
   286  	}
   287  	return interceptor(ctx, in, info, handler)
   288  }
   289  
   290  func _EndpointService_GetEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   291  	in := new(GetEndpointRequest)
   292  	if err := dec(in); err != nil {
   293  		return nil, err
   294  	}
   295  	if interceptor == nil {
   296  		return srv.(EndpointServiceServer).GetEndpoint(ctx, in)
   297  	}
   298  	info := &grpc.UnaryServerInfo{
   299  		Server:     srv,
   300  		FullMethod: EndpointService_GetEndpoint_FullMethodName,
   301  	}
   302  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   303  		return srv.(EndpointServiceServer).GetEndpoint(ctx, req.(*GetEndpointRequest))
   304  	}
   305  	return interceptor(ctx, in, info, handler)
   306  }
   307  
   308  func _EndpointService_ListEndpoints_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   309  	in := new(ListEndpointsRequest)
   310  	if err := dec(in); err != nil {
   311  		return nil, err
   312  	}
   313  	if interceptor == nil {
   314  		return srv.(EndpointServiceServer).ListEndpoints(ctx, in)
   315  	}
   316  	info := &grpc.UnaryServerInfo{
   317  		Server:     srv,
   318  		FullMethod: EndpointService_ListEndpoints_FullMethodName,
   319  	}
   320  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   321  		return srv.(EndpointServiceServer).ListEndpoints(ctx, req.(*ListEndpointsRequest))
   322  	}
   323  	return interceptor(ctx, in, info, handler)
   324  }
   325  
   326  func _EndpointService_UpdateEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   327  	in := new(UpdateEndpointRequest)
   328  	if err := dec(in); err != nil {
   329  		return nil, err
   330  	}
   331  	if interceptor == nil {
   332  		return srv.(EndpointServiceServer).UpdateEndpoint(ctx, in)
   333  	}
   334  	info := &grpc.UnaryServerInfo{
   335  		Server:     srv,
   336  		FullMethod: EndpointService_UpdateEndpoint_FullMethodName,
   337  	}
   338  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   339  		return srv.(EndpointServiceServer).UpdateEndpoint(ctx, req.(*UpdateEndpointRequest))
   340  	}
   341  	return interceptor(ctx, in, info, handler)
   342  }
   343  
   344  func _EndpointService_UpdateEndpointLongRunning_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   345  	in := new(UpdateEndpointLongRunningRequest)
   346  	if err := dec(in); err != nil {
   347  		return nil, err
   348  	}
   349  	if interceptor == nil {
   350  		return srv.(EndpointServiceServer).UpdateEndpointLongRunning(ctx, in)
   351  	}
   352  	info := &grpc.UnaryServerInfo{
   353  		Server:     srv,
   354  		FullMethod: EndpointService_UpdateEndpointLongRunning_FullMethodName,
   355  	}
   356  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   357  		return srv.(EndpointServiceServer).UpdateEndpointLongRunning(ctx, req.(*UpdateEndpointLongRunningRequest))
   358  	}
   359  	return interceptor(ctx, in, info, handler)
   360  }
   361  
   362  func _EndpointService_DeleteEndpoint_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   363  	in := new(DeleteEndpointRequest)
   364  	if err := dec(in); err != nil {
   365  		return nil, err
   366  	}
   367  	if interceptor == nil {
   368  		return srv.(EndpointServiceServer).DeleteEndpoint(ctx, in)
   369  	}
   370  	info := &grpc.UnaryServerInfo{
   371  		Server:     srv,
   372  		FullMethod: EndpointService_DeleteEndpoint_FullMethodName,
   373  	}
   374  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   375  		return srv.(EndpointServiceServer).DeleteEndpoint(ctx, req.(*DeleteEndpointRequest))
   376  	}
   377  	return interceptor(ctx, in, info, handler)
   378  }
   379  
   380  func _EndpointService_DeployModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   381  	in := new(DeployModelRequest)
   382  	if err := dec(in); err != nil {
   383  		return nil, err
   384  	}
   385  	if interceptor == nil {
   386  		return srv.(EndpointServiceServer).DeployModel(ctx, in)
   387  	}
   388  	info := &grpc.UnaryServerInfo{
   389  		Server:     srv,
   390  		FullMethod: EndpointService_DeployModel_FullMethodName,
   391  	}
   392  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   393  		return srv.(EndpointServiceServer).DeployModel(ctx, req.(*DeployModelRequest))
   394  	}
   395  	return interceptor(ctx, in, info, handler)
   396  }
   397  
   398  func _EndpointService_UndeployModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   399  	in := new(UndeployModelRequest)
   400  	if err := dec(in); err != nil {
   401  		return nil, err
   402  	}
   403  	if interceptor == nil {
   404  		return srv.(EndpointServiceServer).UndeployModel(ctx, in)
   405  	}
   406  	info := &grpc.UnaryServerInfo{
   407  		Server:     srv,
   408  		FullMethod: EndpointService_UndeployModel_FullMethodName,
   409  	}
   410  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   411  		return srv.(EndpointServiceServer).UndeployModel(ctx, req.(*UndeployModelRequest))
   412  	}
   413  	return interceptor(ctx, in, info, handler)
   414  }
   415  
   416  func _EndpointService_MutateDeployedModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   417  	in := new(MutateDeployedModelRequest)
   418  	if err := dec(in); err != nil {
   419  		return nil, err
   420  	}
   421  	if interceptor == nil {
   422  		return srv.(EndpointServiceServer).MutateDeployedModel(ctx, in)
   423  	}
   424  	info := &grpc.UnaryServerInfo{
   425  		Server:     srv,
   426  		FullMethod: EndpointService_MutateDeployedModel_FullMethodName,
   427  	}
   428  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   429  		return srv.(EndpointServiceServer).MutateDeployedModel(ctx, req.(*MutateDeployedModelRequest))
   430  	}
   431  	return interceptor(ctx, in, info, handler)
   432  }
   433  
   434  func _EndpointService_SetPublisherModelConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   435  	in := new(SetPublisherModelConfigRequest)
   436  	if err := dec(in); err != nil {
   437  		return nil, err
   438  	}
   439  	if interceptor == nil {
   440  		return srv.(EndpointServiceServer).SetPublisherModelConfig(ctx, in)
   441  	}
   442  	info := &grpc.UnaryServerInfo{
   443  		Server:     srv,
   444  		FullMethod: EndpointService_SetPublisherModelConfig_FullMethodName,
   445  	}
   446  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   447  		return srv.(EndpointServiceServer).SetPublisherModelConfig(ctx, req.(*SetPublisherModelConfigRequest))
   448  	}
   449  	return interceptor(ctx, in, info, handler)
   450  }
   451  
   452  func _EndpointService_FetchPublisherModelConfig_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) {
   453  	in := new(FetchPublisherModelConfigRequest)
   454  	if err := dec(in); err != nil {
   455  		return nil, err
   456  	}
   457  	if interceptor == nil {
   458  		return srv.(EndpointServiceServer).FetchPublisherModelConfig(ctx, in)
   459  	}
   460  	info := &grpc.UnaryServerInfo{
   461  		Server:     srv,
   462  		FullMethod: EndpointService_FetchPublisherModelConfig_FullMethodName,
   463  	}
   464  	handler := func(ctx context.Context, req interface{}) (interface{}, error) {
   465  		return srv.(EndpointServiceServer).FetchPublisherModelConfig(ctx, req.(*FetchPublisherModelConfigRequest))
   466  	}
   467  	return interceptor(ctx, in, info, handler)
   468  }
   469  
   470  // EndpointService_ServiceDesc is the grpc.ServiceDesc for EndpointService 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 EndpointService_ServiceDesc = grpc.ServiceDesc{
   474  	ServiceName: "google.cloud.aiplatform.v1beta1.EndpointService",
   475  	HandlerType: (*EndpointServiceServer)(nil),
   476  	Methods: []grpc.MethodDesc{
   477  		{
   478  			MethodName: "CreateEndpoint",
   479  			Handler:    _EndpointService_CreateEndpoint_Handler,
   480  		},
   481  		{
   482  			MethodName: "GetEndpoint",
   483  			Handler:    _EndpointService_GetEndpoint_Handler,
   484  		},
   485  		{
   486  			MethodName: "ListEndpoints",
   487  			Handler:    _EndpointService_ListEndpoints_Handler,
   488  		},
   489  		{
   490  			MethodName: "UpdateEndpoint",
   491  			Handler:    _EndpointService_UpdateEndpoint_Handler,
   492  		},
   493  		{
   494  			MethodName: "UpdateEndpointLongRunning",
   495  			Handler:    _EndpointService_UpdateEndpointLongRunning_Handler,
   496  		},
   497  		{
   498  			MethodName: "DeleteEndpoint",
   499  			Handler:    _EndpointService_DeleteEndpoint_Handler,
   500  		},
   501  		{
   502  			MethodName: "DeployModel",
   503  			Handler:    _EndpointService_DeployModel_Handler,
   504  		},
   505  		{
   506  			MethodName: "UndeployModel",
   507  			Handler:    _EndpointService_UndeployModel_Handler,
   508  		},
   509  		{
   510  			MethodName: "MutateDeployedModel",
   511  			Handler:    _EndpointService_MutateDeployedModel_Handler,
   512  		},
   513  		{
   514  			MethodName: "SetPublisherModelConfig",
   515  			Handler:    _EndpointService_SetPublisherModelConfig_Handler,
   516  		},
   517  		{
   518  			MethodName: "FetchPublisherModelConfig",
   519  			Handler:    _EndpointService_FetchPublisherModelConfig_Handler,
   520  		},
   521  	},
   522  	Streams:  []grpc.StreamDesc{},
   523  	Metadata: "google/cloud/aiplatform/v1beta1/endpoint_service.proto",
   524  }