cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/aiplatformpb/example_store_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/example_store_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 ExampleStoreService_CreateExampleStore_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/CreateExampleStore" 38 ExampleStoreService_GetExampleStore_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/GetExampleStore" 39 ExampleStoreService_UpdateExampleStore_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/UpdateExampleStore" 40 ExampleStoreService_DeleteExampleStore_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/DeleteExampleStore" 41 ExampleStoreService_ListExampleStores_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/ListExampleStores" 42 ExampleStoreService_UpsertExamples_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/UpsertExamples" 43 ExampleStoreService_RemoveExamples_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/RemoveExamples" 44 ExampleStoreService_SearchExamples_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/SearchExamples" 45 ExampleStoreService_FetchExamples_FullMethodName = "/google.cloud.aiplatform.v1beta1.ExampleStoreService/FetchExamples" 46 ) 47 48 // ExampleStoreServiceClient is the client API for ExampleStoreService service. 49 // 50 // 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. 51 type ExampleStoreServiceClient interface { 52 // Create an ExampleStore. 53 CreateExampleStore(ctx context.Context, in *CreateExampleStoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 54 // Get an ExampleStore. 55 GetExampleStore(ctx context.Context, in *GetExampleStoreRequest, opts ...grpc.CallOption) (*ExampleStore, error) 56 // Update an ExampleStore. 57 UpdateExampleStore(ctx context.Context, in *UpdateExampleStoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 58 // Delete an ExampleStore. 59 DeleteExampleStore(ctx context.Context, in *DeleteExampleStoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 60 // List ExampleStores in a Location. 61 ListExampleStores(ctx context.Context, in *ListExampleStoresRequest, opts ...grpc.CallOption) (*ListExampleStoresResponse, error) 62 // Create or update Examples in the Example Store. 63 UpsertExamples(ctx context.Context, in *UpsertExamplesRequest, opts ...grpc.CallOption) (*UpsertExamplesResponse, error) 64 // Remove Examples from the Example Store. 65 RemoveExamples(ctx context.Context, in *RemoveExamplesRequest, opts ...grpc.CallOption) (*RemoveExamplesResponse, error) 66 // Search for similar Examples for given selection criteria. 67 SearchExamples(ctx context.Context, in *SearchExamplesRequest, opts ...grpc.CallOption) (*SearchExamplesResponse, error) 68 // Get Examples from the Example Store. 69 FetchExamples(ctx context.Context, in *FetchExamplesRequest, opts ...grpc.CallOption) (*FetchExamplesResponse, error) 70 } 71 72 type exampleStoreServiceClient struct { 73 cc grpc.ClientConnInterface 74 } 75 76 func NewExampleStoreServiceClient(cc grpc.ClientConnInterface) ExampleStoreServiceClient { 77 return &exampleStoreServiceClient{cc} 78 } 79 80 func (c *exampleStoreServiceClient) CreateExampleStore(ctx context.Context, in *CreateExampleStoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 81 out := new(longrunningpb.Operation) 82 err := c.cc.Invoke(ctx, ExampleStoreService_CreateExampleStore_FullMethodName, in, out, opts...) 83 if err != nil { 84 return nil, err 85 } 86 return out, nil 87 } 88 89 func (c *exampleStoreServiceClient) GetExampleStore(ctx context.Context, in *GetExampleStoreRequest, opts ...grpc.CallOption) (*ExampleStore, error) { 90 out := new(ExampleStore) 91 err := c.cc.Invoke(ctx, ExampleStoreService_GetExampleStore_FullMethodName, in, out, opts...) 92 if err != nil { 93 return nil, err 94 } 95 return out, nil 96 } 97 98 func (c *exampleStoreServiceClient) UpdateExampleStore(ctx context.Context, in *UpdateExampleStoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 99 out := new(longrunningpb.Operation) 100 err := c.cc.Invoke(ctx, ExampleStoreService_UpdateExampleStore_FullMethodName, in, out, opts...) 101 if err != nil { 102 return nil, err 103 } 104 return out, nil 105 } 106 107 func (c *exampleStoreServiceClient) DeleteExampleStore(ctx context.Context, in *DeleteExampleStoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 108 out := new(longrunningpb.Operation) 109 err := c.cc.Invoke(ctx, ExampleStoreService_DeleteExampleStore_FullMethodName, in, out, opts...) 110 if err != nil { 111 return nil, err 112 } 113 return out, nil 114 } 115 116 func (c *exampleStoreServiceClient) ListExampleStores(ctx context.Context, in *ListExampleStoresRequest, opts ...grpc.CallOption) (*ListExampleStoresResponse, error) { 117 out := new(ListExampleStoresResponse) 118 err := c.cc.Invoke(ctx, ExampleStoreService_ListExampleStores_FullMethodName, in, out, opts...) 119 if err != nil { 120 return nil, err 121 } 122 return out, nil 123 } 124 125 func (c *exampleStoreServiceClient) UpsertExamples(ctx context.Context, in *UpsertExamplesRequest, opts ...grpc.CallOption) (*UpsertExamplesResponse, error) { 126 out := new(UpsertExamplesResponse) 127 err := c.cc.Invoke(ctx, ExampleStoreService_UpsertExamples_FullMethodName, in, out, opts...) 128 if err != nil { 129 return nil, err 130 } 131 return out, nil 132 } 133 134 func (c *exampleStoreServiceClient) RemoveExamples(ctx context.Context, in *RemoveExamplesRequest, opts ...grpc.CallOption) (*RemoveExamplesResponse, error) { 135 out := new(RemoveExamplesResponse) 136 err := c.cc.Invoke(ctx, ExampleStoreService_RemoveExamples_FullMethodName, in, out, opts...) 137 if err != nil { 138 return nil, err 139 } 140 return out, nil 141 } 142 143 func (c *exampleStoreServiceClient) SearchExamples(ctx context.Context, in *SearchExamplesRequest, opts ...grpc.CallOption) (*SearchExamplesResponse, error) { 144 out := new(SearchExamplesResponse) 145 err := c.cc.Invoke(ctx, ExampleStoreService_SearchExamples_FullMethodName, in, out, opts...) 146 if err != nil { 147 return nil, err 148 } 149 return out, nil 150 } 151 152 func (c *exampleStoreServiceClient) FetchExamples(ctx context.Context, in *FetchExamplesRequest, opts ...grpc.CallOption) (*FetchExamplesResponse, error) { 153 out := new(FetchExamplesResponse) 154 err := c.cc.Invoke(ctx, ExampleStoreService_FetchExamples_FullMethodName, in, out, opts...) 155 if err != nil { 156 return nil, err 157 } 158 return out, nil 159 } 160 161 // ExampleStoreServiceServer is the server API for ExampleStoreService service. 162 // All implementations should embed UnimplementedExampleStoreServiceServer 163 // for forward compatibility 164 type ExampleStoreServiceServer interface { 165 // Create an ExampleStore. 166 CreateExampleStore(context.Context, *CreateExampleStoreRequest) (*longrunningpb.Operation, error) 167 // Get an ExampleStore. 168 GetExampleStore(context.Context, *GetExampleStoreRequest) (*ExampleStore, error) 169 // Update an ExampleStore. 170 UpdateExampleStore(context.Context, *UpdateExampleStoreRequest) (*longrunningpb.Operation, error) 171 // Delete an ExampleStore. 172 DeleteExampleStore(context.Context, *DeleteExampleStoreRequest) (*longrunningpb.Operation, error) 173 // List ExampleStores in a Location. 174 ListExampleStores(context.Context, *ListExampleStoresRequest) (*ListExampleStoresResponse, error) 175 // Create or update Examples in the Example Store. 176 UpsertExamples(context.Context, *UpsertExamplesRequest) (*UpsertExamplesResponse, error) 177 // Remove Examples from the Example Store. 178 RemoveExamples(context.Context, *RemoveExamplesRequest) (*RemoveExamplesResponse, error) 179 // Search for similar Examples for given selection criteria. 180 SearchExamples(context.Context, *SearchExamplesRequest) (*SearchExamplesResponse, error) 181 // Get Examples from the Example Store. 182 FetchExamples(context.Context, *FetchExamplesRequest) (*FetchExamplesResponse, error) 183 } 184 185 // UnimplementedExampleStoreServiceServer should be embedded to have forward compatible implementations. 186 type UnimplementedExampleStoreServiceServer struct { 187 } 188 189 func (UnimplementedExampleStoreServiceServer) CreateExampleStore(context.Context, *CreateExampleStoreRequest) (*longrunningpb.Operation, error) { 190 return nil, status.Errorf(codes.Unimplemented, "method CreateExampleStore not implemented") 191 } 192 func (UnimplementedExampleStoreServiceServer) GetExampleStore(context.Context, *GetExampleStoreRequest) (*ExampleStore, error) { 193 return nil, status.Errorf(codes.Unimplemented, "method GetExampleStore not implemented") 194 } 195 func (UnimplementedExampleStoreServiceServer) UpdateExampleStore(context.Context, *UpdateExampleStoreRequest) (*longrunningpb.Operation, error) { 196 return nil, status.Errorf(codes.Unimplemented, "method UpdateExampleStore not implemented") 197 } 198 func (UnimplementedExampleStoreServiceServer) DeleteExampleStore(context.Context, *DeleteExampleStoreRequest) (*longrunningpb.Operation, error) { 199 return nil, status.Errorf(codes.Unimplemented, "method DeleteExampleStore not implemented") 200 } 201 func (UnimplementedExampleStoreServiceServer) ListExampleStores(context.Context, *ListExampleStoresRequest) (*ListExampleStoresResponse, error) { 202 return nil, status.Errorf(codes.Unimplemented, "method ListExampleStores not implemented") 203 } 204 func (UnimplementedExampleStoreServiceServer) UpsertExamples(context.Context, *UpsertExamplesRequest) (*UpsertExamplesResponse, error) { 205 return nil, status.Errorf(codes.Unimplemented, "method UpsertExamples not implemented") 206 } 207 func (UnimplementedExampleStoreServiceServer) RemoveExamples(context.Context, *RemoveExamplesRequest) (*RemoveExamplesResponse, error) { 208 return nil, status.Errorf(codes.Unimplemented, "method RemoveExamples not implemented") 209 } 210 func (UnimplementedExampleStoreServiceServer) SearchExamples(context.Context, *SearchExamplesRequest) (*SearchExamplesResponse, error) { 211 return nil, status.Errorf(codes.Unimplemented, "method SearchExamples not implemented") 212 } 213 func (UnimplementedExampleStoreServiceServer) FetchExamples(context.Context, *FetchExamplesRequest) (*FetchExamplesResponse, error) { 214 return nil, status.Errorf(codes.Unimplemented, "method FetchExamples not implemented") 215 } 216 217 // UnsafeExampleStoreServiceServer may be embedded to opt out of forward compatibility for this service. 218 // Use of this interface is not recommended, as added methods to ExampleStoreServiceServer will 219 // result in compilation errors. 220 type UnsafeExampleStoreServiceServer interface { 221 mustEmbedUnimplementedExampleStoreServiceServer() 222 } 223 224 func RegisterExampleStoreServiceServer(s grpc.ServiceRegistrar, srv ExampleStoreServiceServer) { 225 s.RegisterService(&ExampleStoreService_ServiceDesc, srv) 226 } 227 228 func _ExampleStoreService_CreateExampleStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 229 in := new(CreateExampleStoreRequest) 230 if err := dec(in); err != nil { 231 return nil, err 232 } 233 if interceptor == nil { 234 return srv.(ExampleStoreServiceServer).CreateExampleStore(ctx, in) 235 } 236 info := &grpc.UnaryServerInfo{ 237 Server: srv, 238 FullMethod: ExampleStoreService_CreateExampleStore_FullMethodName, 239 } 240 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 241 return srv.(ExampleStoreServiceServer).CreateExampleStore(ctx, req.(*CreateExampleStoreRequest)) 242 } 243 return interceptor(ctx, in, info, handler) 244 } 245 246 func _ExampleStoreService_GetExampleStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 247 in := new(GetExampleStoreRequest) 248 if err := dec(in); err != nil { 249 return nil, err 250 } 251 if interceptor == nil { 252 return srv.(ExampleStoreServiceServer).GetExampleStore(ctx, in) 253 } 254 info := &grpc.UnaryServerInfo{ 255 Server: srv, 256 FullMethod: ExampleStoreService_GetExampleStore_FullMethodName, 257 } 258 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 259 return srv.(ExampleStoreServiceServer).GetExampleStore(ctx, req.(*GetExampleStoreRequest)) 260 } 261 return interceptor(ctx, in, info, handler) 262 } 263 264 func _ExampleStoreService_UpdateExampleStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 265 in := new(UpdateExampleStoreRequest) 266 if err := dec(in); err != nil { 267 return nil, err 268 } 269 if interceptor == nil { 270 return srv.(ExampleStoreServiceServer).UpdateExampleStore(ctx, in) 271 } 272 info := &grpc.UnaryServerInfo{ 273 Server: srv, 274 FullMethod: ExampleStoreService_UpdateExampleStore_FullMethodName, 275 } 276 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 277 return srv.(ExampleStoreServiceServer).UpdateExampleStore(ctx, req.(*UpdateExampleStoreRequest)) 278 } 279 return interceptor(ctx, in, info, handler) 280 } 281 282 func _ExampleStoreService_DeleteExampleStore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 283 in := new(DeleteExampleStoreRequest) 284 if err := dec(in); err != nil { 285 return nil, err 286 } 287 if interceptor == nil { 288 return srv.(ExampleStoreServiceServer).DeleteExampleStore(ctx, in) 289 } 290 info := &grpc.UnaryServerInfo{ 291 Server: srv, 292 FullMethod: ExampleStoreService_DeleteExampleStore_FullMethodName, 293 } 294 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 295 return srv.(ExampleStoreServiceServer).DeleteExampleStore(ctx, req.(*DeleteExampleStoreRequest)) 296 } 297 return interceptor(ctx, in, info, handler) 298 } 299 300 func _ExampleStoreService_ListExampleStores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 301 in := new(ListExampleStoresRequest) 302 if err := dec(in); err != nil { 303 return nil, err 304 } 305 if interceptor == nil { 306 return srv.(ExampleStoreServiceServer).ListExampleStores(ctx, in) 307 } 308 info := &grpc.UnaryServerInfo{ 309 Server: srv, 310 FullMethod: ExampleStoreService_ListExampleStores_FullMethodName, 311 } 312 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 313 return srv.(ExampleStoreServiceServer).ListExampleStores(ctx, req.(*ListExampleStoresRequest)) 314 } 315 return interceptor(ctx, in, info, handler) 316 } 317 318 func _ExampleStoreService_UpsertExamples_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 319 in := new(UpsertExamplesRequest) 320 if err := dec(in); err != nil { 321 return nil, err 322 } 323 if interceptor == nil { 324 return srv.(ExampleStoreServiceServer).UpsertExamples(ctx, in) 325 } 326 info := &grpc.UnaryServerInfo{ 327 Server: srv, 328 FullMethod: ExampleStoreService_UpsertExamples_FullMethodName, 329 } 330 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 331 return srv.(ExampleStoreServiceServer).UpsertExamples(ctx, req.(*UpsertExamplesRequest)) 332 } 333 return interceptor(ctx, in, info, handler) 334 } 335 336 func _ExampleStoreService_RemoveExamples_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 337 in := new(RemoveExamplesRequest) 338 if err := dec(in); err != nil { 339 return nil, err 340 } 341 if interceptor == nil { 342 return srv.(ExampleStoreServiceServer).RemoveExamples(ctx, in) 343 } 344 info := &grpc.UnaryServerInfo{ 345 Server: srv, 346 FullMethod: ExampleStoreService_RemoveExamples_FullMethodName, 347 } 348 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 349 return srv.(ExampleStoreServiceServer).RemoveExamples(ctx, req.(*RemoveExamplesRequest)) 350 } 351 return interceptor(ctx, in, info, handler) 352 } 353 354 func _ExampleStoreService_SearchExamples_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 355 in := new(SearchExamplesRequest) 356 if err := dec(in); err != nil { 357 return nil, err 358 } 359 if interceptor == nil { 360 return srv.(ExampleStoreServiceServer).SearchExamples(ctx, in) 361 } 362 info := &grpc.UnaryServerInfo{ 363 Server: srv, 364 FullMethod: ExampleStoreService_SearchExamples_FullMethodName, 365 } 366 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 367 return srv.(ExampleStoreServiceServer).SearchExamples(ctx, req.(*SearchExamplesRequest)) 368 } 369 return interceptor(ctx, in, info, handler) 370 } 371 372 func _ExampleStoreService_FetchExamples_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 373 in := new(FetchExamplesRequest) 374 if err := dec(in); err != nil { 375 return nil, err 376 } 377 if interceptor == nil { 378 return srv.(ExampleStoreServiceServer).FetchExamples(ctx, in) 379 } 380 info := &grpc.UnaryServerInfo{ 381 Server: srv, 382 FullMethod: ExampleStoreService_FetchExamples_FullMethodName, 383 } 384 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 385 return srv.(ExampleStoreServiceServer).FetchExamples(ctx, req.(*FetchExamplesRequest)) 386 } 387 return interceptor(ctx, in, info, handler) 388 } 389 390 // ExampleStoreService_ServiceDesc is the grpc.ServiceDesc for ExampleStoreService service. 391 // It's only intended for direct use with grpc.RegisterService, 392 // and not to be introspected or modified (even as a copy) 393 var ExampleStoreService_ServiceDesc = grpc.ServiceDesc{ 394 ServiceName: "google.cloud.aiplatform.v1beta1.ExampleStoreService", 395 HandlerType: (*ExampleStoreServiceServer)(nil), 396 Methods: []grpc.MethodDesc{ 397 { 398 MethodName: "CreateExampleStore", 399 Handler: _ExampleStoreService_CreateExampleStore_Handler, 400 }, 401 { 402 MethodName: "GetExampleStore", 403 Handler: _ExampleStoreService_GetExampleStore_Handler, 404 }, 405 { 406 MethodName: "UpdateExampleStore", 407 Handler: _ExampleStoreService_UpdateExampleStore_Handler, 408 }, 409 { 410 MethodName: "DeleteExampleStore", 411 Handler: _ExampleStoreService_DeleteExampleStore_Handler, 412 }, 413 { 414 MethodName: "ListExampleStores", 415 Handler: _ExampleStoreService_ListExampleStores_Handler, 416 }, 417 { 418 MethodName: "UpsertExamples", 419 Handler: _ExampleStoreService_UpsertExamples_Handler, 420 }, 421 { 422 MethodName: "RemoveExamples", 423 Handler: _ExampleStoreService_RemoveExamples_Handler, 424 }, 425 { 426 MethodName: "SearchExamples", 427 Handler: _ExampleStoreService_SearchExamples_Handler, 428 }, 429 { 430 MethodName: "FetchExamples", 431 Handler: _ExampleStoreService_FetchExamples_Handler, 432 }, 433 }, 434 Streams: []grpc.StreamDesc{}, 435 Metadata: "google/cloud/aiplatform/v1beta1/example_store_service.proto", 436 }