/
pulumiTypes.go
3934 lines (3194 loc) · 254 KB
/
pulumiTypes.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Code generated by the Pulumi SDK Generator DO NOT EDIT.
// *** WARNING: Do not edit by hand unless you're certain you know what you are doing! ***
package v1beta1
import (
"context"
"reflect"
"github.com/pulumi/pulumi-google-native/sdk/go/google/internal"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
var _ = internal.GetEnvOrDefault
// Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`.
type GoogleCloudDatalabelingV1beta1AnnotationSpec struct {
// Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
Description *string `pulumi:"description"`
// The display name of the AnnotationSpec. Maximum of 64 characters.
DisplayName string `pulumi:"displayName"`
}
// GoogleCloudDatalabelingV1beta1AnnotationSpecInput is an input type that accepts GoogleCloudDatalabelingV1beta1AnnotationSpecArgs and GoogleCloudDatalabelingV1beta1AnnotationSpecOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1AnnotationSpecInput` via:
//
// GoogleCloudDatalabelingV1beta1AnnotationSpecArgs{...}
type GoogleCloudDatalabelingV1beta1AnnotationSpecInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1AnnotationSpecOutput() GoogleCloudDatalabelingV1beta1AnnotationSpecOutput
ToGoogleCloudDatalabelingV1beta1AnnotationSpecOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1AnnotationSpecOutput
}
// Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`.
type GoogleCloudDatalabelingV1beta1AnnotationSpecArgs struct {
// Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
Description pulumi.StringPtrInput `pulumi:"description"`
// The display name of the AnnotationSpec. Maximum of 64 characters.
DisplayName pulumi.StringInput `pulumi:"displayName"`
}
func (GoogleCloudDatalabelingV1beta1AnnotationSpecArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1AnnotationSpec)(nil)).Elem()
}
func (i GoogleCloudDatalabelingV1beta1AnnotationSpecArgs) ToGoogleCloudDatalabelingV1beta1AnnotationSpecOutput() GoogleCloudDatalabelingV1beta1AnnotationSpecOutput {
return i.ToGoogleCloudDatalabelingV1beta1AnnotationSpecOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1AnnotationSpecArgs) ToGoogleCloudDatalabelingV1beta1AnnotationSpecOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1AnnotationSpecOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1AnnotationSpecOutput)
}
// GoogleCloudDatalabelingV1beta1AnnotationSpecArrayInput is an input type that accepts GoogleCloudDatalabelingV1beta1AnnotationSpecArray and GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1AnnotationSpecArrayInput` via:
//
// GoogleCloudDatalabelingV1beta1AnnotationSpecArray{ GoogleCloudDatalabelingV1beta1AnnotationSpecArgs{...} }
type GoogleCloudDatalabelingV1beta1AnnotationSpecArrayInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput() GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput
ToGoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput
}
type GoogleCloudDatalabelingV1beta1AnnotationSpecArray []GoogleCloudDatalabelingV1beta1AnnotationSpecInput
func (GoogleCloudDatalabelingV1beta1AnnotationSpecArray) ElementType() reflect.Type {
return reflect.TypeOf((*[]GoogleCloudDatalabelingV1beta1AnnotationSpec)(nil)).Elem()
}
func (i GoogleCloudDatalabelingV1beta1AnnotationSpecArray) ToGoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput() GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput {
return i.ToGoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1AnnotationSpecArray) ToGoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput)
}
// Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`.
type GoogleCloudDatalabelingV1beta1AnnotationSpecOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1AnnotationSpecOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1AnnotationSpec)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecOutput) ToGoogleCloudDatalabelingV1beta1AnnotationSpecOutput() GoogleCloudDatalabelingV1beta1AnnotationSpecOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecOutput) ToGoogleCloudDatalabelingV1beta1AnnotationSpecOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1AnnotationSpecOutput {
return o
}
// Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecOutput) Description() pulumi.StringPtrOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1AnnotationSpec) *string { return v.Description }).(pulumi.StringPtrOutput)
}
// The display name of the AnnotationSpec. Maximum of 64 characters.
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1AnnotationSpec) string { return v.DisplayName }).(pulumi.StringOutput)
}
type GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GoogleCloudDatalabelingV1beta1AnnotationSpec)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput) ToGoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput() GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput) ToGoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecArrayOutput) Index(i pulumi.IntInput) GoogleCloudDatalabelingV1beta1AnnotationSpecOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GoogleCloudDatalabelingV1beta1AnnotationSpec {
return vs[0].([]GoogleCloudDatalabelingV1beta1AnnotationSpec)[vs[1].(int)]
}).(GoogleCloudDatalabelingV1beta1AnnotationSpecOutput)
}
// Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`.
type GoogleCloudDatalabelingV1beta1AnnotationSpecResponse struct {
// Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
Description string `pulumi:"description"`
// The display name of the AnnotationSpec. Maximum of 64 characters.
DisplayName string `pulumi:"displayName"`
// This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values.
Index int `pulumi:"index"`
}
// Container of information related to one possible annotation that can be used in a labeling task. For example, an image classification task where images are labeled as `dog` or `cat` must reference an AnnotationSpec for `dog` and an AnnotationSpec for `cat`.
type GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1AnnotationSpecResponse)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput) ToGoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput() GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput) ToGoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput {
return o
}
// Optional. User-provided description of the annotation specification. The description can be up to 10,000 characters long.
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput) Description() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1AnnotationSpecResponse) string { return v.Description }).(pulumi.StringOutput)
}
// The display name of the AnnotationSpec. Maximum of 64 characters.
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput) DisplayName() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1AnnotationSpecResponse) string { return v.DisplayName }).(pulumi.StringOutput)
}
// This is the integer index of the AnnotationSpec. The index for the whole AnnotationSpecSet is sequential starting from 0. For example, an AnnotationSpecSet with classes `dog` and `cat`, might contain one AnnotationSpec with `{ display_name: "dog", index: 0 }` and one AnnotationSpec with `{ display_name: "cat", index: 1 }`. This is especially useful for model training as it encodes the string labels into numeric values.
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput) Index() pulumi.IntOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1AnnotationSpecResponse) int { return v.Index }).(pulumi.IntOutput)
}
type GoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GoogleCloudDatalabelingV1beta1AnnotationSpecResponse)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutput) ToGoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutput() GoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutput) ToGoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AnnotationSpecResponseArrayOutput) Index(i pulumi.IntInput) GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GoogleCloudDatalabelingV1beta1AnnotationSpecResponse {
return vs[0].([]GoogleCloudDatalabelingV1beta1AnnotationSpecResponse)[vs[1].(int)]
}).(GoogleCloudDatalabelingV1beta1AnnotationSpecResponseOutput)
}
// Records a failed evaluation job run.
type GoogleCloudDatalabelingV1beta1AttemptResponse struct {
AttemptTime string `pulumi:"attemptTime"`
// Details of errors that occurred.
PartialFailures []GoogleRpcStatusResponse `pulumi:"partialFailures"`
}
// Records a failed evaluation job run.
type GoogleCloudDatalabelingV1beta1AttemptResponseOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1AttemptResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1AttemptResponse)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1AttemptResponseOutput) ToGoogleCloudDatalabelingV1beta1AttemptResponseOutput() GoogleCloudDatalabelingV1beta1AttemptResponseOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AttemptResponseOutput) ToGoogleCloudDatalabelingV1beta1AttemptResponseOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1AttemptResponseOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AttemptResponseOutput) AttemptTime() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1AttemptResponse) string { return v.AttemptTime }).(pulumi.StringOutput)
}
// Details of errors that occurred.
func (o GoogleCloudDatalabelingV1beta1AttemptResponseOutput) PartialFailures() GoogleRpcStatusResponseArrayOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1AttemptResponse) []GoogleRpcStatusResponse {
return v.PartialFailures
}).(GoogleRpcStatusResponseArrayOutput)
}
type GoogleCloudDatalabelingV1beta1AttemptResponseArrayOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1AttemptResponseArrayOutput) ElementType() reflect.Type {
return reflect.TypeOf((*[]GoogleCloudDatalabelingV1beta1AttemptResponse)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1AttemptResponseArrayOutput) ToGoogleCloudDatalabelingV1beta1AttemptResponseArrayOutput() GoogleCloudDatalabelingV1beta1AttemptResponseArrayOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AttemptResponseArrayOutput) ToGoogleCloudDatalabelingV1beta1AttemptResponseArrayOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1AttemptResponseArrayOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1AttemptResponseArrayOutput) Index(i pulumi.IntInput) GoogleCloudDatalabelingV1beta1AttemptResponseOutput {
return pulumi.All(o, i).ApplyT(func(vs []interface{}) GoogleCloudDatalabelingV1beta1AttemptResponse {
return vs[0].([]GoogleCloudDatalabelingV1beta1AttemptResponse)[vs[1].(int)]
}).(GoogleCloudDatalabelingV1beta1AttemptResponseOutput)
}
// The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version.
type GoogleCloudDatalabelingV1beta1BigQuerySource struct {
// BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: "bq://{your_project_id}/ {your_dataset_name}/{your_table_name}" [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
InputUri string `pulumi:"inputUri"`
}
// GoogleCloudDatalabelingV1beta1BigQuerySourceInput is an input type that accepts GoogleCloudDatalabelingV1beta1BigQuerySourceArgs and GoogleCloudDatalabelingV1beta1BigQuerySourceOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1BigQuerySourceInput` via:
//
// GoogleCloudDatalabelingV1beta1BigQuerySourceArgs{...}
type GoogleCloudDatalabelingV1beta1BigQuerySourceInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1BigQuerySourceOutput() GoogleCloudDatalabelingV1beta1BigQuerySourceOutput
ToGoogleCloudDatalabelingV1beta1BigQuerySourceOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourceOutput
}
// The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version.
type GoogleCloudDatalabelingV1beta1BigQuerySourceArgs struct {
// BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: "bq://{your_project_id}/ {your_dataset_name}/{your_table_name}" [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
InputUri pulumi.StringInput `pulumi:"inputUri"`
}
func (GoogleCloudDatalabelingV1beta1BigQuerySourceArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BigQuerySource)(nil)).Elem()
}
func (i GoogleCloudDatalabelingV1beta1BigQuerySourceArgs) ToGoogleCloudDatalabelingV1beta1BigQuerySourceOutput() GoogleCloudDatalabelingV1beta1BigQuerySourceOutput {
return i.ToGoogleCloudDatalabelingV1beta1BigQuerySourceOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1BigQuerySourceArgs) ToGoogleCloudDatalabelingV1beta1BigQuerySourceOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourceOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BigQuerySourceOutput)
}
func (i GoogleCloudDatalabelingV1beta1BigQuerySourceArgs) ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput() GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1BigQuerySourceArgs) ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BigQuerySourceOutput).ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(ctx)
}
// GoogleCloudDatalabelingV1beta1BigQuerySourcePtrInput is an input type that accepts GoogleCloudDatalabelingV1beta1BigQuerySourceArgs, GoogleCloudDatalabelingV1beta1BigQuerySourcePtr and GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1BigQuerySourcePtrInput` via:
//
// GoogleCloudDatalabelingV1beta1BigQuerySourceArgs{...}
//
// or:
//
// nil
type GoogleCloudDatalabelingV1beta1BigQuerySourcePtrInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput() GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput
ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput
}
type googleCloudDatalabelingV1beta1BigQuerySourcePtrType GoogleCloudDatalabelingV1beta1BigQuerySourceArgs
func GoogleCloudDatalabelingV1beta1BigQuerySourcePtr(v *GoogleCloudDatalabelingV1beta1BigQuerySourceArgs) GoogleCloudDatalabelingV1beta1BigQuerySourcePtrInput {
return (*googleCloudDatalabelingV1beta1BigQuerySourcePtrType)(v)
}
func (*googleCloudDatalabelingV1beta1BigQuerySourcePtrType) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1BigQuerySource)(nil)).Elem()
}
func (i *googleCloudDatalabelingV1beta1BigQuerySourcePtrType) ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput() GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(context.Background())
}
func (i *googleCloudDatalabelingV1beta1BigQuerySourcePtrType) ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput)
}
// The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version.
type GoogleCloudDatalabelingV1beta1BigQuerySourceOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BigQuerySourceOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BigQuerySource)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourceOutput) ToGoogleCloudDatalabelingV1beta1BigQuerySourceOutput() GoogleCloudDatalabelingV1beta1BigQuerySourceOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourceOutput) ToGoogleCloudDatalabelingV1beta1BigQuerySourceOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourceOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourceOutput) ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput() GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput {
return o.ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(context.Background())
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourceOutput) ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudDatalabelingV1beta1BigQuerySource) *GoogleCloudDatalabelingV1beta1BigQuerySource {
return &v
}).(GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput)
}
// BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: "bq://{your_project_id}/ {your_dataset_name}/{your_table_name}" [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
func (o GoogleCloudDatalabelingV1beta1BigQuerySourceOutput) InputUri() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1BigQuerySource) string { return v.InputUri }).(pulumi.StringOutput)
}
type GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1BigQuerySource)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput) ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput() GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput) ToGoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput) Elem() GoogleCloudDatalabelingV1beta1BigQuerySourceOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1BigQuerySource) GoogleCloudDatalabelingV1beta1BigQuerySource {
if v != nil {
return *v
}
var ret GoogleCloudDatalabelingV1beta1BigQuerySource
return ret
}).(GoogleCloudDatalabelingV1beta1BigQuerySourceOutput)
}
// BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: "bq://{your_project_id}/ {your_dataset_name}/{your_table_name}" [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
func (o GoogleCloudDatalabelingV1beta1BigQuerySourcePtrOutput) InputUri() pulumi.StringPtrOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1BigQuerySource) *string {
if v == nil {
return nil
}
return &v.InputUri
}).(pulumi.StringPtrOutput)
}
// The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version.
type GoogleCloudDatalabelingV1beta1BigQuerySourceResponse struct {
// BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: "bq://{your_project_id}/ {your_dataset_name}/{your_table_name}" [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
InputUri string `pulumi:"inputUri"`
}
// The BigQuery location for input data. If used in an EvaluationJob, this is where the service saves the prediction input and output sampled from the model version.
type GoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BigQuerySourceResponse)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutput) ToGoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutput() GoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutput) ToGoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutput {
return o
}
// BigQuery URI to a table, up to 2,000 characters long. If you specify the URI of a table that does not exist, Data Labeling Service creates a table at the URI with the correct schema when you create your EvaluationJob. If you specify the URI of a table that already exists, it must have the [correct schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema). Provide the table URI in the following format: "bq://{your_project_id}/ {your_dataset_name}/{your_table_name}" [Learn more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
func (o GoogleCloudDatalabelingV1beta1BigQuerySourceResponseOutput) InputUri() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1BigQuerySourceResponse) string { return v.InputUri }).(pulumi.StringOutput)
}
// Options regarding evaluation between bounding boxes.
type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions struct {
// Minimum [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) required for 2 bounding boxes to be considered a match. This must be a number between 0 and 1.
IouThreshold *float64 `pulumi:"iouThreshold"`
}
// GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsInput is an input type that accepts GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs and GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsInput` via:
//
// GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs{...}
type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput
ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput
}
// Options regarding evaluation between bounding boxes.
type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs struct {
// Minimum [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) required for 2 bounding boxes to be considered a match. This must be a number between 0 and 1.
IouThreshold pulumi.Float64PtrInput `pulumi:"iouThreshold"`
}
func (GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions)(nil)).Elem()
}
func (i GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput {
return i.ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput)
}
func (i GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput).ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(ctx)
}
// GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrInput is an input type that accepts GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs, GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtr and GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrInput` via:
//
// GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs{...}
//
// or:
//
// nil
type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput
ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput
}
type googleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrType GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs
func GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtr(v *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsArgs) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrInput {
return (*googleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrType)(v)
}
func (*googleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions)(nil)).Elem()
}
func (i *googleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrType) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(context.Background())
}
func (i *googleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrType) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput)
}
// Options regarding evaluation between bounding boxes.
type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput {
return o.ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(context.Background())
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions {
return &v
}).(GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput)
}
// Minimum [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) required for 2 bounding boxes to be considered a match. This must be a number between 0 and 1.
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput) IouThreshold() pulumi.Float64PtrOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) *float64 { return v.IouThreshold }).(pulumi.Float64PtrOutput)
}
type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput) Elem() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions {
if v != nil {
return *v
}
var ret GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions
return ret
}).(GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsOutput)
}
// Minimum [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) required for 2 bounding boxes to be considered a match. This must be a number between 0 and 1.
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsPtrOutput) IouThreshold() pulumi.Float64PtrOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) *float64 {
if v == nil {
return nil
}
return v.IouThreshold
}).(pulumi.Float64PtrOutput)
}
// Options regarding evaluation between bounding boxes.
type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponse struct {
// Minimum [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) required for 2 bounding boxes to be considered a match. This must be a number between 0 and 1.
IouThreshold float64 `pulumi:"iouThreshold"`
}
// Options regarding evaluation between bounding boxes.
type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponse)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutput) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutput() GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutput) ToGoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutput {
return o
}
// Minimum [intersection-over-union (IOU)](/vision/automl/object-detection/docs/evaluate#intersection-over-union) required for 2 bounding boxes to be considered a match. This must be a number between 0 and 1.
func (o GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponseOutput) IouThreshold() pulumi.Float64Output {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptionsResponse) float64 {
return v.IouThreshold
}).(pulumi.Float64Output)
}
// Config for image bounding poly (and bounding box) human labeling task.
type GoogleCloudDatalabelingV1beta1BoundingPolyConfig struct {
// Annotation spec set resource name.
AnnotationSpecSet string `pulumi:"annotationSpecSet"`
// Optional. Instruction message showed on contributors UI.
InstructionMessage *string `pulumi:"instructionMessage"`
}
// GoogleCloudDatalabelingV1beta1BoundingPolyConfigInput is an input type that accepts GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs and GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1BoundingPolyConfigInput` via:
//
// GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs{...}
type GoogleCloudDatalabelingV1beta1BoundingPolyConfigInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput
ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput
}
// Config for image bounding poly (and bounding box) human labeling task.
type GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs struct {
// Annotation spec set resource name.
AnnotationSpecSet pulumi.StringInput `pulumi:"annotationSpecSet"`
// Optional. Instruction message showed on contributors UI.
InstructionMessage pulumi.StringPtrInput `pulumi:"instructionMessage"`
}
func (GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BoundingPolyConfig)(nil)).Elem()
}
func (i GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput {
return i.ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput)
}
func (i GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput).ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(ctx)
}
// GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrInput is an input type that accepts GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs, GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtr and GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrInput` via:
//
// GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs{...}
//
// or:
//
// nil
type GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput
ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput
}
type googleCloudDatalabelingV1beta1BoundingPolyConfigPtrType GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs
func GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtr(v *GoogleCloudDatalabelingV1beta1BoundingPolyConfigArgs) GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrInput {
return (*googleCloudDatalabelingV1beta1BoundingPolyConfigPtrType)(v)
}
func (*googleCloudDatalabelingV1beta1BoundingPolyConfigPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1BoundingPolyConfig)(nil)).Elem()
}
func (i *googleCloudDatalabelingV1beta1BoundingPolyConfigPtrType) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(context.Background())
}
func (i *googleCloudDatalabelingV1beta1BoundingPolyConfigPtrType) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput)
}
// Config for image bounding poly (and bounding box) human labeling task.
type GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BoundingPolyConfig)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput {
return o.ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(context.Background())
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudDatalabelingV1beta1BoundingPolyConfig) *GoogleCloudDatalabelingV1beta1BoundingPolyConfig {
return &v
}).(GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput)
}
// Annotation spec set resource name.
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput) AnnotationSpecSet() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1BoundingPolyConfig) string { return v.AnnotationSpecSet }).(pulumi.StringOutput)
}
// Optional. Instruction message showed on contributors UI.
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput) InstructionMessage() pulumi.StringPtrOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1BoundingPolyConfig) *string { return v.InstructionMessage }).(pulumi.StringPtrOutput)
}
type GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1BoundingPolyConfig)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput) Elem() GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1BoundingPolyConfig) GoogleCloudDatalabelingV1beta1BoundingPolyConfig {
if v != nil {
return *v
}
var ret GoogleCloudDatalabelingV1beta1BoundingPolyConfig
return ret
}).(GoogleCloudDatalabelingV1beta1BoundingPolyConfigOutput)
}
// Annotation spec set resource name.
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput) AnnotationSpecSet() pulumi.StringPtrOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1BoundingPolyConfig) *string {
if v == nil {
return nil
}
return &v.AnnotationSpecSet
}).(pulumi.StringPtrOutput)
}
// Optional. Instruction message showed on contributors UI.
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigPtrOutput) InstructionMessage() pulumi.StringPtrOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1BoundingPolyConfig) *string {
if v == nil {
return nil
}
return v.InstructionMessage
}).(pulumi.StringPtrOutput)
}
// Config for image bounding poly (and bounding box) human labeling task.
type GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponse struct {
// Annotation spec set resource name.
AnnotationSpecSet string `pulumi:"annotationSpecSet"`
// Optional. Instruction message showed on contributors UI.
InstructionMessage string `pulumi:"instructionMessage"`
}
// Config for image bounding poly (and bounding box) human labeling task.
type GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponse)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput() GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput) ToGoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput {
return o
}
// Annotation spec set resource name.
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput) AnnotationSpecSet() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponse) string { return v.AnnotationSpecSet }).(pulumi.StringOutput)
}
// Optional. Instruction message showed on contributors UI.
func (o GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponseOutput) InstructionMessage() pulumi.StringOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1BoundingPolyConfigResponse) string { return v.InstructionMessage }).(pulumi.StringOutput)
}
// Metadata for classification annotations.
type GoogleCloudDatalabelingV1beta1ClassificationMetadata struct {
// Whether the classification task is multi-label or not.
IsMultiLabel *bool `pulumi:"isMultiLabel"`
}
// GoogleCloudDatalabelingV1beta1ClassificationMetadataInput is an input type that accepts GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs and GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1ClassificationMetadataInput` via:
//
// GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs{...}
type GoogleCloudDatalabelingV1beta1ClassificationMetadataInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1ClassificationMetadataOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput
ToGoogleCloudDatalabelingV1beta1ClassificationMetadataOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput
}
// Metadata for classification annotations.
type GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs struct {
// Whether the classification task is multi-label or not.
IsMultiLabel pulumi.BoolPtrInput `pulumi:"isMultiLabel"`
}
func (GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1ClassificationMetadata)(nil)).Elem()
}
func (i GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput {
return i.ToGoogleCloudDatalabelingV1beta1ClassificationMetadataOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput)
}
func (i GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput).ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(ctx)
}
// GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrInput is an input type that accepts GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs, GoogleCloudDatalabelingV1beta1ClassificationMetadataPtr and GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrInput` via:
//
// GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs{...}
//
// or:
//
// nil
type GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput
ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput
}
type googleCloudDatalabelingV1beta1ClassificationMetadataPtrType GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs
func GoogleCloudDatalabelingV1beta1ClassificationMetadataPtr(v *GoogleCloudDatalabelingV1beta1ClassificationMetadataArgs) GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrInput {
return (*googleCloudDatalabelingV1beta1ClassificationMetadataPtrType)(v)
}
func (*googleCloudDatalabelingV1beta1ClassificationMetadataPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1ClassificationMetadata)(nil)).Elem()
}
func (i *googleCloudDatalabelingV1beta1ClassificationMetadataPtrType) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(context.Background())
}
func (i *googleCloudDatalabelingV1beta1ClassificationMetadataPtrType) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput)
}
// Metadata for classification annotations.
type GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1ClassificationMetadata)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput {
return o.ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(context.Background())
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput {
return o.ApplyTWithContext(ctx, func(_ context.Context, v GoogleCloudDatalabelingV1beta1ClassificationMetadata) *GoogleCloudDatalabelingV1beta1ClassificationMetadata {
return &v
}).(GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput)
}
// Whether the classification task is multi-label or not.
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput) IsMultiLabel() pulumi.BoolPtrOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1ClassificationMetadata) *bool { return v.IsMultiLabel }).(pulumi.BoolPtrOutput)
}
type GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1ClassificationMetadata)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput) Elem() GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1ClassificationMetadata) GoogleCloudDatalabelingV1beta1ClassificationMetadata {
if v != nil {
return *v
}
var ret GoogleCloudDatalabelingV1beta1ClassificationMetadata
return ret
}).(GoogleCloudDatalabelingV1beta1ClassificationMetadataOutput)
}
// Whether the classification task is multi-label or not.
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataPtrOutput) IsMultiLabel() pulumi.BoolPtrOutput {
return o.ApplyT(func(v *GoogleCloudDatalabelingV1beta1ClassificationMetadata) *bool {
if v == nil {
return nil
}
return v.IsMultiLabel
}).(pulumi.BoolPtrOutput)
}
// Metadata for classification annotations.
type GoogleCloudDatalabelingV1beta1ClassificationMetadataResponse struct {
// Whether the classification task is multi-label or not.
IsMultiLabel bool `pulumi:"isMultiLabel"`
}
// Metadata for classification annotations.
type GoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutput struct{ *pulumi.OutputState }
func (GoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutput) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1ClassificationMetadataResponse)(nil)).Elem()
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutput) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutput() GoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutput {
return o
}
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutput) ToGoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutput {
return o
}
// Whether the classification task is multi-label or not.
func (o GoogleCloudDatalabelingV1beta1ClassificationMetadataResponseOutput) IsMultiLabel() pulumi.BoolOutput {
return o.ApplyT(func(v GoogleCloudDatalabelingV1beta1ClassificationMetadataResponse) bool { return v.IsMultiLabel }).(pulumi.BoolOutput)
}
// Deprecated: this instruction format is not supported any more. Instruction from a CSV file.
type GoogleCloudDatalabelingV1beta1CsvInstruction struct {
// CSV file for the instruction. Only gcs path is allowed.
GcsFileUri *string `pulumi:"gcsFileUri"`
}
// GoogleCloudDatalabelingV1beta1CsvInstructionInput is an input type that accepts GoogleCloudDatalabelingV1beta1CsvInstructionArgs and GoogleCloudDatalabelingV1beta1CsvInstructionOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1CsvInstructionInput` via:
//
// GoogleCloudDatalabelingV1beta1CsvInstructionArgs{...}
type GoogleCloudDatalabelingV1beta1CsvInstructionInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1CsvInstructionOutput() GoogleCloudDatalabelingV1beta1CsvInstructionOutput
ToGoogleCloudDatalabelingV1beta1CsvInstructionOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1CsvInstructionOutput
}
// Deprecated: this instruction format is not supported any more. Instruction from a CSV file.
type GoogleCloudDatalabelingV1beta1CsvInstructionArgs struct {
// CSV file for the instruction. Only gcs path is allowed.
GcsFileUri pulumi.StringPtrInput `pulumi:"gcsFileUri"`
}
func (GoogleCloudDatalabelingV1beta1CsvInstructionArgs) ElementType() reflect.Type {
return reflect.TypeOf((*GoogleCloudDatalabelingV1beta1CsvInstruction)(nil)).Elem()
}
func (i GoogleCloudDatalabelingV1beta1CsvInstructionArgs) ToGoogleCloudDatalabelingV1beta1CsvInstructionOutput() GoogleCloudDatalabelingV1beta1CsvInstructionOutput {
return i.ToGoogleCloudDatalabelingV1beta1CsvInstructionOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1CsvInstructionArgs) ToGoogleCloudDatalabelingV1beta1CsvInstructionOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1CsvInstructionOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1CsvInstructionOutput)
}
func (i GoogleCloudDatalabelingV1beta1CsvInstructionArgs) ToGoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput() GoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1CsvInstructionPtrOutputWithContext(context.Background())
}
func (i GoogleCloudDatalabelingV1beta1CsvInstructionArgs) ToGoogleCloudDatalabelingV1beta1CsvInstructionPtrOutputWithContext(ctx context.Context) GoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput {
return pulumi.ToOutputWithContext(ctx, i).(GoogleCloudDatalabelingV1beta1CsvInstructionOutput).ToGoogleCloudDatalabelingV1beta1CsvInstructionPtrOutputWithContext(ctx)
}
// GoogleCloudDatalabelingV1beta1CsvInstructionPtrInput is an input type that accepts GoogleCloudDatalabelingV1beta1CsvInstructionArgs, GoogleCloudDatalabelingV1beta1CsvInstructionPtr and GoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput values.
// You can construct a concrete instance of `GoogleCloudDatalabelingV1beta1CsvInstructionPtrInput` via:
//
// GoogleCloudDatalabelingV1beta1CsvInstructionArgs{...}
//
// or:
//
// nil
type GoogleCloudDatalabelingV1beta1CsvInstructionPtrInput interface {
pulumi.Input
ToGoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput() GoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput
ToGoogleCloudDatalabelingV1beta1CsvInstructionPtrOutputWithContext(context.Context) GoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput
}
type googleCloudDatalabelingV1beta1CsvInstructionPtrType GoogleCloudDatalabelingV1beta1CsvInstructionArgs
func GoogleCloudDatalabelingV1beta1CsvInstructionPtr(v *GoogleCloudDatalabelingV1beta1CsvInstructionArgs) GoogleCloudDatalabelingV1beta1CsvInstructionPtrInput {
return (*googleCloudDatalabelingV1beta1CsvInstructionPtrType)(v)
}
func (*googleCloudDatalabelingV1beta1CsvInstructionPtrType) ElementType() reflect.Type {
return reflect.TypeOf((**GoogleCloudDatalabelingV1beta1CsvInstruction)(nil)).Elem()
}
func (i *googleCloudDatalabelingV1beta1CsvInstructionPtrType) ToGoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput() GoogleCloudDatalabelingV1beta1CsvInstructionPtrOutput {
return i.ToGoogleCloudDatalabelingV1beta1CsvInstructionPtrOutputWithContext(context.Background())
}