| 1 |
{ |
| 2 |
"clientLibrary": { |
| 3 |
"name": "cloud.google.com/go/automl/apiv1", |
| 4 |
"version": "1.14.7", |
| 5 |
"language": "GO", |
| 6 |
"apis": [ |
| 7 |
{ |
| 8 |
"id": "google.cloud.automl.v1", |
| 9 |
"version": "v1" |
| 10 |
} |
| 11 |
] |
| 12 |
}, |
| 13 |
"snippets": [ |
| 14 |
{ |
| 15 |
"regionTag": "automl_v1_generated_AutoMl_CreateDataset_sync", |
| 16 |
"title": "automl CreateDataset Sample", |
| 17 |
"description": "CreateDataset creates a dataset.", |
| 18 |
"file": "Client/CreateDataset/main.go", |
| 19 |
"language": "GO", |
| 20 |
"clientMethod": { |
| 21 |
"shortName": "CreateDataset", |
| 22 |
"fullName": "google.cloud.automl.v1.Client.CreateDataset", |
| 23 |
"parameters": [ |
| 24 |
{ |
| 25 |
"type": "context.Context", |
| 26 |
"name": "ctx" |
| 27 |
}, |
| 28 |
{ |
| 29 |
"type": "automlpb.CreateDatasetRequest", |
| 30 |
"name": "req" |
| 31 |
}, |
| 32 |
{ |
| 33 |
"type": "...gax.CallOption", |
| 34 |
"name": "opts" |
| 35 |
} |
| 36 |
], |
| 37 |
"resultType": "CreateDatasetOperation", |
| 38 |
"client": { |
| 39 |
"shortName": "Client", |
| 40 |
"fullName": "google.cloud.automl.v1.Client" |
| 41 |
}, |
| 42 |
"method": { |
| 43 |
"shortName": "CreateDataset", |
| 44 |
"fullName": "google.cloud.automl.v1.AutoMl.CreateDataset", |
| 45 |
"service": { |
| 46 |
"shortName": "AutoMl", |
| 47 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 48 |
} |
| 49 |
} |
| 50 |
}, |
| 51 |
"origin": "API_DEFINITION", |
| 52 |
"segments": [ |
| 53 |
{ |
| 54 |
"start": 18, |
| 55 |
"end": 58, |
| 56 |
"type": "FULL" |
| 57 |
} |
| 58 |
] |
| 59 |
}, |
| 60 |
{ |
| 61 |
"regionTag": "automl_v1_generated_AutoMl_CreateModel_sync", |
| 62 |
"title": "automl CreateModel Sample", |
| 63 |
"description": "CreateModel creates a model.\nReturns a Model in the [response][google.longrunning.Operation.response]\nfield when it completes.\nWhen you create a model, several model evaluations are created for it: \na global evaluation, and one evaluation for each annotation spec.", |
| 64 |
"file": "Client/CreateModel/main.go", |
| 65 |
"language": "GO", |
| 66 |
"clientMethod": { |
| 67 |
"shortName": "CreateModel", |
| 68 |
"fullName": "google.cloud.automl.v1.Client.CreateModel", |
| 69 |
"parameters": [ |
| 70 |
{ |
| 71 |
"type": "context.Context", |
| 72 |
"name": "ctx" |
| 73 |
}, |
| 74 |
{ |
| 75 |
"type": "automlpb.CreateModelRequest", |
| 76 |
"name": "req" |
| 77 |
}, |
| 78 |
{ |
| 79 |
"type": "...gax.CallOption", |
| 80 |
"name": "opts" |
| 81 |
} |
| 82 |
], |
| 83 |
"resultType": "CreateModelOperation", |
| 84 |
"client": { |
| 85 |
"shortName": "Client", |
| 86 |
"fullName": "google.cloud.automl.v1.Client" |
| 87 |
}, |
| 88 |
"method": { |
| 89 |
"shortName": "CreateModel", |
| 90 |
"fullName": "google.cloud.automl.v1.AutoMl.CreateModel", |
| 91 |
"service": { |
| 92 |
"shortName": "AutoMl", |
| 93 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 94 |
} |
| 95 |
} |
| 96 |
}, |
| 97 |
"origin": "API_DEFINITION", |
| 98 |
"segments": [ |
| 99 |
{ |
| 100 |
"start": 18, |
| 101 |
"end": 58, |
| 102 |
"type": "FULL" |
| 103 |
} |
| 104 |
] |
| 105 |
}, |
| 106 |
{ |
| 107 |
"regionTag": "automl_v1_generated_AutoMl_DeleteDataset_sync", |
| 108 |
"title": "automl DeleteDataset Sample", |
| 109 |
"description": "DeleteDataset deletes a dataset and all of its contents.\nReturns empty response in the\n[response][google.longrunning.Operation.response] field when it completes,\nand `delete_details` in the\n[metadata][google.longrunning.Operation.metadata] field.", |
| 110 |
"file": "Client/DeleteDataset/main.go", |
| 111 |
"language": "GO", |
| 112 |
"clientMethod": { |
| 113 |
"shortName": "DeleteDataset", |
| 114 |
"fullName": "google.cloud.automl.v1.Client.DeleteDataset", |
| 115 |
"parameters": [ |
| 116 |
{ |
| 117 |
"type": "context.Context", |
| 118 |
"name": "ctx" |
| 119 |
}, |
| 120 |
{ |
| 121 |
"type": "automlpb.DeleteDatasetRequest", |
| 122 |
"name": "req" |
| 123 |
}, |
| 124 |
{ |
| 125 |
"type": "...gax.CallOption", |
| 126 |
"name": "opts" |
| 127 |
} |
| 128 |
], |
| 129 |
"resultType": "DeleteDatasetOperation", |
| 130 |
"client": { |
| 131 |
"shortName": "Client", |
| 132 |
"fullName": "google.cloud.automl.v1.Client" |
| 133 |
}, |
| 134 |
"method": { |
| 135 |
"shortName": "DeleteDataset", |
| 136 |
"fullName": "google.cloud.automl.v1.AutoMl.DeleteDataset", |
| 137 |
"service": { |
| 138 |
"shortName": "AutoMl", |
| 139 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 140 |
} |
| 141 |
} |
| 142 |
}, |
| 143 |
"origin": "API_DEFINITION", |
| 144 |
"segments": [ |
| 145 |
{ |
| 146 |
"start": 18, |
| 147 |
"end": 56, |
| 148 |
"type": "FULL" |
| 149 |
} |
| 150 |
] |
| 151 |
}, |
| 152 |
{ |
| 153 |
"regionTag": "automl_v1_generated_AutoMl_DeleteModel_sync", |
| 154 |
"title": "automl DeleteModel Sample", |
| 155 |
"description": "DeleteModel deletes a model.\nReturns `google.protobuf.Empty` in the\n[response][google.longrunning.Operation.response] field when it completes,\nand `delete_details` in the\n[metadata][google.longrunning.Operation.metadata] field.", |
| 156 |
"file": "Client/DeleteModel/main.go", |
| 157 |
"language": "GO", |
| 158 |
"clientMethod": { |
| 159 |
"shortName": "DeleteModel", |
| 160 |
"fullName": "google.cloud.automl.v1.Client.DeleteModel", |
| 161 |
"parameters": [ |
| 162 |
{ |
| 163 |
"type": "context.Context", |
| 164 |
"name": "ctx" |
| 165 |
}, |
| 166 |
{ |
| 167 |
"type": "automlpb.DeleteModelRequest", |
| 168 |
"name": "req" |
| 169 |
}, |
| 170 |
{ |
| 171 |
"type": "...gax.CallOption", |
| 172 |
"name": "opts" |
| 173 |
} |
| 174 |
], |
| 175 |
"resultType": "DeleteModelOperation", |
| 176 |
"client": { |
| 177 |
"shortName": "Client", |
| 178 |
"fullName": "google.cloud.automl.v1.Client" |
| 179 |
}, |
| 180 |
"method": { |
| 181 |
"shortName": "DeleteModel", |
| 182 |
"fullName": "google.cloud.automl.v1.AutoMl.DeleteModel", |
| 183 |
"service": { |
| 184 |
"shortName": "AutoMl", |
| 185 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 186 |
} |
| 187 |
} |
| 188 |
}, |
| 189 |
"origin": "API_DEFINITION", |
| 190 |
"segments": [ |
| 191 |
{ |
| 192 |
"start": 18, |
| 193 |
"end": 56, |
| 194 |
"type": "FULL" |
| 195 |
} |
| 196 |
] |
| 197 |
}, |
| 198 |
{ |
| 199 |
"regionTag": "automl_v1_generated_AutoMl_DeployModel_sync", |
| 200 |
"title": "automl DeployModel Sample", |
| 201 |
"description": "DeployModel deploys a model. If a model is already deployed, deploying it with the\nsame parameters has no effect. Deploying with different parametrs\n(as e.g. changing\n[node_number][google.cloud.automl.v1p1beta.ImageObjectDetectionModelDeploymentMetadata.node_number])\nwill reset the deployment state without pausing the model's availability.\n\nOnly applicable for Text Classification, Image Object Detection , Tables, and Image Segmentation; all other domains manage\ndeployment automatically.\n\nReturns an empty response in the\n[response][google.longrunning.Operation.response] field when it completes.", |
| 202 |
"file": "Client/DeployModel/main.go", |
| 203 |
"language": "GO", |
| 204 |
"clientMethod": { |
| 205 |
"shortName": "DeployModel", |
| 206 |
"fullName": "google.cloud.automl.v1.Client.DeployModel", |
| 207 |
"parameters": [ |
| 208 |
{ |
| 209 |
"type": "context.Context", |
| 210 |
"name": "ctx" |
| 211 |
}, |
| 212 |
{ |
| 213 |
"type": "automlpb.DeployModelRequest", |
| 214 |
"name": "req" |
| 215 |
}, |
| 216 |
{ |
| 217 |
"type": "...gax.CallOption", |
| 218 |
"name": "opts" |
| 219 |
} |
| 220 |
], |
| 221 |
"resultType": "DeployModelOperation", |
| 222 |
"client": { |
| 223 |
"shortName": "Client", |
| 224 |
"fullName": "google.cloud.automl.v1.Client" |
| 225 |
}, |
| 226 |
"method": { |
| 227 |
"shortName": "DeployModel", |
| 228 |
"fullName": "google.cloud.automl.v1.AutoMl.DeployModel", |
| 229 |
"service": { |
| 230 |
"shortName": "AutoMl", |
| 231 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 232 |
} |
| 233 |
} |
| 234 |
}, |
| 235 |
"origin": "API_DEFINITION", |
| 236 |
"segments": [ |
| 237 |
{ |
| 238 |
"start": 18, |
| 239 |
"end": 56, |
| 240 |
"type": "FULL" |
| 241 |
} |
| 242 |
] |
| 243 |
}, |
| 244 |
{ |
| 245 |
"regionTag": "automl_v1_generated_AutoMl_ExportData_sync", |
| 246 |
"title": "automl ExportData Sample", |
| 247 |
"description": "ExportData exports dataset's data to the provided output location.\nReturns an empty response in the\n[response][google.longrunning.Operation.response] field when it completes.", |
| 248 |
"file": "Client/ExportData/main.go", |
| 249 |
"language": "GO", |
| 250 |
"clientMethod": { |
| 251 |
"shortName": "ExportData", |
| 252 |
"fullName": "google.cloud.automl.v1.Client.ExportData", |
| 253 |
"parameters": [ |
| 254 |
{ |
| 255 |
"type": "context.Context", |
| 256 |
"name": "ctx" |
| 257 |
}, |
| 258 |
{ |
| 259 |
"type": "automlpb.ExportDataRequest", |
| 260 |
"name": "req" |
| 261 |
}, |
| 262 |
{ |
| 263 |
"type": "...gax.CallOption", |
| 264 |
"name": "opts" |
| 265 |
} |
| 266 |
], |
| 267 |
"resultType": "ExportDataOperation", |
| 268 |
"client": { |
| 269 |
"shortName": "Client", |
| 270 |
"fullName": "google.cloud.automl.v1.Client" |
| 271 |
}, |
| 272 |
"method": { |
| 273 |
"shortName": "ExportData", |
| 274 |
"fullName": "google.cloud.automl.v1.AutoMl.ExportData", |
| 275 |
"service": { |
| 276 |
"shortName": "AutoMl", |
| 277 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 278 |
} |
| 279 |
} |
| 280 |
}, |
| 281 |
"origin": "API_DEFINITION", |
| 282 |
"segments": [ |
| 283 |
{ |
| 284 |
"start": 18, |
| 285 |
"end": 56, |
| 286 |
"type": "FULL" |
| 287 |
} |
| 288 |
] |
| 289 |
}, |
| 290 |
{ |
| 291 |
"regionTag": "automl_v1_generated_AutoMl_ExportModel_sync", |
| 292 |
"title": "automl ExportModel Sample", |
| 293 |
"description": "ExportModel exports a trained, \"export-able\", model to a user specified Google Cloud\nStorage location. A model is considered export-able if and only if it has\nan export format defined for it in\n[ModelExportOutputConfig][google.cloud.automl.v1.ModelExportOutputConfig].\n\nReturns an empty response in the\n[response][google.longrunning.Operation.response] field when it completes.", |
| 294 |
"file": "Client/ExportModel/main.go", |
| 295 |
"language": "GO", |
| 296 |
"clientMethod": { |
| 297 |
"shortName": "ExportModel", |
| 298 |
"fullName": "google.cloud.automl.v1.Client.ExportModel", |
| 299 |
"parameters": [ |
| 300 |
{ |
| 301 |
"type": "context.Context", |
| 302 |
"name": "ctx" |
| 303 |
}, |
| 304 |
{ |
| 305 |
"type": "automlpb.ExportModelRequest", |
| 306 |
"name": "req" |
| 307 |
}, |
| 308 |
{ |
| 309 |
"type": "...gax.CallOption", |
| 310 |
"name": "opts" |
| 311 |
} |
| 312 |
], |
| 313 |
"resultType": "ExportModelOperation", |
| 314 |
"client": { |
| 315 |
"shortName": "Client", |
| 316 |
"fullName": "google.cloud.automl.v1.Client" |
| 317 |
}, |
| 318 |
"method": { |
| 319 |
"shortName": "ExportModel", |
| 320 |
"fullName": "google.cloud.automl.v1.AutoMl.ExportModel", |
| 321 |
"service": { |
| 322 |
"shortName": "AutoMl", |
| 323 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 324 |
} |
| 325 |
} |
| 326 |
}, |
| 327 |
"origin": "API_DEFINITION", |
| 328 |
"segments": [ |
| 329 |
{ |
| 330 |
"start": 18, |
| 331 |
"end": 56, |
| 332 |
"type": "FULL" |
| 333 |
} |
| 334 |
] |
| 335 |
}, |
| 336 |
{ |
| 337 |
"regionTag": "automl_v1_generated_AutoMl_GetAnnotationSpec_sync", |
| 338 |
"title": "automl GetAnnotationSpec Sample", |
| 339 |
"description": "GetAnnotationSpec gets an annotation spec.", |
| 340 |
"file": "Client/GetAnnotationSpec/main.go", |
| 341 |
"language": "GO", |
| 342 |
"clientMethod": { |
| 343 |
"shortName": "GetAnnotationSpec", |
| 344 |
"fullName": "google.cloud.automl.v1.Client.GetAnnotationSpec", |
| 345 |
"parameters": [ |
| 346 |
{ |
| 347 |
"type": "context.Context", |
| 348 |
"name": "ctx" |
| 349 |
}, |
| 350 |
{ |
| 351 |
"type": "automlpb.GetAnnotationSpecRequest", |
| 352 |
"name": "req" |
| 353 |
}, |
| 354 |
{ |
| 355 |
"type": "...gax.CallOption", |
| 356 |
"name": "opts" |
| 357 |
} |
| 358 |
], |
| 359 |
"resultType": "*automlpb.AnnotationSpec", |
| 360 |
"client": { |
| 361 |
"shortName": "Client", |
| 362 |
"fullName": "google.cloud.automl.v1.Client" |
| 363 |
}, |
| 364 |
"method": { |
| 365 |
"shortName": "GetAnnotationSpec", |
| 366 |
"fullName": "google.cloud.automl.v1.AutoMl.GetAnnotationSpec", |
| 367 |
"service": { |
| 368 |
"shortName": "AutoMl", |
| 369 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 370 |
} |
| 371 |
} |
| 372 |
}, |
| 373 |
"origin": "API_DEFINITION", |
| 374 |
"segments": [ |
| 375 |
{ |
| 376 |
"start": 18, |
| 377 |
"end": 53, |
| 378 |
"type": "FULL" |
| 379 |
} |
| 380 |
] |
| 381 |
}, |
| 382 |
{ |
| 383 |
"regionTag": "automl_v1_generated_AutoMl_GetDataset_sync", |
| 384 |
"title": "automl GetDataset Sample", |
| 385 |
"description": "GetDataset gets a dataset.", |
| 386 |
"file": "Client/GetDataset/main.go", |
| 387 |
"language": "GO", |
| 388 |
"clientMethod": { |
| 389 |
"shortName": "GetDataset", |
| 390 |
"fullName": "google.cloud.automl.v1.Client.GetDataset", |
| 391 |
"parameters": [ |
| 392 |
{ |
| 393 |
"type": "context.Context", |
| 394 |
"name": "ctx" |
| 395 |
}, |
| 396 |
{ |
| 397 |
"type": "automlpb.GetDatasetRequest", |
| 398 |
"name": "req" |
| 399 |
}, |
| 400 |
{ |
| 401 |
"type": "...gax.CallOption", |
| 402 |
"name": "opts" |
| 403 |
} |
| 404 |
], |
| 405 |
"resultType": "*automlpb.Dataset", |
| 406 |
"client": { |
| 407 |
"shortName": "Client", |
| 408 |
"fullName": "google.cloud.automl.v1.Client" |
| 409 |
}, |
| 410 |
"method": { |
| 411 |
"shortName": "GetDataset", |
| 412 |
"fullName": "google.cloud.automl.v1.AutoMl.GetDataset", |
| 413 |
"service": { |
| 414 |
"shortName": "AutoMl", |
| 415 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 416 |
} |
| 417 |
} |
| 418 |
}, |
| 419 |
"origin": "API_DEFINITION", |
| 420 |
"segments": [ |
| 421 |
{ |
| 422 |
"start": 18, |
| 423 |
"end": 53, |
| 424 |
"type": "FULL" |
| 425 |
} |
| 426 |
] |
| 427 |
}, |
| 428 |
{ |
| 429 |
"regionTag": "automl_v1_generated_AutoMl_GetModel_sync", |
| 430 |
"title": "automl GetModel Sample", |
| 431 |
"description": "GetModel gets a model.", |
| 432 |
"file": "Client/GetModel/main.go", |
| 433 |
"language": "GO", |
| 434 |
"clientMethod": { |
| 435 |
"shortName": "GetModel", |
| 436 |
"fullName": "google.cloud.automl.v1.Client.GetModel", |
| 437 |
"parameters": [ |
| 438 |
{ |
| 439 |
"type": "context.Context", |
| 440 |
"name": "ctx" |
| 441 |
}, |
| 442 |
{ |
| 443 |
"type": "automlpb.GetModelRequest", |
| 444 |
"name": "req" |
| 445 |
}, |
| 446 |
{ |
| 447 |
"type": "...gax.CallOption", |
| 448 |
"name": "opts" |
| 449 |
} |
| 450 |
], |
| 451 |
"resultType": "*automlpb.Model", |
| 452 |
"client": { |
| 453 |
"shortName": "Client", |
| 454 |
"fullName": "google.cloud.automl.v1.Client" |
| 455 |
}, |
| 456 |
"method": { |
| 457 |
"shortName": "GetModel", |
| 458 |
"fullName": "google.cloud.automl.v1.AutoMl.GetModel", |
| 459 |
"service": { |
| 460 |
"shortName": "AutoMl", |
| 461 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 462 |
} |
| 463 |
} |
| 464 |
}, |
| 465 |
"origin": "API_DEFINITION", |
| 466 |
"segments": [ |
| 467 |
{ |
| 468 |
"start": 18, |
| 469 |
"end": 53, |
| 470 |
"type": "FULL" |
| 471 |
} |
| 472 |
] |
| 473 |
}, |
| 474 |
{ |
| 475 |
"regionTag": "automl_v1_generated_AutoMl_GetModelEvaluation_sync", |
| 476 |
"title": "automl GetModelEvaluation Sample", |
| 477 |
"description": "GetModelEvaluation gets a model evaluation.", |
| 478 |
"file": "Client/GetModelEvaluation/main.go", |
| 479 |
"language": "GO", |
| 480 |
"clientMethod": { |
| 481 |
"shortName": "GetModelEvaluation", |
| 482 |
"fullName": "google.cloud.automl.v1.Client.GetModelEvaluation", |
| 483 |
"parameters": [ |
| 484 |
{ |
| 485 |
"type": "context.Context", |
| 486 |
"name": "ctx" |
| 487 |
}, |
| 488 |
{ |
| 489 |
"type": "automlpb.GetModelEvaluationRequest", |
| 490 |
"name": "req" |
| 491 |
}, |
| 492 |
{ |
| 493 |
"type": "...gax.CallOption", |
| 494 |
"name": "opts" |
| 495 |
} |
| 496 |
], |
| 497 |
"resultType": "*automlpb.ModelEvaluation", |
| 498 |
"client": { |
| 499 |
"shortName": "Client", |
| 500 |
"fullName": "google.cloud.automl.v1.Client" |
| 501 |
}, |
| 502 |
"method": { |
| 503 |
"shortName": "GetModelEvaluation", |
| 504 |
"fullName": "google.cloud.automl.v1.AutoMl.GetModelEvaluation", |
| 505 |
"service": { |
| 506 |
"shortName": "AutoMl", |
| 507 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 508 |
} |
| 509 |
} |
| 510 |
}, |
| 511 |
"origin": "API_DEFINITION", |
| 512 |
"segments": [ |
| 513 |
{ |
| 514 |
"start": 18, |
| 515 |
"end": 53, |
| 516 |
"type": "FULL" |
| 517 |
} |
| 518 |
] |
| 519 |
}, |
| 520 |
{ |
| 521 |
"regionTag": "automl_v1_generated_AutoMl_ImportData_sync", |
| 522 |
"title": "automl ImportData Sample", |
| 523 |
"description": "ImportData imports data into a dataset.\nFor Tables this method can only be called on an empty Dataset.\n\nFor Tables: \n* A\n[schema_inference_version][google.cloud.automl.v1.InputConfig.params]\nparameter must be explicitly set.\nReturns an empty response in the\n[response][google.longrunning.Operation.response] field when it completes.", |
| 524 |
"file": "Client/ImportData/main.go", |
| 525 |
"language": "GO", |
| 526 |
"clientMethod": { |
| 527 |
"shortName": "ImportData", |
| 528 |
"fullName": "google.cloud.automl.v1.Client.ImportData", |
| 529 |
"parameters": [ |
| 530 |
{ |
| 531 |
"type": "context.Context", |
| 532 |
"name": "ctx" |
| 533 |
}, |
| 534 |
{ |
| 535 |
"type": "automlpb.ImportDataRequest", |
| 536 |
"name": "req" |
| 537 |
}, |
| 538 |
{ |
| 539 |
"type": "...gax.CallOption", |
| 540 |
"name": "opts" |
| 541 |
} |
| 542 |
], |
| 543 |
"resultType": "ImportDataOperation", |
| 544 |
"client": { |
| 545 |
"shortName": "Client", |
| 546 |
"fullName": "google.cloud.automl.v1.Client" |
| 547 |
}, |
| 548 |
"method": { |
| 549 |
"shortName": "ImportData", |
| 550 |
"fullName": "google.cloud.automl.v1.AutoMl.ImportData", |
| 551 |
"service": { |
| 552 |
"shortName": "AutoMl", |
| 553 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 554 |
} |
| 555 |
} |
| 556 |
}, |
| 557 |
"origin": "API_DEFINITION", |
| 558 |
"segments": [ |
| 559 |
{ |
| 560 |
"start": 18, |
| 561 |
"end": 56, |
| 562 |
"type": "FULL" |
| 563 |
} |
| 564 |
] |
| 565 |
}, |
| 566 |
{ |
| 567 |
"regionTag": "automl_v1_generated_AutoMl_ListDatasets_sync", |
| 568 |
"title": "automl ListDatasets Sample", |
| 569 |
"description": "ListDatasets lists datasets in a project.", |
| 570 |
"file": "Client/ListDatasets/main.go", |
| 571 |
"language": "GO", |
| 572 |
"clientMethod": { |
| 573 |
"shortName": "ListDatasets", |
| 574 |
"fullName": "google.cloud.automl.v1.Client.ListDatasets", |
| 575 |
"parameters": [ |
| 576 |
{ |
| 577 |
"type": "context.Context", |
| 578 |
"name": "ctx" |
| 579 |
}, |
| 580 |
{ |
| 581 |
"type": "automlpb.ListDatasetsRequest", |
| 582 |
"name": "req" |
| 583 |
}, |
| 584 |
{ |
| 585 |
"type": "...gax.CallOption", |
| 586 |
"name": "opts" |
| 587 |
} |
| 588 |
], |
| 589 |
"resultType": "DatasetIterator", |
| 590 |
"client": { |
| 591 |
"shortName": "Client", |
| 592 |
"fullName": "google.cloud.automl.v1.Client" |
| 593 |
}, |
| 594 |
"method": { |
| 595 |
"shortName": "ListDatasets", |
| 596 |
"fullName": "google.cloud.automl.v1.AutoMl.ListDatasets", |
| 597 |
"service": { |
| 598 |
"shortName": "AutoMl", |
| 599 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 600 |
} |
| 601 |
} |
| 602 |
}, |
| 603 |
"origin": "API_DEFINITION", |
| 604 |
"segments": [ |
| 605 |
{ |
| 606 |
"start": 18, |
| 607 |
"end": 66, |
| 608 |
"type": "FULL" |
| 609 |
} |
| 610 |
] |
| 611 |
}, |
| 612 |
{ |
| 613 |
"regionTag": "automl_v1_generated_AutoMl_ListModelEvaluations_sync", |
| 614 |
"title": "automl ListModelEvaluations Sample", |
| 615 |
"description": "ListModelEvaluations lists model evaluations.", |
| 616 |
"file": "Client/ListModelEvaluations/main.go", |
| 617 |
"language": "GO", |
| 618 |
"clientMethod": { |
| 619 |
"shortName": "ListModelEvaluations", |
| 620 |
"fullName": "google.cloud.automl.v1.Client.ListModelEvaluations", |
| 621 |
"parameters": [ |
| 622 |
{ |
| 623 |
"type": "context.Context", |
| 624 |
"name": "ctx" |
| 625 |
}, |
| 626 |
{ |
| 627 |
"type": "automlpb.ListModelEvaluationsRequest", |
| 628 |
"name": "req" |
| 629 |
}, |
| 630 |
{ |
| 631 |
"type": "...gax.CallOption", |
| 632 |
"name": "opts" |
| 633 |
} |
| 634 |
], |
| 635 |
"resultType": "ModelEvaluationIterator", |
| 636 |
"client": { |
| 637 |
"shortName": "Client", |
| 638 |
"fullName": "google.cloud.automl.v1.Client" |
| 639 |
}, |
| 640 |
"method": { |
| 641 |
"shortName": "ListModelEvaluations", |
| 642 |
"fullName": "google.cloud.automl.v1.AutoMl.ListModelEvaluations", |
| 643 |
"service": { |
| 644 |
"shortName": "AutoMl", |
| 645 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 646 |
} |
| 647 |
} |
| 648 |
}, |
| 649 |
"origin": "API_DEFINITION", |
| 650 |
"segments": [ |
| 651 |
{ |
| 652 |
"start": 18, |
| 653 |
"end": 66, |
| 654 |
"type": "FULL" |
| 655 |
} |
| 656 |
] |
| 657 |
}, |
| 658 |
{ |
| 659 |
"regionTag": "automl_v1_generated_AutoMl_ListModels_sync", |
| 660 |
"title": "automl ListModels Sample", |
| 661 |
"description": "ListModels lists models.", |
| 662 |
"file": "Client/ListModels/main.go", |
| 663 |
"language": "GO", |
| 664 |
"clientMethod": { |
| 665 |
"shortName": "ListModels", |
| 666 |
"fullName": "google.cloud.automl.v1.Client.ListModels", |
| 667 |
"parameters": [ |
| 668 |
{ |
| 669 |
"type": "context.Context", |
| 670 |
"name": "ctx" |
| 671 |
}, |
| 672 |
{ |
| 673 |
"type": "automlpb.ListModelsRequest", |
| 674 |
"name": "req" |
| 675 |
}, |
| 676 |
{ |
| 677 |
"type": "...gax.CallOption", |
| 678 |
"name": "opts" |
| 679 |
} |
| 680 |
], |
| 681 |
"resultType": "ModelIterator", |
| 682 |
"client": { |
| 683 |
"shortName": "Client", |
| 684 |
"fullName": "google.cloud.automl.v1.Client" |
| 685 |
}, |
| 686 |
"method": { |
| 687 |
"shortName": "ListModels", |
| 688 |
"fullName": "google.cloud.automl.v1.AutoMl.ListModels", |
| 689 |
"service": { |
| 690 |
"shortName": "AutoMl", |
| 691 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 692 |
} |
| 693 |
} |
| 694 |
}, |
| 695 |
"origin": "API_DEFINITION", |
| 696 |
"segments": [ |
| 697 |
{ |
| 698 |
"start": 18, |
| 699 |
"end": 66, |
| 700 |
"type": "FULL" |
| 701 |
} |
| 702 |
] |
| 703 |
}, |
| 704 |
{ |
| 705 |
"regionTag": "automl_v1_generated_AutoMl_UndeployModel_sync", |
| 706 |
"title": "automl UndeployModel Sample", |
| 707 |
"description": "UndeployModel undeploys a model. If the model is not deployed this method has no effect.\n\nOnly applicable for Text Classification, Image Object Detection and Tables;\nall other domains manage deployment automatically.\n\nReturns an empty response in the\n[response][google.longrunning.Operation.response] field when it completes.", |
| 708 |
"file": "Client/UndeployModel/main.go", |
| 709 |
"language": "GO", |
| 710 |
"clientMethod": { |
| 711 |
"shortName": "UndeployModel", |
| 712 |
"fullName": "google.cloud.automl.v1.Client.UndeployModel", |
| 713 |
"parameters": [ |
| 714 |
{ |
| 715 |
"type": "context.Context", |
| 716 |
"name": "ctx" |
| 717 |
}, |
| 718 |
{ |
| 719 |
"type": "automlpb.UndeployModelRequest", |
| 720 |
"name": "req" |
| 721 |
}, |
| 722 |
{ |
| 723 |
"type": "...gax.CallOption", |
| 724 |
"name": "opts" |
| 725 |
} |
| 726 |
], |
| 727 |
"resultType": "UndeployModelOperation", |
| 728 |
"client": { |
| 729 |
"shortName": "Client", |
| 730 |
"fullName": "google.cloud.automl.v1.Client" |
| 731 |
}, |
| 732 |
"method": { |
| 733 |
"shortName": "UndeployModel", |
| 734 |
"fullName": "google.cloud.automl.v1.AutoMl.UndeployModel", |
| 735 |
"service": { |
| 736 |
"shortName": "AutoMl", |
| 737 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 738 |
} |
| 739 |
} |
| 740 |
}, |
| 741 |
"origin": "API_DEFINITION", |
| 742 |
"segments": [ |
| 743 |
{ |
| 744 |
"start": 18, |
| 745 |
"end": 56, |
| 746 |
"type": "FULL" |
| 747 |
} |
| 748 |
] |
| 749 |
}, |
| 750 |
{ |
| 751 |
"regionTag": "automl_v1_generated_AutoMl_UpdateDataset_sync", |
| 752 |
"title": "automl UpdateDataset Sample", |
| 753 |
"description": "UpdateDataset updates a dataset.", |
| 754 |
"file": "Client/UpdateDataset/main.go", |
| 755 |
"language": "GO", |
| 756 |
"clientMethod": { |
| 757 |
"shortName": "UpdateDataset", |
| 758 |
"fullName": "google.cloud.automl.v1.Client.UpdateDataset", |
| 759 |
"parameters": [ |
| 760 |
{ |
| 761 |
"type": "context.Context", |
| 762 |
"name": "ctx" |
| 763 |
}, |
| 764 |
{ |
| 765 |
"type": "automlpb.UpdateDatasetRequest", |
| 766 |
"name": "req" |
| 767 |
}, |
| 768 |
{ |
| 769 |
"type": "...gax.CallOption", |
| 770 |
"name": "opts" |
| 771 |
} |
| 772 |
], |
| 773 |
"resultType": "*automlpb.Dataset", |
| 774 |
"client": { |
| 775 |
"shortName": "Client", |
| 776 |
"fullName": "google.cloud.automl.v1.Client" |
| 777 |
}, |
| 778 |
"method": { |
| 779 |
"shortName": "UpdateDataset", |
| 780 |
"fullName": "google.cloud.automl.v1.AutoMl.UpdateDataset", |
| 781 |
"service": { |
| 782 |
"shortName": "AutoMl", |
| 783 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 784 |
} |
| 785 |
} |
| 786 |
}, |
| 787 |
"origin": "API_DEFINITION", |
| 788 |
"segments": [ |
| 789 |
{ |
| 790 |
"start": 18, |
| 791 |
"end": 53, |
| 792 |
"type": "FULL" |
| 793 |
} |
| 794 |
] |
| 795 |
}, |
| 796 |
{ |
| 797 |
"regionTag": "automl_v1_generated_AutoMl_UpdateModel_sync", |
| 798 |
"title": "automl UpdateModel Sample", |
| 799 |
"description": "UpdateModel updates a model.", |
| 800 |
"file": "Client/UpdateModel/main.go", |
| 801 |
"language": "GO", |
| 802 |
"clientMethod": { |
| 803 |
"shortName": "UpdateModel", |
| 804 |
"fullName": "google.cloud.automl.v1.Client.UpdateModel", |
| 805 |
"parameters": [ |
| 806 |
{ |
| 807 |
"type": "context.Context", |
| 808 |
"name": "ctx" |
| 809 |
}, |
| 810 |
{ |
| 811 |
"type": "automlpb.UpdateModelRequest", |
| 812 |
"name": "req" |
| 813 |
}, |
| 814 |
{ |
| 815 |
"type": "...gax.CallOption", |
| 816 |
"name": "opts" |
| 817 |
} |
| 818 |
], |
| 819 |
"resultType": "*automlpb.Model", |
| 820 |
"client": { |
| 821 |
"shortName": "Client", |
| 822 |
"fullName": "google.cloud.automl.v1.Client" |
| 823 |
}, |
| 824 |
"method": { |
| 825 |
"shortName": "UpdateModel", |
| 826 |
"fullName": "google.cloud.automl.v1.AutoMl.UpdateModel", |
| 827 |
"service": { |
| 828 |
"shortName": "AutoMl", |
| 829 |
"fullName": "google.cloud.automl.v1.AutoMl" |
| 830 |
} |
| 831 |
} |
| 832 |
}, |
| 833 |
"origin": "API_DEFINITION", |
| 834 |
"segments": [ |
| 835 |
{ |
| 836 |
"start": 18, |
| 837 |
"end": 53, |
| 838 |
"type": "FULL" |
| 839 |
} |
| 840 |
] |
| 841 |
}, |
| 842 |
{ |
| 843 |
"regionTag": "automl_v1_generated_PredictionService_BatchPredict_sync", |
| 844 |
"title": "automl BatchPredict Sample", |
| 845 |
"description": "BatchPredict perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1.PredictionService.Predict], batch\nprediction result won't be immediately available in the response. Instead,\na long running operation object is returned. User can poll the operation\nresult via [GetOperation][google.longrunning.Operations.GetOperation]\nmethod. Once the operation is done, [BatchPredictResult][google.cloud.automl.v1.BatchPredictResult] is returned in\nthe [response][google.longrunning.Operation.response] field.\nAvailable for following ML scenarios: \n\n* AutoML Vision Classification\n* AutoML Vision Object Detection\n* AutoML Video Intelligence Classification\n* AutoML Video Intelligence Object Tracking * AutoML Natural Language Classification\n* AutoML Natural Language Entity Extraction\n* AutoML Natural Language Sentiment Analysis\n* AutoML Tables", |
| 846 |
"file": "PredictionClient/BatchPredict/main.go", |
| 847 |
"language": "GO", |
| 848 |
"clientMethod": { |
| 849 |
"shortName": "BatchPredict", |
| 850 |
"fullName": "google.cloud.automl.v1.PredictionClient.BatchPredict", |
| 851 |
"parameters": [ |
| 852 |
{ |
| 853 |
"type": "context.Context", |
| 854 |
"name": "ctx" |
| 855 |
}, |
| 856 |
{ |
| 857 |
"type": "automlpb.BatchPredictRequest", |
| 858 |
"name": "req" |
| 859 |
}, |
| 860 |
{ |
| 861 |
"type": "...gax.CallOption", |
| 862 |
"name": "opts" |
| 863 |
} |
| 864 |
], |
| 865 |
"resultType": "BatchPredictOperation", |
| 866 |
"client": { |
| 867 |
"shortName": "PredictionClient", |
| 868 |
"fullName": "google.cloud.automl.v1.PredictionClient" |
| 869 |
}, |
| 870 |
"method": { |
| 871 |
"shortName": "BatchPredict", |
| 872 |
"fullName": "google.cloud.automl.v1.PredictionService.BatchPredict", |
| 873 |
"service": { |
| 874 |
"shortName": "PredictionService", |
| 875 |
"fullName": "google.cloud.automl.v1.PredictionService" |
| 876 |
} |
| 877 |
} |
| 878 |
}, |
| 879 |
"origin": "API_DEFINITION", |
| 880 |
"segments": [ |
| 881 |
{ |
| 882 |
"start": 18, |
| 883 |
"end": 58, |
| 884 |
"type": "FULL" |
| 885 |
} |
| 886 |
] |
| 887 |
}, |
| 888 |
{ |
| 889 |
"regionTag": "automl_v1_generated_PredictionService_Predict_sync", |
| 890 |
"title": "automl Predict Sample", |
| 891 |
"description": "Predict perform an online prediction. The prediction result is directly\nreturned in the response.\nAvailable for following ML scenarios, and their expected request payloads: \n\nAutoML Vision Classification\n\n* An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB.\n\nAutoML Vision Object Detection\n\n* An image in .JPEG, .GIF or .PNG format, image_bytes up to 30MB.\n\nAutoML Natural Language Classification\n\n* A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in\n.PDF, .TIF or .TIFF format with size upto 2MB.\n\nAutoML Natural Language Entity Extraction\n\n* A TextSnippet up to 10,000 characters, UTF-8 NFC encoded or a document\nin .PDF, .TIF or .TIFF format with size upto 20MB.\n\nAutoML Natural Language Sentiment Analysis\n\n* A TextSnippet up to 60,000 characters, UTF-8 encoded or a document in\n.PDF, .TIF or .TIFF format with size upto 2MB.\n\nAutoML Translation\n\n* A TextSnippet up to 25,000 characters, UTF-8 encoded.\n\nAutoML Tables\n\n* A row with column values matching\nthe columns of the model, up to 5MB. Not available for FORECASTING\n`prediction_type`.", |
| 892 |
"file": "PredictionClient/Predict/main.go", |
| 893 |
"language": "GO", |
| 894 |
"clientMethod": { |
| 895 |
"shortName": "Predict", |
| 896 |
"fullName": "google.cloud.automl.v1.PredictionClient.Predict", |
| 897 |
"parameters": [ |
| 898 |
{ |
| 899 |
"type": "context.Context", |
| 900 |
"name": "ctx" |
| 901 |
}, |
| 902 |
{ |
| 903 |
"type": "automlpb.PredictRequest", |
| 904 |
"name": "req" |
| 905 |
}, |
| 906 |
{ |
| 907 |
"type": "...gax.CallOption", |
| 908 |
"name": "opts" |
| 909 |
} |
| 910 |
], |
| 911 |
"resultType": "*automlpb.PredictResponse", |
| 912 |
"client": { |
| 913 |
"shortName": "PredictionClient", |
| 914 |
"fullName": "google.cloud.automl.v1.PredictionClient" |
| 915 |
}, |
| 916 |
"method": { |
| 917 |
"shortName": "Predict", |
| 918 |
"fullName": "google.cloud.automl.v1.PredictionService.Predict", |
| 919 |
"service": { |
| 920 |
"shortName": "PredictionService", |
| 921 |
"fullName": "google.cloud.automl.v1.PredictionService" |
| 922 |
} |
| 923 |
} |
| 924 |
}, |
| 925 |
"origin": "API_DEFINITION", |
| 926 |
"segments": [ |
| 927 |
{ |
| 928 |
"start": 18, |
| 929 |
"end": 53, |
| 930 |
"type": "FULL" |
| 931 |
} |
| 932 |
] |
| 933 |
} |
| 934 |
] |
| 935 |
} |