cloud.google.com/go/aiplatform@v1.106.0/apiv1/aiplatformpb/specialist_pool_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/v1/specialist_pool_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 SpecialistPoolService_CreateSpecialistPool_FullMethodName = "/google.cloud.aiplatform.v1.SpecialistPoolService/CreateSpecialistPool" 38 SpecialistPoolService_GetSpecialistPool_FullMethodName = "/google.cloud.aiplatform.v1.SpecialistPoolService/GetSpecialistPool" 39 SpecialistPoolService_ListSpecialistPools_FullMethodName = "/google.cloud.aiplatform.v1.SpecialistPoolService/ListSpecialistPools" 40 SpecialistPoolService_DeleteSpecialistPool_FullMethodName = "/google.cloud.aiplatform.v1.SpecialistPoolService/DeleteSpecialistPool" 41 SpecialistPoolService_UpdateSpecialistPool_FullMethodName = "/google.cloud.aiplatform.v1.SpecialistPoolService/UpdateSpecialistPool" 42 ) 43 44 // SpecialistPoolServiceClient is the client API for SpecialistPoolService service. 45 // 46 // 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. 47 type SpecialistPoolServiceClient interface { 48 // Creates a SpecialistPool. 49 CreateSpecialistPool(ctx context.Context, in *CreateSpecialistPoolRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 50 // Gets a SpecialistPool. 51 GetSpecialistPool(ctx context.Context, in *GetSpecialistPoolRequest, opts ...grpc.CallOption) (*SpecialistPool, error) 52 // Lists SpecialistPools in a Location. 53 ListSpecialistPools(ctx context.Context, in *ListSpecialistPoolsRequest, opts ...grpc.CallOption) (*ListSpecialistPoolsResponse, error) 54 // Deletes a SpecialistPool as well as all Specialists in the pool. 55 DeleteSpecialistPool(ctx context.Context, in *DeleteSpecialistPoolRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 56 // Updates a SpecialistPool. 57 UpdateSpecialistPool(ctx context.Context, in *UpdateSpecialistPoolRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 58 } 59 60 type specialistPoolServiceClient struct { 61 cc grpc.ClientConnInterface 62 } 63 64 func NewSpecialistPoolServiceClient(cc grpc.ClientConnInterface) SpecialistPoolServiceClient { 65 return &specialistPoolServiceClient{cc} 66 } 67 68 func (c *specialistPoolServiceClient) CreateSpecialistPool(ctx context.Context, in *CreateSpecialistPoolRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 69 out := new(longrunningpb.Operation) 70 err := c.cc.Invoke(ctx, SpecialistPoolService_CreateSpecialistPool_FullMethodName, in, out, opts...) 71 if err != nil { 72 return nil, err 73 } 74 return out, nil 75 } 76 77 func (c *specialistPoolServiceClient) GetSpecialistPool(ctx context.Context, in *GetSpecialistPoolRequest, opts ...grpc.CallOption) (*SpecialistPool, error) { 78 out := new(SpecialistPool) 79 err := c.cc.Invoke(ctx, SpecialistPoolService_GetSpecialistPool_FullMethodName, in, out, opts...) 80 if err != nil { 81 return nil, err 82 } 83 return out, nil 84 } 85 86 func (c *specialistPoolServiceClient) ListSpecialistPools(ctx context.Context, in *ListSpecialistPoolsRequest, opts ...grpc.CallOption) (*ListSpecialistPoolsResponse, error) { 87 out := new(ListSpecialistPoolsResponse) 88 err := c.cc.Invoke(ctx, SpecialistPoolService_ListSpecialistPools_FullMethodName, in, out, opts...) 89 if err != nil { 90 return nil, err 91 } 92 return out, nil 93 } 94 95 func (c *specialistPoolServiceClient) DeleteSpecialistPool(ctx context.Context, in *DeleteSpecialistPoolRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 96 out := new(longrunningpb.Operation) 97 err := c.cc.Invoke(ctx, SpecialistPoolService_DeleteSpecialistPool_FullMethodName, in, out, opts...) 98 if err != nil { 99 return nil, err 100 } 101 return out, nil 102 } 103 104 func (c *specialistPoolServiceClient) UpdateSpecialistPool(ctx context.Context, in *UpdateSpecialistPoolRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 105 out := new(longrunningpb.Operation) 106 err := c.cc.Invoke(ctx, SpecialistPoolService_UpdateSpecialistPool_FullMethodName, in, out, opts...) 107 if err != nil { 108 return nil, err 109 } 110 return out, nil 111 } 112 113 // SpecialistPoolServiceServer is the server API for SpecialistPoolService service. 114 // All implementations should embed UnimplementedSpecialistPoolServiceServer 115 // for forward compatibility 116 type SpecialistPoolServiceServer interface { 117 // Creates a SpecialistPool. 118 CreateSpecialistPool(context.Context, *CreateSpecialistPoolRequest) (*longrunningpb.Operation, error) 119 // Gets a SpecialistPool. 120 GetSpecialistPool(context.Context, *GetSpecialistPoolRequest) (*SpecialistPool, error) 121 // Lists SpecialistPools in a Location. 122 ListSpecialistPools(context.Context, *ListSpecialistPoolsRequest) (*ListSpecialistPoolsResponse, error) 123 // Deletes a SpecialistPool as well as all Specialists in the pool. 124 DeleteSpecialistPool(context.Context, *DeleteSpecialistPoolRequest) (*longrunningpb.Operation, error) 125 // Updates a SpecialistPool. 126 UpdateSpecialistPool(context.Context, *UpdateSpecialistPoolRequest) (*longrunningpb.Operation, error) 127 } 128 129 // UnimplementedSpecialistPoolServiceServer should be embedded to have forward compatible implementations. 130 type UnimplementedSpecialistPoolServiceServer struct { 131 } 132 133 func (UnimplementedSpecialistPoolServiceServer) CreateSpecialistPool(context.Context, *CreateSpecialistPoolRequest) (*longrunningpb.Operation, error) { 134 return nil, status.Errorf(codes.Unimplemented, "method CreateSpecialistPool not implemented") 135 } 136 func (UnimplementedSpecialistPoolServiceServer) GetSpecialistPool(context.Context, *GetSpecialistPoolRequest) (*SpecialistPool, error) { 137 return nil, status.Errorf(codes.Unimplemented, "method GetSpecialistPool not implemented") 138 } 139 func (UnimplementedSpecialistPoolServiceServer) ListSpecialistPools(context.Context, *ListSpecialistPoolsRequest) (*ListSpecialistPoolsResponse, error) { 140 return nil, status.Errorf(codes.Unimplemented, "method ListSpecialistPools not implemented") 141 } 142 func (UnimplementedSpecialistPoolServiceServer) DeleteSpecialistPool(context.Context, *DeleteSpecialistPoolRequest) (*longrunningpb.Operation, error) { 143 return nil, status.Errorf(codes.Unimplemented, "method DeleteSpecialistPool not implemented") 144 } 145 func (UnimplementedSpecialistPoolServiceServer) UpdateSpecialistPool(context.Context, *UpdateSpecialistPoolRequest) (*longrunningpb.Operation, error) { 146 return nil, status.Errorf(codes.Unimplemented, "method UpdateSpecialistPool not implemented") 147 } 148 149 // UnsafeSpecialistPoolServiceServer may be embedded to opt out of forward compatibility for this service. 150 // Use of this interface is not recommended, as added methods to SpecialistPoolServiceServer will 151 // result in compilation errors. 152 type UnsafeSpecialistPoolServiceServer interface { 153 mustEmbedUnimplementedSpecialistPoolServiceServer() 154 } 155 156 func RegisterSpecialistPoolServiceServer(s grpc.ServiceRegistrar, srv SpecialistPoolServiceServer) { 157 s.RegisterService(&SpecialistPoolService_ServiceDesc, srv) 158 } 159 160 func _SpecialistPoolService_CreateSpecialistPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 161 in := new(CreateSpecialistPoolRequest) 162 if err := dec(in); err != nil { 163 return nil, err 164 } 165 if interceptor == nil { 166 return srv.(SpecialistPoolServiceServer).CreateSpecialistPool(ctx, in) 167 } 168 info := &grpc.UnaryServerInfo{ 169 Server: srv, 170 FullMethod: SpecialistPoolService_CreateSpecialistPool_FullMethodName, 171 } 172 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 173 return srv.(SpecialistPoolServiceServer).CreateSpecialistPool(ctx, req.(*CreateSpecialistPoolRequest)) 174 } 175 return interceptor(ctx, in, info, handler) 176 } 177 178 func _SpecialistPoolService_GetSpecialistPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 179 in := new(GetSpecialistPoolRequest) 180 if err := dec(in); err != nil { 181 return nil, err 182 } 183 if interceptor == nil { 184 return srv.(SpecialistPoolServiceServer).GetSpecialistPool(ctx, in) 185 } 186 info := &grpc.UnaryServerInfo{ 187 Server: srv, 188 FullMethod: SpecialistPoolService_GetSpecialistPool_FullMethodName, 189 } 190 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 191 return srv.(SpecialistPoolServiceServer).GetSpecialistPool(ctx, req.(*GetSpecialistPoolRequest)) 192 } 193 return interceptor(ctx, in, info, handler) 194 } 195 196 func _SpecialistPoolService_ListSpecialistPools_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 197 in := new(ListSpecialistPoolsRequest) 198 if err := dec(in); err != nil { 199 return nil, err 200 } 201 if interceptor == nil { 202 return srv.(SpecialistPoolServiceServer).ListSpecialistPools(ctx, in) 203 } 204 info := &grpc.UnaryServerInfo{ 205 Server: srv, 206 FullMethod: SpecialistPoolService_ListSpecialistPools_FullMethodName, 207 } 208 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 209 return srv.(SpecialistPoolServiceServer).ListSpecialistPools(ctx, req.(*ListSpecialistPoolsRequest)) 210 } 211 return interceptor(ctx, in, info, handler) 212 } 213 214 func _SpecialistPoolService_DeleteSpecialistPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 215 in := new(DeleteSpecialistPoolRequest) 216 if err := dec(in); err != nil { 217 return nil, err 218 } 219 if interceptor == nil { 220 return srv.(SpecialistPoolServiceServer).DeleteSpecialistPool(ctx, in) 221 } 222 info := &grpc.UnaryServerInfo{ 223 Server: srv, 224 FullMethod: SpecialistPoolService_DeleteSpecialistPool_FullMethodName, 225 } 226 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 227 return srv.(SpecialistPoolServiceServer).DeleteSpecialistPool(ctx, req.(*DeleteSpecialistPoolRequest)) 228 } 229 return interceptor(ctx, in, info, handler) 230 } 231 232 func _SpecialistPoolService_UpdateSpecialistPool_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 233 in := new(UpdateSpecialistPoolRequest) 234 if err := dec(in); err != nil { 235 return nil, err 236 } 237 if interceptor == nil { 238 return srv.(SpecialistPoolServiceServer).UpdateSpecialistPool(ctx, in) 239 } 240 info := &grpc.UnaryServerInfo{ 241 Server: srv, 242 FullMethod: SpecialistPoolService_UpdateSpecialistPool_FullMethodName, 243 } 244 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 245 return srv.(SpecialistPoolServiceServer).UpdateSpecialistPool(ctx, req.(*UpdateSpecialistPoolRequest)) 246 } 247 return interceptor(ctx, in, info, handler) 248 } 249 250 // SpecialistPoolService_ServiceDesc is the grpc.ServiceDesc for SpecialistPoolService service. 251 // It's only intended for direct use with grpc.RegisterService, 252 // and not to be introspected or modified (even as a copy) 253 var SpecialistPoolService_ServiceDesc = grpc.ServiceDesc{ 254 ServiceName: "google.cloud.aiplatform.v1.SpecialistPoolService", 255 HandlerType: (*SpecialistPoolServiceServer)(nil), 256 Methods: []grpc.MethodDesc{ 257 { 258 MethodName: "CreateSpecialistPool", 259 Handler: _SpecialistPoolService_CreateSpecialistPool_Handler, 260 }, 261 { 262 MethodName: "GetSpecialistPool", 263 Handler: _SpecialistPoolService_GetSpecialistPool_Handler, 264 }, 265 { 266 MethodName: "ListSpecialistPools", 267 Handler: _SpecialistPoolService_ListSpecialistPools_Handler, 268 }, 269 { 270 MethodName: "DeleteSpecialistPool", 271 Handler: _SpecialistPoolService_DeleteSpecialistPool_Handler, 272 }, 273 { 274 MethodName: "UpdateSpecialistPool", 275 Handler: _SpecialistPoolService_UpdateSpecialistPool_Handler, 276 }, 277 }, 278 Streams: []grpc.StreamDesc{}, 279 Metadata: "google/cloud/aiplatform/v1/specialist_pool_service.proto", 280 }