Debian Codegraph @

internal/generated/snippets/automl/apiv1beta1/snippet_metadata.google.cloud.automl.v1beta1.json

raw symbols SCIP
1 {
2 "clientLibrary": {
3 "name": "cloud.google.com/go/automl/apiv1beta1",
4 "version": "1.14.7",
5 "language": "GO",
6 "apis": [
7 {
8 "id": "google.cloud.automl.v1beta1",
9 "version": "v1beta1"
10 }
11 ]
12 },
13 "snippets": [
14 {
15 "regionTag": "automl_v1beta1_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.v1beta1.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": "*automlpb.Dataset",
38 "client": {
39 "shortName": "Client",
40 "fullName": "google.cloud.automl.v1beta1.Client"
41 },
42 "method": {
43 "shortName": "CreateDataset",
44 "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateDataset",
45 "service": {
46 "shortName": "AutoMl",
47 "fullName": "google.cloud.automl.v1beta1.AutoMl"
48 }
49 }
50 },
51 "origin": "API_DEFINITION",
52 "segments": [
53 {
54 "start": 18,
55 "end": 53,
56 "type": "FULL"
57 }
58 ]
59 },
60 {
61 "regionTag": "automl_v1beta1_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.v1beta1.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.v1beta1.Client"
87 },
88 "method": {
89 "shortName": "CreateModel",
90 "fullName": "google.cloud.automl.v1beta1.AutoMl.CreateModel",
91 "service": {
92 "shortName": "AutoMl",
93 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_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.v1beta1.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.v1beta1.Client"
133 },
134 "method": {
135 "shortName": "DeleteDataset",
136 "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteDataset",
137 "service": {
138 "shortName": "AutoMl",
139 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_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.v1beta1.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.v1beta1.Client"
179 },
180 "method": {
181 "shortName": "DeleteModel",
182 "fullName": "google.cloud.automl.v1beta1.AutoMl.DeleteModel",
183 "service": {
184 "shortName": "AutoMl",
185 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_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\n[node_number][google.cloud.automl.v1beta1.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.v1beta1.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.v1beta1.Client"
225 },
226 "method": {
227 "shortName": "DeployModel",
228 "fullName": "google.cloud.automl.v1beta1.AutoMl.DeployModel",
229 "service": {
230 "shortName": "AutoMl",
231 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_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.v1beta1.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.v1beta1.Client"
271 },
272 "method": {
273 "shortName": "ExportData",
274 "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportData",
275 "service": {
276 "shortName": "AutoMl",
277 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_generated_AutoMl_ExportEvaluatedExamples_sync",
292 "title": "automl ExportEvaluatedExamples Sample",
293 "description": "ExportEvaluatedExamples exports examples on which the model was evaluated (i.e. which were in the\nTEST set of the dataset the model was created from), together with their\nground truth annotations and the annotations created (predicted) by the\nmodel.\nThe examples, ground truth and predictions are exported in the state\nthey were at the moment the model was evaluated.\n\nThis export is available only for 30 days since the model evaluation is\ncreated.\n\nCurrently only available for Tables.\n\nReturns an empty response in the\n[response][google.longrunning.Operation.response] field when it completes.",
294 "file": "Client/ExportEvaluatedExamples/main.go",
295 "language": "GO",
296 "clientMethod": {
297 "shortName": "ExportEvaluatedExamples",
298 "fullName": "google.cloud.automl.v1beta1.Client.ExportEvaluatedExamples",
299 "parameters": [
300 {
301 "type": "context.Context",
302 "name": "ctx"
303 },
304 {
305 "type": "automlpb.ExportEvaluatedExamplesRequest",
306 "name": "req"
307 },
308 {
309 "type": "...gax.CallOption",
310 "name": "opts"
311 }
312 ],
313 "resultType": "ExportEvaluatedExamplesOperation",
314 "client": {
315 "shortName": "Client",
316 "fullName": "google.cloud.automl.v1beta1.Client"
317 },
318 "method": {
319 "shortName": "ExportEvaluatedExamples",
320 "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportEvaluatedExamples",
321 "service": {
322 "shortName": "AutoMl",
323 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_generated_AutoMl_ExportModel_sync",
338 "title": "automl ExportModel Sample",
339 "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\n[ModelExportOutputConfig][google.cloud.automl.v1beta1.ModelExportOutputConfig].\n\nReturns an empty response in the\n[response][google.longrunning.Operation.response] field when it completes.",
340 "file": "Client/ExportModel/main.go",
341 "language": "GO",
342 "clientMethod": {
343 "shortName": "ExportModel",
344 "fullName": "google.cloud.automl.v1beta1.Client.ExportModel",
345 "parameters": [
346 {
347 "type": "context.Context",
348 "name": "ctx"
349 },
350 {
351 "type": "automlpb.ExportModelRequest",
352 "name": "req"
353 },
354 {
355 "type": "...gax.CallOption",
356 "name": "opts"
357 }
358 ],
359 "resultType": "ExportModelOperation",
360 "client": {
361 "shortName": "Client",
362 "fullName": "google.cloud.automl.v1beta1.Client"
363 },
364 "method": {
365 "shortName": "ExportModel",
366 "fullName": "google.cloud.automl.v1beta1.AutoMl.ExportModel",
367 "service": {
368 "shortName": "AutoMl",
369 "fullName": "google.cloud.automl.v1beta1.AutoMl"
370 }
371 }
372 },
373 "origin": "API_DEFINITION",
374 "segments": [
375 {
376 "start": 18,
377 "end": 56,
378 "type": "FULL"
379 }
380 ]
381 },
382 {
383 "regionTag": "automl_v1beta1_generated_AutoMl_GetAnnotationSpec_sync",
384 "title": "automl GetAnnotationSpec Sample",
385 "description": "GetAnnotationSpec gets an annotation spec.",
386 "file": "Client/GetAnnotationSpec/main.go",
387 "language": "GO",
388 "clientMethod": {
389 "shortName": "GetAnnotationSpec",
390 "fullName": "google.cloud.automl.v1beta1.Client.GetAnnotationSpec",
391 "parameters": [
392 {
393 "type": "context.Context",
394 "name": "ctx"
395 },
396 {
397 "type": "automlpb.GetAnnotationSpecRequest",
398 "name": "req"
399 },
400 {
401 "type": "...gax.CallOption",
402 "name": "opts"
403 }
404 ],
405 "resultType": "*automlpb.AnnotationSpec",
406 "client": {
407 "shortName": "Client",
408 "fullName": "google.cloud.automl.v1beta1.Client"
409 },
410 "method": {
411 "shortName": "GetAnnotationSpec",
412 "fullName": "google.cloud.automl.v1beta1.AutoMl.GetAnnotationSpec",
413 "service": {
414 "shortName": "AutoMl",
415 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_generated_AutoMl_GetColumnSpec_sync",
430 "title": "automl GetColumnSpec Sample",
431 "description": "GetColumnSpec gets a column spec.",
432 "file": "Client/GetColumnSpec/main.go",
433 "language": "GO",
434 "clientMethod": {
435 "shortName": "GetColumnSpec",
436 "fullName": "google.cloud.automl.v1beta1.Client.GetColumnSpec",
437 "parameters": [
438 {
439 "type": "context.Context",
440 "name": "ctx"
441 },
442 {
443 "type": "automlpb.GetColumnSpecRequest",
444 "name": "req"
445 },
446 {
447 "type": "...gax.CallOption",
448 "name": "opts"
449 }
450 ],
451 "resultType": "*automlpb.ColumnSpec",
452 "client": {
453 "shortName": "Client",
454 "fullName": "google.cloud.automl.v1beta1.Client"
455 },
456 "method": {
457 "shortName": "GetColumnSpec",
458 "fullName": "google.cloud.automl.v1beta1.AutoMl.GetColumnSpec",
459 "service": {
460 "shortName": "AutoMl",
461 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_generated_AutoMl_GetDataset_sync",
476 "title": "automl GetDataset Sample",
477 "description": "GetDataset gets a dataset.",
478 "file": "Client/GetDataset/main.go",
479 "language": "GO",
480 "clientMethod": {
481 "shortName": "GetDataset",
482 "fullName": "google.cloud.automl.v1beta1.Client.GetDataset",
483 "parameters": [
484 {
485 "type": "context.Context",
486 "name": "ctx"
487 },
488 {
489 "type": "automlpb.GetDatasetRequest",
490 "name": "req"
491 },
492 {
493 "type": "...gax.CallOption",
494 "name": "opts"
495 }
496 ],
497 "resultType": "*automlpb.Dataset",
498 "client": {
499 "shortName": "Client",
500 "fullName": "google.cloud.automl.v1beta1.Client"
501 },
502 "method": {
503 "shortName": "GetDataset",
504 "fullName": "google.cloud.automl.v1beta1.AutoMl.GetDataset",
505 "service": {
506 "shortName": "AutoMl",
507 "fullName": "google.cloud.automl.v1beta1.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_v1beta1_generated_AutoMl_GetModel_sync",
522 "title": "automl GetModel Sample",
523 "description": "GetModel gets a model.",
524 "file": "Client/GetModel/main.go",
525 "language": "GO",
526 "clientMethod": {
527 "shortName": "GetModel",
528 "fullName": "google.cloud.automl.v1beta1.Client.GetModel",
529 "parameters": [
530 {
531 "type": "context.Context",
532 "name": "ctx"
533 },
534 {
535 "type": "automlpb.GetModelRequest",
536 "name": "req"
537 },
538 {
539 "type": "...gax.CallOption",
540 "name": "opts"
541 }
542 ],
543 "resultType": "*automlpb.Model",
544 "client": {
545 "shortName": "Client",
546 "fullName": "google.cloud.automl.v1beta1.Client"
547 },
548 "method": {
549 "shortName": "GetModel",
550 "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModel",
551 "service": {
552 "shortName": "AutoMl",
553 "fullName": "google.cloud.automl.v1beta1.AutoMl"
554 }
555 }
556 },
557 "origin": "API_DEFINITION",
558 "segments": [
559 {
560 "start": 18,
561 "end": 53,
562 "type": "FULL"
563 }
564 ]
565 },
566 {
567 "regionTag": "automl_v1beta1_generated_AutoMl_GetModelEvaluation_sync",
568 "title": "automl GetModelEvaluation Sample",
569 "description": "GetModelEvaluation gets a model evaluation.",
570 "file": "Client/GetModelEvaluation/main.go",
571 "language": "GO",
572 "clientMethod": {
573 "shortName": "GetModelEvaluation",
574 "fullName": "google.cloud.automl.v1beta1.Client.GetModelEvaluation",
575 "parameters": [
576 {
577 "type": "context.Context",
578 "name": "ctx"
579 },
580 {
581 "type": "automlpb.GetModelEvaluationRequest",
582 "name": "req"
583 },
584 {
585 "type": "...gax.CallOption",
586 "name": "opts"
587 }
588 ],
589 "resultType": "*automlpb.ModelEvaluation",
590 "client": {
591 "shortName": "Client",
592 "fullName": "google.cloud.automl.v1beta1.Client"
593 },
594 "method": {
595 "shortName": "GetModelEvaluation",
596 "fullName": "google.cloud.automl.v1beta1.AutoMl.GetModelEvaluation",
597 "service": {
598 "shortName": "AutoMl",
599 "fullName": "google.cloud.automl.v1beta1.AutoMl"
600 }
601 }
602 },
603 "origin": "API_DEFINITION",
604 "segments": [
605 {
606 "start": 18,
607 "end": 53,
608 "type": "FULL"
609 }
610 ]
611 },
612 {
613 "regionTag": "automl_v1beta1_generated_AutoMl_GetTableSpec_sync",
614 "title": "automl GetTableSpec Sample",
615 "description": "GetTableSpec gets a table spec.",
616 "file": "Client/GetTableSpec/main.go",
617 "language": "GO",
618 "clientMethod": {
619 "shortName": "GetTableSpec",
620 "fullName": "google.cloud.automl.v1beta1.Client.GetTableSpec",
621 "parameters": [
622 {
623 "type": "context.Context",
624 "name": "ctx"
625 },
626 {
627 "type": "automlpb.GetTableSpecRequest",
628 "name": "req"
629 },
630 {
631 "type": "...gax.CallOption",
632 "name": "opts"
633 }
634 ],
635 "resultType": "*automlpb.TableSpec",
636 "client": {
637 "shortName": "Client",
638 "fullName": "google.cloud.automl.v1beta1.Client"
639 },
640 "method": {
641 "shortName": "GetTableSpec",
642 "fullName": "google.cloud.automl.v1beta1.AutoMl.GetTableSpec",
643 "service": {
644 "shortName": "AutoMl",
645 "fullName": "google.cloud.automl.v1beta1.AutoMl"
646 }
647 }
648 },
649 "origin": "API_DEFINITION",
650 "segments": [
651 {
652 "start": 18,
653 "end": 53,
654 "type": "FULL"
655 }
656 ]
657 },
658 {
659 "regionTag": "automl_v1beta1_generated_AutoMl_ImportData_sync",
660 "title": "automl ImportData Sample",
661 "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.v1beta1.InputConfig.params]\nparameter must be explicitly set.\nReturns an empty response in the\n[response][google.longrunning.Operation.response] field when it completes.",
662 "file": "Client/ImportData/main.go",
663 "language": "GO",
664 "clientMethod": {
665 "shortName": "ImportData",
666 "fullName": "google.cloud.automl.v1beta1.Client.ImportData",
667 "parameters": [
668 {
669 "type": "context.Context",
670 "name": "ctx"
671 },
672 {
673 "type": "automlpb.ImportDataRequest",
674 "name": "req"
675 },
676 {
677 "type": "...gax.CallOption",
678 "name": "opts"
679 }
680 ],
681 "resultType": "ImportDataOperation",
682 "client": {
683 "shortName": "Client",
684 "fullName": "google.cloud.automl.v1beta1.Client"
685 },
686 "method": {
687 "shortName": "ImportData",
688 "fullName": "google.cloud.automl.v1beta1.AutoMl.ImportData",
689 "service": {
690 "shortName": "AutoMl",
691 "fullName": "google.cloud.automl.v1beta1.AutoMl"
692 }
693 }
694 },
695 "origin": "API_DEFINITION",
696 "segments": [
697 {
698 "start": 18,
699 "end": 56,
700 "type": "FULL"
701 }
702 ]
703 },
704 {
705 "regionTag": "automl_v1beta1_generated_AutoMl_ListColumnSpecs_sync",
706 "title": "automl ListColumnSpecs Sample",
707 "description": "ListColumnSpecs lists column specs in a table spec.",
708 "file": "Client/ListColumnSpecs/main.go",
709 "language": "GO",
710 "clientMethod": {
711 "shortName": "ListColumnSpecs",
712 "fullName": "google.cloud.automl.v1beta1.Client.ListColumnSpecs",
713 "parameters": [
714 {
715 "type": "context.Context",
716 "name": "ctx"
717 },
718 {
719 "type": "automlpb.ListColumnSpecsRequest",
720 "name": "req"
721 },
722 {
723 "type": "...gax.CallOption",
724 "name": "opts"
725 }
726 ],
727 "resultType": "ColumnSpecIterator",
728 "client": {
729 "shortName": "Client",
730 "fullName": "google.cloud.automl.v1beta1.Client"
731 },
732 "method": {
733 "shortName": "ListColumnSpecs",
734 "fullName": "google.cloud.automl.v1beta1.AutoMl.ListColumnSpecs",
735 "service": {
736 "shortName": "AutoMl",
737 "fullName": "google.cloud.automl.v1beta1.AutoMl"
738 }
739 }
740 },
741 "origin": "API_DEFINITION",
742 "segments": [
743 {
744 "start": 18,
745 "end": 66,
746 "type": "FULL"
747 }
748 ]
749 },
750 {
751 "regionTag": "automl_v1beta1_generated_AutoMl_ListDatasets_sync",
752 "title": "automl ListDatasets Sample",
753 "description": "ListDatasets lists datasets in a project.",
754 "file": "Client/ListDatasets/main.go",
755 "language": "GO",
756 "clientMethod": {
757 "shortName": "ListDatasets",
758 "fullName": "google.cloud.automl.v1beta1.Client.ListDatasets",
759 "parameters": [
760 {
761 "type": "context.Context",
762 "name": "ctx"
763 },
764 {
765 "type": "automlpb.ListDatasetsRequest",
766 "name": "req"
767 },
768 {
769 "type": "...gax.CallOption",
770 "name": "opts"
771 }
772 ],
773 "resultType": "DatasetIterator",
774 "client": {
775 "shortName": "Client",
776 "fullName": "google.cloud.automl.v1beta1.Client"
777 },
778 "method": {
779 "shortName": "ListDatasets",
780 "fullName": "google.cloud.automl.v1beta1.AutoMl.ListDatasets",
781 "service": {
782 "shortName": "AutoMl",
783 "fullName": "google.cloud.automl.v1beta1.AutoMl"
784 }
785 }
786 },
787 "origin": "API_DEFINITION",
788 "segments": [
789 {
790 "start": 18,
791 "end": 66,
792 "type": "FULL"
793 }
794 ]
795 },
796 {
797 "regionTag": "automl_v1beta1_generated_AutoMl_ListModelEvaluations_sync",
798 "title": "automl ListModelEvaluations Sample",
799 "description": "ListModelEvaluations lists model evaluations.",
800 "file": "Client/ListModelEvaluations/main.go",
801 "language": "GO",
802 "clientMethod": {
803 "shortName": "ListModelEvaluations",
804 "fullName": "google.cloud.automl.v1beta1.Client.ListModelEvaluations",
805 "parameters": [
806 {
807 "type": "context.Context",
808 "name": "ctx"
809 },
810 {
811 "type": "automlpb.ListModelEvaluationsRequest",
812 "name": "req"
813 },
814 {
815 "type": "...gax.CallOption",
816 "name": "opts"
817 }
818 ],
819 "resultType": "ModelEvaluationIterator",
820 "client": {
821 "shortName": "Client",
822 "fullName": "google.cloud.automl.v1beta1.Client"
823 },
824 "method": {
825 "shortName": "ListModelEvaluations",
826 "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModelEvaluations",
827 "service": {
828 "shortName": "AutoMl",
829 "fullName": "google.cloud.automl.v1beta1.AutoMl"
830 }
831 }
832 },
833 "origin": "API_DEFINITION",
834 "segments": [
835 {
836 "start": 18,
837 "end": 66,
838 "type": "FULL"
839 }
840 ]
841 },
842 {
843 "regionTag": "automl_v1beta1_generated_AutoMl_ListModels_sync",
844 "title": "automl ListModels Sample",
845 "description": "ListModels lists models.",
846 "file": "Client/ListModels/main.go",
847 "language": "GO",
848 "clientMethod": {
849 "shortName": "ListModels",
850 "fullName": "google.cloud.automl.v1beta1.Client.ListModels",
851 "parameters": [
852 {
853 "type": "context.Context",
854 "name": "ctx"
855 },
856 {
857 "type": "automlpb.ListModelsRequest",
858 "name": "req"
859 },
860 {
861 "type": "...gax.CallOption",
862 "name": "opts"
863 }
864 ],
865 "resultType": "ModelIterator",
866 "client": {
867 "shortName": "Client",
868 "fullName": "google.cloud.automl.v1beta1.Client"
869 },
870 "method": {
871 "shortName": "ListModels",
872 "fullName": "google.cloud.automl.v1beta1.AutoMl.ListModels",
873 "service": {
874 "shortName": "AutoMl",
875 "fullName": "google.cloud.automl.v1beta1.AutoMl"
876 }
877 }
878 },
879 "origin": "API_DEFINITION",
880 "segments": [
881 {
882 "start": 18,
883 "end": 66,
884 "type": "FULL"
885 }
886 ]
887 },
888 {
889 "regionTag": "automl_v1beta1_generated_AutoMl_ListTableSpecs_sync",
890 "title": "automl ListTableSpecs Sample",
891 "description": "ListTableSpecs lists table specs in a dataset.",
892 "file": "Client/ListTableSpecs/main.go",
893 "language": "GO",
894 "clientMethod": {
895 "shortName": "ListTableSpecs",
896 "fullName": "google.cloud.automl.v1beta1.Client.ListTableSpecs",
897 "parameters": [
898 {
899 "type": "context.Context",
900 "name": "ctx"
901 },
902 {
903 "type": "automlpb.ListTableSpecsRequest",
904 "name": "req"
905 },
906 {
907 "type": "...gax.CallOption",
908 "name": "opts"
909 }
910 ],
911 "resultType": "TableSpecIterator",
912 "client": {
913 "shortName": "Client",
914 "fullName": "google.cloud.automl.v1beta1.Client"
915 },
916 "method": {
917 "shortName": "ListTableSpecs",
918 "fullName": "google.cloud.automl.v1beta1.AutoMl.ListTableSpecs",
919 "service": {
920 "shortName": "AutoMl",
921 "fullName": "google.cloud.automl.v1beta1.AutoMl"
922 }
923 }
924 },
925 "origin": "API_DEFINITION",
926 "segments": [
927 {
928 "start": 18,
929 "end": 66,
930 "type": "FULL"
931 }
932 ]
933 },
934 {
935 "regionTag": "automl_v1beta1_generated_AutoMl_UndeployModel_sync",
936 "title": "automl UndeployModel Sample",
937 "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.",
938 "file": "Client/UndeployModel/main.go",
939 "language": "GO",
940 "clientMethod": {
941 "shortName": "UndeployModel",
942 "fullName": "google.cloud.automl.v1beta1.Client.UndeployModel",
943 "parameters": [
944 {
945 "type": "context.Context",
946 "name": "ctx"
947 },
948 {
949 "type": "automlpb.UndeployModelRequest",
950 "name": "req"
951 },
952 {
953 "type": "...gax.CallOption",
954 "name": "opts"
955 }
956 ],
957 "resultType": "UndeployModelOperation",
958 "client": {
959 "shortName": "Client",
960 "fullName": "google.cloud.automl.v1beta1.Client"
961 },
962 "method": {
963 "shortName": "UndeployModel",
964 "fullName": "google.cloud.automl.v1beta1.AutoMl.UndeployModel",
965 "service": {
966 "shortName": "AutoMl",
967 "fullName": "google.cloud.automl.v1beta1.AutoMl"
968 }
969 }
970 },
971 "origin": "API_DEFINITION",
972 "segments": [
973 {
974 "start": 18,
975 "end": 56,
976 "type": "FULL"
977 }
978 ]
979 },
980 {
981 "regionTag": "automl_v1beta1_generated_AutoMl_UpdateColumnSpec_sync",
982 "title": "automl UpdateColumnSpec Sample",
983 "description": "UpdateColumnSpec updates a column spec.",
984 "file": "Client/UpdateColumnSpec/main.go",
985 "language": "GO",
986 "clientMethod": {
987 "shortName": "UpdateColumnSpec",
988 "fullName": "google.cloud.automl.v1beta1.Client.UpdateColumnSpec",
989 "parameters": [
990 {
991 "type": "context.Context",
992 "name": "ctx"
993 },
994 {
995 "type": "automlpb.UpdateColumnSpecRequest",
996 "name": "req"
997 },
998 {
999 "type": "...gax.CallOption",
1000 "name": "opts"
1001 }
1002 ],
1003 "resultType": "*automlpb.ColumnSpec",
1004 "client": {
1005 "shortName": "Client",
1006 "fullName": "google.cloud.automl.v1beta1.Client"
1007 },
1008 "method": {
1009 "shortName": "UpdateColumnSpec",
1010 "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateColumnSpec",
1011 "service": {
1012 "shortName": "AutoMl",
1013 "fullName": "google.cloud.automl.v1beta1.AutoMl"
1014 }
1015 }
1016 },
1017 "origin": "API_DEFINITION",
1018 "segments": [
1019 {
1020 "start": 18,
1021 "end": 53,
1022 "type": "FULL"
1023 }
1024 ]
1025 },
1026 {
1027 "regionTag": "automl_v1beta1_generated_AutoMl_UpdateDataset_sync",
1028 "title": "automl UpdateDataset Sample",
1029 "description": "UpdateDataset updates a dataset.",
1030 "file": "Client/UpdateDataset/main.go",
1031 "language": "GO",
1032 "clientMethod": {
1033 "shortName": "UpdateDataset",
1034 "fullName": "google.cloud.automl.v1beta1.Client.UpdateDataset",
1035 "parameters": [
1036 {
1037 "type": "context.Context",
1038 "name": "ctx"
1039 },
1040 {
1041 "type": "automlpb.UpdateDatasetRequest",
1042 "name": "req"
1043 },
1044 {
1045 "type": "...gax.CallOption",
1046 "name": "opts"
1047 }
1048 ],
1049 "resultType": "*automlpb.Dataset",
1050 "client": {
1051 "shortName": "Client",
1052 "fullName": "google.cloud.automl.v1beta1.Client"
1053 },
1054 "method": {
1055 "shortName": "UpdateDataset",
1056 "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateDataset",
1057 "service": {
1058 "shortName": "AutoMl",
1059 "fullName": "google.cloud.automl.v1beta1.AutoMl"
1060 }
1061 }
1062 },
1063 "origin": "API_DEFINITION",
1064 "segments": [
1065 {
1066 "start": 18,
1067 "end": 53,
1068 "type": "FULL"
1069 }
1070 ]
1071 },
1072 {
1073 "regionTag": "automl_v1beta1_generated_AutoMl_UpdateTableSpec_sync",
1074 "title": "automl UpdateTableSpec Sample",
1075 "description": "UpdateTableSpec updates a table spec.",
1076 "file": "Client/UpdateTableSpec/main.go",
1077 "language": "GO",
1078 "clientMethod": {
1079 "shortName": "UpdateTableSpec",
1080 "fullName": "google.cloud.automl.v1beta1.Client.UpdateTableSpec",
1081 "parameters": [
1082 {
1083 "type": "context.Context",
1084 "name": "ctx"
1085 },
1086 {
1087 "type": "automlpb.UpdateTableSpecRequest",
1088 "name": "req"
1089 },
1090 {
1091 "type": "...gax.CallOption",
1092 "name": "opts"
1093 }
1094 ],
1095 "resultType": "*automlpb.TableSpec",
1096 "client": {
1097 "shortName": "Client",
1098 "fullName": "google.cloud.automl.v1beta1.Client"
1099 },
1100 "method": {
1101 "shortName": "UpdateTableSpec",
1102 "fullName": "google.cloud.automl.v1beta1.AutoMl.UpdateTableSpec",
1103 "service": {
1104 "shortName": "AutoMl",
1105 "fullName": "google.cloud.automl.v1beta1.AutoMl"
1106 }
1107 }
1108 },
1109 "origin": "API_DEFINITION",
1110 "segments": [
1111 {
1112 "start": 18,
1113 "end": 53,
1114 "type": "FULL"
1115 }
1116 ]
1117 },
1118 {
1119 "regionTag": "automl_v1beta1_generated_PredictionService_BatchPredict_sync",
1120 "title": "automl BatchPredict Sample",
1121 "description": "BatchPredict perform a batch prediction. Unlike the online [Predict][google.cloud.automl.v1beta1.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.v1beta1.BatchPredictResult] is returned in\nthe [response][google.longrunning.Operation.response] field.\nAvailable for following ML problems: \n* Image Classification\n* Image Object Detection\n* Video Classification\n* Video Object Tracking * Text Extraction\n* Tables",
1122 "file": "PredictionClient/BatchPredict/main.go",
1123 "language": "GO",
1124 "clientMethod": {
1125 "shortName": "BatchPredict",
1126 "fullName": "google.cloud.automl.v1beta1.PredictionClient.BatchPredict",
1127 "parameters": [
1128 {
1129 "type": "context.Context",
1130 "name": "ctx"
1131 },
1132 {
1133 "type": "automlpb.BatchPredictRequest",
1134 "name": "req"
1135 },
1136 {
1137 "type": "...gax.CallOption",
1138 "name": "opts"
1139 }
1140 ],
1141 "resultType": "BatchPredictOperation",
1142 "client": {
1143 "shortName": "PredictionClient",
1144 "fullName": "google.cloud.automl.v1beta1.PredictionClient"
1145 },
1146 "method": {
1147 "shortName": "BatchPredict",
1148 "fullName": "google.cloud.automl.v1beta1.PredictionService.BatchPredict",
1149 "service": {
1150 "shortName": "PredictionService",
1151 "fullName": "google.cloud.automl.v1beta1.PredictionService"
1152 }
1153 }
1154 },
1155 "origin": "API_DEFINITION",
1156 "segments": [
1157 {
1158 "start": 18,
1159 "end": 58,
1160 "type": "FULL"
1161 }
1162 ]
1163 },
1164 {
1165 "regionTag": "automl_v1beta1_generated_PredictionService_Predict_sync",
1166 "title": "automl Predict Sample",
1167 "description": "Predict perform an online prediction. The prediction result will be directly\nreturned in the response.\nAvailable for following ML problems, and their expected request payloads: \n* Image Classification - Image in .JPEG, .GIF or .PNG format, image_bytes\nup to 30MB.\n* Image Object Detection - Image in .JPEG, .GIF or .PNG format, image_bytes\nup to 30MB.\n* Text Classification - TextSnippet, content up to 60,000 characters,\nUTF-8 encoded.\n* Text Extraction - TextSnippet, content up to 30,000 characters,\nUTF-8 NFC encoded.\n* Translation - TextSnippet, content up to 25,000 characters, UTF-8\nencoded.\n* Tables - Row, with column values matching the columns of the model,\nup to 5MB. Not available for FORECASTING\n\n[prediction_type][google.cloud.automl.v1beta1.TablesModelMetadata.prediction_type].\n* Text Sentiment - TextSnippet, content up 500 characters, UTF-8\nencoded.",
1168 "file": "PredictionClient/Predict/main.go",
1169 "language": "GO",
1170 "clientMethod": {
1171 "shortName": "Predict",
1172 "fullName": "google.cloud.automl.v1beta1.PredictionClient.Predict",
1173 "parameters": [
1174 {
1175 "type": "context.Context",
1176 "name": "ctx"
1177 },
1178 {
1179 "type": "automlpb.PredictRequest",
1180 "name": "req"
1181 },
1182 {
1183 "type": "...gax.CallOption",
1184 "name": "opts"
1185 }
1186 ],
1187 "resultType": "*automlpb.PredictResponse",
1188 "client": {
1189 "shortName": "PredictionClient",
1190 "fullName": "google.cloud.automl.v1beta1.PredictionClient"
1191 },
1192 "method": {
1193 "shortName": "Predict",
1194 "fullName": "google.cloud.automl.v1beta1.PredictionService.Predict",
1195 "service": {
1196 "shortName": "PredictionService",
1197 "fullName": "google.cloud.automl.v1beta1.PredictionService"
1198 }
1199 }
1200 },
1201 "origin": "API_DEFINITION",
1202 "segments": [
1203 {
1204 "start": 18,
1205 "end": 53,
1206 "type": "FULL"
1207 }
1208 ]
1209 }
1210 ]
1211 }