cloud.google.com/go/aiplatform@v1.106.0/apiv1beta1/aiplatformpb/featurestore_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/featurestore_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 FeaturestoreService_CreateFeaturestore_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/CreateFeaturestore" 38 FeaturestoreService_GetFeaturestore_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/GetFeaturestore" 39 FeaturestoreService_ListFeaturestores_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/ListFeaturestores" 40 FeaturestoreService_UpdateFeaturestore_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/UpdateFeaturestore" 41 FeaturestoreService_DeleteFeaturestore_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/DeleteFeaturestore" 42 FeaturestoreService_CreateEntityType_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/CreateEntityType" 43 FeaturestoreService_GetEntityType_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/GetEntityType" 44 FeaturestoreService_ListEntityTypes_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/ListEntityTypes" 45 FeaturestoreService_UpdateEntityType_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/UpdateEntityType" 46 FeaturestoreService_DeleteEntityType_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/DeleteEntityType" 47 FeaturestoreService_CreateFeature_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/CreateFeature" 48 FeaturestoreService_BatchCreateFeatures_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/BatchCreateFeatures" 49 FeaturestoreService_GetFeature_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/GetFeature" 50 FeaturestoreService_ListFeatures_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/ListFeatures" 51 FeaturestoreService_UpdateFeature_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/UpdateFeature" 52 FeaturestoreService_DeleteFeature_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/DeleteFeature" 53 FeaturestoreService_ImportFeatureValues_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/ImportFeatureValues" 54 FeaturestoreService_BatchReadFeatureValues_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/BatchReadFeatureValues" 55 FeaturestoreService_ExportFeatureValues_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/ExportFeatureValues" 56 FeaturestoreService_DeleteFeatureValues_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/DeleteFeatureValues" 57 FeaturestoreService_SearchFeatures_FullMethodName = "/google.cloud.aiplatform.v1beta1.FeaturestoreService/SearchFeatures" 58 ) 59 60 // FeaturestoreServiceClient is the client API for FeaturestoreService service. 61 // 62 // 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. 63 type FeaturestoreServiceClient interface { 64 // Creates a new Featurestore in a given project and location. 65 CreateFeaturestore(ctx context.Context, in *CreateFeaturestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 66 // Gets details of a single Featurestore. 67 GetFeaturestore(ctx context.Context, in *GetFeaturestoreRequest, opts ...grpc.CallOption) (*Featurestore, error) 68 // Lists Featurestores in a given project and location. 69 ListFeaturestores(ctx context.Context, in *ListFeaturestoresRequest, opts ...grpc.CallOption) (*ListFeaturestoresResponse, error) 70 // Updates the parameters of a single Featurestore. 71 UpdateFeaturestore(ctx context.Context, in *UpdateFeaturestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 72 // Deletes a single Featurestore. The Featurestore must not contain any 73 // EntityTypes or `force` must be set to true for the request to succeed. 74 DeleteFeaturestore(ctx context.Context, in *DeleteFeaturestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 75 // Creates a new EntityType in a given Featurestore. 76 CreateEntityType(ctx context.Context, in *CreateEntityTypeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 77 // Gets details of a single EntityType. 78 GetEntityType(ctx context.Context, in *GetEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) 79 // Lists EntityTypes in a given Featurestore. 80 ListEntityTypes(ctx context.Context, in *ListEntityTypesRequest, opts ...grpc.CallOption) (*ListEntityTypesResponse, error) 81 // Updates the parameters of a single EntityType. 82 UpdateEntityType(ctx context.Context, in *UpdateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) 83 // Deletes a single EntityType. The EntityType must not have any Features 84 // or `force` must be set to true for the request to succeed. 85 DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 86 // Creates a new Feature in a given EntityType. 87 CreateFeature(ctx context.Context, in *CreateFeatureRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 88 // Creates a batch of Features in a given EntityType. 89 BatchCreateFeatures(ctx context.Context, in *BatchCreateFeaturesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 90 // Gets details of a single Feature. 91 GetFeature(ctx context.Context, in *GetFeatureRequest, opts ...grpc.CallOption) (*Feature, error) 92 // Lists Features in a given EntityType. 93 ListFeatures(ctx context.Context, in *ListFeaturesRequest, opts ...grpc.CallOption) (*ListFeaturesResponse, error) 94 // Updates the parameters of a single Feature. 95 UpdateFeature(ctx context.Context, in *UpdateFeatureRequest, opts ...grpc.CallOption) (*Feature, error) 96 // Deletes a single Feature. 97 DeleteFeature(ctx context.Context, in *DeleteFeatureRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 98 // Imports Feature values into the Featurestore from a source storage. 99 // 100 // The progress of the import is tracked by the returned operation. The 101 // imported features are guaranteed to be visible to subsequent read 102 // operations after the operation is marked as successfully done. 103 // 104 // If an import operation fails, the Feature values returned from 105 // reads and exports may be inconsistent. If consistency is 106 // required, the caller must retry the same import request again and wait till 107 // the new operation returned is marked as successfully done. 108 // 109 // There are also scenarios where the caller can cause inconsistency. 110 // 111 // - Source data for import contains multiple distinct Feature values for 112 // the same entity ID and timestamp. 113 // - Source is modified during an import. This includes adding, updating, or 114 // removing source data and/or metadata. Examples of updating metadata 115 // include but are not limited to changing storage location, storage class, 116 // or retention policy. 117 // - Online serving cluster is under-provisioned. 118 ImportFeatureValues(ctx context.Context, in *ImportFeatureValuesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 119 // Batch reads Feature values from a Featurestore. 120 // 121 // This API enables batch reading Feature values, where each read 122 // instance in the batch may read Feature values of entities from one or 123 // more EntityTypes. Point-in-time correctness is guaranteed for Feature 124 // values of each read instance as of each instance's read timestamp. 125 BatchReadFeatureValues(ctx context.Context, in *BatchReadFeatureValuesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 126 // Exports Feature values from all the entities of a target EntityType. 127 ExportFeatureValues(ctx context.Context, in *ExportFeatureValuesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 128 // Delete Feature values from Featurestore. 129 // 130 // The progress of the deletion is tracked by the returned operation. The 131 // deleted feature values are guaranteed to be invisible to subsequent read 132 // operations after the operation is marked as successfully done. 133 // 134 // If a delete feature values operation fails, the feature values 135 // returned from reads and exports may be inconsistent. If consistency is 136 // required, the caller must retry the same delete request again and wait till 137 // the new operation returned is marked as successfully done. 138 DeleteFeatureValues(ctx context.Context, in *DeleteFeatureValuesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) 139 // Searches Features matching a query in a given project. 140 SearchFeatures(ctx context.Context, in *SearchFeaturesRequest, opts ...grpc.CallOption) (*SearchFeaturesResponse, error) 141 } 142 143 type featurestoreServiceClient struct { 144 cc grpc.ClientConnInterface 145 } 146 147 func NewFeaturestoreServiceClient(cc grpc.ClientConnInterface) FeaturestoreServiceClient { 148 return &featurestoreServiceClient{cc} 149 } 150 151 func (c *featurestoreServiceClient) CreateFeaturestore(ctx context.Context, in *CreateFeaturestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 152 out := new(longrunningpb.Operation) 153 err := c.cc.Invoke(ctx, FeaturestoreService_CreateFeaturestore_FullMethodName, in, out, opts...) 154 if err != nil { 155 return nil, err 156 } 157 return out, nil 158 } 159 160 func (c *featurestoreServiceClient) GetFeaturestore(ctx context.Context, in *GetFeaturestoreRequest, opts ...grpc.CallOption) (*Featurestore, error) { 161 out := new(Featurestore) 162 err := c.cc.Invoke(ctx, FeaturestoreService_GetFeaturestore_FullMethodName, in, out, opts...) 163 if err != nil { 164 return nil, err 165 } 166 return out, nil 167 } 168 169 func (c *featurestoreServiceClient) ListFeaturestores(ctx context.Context, in *ListFeaturestoresRequest, opts ...grpc.CallOption) (*ListFeaturestoresResponse, error) { 170 out := new(ListFeaturestoresResponse) 171 err := c.cc.Invoke(ctx, FeaturestoreService_ListFeaturestores_FullMethodName, in, out, opts...) 172 if err != nil { 173 return nil, err 174 } 175 return out, nil 176 } 177 178 func (c *featurestoreServiceClient) UpdateFeaturestore(ctx context.Context, in *UpdateFeaturestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 179 out := new(longrunningpb.Operation) 180 err := c.cc.Invoke(ctx, FeaturestoreService_UpdateFeaturestore_FullMethodName, in, out, opts...) 181 if err != nil { 182 return nil, err 183 } 184 return out, nil 185 } 186 187 func (c *featurestoreServiceClient) DeleteFeaturestore(ctx context.Context, in *DeleteFeaturestoreRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 188 out := new(longrunningpb.Operation) 189 err := c.cc.Invoke(ctx, FeaturestoreService_DeleteFeaturestore_FullMethodName, in, out, opts...) 190 if err != nil { 191 return nil, err 192 } 193 return out, nil 194 } 195 196 func (c *featurestoreServiceClient) CreateEntityType(ctx context.Context, in *CreateEntityTypeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 197 out := new(longrunningpb.Operation) 198 err := c.cc.Invoke(ctx, FeaturestoreService_CreateEntityType_FullMethodName, in, out, opts...) 199 if err != nil { 200 return nil, err 201 } 202 return out, nil 203 } 204 205 func (c *featurestoreServiceClient) GetEntityType(ctx context.Context, in *GetEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) { 206 out := new(EntityType) 207 err := c.cc.Invoke(ctx, FeaturestoreService_GetEntityType_FullMethodName, in, out, opts...) 208 if err != nil { 209 return nil, err 210 } 211 return out, nil 212 } 213 214 func (c *featurestoreServiceClient) ListEntityTypes(ctx context.Context, in *ListEntityTypesRequest, opts ...grpc.CallOption) (*ListEntityTypesResponse, error) { 215 out := new(ListEntityTypesResponse) 216 err := c.cc.Invoke(ctx, FeaturestoreService_ListEntityTypes_FullMethodName, in, out, opts...) 217 if err != nil { 218 return nil, err 219 } 220 return out, nil 221 } 222 223 func (c *featurestoreServiceClient) UpdateEntityType(ctx context.Context, in *UpdateEntityTypeRequest, opts ...grpc.CallOption) (*EntityType, error) { 224 out := new(EntityType) 225 err := c.cc.Invoke(ctx, FeaturestoreService_UpdateEntityType_FullMethodName, in, out, opts...) 226 if err != nil { 227 return nil, err 228 } 229 return out, nil 230 } 231 232 func (c *featurestoreServiceClient) DeleteEntityType(ctx context.Context, in *DeleteEntityTypeRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 233 out := new(longrunningpb.Operation) 234 err := c.cc.Invoke(ctx, FeaturestoreService_DeleteEntityType_FullMethodName, in, out, opts...) 235 if err != nil { 236 return nil, err 237 } 238 return out, nil 239 } 240 241 func (c *featurestoreServiceClient) CreateFeature(ctx context.Context, in *CreateFeatureRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 242 out := new(longrunningpb.Operation) 243 err := c.cc.Invoke(ctx, FeaturestoreService_CreateFeature_FullMethodName, in, out, opts...) 244 if err != nil { 245 return nil, err 246 } 247 return out, nil 248 } 249 250 func (c *featurestoreServiceClient) BatchCreateFeatures(ctx context.Context, in *BatchCreateFeaturesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 251 out := new(longrunningpb.Operation) 252 err := c.cc.Invoke(ctx, FeaturestoreService_BatchCreateFeatures_FullMethodName, in, out, opts...) 253 if err != nil { 254 return nil, err 255 } 256 return out, nil 257 } 258 259 func (c *featurestoreServiceClient) GetFeature(ctx context.Context, in *GetFeatureRequest, opts ...grpc.CallOption) (*Feature, error) { 260 out := new(Feature) 261 err := c.cc.Invoke(ctx, FeaturestoreService_GetFeature_FullMethodName, in, out, opts...) 262 if err != nil { 263 return nil, err 264 } 265 return out, nil 266 } 267 268 func (c *featurestoreServiceClient) ListFeatures(ctx context.Context, in *ListFeaturesRequest, opts ...grpc.CallOption) (*ListFeaturesResponse, error) { 269 out := new(ListFeaturesResponse) 270 err := c.cc.Invoke(ctx, FeaturestoreService_ListFeatures_FullMethodName, in, out, opts...) 271 if err != nil { 272 return nil, err 273 } 274 return out, nil 275 } 276 277 func (c *featurestoreServiceClient) UpdateFeature(ctx context.Context, in *UpdateFeatureRequest, opts ...grpc.CallOption) (*Feature, error) { 278 out := new(Feature) 279 err := c.cc.Invoke(ctx, FeaturestoreService_UpdateFeature_FullMethodName, in, out, opts...) 280 if err != nil { 281 return nil, err 282 } 283 return out, nil 284 } 285 286 func (c *featurestoreServiceClient) DeleteFeature(ctx context.Context, in *DeleteFeatureRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 287 out := new(longrunningpb.Operation) 288 err := c.cc.Invoke(ctx, FeaturestoreService_DeleteFeature_FullMethodName, in, out, opts...) 289 if err != nil { 290 return nil, err 291 } 292 return out, nil 293 } 294 295 func (c *featurestoreServiceClient) ImportFeatureValues(ctx context.Context, in *ImportFeatureValuesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 296 out := new(longrunningpb.Operation) 297 err := c.cc.Invoke(ctx, FeaturestoreService_ImportFeatureValues_FullMethodName, in, out, opts...) 298 if err != nil { 299 return nil, err 300 } 301 return out, nil 302 } 303 304 func (c *featurestoreServiceClient) BatchReadFeatureValues(ctx context.Context, in *BatchReadFeatureValuesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 305 out := new(longrunningpb.Operation) 306 err := c.cc.Invoke(ctx, FeaturestoreService_BatchReadFeatureValues_FullMethodName, in, out, opts...) 307 if err != nil { 308 return nil, err 309 } 310 return out, nil 311 } 312 313 func (c *featurestoreServiceClient) ExportFeatureValues(ctx context.Context, in *ExportFeatureValuesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 314 out := new(longrunningpb.Operation) 315 err := c.cc.Invoke(ctx, FeaturestoreService_ExportFeatureValues_FullMethodName, in, out, opts...) 316 if err != nil { 317 return nil, err 318 } 319 return out, nil 320 } 321 322 func (c *featurestoreServiceClient) DeleteFeatureValues(ctx context.Context, in *DeleteFeatureValuesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { 323 out := new(longrunningpb.Operation) 324 err := c.cc.Invoke(ctx, FeaturestoreService_DeleteFeatureValues_FullMethodName, in, out, opts...) 325 if err != nil { 326 return nil, err 327 } 328 return out, nil 329 } 330 331 func (c *featurestoreServiceClient) SearchFeatures(ctx context.Context, in *SearchFeaturesRequest, opts ...grpc.CallOption) (*SearchFeaturesResponse, error) { 332 out := new(SearchFeaturesResponse) 333 err := c.cc.Invoke(ctx, FeaturestoreService_SearchFeatures_FullMethodName, in, out, opts...) 334 if err != nil { 335 return nil, err 336 } 337 return out, nil 338 } 339 340 // FeaturestoreServiceServer is the server API for FeaturestoreService service. 341 // All implementations should embed UnimplementedFeaturestoreServiceServer 342 // for forward compatibility 343 type FeaturestoreServiceServer interface { 344 // Creates a new Featurestore in a given project and location. 345 CreateFeaturestore(context.Context, *CreateFeaturestoreRequest) (*longrunningpb.Operation, error) 346 // Gets details of a single Featurestore. 347 GetFeaturestore(context.Context, *GetFeaturestoreRequest) (*Featurestore, error) 348 // Lists Featurestores in a given project and location. 349 ListFeaturestores(context.Context, *ListFeaturestoresRequest) (*ListFeaturestoresResponse, error) 350 // Updates the parameters of a single Featurestore. 351 UpdateFeaturestore(context.Context, *UpdateFeaturestoreRequest) (*longrunningpb.Operation, error) 352 // Deletes a single Featurestore. The Featurestore must not contain any 353 // EntityTypes or `force` must be set to true for the request to succeed. 354 DeleteFeaturestore(context.Context, *DeleteFeaturestoreRequest) (*longrunningpb.Operation, error) 355 // Creates a new EntityType in a given Featurestore. 356 CreateEntityType(context.Context, *CreateEntityTypeRequest) (*longrunningpb.Operation, error) 357 // Gets details of a single EntityType. 358 GetEntityType(context.Context, *GetEntityTypeRequest) (*EntityType, error) 359 // Lists EntityTypes in a given Featurestore. 360 ListEntityTypes(context.Context, *ListEntityTypesRequest) (*ListEntityTypesResponse, error) 361 // Updates the parameters of a single EntityType. 362 UpdateEntityType(context.Context, *UpdateEntityTypeRequest) (*EntityType, error) 363 // Deletes a single EntityType. The EntityType must not have any Features 364 // or `force` must be set to true for the request to succeed. 365 DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*longrunningpb.Operation, error) 366 // Creates a new Feature in a given EntityType. 367 CreateFeature(context.Context, *CreateFeatureRequest) (*longrunningpb.Operation, error) 368 // Creates a batch of Features in a given EntityType. 369 BatchCreateFeatures(context.Context, *BatchCreateFeaturesRequest) (*longrunningpb.Operation, error) 370 // Gets details of a single Feature. 371 GetFeature(context.Context, *GetFeatureRequest) (*Feature, error) 372 // Lists Features in a given EntityType. 373 ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error) 374 // Updates the parameters of a single Feature. 375 UpdateFeature(context.Context, *UpdateFeatureRequest) (*Feature, error) 376 // Deletes a single Feature. 377 DeleteFeature(context.Context, *DeleteFeatureRequest) (*longrunningpb.Operation, error) 378 // Imports Feature values into the Featurestore from a source storage. 379 // 380 // The progress of the import is tracked by the returned operation. The 381 // imported features are guaranteed to be visible to subsequent read 382 // operations after the operation is marked as successfully done. 383 // 384 // If an import operation fails, the Feature values returned from 385 // reads and exports may be inconsistent. If consistency is 386 // required, the caller must retry the same import request again and wait till 387 // the new operation returned is marked as successfully done. 388 // 389 // There are also scenarios where the caller can cause inconsistency. 390 // 391 // - Source data for import contains multiple distinct Feature values for 392 // the same entity ID and timestamp. 393 // - Source is modified during an import. This includes adding, updating, or 394 // removing source data and/or metadata. Examples of updating metadata 395 // include but are not limited to changing storage location, storage class, 396 // or retention policy. 397 // - Online serving cluster is under-provisioned. 398 ImportFeatureValues(context.Context, *ImportFeatureValuesRequest) (*longrunningpb.Operation, error) 399 // Batch reads Feature values from a Featurestore. 400 // 401 // This API enables batch reading Feature values, where each read 402 // instance in the batch may read Feature values of entities from one or 403 // more EntityTypes. Point-in-time correctness is guaranteed for Feature 404 // values of each read instance as of each instance's read timestamp. 405 BatchReadFeatureValues(context.Context, *BatchReadFeatureValuesRequest) (*longrunningpb.Operation, error) 406 // Exports Feature values from all the entities of a target EntityType. 407 ExportFeatureValues(context.Context, *ExportFeatureValuesRequest) (*longrunningpb.Operation, error) 408 // Delete Feature values from Featurestore. 409 // 410 // The progress of the deletion is tracked by the returned operation. The 411 // deleted feature values are guaranteed to be invisible to subsequent read 412 // operations after the operation is marked as successfully done. 413 // 414 // If a delete feature values operation fails, the feature values 415 // returned from reads and exports may be inconsistent. If consistency is 416 // required, the caller must retry the same delete request again and wait till 417 // the new operation returned is marked as successfully done. 418 DeleteFeatureValues(context.Context, *DeleteFeatureValuesRequest) (*longrunningpb.Operation, error) 419 // Searches Features matching a query in a given project. 420 SearchFeatures(context.Context, *SearchFeaturesRequest) (*SearchFeaturesResponse, error) 421 } 422 423 // UnimplementedFeaturestoreServiceServer should be embedded to have forward compatible implementations. 424 type UnimplementedFeaturestoreServiceServer struct { 425 } 426 427 func (UnimplementedFeaturestoreServiceServer) CreateFeaturestore(context.Context, *CreateFeaturestoreRequest) (*longrunningpb.Operation, error) { 428 return nil, status.Errorf(codes.Unimplemented, "method CreateFeaturestore not implemented") 429 } 430 func (UnimplementedFeaturestoreServiceServer) GetFeaturestore(context.Context, *GetFeaturestoreRequest) (*Featurestore, error) { 431 return nil, status.Errorf(codes.Unimplemented, "method GetFeaturestore not implemented") 432 } 433 func (UnimplementedFeaturestoreServiceServer) ListFeaturestores(context.Context, *ListFeaturestoresRequest) (*ListFeaturestoresResponse, error) { 434 return nil, status.Errorf(codes.Unimplemented, "method ListFeaturestores not implemented") 435 } 436 func (UnimplementedFeaturestoreServiceServer) UpdateFeaturestore(context.Context, *UpdateFeaturestoreRequest) (*longrunningpb.Operation, error) { 437 return nil, status.Errorf(codes.Unimplemented, "method UpdateFeaturestore not implemented") 438 } 439 func (UnimplementedFeaturestoreServiceServer) DeleteFeaturestore(context.Context, *DeleteFeaturestoreRequest) (*longrunningpb.Operation, error) { 440 return nil, status.Errorf(codes.Unimplemented, "method DeleteFeaturestore not implemented") 441 } 442 func (UnimplementedFeaturestoreServiceServer) CreateEntityType(context.Context, *CreateEntityTypeRequest) (*longrunningpb.Operation, error) { 443 return nil, status.Errorf(codes.Unimplemented, "method CreateEntityType not implemented") 444 } 445 func (UnimplementedFeaturestoreServiceServer) GetEntityType(context.Context, *GetEntityTypeRequest) (*EntityType, error) { 446 return nil, status.Errorf(codes.Unimplemented, "method GetEntityType not implemented") 447 } 448 func (UnimplementedFeaturestoreServiceServer) ListEntityTypes(context.Context, *ListEntityTypesRequest) (*ListEntityTypesResponse, error) { 449 return nil, status.Errorf(codes.Unimplemented, "method ListEntityTypes not implemented") 450 } 451 func (UnimplementedFeaturestoreServiceServer) UpdateEntityType(context.Context, *UpdateEntityTypeRequest) (*EntityType, error) { 452 return nil, status.Errorf(codes.Unimplemented, "method UpdateEntityType not implemented") 453 } 454 func (UnimplementedFeaturestoreServiceServer) DeleteEntityType(context.Context, *DeleteEntityTypeRequest) (*longrunningpb.Operation, error) { 455 return nil, status.Errorf(codes.Unimplemented, "method DeleteEntityType not implemented") 456 } 457 func (UnimplementedFeaturestoreServiceServer) CreateFeature(context.Context, *CreateFeatureRequest) (*longrunningpb.Operation, error) { 458 return nil, status.Errorf(codes.Unimplemented, "method CreateFeature not implemented") 459 } 460 func (UnimplementedFeaturestoreServiceServer) BatchCreateFeatures(context.Context, *BatchCreateFeaturesRequest) (*longrunningpb.Operation, error) { 461 return nil, status.Errorf(codes.Unimplemented, "method BatchCreateFeatures not implemented") 462 } 463 func (UnimplementedFeaturestoreServiceServer) GetFeature(context.Context, *GetFeatureRequest) (*Feature, error) { 464 return nil, status.Errorf(codes.Unimplemented, "method GetFeature not implemented") 465 } 466 func (UnimplementedFeaturestoreServiceServer) ListFeatures(context.Context, *ListFeaturesRequest) (*ListFeaturesResponse, error) { 467 return nil, status.Errorf(codes.Unimplemented, "method ListFeatures not implemented") 468 } 469 func (UnimplementedFeaturestoreServiceServer) UpdateFeature(context.Context, *UpdateFeatureRequest) (*Feature, error) { 470 return nil, status.Errorf(codes.Unimplemented, "method UpdateFeature not implemented") 471 } 472 func (UnimplementedFeaturestoreServiceServer) DeleteFeature(context.Context, *DeleteFeatureRequest) (*longrunningpb.Operation, error) { 473 return nil, status.Errorf(codes.Unimplemented, "method DeleteFeature not implemented") 474 } 475 func (UnimplementedFeaturestoreServiceServer) ImportFeatureValues(context.Context, *ImportFeatureValuesRequest) (*longrunningpb.Operation, error) { 476 return nil, status.Errorf(codes.Unimplemented, "method ImportFeatureValues not implemented") 477 } 478 func (UnimplementedFeaturestoreServiceServer) BatchReadFeatureValues(context.Context, *BatchReadFeatureValuesRequest) (*longrunningpb.Operation, error) { 479 return nil, status.Errorf(codes.Unimplemented, "method BatchReadFeatureValues not implemented") 480 } 481 func (UnimplementedFeaturestoreServiceServer) ExportFeatureValues(context.Context, *ExportFeatureValuesRequest) (*longrunningpb.Operation, error) { 482 return nil, status.Errorf(codes.Unimplemented, "method ExportFeatureValues not implemented") 483 } 484 func (UnimplementedFeaturestoreServiceServer) DeleteFeatureValues(context.Context, *DeleteFeatureValuesRequest) (*longrunningpb.Operation, error) { 485 return nil, status.Errorf(codes.Unimplemented, "method DeleteFeatureValues not implemented") 486 } 487 func (UnimplementedFeaturestoreServiceServer) SearchFeatures(context.Context, *SearchFeaturesRequest) (*SearchFeaturesResponse, error) { 488 return nil, status.Errorf(codes.Unimplemented, "method SearchFeatures not implemented") 489 } 490 491 // UnsafeFeaturestoreServiceServer may be embedded to opt out of forward compatibility for this service. 492 // Use of this interface is not recommended, as added methods to FeaturestoreServiceServer will 493 // result in compilation errors. 494 type UnsafeFeaturestoreServiceServer interface { 495 mustEmbedUnimplementedFeaturestoreServiceServer() 496 } 497 498 func RegisterFeaturestoreServiceServer(s grpc.ServiceRegistrar, srv FeaturestoreServiceServer) { 499 s.RegisterService(&FeaturestoreService_ServiceDesc, srv) 500 } 501 502 func _FeaturestoreService_CreateFeaturestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 503 in := new(CreateFeaturestoreRequest) 504 if err := dec(in); err != nil { 505 return nil, err 506 } 507 if interceptor == nil { 508 return srv.(FeaturestoreServiceServer).CreateFeaturestore(ctx, in) 509 } 510 info := &grpc.UnaryServerInfo{ 511 Server: srv, 512 FullMethod: FeaturestoreService_CreateFeaturestore_FullMethodName, 513 } 514 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 515 return srv.(FeaturestoreServiceServer).CreateFeaturestore(ctx, req.(*CreateFeaturestoreRequest)) 516 } 517 return interceptor(ctx, in, info, handler) 518 } 519 520 func _FeaturestoreService_GetFeaturestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 521 in := new(GetFeaturestoreRequest) 522 if err := dec(in); err != nil { 523 return nil, err 524 } 525 if interceptor == nil { 526 return srv.(FeaturestoreServiceServer).GetFeaturestore(ctx, in) 527 } 528 info := &grpc.UnaryServerInfo{ 529 Server: srv, 530 FullMethod: FeaturestoreService_GetFeaturestore_FullMethodName, 531 } 532 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 533 return srv.(FeaturestoreServiceServer).GetFeaturestore(ctx, req.(*GetFeaturestoreRequest)) 534 } 535 return interceptor(ctx, in, info, handler) 536 } 537 538 func _FeaturestoreService_ListFeaturestores_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 539 in := new(ListFeaturestoresRequest) 540 if err := dec(in); err != nil { 541 return nil, err 542 } 543 if interceptor == nil { 544 return srv.(FeaturestoreServiceServer).ListFeaturestores(ctx, in) 545 } 546 info := &grpc.UnaryServerInfo{ 547 Server: srv, 548 FullMethod: FeaturestoreService_ListFeaturestores_FullMethodName, 549 } 550 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 551 return srv.(FeaturestoreServiceServer).ListFeaturestores(ctx, req.(*ListFeaturestoresRequest)) 552 } 553 return interceptor(ctx, in, info, handler) 554 } 555 556 func _FeaturestoreService_UpdateFeaturestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 557 in := new(UpdateFeaturestoreRequest) 558 if err := dec(in); err != nil { 559 return nil, err 560 } 561 if interceptor == nil { 562 return srv.(FeaturestoreServiceServer).UpdateFeaturestore(ctx, in) 563 } 564 info := &grpc.UnaryServerInfo{ 565 Server: srv, 566 FullMethod: FeaturestoreService_UpdateFeaturestore_FullMethodName, 567 } 568 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 569 return srv.(FeaturestoreServiceServer).UpdateFeaturestore(ctx, req.(*UpdateFeaturestoreRequest)) 570 } 571 return interceptor(ctx, in, info, handler) 572 } 573 574 func _FeaturestoreService_DeleteFeaturestore_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 575 in := new(DeleteFeaturestoreRequest) 576 if err := dec(in); err != nil { 577 return nil, err 578 } 579 if interceptor == nil { 580 return srv.(FeaturestoreServiceServer).DeleteFeaturestore(ctx, in) 581 } 582 info := &grpc.UnaryServerInfo{ 583 Server: srv, 584 FullMethod: FeaturestoreService_DeleteFeaturestore_FullMethodName, 585 } 586 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 587 return srv.(FeaturestoreServiceServer).DeleteFeaturestore(ctx, req.(*DeleteFeaturestoreRequest)) 588 } 589 return interceptor(ctx, in, info, handler) 590 } 591 592 func _FeaturestoreService_CreateEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 593 in := new(CreateEntityTypeRequest) 594 if err := dec(in); err != nil { 595 return nil, err 596 } 597 if interceptor == nil { 598 return srv.(FeaturestoreServiceServer).CreateEntityType(ctx, in) 599 } 600 info := &grpc.UnaryServerInfo{ 601 Server: srv, 602 FullMethod: FeaturestoreService_CreateEntityType_FullMethodName, 603 } 604 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 605 return srv.(FeaturestoreServiceServer).CreateEntityType(ctx, req.(*CreateEntityTypeRequest)) 606 } 607 return interceptor(ctx, in, info, handler) 608 } 609 610 func _FeaturestoreService_GetEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 611 in := new(GetEntityTypeRequest) 612 if err := dec(in); err != nil { 613 return nil, err 614 } 615 if interceptor == nil { 616 return srv.(FeaturestoreServiceServer).GetEntityType(ctx, in) 617 } 618 info := &grpc.UnaryServerInfo{ 619 Server: srv, 620 FullMethod: FeaturestoreService_GetEntityType_FullMethodName, 621 } 622 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 623 return srv.(FeaturestoreServiceServer).GetEntityType(ctx, req.(*GetEntityTypeRequest)) 624 } 625 return interceptor(ctx, in, info, handler) 626 } 627 628 func _FeaturestoreService_ListEntityTypes_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 629 in := new(ListEntityTypesRequest) 630 if err := dec(in); err != nil { 631 return nil, err 632 } 633 if interceptor == nil { 634 return srv.(FeaturestoreServiceServer).ListEntityTypes(ctx, in) 635 } 636 info := &grpc.UnaryServerInfo{ 637 Server: srv, 638 FullMethod: FeaturestoreService_ListEntityTypes_FullMethodName, 639 } 640 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 641 return srv.(FeaturestoreServiceServer).ListEntityTypes(ctx, req.(*ListEntityTypesRequest)) 642 } 643 return interceptor(ctx, in, info, handler) 644 } 645 646 func _FeaturestoreService_UpdateEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 647 in := new(UpdateEntityTypeRequest) 648 if err := dec(in); err != nil { 649 return nil, err 650 } 651 if interceptor == nil { 652 return srv.(FeaturestoreServiceServer).UpdateEntityType(ctx, in) 653 } 654 info := &grpc.UnaryServerInfo{ 655 Server: srv, 656 FullMethod: FeaturestoreService_UpdateEntityType_FullMethodName, 657 } 658 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 659 return srv.(FeaturestoreServiceServer).UpdateEntityType(ctx, req.(*UpdateEntityTypeRequest)) 660 } 661 return interceptor(ctx, in, info, handler) 662 } 663 664 func _FeaturestoreService_DeleteEntityType_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 665 in := new(DeleteEntityTypeRequest) 666 if err := dec(in); err != nil { 667 return nil, err 668 } 669 if interceptor == nil { 670 return srv.(FeaturestoreServiceServer).DeleteEntityType(ctx, in) 671 } 672 info := &grpc.UnaryServerInfo{ 673 Server: srv, 674 FullMethod: FeaturestoreService_DeleteEntityType_FullMethodName, 675 } 676 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 677 return srv.(FeaturestoreServiceServer).DeleteEntityType(ctx, req.(*DeleteEntityTypeRequest)) 678 } 679 return interceptor(ctx, in, info, handler) 680 } 681 682 func _FeaturestoreService_CreateFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 683 in := new(CreateFeatureRequest) 684 if err := dec(in); err != nil { 685 return nil, err 686 } 687 if interceptor == nil { 688 return srv.(FeaturestoreServiceServer).CreateFeature(ctx, in) 689 } 690 info := &grpc.UnaryServerInfo{ 691 Server: srv, 692 FullMethod: FeaturestoreService_CreateFeature_FullMethodName, 693 } 694 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 695 return srv.(FeaturestoreServiceServer).CreateFeature(ctx, req.(*CreateFeatureRequest)) 696 } 697 return interceptor(ctx, in, info, handler) 698 } 699 700 func _FeaturestoreService_BatchCreateFeatures_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 701 in := new(BatchCreateFeaturesRequest) 702 if err := dec(in); err != nil { 703 return nil, err 704 } 705 if interceptor == nil { 706 return srv.(FeaturestoreServiceServer).BatchCreateFeatures(ctx, in) 707 } 708 info := &grpc.UnaryServerInfo{ 709 Server: srv, 710 FullMethod: FeaturestoreService_BatchCreateFeatures_FullMethodName, 711 } 712 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 713 return srv.(FeaturestoreServiceServer).BatchCreateFeatures(ctx, req.(*BatchCreateFeaturesRequest)) 714 } 715 return interceptor(ctx, in, info, handler) 716 } 717 718 func _FeaturestoreService_GetFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 719 in := new(GetFeatureRequest) 720 if err := dec(in); err != nil { 721 return nil, err 722 } 723 if interceptor == nil { 724 return srv.(FeaturestoreServiceServer).GetFeature(ctx, in) 725 } 726 info := &grpc.UnaryServerInfo{ 727 Server: srv, 728 FullMethod: FeaturestoreService_GetFeature_FullMethodName, 729 } 730 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 731 return srv.(FeaturestoreServiceServer).GetFeature(ctx, req.(*GetFeatureRequest)) 732 } 733 return interceptor(ctx, in, info, handler) 734 } 735 736 func _FeaturestoreService_ListFeatures_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 737 in := new(ListFeaturesRequest) 738 if err := dec(in); err != nil { 739 return nil, err 740 } 741 if interceptor == nil { 742 return srv.(FeaturestoreServiceServer).ListFeatures(ctx, in) 743 } 744 info := &grpc.UnaryServerInfo{ 745 Server: srv, 746 FullMethod: FeaturestoreService_ListFeatures_FullMethodName, 747 } 748 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 749 return srv.(FeaturestoreServiceServer).ListFeatures(ctx, req.(*ListFeaturesRequest)) 750 } 751 return interceptor(ctx, in, info, handler) 752 } 753 754 func _FeaturestoreService_UpdateFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 755 in := new(UpdateFeatureRequest) 756 if err := dec(in); err != nil { 757 return nil, err 758 } 759 if interceptor == nil { 760 return srv.(FeaturestoreServiceServer).UpdateFeature(ctx, in) 761 } 762 info := &grpc.UnaryServerInfo{ 763 Server: srv, 764 FullMethod: FeaturestoreService_UpdateFeature_FullMethodName, 765 } 766 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 767 return srv.(FeaturestoreServiceServer).UpdateFeature(ctx, req.(*UpdateFeatureRequest)) 768 } 769 return interceptor(ctx, in, info, handler) 770 } 771 772 func _FeaturestoreService_DeleteFeature_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 773 in := new(DeleteFeatureRequest) 774 if err := dec(in); err != nil { 775 return nil, err 776 } 777 if interceptor == nil { 778 return srv.(FeaturestoreServiceServer).DeleteFeature(ctx, in) 779 } 780 info := &grpc.UnaryServerInfo{ 781 Server: srv, 782 FullMethod: FeaturestoreService_DeleteFeature_FullMethodName, 783 } 784 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 785 return srv.(FeaturestoreServiceServer).DeleteFeature(ctx, req.(*DeleteFeatureRequest)) 786 } 787 return interceptor(ctx, in, info, handler) 788 } 789 790 func _FeaturestoreService_ImportFeatureValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 791 in := new(ImportFeatureValuesRequest) 792 if err := dec(in); err != nil { 793 return nil, err 794 } 795 if interceptor == nil { 796 return srv.(FeaturestoreServiceServer).ImportFeatureValues(ctx, in) 797 } 798 info := &grpc.UnaryServerInfo{ 799 Server: srv, 800 FullMethod: FeaturestoreService_ImportFeatureValues_FullMethodName, 801 } 802 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 803 return srv.(FeaturestoreServiceServer).ImportFeatureValues(ctx, req.(*ImportFeatureValuesRequest)) 804 } 805 return interceptor(ctx, in, info, handler) 806 } 807 808 func _FeaturestoreService_BatchReadFeatureValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 809 in := new(BatchReadFeatureValuesRequest) 810 if err := dec(in); err != nil { 811 return nil, err 812 } 813 if interceptor == nil { 814 return srv.(FeaturestoreServiceServer).BatchReadFeatureValues(ctx, in) 815 } 816 info := &grpc.UnaryServerInfo{ 817 Server: srv, 818 FullMethod: FeaturestoreService_BatchReadFeatureValues_FullMethodName, 819 } 820 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 821 return srv.(FeaturestoreServiceServer).BatchReadFeatureValues(ctx, req.(*BatchReadFeatureValuesRequest)) 822 } 823 return interceptor(ctx, in, info, handler) 824 } 825 826 func _FeaturestoreService_ExportFeatureValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 827 in := new(ExportFeatureValuesRequest) 828 if err := dec(in); err != nil { 829 return nil, err 830 } 831 if interceptor == nil { 832 return srv.(FeaturestoreServiceServer).ExportFeatureValues(ctx, in) 833 } 834 info := &grpc.UnaryServerInfo{ 835 Server: srv, 836 FullMethod: FeaturestoreService_ExportFeatureValues_FullMethodName, 837 } 838 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 839 return srv.(FeaturestoreServiceServer).ExportFeatureValues(ctx, req.(*ExportFeatureValuesRequest)) 840 } 841 return interceptor(ctx, in, info, handler) 842 } 843 844 func _FeaturestoreService_DeleteFeatureValues_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 845 in := new(DeleteFeatureValuesRequest) 846 if err := dec(in); err != nil { 847 return nil, err 848 } 849 if interceptor == nil { 850 return srv.(FeaturestoreServiceServer).DeleteFeatureValues(ctx, in) 851 } 852 info := &grpc.UnaryServerInfo{ 853 Server: srv, 854 FullMethod: FeaturestoreService_DeleteFeatureValues_FullMethodName, 855 } 856 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 857 return srv.(FeaturestoreServiceServer).DeleteFeatureValues(ctx, req.(*DeleteFeatureValuesRequest)) 858 } 859 return interceptor(ctx, in, info, handler) 860 } 861 862 func _FeaturestoreService_SearchFeatures_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 863 in := new(SearchFeaturesRequest) 864 if err := dec(in); err != nil { 865 return nil, err 866 } 867 if interceptor == nil { 868 return srv.(FeaturestoreServiceServer).SearchFeatures(ctx, in) 869 } 870 info := &grpc.UnaryServerInfo{ 871 Server: srv, 872 FullMethod: FeaturestoreService_SearchFeatures_FullMethodName, 873 } 874 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 875 return srv.(FeaturestoreServiceServer).SearchFeatures(ctx, req.(*SearchFeaturesRequest)) 876 } 877 return interceptor(ctx, in, info, handler) 878 } 879 880 // FeaturestoreService_ServiceDesc is the grpc.ServiceDesc for FeaturestoreService service. 881 // It's only intended for direct use with grpc.RegisterService, 882 // and not to be introspected or modified (even as a copy) 883 var FeaturestoreService_ServiceDesc = grpc.ServiceDesc{ 884 ServiceName: "google.cloud.aiplatform.v1beta1.FeaturestoreService", 885 HandlerType: (*FeaturestoreServiceServer)(nil), 886 Methods: []grpc.MethodDesc{ 887 { 888 MethodName: "CreateFeaturestore", 889 Handler: _FeaturestoreService_CreateFeaturestore_Handler, 890 }, 891 { 892 MethodName: "GetFeaturestore", 893 Handler: _FeaturestoreService_GetFeaturestore_Handler, 894 }, 895 { 896 MethodName: "ListFeaturestores", 897 Handler: _FeaturestoreService_ListFeaturestores_Handler, 898 }, 899 { 900 MethodName: "UpdateFeaturestore", 901 Handler: _FeaturestoreService_UpdateFeaturestore_Handler, 902 }, 903 { 904 MethodName: "DeleteFeaturestore", 905 Handler: _FeaturestoreService_DeleteFeaturestore_Handler, 906 }, 907 { 908 MethodName: "CreateEntityType", 909 Handler: _FeaturestoreService_CreateEntityType_Handler, 910 }, 911 { 912 MethodName: "GetEntityType", 913 Handler: _FeaturestoreService_GetEntityType_Handler, 914 }, 915 { 916 MethodName: "ListEntityTypes", 917 Handler: _FeaturestoreService_ListEntityTypes_Handler, 918 }, 919 { 920 MethodName: "UpdateEntityType", 921 Handler: _FeaturestoreService_UpdateEntityType_Handler, 922 }, 923 { 924 MethodName: "DeleteEntityType", 925 Handler: _FeaturestoreService_DeleteEntityType_Handler, 926 }, 927 { 928 MethodName: "CreateFeature", 929 Handler: _FeaturestoreService_CreateFeature_Handler, 930 }, 931 { 932 MethodName: "BatchCreateFeatures", 933 Handler: _FeaturestoreService_BatchCreateFeatures_Handler, 934 }, 935 { 936 MethodName: "GetFeature", 937 Handler: _FeaturestoreService_GetFeature_Handler, 938 }, 939 { 940 MethodName: "ListFeatures", 941 Handler: _FeaturestoreService_ListFeatures_Handler, 942 }, 943 { 944 MethodName: "UpdateFeature", 945 Handler: _FeaturestoreService_UpdateFeature_Handler, 946 }, 947 { 948 MethodName: "DeleteFeature", 949 Handler: _FeaturestoreService_DeleteFeature_Handler, 950 }, 951 { 952 MethodName: "ImportFeatureValues", 953 Handler: _FeaturestoreService_ImportFeatureValues_Handler, 954 }, 955 { 956 MethodName: "BatchReadFeatureValues", 957 Handler: _FeaturestoreService_BatchReadFeatureValues_Handler, 958 }, 959 { 960 MethodName: "ExportFeatureValues", 961 Handler: _FeaturestoreService_ExportFeatureValues_Handler, 962 }, 963 { 964 MethodName: "DeleteFeatureValues", 965 Handler: _FeaturestoreService_DeleteFeatureValues_Handler, 966 }, 967 { 968 MethodName: "SearchFeatures", 969 Handler: _FeaturestoreService_SearchFeatures_Handler, 970 }, 971 }, 972 Streams: []grpc.StreamDesc{}, 973 Metadata: "google/cloud/aiplatform/v1beta1/featurestore_service.proto", 974 }