| 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/v1beta1/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.v1beta1.AutoMl/CreateDataset" |
| 38 |
AutoMl_GetDataset_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/GetDataset" |
| 39 |
AutoMl_ListDatasets_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ListDatasets" |
| 40 |
AutoMl_UpdateDataset_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/UpdateDataset" |
| 41 |
AutoMl_DeleteDataset_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/DeleteDataset" |
| 42 |
AutoMl_ImportData_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ImportData" |
| 43 |
AutoMl_ExportData_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ExportData" |
| 44 |
AutoMl_GetAnnotationSpec_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/GetAnnotationSpec" |
| 45 |
AutoMl_GetTableSpec_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/GetTableSpec" |
| 46 |
AutoMl_ListTableSpecs_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ListTableSpecs" |
| 47 |
AutoMl_UpdateTableSpec_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/UpdateTableSpec" |
| 48 |
AutoMl_GetColumnSpec_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/GetColumnSpec" |
| 49 |
AutoMl_ListColumnSpecs_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ListColumnSpecs" |
| 50 |
AutoMl_UpdateColumnSpec_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/UpdateColumnSpec" |
| 51 |
AutoMl_CreateModel_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/CreateModel" |
| 52 |
AutoMl_GetModel_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/GetModel" |
| 53 |
AutoMl_ListModels_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ListModels" |
| 54 |
AutoMl_DeleteModel_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/DeleteModel" |
| 55 |
AutoMl_DeployModel_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/DeployModel" |
| 56 |
AutoMl_UndeployModel_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/UndeployModel" |
| 57 |
AutoMl_ExportModel_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ExportModel" |
| 58 |
AutoMl_ExportEvaluatedExamples_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ExportEvaluatedExamples" |
| 59 |
AutoMl_GetModelEvaluation_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/GetModelEvaluation" |
| 60 |
AutoMl_ListModelEvaluations_FullMethodName = "/google.cloud.automl.v1beta1.AutoMl/ListModelEvaluations" |
| 61 |
) |
| 62 |
|
| 63 |
// AutoMlClient is the client API for AutoMl service. |
| 64 |
// |
| 65 |
// 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. |
| 66 |
type AutoMlClient interface { |
| 67 |
// Creates a dataset. |
| 68 |
CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) |
| 69 |
// Gets a dataset. |
| 70 |
GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) |
| 71 |
// Lists datasets in a project. |
| 72 |
ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) |
| 73 |
// Updates a dataset. |
| 74 |
UpdateDataset(ctx context.Context, in *UpdateDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) |
| 75 |
// Deletes a dataset and all of its contents. |
| 76 |
// Returns empty response in the |
| 77 |
// [response][google.longrunning.Operation.response] field when it completes, |
| 78 |
// and `delete_details` in the |
| 79 |
// [metadata][google.longrunning.Operation.metadata] field. |
| 80 |
DeleteDataset(ctx context.Context, in *DeleteDatasetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 81 |
// Imports data into a dataset. |
| 82 |
// For Tables this method can only be called on an empty Dataset. |
| 83 |
// |
| 84 |
// For Tables: |
| 85 |
// * A |
| 86 |
// [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] |
| 87 |
// |
| 88 |
// parameter must be explicitly set. |
| 89 |
// |
| 90 |
// Returns an empty response in the |
| 91 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 92 |
ImportData(ctx context.Context, in *ImportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 93 |
// Exports dataset's data to the provided output location. |
| 94 |
// Returns an empty response in the |
| 95 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 96 |
ExportData(ctx context.Context, in *ExportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 97 |
// Gets an annotation spec. |
| 98 |
GetAnnotationSpec(ctx context.Context, in *GetAnnotationSpecRequest, opts ...grpc.CallOption) (*AnnotationSpec, error) |
| 99 |
// Gets a table spec. |
| 100 |
GetTableSpec(ctx context.Context, in *GetTableSpecRequest, opts ...grpc.CallOption) (*TableSpec, error) |
| 101 |
// Lists table specs in a dataset. |
| 102 |
ListTableSpecs(ctx context.Context, in *ListTableSpecsRequest, opts ...grpc.CallOption) (*ListTableSpecsResponse, error) |
| 103 |
// Updates a table spec. |
| 104 |
UpdateTableSpec(ctx context.Context, in *UpdateTableSpecRequest, opts ...grpc.CallOption) (*TableSpec, error) |
| 105 |
// Gets a column spec. |
| 106 |
GetColumnSpec(ctx context.Context, in *GetColumnSpecRequest, opts ...grpc.CallOption) (*ColumnSpec, error) |
| 107 |
// Lists column specs in a table spec. |
| 108 |
ListColumnSpecs(ctx context.Context, in *ListColumnSpecsRequest, opts ...grpc.CallOption) (*ListColumnSpecsResponse, error) |
| 109 |
// Updates a column spec. |
| 110 |
UpdateColumnSpec(ctx context.Context, in *UpdateColumnSpecRequest, opts ...grpc.CallOption) (*ColumnSpec, error) |
| 111 |
// Creates a model. |
| 112 |
// Returns a Model in the [response][google.longrunning.Operation.response] |
| 113 |
// field when it completes. |
| 114 |
// When you create a model, several model evaluations are created for it: |
| 115 |
// a global evaluation, and one evaluation for each annotation spec. |
| 116 |
CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 117 |
// Gets a model. |
| 118 |
GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error) |
| 119 |
// Lists models. |
| 120 |
ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) |
| 121 |
// Deletes a model. |
| 122 |
// Returns `google.protobuf.Empty` in the |
| 123 |
// [response][google.longrunning.Operation.response] field when it completes, |
| 124 |
// and `delete_details` in the |
| 125 |
// [metadata][google.longrunning.Operation.metadata] field. |
| 126 |
DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 127 |
// Deploys a model. If a model is already deployed, deploying it with the |
| 128 |
// same parameters has no effect. Deploying with different parametrs |
| 129 |
// (as e.g. changing |
| 130 |
// |
| 131 |
// [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) |
| 132 |
// |
| 133 |
// will reset the deployment state without pausing the model's availability. |
| 134 |
// |
| 135 |
// Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage |
| 136 |
// deployment automatically. |
| 137 |
// |
| 138 |
// Returns an empty response in the |
| 139 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 140 |
DeployModel(ctx context.Context, in *DeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 141 |
// Undeploys a model. If the model is not deployed this method has no effect. |
| 142 |
// |
| 143 |
// Only applicable for Text Classification, Image Object Detection and Tables; |
| 144 |
// all other domains manage deployment automatically. |
| 145 |
// |
| 146 |
// Returns an empty response in the |
| 147 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 148 |
UndeployModel(ctx context.Context, in *UndeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 149 |
// Exports a trained, "export-able", model to a user specified Google Cloud |
| 150 |
// Storage location. A model is considered export-able if and only if it has |
| 151 |
// an export format defined for it in |
| 152 |
// |
| 153 |
// [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. |
| 154 |
// |
| 155 |
// Returns an empty response in the |
| 156 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 157 |
ExportModel(ctx context.Context, in *ExportModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 158 |
// Exports examples on which the model was evaluated (i.e. which were in the |
| 159 |
// TEST set of the dataset the model was created from), together with their |
| 160 |
// ground truth annotations and the annotations created (predicted) by the |
| 161 |
// model. |
| 162 |
// The examples, ground truth and predictions are exported in the state |
| 163 |
// they were at the moment the model was evaluated. |
| 164 |
// |
| 165 |
// This export is available only for 30 days since the model evaluation is |
| 166 |
// created. |
| 167 |
// |
| 168 |
// Currently only available for Tables. |
| 169 |
// |
| 170 |
// Returns an empty response in the |
| 171 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 172 |
ExportEvaluatedExamples(ctx context.Context, in *ExportEvaluatedExamplesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) |
| 173 |
// Gets a model evaluation. |
| 174 |
GetModelEvaluation(ctx context.Context, in *GetModelEvaluationRequest, opts ...grpc.CallOption) (*ModelEvaluation, error) |
| 175 |
// Lists model evaluations. |
| 176 |
ListModelEvaluations(ctx context.Context, in *ListModelEvaluationsRequest, opts ...grpc.CallOption) (*ListModelEvaluationsResponse, error) |
| 177 |
} |
| 178 |
|
| 179 |
type autoMlClient struct { |
| 180 |
cc grpc.ClientConnInterface |
| 181 |
} |
| 182 |
|
| 183 |
func NewAutoMlClient(cc grpc.ClientConnInterface) AutoMlClient { |
| 184 |
return &autoMlClient{cc} |
| 185 |
} |
| 186 |
|
| 187 |
func (c *autoMlClient) CreateDataset(ctx context.Context, in *CreateDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) { |
| 188 |
out := new(Dataset) |
| 189 |
err := c.cc.Invoke(ctx, AutoMl_CreateDataset_FullMethodName, in, out, opts...) |
| 190 |
if err != nil { |
| 191 |
return nil, err |
| 192 |
} |
| 193 |
return out, nil |
| 194 |
} |
| 195 |
|
| 196 |
func (c *autoMlClient) GetDataset(ctx context.Context, in *GetDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) { |
| 197 |
out := new(Dataset) |
| 198 |
err := c.cc.Invoke(ctx, AutoMl_GetDataset_FullMethodName, in, out, opts...) |
| 199 |
if err != nil { |
| 200 |
return nil, err |
| 201 |
} |
| 202 |
return out, nil |
| 203 |
} |
| 204 |
|
| 205 |
func (c *autoMlClient) ListDatasets(ctx context.Context, in *ListDatasetsRequest, opts ...grpc.CallOption) (*ListDatasetsResponse, error) { |
| 206 |
out := new(ListDatasetsResponse) |
| 207 |
err := c.cc.Invoke(ctx, AutoMl_ListDatasets_FullMethodName, in, out, opts...) |
| 208 |
if err != nil { |
| 209 |
return nil, err |
| 210 |
} |
| 211 |
return out, nil |
| 212 |
} |
| 213 |
|
| 214 |
func (c *autoMlClient) UpdateDataset(ctx context.Context, in *UpdateDatasetRequest, opts ...grpc.CallOption) (*Dataset, error) { |
| 215 |
out := new(Dataset) |
| 216 |
err := c.cc.Invoke(ctx, AutoMl_UpdateDataset_FullMethodName, in, out, opts...) |
| 217 |
if err != nil { |
| 218 |
return nil, err |
| 219 |
} |
| 220 |
return out, nil |
| 221 |
} |
| 222 |
|
| 223 |
func (c *autoMlClient) DeleteDataset(ctx context.Context, in *DeleteDatasetRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 224 |
out := new(longrunningpb.Operation) |
| 225 |
err := c.cc.Invoke(ctx, AutoMl_DeleteDataset_FullMethodName, in, out, opts...) |
| 226 |
if err != nil { |
| 227 |
return nil, err |
| 228 |
} |
| 229 |
return out, nil |
| 230 |
} |
| 231 |
|
| 232 |
func (c *autoMlClient) ImportData(ctx context.Context, in *ImportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 233 |
out := new(longrunningpb.Operation) |
| 234 |
err := c.cc.Invoke(ctx, AutoMl_ImportData_FullMethodName, in, out, opts...) |
| 235 |
if err != nil { |
| 236 |
return nil, err |
| 237 |
} |
| 238 |
return out, nil |
| 239 |
} |
| 240 |
|
| 241 |
func (c *autoMlClient) ExportData(ctx context.Context, in *ExportDataRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 242 |
out := new(longrunningpb.Operation) |
| 243 |
err := c.cc.Invoke(ctx, AutoMl_ExportData_FullMethodName, in, out, opts...) |
| 244 |
if err != nil { |
| 245 |
return nil, err |
| 246 |
} |
| 247 |
return out, nil |
| 248 |
} |
| 249 |
|
| 250 |
func (c *autoMlClient) GetAnnotationSpec(ctx context.Context, in *GetAnnotationSpecRequest, opts ...grpc.CallOption) (*AnnotationSpec, error) { |
| 251 |
out := new(AnnotationSpec) |
| 252 |
err := c.cc.Invoke(ctx, AutoMl_GetAnnotationSpec_FullMethodName, in, out, opts...) |
| 253 |
if err != nil { |
| 254 |
return nil, err |
| 255 |
} |
| 256 |
return out, nil |
| 257 |
} |
| 258 |
|
| 259 |
func (c *autoMlClient) GetTableSpec(ctx context.Context, in *GetTableSpecRequest, opts ...grpc.CallOption) (*TableSpec, error) { |
| 260 |
out := new(TableSpec) |
| 261 |
err := c.cc.Invoke(ctx, AutoMl_GetTableSpec_FullMethodName, in, out, opts...) |
| 262 |
if err != nil { |
| 263 |
return nil, err |
| 264 |
} |
| 265 |
return out, nil |
| 266 |
} |
| 267 |
|
| 268 |
func (c *autoMlClient) ListTableSpecs(ctx context.Context, in *ListTableSpecsRequest, opts ...grpc.CallOption) (*ListTableSpecsResponse, error) { |
| 269 |
out := new(ListTableSpecsResponse) |
| 270 |
err := c.cc.Invoke(ctx, AutoMl_ListTableSpecs_FullMethodName, in, out, opts...) |
| 271 |
if err != nil { |
| 272 |
return nil, err |
| 273 |
} |
| 274 |
return out, nil |
| 275 |
} |
| 276 |
|
| 277 |
func (c *autoMlClient) UpdateTableSpec(ctx context.Context, in *UpdateTableSpecRequest, opts ...grpc.CallOption) (*TableSpec, error) { |
| 278 |
out := new(TableSpec) |
| 279 |
err := c.cc.Invoke(ctx, AutoMl_UpdateTableSpec_FullMethodName, in, out, opts...) |
| 280 |
if err != nil { |
| 281 |
return nil, err |
| 282 |
} |
| 283 |
return out, nil |
| 284 |
} |
| 285 |
|
| 286 |
func (c *autoMlClient) GetColumnSpec(ctx context.Context, in *GetColumnSpecRequest, opts ...grpc.CallOption) (*ColumnSpec, error) { |
| 287 |
out := new(ColumnSpec) |
| 288 |
err := c.cc.Invoke(ctx, AutoMl_GetColumnSpec_FullMethodName, in, out, opts...) |
| 289 |
if err != nil { |
| 290 |
return nil, err |
| 291 |
} |
| 292 |
return out, nil |
| 293 |
} |
| 294 |
|
| 295 |
func (c *autoMlClient) ListColumnSpecs(ctx context.Context, in *ListColumnSpecsRequest, opts ...grpc.CallOption) (*ListColumnSpecsResponse, error) { |
| 296 |
out := new(ListColumnSpecsResponse) |
| 297 |
err := c.cc.Invoke(ctx, AutoMl_ListColumnSpecs_FullMethodName, in, out, opts...) |
| 298 |
if err != nil { |
| 299 |
return nil, err |
| 300 |
} |
| 301 |
return out, nil |
| 302 |
} |
| 303 |
|
| 304 |
func (c *autoMlClient) UpdateColumnSpec(ctx context.Context, in *UpdateColumnSpecRequest, opts ...grpc.CallOption) (*ColumnSpec, error) { |
| 305 |
out := new(ColumnSpec) |
| 306 |
err := c.cc.Invoke(ctx, AutoMl_UpdateColumnSpec_FullMethodName, in, out, opts...) |
| 307 |
if err != nil { |
| 308 |
return nil, err |
| 309 |
} |
| 310 |
return out, nil |
| 311 |
} |
| 312 |
|
| 313 |
func (c *autoMlClient) CreateModel(ctx context.Context, in *CreateModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 314 |
out := new(longrunningpb.Operation) |
| 315 |
err := c.cc.Invoke(ctx, AutoMl_CreateModel_FullMethodName, in, out, opts...) |
| 316 |
if err != nil { |
| 317 |
return nil, err |
| 318 |
} |
| 319 |
return out, nil |
| 320 |
} |
| 321 |
|
| 322 |
func (c *autoMlClient) GetModel(ctx context.Context, in *GetModelRequest, opts ...grpc.CallOption) (*Model, error) { |
| 323 |
out := new(Model) |
| 324 |
err := c.cc.Invoke(ctx, AutoMl_GetModel_FullMethodName, in, out, opts...) |
| 325 |
if err != nil { |
| 326 |
return nil, err |
| 327 |
} |
| 328 |
return out, nil |
| 329 |
} |
| 330 |
|
| 331 |
func (c *autoMlClient) ListModels(ctx context.Context, in *ListModelsRequest, opts ...grpc.CallOption) (*ListModelsResponse, error) { |
| 332 |
out := new(ListModelsResponse) |
| 333 |
err := c.cc.Invoke(ctx, AutoMl_ListModels_FullMethodName, in, out, opts...) |
| 334 |
if err != nil { |
| 335 |
return nil, err |
| 336 |
} |
| 337 |
return out, nil |
| 338 |
} |
| 339 |
|
| 340 |
func (c *autoMlClient) DeleteModel(ctx context.Context, in *DeleteModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 341 |
out := new(longrunningpb.Operation) |
| 342 |
err := c.cc.Invoke(ctx, AutoMl_DeleteModel_FullMethodName, in, out, opts...) |
| 343 |
if err != nil { |
| 344 |
return nil, err |
| 345 |
} |
| 346 |
return out, nil |
| 347 |
} |
| 348 |
|
| 349 |
func (c *autoMlClient) DeployModel(ctx context.Context, in *DeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 350 |
out := new(longrunningpb.Operation) |
| 351 |
err := c.cc.Invoke(ctx, AutoMl_DeployModel_FullMethodName, in, out, opts...) |
| 352 |
if err != nil { |
| 353 |
return nil, err |
| 354 |
} |
| 355 |
return out, nil |
| 356 |
} |
| 357 |
|
| 358 |
func (c *autoMlClient) UndeployModel(ctx context.Context, in *UndeployModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 359 |
out := new(longrunningpb.Operation) |
| 360 |
err := c.cc.Invoke(ctx, AutoMl_UndeployModel_FullMethodName, in, out, opts...) |
| 361 |
if err != nil { |
| 362 |
return nil, err |
| 363 |
} |
| 364 |
return out, nil |
| 365 |
} |
| 366 |
|
| 367 |
func (c *autoMlClient) ExportModel(ctx context.Context, in *ExportModelRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 368 |
out := new(longrunningpb.Operation) |
| 369 |
err := c.cc.Invoke(ctx, AutoMl_ExportModel_FullMethodName, in, out, opts...) |
| 370 |
if err != nil { |
| 371 |
return nil, err |
| 372 |
} |
| 373 |
return out, nil |
| 374 |
} |
| 375 |
|
| 376 |
func (c *autoMlClient) ExportEvaluatedExamples(ctx context.Context, in *ExportEvaluatedExamplesRequest, opts ...grpc.CallOption) (*longrunningpb.Operation, error) { |
| 377 |
out := new(longrunningpb.Operation) |
| 378 |
err := c.cc.Invoke(ctx, AutoMl_ExportEvaluatedExamples_FullMethodName, in, out, opts...) |
| 379 |
if err != nil { |
| 380 |
return nil, err |
| 381 |
} |
| 382 |
return out, nil |
| 383 |
} |
| 384 |
|
| 385 |
func (c *autoMlClient) GetModelEvaluation(ctx context.Context, in *GetModelEvaluationRequest, opts ...grpc.CallOption) (*ModelEvaluation, error) { |
| 386 |
out := new(ModelEvaluation) |
| 387 |
err := c.cc.Invoke(ctx, AutoMl_GetModelEvaluation_FullMethodName, in, out, opts...) |
| 388 |
if err != nil { |
| 389 |
return nil, err |
| 390 |
} |
| 391 |
return out, nil |
| 392 |
} |
| 393 |
|
| 394 |
func (c *autoMlClient) ListModelEvaluations(ctx context.Context, in *ListModelEvaluationsRequest, opts ...grpc.CallOption) (*ListModelEvaluationsResponse, error) { |
| 395 |
out := new(ListModelEvaluationsResponse) |
| 396 |
err := c.cc.Invoke(ctx, AutoMl_ListModelEvaluations_FullMethodName, in, out, opts...) |
| 397 |
if err != nil { |
| 398 |
return nil, err |
| 399 |
} |
| 400 |
return out, nil |
| 401 |
} |
| 402 |
|
| 403 |
// AutoMlServer is the server API for AutoMl service. |
| 404 |
// All implementations should embed UnimplementedAutoMlServer |
| 405 |
// for forward compatibility |
| 406 |
type AutoMlServer interface { |
| 407 |
// Creates a dataset. |
| 408 |
CreateDataset(context.Context, *CreateDatasetRequest) (*Dataset, error) |
| 409 |
// Gets a dataset. |
| 410 |
GetDataset(context.Context, *GetDatasetRequest) (*Dataset, error) |
| 411 |
// Lists datasets in a project. |
| 412 |
ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) |
| 413 |
// Updates a dataset. |
| 414 |
UpdateDataset(context.Context, *UpdateDatasetRequest) (*Dataset, error) |
| 415 |
// Deletes a dataset and all of its contents. |
| 416 |
// Returns empty response in the |
| 417 |
// [response][google.longrunning.Operation.response] field when it completes, |
| 418 |
// and `delete_details` in the |
| 419 |
// [metadata][google.longrunning.Operation.metadata] field. |
| 420 |
DeleteDataset(context.Context, *DeleteDatasetRequest) (*longrunningpb.Operation, error) |
| 421 |
// Imports data into a dataset. |
| 422 |
// For Tables this method can only be called on an empty Dataset. |
| 423 |
// |
| 424 |
// For Tables: |
| 425 |
// * A |
| 426 |
// [schema_inference_version][google.cloud.automl.v1beta1.InputConfig.params] |
| 427 |
// |
| 428 |
// parameter must be explicitly set. |
| 429 |
// |
| 430 |
// Returns an empty response in the |
| 431 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 432 |
ImportData(context.Context, *ImportDataRequest) (*longrunningpb.Operation, error) |
| 433 |
// Exports dataset's data to the provided output location. |
| 434 |
// Returns an empty response in the |
| 435 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 436 |
ExportData(context.Context, *ExportDataRequest) (*longrunningpb.Operation, error) |
| 437 |
// Gets an annotation spec. |
| 438 |
GetAnnotationSpec(context.Context, *GetAnnotationSpecRequest) (*AnnotationSpec, error) |
| 439 |
// Gets a table spec. |
| 440 |
GetTableSpec(context.Context, *GetTableSpecRequest) (*TableSpec, error) |
| 441 |
// Lists table specs in a dataset. |
| 442 |
ListTableSpecs(context.Context, *ListTableSpecsRequest) (*ListTableSpecsResponse, error) |
| 443 |
// Updates a table spec. |
| 444 |
UpdateTableSpec(context.Context, *UpdateTableSpecRequest) (*TableSpec, error) |
| 445 |
// Gets a column spec. |
| 446 |
GetColumnSpec(context.Context, *GetColumnSpecRequest) (*ColumnSpec, error) |
| 447 |
// Lists column specs in a table spec. |
| 448 |
ListColumnSpecs(context.Context, *ListColumnSpecsRequest) (*ListColumnSpecsResponse, error) |
| 449 |
// Updates a column spec. |
| 450 |
UpdateColumnSpec(context.Context, *UpdateColumnSpecRequest) (*ColumnSpec, error) |
| 451 |
// Creates a model. |
| 452 |
// Returns a Model in the [response][google.longrunning.Operation.response] |
| 453 |
// field when it completes. |
| 454 |
// When you create a model, several model evaluations are created for it: |
| 455 |
// a global evaluation, and one evaluation for each annotation spec. |
| 456 |
CreateModel(context.Context, *CreateModelRequest) (*longrunningpb.Operation, error) |
| 457 |
// Gets a model. |
| 458 |
GetModel(context.Context, *GetModelRequest) (*Model, error) |
| 459 |
// Lists models. |
| 460 |
ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) |
| 461 |
// Deletes a model. |
| 462 |
// Returns `google.protobuf.Empty` in the |
| 463 |
// [response][google.longrunning.Operation.response] field when it completes, |
| 464 |
// and `delete_details` in the |
| 465 |
// [metadata][google.longrunning.Operation.metadata] field. |
| 466 |
DeleteModel(context.Context, *DeleteModelRequest) (*longrunningpb.Operation, error) |
| 467 |
// Deploys a model. If a model is already deployed, deploying it with the |
| 468 |
// same parameters has no effect. Deploying with different parametrs |
| 469 |
// (as e.g. changing |
| 470 |
// |
| 471 |
// [node_number][google.cloud.automl.v1beta1.ImageObjectDetectionModelDeploymentMetadata.node_number]) |
| 472 |
// |
| 473 |
// will reset the deployment state without pausing the model's availability. |
| 474 |
// |
| 475 |
// Only applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage |
| 476 |
// deployment automatically. |
| 477 |
// |
| 478 |
// Returns an empty response in the |
| 479 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 480 |
DeployModel(context.Context, *DeployModelRequest) (*longrunningpb.Operation, error) |
| 481 |
// Undeploys a model. If the model is not deployed this method has no effect. |
| 482 |
// |
| 483 |
// Only applicable for Text Classification, Image Object Detection and Tables; |
| 484 |
// all other domains manage deployment automatically. |
| 485 |
// |
| 486 |
// Returns an empty response in the |
| 487 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 488 |
UndeployModel(context.Context, *UndeployModelRequest) (*longrunningpb.Operation, error) |
| 489 |
// Exports a trained, "export-able", model to a user specified Google Cloud |
| 490 |
// Storage location. A model is considered export-able if and only if it has |
| 491 |
// an export format defined for it in |
| 492 |
// |
| 493 |
// [ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig]. |
| 494 |
// |
| 495 |
// Returns an empty response in the |
| 496 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 497 |
ExportModel(context.Context, *ExportModelRequest) (*longrunningpb.Operation, error) |
| 498 |
// Exports examples on which the model was evaluated (i.e. which were in the |
| 499 |
// TEST set of the dataset the model was created from), together with their |
| 500 |
// ground truth annotations and the annotations created (predicted) by the |
| 501 |
// model. |
| 502 |
// The examples, ground truth and predictions are exported in the state |
| 503 |
// they were at the moment the model was evaluated. |
| 504 |
// |
| 505 |
// This export is available only for 30 days since the model evaluation is |
| 506 |
// created. |
| 507 |
// |
| 508 |
// Currently only available for Tables. |
| 509 |
// |
| 510 |
// Returns an empty response in the |
| 511 |
// [response][google.longrunning.Operation.response] field when it completes. |
| 512 |
ExportEvaluatedExamples(context.Context, *ExportEvaluatedExamplesRequest) (*longrunningpb.Operation, error) |
| 513 |
// Gets a model evaluation. |
| 514 |
GetModelEvaluation(context.Context, *GetModelEvaluationRequest) (*ModelEvaluation, error) |
| 515 |
// Lists model evaluations. |
| 516 |
ListModelEvaluations(context.Context, *ListModelEvaluationsRequest) (*ListModelEvaluationsResponse, error) |
| 517 |
} |
| 518 |
|
| 519 |
// UnimplementedAutoMlServer should be embedded to have forward compatible implementations. |
| 520 |
type UnimplementedAutoMlServer struct { |
| 521 |
} |
| 522 |
|
| 523 |
func (UnimplementedAutoMlServer) CreateDataset(context.Context, *CreateDatasetRequest) (*Dataset, error) { |
| 524 |
return nil, status.Errorf(codes.Unimplemented, "method CreateDataset not implemented") |
| 525 |
} |
| 526 |
func (UnimplementedAutoMlServer) GetDataset(context.Context, *GetDatasetRequest) (*Dataset, error) { |
| 527 |
return nil, status.Errorf(codes.Unimplemented, "method GetDataset not implemented") |
| 528 |
} |
| 529 |
func (UnimplementedAutoMlServer) ListDatasets(context.Context, *ListDatasetsRequest) (*ListDatasetsResponse, error) { |
| 530 |
return nil, status.Errorf(codes.Unimplemented, "method ListDatasets not implemented") |
| 531 |
} |
| 532 |
func (UnimplementedAutoMlServer) UpdateDataset(context.Context, *UpdateDatasetRequest) (*Dataset, error) { |
| 533 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateDataset not implemented") |
| 534 |
} |
| 535 |
func (UnimplementedAutoMlServer) DeleteDataset(context.Context, *DeleteDatasetRequest) (*longrunningpb.Operation, error) { |
| 536 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteDataset not implemented") |
| 537 |
} |
| 538 |
func (UnimplementedAutoMlServer) ImportData(context.Context, *ImportDataRequest) (*longrunningpb.Operation, error) { |
| 539 |
return nil, status.Errorf(codes.Unimplemented, "method ImportData not implemented") |
| 540 |
} |
| 541 |
func (UnimplementedAutoMlServer) ExportData(context.Context, *ExportDataRequest) (*longrunningpb.Operation, error) { |
| 542 |
return nil, status.Errorf(codes.Unimplemented, "method ExportData not implemented") |
| 543 |
} |
| 544 |
func (UnimplementedAutoMlServer) GetAnnotationSpec(context.Context, *GetAnnotationSpecRequest) (*AnnotationSpec, error) { |
| 545 |
return nil, status.Errorf(codes.Unimplemented, "method GetAnnotationSpec not implemented") |
| 546 |
} |
| 547 |
func (UnimplementedAutoMlServer) GetTableSpec(context.Context, *GetTableSpecRequest) (*TableSpec, error) { |
| 548 |
return nil, status.Errorf(codes.Unimplemented, "method GetTableSpec not implemented") |
| 549 |
} |
| 550 |
func (UnimplementedAutoMlServer) ListTableSpecs(context.Context, *ListTableSpecsRequest) (*ListTableSpecsResponse, error) { |
| 551 |
return nil, status.Errorf(codes.Unimplemented, "method ListTableSpecs not implemented") |
| 552 |
} |
| 553 |
func (UnimplementedAutoMlServer) UpdateTableSpec(context.Context, *UpdateTableSpecRequest) (*TableSpec, error) { |
| 554 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateTableSpec not implemented") |
| 555 |
} |
| 556 |
func (UnimplementedAutoMlServer) GetColumnSpec(context.Context, *GetColumnSpecRequest) (*ColumnSpec, error) { |
| 557 |
return nil, status.Errorf(codes.Unimplemented, "method GetColumnSpec not implemented") |
| 558 |
} |
| 559 |
func (UnimplementedAutoMlServer) ListColumnSpecs(context.Context, *ListColumnSpecsRequest) (*ListColumnSpecsResponse, error) { |
| 560 |
return nil, status.Errorf(codes.Unimplemented, "method ListColumnSpecs not implemented") |
| 561 |
} |
| 562 |
func (UnimplementedAutoMlServer) UpdateColumnSpec(context.Context, *UpdateColumnSpecRequest) (*ColumnSpec, error) { |
| 563 |
return nil, status.Errorf(codes.Unimplemented, "method UpdateColumnSpec not implemented") |
| 564 |
} |
| 565 |
func (UnimplementedAutoMlServer) CreateModel(context.Context, *CreateModelRequest) (*longrunningpb.Operation, error) { |
| 566 |
return nil, status.Errorf(codes.Unimplemented, "method CreateModel not implemented") |
| 567 |
} |
| 568 |
func (UnimplementedAutoMlServer) GetModel(context.Context, *GetModelRequest) (*Model, error) { |
| 569 |
return nil, status.Errorf(codes.Unimplemented, "method GetModel not implemented") |
| 570 |
} |
| 571 |
func (UnimplementedAutoMlServer) ListModels(context.Context, *ListModelsRequest) (*ListModelsResponse, error) { |
| 572 |
return nil, status.Errorf(codes.Unimplemented, "method ListModels not implemented") |
| 573 |
} |
| 574 |
func (UnimplementedAutoMlServer) DeleteModel(context.Context, *DeleteModelRequest) (*longrunningpb.Operation, error) { |
| 575 |
return nil, status.Errorf(codes.Unimplemented, "method DeleteModel not implemented") |
| 576 |
} |
| 577 |
func (UnimplementedAutoMlServer) DeployModel(context.Context, *DeployModelRequest) (*longrunningpb.Operation, error) { |
| 578 |
return nil, status.Errorf(codes.Unimplemented, "method DeployModel not implemented") |
| 579 |
} |
| 580 |
func (UnimplementedAutoMlServer) UndeployModel(context.Context, *UndeployModelRequest) (*longrunningpb.Operation, error) { |
| 581 |
return nil, status.Errorf(codes.Unimplemented, "method UndeployModel not implemented") |
| 582 |
} |
| 583 |
func (UnimplementedAutoMlServer) ExportModel(context.Context, *ExportModelRequest) (*longrunningpb.Operation, error) { |
| 584 |
return nil, status.Errorf(codes.Unimplemented, "method ExportModel not implemented") |
| 585 |
} |
| 586 |
func (UnimplementedAutoMlServer) ExportEvaluatedExamples(context.Context, *ExportEvaluatedExamplesRequest) (*longrunningpb.Operation, error) { |
| 587 |
return nil, status.Errorf(codes.Unimplemented, "method ExportEvaluatedExamples not implemented") |
| 588 |
} |
| 589 |
func (UnimplementedAutoMlServer) GetModelEvaluation(context.Context, *GetModelEvaluationRequest) (*ModelEvaluation, error) { |
| 590 |
return nil, status.Errorf(codes.Unimplemented, "method GetModelEvaluation not implemented") |
| 591 |
} |
| 592 |
func (UnimplementedAutoMlServer) ListModelEvaluations(context.Context, *ListModelEvaluationsRequest) (*ListModelEvaluationsResponse, error) { |
| 593 |
return nil, status.Errorf(codes.Unimplemented, "method ListModelEvaluations not implemented") |
| 594 |
} |
| 595 |
|
| 596 |
// UnsafeAutoMlServer may be embedded to opt out of forward compatibility for this service. |
| 597 |
// Use of this interface is not recommended, as added methods to AutoMlServer will |
| 598 |
// result in compilation errors. |
| 599 |
type UnsafeAutoMlServer interface { |
| 600 |
mustEmbedUnimplementedAutoMlServer() |
| 601 |
} |
| 602 |
|
| 603 |
func RegisterAutoMlServer(s grpc.ServiceRegistrar, srv AutoMlServer) { |
| 604 |
s.RegisterService(&AutoMl_ServiceDesc, srv) |
| 605 |
} |
| 606 |
|
| 607 |
func _AutoMl_CreateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 608 |
in := new(CreateDatasetRequest) |
| 609 |
if err := dec(in); err != nil { |
| 610 |
return nil, err |
| 611 |
} |
| 612 |
if interceptor == nil { |
| 613 |
return srv.(AutoMlServer).CreateDataset(ctx, in) |
| 614 |
} |
| 615 |
info := &grpc.UnaryServerInfo{ |
| 616 |
Server: srv, |
| 617 |
FullMethod: AutoMl_CreateDataset_FullMethodName, |
| 618 |
} |
| 619 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 620 |
return srv.(AutoMlServer).CreateDataset(ctx, req.(*CreateDatasetRequest)) |
| 621 |
} |
| 622 |
return interceptor(ctx, in, info, handler) |
| 623 |
} |
| 624 |
|
| 625 |
func _AutoMl_GetDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 626 |
in := new(GetDatasetRequest) |
| 627 |
if err := dec(in); err != nil { |
| 628 |
return nil, err |
| 629 |
} |
| 630 |
if interceptor == nil { |
| 631 |
return srv.(AutoMlServer).GetDataset(ctx, in) |
| 632 |
} |
| 633 |
info := &grpc.UnaryServerInfo{ |
| 634 |
Server: srv, |
| 635 |
FullMethod: AutoMl_GetDataset_FullMethodName, |
| 636 |
} |
| 637 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 638 |
return srv.(AutoMlServer).GetDataset(ctx, req.(*GetDatasetRequest)) |
| 639 |
} |
| 640 |
return interceptor(ctx, in, info, handler) |
| 641 |
} |
| 642 |
|
| 643 |
func _AutoMl_ListDatasets_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 644 |
in := new(ListDatasetsRequest) |
| 645 |
if err := dec(in); err != nil { |
| 646 |
return nil, err |
| 647 |
} |
| 648 |
if interceptor == nil { |
| 649 |
return srv.(AutoMlServer).ListDatasets(ctx, in) |
| 650 |
} |
| 651 |
info := &grpc.UnaryServerInfo{ |
| 652 |
Server: srv, |
| 653 |
FullMethod: AutoMl_ListDatasets_FullMethodName, |
| 654 |
} |
| 655 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 656 |
return srv.(AutoMlServer).ListDatasets(ctx, req.(*ListDatasetsRequest)) |
| 657 |
} |
| 658 |
return interceptor(ctx, in, info, handler) |
| 659 |
} |
| 660 |
|
| 661 |
func _AutoMl_UpdateDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 662 |
in := new(UpdateDatasetRequest) |
| 663 |
if err := dec(in); err != nil { |
| 664 |
return nil, err |
| 665 |
} |
| 666 |
if interceptor == nil { |
| 667 |
return srv.(AutoMlServer).UpdateDataset(ctx, in) |
| 668 |
} |
| 669 |
info := &grpc.UnaryServerInfo{ |
| 670 |
Server: srv, |
| 671 |
FullMethod: AutoMl_UpdateDataset_FullMethodName, |
| 672 |
} |
| 673 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 674 |
return srv.(AutoMlServer).UpdateDataset(ctx, req.(*UpdateDatasetRequest)) |
| 675 |
} |
| 676 |
return interceptor(ctx, in, info, handler) |
| 677 |
} |
| 678 |
|
| 679 |
func _AutoMl_DeleteDataset_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 680 |
in := new(DeleteDatasetRequest) |
| 681 |
if err := dec(in); err != nil { |
| 682 |
return nil, err |
| 683 |
} |
| 684 |
if interceptor == nil { |
| 685 |
return srv.(AutoMlServer).DeleteDataset(ctx, in) |
| 686 |
} |
| 687 |
info := &grpc.UnaryServerInfo{ |
| 688 |
Server: srv, |
| 689 |
FullMethod: AutoMl_DeleteDataset_FullMethodName, |
| 690 |
} |
| 691 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 692 |
return srv.(AutoMlServer).DeleteDataset(ctx, req.(*DeleteDatasetRequest)) |
| 693 |
} |
| 694 |
return interceptor(ctx, in, info, handler) |
| 695 |
} |
| 696 |
|
| 697 |
func _AutoMl_ImportData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 698 |
in := new(ImportDataRequest) |
| 699 |
if err := dec(in); err != nil { |
| 700 |
return nil, err |
| 701 |
} |
| 702 |
if interceptor == nil { |
| 703 |
return srv.(AutoMlServer).ImportData(ctx, in) |
| 704 |
} |
| 705 |
info := &grpc.UnaryServerInfo{ |
| 706 |
Server: srv, |
| 707 |
FullMethod: AutoMl_ImportData_FullMethodName, |
| 708 |
} |
| 709 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 710 |
return srv.(AutoMlServer).ImportData(ctx, req.(*ImportDataRequest)) |
| 711 |
} |
| 712 |
return interceptor(ctx, in, info, handler) |
| 713 |
} |
| 714 |
|
| 715 |
func _AutoMl_ExportData_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 716 |
in := new(ExportDataRequest) |
| 717 |
if err := dec(in); err != nil { |
| 718 |
return nil, err |
| 719 |
} |
| 720 |
if interceptor == nil { |
| 721 |
return srv.(AutoMlServer).ExportData(ctx, in) |
| 722 |
} |
| 723 |
info := &grpc.UnaryServerInfo{ |
| 724 |
Server: srv, |
| 725 |
FullMethod: AutoMl_ExportData_FullMethodName, |
| 726 |
} |
| 727 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 728 |
return srv.(AutoMlServer).ExportData(ctx, req.(*ExportDataRequest)) |
| 729 |
} |
| 730 |
return interceptor(ctx, in, info, handler) |
| 731 |
} |
| 732 |
|
| 733 |
func _AutoMl_GetAnnotationSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 734 |
in := new(GetAnnotationSpecRequest) |
| 735 |
if err := dec(in); err != nil { |
| 736 |
return nil, err |
| 737 |
} |
| 738 |
if interceptor == nil { |
| 739 |
return srv.(AutoMlServer).GetAnnotationSpec(ctx, in) |
| 740 |
} |
| 741 |
info := &grpc.UnaryServerInfo{ |
| 742 |
Server: srv, |
| 743 |
FullMethod: AutoMl_GetAnnotationSpec_FullMethodName, |
| 744 |
} |
| 745 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 746 |
return srv.(AutoMlServer).GetAnnotationSpec(ctx, req.(*GetAnnotationSpecRequest)) |
| 747 |
} |
| 748 |
return interceptor(ctx, in, info, handler) |
| 749 |
} |
| 750 |
|
| 751 |
func _AutoMl_GetTableSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 752 |
in := new(GetTableSpecRequest) |
| 753 |
if err := dec(in); err != nil { |
| 754 |
return nil, err |
| 755 |
} |
| 756 |
if interceptor == nil { |
| 757 |
return srv.(AutoMlServer).GetTableSpec(ctx, in) |
| 758 |
} |
| 759 |
info := &grpc.UnaryServerInfo{ |
| 760 |
Server: srv, |
| 761 |
FullMethod: AutoMl_GetTableSpec_FullMethodName, |
| 762 |
} |
| 763 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 764 |
return srv.(AutoMlServer).GetTableSpec(ctx, req.(*GetTableSpecRequest)) |
| 765 |
} |
| 766 |
return interceptor(ctx, in, info, handler) |
| 767 |
} |
| 768 |
|
| 769 |
func _AutoMl_ListTableSpecs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 770 |
in := new(ListTableSpecsRequest) |
| 771 |
if err := dec(in); err != nil { |
| 772 |
return nil, err |
| 773 |
} |
| 774 |
if interceptor == nil { |
| 775 |
return srv.(AutoMlServer).ListTableSpecs(ctx, in) |
| 776 |
} |
| 777 |
info := &grpc.UnaryServerInfo{ |
| 778 |
Server: srv, |
| 779 |
FullMethod: AutoMl_ListTableSpecs_FullMethodName, |
| 780 |
} |
| 781 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 782 |
return srv.(AutoMlServer).ListTableSpecs(ctx, req.(*ListTableSpecsRequest)) |
| 783 |
} |
| 784 |
return interceptor(ctx, in, info, handler) |
| 785 |
} |
| 786 |
|
| 787 |
func _AutoMl_UpdateTableSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 788 |
in := new(UpdateTableSpecRequest) |
| 789 |
if err := dec(in); err != nil { |
| 790 |
return nil, err |
| 791 |
} |
| 792 |
if interceptor == nil { |
| 793 |
return srv.(AutoMlServer).UpdateTableSpec(ctx, in) |
| 794 |
} |
| 795 |
info := &grpc.UnaryServerInfo{ |
| 796 |
Server: srv, |
| 797 |
FullMethod: AutoMl_UpdateTableSpec_FullMethodName, |
| 798 |
} |
| 799 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 800 |
return srv.(AutoMlServer).UpdateTableSpec(ctx, req.(*UpdateTableSpecRequest)) |
| 801 |
} |
| 802 |
return interceptor(ctx, in, info, handler) |
| 803 |
} |
| 804 |
|
| 805 |
func _AutoMl_GetColumnSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 806 |
in := new(GetColumnSpecRequest) |
| 807 |
if err := dec(in); err != nil { |
| 808 |
return nil, err |
| 809 |
} |
| 810 |
if interceptor == nil { |
| 811 |
return srv.(AutoMlServer).GetColumnSpec(ctx, in) |
| 812 |
} |
| 813 |
info := &grpc.UnaryServerInfo{ |
| 814 |
Server: srv, |
| 815 |
FullMethod: AutoMl_GetColumnSpec_FullMethodName, |
| 816 |
} |
| 817 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 818 |
return srv.(AutoMlServer).GetColumnSpec(ctx, req.(*GetColumnSpecRequest)) |
| 819 |
} |
| 820 |
return interceptor(ctx, in, info, handler) |
| 821 |
} |
| 822 |
|
| 823 |
func _AutoMl_ListColumnSpecs_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 824 |
in := new(ListColumnSpecsRequest) |
| 825 |
if err := dec(in); err != nil { |
| 826 |
return nil, err |
| 827 |
} |
| 828 |
if interceptor == nil { |
| 829 |
return srv.(AutoMlServer).ListColumnSpecs(ctx, in) |
| 830 |
} |
| 831 |
info := &grpc.UnaryServerInfo{ |
| 832 |
Server: srv, |
| 833 |
FullMethod: AutoMl_ListColumnSpecs_FullMethodName, |
| 834 |
} |
| 835 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 836 |
return srv.(AutoMlServer).ListColumnSpecs(ctx, req.(*ListColumnSpecsRequest)) |
| 837 |
} |
| 838 |
return interceptor(ctx, in, info, handler) |
| 839 |
} |
| 840 |
|
| 841 |
func _AutoMl_UpdateColumnSpec_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 842 |
in := new(UpdateColumnSpecRequest) |
| 843 |
if err := dec(in); err != nil { |
| 844 |
return nil, err |
| 845 |
} |
| 846 |
if interceptor == nil { |
| 847 |
return srv.(AutoMlServer).UpdateColumnSpec(ctx, in) |
| 848 |
} |
| 849 |
info := &grpc.UnaryServerInfo{ |
| 850 |
Server: srv, |
| 851 |
FullMethod: AutoMl_UpdateColumnSpec_FullMethodName, |
| 852 |
} |
| 853 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 854 |
return srv.(AutoMlServer).UpdateColumnSpec(ctx, req.(*UpdateColumnSpecRequest)) |
| 855 |
} |
| 856 |
return interceptor(ctx, in, info, handler) |
| 857 |
} |
| 858 |
|
| 859 |
func _AutoMl_CreateModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 860 |
in := new(CreateModelRequest) |
| 861 |
if err := dec(in); err != nil { |
| 862 |
return nil, err |
| 863 |
} |
| 864 |
if interceptor == nil { |
| 865 |
return srv.(AutoMlServer).CreateModel(ctx, in) |
| 866 |
} |
| 867 |
info := &grpc.UnaryServerInfo{ |
| 868 |
Server: srv, |
| 869 |
FullMethod: AutoMl_CreateModel_FullMethodName, |
| 870 |
} |
| 871 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 872 |
return srv.(AutoMlServer).CreateModel(ctx, req.(*CreateModelRequest)) |
| 873 |
} |
| 874 |
return interceptor(ctx, in, info, handler) |
| 875 |
} |
| 876 |
|
| 877 |
func _AutoMl_GetModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 878 |
in := new(GetModelRequest) |
| 879 |
if err := dec(in); err != nil { |
| 880 |
return nil, err |
| 881 |
} |
| 882 |
if interceptor == nil { |
| 883 |
return srv.(AutoMlServer).GetModel(ctx, in) |
| 884 |
} |
| 885 |
info := &grpc.UnaryServerInfo{ |
| 886 |
Server: srv, |
| 887 |
FullMethod: AutoMl_GetModel_FullMethodName, |
| 888 |
} |
| 889 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 890 |
return srv.(AutoMlServer).GetModel(ctx, req.(*GetModelRequest)) |
| 891 |
} |
| 892 |
return interceptor(ctx, in, info, handler) |
| 893 |
} |
| 894 |
|
| 895 |
func _AutoMl_ListModels_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 896 |
in := new(ListModelsRequest) |
| 897 |
if err := dec(in); err != nil { |
| 898 |
return nil, err |
| 899 |
} |
| 900 |
if interceptor == nil { |
| 901 |
return srv.(AutoMlServer).ListModels(ctx, in) |
| 902 |
} |
| 903 |
info := &grpc.UnaryServerInfo{ |
| 904 |
Server: srv, |
| 905 |
FullMethod: AutoMl_ListModels_FullMethodName, |
| 906 |
} |
| 907 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 908 |
return srv.(AutoMlServer).ListModels(ctx, req.(*ListModelsRequest)) |
| 909 |
} |
| 910 |
return interceptor(ctx, in, info, handler) |
| 911 |
} |
| 912 |
|
| 913 |
func _AutoMl_DeleteModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 914 |
in := new(DeleteModelRequest) |
| 915 |
if err := dec(in); err != nil { |
| 916 |
return nil, err |
| 917 |
} |
| 918 |
if interceptor == nil { |
| 919 |
return srv.(AutoMlServer).DeleteModel(ctx, in) |
| 920 |
} |
| 921 |
info := &grpc.UnaryServerInfo{ |
| 922 |
Server: srv, |
| 923 |
FullMethod: AutoMl_DeleteModel_FullMethodName, |
| 924 |
} |
| 925 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 926 |
return srv.(AutoMlServer).DeleteModel(ctx, req.(*DeleteModelRequest)) |
| 927 |
} |
| 928 |
return interceptor(ctx, in, info, handler) |
| 929 |
} |
| 930 |
|
| 931 |
func _AutoMl_DeployModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 932 |
in := new(DeployModelRequest) |
| 933 |
if err := dec(in); err != nil { |
| 934 |
return nil, err |
| 935 |
} |
| 936 |
if interceptor == nil { |
| 937 |
return srv.(AutoMlServer).DeployModel(ctx, in) |
| 938 |
} |
| 939 |
info := &grpc.UnaryServerInfo{ |
| 940 |
Server: srv, |
| 941 |
FullMethod: AutoMl_DeployModel_FullMethodName, |
| 942 |
} |
| 943 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 944 |
return srv.(AutoMlServer).DeployModel(ctx, req.(*DeployModelRequest)) |
| 945 |
} |
| 946 |
return interceptor(ctx, in, info, handler) |
| 947 |
} |
| 948 |
|
| 949 |
func _AutoMl_UndeployModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 950 |
in := new(UndeployModelRequest) |
| 951 |
if err := dec(in); err != nil { |
| 952 |
return nil, err |
| 953 |
} |
| 954 |
if interceptor == nil { |
| 955 |
return srv.(AutoMlServer).UndeployModel(ctx, in) |
| 956 |
} |
| 957 |
info := &grpc.UnaryServerInfo{ |
| 958 |
Server: srv, |
| 959 |
FullMethod: AutoMl_UndeployModel_FullMethodName, |
| 960 |
} |
| 961 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 962 |
return srv.(AutoMlServer).UndeployModel(ctx, req.(*UndeployModelRequest)) |
| 963 |
} |
| 964 |
return interceptor(ctx, in, info, handler) |
| 965 |
} |
| 966 |
|
| 967 |
func _AutoMl_ExportModel_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 968 |
in := new(ExportModelRequest) |
| 969 |
if err := dec(in); err != nil { |
| 970 |
return nil, err |
| 971 |
} |
| 972 |
if interceptor == nil { |
| 973 |
return srv.(AutoMlServer).ExportModel(ctx, in) |
| 974 |
} |
| 975 |
info := &grpc.UnaryServerInfo{ |
| 976 |
Server: srv, |
| 977 |
FullMethod: AutoMl_ExportModel_FullMethodName, |
| 978 |
} |
| 979 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 980 |
return srv.(AutoMlServer).ExportModel(ctx, req.(*ExportModelRequest)) |
| 981 |
} |
| 982 |
return interceptor(ctx, in, info, handler) |
| 983 |
} |
| 984 |
|
| 985 |
func _AutoMl_ExportEvaluatedExamples_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 986 |
in := new(ExportEvaluatedExamplesRequest) |
| 987 |
if err := dec(in); err != nil { |
| 988 |
return nil, err |
| 989 |
} |
| 990 |
if interceptor == nil { |
| 991 |
return srv.(AutoMlServer).ExportEvaluatedExamples(ctx, in) |
| 992 |
} |
| 993 |
info := &grpc.UnaryServerInfo{ |
| 994 |
Server: srv, |
| 995 |
FullMethod: AutoMl_ExportEvaluatedExamples_FullMethodName, |
| 996 |
} |
| 997 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 998 |
return srv.(AutoMlServer).ExportEvaluatedExamples(ctx, req.(*ExportEvaluatedExamplesRequest)) |
| 999 |
} |
| 1000 |
return interceptor(ctx, in, info, handler) |
| 1001 |
} |
| 1002 |
|
| 1003 |
func _AutoMl_GetModelEvaluation_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1004 |
in := new(GetModelEvaluationRequest) |
| 1005 |
if err := dec(in); err != nil { |
| 1006 |
return nil, err |
| 1007 |
} |
| 1008 |
if interceptor == nil { |
| 1009 |
return srv.(AutoMlServer).GetModelEvaluation(ctx, in) |
| 1010 |
} |
| 1011 |
info := &grpc.UnaryServerInfo{ |
| 1012 |
Server: srv, |
| 1013 |
FullMethod: AutoMl_GetModelEvaluation_FullMethodName, |
| 1014 |
} |
| 1015 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1016 |
return srv.(AutoMlServer).GetModelEvaluation(ctx, req.(*GetModelEvaluationRequest)) |
| 1017 |
} |
| 1018 |
return interceptor(ctx, in, info, handler) |
| 1019 |
} |
| 1020 |
|
| 1021 |
func _AutoMl_ListModelEvaluations_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { |
| 1022 |
in := new(ListModelEvaluationsRequest) |
| 1023 |
if err := dec(in); err != nil { |
| 1024 |
return nil, err |
| 1025 |
} |
| 1026 |
if interceptor == nil { |
| 1027 |
return srv.(AutoMlServer).ListModelEvaluations(ctx, in) |
| 1028 |
} |
| 1029 |
info := &grpc.UnaryServerInfo{ |
| 1030 |
Server: srv, |
| 1031 |
FullMethod: AutoMl_ListModelEvaluations_FullMethodName, |
| 1032 |
} |
| 1033 |
handler := func(ctx context.Context, req interface{}) (interface{}, error) { |
| 1034 |
return srv.(AutoMlServer).ListModelEvaluations(ctx, req.(*ListModelEvaluationsRequest)) |
| 1035 |
} |
| 1036 |
return interceptor(ctx, in, info, handler) |
| 1037 |
} |
| 1038 |
|
| 1039 |
// AutoMl_ServiceDesc is the grpc.ServiceDesc for AutoMl service. |
| 1040 |
// It's only intended for direct use with grpc.RegisterService, |
| 1041 |
// and not to be introspected or modified (even as a copy) |
| 1042 |
var AutoMl_ServiceDesc = grpc.ServiceDesc{ |
| 1043 |
ServiceName: "google.cloud.automl.v1beta1.AutoMl", |
| 1044 |
HandlerType: (*AutoMlServer)(nil), |
| 1045 |
Methods: []grpc.MethodDesc{ |
| 1046 |
{ |
| 1047 |
MethodName: "CreateDataset", |
| 1048 |
Handler: _AutoMl_CreateDataset_Handler, |
| 1049 |
}, |
| 1050 |
{ |
| 1051 |
MethodName: "GetDataset", |
| 1052 |
Handler: _AutoMl_GetDataset_Handler, |
| 1053 |
}, |
| 1054 |
{ |
| 1055 |
MethodName: "ListDatasets", |
| 1056 |
Handler: _AutoMl_ListDatasets_Handler, |
| 1057 |
}, |
| 1058 |
{ |
| 1059 |
MethodName: "UpdateDataset", |
| 1060 |
Handler: _AutoMl_UpdateDataset_Handler, |
| 1061 |
}, |
| 1062 |
{ |
| 1063 |
MethodName: "DeleteDataset", |
| 1064 |
Handler: _AutoMl_DeleteDataset_Handler, |
| 1065 |
}, |
| 1066 |
{ |
| 1067 |
MethodName: "ImportData", |
| 1068 |
Handler: _AutoMl_ImportData_Handler, |
| 1069 |
}, |
| 1070 |
{ |
| 1071 |
MethodName: "ExportData", |
| 1072 |
Handler: _AutoMl_ExportData_Handler, |
| 1073 |
}, |
| 1074 |
{ |
| 1075 |
MethodName: "GetAnnotationSpec", |
| 1076 |
Handler: _AutoMl_GetAnnotationSpec_Handler, |
| 1077 |
}, |
| 1078 |
{ |
| 1079 |
MethodName: "GetTableSpec", |
| 1080 |
Handler: _AutoMl_GetTableSpec_Handler, |
| 1081 |
}, |
| 1082 |
{ |
| 1083 |
MethodName: "ListTableSpecs", |
| 1084 |
Handler: _AutoMl_ListTableSpecs_Handler, |
| 1085 |
}, |
| 1086 |
{ |
| 1087 |
MethodName: "UpdateTableSpec", |
| 1088 |
Handler: _AutoMl_UpdateTableSpec_Handler, |
| 1089 |
}, |
| 1090 |
{ |
| 1091 |
MethodName: "GetColumnSpec", |
| 1092 |
Handler: _AutoMl_GetColumnSpec_Handler, |
| 1093 |
}, |
| 1094 |
{ |
| 1095 |
MethodName: "ListColumnSpecs", |
| 1096 |
Handler: _AutoMl_ListColumnSpecs_Handler, |
| 1097 |
}, |
| 1098 |
{ |
| 1099 |
MethodName: "UpdateColumnSpec", |
| 1100 |
Handler: _AutoMl_UpdateColumnSpec_Handler, |
| 1101 |
}, |
| 1102 |
{ |
| 1103 |
MethodName: "CreateModel", |
| 1104 |
Handler: _AutoMl_CreateModel_Handler, |
| 1105 |
}, |
| 1106 |
{ |
| 1107 |
MethodName: "GetModel", |
| 1108 |
Handler: _AutoMl_GetModel_Handler, |
| 1109 |
}, |
| 1110 |
{ |
| 1111 |
MethodName: "ListModels", |
| 1112 |
Handler: _AutoMl_ListModels_Handler, |
| 1113 |
}, |
| 1114 |
{ |
| 1115 |
MethodName: "DeleteModel", |
| 1116 |
Handler: _AutoMl_DeleteModel_Handler, |
| 1117 |
}, |
| 1118 |
{ |
| 1119 |
MethodName: "DeployModel", |
| 1120 |
Handler: _AutoMl_DeployModel_Handler, |
| 1121 |
}, |
| 1122 |
{ |
| 1123 |
MethodName: "UndeployModel", |
| 1124 |
Handler: _AutoMl_UndeployModel_Handler, |
| 1125 |
}, |
| 1126 |
{ |
| 1127 |
MethodName: "ExportModel", |
| 1128 |
Handler: _AutoMl_ExportModel_Handler, |
| 1129 |
}, |
| 1130 |
{ |
| 1131 |
MethodName: "ExportEvaluatedExamples", |
| 1132 |
Handler: _AutoMl_ExportEvaluatedExamples_Handler, |
| 1133 |
}, |
| 1134 |
{ |
| 1135 |
MethodName: "GetModelEvaluation", |
| 1136 |
Handler: _AutoMl_GetModelEvaluation_Handler, |
| 1137 |
}, |
| 1138 |
{ |
| 1139 |
MethodName: "ListModelEvaluations", |
| 1140 |
Handler: _AutoMl_ListModelEvaluations_Handler, |
| 1141 |
}, |
| 1142 |
}, |
| 1143 |
Streams: []grpc.StreamDesc{}, |
| 1144 |
Metadata: "google/cloud/automl/v1beta1/service.proto", |
| 1145 |
} |