| 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/automl/v1/service.proto |
| 20 |
|
| 21 |
package automlpb |
| 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 |
AutoMl_CreateDataset_FullMethodName = "/google.cloud.automl.v1.AutoMl/CreateDataset" |
| 38 |
AutoMl_GetDataset_FullMethodName = "/google.cloud.automl.v1.AutoMl/GetDataset" |
| 39 |
AutoMl_ListDatasets_FullMethodName = "/google.cloud.automl.v1.AutoMl/ListDatasets" |
| 40 |
AutoMl_UpdateDataset_FullMethodName = "/google.cloud.automl.v1.AutoMl/UpdateDataset" |
| 41 |
AutoMl_DeleteDataset_FullMethodName = "/google.cloud.automl.v1.AutoMl/DeleteDataset" |
| 42 |
AutoMl_ImportData_FullMethodName = "/google.cloud.automl.v1.AutoMl/ImportData" |
| 43 |
AutoMl_ExportData_FullMethodName = "/google.cloud.automl.v1.AutoMl/ExportData" |
| 44 |
AutoMl_GetAnnotationSpec_FullMethodName = "/google.cloud.automl.v1.AutoMl/GetAnnotationSpec" |
| 45 |
AutoMl_CreateModel_FullMethodName = "/google.cloud.automl.v1.AutoMl/CreateModel" |
| 46 |
AutoMl_GetModel_FullMethodName = "/google.cloud.automl.v1.AutoMl/GetModel" |
| 47 |
AutoMl_ListModels_FullMethodName = "/google.cloud.automl.v1.AutoMl/ListModels" |
| 48 |
AutoMl_DeleteModel_FullMethodName = "/google.cloud.automl.v1.AutoMl/DeleteModel" |
| 49 |
AutoMl_UpdateModel_FullMethodName = "/google.cloud.automl.v1.AutoMl/UpdateModel" |
| 50 |
AutoMl_DeployModel_FullMethodName = "/google.cloud.automl.v1.AutoMl/DeployModel" |
| 51 |
AutoMl_UndeployModel_FullMethodName = "/google.cloud.automl.v1.AutoMl/UndeployModel" |
| 52 |
AutoMl_ExportModel_FullMethodName = "/google.cloud.automl.v1.AutoMl/ExportModel" |
| 53 |
AutoMl_GetModelEvaluation_FullMethodName = "/google.cloud.automl.v1.AutoMl/GetModelEvaluation" |
| 54 |
AutoMl_ListModelEvaluations_FullMethodName = "/google.cloud.automl.v1.AutoMl/ListModelEvaluations" |
| 55 |
) |
| 56 |
|
| 57 |
// AutoMlClient is the client API for AutoMl service. |
| 58 |
// |
| 59 |
// 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. |
| 60 |
type AutoMlClient interface { |
| 61 |
// Creates a dataset. |
| 62 |
CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 63 |
// Gets a dataset. |
| 64 |
GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) |
| 65 |
// Lists datasets in a project. |
| 66 |
ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) |
| 67 |
// Updates a dataset. |
| 68 |
UpdateDataset(ctx context.Context, in *UpdateDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) |
| 69 |
// Deletes a dataset and all of its contents. |
| 70 |
// Returns empty response in the |
| 71 |
// [response][google.longrunning.Operation.response] field when it completes, |
| 72 |
// and `delete_details` in the |
| 73 |
// [metadata][google.longrunning.Operation.metadata] field. |
| 74 |
DeleteDataset(ctx context.Context, in *DeleteDatasetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 75 |
// Imports data into a dataset. |
| 76 |
// For Tables this method can only be called on an empty Dataset. |
| 77 |
// |
| 78 |
// For Tables: |
| 79 |
// * A |
| 80 |
// [schema_inference_version][google.cloud.automl.v1.InputConfig.params] |
| 81 |
// |
| 82 |
// parameter must be explicitly set. |
| 83 |
// |
| 84 |
// Returns an empty response in the |
| 85 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 86 |
ImportData(ctx context.Context, in *ImportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 87 |
// Exports dataset's data to the provided output location. |
| 88 |
// Returns an empty response in the |
| 89 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 90 |
ExportData(ctx context.Context, in *ExportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 91 |
// Gets an annotation spec. |
| 92 |
GetAnnotationSpec(ctx context.Context, in *GetAnnotationSpecRequest, opts ...grpc.CallOption) (*AnnotationSpec, error) |
| 93 |
// Creates a model. |
| 94 |
// Returns a Model in the [response][google.longrunning.Operation.response] |
| 95 |
// field when it completes. |
| 96 |
// When you create a model, several model evaluations are created for it: |
| 97 |
// a global evaluation, and one evaluation for each annotation spec. |
| 98 |
CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 99 |
// Gets a model. |
| 100 |
GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error) |
| 101 |
// Lists models. |
| 102 |
ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) |
| 103 |
// Deletes a model. |
| 104 |
// Returns `google.protobuf.Empty` in the |
| 105 |
// [response][google.longrunning.Operation.response] field when it completes, |
| 106 |
// and `delete_details` in the |
| 107 |
// [metadata][google.longrunning.Operation.metadata] field. |
| 108 |
DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 109 |
// Updates a model. |
| 110 |
UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*Model, error) |
| 111 |
// Deploys a model. If a model is already deployed, deploying it with the |
| 112 |
// same parameters has no effect. Deploying with different parametrs |
| 113 |
// (as e.g. changing |
| 114 |
// [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number]) |
| 115 |
// |
| 116 |
// will reset the deployment state without pausing the model's availability. |
| 117 |
// |
| 118 |
// Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage |
| 119 |
// deployment automatically. |
| 120 |
// |
| 121 |
// Returns an empty response in the |
| 122 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 123 |
DeployModel(ctx context.Context, in *DeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 124 |
// Undeploys a model. If the model is not deployed this method has no effect. |
| 125 |
// |
| 126 |
// Only applicable for Text Classification, Image Object Detection and Tables; |
| 127 |
// all other domains manage deployment automatically. |
| 128 |
// |
| 129 |
// Returns an empty response in the |
| 130 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 131 |
UndeployModel(ctx context.Context, in *UndeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 132 |
// Exports a trained, "export-able", model to a user specified Google Cloud |
| 133 |
// Storage location. A model is considered export-able if and only if it has |
| 134 |
// an export format defined for it in |
| 135 |
// [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig]. |
| 136 |
// |
| 137 |
// Returns an empty response in the |
| 138 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 139 |
ExportModel(ctx context.Context, in *ExportModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 140 |
// Gets a model evaluation. |
| 141 |
GetModelEvaluation(ctx context.Context, in *GetModelEvaluationRequest, opts ...grpc.CallOption) (*ModelEvaluation, error) |
| 142 |
// Lists model evaluations. |
| 143 |
ListModelEvaluations(ctx context.Context, in *ListModelEvaluationsRequest, opts ...grpc.CallOption) (*ListModelEvaluationsResponse, error) |
| 144 |
} |
| 145 |
|
| 146 |
type autoMlClient struct { |
| 147 |
cc grpc.ClientConnInterface |
| 148 |
} |
| 149 |
|
| 150 |
func NewAutoMlClient(cc grpc.ClientConnInterface) AutoMlClient { |
| 151 |
return &autoMlClient{cc} |
| 152 |
} |
| 153 |
|
| 154 |
func (c *autoMlClient) CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 155 |
out := new(longrunningpb.Operation) |
| 156 |
err := c.cc.Invoke(ctx, AutoMl_CreateDataset_FullMethodName, in, out, opts...) |
| 157 |
if err != nil { |
| 158 |
return nil, err |
| 159 |
} |
| 160 |
return out, nil |
| 161 |
} |
| 162 |
|
| 163 |
func (c *autoMlClient) GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) { |
| 164 |
out := new(Dataset) |
| 165 |
err := c.cc.Invoke(ctx, AutoMl_GetDataset_FullMethodName, in, out, opts...) |
| 166 |
if err != nil { |
| 167 |
return nil, err |
| 168 |
} |
| 169 |
return out, nil |
| 170 |
} |
| 171 |
|
| 172 |
func (c *autoMlClient) ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) { |
| 173 |
out := new(ListDatasetsResponse) |
| 174 |
err := c.cc.Invoke(ctx, AutoMl_ListDatasets_FullMethodName, in, out, opts...) |
| 175 |
if err != nil { |
| 176 |
return nil, err |
| 177 |
} |
| 178 |
return out, nil |
| 179 |
} |
| 180 |
|
| 181 |
func (c *autoMlClient) UpdateDataset(ctx context.Context, in *UpdateDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) { |
| 182 |
out := new(Dataset) |
| 183 |
err := c.cc.Invoke(ctx, AutoMl_UpdateDataset_FullMethodName, in, out, opts...) |
| 184 |
if err != nil { |
| 185 |
return nil, err |
| 186 |
} |
| 187 |
return out, nil |
| 188 |
} |
| 189 |
|
| 190 |
func (c *autoMlClient) DeleteDataset(ctx context.Context, in *DeleteDatasetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 191 |
out := new(longrunningpb.Operation) |
| 192 |
err := c.cc.Invoke(ctx, AutoMl_DeleteDataset_FullMethodName, in, out, opts...) |
| 193 |
if err != nil { |
| 194 |
return nil, err |
| 195 |
} |
| 196 |
return out, nil |
| 197 |
} |
| 198 |
|
| 199 |
func (c *autoMlClient) ImportData(ctx context.Context, in *ImportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 200 |
out := new(longrunningpb.Operation) |
| 201 |
err := c.cc.Invoke(ctx, AutoMl_ImportData_FullMethodName, in, out, opts...) |
| 202 |
if err != nil { |
| 203 |
return nil, err |
| 204 |
} |
| 205 |
return out, nil |
| 206 |
} |
| 207 |
|
| 208 |
func (c *autoMlClient) ExportData(ctx context.Context, in *ExportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 209 |
out := new(longrunningpb.Operation) |
| 210 |
err := c.cc.Invoke(ctx, AutoMl_ExportData_FullMethodName, in, out, opts...) |
| 211 |
if err != nil { |
| 212 |
return nil, err |
| 213 |
} |
| 214 |
return out, nil |
| 215 |
} |
| 216 |
|
| 217 |
func (c *autoMlClient) GetAnnotationSpec(ctx context.Context, in *GetAnnotationSpecRequest, opts ...grpc.CallOption) (*AnnotationSpec, error) { |
| 218 |
out := new(AnnotationSpec) |
| 219 |
err := c.cc.Invoke(ctx, AutoMl_GetAnnotationSpec_FullMethodName, in, out, opts...) |
| 220 |
if err != nil { |
| 221 |
return nil, err |
| 222 |
} |
| 223 |
return out, nil |
| 224 |
} |
| 225 |
|
| 226 |
func (c *autoMlClient) CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 227 |
out := new(longrunningpb.Operation) |
| 228 |
err := c.cc.Invoke(ctx, AutoMl_CreateModel_FullMethodName, in, out, opts...) |
| 229 |
if err != nil { |
| 230 |
return nil, err |
| 231 |
} |
| 232 |
return out, nil |
| 233 |
} |
| 234 |
|
| 235 |
func (c *autoMlClient) GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error) { |
| 236 |
out := new(Model) |
| 237 |
err := c.cc.Invoke(ctx, AutoMl_GetModel_FullMethodName, in, out, opts...) |
| 238 |
if err != nil { |
| 239 |
return nil, err |
| 240 |
} |
| 241 |
return out, nil |
| 242 |
} |
| 243 |
|
| 244 |
func (c *autoMlClient) ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) { |
| 245 |
out := new(ListModelsResponse) |
| 246 |
err := c.cc.Invoke(ctx, AutoMl_ListModels_FullMethodName, in, out, opts...) |
| 247 |
if err != nil { |
| 248 |
return nil, err |
| 249 |
} |
| 250 |
return out, nil |
| 251 |
} |
| 252 |
|
| 253 |
func (c *autoMlClient) DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 254 |
out := new(longrunningpb.Operation) |
| 255 |
err := c.cc.Invoke(ctx, AutoMl_DeleteModel_FullMethodName, in, out, opts...) |
| 256 |
if err != nil { |
| 257 |
return nil, err |
| 258 |
} |
| 259 |
return out, nil |
| 260 |
} |
| 261 |
|
| 262 |
func (c *autoMlClient) UpdateModel(ctx context.Context, in *UpdateModelRequest, opts ...grpc.CallOption) (*Model, error) { |
| 263 |
out := new(Model) |
| 264 |
err := c.cc.Invoke(ctx, AutoMl_UpdateModel_FullMethodName, in, out, opts...) |
| 265 |
if err != nil { |
| 266 |
return nil, err |
| 267 |
} |
| 268 |
return out, nil |
| 269 |
} |
| 270 |
|
| 271 |
func (c *autoMlClient) DeployModel(ctx context.Context, in *DeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 272 |
out := new(longrunningpb.Operation) |
| 273 |
err := c.cc.Invoke(ctx, AutoMl_DeployModel_FullMethodName, in, out, opts...) |
| 274 |
if err != nil { |
| 275 |
return nil, err |
| 276 |
} |
| 277 |
return out, nil |
| 278 |
} |
| 279 |
|
| 280 |
func (c *autoMlClient) UndeployModel(ctx context.Context, in *UndeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 281 |
out := new(longrunningpb.Operation) |
| 282 |
err := c.cc.Invoke(ctx, AutoMl_UndeployModel_FullMethodName, in, out, opts...) |
| 283 |
if err != nil { |
| 284 |
return nil, err |
| 285 |
} |
| 286 |
return out, nil |
| 287 |
} |
| 288 |
|
| 289 |
func (c *autoMlClient) ExportModel(ctx context.Context, in *ExportModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 290 |
out := new(longrunningpb.Operation) |
| 291 |
err := c.cc.Invoke(ctx, AutoMl_ExportModel_FullMethodName, in, out, opts...) |
| 292 |
if err != nil { |
| 293 |
return nil, err |
| 294 |
} |
| 295 |
return out, nil |
| 296 |
} |
| 297 |
|
| 298 |
func (c *autoMlClient) GetModelEvaluation(ctx context.Context, in *GetModelEvaluationRequest, opts ...grpc.CallOption) (*ModelEvaluation, error) { |
| 299 |
out := new(ModelEvaluation) |
| 300 |
err := c.cc.Invoke(ctx, AutoMl_GetModelEvaluation_FullMethodName, in, out, opts...) |
| 301 |
if err != nil { |
| 302 |
return nil, err |
| 303 |
} |
| 304 |
return out, nil |
| 305 |
} |
| 306 |
|
| 307 |
func (c *autoMlClient) ListModelEvaluations(ctx context.Context, in *ListModelEvaluationsRequest, opts ...grpc.CallOption) (*ListModelEvaluationsResponse, error) { |
| 308 |
out := new(ListModelEvaluationsResponse) |
| 309 |
err := c.cc.Invoke(ctx, AutoMl_ListModelEvaluations_FullMethodName, in, out, opts...) |
| 310 |
if err != nil { |
| 311 |
return nil, err |
| 312 |
} |
| 313 |
return out, nil |
| 314 |
} |
| 315 |
|
| 316 |
// AutoMlServer is the server API for AutoMl service. |
| 317 |
// All implementations should embed UnimplementedAutoMlServer |
| 318 |
// for forward compatibility |
| 319 |
type AutoMlServer interface { |
| 320 |
// Creates a dataset. |
| 321 |
CreateDataset(context.Context, *CreateDatasetRequest) (*longrunningpb.Operation, error) |
| 322 |
// Gets a dataset. |
| 323 |
GetDataset(context.Context, *GetDatasetRequest) (*Dataset, error) |
| 324 |
// Lists datasets in a project. |
| 325 |
ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) |
| 326 |
// Updates a dataset. |
| 327 |
UpdateDataset(context.Context, *UpdateDatasetRequest) (*Dataset, error) |
| 328 |
// Deletes a dataset and all of its contents. |
| 329 |
// Returns empty response in the |
| 330 |
// [response][google.longrunning.Operation.response] field when it completes, |
| 331 |
// and `delete_details` in the |
| 332 |
// [metadata][google.longrunning.Operation.metadata] field. |
| 333 |
DeleteDataset(context.Context, *DeleteDatasetRequest) (*longrunningpb.Operation, error) |
| 334 |
// Imports data into a dataset. |
| 335 |
// For Tables this method can only be called on an empty Dataset. |
| 336 |
// |
| 337 |
// For Tables: |
| 338 |
// * A |
| 339 |
// [schema_inference_version][google.cloud.automl.v1.InputConfig.params] |
| 340 |
// |
| 341 |
// parameter must be explicitly set. |
| 342 |
// |
| 343 |
// Returns an empty response in the |
| 344 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 345 |
ImportData(context.Context, *ImportDataRequest) (*longrunningpb.Operation, error) |
| 346 |
// Exports dataset's data to the provided output location. |
| 347 |
// Returns an empty response in the |
| 348 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 349 |
ExportData(context.Context, *ExportDataRequest) (*longrunningpb.Operation, error) |
| 350 |
// Gets an annotation spec. |
| 351 |
GetAnnotationSpec(context.Context, *GetAnnotationSpecRequest) (*AnnotationSpec, error) |
| 352 |
// Creates a model. |
| 353 |
// Returns a Model in the [response][google.longrunning.Operation.response] |
| 354 |
// field when it completes. |
| 355 |
// When you create a model, several model evaluations are created for it: |
| 356 |
// a global evaluation, and one evaluation for each annotation spec. |
| 357 |
CreateModel(context.Context, *CreateModelRequest) (*longrunningpb.Operation, error) |
| 358 |
// Gets a model. |
| 359 |
GetModel(context.Context, *GetModelRequest) (*Model, error) |
| 360 |
// Lists models. |
| 361 |
ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) |
| 362 |
// Deletes a model. |
| 363 |
// Returns `google.protobuf.Empty` in the |
| 364 |
// [response][google.longrunning.Operation.response] field when it completes, |
| 365 |
// and `delete_details` in the |
| 366 |
// [metadata][google.longrunning.Operation.metadata] field. |
| 367 |
DeleteModel(context.Context, *DeleteModelRequest) (*longrunningpb.Operation, error) |
| 368 |
// Updates a model. |
| 369 |
UpdateModel(context.Context, *UpdateModelRequest) (*Model, error) |
| 370 |
// Deploys a model. If a model is already deployed, deploying it with the |
| 371 |
// same parameters has no effect. Deploying with different parametrs |
| 372 |
// (as e.g. changing |
| 373 |
// [node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number]) |
| 374 |
// |
| 375 |
// will reset the deployment state without pausing the model's availability. |
| 376 |
// |
| 377 |
// Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage |
| 378 |
// deployment automatically. |
| 379 |
// |
| 380 |
// Returns an empty response in the |
| 381 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 382 |
DeployModel(context.Context, *DeployModelRequest) (*longrunningpb.Operation, error) |
| 383 |
// Undeploys a model. If the model is not deployed this method has no effect. |
| 384 |
// |
| 385 |
// Only applicable for Text Classification, Image Object Detection and Tables; |
| 386 |
// all other domains manage deployment automatically. |
| 387 |
// |
| 388 |
// Returns an empty response in the |
| 389 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 390 |
UndeployModel(context.Context, *UndeployModelRequest) (*longrunningpb.Operation, error) |
| 391 |
// Exports a trained, "export-able", model to a user specified Google Cloud |
| 392 |
// Storage location. A model is considered export-able if and only if it has |
| 393 |
// an export format defined for it in |
| 394 |
// [ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig]. |
| 395 |
// |
| 396 |
// Returns an empty response in the |
| 397 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 398 |
ExportModel(context.Context, *ExportModelRequest) (*longrunningpb.Operation, error) |
| 399 |
// Gets a model evaluation. |
| 400 |
GetModelEvaluation(context.Context, *GetModelEvaluationRequest) (*ModelEvaluation, error) |
| 401 |
// Lists model evaluations. |
| 402 |
ListModelEvaluations(context.Context, *ListModelEvaluationsRequest) (*ListModelEvaluationsResponse, error) |
| 403 |
} |
| 404 |
|
| 405 |
// UnimplementedAutoMlServer should be embedded to have forward compatible implementations. |
| 406 |
type UnimplementedAutoMlServer struct { |
| 407 |
} |
| 408 |
|
| 409 |
func (UnimplementedAutoMlServer) CreateDataset(context.Context, *CreateDatasetRequest) (*longrunningpb.Operation, error) { |
| 410 |
return nil, status.Errorf(codes.Unimplemented, "method CreateDataset not implemented") |
| 411 |
} |
| 412 |
func (UnimplementedAutoMlServer) GetDataset(context.Context, *GetDatasetRequest) (*Dataset, error) { |
| 413 |
return nil, status.Errorf(codes.Unimplemented, "method GetDataset not implemented") |
| 414 |
} |
| 415 |
func (UnimplementedAutoMlServer) ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) { |
| 416 |
return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") |
| 417 |
} |
| 418 |
func (UnimplementedAutoMlServer) UpdateDataset(context.Context, *UpdateDatasetRequest) (*Dataset, error) { |
| 419 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateDataset not implemented") |
| 420 |
} |
| 421 |
func (UnimplementedAutoMlServer) DeleteDataset(context.Context, *DeleteDatasetRequest) (*longrunningpb.Operation, error) { |
| 422 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteDataset not implemented") |
| 423 |
} |
| 424 |
func (UnimplementedAutoMlServer) ImportData(context.Context, *ImportDataRequest) (*longrunningpb.Operation, error) { |
| 425 |
return nil, status.Errorf(codes.Unimplemented, "method ImportData not implemented") |
| 426 |
} |
| 427 |
func (UnimplementedAutoMlServer) ExportData(context.Context, *ExportDataRequest) (*longrunningpb.Operation, error) { |
| 428 |
return nil, status.Errorf(codes.Unimplemented, "method ExportData not implemented") |
| 429 |
} |
| 430 |
func (UnimplementedAutoMlServer) GetAnnotationSpec(context.Context, *GetAnnotationSpecRequest) (*AnnotationSpec, error) { |
| 431 |
return nil, status.Errorf(codes.Unimplemented, "method GetAnnotationSpec not implemented") |
| 432 |
} |
| 433 |
func (UnimplementedAutoMlServer) CreateModel(context.Context, *CreateModelRequest) (*longrunningpb.Operation, error) { |
| 434 |
return nil, status.Errorf(codes.Unimplemented, "method CreateModel not implemented") |
| 435 |
} |
| 436 |
func (UnimplementedAutoMlServer) GetModel(context.Context, *GetModelRequest) (*Model, error) { |
| 437 |
return nil, status.Errorf(codes.Unimplemented, "method GetModel not implemented") |
| 438 |
} |
| 439 |
func (UnimplementedAutoMlServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) { |
| 440 |
return nil, status.Errorf(codes.Unimplemented, "method ListModels not implemented") |
| 441 |
} |
| 442 |
func (UnimplementedAutoMlServer) DeleteModel(context.Context, *DeleteModelRequest) (*longrunningpb.Operation, error) { |
| 443 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteModel not implemented") |
| 444 |
} |
| 445 |
func (UnimplementedAutoMlServer) UpdateModel(context.Context, *UpdateModelRequest) (*Model, error) { |
| 446 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateModel not implemented") |
| 447 |
} |
| 448 |
func (UnimplementedAutoMlServer) DeployModel(context.Context, *DeployModelRequest) (*longrunningpb.Operation, error) { |
| 449 |
return nil, status.Errorf(codes.Unimplemented, "method DeployModel not implemented") |
| 450 |
} |
| 451 |
func (UnimplementedAutoMlServer) UndeployModel(context.Context, *UndeployModelRequest) (*longrunningpb.Operation, error) { |
| 452 |
return nil, status.Errorf(codes.Unimplemented, "method UndeployModel not implemented") |
| 453 |
} |
| 454 |
func (UnimplementedAutoMlServer) ExportModel(context.Context, *ExportModelRequest) (*longrunningpb.Operation, error) { |
| 455 |
return nil, status.Errorf(codes.Unimplemented, "method ExportModel not implemented") |
| 456 |
} |
| 457 |
func (UnimplementedAutoMlServer) GetModelEvaluation(context.Context, *GetModelEvaluationRequest) (*ModelEvaluation, error) { |
| 458 |
return nil, status.Errorf(codes.Unimplemented, "method GetModelEvaluation not implemented") |
| 459 |
} |
| 460 |
func (UnimplementedAutoMlServer) ListModelEvaluations(context.Context, *ListModelEvaluationsRequest) (*ListModelEvaluationsResponse, error) { |
| 461 |
return nil, status.Errorf(codes.Unimplemented, "method ListModelEvaluations not implemented") |
| 462 |
} |
| 463 |
|
| 464 |
// UnsafeAutoMlServer may be embedded to opt out of forward compatibility for this service. |
| 465 |
// Use of this interface is not recommended, as added methods to AutoMlServer will |
| 466 |
// result in compilation errors. |
| 467 |
type UnsafeAutoMlServer interface { |
| 468 |
mustEmbedUnimplementedAutoMlServer() |
| 469 |
} |
| 470 |
|
| 471 |
func RegisterAutoMlServer(s grpc.ServiceRegistrar, srv AutoMlServer) { |
| 472 |
s.RegisterService(&AutoMl_ServiceDesc, srv) |
| 473 |
} |
| 474 |
|
| 475 |
func _AutoMl_CreateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 476 |
in := new(CreateDatasetRequest) |
| 477 |
if err := dec(in); err != nil { |
| 478 |
return nil, err |
| 479 |
} |
| 480 |
if interceptor == nil { |
| 481 |
return srv.(AutoMlServer).CreateDataset(ctx, in) |
| 482 |
} |
| 483 |
info := &grpc.UnaryServerInfo{ |
| 484 |
Server: srv, |
| 485 |
FullMethod: AutoMl_CreateDataset_FullMethodName, |
| 486 |
} |
| 487 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 488 |
return srv.(AutoMlServer).CreateDataset(ctx, req.(*CreateDatasetRequest)) |
| 489 |
} |
| 490 |
return interceptor(ctx, in, info, handler) |
| 491 |
} |
| 492 |
|
| 493 |
func _AutoMl_GetDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 494 |
in := new(GetDatasetRequest) |
| 495 |
if err := dec(in); err != nil { |
| 496 |
return nil, err |
| 497 |
} |
| 498 |
if interceptor == nil { |
| 499 |
return srv.(AutoMlServer).GetDataset(ctx, in) |
| 500 |
} |
| 501 |
info := &grpc.UnaryServerInfo{ |
| 502 |
Server: srv, |
| 503 |
FullMethod: AutoMl_GetDataset_FullMethodName, |
| 504 |
} |
| 505 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 506 |
return srv.(AutoMlServer).GetDataset(ctx, req.(*GetDatasetRequest)) |
| 507 |
} |
| 508 |
return interceptor(ctx, in, info, handler) |
| 509 |
} |
| 510 |
|
| 511 |
func _AutoMl_ListDatasets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 512 |
in := new(ListDatasetsRequest) |
| 513 |
if err := dec(in); err != nil { |
| 514 |
return nil, err |
| 515 |
} |
| 516 |
if interceptor == nil { |
| 517 |
return srv.(AutoMlServer).ListDatasets(ctx, in) |
| 518 |
} |
| 519 |
info := &grpc.UnaryServerInfo{ |
| 520 |
Server: srv, |
| 521 |
FullMethod: AutoMl_ListDatasets_FullMethodName, |
| 522 |
} |
| 523 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 524 |
return srv.(AutoMlServer).ListDatasets(ctx, req.(*ListDatasetsRequest)) |
| 525 |
} |
| 526 |
return interceptor(ctx, in, info, handler) |
| 527 |
} |
| 528 |
|
| 529 |
func _AutoMl_UpdateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 530 |
in := new(UpdateDatasetRequest) |
| 531 |
if err := dec(in); err != nil { |
| 532 |
return nil, err |
| 533 |
} |
| 534 |
if interceptor == nil { |
| 535 |
return srv.(AutoMlServer).UpdateDataset(ctx, in) |
| 536 |
} |
| 537 |
info := &grpc.UnaryServerInfo{ |
| 538 |
Server: srv, |
| 539 |
FullMethod: AutoMl_UpdateDataset_FullMethodName, |
| 540 |
} |
| 541 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 542 |
return srv.(AutoMlServer).UpdateDataset(ctx, req.(*UpdateDatasetRequest)) |
| 543 |
} |
| 544 |
return interceptor(ctx, in, info, handler) |
| 545 |
} |
| 546 |
|
| 547 |
func _AutoMl_DeleteDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 548 |
in := new(DeleteDatasetRequest) |
| 549 |
if err := dec(in); err != nil { |
| 550 |
return nil, err |
| 551 |
} |
| 552 |
if interceptor == nil { |
| 553 |
return srv.(AutoMlServer).DeleteDataset(ctx, in) |
| 554 |
} |
| 555 |
info := &grpc.UnaryServerInfo{ |
| 556 |
Server: srv, |
| 557 |
FullMethod: AutoMl_DeleteDataset_FullMethodName, |
| 558 |
} |
| 559 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 560 |
return srv.(AutoMlServer).DeleteDataset(ctx, req.(*DeleteDatasetRequest)) |
| 561 |
} |
| 562 |
return interceptor(ctx, in, info, handler) |
| 563 |
} |
| 564 |
|
| 565 |
func _AutoMl_ImportData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 566 |
in := new(ImportDataRequest) |
| 567 |
if err := dec(in); err != nil { |
| 568 |
return nil, err |
| 569 |
} |
| 570 |
if interceptor == nil { |
| 571 |
return srv.(AutoMlServer).ImportData(ctx, in) |
| 572 |
} |
| 573 |
info := &grpc.UnaryServerInfo{ |
| 574 |
Server: srv, |
| 575 |
FullMethod: AutoMl_ImportData_FullMethodName, |
| 576 |
} |
| 577 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 578 |
return srv.(AutoMlServer).ImportData(ctx, req.(*ImportDataRequest)) |
| 579 |
} |
| 580 |
return interceptor(ctx, in, info, handler) |
| 581 |
} |
| 582 |
|
| 583 |
func _AutoMl_ExportData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 584 |
in := new(ExportDataRequest) |
| 585 |
if err := dec(in); err != nil { |
| 586 |
return nil, err |
| 587 |
} |
| 588 |
if interceptor == nil { |
| 589 |
return srv.(AutoMlServer).ExportData(ctx, in) |
| 590 |
} |
| 591 |
info := &grpc.UnaryServerInfo{ |
| 592 |
Server: srv, |
| 593 |
FullMethod: AutoMl_ExportData_FullMethodName, |
| 594 |
} |
| 595 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 596 |
return srv.(AutoMlServer).ExportData(ctx, req.(*ExportDataRequest)) |
| 597 |
} |
| 598 |
return interceptor(ctx, in, info, handler) |
| 599 |
} |
| 600 |
|
| 601 |
func _AutoMl_GetAnnotationSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 602 |
in := new(GetAnnotationSpecRequest) |
| 603 |
if err := dec(in); err != nil { |
| 604 |
return nil, err |
| 605 |
} |
| 606 |
if interceptor == nil { |
| 607 |
return srv.(AutoMlServer).GetAnnotationSpec(ctx, in) |
| 608 |
} |
| 609 |
info := &grpc.UnaryServerInfo{ |
| 610 |
Server: srv, |
| 611 |
FullMethod: AutoMl_GetAnnotationSpec_FullMethodName, |
| 612 |
} |
| 613 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 614 |
return srv.(AutoMlServer).GetAnnotationSpec(ctx, req.(*GetAnnotationSpecRequest)) |
| 615 |
} |
| 616 |
return interceptor(ctx, in, info, handler) |
| 617 |
} |
| 618 |
|
| 619 |
func _AutoMl_CreateModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 620 |
in := new(CreateModelRequest) |
| 621 |
if err := dec(in); err != nil { |
| 622 |
return nil, err |
| 623 |
} |
| 624 |
if interceptor == nil { |
| 625 |
return srv.(AutoMlServer).CreateModel(ctx, in) |
| 626 |
} |
| 627 |
info := &grpc.UnaryServerInfo{ |
| 628 |
Server: srv, |
| 629 |
FullMethod: AutoMl_CreateModel_FullMethodName, |
| 630 |
} |
| 631 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 632 |
return srv.(AutoMlServer).CreateModel(ctx, req.(*CreateModelRequest)) |
| 633 |
} |
| 634 |
return interceptor(ctx, in, info, handler) |
| 635 |
} |
| 636 |
|
| 637 |
func _AutoMl_GetModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 638 |
in := new(GetModelRequest) |
| 639 |
if err := dec(in); err != nil { |
| 640 |
return nil, err |
| 641 |
} |
| 642 |
if interceptor == nil { |
| 643 |
return srv.(AutoMlServer).GetModel(ctx, in) |
| 644 |
} |
| 645 |
info := &grpc.UnaryServerInfo{ |
| 646 |
Server: srv, |
| 647 |
FullMethod: AutoMl_GetModel_FullMethodName, |
| 648 |
} |
| 649 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 650 |
return srv.(AutoMlServer).GetModel(ctx, req.(*GetModelRequest)) |
| 651 |
} |
| 652 |
return interceptor(ctx, in, info, handler) |
| 653 |
} |
| 654 |
|
| 655 |
func _AutoMl_ListModels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 656 |
in := new(ListModelsRequest) |
| 657 |
if err := dec(in); err != nil { |
| 658 |
return nil, err |
| 659 |
} |
| 660 |
if interceptor == nil { |
| 661 |
return srv.(AutoMlServer).ListModels(ctx, in) |
| 662 |
} |
| 663 |
info := &grpc.UnaryServerInfo{ |
| 664 |
Server: srv, |
| 665 |
FullMethod: AutoMl_ListModels_FullMethodName, |
| 666 |
} |
| 667 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 668 |
return srv.(AutoMlServer).ListModels(ctx, req.(*ListModelsRequest)) |
| 669 |
} |
| 670 |
return interceptor(ctx, in, info, handler) |
| 671 |
} |
| 672 |
|
| 673 |
func _AutoMl_DeleteModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 674 |
in := new(DeleteModelRequest) |
| 675 |
if err := dec(in); err != nil { |
| 676 |
return nil, err |
| 677 |
} |
| 678 |
if interceptor == nil { |
| 679 |
return srv.(AutoMlServer).DeleteModel(ctx, in) |
| 680 |
} |
| 681 |
info := &grpc.UnaryServerInfo{ |
| 682 |
Server: srv, |
| 683 |
FullMethod: AutoMl_DeleteModel_FullMethodName, |
| 684 |
} |
| 685 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 686 |
return srv.(AutoMlServer).DeleteModel(ctx, req.(*DeleteModelRequest)) |
| 687 |
} |
| 688 |
return interceptor(ctx, in, info, handler) |
| 689 |
} |
| 690 |
|
| 691 |
func _AutoMl_UpdateModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 692 |
in := new(UpdateModelRequest) |
| 693 |
if err := dec(in); err != nil { |
| 694 |
return nil, err |
| 695 |
} |
| 696 |
if interceptor == nil { |
| 697 |
return srv.(AutoMlServer).UpdateModel(ctx, in) |
| 698 |
} |
| 699 |
info := &grpc.UnaryServerInfo{ |
| 700 |
Server: srv, |
| 701 |
FullMethod: AutoMl_UpdateModel_FullMethodName, |
| 702 |
} |
| 703 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 704 |
return srv.(AutoMlServer).UpdateModel(ctx, req.(*UpdateModelRequest)) |
| 705 |
} |
| 706 |
return interceptor(ctx, in, info, handler) |
| 707 |
} |
| 708 |
|
| 709 |
func _AutoMl_DeployModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 710 |
in := new(DeployModelRequest) |
| 711 |
if err := dec(in); err != nil { |
| 712 |
return nil, err |
| 713 |
} |
| 714 |
if interceptor == nil { |
| 715 |
return srv.(AutoMlServer).DeployModel(ctx, in) |
| 716 |
} |
| 717 |
info := &grpc.UnaryServerInfo{ |
| 718 |
Server: srv, |
| 719 |
FullMethod: AutoMl_DeployModel_FullMethodName, |
| 720 |
} |
| 721 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 722 |
return srv.(AutoMlServer).DeployModel(ctx, req.(*DeployModelRequest)) |
| 723 |
} |
| 724 |
return interceptor(ctx, in, info, handler) |
| 725 |
} |
| 726 |
|
| 727 |
func _AutoMl_UndeployModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 728 |
in := new(UndeployModelRequest) |
| 729 |
if err := dec(in); err != nil { |
| 730 |
return nil, err |
| 731 |
} |
| 732 |
if interceptor == nil { |
| 733 |
return srv.(AutoMlServer).UndeployModel(ctx, in) |
| 734 |
} |
| 735 |
info := &grpc.UnaryServerInfo{ |
| 736 |
Server: srv, |
| 737 |
FullMethod: AutoMl_UndeployModel_FullMethodName, |
| 738 |
} |
| 739 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 740 |
return srv.(AutoMlServer).UndeployModel(ctx, req.(*UndeployModelRequest)) |
| 741 |
} |
| 742 |
return interceptor(ctx, in, info, handler) |
| 743 |
} |
| 744 |
|
| 745 |
func _AutoMl_ExportModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 746 |
in := new(ExportModelRequest) |
| 747 |
if err := dec(in); err != nil { |
| 748 |
return nil, err |
| 749 |
} |
| 750 |
if interceptor == nil { |
| 751 |
return srv.(AutoMlServer).ExportModel(ctx, in) |
| 752 |
} |
| 753 |
info := &grpc.UnaryServerInfo{ |
| 754 |
Server: srv, |
| 755 |
FullMethod: AutoMl_ExportModel_FullMethodName, |
| 756 |
} |
| 757 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 758 |
return srv.(AutoMlServer).ExportModel(ctx, req.(*ExportModelRequest)) |
| 759 |
} |
| 760 |
return interceptor(ctx, in, info, handler) |
| 761 |
} |
| 762 |
|
| 763 |
func _AutoMl_GetModelEvaluation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 764 |
in := new(GetModelEvaluationRequest) |
| 765 |
if err := dec(in); err != nil { |
| 766 |
return nil, err |
| 767 |
} |
| 768 |
if interceptor == nil { |
| 769 |
return srv.(AutoMlServer).GetModelEvaluation(ctx, in) |
| 770 |
} |
| 771 |
info := &grpc.UnaryServerInfo{ |
| 772 |
Server: srv, |
| 773 |
FullMethod: AutoMl_GetModelEvaluation_FullMethodName, |
| 774 |
} |
| 775 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 776 |
return srv.(AutoMlServer).GetModelEvaluation(ctx, req.(*GetModelEvaluationRequest)) |
| 777 |
} |
| 778 |
return interceptor(ctx, in, info, handler) |
| 779 |
} |
| 780 |
|
| 781 |
func _AutoMl_ListModelEvaluations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 782 |
in := new(ListModelEvaluationsRequest) |
| 783 |
if err := dec(in); err != nil { |
| 784 |
return nil, err |
| 785 |
} |
| 786 |
if interceptor == nil { |
| 787 |
return srv.(AutoMlServer).ListModelEvaluations(ctx, in) |
| 788 |
} |
| 789 |
info := &grpc.UnaryServerInfo{ |
| 790 |
Server: srv, |
| 791 |
FullMethod: AutoMl_ListModelEvaluations_FullMethodName, |
| 792 |
} |
| 793 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 794 |
return srv.(AutoMlServer).ListModelEvaluations(ctx, req.(*ListModelEvaluationsRequest)) |
| 795 |
} |
| 796 |
return interceptor(ctx, in, info, handler) |
| 797 |
} |
| 798 |
|
| 799 |
// AutoMl_ServiceDesc is the grpc.ServiceDesc for AutoMl service. |
| 800 |
// It's only intended for direct use with grpc.RegisterService, |
| 801 |
// and not to be introspected or modified (even as a copy) |
| 802 |
var AutoMl_ServiceDesc = grpc.ServiceDesc{ |
| 803 |
ServiceName: "google.cloud.automl.v1.AutoMl", |
| 804 |
HandlerType: (*AutoMlServer)(nil), |
| 805 |
Methods: []grpc.MethodDesc{ |
| 806 |
{ |
| 807 |
MethodName: "CreateDataset", |
| 808 |
Handler: _AutoMl_CreateDataset_Handler, |
| 809 |
}, |
| 810 |
{ |
| 811 |
MethodName: "GetDataset", |
| 812 |
Handler: _AutoMl_GetDataset_Handler, |
| 813 |
}, |
| 814 |
{ |
| 815 |
MethodName: "ListDatasets", |
| 816 |
Handler: _AutoMl_ListDatasets_Handler, |
| 817 |
}, |
| 818 |
{ |
| 819 |
MethodName: "UpdateDataset", |
| 820 |
Handler: _AutoMl_UpdateDataset_Handler, |
| 821 |
}, |
| 822 |
{ |
| 823 |
MethodName: "DeleteDataset", |
| 824 |
Handler: _AutoMl_DeleteDataset_Handler, |
| 825 |
}, |
| 826 |
{ |
| 827 |
MethodName: "ImportData", |
| 828 |
Handler: _AutoMl_ImportData_Handler, |
| 829 |
}, |
| 830 |
{ |
| 831 |
MethodName: "ExportData", |
| 832 |
Handler: _AutoMl_ExportData_Handler, |
| 833 |
}, |
| 834 |
{ |
| 835 |
MethodName: "GetAnnotationSpec", |
| 836 |
Handler: _AutoMl_GetAnnotationSpec_Handler, |
| 837 |
}, |
| 838 |
{ |
| 839 |
MethodName: "CreateModel", |
| 840 |
Handler: _AutoMl_CreateModel_Handler, |
| 841 |
}, |
| 842 |
{ |
| 843 |
MethodName: "GetModel", |
| 844 |
Handler: _AutoMl_GetModel_Handler, |
| 845 |
}, |
| 846 |
{ |
| 847 |
MethodName: "ListModels", |
| 848 |
Handler: _AutoMl_ListModels_Handler, |
| 849 |
}, |
| 850 |
{ |
| 851 |
MethodName: "DeleteModel", |
| 852 |
Handler: _AutoMl_DeleteModel_Handler, |
| 853 |
}, |
| 854 |
{ |
| 855 |
MethodName: "UpdateModel", |
| 856 |
Handler: _AutoMl_UpdateModel_Handler, |
| 857 |
}, |
| 858 |
{ |
| 859 |
MethodName: "DeployModel", |
| 860 |
Handler: _AutoMl_DeployModel_Handler, |
| 861 |
}, |
| 862 |
{ |
| 863 |
MethodName: "UndeployModel", |
| 864 |
Handler: _AutoMl_UndeployModel_Handler, |
| 865 |
}, |
| 866 |
{ |
| 867 |
MethodName: "ExportModel", |
| 868 |
Handler: _AutoMl_ExportModel_Handler, |
| 869 |
}, |
| 870 |
{ |
| 871 |
MethodName: "GetModelEvaluation", |
| 872 |
Handler: _AutoMl_GetModelEvaluation_Handler, |
| 873 |
}, |
| 874 |
{ |
| 875 |
MethodName: "ListModelEvaluations", |
| 876 |
Handler: _AutoMl_ListModelEvaluations_Handler, |
| 877 |
}, |
| 878 |
}, |
| 879 |
Streams: []grpc.StreamDesc{}, |
| 880 |
Metadata: "google/cloud/automl/v1/service.proto", |
| 881 |
} |