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 package datalabeling
52
53 import (
54 "bytes"
55 "context"
56 "encoding/json"
57 "errors"
58 "fmt"
59 "io"
60 "net/http"
61 "net/url"
62 "strconv"
63 "strings"
64
65 googleapi "google.golang.org/api/googleapi"
66 internal "google.golang.org/api/internal"
67 gensupport "google.golang.org/api/internal/gensupport"
68 option "google.golang.org/api/option"
69 internaloption "google.golang.org/api/option/internaloption"
70 htransport "google.golang.org/api/transport/http"
71 )
72
73
74
75 var _ = bytes.NewBuffer
76 var _ = strconv.Itoa
77 var _ = fmt.Sprintf
78 var _ = json.NewDecoder
79 var _ = io.Copy
80 var _ = url.Parse
81 var _ = gensupport.MarshalJSON
82 var _ = googleapi.Version
83 var _ = errors.New
84 var _ = strings.Replace
85 var _ = context.Canceled
86 var _ = internaloption.WithDefaultEndpoint
87 var _ = internal.Version
88
89 const apiId = "datalabeling:v1beta1"
90 const apiName = "datalabeling"
91 const apiVersion = "v1beta1"
92 const basePath = "https://datalabeling.googleapis.com/"
93 const basePathTemplate = "https://datalabeling.UNIVERSE_DOMAIN/"
94 const mtlsBasePath = "https://datalabeling.mtls.googleapis.com/"
95
96
97 const (
98
99
100 CloudPlatformScope = "https://www.googleapis.com/auth/cloud-platform"
101 )
102
103
104 func NewService(ctx context.Context, opts ...option.ClientOption) (*Service, error) {
105 scopesOption := internaloption.WithDefaultScopes(
106 "https://www.googleapis.com/auth/cloud-platform",
107 )
108
109 opts = append([]option.ClientOption{scopesOption}, opts...)
110 opts = append(opts, internaloption.WithDefaultEndpoint(basePath))
111 opts = append(opts, internaloption.WithDefaultEndpointTemplate(basePathTemplate))
112 opts = append(opts, internaloption.WithDefaultMTLSEndpoint(mtlsBasePath))
113 opts = append(opts, internaloption.EnableNewAuthLibrary())
114 client, endpoint, err := htransport.NewClient(ctx, opts...)
115 if err != nil {
116 return nil, err
117 }
118 s, err := New(client)
119 if err != nil {
120 return nil, err
121 }
122 if endpoint != "" {
123 s.BasePath = endpoint
124 }
125 return s, nil
126 }
127
128
129
130
131
132
133 func New(client *http.Client) (*Service, error) {
134 if client == nil {
135 return nil, errors.New("client is nil")
136 }
137 s := &Service{client: client, BasePath: basePath}
138 s.Projects = NewProjectsService(s)
139 return s, nil
140 }
141
142 type Service struct {
143 client *http.Client
144 BasePath string
145 UserAgent string
146
147 Projects *ProjectsService
148 }
149
150 func (s *Service) userAgent() string {
151 if s.UserAgent == "" {
152 return googleapi.UserAgent
153 }
154 return googleapi.UserAgent + " " + s.UserAgent
155 }
156
157 func NewProjectsService(s *Service) *ProjectsService {
158 rs := &ProjectsService{s: s}
159 rs.AnnotationSpecSets = NewProjectsAnnotationSpecSetsService(s)
160 rs.Datasets = NewProjectsDatasetsService(s)
161 rs.EvaluationJobs = NewProjectsEvaluationJobsService(s)
162 rs.Evaluations = NewProjectsEvaluationsService(s)
163 rs.Instructions = NewProjectsInstructionsService(s)
164 rs.Operations = NewProjectsOperationsService(s)
165 return rs
166 }
167
168 type ProjectsService struct {
169 s *Service
170
171 AnnotationSpecSets *ProjectsAnnotationSpecSetsService
172
173 Datasets *ProjectsDatasetsService
174
175 EvaluationJobs *ProjectsEvaluationJobsService
176
177 Evaluations *ProjectsEvaluationsService
178
179 Instructions *ProjectsInstructionsService
180
181 Operations *ProjectsOperationsService
182 }
183
184 func NewProjectsAnnotationSpecSetsService(s *Service) *ProjectsAnnotationSpecSetsService {
185 rs := &ProjectsAnnotationSpecSetsService{s: s}
186 return rs
187 }
188
189 type ProjectsAnnotationSpecSetsService struct {
190 s *Service
191 }
192
193 func NewProjectsDatasetsService(s *Service) *ProjectsDatasetsService {
194 rs := &ProjectsDatasetsService{s: s}
195 rs.AnnotatedDatasets = NewProjectsDatasetsAnnotatedDatasetsService(s)
196 rs.DataItems = NewProjectsDatasetsDataItemsService(s)
197 rs.Evaluations = NewProjectsDatasetsEvaluationsService(s)
198 rs.Image = NewProjectsDatasetsImageService(s)
199 rs.Text = NewProjectsDatasetsTextService(s)
200 rs.Video = NewProjectsDatasetsVideoService(s)
201 return rs
202 }
203
204 type ProjectsDatasetsService struct {
205 s *Service
206
207 AnnotatedDatasets *ProjectsDatasetsAnnotatedDatasetsService
208
209 DataItems *ProjectsDatasetsDataItemsService
210
211 Evaluations *ProjectsDatasetsEvaluationsService
212
213 Image *ProjectsDatasetsImageService
214
215 Text *ProjectsDatasetsTextService
216
217 Video *ProjectsDatasetsVideoService
218 }
219
220 func NewProjectsDatasetsAnnotatedDatasetsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsService {
221 rs := &ProjectsDatasetsAnnotatedDatasetsService{s: s}
222 rs.DataItems = NewProjectsDatasetsAnnotatedDatasetsDataItemsService(s)
223 rs.Examples = NewProjectsDatasetsAnnotatedDatasetsExamplesService(s)
224 rs.FeedbackThreads = NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService(s)
225 return rs
226 }
227
228 type ProjectsDatasetsAnnotatedDatasetsService struct {
229 s *Service
230
231 DataItems *ProjectsDatasetsAnnotatedDatasetsDataItemsService
232
233 Examples *ProjectsDatasetsAnnotatedDatasetsExamplesService
234
235 FeedbackThreads *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService
236 }
237
238 func NewProjectsDatasetsAnnotatedDatasetsDataItemsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsDataItemsService {
239 rs := &ProjectsDatasetsAnnotatedDatasetsDataItemsService{s: s}
240 return rs
241 }
242
243 type ProjectsDatasetsAnnotatedDatasetsDataItemsService struct {
244 s *Service
245 }
246
247 func NewProjectsDatasetsAnnotatedDatasetsExamplesService(s *Service) *ProjectsDatasetsAnnotatedDatasetsExamplesService {
248 rs := &ProjectsDatasetsAnnotatedDatasetsExamplesService{s: s}
249 return rs
250 }
251
252 type ProjectsDatasetsAnnotatedDatasetsExamplesService struct {
253 s *Service
254 }
255
256 func NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService(s *Service) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService {
257 rs := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService{s: s}
258 rs.FeedbackMessages = NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService(s)
259 return rs
260 }
261
262 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService struct {
263 s *Service
264
265 FeedbackMessages *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService
266 }
267
268 func NewProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService(s *Service) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService {
269 rs := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService{s: s}
270 return rs
271 }
272
273 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService struct {
274 s *Service
275 }
276
277 func NewProjectsDatasetsDataItemsService(s *Service) *ProjectsDatasetsDataItemsService {
278 rs := &ProjectsDatasetsDataItemsService{s: s}
279 return rs
280 }
281
282 type ProjectsDatasetsDataItemsService struct {
283 s *Service
284 }
285
286 func NewProjectsDatasetsEvaluationsService(s *Service) *ProjectsDatasetsEvaluationsService {
287 rs := &ProjectsDatasetsEvaluationsService{s: s}
288 rs.ExampleComparisons = NewProjectsDatasetsEvaluationsExampleComparisonsService(s)
289 return rs
290 }
291
292 type ProjectsDatasetsEvaluationsService struct {
293 s *Service
294
295 ExampleComparisons *ProjectsDatasetsEvaluationsExampleComparisonsService
296 }
297
298 func NewProjectsDatasetsEvaluationsExampleComparisonsService(s *Service) *ProjectsDatasetsEvaluationsExampleComparisonsService {
299 rs := &ProjectsDatasetsEvaluationsExampleComparisonsService{s: s}
300 return rs
301 }
302
303 type ProjectsDatasetsEvaluationsExampleComparisonsService struct {
304 s *Service
305 }
306
307 func NewProjectsDatasetsImageService(s *Service) *ProjectsDatasetsImageService {
308 rs := &ProjectsDatasetsImageService{s: s}
309 return rs
310 }
311
312 type ProjectsDatasetsImageService struct {
313 s *Service
314 }
315
316 func NewProjectsDatasetsTextService(s *Service) *ProjectsDatasetsTextService {
317 rs := &ProjectsDatasetsTextService{s: s}
318 return rs
319 }
320
321 type ProjectsDatasetsTextService struct {
322 s *Service
323 }
324
325 func NewProjectsDatasetsVideoService(s *Service) *ProjectsDatasetsVideoService {
326 rs := &ProjectsDatasetsVideoService{s: s}
327 return rs
328 }
329
330 type ProjectsDatasetsVideoService struct {
331 s *Service
332 }
333
334 func NewProjectsEvaluationJobsService(s *Service) *ProjectsEvaluationJobsService {
335 rs := &ProjectsEvaluationJobsService{s: s}
336 return rs
337 }
338
339 type ProjectsEvaluationJobsService struct {
340 s *Service
341 }
342
343 func NewProjectsEvaluationsService(s *Service) *ProjectsEvaluationsService {
344 rs := &ProjectsEvaluationsService{s: s}
345 return rs
346 }
347
348 type ProjectsEvaluationsService struct {
349 s *Service
350 }
351
352 func NewProjectsInstructionsService(s *Service) *ProjectsInstructionsService {
353 rs := &ProjectsInstructionsService{s: s}
354 return rs
355 }
356
357 type ProjectsInstructionsService struct {
358 s *Service
359 }
360
361 func NewProjectsOperationsService(s *Service) *ProjectsOperationsService {
362 rs := &ProjectsOperationsService{s: s}
363 return rs
364 }
365
366 type ProjectsOperationsService struct {
367 s *Service
368 }
369
370
371
372 type GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata struct {
373
374 CreateTime string `json:"createTime,omitempty"`
375
376
377 Instruction string `json:"instruction,omitempty"`
378
379
380
381 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
382
383
384
385
386
387 ForceSendFields []string `json:"-"`
388
389
390
391
392 NullFields []string `json:"-"`
393 }
394
395 func (s *GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) {
396 type NoMethod GoogleCloudDatalabelingV1alpha1CreateInstructionMetadata
397 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
398 }
399
400
401
402 type GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata struct {
403
404
405 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
406
407 CreateTime string `json:"createTime,omitempty"`
408
409
410 Dataset string `json:"dataset,omitempty"`
411
412
413
414 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
415
416
417
418
419
420 ForceSendFields []string `json:"-"`
421
422
423
424
425 NullFields []string `json:"-"`
426 }
427
428 func (s *GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) {
429 type NoMethod GoogleCloudDatalabelingV1alpha1ExportDataOperationMetadata
430 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
431 }
432
433
434
435 type GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse struct {
436
437
438 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
439
440 Dataset string `json:"dataset,omitempty"`
441
442 ExportCount int64 `json:"exportCount,omitempty"`
443
444 LabelStats *GoogleCloudDatalabelingV1alpha1LabelStats `json:"labelStats,omitempty"`
445
446 OutputConfig *GoogleCloudDatalabelingV1alpha1OutputConfig `json:"outputConfig,omitempty"`
447
448 TotalCount int64 `json:"totalCount,omitempty"`
449
450
451
452
453
454 ForceSendFields []string `json:"-"`
455
456
457
458
459 NullFields []string `json:"-"`
460 }
461
462 func (s *GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) {
463 type NoMethod GoogleCloudDatalabelingV1alpha1ExportDataOperationResponse
464 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
465 }
466
467
468
469 type GoogleCloudDatalabelingV1alpha1GcsDestination struct {
470
471
472 MimeType string `json:"mimeType,omitempty"`
473
474 OutputUri string `json:"outputUri,omitempty"`
475
476
477
478
479
480 ForceSendFields []string `json:"-"`
481
482
483
484
485 NullFields []string `json:"-"`
486 }
487
488 func (s *GoogleCloudDatalabelingV1alpha1GcsDestination) MarshalJSON() ([]byte, error) {
489 type NoMethod GoogleCloudDatalabelingV1alpha1GcsDestination
490 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
491 }
492
493
494
495 type GoogleCloudDatalabelingV1alpha1GcsFolderDestination struct {
496
497 OutputFolderUri string `json:"outputFolderUri,omitempty"`
498
499
500
501
502
503 ForceSendFields []string `json:"-"`
504
505
506
507
508 NullFields []string `json:"-"`
509 }
510
511 func (s *GoogleCloudDatalabelingV1alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) {
512 type NoMethod GoogleCloudDatalabelingV1alpha1GcsFolderDestination
513 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
514 }
515
516
517
518 type GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig struct {
519
520
521 AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"`
522
523
524 AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"`
525
526
527
528
529
530 ContributorEmails []string `json:"contributorEmails,omitempty"`
531
532 Instruction string `json:"instruction,omitempty"`
533
534
535
536 LabelGroup string `json:"labelGroup,omitempty"`
537
538
539
540
541 LanguageCode string `json:"languageCode,omitempty"`
542
543
544 QuestionDuration string `json:"questionDuration,omitempty"`
545
546
547
548
549 ReplicaCount int64 `json:"replicaCount,omitempty"`
550
551
552 UserEmailAddress string `json:"userEmailAddress,omitempty"`
553
554
555
556
557
558 ForceSendFields []string `json:"-"`
559
560
561
562
563 NullFields []string `json:"-"`
564 }
565
566 func (s *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) {
567 type NoMethod GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig
568 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
569 }
570
571
572
573 type GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata struct {
574
575 CreateTime string `json:"createTime,omitempty"`
576
577 Dataset string `json:"dataset,omitempty"`
578
579
580
581 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
582
583
584
585
586
587 ForceSendFields []string `json:"-"`
588
589
590
591
592 NullFields []string `json:"-"`
593 }
594
595 func (s *GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) {
596 type NoMethod GoogleCloudDatalabelingV1alpha1ImportDataOperationMetadata
597 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
598 }
599
600
601
602 type GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse struct {
603
604 Dataset string `json:"dataset,omitempty"`
605
606 ImportCount int64 `json:"importCount,omitempty"`
607
608 TotalCount int64 `json:"totalCount,omitempty"`
609
610
611
612
613
614 ForceSendFields []string `json:"-"`
615
616
617
618
619 NullFields []string `json:"-"`
620 }
621
622 func (s *GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) {
623 type NoMethod GoogleCloudDatalabelingV1alpha1ImportDataOperationResponse
624 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
625 }
626
627
628
629 type GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata struct {
630
631 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
632
633
634
635
636
637 ForceSendFields []string `json:"-"`
638
639
640
641
642 NullFields []string `json:"-"`
643 }
644
645 func (s *GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
646 type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata
647 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
648 }
649
650
651
652 type GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata struct {
653
654 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
655
656
657
658
659
660 ForceSendFields []string `json:"-"`
661
662
663
664
665 NullFields []string `json:"-"`
666 }
667
668 func (s *GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) {
669 type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata
670 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
671 }
672
673
674
675 type GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata struct {
676
677 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
678
679
680
681
682
683 ForceSendFields []string `json:"-"`
684
685
686
687
688 NullFields []string `json:"-"`
689 }
690
691 func (s *GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
692 type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata
693 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
694 }
695
696
697
698 type GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata struct {
699
700 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
701
702
703
704
705
706 ForceSendFields []string `json:"-"`
707
708
709
710
711 NullFields []string `json:"-"`
712 }
713
714 func (s *GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
715 type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata
716 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
717 }
718
719
720
721 type GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata struct {
722
723 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
724
725
726
727
728
729 ForceSendFields []string `json:"-"`
730
731
732
733
734 NullFields []string `json:"-"`
735 }
736
737 func (s *GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) {
738 type NoMethod GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata
739 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
740 }
741
742
743
744 type GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata struct {
745
746 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
747
748
749
750
751
752 ForceSendFields []string `json:"-"`
753
754
755
756
757 NullFields []string `json:"-"`
758 }
759
760 func (s *GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) {
761 type NoMethod GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata
762 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
763 }
764
765
766
767 type GoogleCloudDatalabelingV1alpha1LabelOperationMetadata struct {
768
769
770 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
771
772 CreateTime string `json:"createTime,omitempty"`
773
774
775 Dataset string `json:"dataset,omitempty"`
776
777 ImageBoundingBoxDetails *GoogleCloudDatalabelingV1alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"`
778
779 ImageBoundingPolyDetails *GoogleCloudDatalabelingV1alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"`
780
781 ImageClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"`
782
783
784 ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"`
785
786 ImagePolylineDetails *GoogleCloudDatalabelingV1alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"`
787
788 ImageSegmentationDetails *GoogleCloudDatalabelingV1alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"`
789
790
791
792 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
793
794 ProgressPercent int64 `json:"progressPercent,omitempty"`
795
796 TextClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"`
797
798
799 TextEntityExtractionDetails *GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"`
800
801 VideoClassificationDetails *GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"`
802
803 VideoEventDetails *GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"`
804
805
806 VideoObjectDetectionDetails *GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"`
807
808
809 VideoObjectTrackingDetails *GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"`
810
811
812
813
814
815 ForceSendFields []string `json:"-"`
816
817
818
819
820 NullFields []string `json:"-"`
821 }
822
823 func (s *GoogleCloudDatalabelingV1alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) {
824 type NoMethod GoogleCloudDatalabelingV1alpha1LabelOperationMetadata
825 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
826 }
827
828
829
830 type GoogleCloudDatalabelingV1alpha1LabelStats struct {
831
832
833
834
835
836 ExampleCount map[string]string `json:"exampleCount,omitempty"`
837
838
839
840
841
842 ForceSendFields []string `json:"-"`
843
844
845
846
847 NullFields []string `json:"-"`
848 }
849
850 func (s *GoogleCloudDatalabelingV1alpha1LabelStats) MarshalJSON() ([]byte, error) {
851 type NoMethod GoogleCloudDatalabelingV1alpha1LabelStats
852 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
853 }
854
855
856
857 type GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata struct {
858
859 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
860
861
862
863
864
865 ForceSendFields []string `json:"-"`
866
867
868
869
870 NullFields []string `json:"-"`
871 }
872
873 func (s *GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
874 type NoMethod GoogleCloudDatalabelingV1alpha1LabelTextClassificationOperationMetadata
875 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
876 }
877
878
879
880 type GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata struct {
881
882 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
883
884
885
886
887
888 ForceSendFields []string `json:"-"`
889
890
891
892
893 NullFields []string `json:"-"`
894 }
895
896 func (s *GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) {
897 type NoMethod GoogleCloudDatalabelingV1alpha1LabelTextEntityExtractionOperationMetadata
898 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
899 }
900
901
902
903 type GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata struct {
904
905 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
906
907
908
909
910
911 ForceSendFields []string `json:"-"`
912
913
914
915
916 NullFields []string `json:"-"`
917 }
918
919 func (s *GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
920 type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoClassificationOperationMetadata
921 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
922 }
923
924
925
926 type GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata struct {
927
928 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
929
930
931
932
933
934 ForceSendFields []string `json:"-"`
935
936
937
938
939 NullFields []string `json:"-"`
940 }
941
942 func (s *GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) {
943 type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoEventOperationMetadata
944 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
945 }
946
947
948
949 type GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata struct {
950
951 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
952
953
954
955
956
957 ForceSendFields []string `json:"-"`
958
959
960
961
962 NullFields []string `json:"-"`
963 }
964
965 func (s *GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) {
966 type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoObjectDetectionOperationMetadata
967 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
968 }
969
970
971
972 type GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata struct {
973
974 BasicConfig *GoogleCloudDatalabelingV1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
975
976
977
978
979
980 ForceSendFields []string `json:"-"`
981
982
983
984
985 NullFields []string `json:"-"`
986 }
987
988 func (s *GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) {
989 type NoMethod GoogleCloudDatalabelingV1alpha1LabelVideoObjectTrackingOperationMetadata
990 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
991 }
992
993
994
995 type GoogleCloudDatalabelingV1alpha1OutputConfig struct {
996
997
998 GcsDestination *GoogleCloudDatalabelingV1alpha1GcsDestination `json:"gcsDestination,omitempty"`
999
1000
1001 GcsFolderDestination *GoogleCloudDatalabelingV1alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"`
1002
1003
1004
1005
1006
1007 ForceSendFields []string `json:"-"`
1008
1009
1010
1011
1012 NullFields []string `json:"-"`
1013 }
1014
1015 func (s *GoogleCloudDatalabelingV1alpha1OutputConfig) MarshalJSON() ([]byte, error) {
1016 type NoMethod GoogleCloudDatalabelingV1alpha1OutputConfig
1017 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1018 }
1019
1020
1021
1022
1023 type GoogleCloudDatalabelingV1beta1AnnotatedDataset struct {
1024
1025
1026
1027
1028
1029 AnnotationSource string `json:"annotationSource,omitempty"`
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054 AnnotationType string `json:"annotationType,omitempty"`
1055
1056
1057 BlockingResources []string `json:"blockingResources,omitempty"`
1058
1059
1060 CompletedExampleCount int64 `json:"completedExampleCount,omitempty,string"`
1061
1062 CreateTime string `json:"createTime,omitempty"`
1063
1064
1065
1066 Description string `json:"description,omitempty"`
1067
1068
1069
1070 DisplayName string `json:"displayName,omitempty"`
1071
1072 ExampleCount int64 `json:"exampleCount,omitempty,string"`
1073
1074 LabelStats *GoogleCloudDatalabelingV1beta1LabelStats `json:"labelStats,omitempty"`
1075
1076 Metadata *GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata `json:"metadata,omitempty"`
1077
1078
1079
1080 Name string `json:"name,omitempty"`
1081
1082
1083 googleapi.ServerResponse `json:"-"`
1084
1085
1086
1087
1088
1089 ForceSendFields []string `json:"-"`
1090
1091
1092
1093
1094 NullFields []string `json:"-"`
1095 }
1096
1097 func (s *GoogleCloudDatalabelingV1beta1AnnotatedDataset) MarshalJSON() ([]byte, error) {
1098 type NoMethod GoogleCloudDatalabelingV1beta1AnnotatedDataset
1099 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1100 }
1101
1102
1103
1104 type GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata struct {
1105
1106
1107 BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"`
1108
1109 EventConfig *GoogleCloudDatalabelingV1beta1EventConfig `json:"eventConfig,omitempty"`
1110
1111
1112 HumanAnnotationConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"humanAnnotationConfig,omitempty"`
1113
1114 ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"`
1115
1116 ObjectDetectionConfig *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig `json:"objectDetectionConfig,omitempty"`
1117
1118 ObjectTrackingConfig *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig `json:"objectTrackingConfig,omitempty"`
1119
1120 PolylineConfig *GoogleCloudDatalabelingV1beta1PolylineConfig `json:"polylineConfig,omitempty"`
1121
1122 SegmentationConfig *GoogleCloudDatalabelingV1beta1SegmentationConfig `json:"segmentationConfig,omitempty"`
1123
1124 TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"`
1125
1126 TextEntityExtractionConfig *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig `json:"textEntityExtractionConfig,omitempty"`
1127
1128 VideoClassificationConfig *GoogleCloudDatalabelingV1beta1VideoClassificationConfig `json:"videoClassificationConfig,omitempty"`
1129
1130
1131
1132
1133
1134 ForceSendFields []string `json:"-"`
1135
1136
1137
1138
1139 NullFields []string `json:"-"`
1140 }
1141
1142 func (s *GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata) MarshalJSON() ([]byte, error) {
1143 type NoMethod GoogleCloudDatalabelingV1beta1AnnotatedDatasetMetadata
1144 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1145 }
1146
1147
1148
1149
1150
1151 type GoogleCloudDatalabelingV1beta1Annotation struct {
1152
1153
1154 AnnotationMetadata *GoogleCloudDatalabelingV1beta1AnnotationMetadata `json:"annotationMetadata,omitempty"`
1155
1156
1157
1158
1159
1160
1161 AnnotationSentiment string `json:"annotationSentiment,omitempty"`
1162
1163
1164
1165
1166
1167 AnnotationSource string `json:"annotationSource,omitempty"`
1168
1169
1170 AnnotationValue *GoogleCloudDatalabelingV1beta1AnnotationValue `json:"annotationValue,omitempty"`
1171
1172
1173
1174 Name string `json:"name,omitempty"`
1175
1176
1177
1178
1179
1180 ForceSendFields []string `json:"-"`
1181
1182
1183
1184
1185 NullFields []string `json:"-"`
1186 }
1187
1188 func (s *GoogleCloudDatalabelingV1beta1Annotation) MarshalJSON() ([]byte, error) {
1189 type NoMethod GoogleCloudDatalabelingV1beta1Annotation
1190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1191 }
1192
1193
1194
1195 type GoogleCloudDatalabelingV1beta1AnnotationMetadata struct {
1196
1197 OperatorMetadata *GoogleCloudDatalabelingV1beta1OperatorMetadata `json:"operatorMetadata,omitempty"`
1198
1199
1200
1201
1202
1203 ForceSendFields []string `json:"-"`
1204
1205
1206
1207
1208 NullFields []string `json:"-"`
1209 }
1210
1211 func (s *GoogleCloudDatalabelingV1beta1AnnotationMetadata) MarshalJSON() ([]byte, error) {
1212 type NoMethod GoogleCloudDatalabelingV1beta1AnnotationMetadata
1213 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1214 }
1215
1216
1217
1218
1219
1220
1221 type GoogleCloudDatalabelingV1beta1AnnotationSpec struct {
1222
1223
1224 Description string `json:"description,omitempty"`
1225
1226
1227 DisplayName string `json:"displayName,omitempty"`
1228
1229
1230
1231
1232
1233
1234
1235 Index int64 `json:"index,omitempty"`
1236
1237
1238
1239
1240
1241 ForceSendFields []string `json:"-"`
1242
1243
1244
1245
1246 NullFields []string `json:"-"`
1247 }
1248
1249 func (s *GoogleCloudDatalabelingV1beta1AnnotationSpec) MarshalJSON() ([]byte, error) {
1250 type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpec
1251 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1252 }
1253
1254
1255
1256
1257
1258 type GoogleCloudDatalabelingV1beta1AnnotationSpecSet struct {
1259
1260
1261
1262 AnnotationSpecs []*GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpecs,omitempty"`
1263
1264
1265 BlockingResources []string `json:"blockingResources,omitempty"`
1266
1267
1268 Description string `json:"description,omitempty"`
1269
1270
1271 DisplayName string `json:"displayName,omitempty"`
1272
1273
1274 Name string `json:"name,omitempty"`
1275
1276
1277 googleapi.ServerResponse `json:"-"`
1278
1279
1280
1281
1282
1283 ForceSendFields []string `json:"-"`
1284
1285
1286
1287
1288 NullFields []string `json:"-"`
1289 }
1290
1291 func (s *GoogleCloudDatalabelingV1beta1AnnotationSpecSet) MarshalJSON() ([]byte, error) {
1292 type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpecSet
1293 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1294 }
1295
1296
1297
1298 type GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig struct {
1299
1300
1301 AllowMultiLabel bool `json:"allowMultiLabel,omitempty"`
1302
1303 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
1304
1305
1306
1307
1308
1309 ForceSendFields []string `json:"-"`
1310
1311
1312
1313
1314 NullFields []string `json:"-"`
1315 }
1316
1317 func (s *GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig) MarshalJSON() ([]byte, error) {
1318 type NoMethod GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig
1319 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1320 }
1321
1322
1323
1324 type GoogleCloudDatalabelingV1beta1AnnotationValue struct {
1325
1326
1327 ImageBoundingPolyAnnotation *GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation `json:"imageBoundingPolyAnnotation,omitempty"`
1328
1329
1330 ImageClassificationAnnotation *GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation `json:"imageClassificationAnnotation,omitempty"`
1331
1332
1333
1334
1335 ImagePolylineAnnotation *GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation `json:"imagePolylineAnnotation,omitempty"`
1336
1337 ImageSegmentationAnnotation *GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation `json:"imageSegmentationAnnotation,omitempty"`
1338
1339 TextClassificationAnnotation *GoogleCloudDatalabelingV1beta1TextClassificationAnnotation `json:"textClassificationAnnotation,omitempty"`
1340
1341
1342 TextEntityExtractionAnnotation *GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation `json:"textEntityExtractionAnnotation,omitempty"`
1343
1344
1345 VideoClassificationAnnotation *GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation `json:"videoClassificationAnnotation,omitempty"`
1346
1347 VideoEventAnnotation *GoogleCloudDatalabelingV1beta1VideoEventAnnotation `json:"videoEventAnnotation,omitempty"`
1348
1349
1350 VideoObjectTrackingAnnotation *GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation `json:"videoObjectTrackingAnnotation,omitempty"`
1351
1352
1353
1354
1355
1356 ForceSendFields []string `json:"-"`
1357
1358
1359
1360
1361 NullFields []string `json:"-"`
1362 }
1363
1364 func (s *GoogleCloudDatalabelingV1beta1AnnotationValue) MarshalJSON() ([]byte, error) {
1365 type NoMethod GoogleCloudDatalabelingV1beta1AnnotationValue
1366 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1367 }
1368
1369
1370 type GoogleCloudDatalabelingV1beta1Attempt struct {
1371 AttemptTime string `json:"attemptTime,omitempty"`
1372
1373 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
1374
1375
1376
1377
1378
1379 ForceSendFields []string `json:"-"`
1380
1381
1382
1383
1384 NullFields []string `json:"-"`
1385 }
1386
1387 func (s *GoogleCloudDatalabelingV1beta1Attempt) MarshalJSON() ([]byte, error) {
1388 type NoMethod GoogleCloudDatalabelingV1beta1Attempt
1389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1390 }
1391
1392
1393
1394
1395 type GoogleCloudDatalabelingV1beta1BigQuerySource struct {
1396
1397
1398
1399
1400
1401
1402
1403
1404
1405 InputUri string `json:"inputUri,omitempty"`
1406
1407
1408
1409
1410
1411 ForceSendFields []string `json:"-"`
1412
1413
1414
1415
1416 NullFields []string `json:"-"`
1417 }
1418
1419 func (s *GoogleCloudDatalabelingV1beta1BigQuerySource) MarshalJSON() ([]byte, error) {
1420 type NoMethod GoogleCloudDatalabelingV1beta1BigQuerySource
1421 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1422 }
1423
1424
1425
1426 type GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions struct {
1427
1428
1429
1430
1431 IouThreshold float64 `json:"iouThreshold,omitempty"`
1432
1433
1434
1435
1436
1437 ForceSendFields []string `json:"-"`
1438
1439
1440
1441
1442 NullFields []string `json:"-"`
1443 }
1444
1445 func (s *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) MarshalJSON() ([]byte, error) {
1446 type NoMethod GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions
1447 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1448 }
1449
1450 func (s *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions) UnmarshalJSON(data []byte) error {
1451 type NoMethod GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions
1452 var s1 struct {
1453 IouThreshold gensupport.JSONFloat64 `json:"iouThreshold"`
1454 *NoMethod
1455 }
1456 s1.NoMethod = (*NoMethod)(s)
1457 if err := json.Unmarshal(data, &s1); err != nil {
1458 return err
1459 }
1460 s.IouThreshold = float64(s1.IouThreshold)
1461 return nil
1462 }
1463
1464
1465 type GoogleCloudDatalabelingV1beta1BoundingPoly struct {
1466
1467 Vertices []*GoogleCloudDatalabelingV1beta1Vertex `json:"vertices,omitempty"`
1468
1469
1470
1471
1472
1473 ForceSendFields []string `json:"-"`
1474
1475
1476
1477
1478 NullFields []string `json:"-"`
1479 }
1480
1481 func (s *GoogleCloudDatalabelingV1beta1BoundingPoly) MarshalJSON() ([]byte, error) {
1482 type NoMethod GoogleCloudDatalabelingV1beta1BoundingPoly
1483 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1484 }
1485
1486
1487
1488 type GoogleCloudDatalabelingV1beta1BoundingPolyConfig struct {
1489
1490 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
1491
1492 InstructionMessage string `json:"instructionMessage,omitempty"`
1493
1494
1495
1496
1497
1498 ForceSendFields []string `json:"-"`
1499
1500
1501
1502
1503 NullFields []string `json:"-"`
1504 }
1505
1506 func (s *GoogleCloudDatalabelingV1beta1BoundingPolyConfig) MarshalJSON() ([]byte, error) {
1507 type NoMethod GoogleCloudDatalabelingV1beta1BoundingPolyConfig
1508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1509 }
1510
1511
1512
1513 type GoogleCloudDatalabelingV1beta1ClassificationMetadata struct {
1514
1515 IsMultiLabel bool `json:"isMultiLabel,omitempty"`
1516
1517
1518
1519
1520
1521 ForceSendFields []string `json:"-"`
1522
1523
1524
1525
1526 NullFields []string `json:"-"`
1527 }
1528
1529 func (s *GoogleCloudDatalabelingV1beta1ClassificationMetadata) MarshalJSON() ([]byte, error) {
1530 type NoMethod GoogleCloudDatalabelingV1beta1ClassificationMetadata
1531 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1532 }
1533
1534
1535
1536 type GoogleCloudDatalabelingV1beta1ClassificationMetrics struct {
1537
1538
1539 ConfusionMatrix *GoogleCloudDatalabelingV1beta1ConfusionMatrix `json:"confusionMatrix,omitempty"`
1540
1541
1542 PrCurve *GoogleCloudDatalabelingV1beta1PrCurve `json:"prCurve,omitempty"`
1543
1544
1545
1546
1547
1548 ForceSendFields []string `json:"-"`
1549
1550
1551
1552
1553 NullFields []string `json:"-"`
1554 }
1555
1556 func (s *GoogleCloudDatalabelingV1beta1ClassificationMetrics) MarshalJSON() ([]byte, error) {
1557 type NoMethod GoogleCloudDatalabelingV1beta1ClassificationMetrics
1558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1559 }
1560
1561 type GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry struct {
1562
1563
1564
1565
1566
1567
1568
1569 ConfidenceThreshold float64 `json:"confidenceThreshold,omitempty"`
1570
1571 F1Score float64 `json:"f1Score,omitempty"`
1572
1573 F1ScoreAt1 float64 `json:"f1ScoreAt1,omitempty"`
1574
1575 F1ScoreAt5 float64 `json:"f1ScoreAt5,omitempty"`
1576
1577 Precision float64 `json:"precision,omitempty"`
1578
1579 PrecisionAt1 float64 `json:"precisionAt1,omitempty"`
1580
1581
1582 PrecisionAt5 float64 `json:"precisionAt5,omitempty"`
1583
1584 Recall float64 `json:"recall,omitempty"`
1585
1586 RecallAt1 float64 `json:"recallAt1,omitempty"`
1587
1588 RecallAt5 float64 `json:"recallAt5,omitempty"`
1589
1590
1591
1592
1593
1594 ForceSendFields []string `json:"-"`
1595
1596
1597
1598
1599 NullFields []string `json:"-"`
1600 }
1601
1602 func (s *GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry) MarshalJSON() ([]byte, error) {
1603 type NoMethod GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry
1604 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1605 }
1606
1607 func (s *GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry) UnmarshalJSON(data []byte) error {
1608 type NoMethod GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry
1609 var s1 struct {
1610 ConfidenceThreshold gensupport.JSONFloat64 `json:"confidenceThreshold"`
1611 F1Score gensupport.JSONFloat64 `json:"f1Score"`
1612 F1ScoreAt1 gensupport.JSONFloat64 `json:"f1ScoreAt1"`
1613 F1ScoreAt5 gensupport.JSONFloat64 `json:"f1ScoreAt5"`
1614 Precision gensupport.JSONFloat64 `json:"precision"`
1615 PrecisionAt1 gensupport.JSONFloat64 `json:"precisionAt1"`
1616 PrecisionAt5 gensupport.JSONFloat64 `json:"precisionAt5"`
1617 Recall gensupport.JSONFloat64 `json:"recall"`
1618 RecallAt1 gensupport.JSONFloat64 `json:"recallAt1"`
1619 RecallAt5 gensupport.JSONFloat64 `json:"recallAt5"`
1620 *NoMethod
1621 }
1622 s1.NoMethod = (*NoMethod)(s)
1623 if err := json.Unmarshal(data, &s1); err != nil {
1624 return err
1625 }
1626 s.ConfidenceThreshold = float64(s1.ConfidenceThreshold)
1627 s.F1Score = float64(s1.F1Score)
1628 s.F1ScoreAt1 = float64(s1.F1ScoreAt1)
1629 s.F1ScoreAt5 = float64(s1.F1ScoreAt5)
1630 s.Precision = float64(s1.Precision)
1631 s.PrecisionAt1 = float64(s1.PrecisionAt1)
1632 s.PrecisionAt5 = float64(s1.PrecisionAt5)
1633 s.Recall = float64(s1.Recall)
1634 s.RecallAt1 = float64(s1.RecallAt1)
1635 s.RecallAt5 = float64(s1.RecallAt5)
1636 return nil
1637 }
1638
1639
1640
1641
1642
1643 type GoogleCloudDatalabelingV1beta1ConfusionMatrix struct {
1644 Row []*GoogleCloudDatalabelingV1beta1Row `json:"row,omitempty"`
1645
1646
1647
1648
1649
1650 ForceSendFields []string `json:"-"`
1651
1652
1653
1654
1655 NullFields []string `json:"-"`
1656 }
1657
1658 func (s *GoogleCloudDatalabelingV1beta1ConfusionMatrix) MarshalJSON() ([]byte, error) {
1659 type NoMethod GoogleCloudDatalabelingV1beta1ConfusionMatrix
1660 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1661 }
1662
1663 type GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry struct {
1664
1665 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
1666
1667
1668 ItemCount int64 `json:"itemCount,omitempty"`
1669
1670
1671
1672
1673
1674 ForceSendFields []string `json:"-"`
1675
1676
1677
1678
1679 NullFields []string `json:"-"`
1680 }
1681
1682 func (s *GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry) MarshalJSON() ([]byte, error) {
1683 type NoMethod GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry
1684 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1685 }
1686
1687
1688
1689 type GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest struct {
1690
1691
1692
1693 AnnotationSpecSet *GoogleCloudDatalabelingV1beta1AnnotationSpecSet `json:"annotationSpecSet,omitempty"`
1694
1695
1696
1697
1698
1699 ForceSendFields []string `json:"-"`
1700
1701
1702
1703
1704 NullFields []string `json:"-"`
1705 }
1706
1707 func (s *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest) MarshalJSON() ([]byte, error) {
1708 type NoMethod GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest
1709 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1710 }
1711
1712
1713
1714 type GoogleCloudDatalabelingV1beta1CreateDatasetRequest struct {
1715
1716 Dataset *GoogleCloudDatalabelingV1beta1Dataset `json:"dataset,omitempty"`
1717
1718
1719
1720
1721
1722 ForceSendFields []string `json:"-"`
1723
1724
1725
1726
1727 NullFields []string `json:"-"`
1728 }
1729
1730 func (s *GoogleCloudDatalabelingV1beta1CreateDatasetRequest) MarshalJSON() ([]byte, error) {
1731 type NoMethod GoogleCloudDatalabelingV1beta1CreateDatasetRequest
1732 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1733 }
1734
1735
1736
1737 type GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest struct {
1738
1739 Job *GoogleCloudDatalabelingV1beta1EvaluationJob `json:"job,omitempty"`
1740
1741
1742
1743
1744
1745 ForceSendFields []string `json:"-"`
1746
1747
1748
1749
1750 NullFields []string `json:"-"`
1751 }
1752
1753 func (s *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest) MarshalJSON() ([]byte, error) {
1754 type NoMethod GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest
1755 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1756 }
1757
1758
1759
1760 type GoogleCloudDatalabelingV1beta1CreateInstructionMetadata struct {
1761
1762 CreateTime string `json:"createTime,omitempty"`
1763
1764
1765 Instruction string `json:"instruction,omitempty"`
1766
1767
1768
1769 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
1770
1771
1772
1773
1774
1775 ForceSendFields []string `json:"-"`
1776
1777
1778
1779
1780 NullFields []string `json:"-"`
1781 }
1782
1783 func (s *GoogleCloudDatalabelingV1beta1CreateInstructionMetadata) MarshalJSON() ([]byte, error) {
1784 type NoMethod GoogleCloudDatalabelingV1beta1CreateInstructionMetadata
1785 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1786 }
1787
1788
1789
1790 type GoogleCloudDatalabelingV1beta1CreateInstructionRequest struct {
1791
1792 Instruction *GoogleCloudDatalabelingV1beta1Instruction `json:"instruction,omitempty"`
1793
1794
1795
1796
1797
1798 ForceSendFields []string `json:"-"`
1799
1800
1801
1802
1803 NullFields []string `json:"-"`
1804 }
1805
1806 func (s *GoogleCloudDatalabelingV1beta1CreateInstructionRequest) MarshalJSON() ([]byte, error) {
1807 type NoMethod GoogleCloudDatalabelingV1beta1CreateInstructionRequest
1808 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1809 }
1810
1811
1812
1813 type GoogleCloudDatalabelingV1beta1CsvInstruction struct {
1814
1815 GcsFileUri string `json:"gcsFileUri,omitempty"`
1816
1817
1818
1819
1820
1821 ForceSendFields []string `json:"-"`
1822
1823
1824
1825
1826 NullFields []string `json:"-"`
1827 }
1828
1829 func (s *GoogleCloudDatalabelingV1beta1CsvInstruction) MarshalJSON() ([]byte, error) {
1830 type NoMethod GoogleCloudDatalabelingV1beta1CsvInstruction
1831 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1832 }
1833
1834
1835
1836 type GoogleCloudDatalabelingV1beta1DataItem struct {
1837
1838 ImagePayload *GoogleCloudDatalabelingV1beta1ImagePayload `json:"imagePayload,omitempty"`
1839
1840
1841 Name string `json:"name,omitempty"`
1842
1843 TextPayload *GoogleCloudDatalabelingV1beta1TextPayload `json:"textPayload,omitempty"`
1844
1845 VideoPayload *GoogleCloudDatalabelingV1beta1VideoPayload `json:"videoPayload,omitempty"`
1846
1847
1848 googleapi.ServerResponse `json:"-"`
1849
1850
1851
1852
1853
1854 ForceSendFields []string `json:"-"`
1855
1856
1857
1858
1859 NullFields []string `json:"-"`
1860 }
1861
1862 func (s *GoogleCloudDatalabelingV1beta1DataItem) MarshalJSON() ([]byte, error) {
1863 type NoMethod GoogleCloudDatalabelingV1beta1DataItem
1864 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1865 }
1866
1867
1868
1869
1870 type GoogleCloudDatalabelingV1beta1Dataset struct {
1871
1872
1873 BlockingResources []string `json:"blockingResources,omitempty"`
1874
1875 CreateTime string `json:"createTime,omitempty"`
1876
1877 DataItemCount int64 `json:"dataItemCount,omitempty,string"`
1878
1879
1880 Description string `json:"description,omitempty"`
1881
1882
1883 DisplayName string `json:"displayName,omitempty"`
1884
1885
1886
1887 InputConfigs []*GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfigs,omitempty"`
1888
1889
1890
1891 LastMigrateTime string `json:"lastMigrateTime,omitempty"`
1892
1893
1894 Name string `json:"name,omitempty"`
1895
1896
1897 googleapi.ServerResponse `json:"-"`
1898
1899
1900
1901
1902
1903 ForceSendFields []string `json:"-"`
1904
1905
1906
1907
1908 NullFields []string `json:"-"`
1909 }
1910
1911 func (s *GoogleCloudDatalabelingV1beta1Dataset) MarshalJSON() ([]byte, error) {
1912 type NoMethod GoogleCloudDatalabelingV1beta1Dataset
1913 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1914 }
1915
1916
1917
1918
1919 type GoogleCloudDatalabelingV1beta1Evaluation struct {
1920
1921
1922
1923
1924
1925
1926
1927
1928
1929
1930
1931
1932
1933
1934
1935
1936
1937
1938
1939
1940
1941
1942
1943
1944
1945
1946 AnnotationType string `json:"annotationType,omitempty"`
1947
1948
1949 Config *GoogleCloudDatalabelingV1beta1EvaluationConfig `json:"config,omitempty"`
1950
1951 CreateTime string `json:"createTime,omitempty"`
1952
1953
1954
1955 EvaluatedItemCount int64 `json:"evaluatedItemCount,omitempty,string"`
1956
1957
1958 EvaluationJobRunTime string `json:"evaluationJobRunTime,omitempty"`
1959
1960
1961 EvaluationMetrics *GoogleCloudDatalabelingV1beta1EvaluationMetrics `json:"evaluationMetrics,omitempty"`
1962
1963
1964
1965 Name string `json:"name,omitempty"`
1966
1967
1968 googleapi.ServerResponse `json:"-"`
1969
1970
1971
1972
1973
1974 ForceSendFields []string `json:"-"`
1975
1976
1977
1978
1979 NullFields []string `json:"-"`
1980 }
1981
1982 func (s *GoogleCloudDatalabelingV1beta1Evaluation) MarshalJSON() ([]byte, error) {
1983 type NoMethod GoogleCloudDatalabelingV1beta1Evaluation
1984 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
1985 }
1986
1987
1988
1989 type GoogleCloudDatalabelingV1beta1EvaluationConfig struct {
1990
1991
1992
1993 BoundingBoxEvaluationOptions *GoogleCloudDatalabelingV1beta1BoundingBoxEvaluationOptions `json:"boundingBoxEvaluationOptions,omitempty"`
1994
1995
1996
1997
1998
1999 ForceSendFields []string `json:"-"`
2000
2001
2002
2003
2004 NullFields []string `json:"-"`
2005 }
2006
2007 func (s *GoogleCloudDatalabelingV1beta1EvaluationConfig) MarshalJSON() ([]byte, error) {
2008 type NoMethod GoogleCloudDatalabelingV1beta1EvaluationConfig
2009 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2010 }
2011
2012
2013
2014
2015
2016 type GoogleCloudDatalabelingV1beta1EvaluationJob struct {
2017
2018
2019
2020
2021
2022 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
2023
2024
2025 Attempts []*GoogleCloudDatalabelingV1beta1Attempt `json:"attempts,omitempty"`
2026
2027 CreateTime string `json:"createTime,omitempty"`
2028
2029
2030 Description string `json:"description,omitempty"`
2031
2032 EvaluationJobConfig *GoogleCloudDatalabelingV1beta1EvaluationJobConfig `json:"evaluationJobConfig,omitempty"`
2033
2034
2035
2036
2037
2038 LabelMissingGroundTruth bool `json:"labelMissingGroundTruth,omitempty"`
2039
2040
2041
2042
2043
2044
2045 ModelVersion string `json:"modelVersion,omitempty"`
2046
2047
2048
2049 Name string `json:"name,omitempty"`
2050
2051
2052
2053
2054
2055
2056
2057
2058 Schedule string `json:"schedule,omitempty"`
2059
2060
2061
2062
2063
2064
2065
2066
2067
2068
2069
2070
2071
2072
2073
2074
2075
2076
2077
2078
2079
2080
2081
2082
2083
2084
2085
2086
2087
2088
2089 State string `json:"state,omitempty"`
2090
2091
2092 googleapi.ServerResponse `json:"-"`
2093
2094
2095
2096
2097
2098 ForceSendFields []string `json:"-"`
2099
2100
2101
2102
2103 NullFields []string `json:"-"`
2104 }
2105
2106 func (s *GoogleCloudDatalabelingV1beta1EvaluationJob) MarshalJSON() ([]byte, error) {
2107 type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJob
2108 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2109 }
2110
2111
2112
2113 type GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig struct {
2114
2115 Email string `json:"email,omitempty"`
2116
2117
2118
2119
2120
2121 MinAcceptableMeanAveragePrecision float64 `json:"minAcceptableMeanAveragePrecision,omitempty"`
2122
2123
2124
2125
2126
2127 ForceSendFields []string `json:"-"`
2128
2129
2130
2131
2132 NullFields []string `json:"-"`
2133 }
2134
2135 func (s *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig) MarshalJSON() ([]byte, error) {
2136 type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig
2137 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2138 }
2139
2140 func (s *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig) UnmarshalJSON(data []byte) error {
2141 type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig
2142 var s1 struct {
2143 MinAcceptableMeanAveragePrecision gensupport.JSONFloat64 `json:"minAcceptableMeanAveragePrecision"`
2144 *NoMethod
2145 }
2146 s1.NoMethod = (*NoMethod)(s)
2147 if err := json.Unmarshal(data, &s1); err != nil {
2148 return err
2149 }
2150 s.MinAcceptableMeanAveragePrecision = float64(s1.MinAcceptableMeanAveragePrecision)
2151 return nil
2152 }
2153
2154
2155
2156
2157 type GoogleCloudDatalabelingV1beta1EvaluationJobConfig struct {
2158
2159
2160
2161
2162
2163
2164
2165
2166
2167
2168
2169
2170
2171
2172
2173 BigqueryImportKeys map[string]string `json:"bigqueryImportKeys,omitempty"`
2174
2175
2176
2177 BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"`
2178
2179
2180
2181
2182 EvaluationConfig *GoogleCloudDatalabelingV1beta1EvaluationConfig `json:"evaluationConfig,omitempty"`
2183
2184
2185
2186
2187 EvaluationJobAlertConfig *GoogleCloudDatalabelingV1beta1EvaluationJobAlertConfig `json:"evaluationJobAlertConfig,omitempty"`
2188
2189
2190
2191
2192
2193 ExampleCount int64 `json:"exampleCount,omitempty"`
2194
2195
2196
2197 ExampleSamplePercentage float64 `json:"exampleSamplePercentage,omitempty"`
2198
2199
2200
2201
2202
2203
2204 HumanAnnotationConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"humanAnnotationConfig,omitempty"`
2205
2206
2207
2208
2209
2210 ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"`
2211
2212
2213
2214
2215
2216
2217
2218
2219 InputConfig *GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfig,omitempty"`
2220
2221
2222
2223
2224 TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"`
2225
2226
2227
2228
2229
2230 ForceSendFields []string `json:"-"`
2231
2232
2233
2234
2235 NullFields []string `json:"-"`
2236 }
2237
2238 func (s *GoogleCloudDatalabelingV1beta1EvaluationJobConfig) MarshalJSON() ([]byte, error) {
2239 type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobConfig
2240 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2241 }
2242
2243 func (s *GoogleCloudDatalabelingV1beta1EvaluationJobConfig) UnmarshalJSON(data []byte) error {
2244 type NoMethod GoogleCloudDatalabelingV1beta1EvaluationJobConfig
2245 var s1 struct {
2246 ExampleSamplePercentage gensupport.JSONFloat64 `json:"exampleSamplePercentage"`
2247 *NoMethod
2248 }
2249 s1.NoMethod = (*NoMethod)(s)
2250 if err := json.Unmarshal(data, &s1); err != nil {
2251 return err
2252 }
2253 s.ExampleSamplePercentage = float64(s1.ExampleSamplePercentage)
2254 return nil
2255 }
2256
2257 type GoogleCloudDatalabelingV1beta1EvaluationMetrics struct {
2258 ClassificationMetrics *GoogleCloudDatalabelingV1beta1ClassificationMetrics `json:"classificationMetrics,omitempty"`
2259 ObjectDetectionMetrics *GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics `json:"objectDetectionMetrics,omitempty"`
2260
2261
2262
2263
2264
2265 ForceSendFields []string `json:"-"`
2266
2267
2268
2269
2270 NullFields []string `json:"-"`
2271 }
2272
2273 func (s *GoogleCloudDatalabelingV1beta1EvaluationMetrics) MarshalJSON() ([]byte, error) {
2274 type NoMethod GoogleCloudDatalabelingV1beta1EvaluationMetrics
2275 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2276 }
2277
2278
2279
2280 type GoogleCloudDatalabelingV1beta1EventConfig struct {
2281
2282
2283
2284 AnnotationSpecSets []string `json:"annotationSpecSets,omitempty"`
2285
2286
2287
2288 ClipLength int64 `json:"clipLength,omitempty"`
2289
2290
2291 OverlapLength int64 `json:"overlapLength,omitempty"`
2292
2293
2294
2295
2296
2297 ForceSendFields []string `json:"-"`
2298
2299
2300
2301
2302 NullFields []string `json:"-"`
2303 }
2304
2305 func (s *GoogleCloudDatalabelingV1beta1EventConfig) MarshalJSON() ([]byte, error) {
2306 type NoMethod GoogleCloudDatalabelingV1beta1EventConfig
2307 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2308 }
2309
2310
2311
2312 type GoogleCloudDatalabelingV1beta1Example struct {
2313
2314
2315 Annotations []*GoogleCloudDatalabelingV1beta1Annotation `json:"annotations,omitempty"`
2316
2317 ImagePayload *GoogleCloudDatalabelingV1beta1ImagePayload `json:"imagePayload,omitempty"`
2318
2319
2320
2321 Name string `json:"name,omitempty"`
2322
2323 TextPayload *GoogleCloudDatalabelingV1beta1TextPayload `json:"textPayload,omitempty"`
2324
2325 VideoPayload *GoogleCloudDatalabelingV1beta1VideoPayload `json:"videoPayload,omitempty"`
2326
2327
2328 googleapi.ServerResponse `json:"-"`
2329
2330
2331
2332
2333
2334 ForceSendFields []string `json:"-"`
2335
2336
2337
2338
2339 NullFields []string `json:"-"`
2340 }
2341
2342 func (s *GoogleCloudDatalabelingV1beta1Example) MarshalJSON() ([]byte, error) {
2343 type NoMethod GoogleCloudDatalabelingV1beta1Example
2344 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2345 }
2346
2347
2348
2349 type GoogleCloudDatalabelingV1beta1ExampleComparison struct {
2350
2351 GroundTruthExample *GoogleCloudDatalabelingV1beta1Example `json:"groundTruthExample,omitempty"`
2352
2353 ModelCreatedExamples []*GoogleCloudDatalabelingV1beta1Example `json:"modelCreatedExamples,omitempty"`
2354
2355
2356
2357
2358
2359 ForceSendFields []string `json:"-"`
2360
2361
2362
2363
2364 NullFields []string `json:"-"`
2365 }
2366
2367 func (s *GoogleCloudDatalabelingV1beta1ExampleComparison) MarshalJSON() ([]byte, error) {
2368 type NoMethod GoogleCloudDatalabelingV1beta1ExampleComparison
2369 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2370 }
2371
2372
2373
2374 type GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata struct {
2375
2376
2377 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
2378
2379 CreateTime string `json:"createTime,omitempty"`
2380
2381
2382 Dataset string `json:"dataset,omitempty"`
2383
2384
2385
2386 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
2387
2388
2389
2390
2391
2392 ForceSendFields []string `json:"-"`
2393
2394
2395
2396
2397 NullFields []string `json:"-"`
2398 }
2399
2400 func (s *GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) {
2401 type NoMethod GoogleCloudDatalabelingV1beta1ExportDataOperationMetadata
2402 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2403 }
2404
2405
2406
2407 type GoogleCloudDatalabelingV1beta1ExportDataOperationResponse struct {
2408
2409
2410 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
2411
2412 Dataset string `json:"dataset,omitempty"`
2413
2414 ExportCount int64 `json:"exportCount,omitempty"`
2415
2416 LabelStats *GoogleCloudDatalabelingV1beta1LabelStats `json:"labelStats,omitempty"`
2417
2418 OutputConfig *GoogleCloudDatalabelingV1beta1OutputConfig `json:"outputConfig,omitempty"`
2419
2420 TotalCount int64 `json:"totalCount,omitempty"`
2421
2422
2423
2424
2425
2426 ForceSendFields []string `json:"-"`
2427
2428
2429
2430
2431 NullFields []string `json:"-"`
2432 }
2433
2434 func (s *GoogleCloudDatalabelingV1beta1ExportDataOperationResponse) MarshalJSON() ([]byte, error) {
2435 type NoMethod GoogleCloudDatalabelingV1beta1ExportDataOperationResponse
2436 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2437 }
2438
2439
2440
2441 type GoogleCloudDatalabelingV1beta1ExportDataRequest struct {
2442
2443
2444
2445
2446
2447 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
2448
2449 Filter string `json:"filter,omitempty"`
2450
2451 OutputConfig *GoogleCloudDatalabelingV1beta1OutputConfig `json:"outputConfig,omitempty"`
2452
2453
2454 UserEmailAddress string `json:"userEmailAddress,omitempty"`
2455
2456
2457
2458
2459
2460 ForceSendFields []string `json:"-"`
2461
2462
2463
2464
2465 NullFields []string `json:"-"`
2466 }
2467
2468 func (s *GoogleCloudDatalabelingV1beta1ExportDataRequest) MarshalJSON() ([]byte, error) {
2469 type NoMethod GoogleCloudDatalabelingV1beta1ExportDataRequest
2470 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2471 }
2472
2473
2474
2475 type GoogleCloudDatalabelingV1beta1FeedbackMessage struct {
2476
2477 Body string `json:"body,omitempty"`
2478
2479 CreateTime string `json:"createTime,omitempty"`
2480
2481
2482 Image string `json:"image,omitempty"`
2483
2484
2485
2486
2487 Name string `json:"name,omitempty"`
2488 OperatorFeedbackMetadata *GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata `json:"operatorFeedbackMetadata,omitempty"`
2489 RequesterFeedbackMetadata *GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata `json:"requesterFeedbackMetadata,omitempty"`
2490
2491
2492 googleapi.ServerResponse `json:"-"`
2493
2494
2495
2496
2497
2498 ForceSendFields []string `json:"-"`
2499
2500
2501
2502
2503 NullFields []string `json:"-"`
2504 }
2505
2506 func (s *GoogleCloudDatalabelingV1beta1FeedbackMessage) MarshalJSON() ([]byte, error) {
2507 type NoMethod GoogleCloudDatalabelingV1beta1FeedbackMessage
2508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2509 }
2510
2511
2512
2513 type GoogleCloudDatalabelingV1beta1FeedbackThread struct {
2514
2515 FeedbackThreadMetadata *GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata `json:"feedbackThreadMetadata,omitempty"`
2516
2517
2518
2519 Name string `json:"name,omitempty"`
2520
2521
2522 googleapi.ServerResponse `json:"-"`
2523
2524
2525
2526
2527
2528 ForceSendFields []string `json:"-"`
2529
2530
2531
2532
2533 NullFields []string `json:"-"`
2534 }
2535
2536 func (s *GoogleCloudDatalabelingV1beta1FeedbackThread) MarshalJSON() ([]byte, error) {
2537 type NoMethod GoogleCloudDatalabelingV1beta1FeedbackThread
2538 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2539 }
2540
2541 type GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata struct {
2542
2543 CreateTime string `json:"createTime,omitempty"`
2544
2545 LastUpdateTime string `json:"lastUpdateTime,omitempty"`
2546
2547
2548
2549
2550 Status string `json:"status,omitempty"`
2551
2552 Thumbnail string `json:"thumbnail,omitempty"`
2553
2554
2555
2556
2557
2558 ForceSendFields []string `json:"-"`
2559
2560
2561
2562
2563 NullFields []string `json:"-"`
2564 }
2565
2566 func (s *GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata) MarshalJSON() ([]byte, error) {
2567 type NoMethod GoogleCloudDatalabelingV1beta1FeedbackThreadMetadata
2568 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2569 }
2570
2571
2572
2573 type GoogleCloudDatalabelingV1beta1GcsDestination struct {
2574
2575
2576 MimeType string `json:"mimeType,omitempty"`
2577
2578 OutputUri string `json:"outputUri,omitempty"`
2579
2580
2581
2582
2583
2584 ForceSendFields []string `json:"-"`
2585
2586
2587
2588
2589 NullFields []string `json:"-"`
2590 }
2591
2592 func (s *GoogleCloudDatalabelingV1beta1GcsDestination) MarshalJSON() ([]byte, error) {
2593 type NoMethod GoogleCloudDatalabelingV1beta1GcsDestination
2594 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2595 }
2596
2597
2598
2599 type GoogleCloudDatalabelingV1beta1GcsFolderDestination struct {
2600
2601 OutputFolderUri string `json:"outputFolderUri,omitempty"`
2602
2603
2604
2605
2606
2607 ForceSendFields []string `json:"-"`
2608
2609
2610
2611
2612 NullFields []string `json:"-"`
2613 }
2614
2615 func (s *GoogleCloudDatalabelingV1beta1GcsFolderDestination) MarshalJSON() ([]byte, error) {
2616 type NoMethod GoogleCloudDatalabelingV1beta1GcsFolderDestination
2617 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2618 }
2619
2620
2621
2622 type GoogleCloudDatalabelingV1beta1GcsSource struct {
2623
2624
2625 InputUri string `json:"inputUri,omitempty"`
2626
2627
2628 MimeType string `json:"mimeType,omitempty"`
2629
2630
2631
2632
2633
2634 ForceSendFields []string `json:"-"`
2635
2636
2637
2638
2639 NullFields []string `json:"-"`
2640 }
2641
2642 func (s *GoogleCloudDatalabelingV1beta1GcsSource) MarshalJSON() ([]byte, error) {
2643 type NoMethod GoogleCloudDatalabelingV1beta1GcsSource
2644 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2645 }
2646
2647
2648
2649 type GoogleCloudDatalabelingV1beta1HumanAnnotationConfig struct {
2650
2651
2652 AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"`
2653
2654
2655 AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"`
2656
2657
2658
2659
2660
2661 ContributorEmails []string `json:"contributorEmails,omitempty"`
2662
2663 Instruction string `json:"instruction,omitempty"`
2664
2665
2666
2667 LabelGroup string `json:"labelGroup,omitempty"`
2668
2669
2670
2671
2672 LanguageCode string `json:"languageCode,omitempty"`
2673
2674
2675 QuestionDuration string `json:"questionDuration,omitempty"`
2676
2677
2678
2679
2680 ReplicaCount int64 `json:"replicaCount,omitempty"`
2681
2682
2683 UserEmailAddress string `json:"userEmailAddress,omitempty"`
2684
2685
2686
2687
2688
2689 ForceSendFields []string `json:"-"`
2690
2691
2692
2693
2694 NullFields []string `json:"-"`
2695 }
2696
2697 func (s *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig) MarshalJSON() ([]byte, error) {
2698 type NoMethod GoogleCloudDatalabelingV1beta1HumanAnnotationConfig
2699 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2700 }
2701
2702
2703
2704
2705 type GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation struct {
2706
2707 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
2708 BoundingPoly *GoogleCloudDatalabelingV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
2709 NormalizedBoundingPoly *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly `json:"normalizedBoundingPoly,omitempty"`
2710
2711
2712
2713
2714
2715 ForceSendFields []string `json:"-"`
2716
2717
2718
2719
2720 NullFields []string `json:"-"`
2721 }
2722
2723 func (s *GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation) MarshalJSON() ([]byte, error) {
2724 type NoMethod GoogleCloudDatalabelingV1beta1ImageBoundingPolyAnnotation
2725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2726 }
2727
2728
2729
2730 type GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation struct {
2731
2732 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
2733
2734
2735
2736
2737
2738 ForceSendFields []string `json:"-"`
2739
2740
2741
2742
2743 NullFields []string `json:"-"`
2744 }
2745
2746 func (s *GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation) MarshalJSON() ([]byte, error) {
2747 type NoMethod GoogleCloudDatalabelingV1beta1ImageClassificationAnnotation
2748 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2749 }
2750
2751
2752
2753 type GoogleCloudDatalabelingV1beta1ImageClassificationConfig struct {
2754
2755
2756 AllowMultiLabel bool `json:"allowMultiLabel,omitempty"`
2757
2758 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
2759
2760
2761
2762
2763
2764
2765
2766 AnswerAggregationType string `json:"answerAggregationType,omitempty"`
2767
2768
2769
2770
2771
2772 ForceSendFields []string `json:"-"`
2773
2774
2775
2776
2777 NullFields []string `json:"-"`
2778 }
2779
2780 func (s *GoogleCloudDatalabelingV1beta1ImageClassificationConfig) MarshalJSON() ([]byte, error) {
2781 type NoMethod GoogleCloudDatalabelingV1beta1ImageClassificationConfig
2782 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2783 }
2784
2785
2786
2787 type GoogleCloudDatalabelingV1beta1ImagePayload struct {
2788
2789 ImageThumbnail string `json:"imageThumbnail,omitempty"`
2790
2791 ImageUri string `json:"imageUri,omitempty"`
2792
2793 MimeType string `json:"mimeType,omitempty"`
2794
2795 SignedUri string `json:"signedUri,omitempty"`
2796
2797
2798
2799
2800
2801 ForceSendFields []string `json:"-"`
2802
2803
2804
2805
2806 NullFields []string `json:"-"`
2807 }
2808
2809 func (s *GoogleCloudDatalabelingV1beta1ImagePayload) MarshalJSON() ([]byte, error) {
2810 type NoMethod GoogleCloudDatalabelingV1beta1ImagePayload
2811 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2812 }
2813
2814
2815
2816 type GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation struct {
2817
2818 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
2819 NormalizedPolyline *GoogleCloudDatalabelingV1beta1NormalizedPolyline `json:"normalizedPolyline,omitempty"`
2820 Polyline *GoogleCloudDatalabelingV1beta1Polyline `json:"polyline,omitempty"`
2821
2822
2823
2824
2825
2826 ForceSendFields []string `json:"-"`
2827
2828
2829
2830
2831 NullFields []string `json:"-"`
2832 }
2833
2834 func (s *GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation) MarshalJSON() ([]byte, error) {
2835 type NoMethod GoogleCloudDatalabelingV1beta1ImagePolylineAnnotation
2836 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2837 }
2838
2839
2840
2841 type GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation struct {
2842
2843
2844
2845 AnnotationColors map[string]GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationColors,omitempty"`
2846
2847 ImageBytes string `json:"imageBytes,omitempty"`
2848
2849 MimeType string `json:"mimeType,omitempty"`
2850
2851
2852
2853
2854
2855 ForceSendFields []string `json:"-"`
2856
2857
2858
2859
2860 NullFields []string `json:"-"`
2861 }
2862
2863 func (s *GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation) MarshalJSON() ([]byte, error) {
2864 type NoMethod GoogleCloudDatalabelingV1beta1ImageSegmentationAnnotation
2865 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2866 }
2867
2868
2869
2870 type GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata struct {
2871
2872 CreateTime string `json:"createTime,omitempty"`
2873
2874 Dataset string `json:"dataset,omitempty"`
2875
2876
2877
2878 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
2879
2880
2881
2882
2883
2884 ForceSendFields []string `json:"-"`
2885
2886
2887
2888
2889 NullFields []string `json:"-"`
2890 }
2891
2892 func (s *GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) {
2893 type NoMethod GoogleCloudDatalabelingV1beta1ImportDataOperationMetadata
2894 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2895 }
2896
2897
2898
2899 type GoogleCloudDatalabelingV1beta1ImportDataOperationResponse struct {
2900
2901 Dataset string `json:"dataset,omitempty"`
2902
2903 ImportCount int64 `json:"importCount,omitempty"`
2904
2905 TotalCount int64 `json:"totalCount,omitempty"`
2906
2907
2908
2909
2910
2911 ForceSendFields []string `json:"-"`
2912
2913
2914
2915
2916 NullFields []string `json:"-"`
2917 }
2918
2919 func (s *GoogleCloudDatalabelingV1beta1ImportDataOperationResponse) MarshalJSON() ([]byte, error) {
2920 type NoMethod GoogleCloudDatalabelingV1beta1ImportDataOperationResponse
2921 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2922 }
2923
2924
2925
2926 type GoogleCloudDatalabelingV1beta1ImportDataRequest struct {
2927
2928 InputConfig *GoogleCloudDatalabelingV1beta1InputConfig `json:"inputConfig,omitempty"`
2929
2930
2931 UserEmailAddress string `json:"userEmailAddress,omitempty"`
2932
2933
2934
2935
2936
2937 ForceSendFields []string `json:"-"`
2938
2939
2940
2941
2942 NullFields []string `json:"-"`
2943 }
2944
2945 func (s *GoogleCloudDatalabelingV1beta1ImportDataRequest) MarshalJSON() ([]byte, error) {
2946 type NoMethod GoogleCloudDatalabelingV1beta1ImportDataRequest
2947 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
2948 }
2949
2950
2951
2952 type GoogleCloudDatalabelingV1beta1InputConfig struct {
2953
2954
2955
2956
2957
2958
2959
2960
2961
2962
2963
2964
2965
2966
2967
2968
2969
2970
2971
2972
2973
2974
2975
2976
2977
2978 AnnotationType string `json:"annotationType,omitempty"`
2979
2980
2981 BigquerySource *GoogleCloudDatalabelingV1beta1BigQuerySource `json:"bigquerySource,omitempty"`
2982
2983
2984
2985 ClassificationMetadata *GoogleCloudDatalabelingV1beta1ClassificationMetadata `json:"classificationMetadata,omitempty"`
2986
2987
2988
2989
2990
2991
2992
2993
2994
2995 DataType string `json:"dataType,omitempty"`
2996
2997 GcsSource *GoogleCloudDatalabelingV1beta1GcsSource `json:"gcsSource,omitempty"`
2998
2999 TextMetadata *GoogleCloudDatalabelingV1beta1TextMetadata `json:"textMetadata,omitempty"`
3000
3001
3002
3003
3004
3005 ForceSendFields []string `json:"-"`
3006
3007
3008
3009
3010 NullFields []string `json:"-"`
3011 }
3012
3013 func (s *GoogleCloudDatalabelingV1beta1InputConfig) MarshalJSON() ([]byte, error) {
3014 type NoMethod GoogleCloudDatalabelingV1beta1InputConfig
3015 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3016 }
3017
3018
3019
3020
3021 type GoogleCloudDatalabelingV1beta1Instruction struct {
3022
3023
3024 BlockingResources []string `json:"blockingResources,omitempty"`
3025
3026 CreateTime string `json:"createTime,omitempty"`
3027
3028
3029
3030
3031
3032 CsvInstruction *GoogleCloudDatalabelingV1beta1CsvInstruction `json:"csvInstruction,omitempty"`
3033
3034
3035
3036
3037
3038
3039
3040
3041 DataType string `json:"dataType,omitempty"`
3042
3043
3044 Description string `json:"description,omitempty"`
3045
3046
3047 DisplayName string `json:"displayName,omitempty"`
3048
3049
3050 Name string `json:"name,omitempty"`
3051
3052
3053 PdfInstruction *GoogleCloudDatalabelingV1beta1PdfInstruction `json:"pdfInstruction,omitempty"`
3054
3055 UpdateTime string `json:"updateTime,omitempty"`
3056
3057
3058 googleapi.ServerResponse `json:"-"`
3059
3060
3061
3062
3063
3064 ForceSendFields []string `json:"-"`
3065
3066
3067
3068
3069 NullFields []string `json:"-"`
3070 }
3071
3072 func (s *GoogleCloudDatalabelingV1beta1Instruction) MarshalJSON() ([]byte, error) {
3073 type NoMethod GoogleCloudDatalabelingV1beta1Instruction
3074 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3075 }
3076
3077
3078
3079 type GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata struct {
3080
3081 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3082
3083
3084
3085
3086
3087 ForceSendFields []string `json:"-"`
3088
3089
3090
3091
3092 NullFields []string `json:"-"`
3093 }
3094
3095 func (s *GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
3096 type NoMethod GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata
3097 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3098 }
3099
3100
3101
3102 type GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata struct {
3103
3104 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3105
3106
3107
3108
3109
3110 ForceSendFields []string `json:"-"`
3111
3112
3113
3114
3115 NullFields []string `json:"-"`
3116 }
3117
3118 func (s *GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) {
3119 type NoMethod GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata
3120 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3121 }
3122
3123
3124
3125 type GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata struct {
3126
3127 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3128
3129
3130
3131
3132
3133 ForceSendFields []string `json:"-"`
3134
3135
3136
3137
3138 NullFields []string `json:"-"`
3139 }
3140
3141 func (s *GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
3142 type NoMethod GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata
3143 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3144 }
3145
3146
3147
3148
3149 type GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata struct {
3150
3151 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3152
3153
3154
3155
3156
3157 ForceSendFields []string `json:"-"`
3158
3159
3160
3161
3162 NullFields []string `json:"-"`
3163 }
3164
3165 func (s *GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
3166 type NoMethod GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata
3167 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3168 }
3169
3170
3171
3172 type GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata struct {
3173
3174 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3175
3176
3177
3178
3179
3180 ForceSendFields []string `json:"-"`
3181
3182
3183
3184
3185 NullFields []string `json:"-"`
3186 }
3187
3188 func (s *GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) {
3189 type NoMethod GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata
3190 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3191 }
3192
3193
3194
3195 type GoogleCloudDatalabelingV1beta1LabelImageRequest struct {
3196
3197 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3198
3199
3200
3201 BoundingPolyConfig *GoogleCloudDatalabelingV1beta1BoundingPolyConfig `json:"boundingPolyConfig,omitempty"`
3202
3203
3204
3205
3206
3207
3208
3209
3210
3211
3212
3213
3214
3215
3216
3217 Feature string `json:"feature,omitempty"`
3218
3219
3220
3221 ImageClassificationConfig *GoogleCloudDatalabelingV1beta1ImageClassificationConfig `json:"imageClassificationConfig,omitempty"`
3222
3223
3224
3225 PolylineConfig *GoogleCloudDatalabelingV1beta1PolylineConfig `json:"polylineConfig,omitempty"`
3226
3227
3228
3229 SegmentationConfig *GoogleCloudDatalabelingV1beta1SegmentationConfig `json:"segmentationConfig,omitempty"`
3230
3231
3232
3233
3234
3235 ForceSendFields []string `json:"-"`
3236
3237
3238
3239
3240 NullFields []string `json:"-"`
3241 }
3242
3243 func (s *GoogleCloudDatalabelingV1beta1LabelImageRequest) MarshalJSON() ([]byte, error) {
3244 type NoMethod GoogleCloudDatalabelingV1beta1LabelImageRequest
3245 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3246 }
3247
3248
3249
3250 type GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata struct {
3251
3252 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3253
3254
3255
3256
3257
3258 ForceSendFields []string `json:"-"`
3259
3260
3261
3262
3263 NullFields []string `json:"-"`
3264 }
3265
3266 func (s *GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) {
3267 type NoMethod GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata
3268 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3269 }
3270
3271
3272
3273 type GoogleCloudDatalabelingV1beta1LabelOperationMetadata struct {
3274
3275
3276 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
3277
3278 CreateTime string `json:"createTime,omitempty"`
3279
3280
3281 Dataset string `json:"dataset,omitempty"`
3282
3283 ImageBoundingBoxDetails *GoogleCloudDatalabelingV1beta1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"`
3284
3285 ImageBoundingPolyDetails *GoogleCloudDatalabelingV1beta1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"`
3286
3287 ImageClassificationDetails *GoogleCloudDatalabelingV1beta1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"`
3288
3289
3290 ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1beta1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"`
3291
3292 ImagePolylineDetails *GoogleCloudDatalabelingV1beta1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"`
3293
3294 ImageSegmentationDetails *GoogleCloudDatalabelingV1beta1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"`
3295
3296
3297
3298 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
3299
3300 ProgressPercent int64 `json:"progressPercent,omitempty"`
3301
3302 TextClassificationDetails *GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"`
3303
3304
3305 TextEntityExtractionDetails *GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"`
3306
3307 VideoClassificationDetails *GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"`
3308
3309 VideoEventDetails *GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"`
3310
3311
3312 VideoObjectDetectionDetails *GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"`
3313
3314
3315 VideoObjectTrackingDetails *GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"`
3316
3317
3318
3319
3320
3321 ForceSendFields []string `json:"-"`
3322
3323
3324
3325
3326 NullFields []string `json:"-"`
3327 }
3328
3329 func (s *GoogleCloudDatalabelingV1beta1LabelOperationMetadata) MarshalJSON() ([]byte, error) {
3330 type NoMethod GoogleCloudDatalabelingV1beta1LabelOperationMetadata
3331 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3332 }
3333
3334
3335 type GoogleCloudDatalabelingV1beta1LabelStats struct {
3336
3337
3338
3339
3340
3341 ExampleCount map[string]string `json:"exampleCount,omitempty"`
3342
3343
3344
3345
3346
3347 ForceSendFields []string `json:"-"`
3348
3349
3350
3351
3352 NullFields []string `json:"-"`
3353 }
3354
3355 func (s *GoogleCloudDatalabelingV1beta1LabelStats) MarshalJSON() ([]byte, error) {
3356 type NoMethod GoogleCloudDatalabelingV1beta1LabelStats
3357 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3358 }
3359
3360
3361
3362 type GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata struct {
3363
3364 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3365
3366
3367
3368
3369
3370 ForceSendFields []string `json:"-"`
3371
3372
3373
3374
3375 NullFields []string `json:"-"`
3376 }
3377
3378 func (s *GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
3379 type NoMethod GoogleCloudDatalabelingV1beta1LabelTextClassificationOperationMetadata
3380 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3381 }
3382
3383
3384
3385 type GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata struct {
3386
3387 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3388
3389
3390
3391
3392
3393 ForceSendFields []string `json:"-"`
3394
3395
3396
3397
3398 NullFields []string `json:"-"`
3399 }
3400
3401 func (s *GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) {
3402 type NoMethod GoogleCloudDatalabelingV1beta1LabelTextEntityExtractionOperationMetadata
3403 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3404 }
3405
3406
3407
3408 type GoogleCloudDatalabelingV1beta1LabelTextRequest struct {
3409
3410 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3411
3412
3413
3414
3415
3416
3417 Feature string `json:"feature,omitempty"`
3418
3419
3420 TextClassificationConfig *GoogleCloudDatalabelingV1beta1TextClassificationConfig `json:"textClassificationConfig,omitempty"`
3421
3422
3423 TextEntityExtractionConfig *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig `json:"textEntityExtractionConfig,omitempty"`
3424
3425
3426
3427
3428
3429 ForceSendFields []string `json:"-"`
3430
3431
3432
3433
3434 NullFields []string `json:"-"`
3435 }
3436
3437 func (s *GoogleCloudDatalabelingV1beta1LabelTextRequest) MarshalJSON() ([]byte, error) {
3438 type NoMethod GoogleCloudDatalabelingV1beta1LabelTextRequest
3439 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3440 }
3441
3442
3443
3444 type GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata struct {
3445
3446 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3447
3448
3449
3450
3451
3452 ForceSendFields []string `json:"-"`
3453
3454
3455
3456
3457 NullFields []string `json:"-"`
3458 }
3459
3460 func (s *GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
3461 type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoClassificationOperationMetadata
3462 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3463 }
3464
3465
3466
3467 type GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata struct {
3468
3469 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3470
3471
3472
3473
3474
3475 ForceSendFields []string `json:"-"`
3476
3477
3478
3479
3480 NullFields []string `json:"-"`
3481 }
3482
3483 func (s *GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) {
3484 type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoEventOperationMetadata
3485 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3486 }
3487
3488
3489
3490 type GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata struct {
3491
3492 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3493
3494
3495
3496
3497
3498 ForceSendFields []string `json:"-"`
3499
3500
3501
3502
3503 NullFields []string `json:"-"`
3504 }
3505
3506 func (s *GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) {
3507 type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoObjectDetectionOperationMetadata
3508 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3509 }
3510
3511
3512
3513 type GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata struct {
3514
3515 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3516
3517
3518
3519
3520
3521 ForceSendFields []string `json:"-"`
3522
3523
3524
3525
3526 NullFields []string `json:"-"`
3527 }
3528
3529 func (s *GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) {
3530 type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoObjectTrackingOperationMetadata
3531 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3532 }
3533
3534
3535
3536 type GoogleCloudDatalabelingV1beta1LabelVideoRequest struct {
3537
3538 BasicConfig *GoogleCloudDatalabelingV1beta1HumanAnnotationConfig `json:"basicConfig,omitempty"`
3539
3540
3541
3542 EventConfig *GoogleCloudDatalabelingV1beta1EventConfig `json:"eventConfig,omitempty"`
3543
3544
3545
3546
3547
3548
3549
3550
3551
3552
3553 Feature string `json:"feature,omitempty"`
3554
3555
3556
3557 ObjectDetectionConfig *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig `json:"objectDetectionConfig,omitempty"`
3558
3559
3560
3561 ObjectTrackingConfig *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig `json:"objectTrackingConfig,omitempty"`
3562
3563
3564
3565 VideoClassificationConfig *GoogleCloudDatalabelingV1beta1VideoClassificationConfig `json:"videoClassificationConfig,omitempty"`
3566
3567
3568
3569
3570
3571 ForceSendFields []string `json:"-"`
3572
3573
3574
3575
3576 NullFields []string `json:"-"`
3577 }
3578
3579 func (s *GoogleCloudDatalabelingV1beta1LabelVideoRequest) MarshalJSON() ([]byte, error) {
3580 type NoMethod GoogleCloudDatalabelingV1beta1LabelVideoRequest
3581 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3582 }
3583
3584
3585
3586 type GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse struct {
3587
3588 AnnotatedDatasets []*GoogleCloudDatalabelingV1beta1AnnotatedDataset `json:"annotatedDatasets,omitempty"`
3589
3590 NextPageToken string `json:"nextPageToken,omitempty"`
3591
3592
3593 googleapi.ServerResponse `json:"-"`
3594
3595
3596
3597
3598
3599 ForceSendFields []string `json:"-"`
3600
3601
3602
3603
3604 NullFields []string `json:"-"`
3605 }
3606
3607 func (s *GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse) MarshalJSON() ([]byte, error) {
3608 type NoMethod GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse
3609 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3610 }
3611
3612
3613
3614 type GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse struct {
3615
3616 AnnotationSpecSets []*GoogleCloudDatalabelingV1beta1AnnotationSpecSet `json:"annotationSpecSets,omitempty"`
3617
3618 NextPageToken string `json:"nextPageToken,omitempty"`
3619
3620
3621 googleapi.ServerResponse `json:"-"`
3622
3623
3624
3625
3626
3627 ForceSendFields []string `json:"-"`
3628
3629
3630
3631
3632 NullFields []string `json:"-"`
3633 }
3634
3635 func (s *GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse) MarshalJSON() ([]byte, error) {
3636 type NoMethod GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse
3637 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3638 }
3639
3640
3641
3642 type GoogleCloudDatalabelingV1beta1ListDataItemsResponse struct {
3643
3644 DataItems []*GoogleCloudDatalabelingV1beta1DataItem `json:"dataItems,omitempty"`
3645
3646 NextPageToken string `json:"nextPageToken,omitempty"`
3647
3648
3649 googleapi.ServerResponse `json:"-"`
3650
3651
3652
3653
3654
3655 ForceSendFields []string `json:"-"`
3656
3657
3658
3659
3660 NullFields []string `json:"-"`
3661 }
3662
3663 func (s *GoogleCloudDatalabelingV1beta1ListDataItemsResponse) MarshalJSON() ([]byte, error) {
3664 type NoMethod GoogleCloudDatalabelingV1beta1ListDataItemsResponse
3665 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3666 }
3667
3668
3669
3670 type GoogleCloudDatalabelingV1beta1ListDatasetsResponse struct {
3671
3672 Datasets []*GoogleCloudDatalabelingV1beta1Dataset `json:"datasets,omitempty"`
3673
3674 NextPageToken string `json:"nextPageToken,omitempty"`
3675
3676
3677 googleapi.ServerResponse `json:"-"`
3678
3679
3680
3681
3682
3683 ForceSendFields []string `json:"-"`
3684
3685
3686
3687
3688 NullFields []string `json:"-"`
3689 }
3690
3691 func (s *GoogleCloudDatalabelingV1beta1ListDatasetsResponse) MarshalJSON() ([]byte, error) {
3692 type NoMethod GoogleCloudDatalabelingV1beta1ListDatasetsResponse
3693 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3694 }
3695
3696
3697
3698 type GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse struct {
3699
3700 EvaluationJobs []*GoogleCloudDatalabelingV1beta1EvaluationJob `json:"evaluationJobs,omitempty"`
3701
3702 NextPageToken string `json:"nextPageToken,omitempty"`
3703
3704
3705 googleapi.ServerResponse `json:"-"`
3706
3707
3708
3709
3710
3711 ForceSendFields []string `json:"-"`
3712
3713
3714
3715
3716 NullFields []string `json:"-"`
3717 }
3718
3719 func (s *GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse) MarshalJSON() ([]byte, error) {
3720 type NoMethod GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse
3721 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3722 }
3723
3724
3725
3726 type GoogleCloudDatalabelingV1beta1ListExamplesResponse struct {
3727
3728 Examples []*GoogleCloudDatalabelingV1beta1Example `json:"examples,omitempty"`
3729
3730 NextPageToken string `json:"nextPageToken,omitempty"`
3731
3732
3733 googleapi.ServerResponse `json:"-"`
3734
3735
3736
3737
3738
3739 ForceSendFields []string `json:"-"`
3740
3741
3742
3743
3744 NullFields []string `json:"-"`
3745 }
3746
3747 func (s *GoogleCloudDatalabelingV1beta1ListExamplesResponse) MarshalJSON() ([]byte, error) {
3748 type NoMethod GoogleCloudDatalabelingV1beta1ListExamplesResponse
3749 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3750 }
3751
3752
3753
3754 type GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse struct {
3755
3756 FeedbackMessages []*GoogleCloudDatalabelingV1beta1FeedbackMessage `json:"feedbackMessages,omitempty"`
3757
3758 NextPageToken string `json:"nextPageToken,omitempty"`
3759
3760
3761 googleapi.ServerResponse `json:"-"`
3762
3763
3764
3765
3766
3767 ForceSendFields []string `json:"-"`
3768
3769
3770
3771
3772 NullFields []string `json:"-"`
3773 }
3774
3775 func (s *GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse) MarshalJSON() ([]byte, error) {
3776 type NoMethod GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse
3777 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3778 }
3779
3780
3781
3782 type GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse struct {
3783
3784 FeedbackThreads []*GoogleCloudDatalabelingV1beta1FeedbackThread `json:"feedbackThreads,omitempty"`
3785
3786 NextPageToken string `json:"nextPageToken,omitempty"`
3787
3788
3789 googleapi.ServerResponse `json:"-"`
3790
3791
3792
3793
3794
3795 ForceSendFields []string `json:"-"`
3796
3797
3798
3799
3800 NullFields []string `json:"-"`
3801 }
3802
3803 func (s *GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse) MarshalJSON() ([]byte, error) {
3804 type NoMethod GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse
3805 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3806 }
3807
3808
3809
3810 type GoogleCloudDatalabelingV1beta1ListInstructionsResponse struct {
3811
3812 Instructions []*GoogleCloudDatalabelingV1beta1Instruction `json:"instructions,omitempty"`
3813
3814 NextPageToken string `json:"nextPageToken,omitempty"`
3815
3816
3817 googleapi.ServerResponse `json:"-"`
3818
3819
3820
3821
3822
3823 ForceSendFields []string `json:"-"`
3824
3825
3826
3827
3828 NullFields []string `json:"-"`
3829 }
3830
3831 func (s *GoogleCloudDatalabelingV1beta1ListInstructionsResponse) MarshalJSON() ([]byte, error) {
3832 type NoMethod GoogleCloudDatalabelingV1beta1ListInstructionsResponse
3833 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3834 }
3835
3836
3837
3838 type GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly struct {
3839
3840 NormalizedVertices []*GoogleCloudDatalabelingV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
3841
3842
3843
3844
3845
3846 ForceSendFields []string `json:"-"`
3847
3848
3849
3850
3851 NullFields []string `json:"-"`
3852 }
3853
3854 func (s *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly) MarshalJSON() ([]byte, error) {
3855 type NoMethod GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly
3856 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3857 }
3858
3859
3860 type GoogleCloudDatalabelingV1beta1NormalizedPolyline struct {
3861
3862 NormalizedVertices []*GoogleCloudDatalabelingV1beta1NormalizedVertex `json:"normalizedVertices,omitempty"`
3863
3864
3865
3866
3867
3868 ForceSendFields []string `json:"-"`
3869
3870
3871
3872
3873 NullFields []string `json:"-"`
3874 }
3875
3876 func (s *GoogleCloudDatalabelingV1beta1NormalizedPolyline) MarshalJSON() ([]byte, error) {
3877 type NoMethod GoogleCloudDatalabelingV1beta1NormalizedPolyline
3878 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3879 }
3880
3881
3882
3883
3884 type GoogleCloudDatalabelingV1beta1NormalizedVertex struct {
3885
3886 X float64 `json:"x,omitempty"`
3887
3888 Y float64 `json:"y,omitempty"`
3889
3890
3891
3892
3893
3894 ForceSendFields []string `json:"-"`
3895
3896
3897
3898
3899 NullFields []string `json:"-"`
3900 }
3901
3902 func (s *GoogleCloudDatalabelingV1beta1NormalizedVertex) MarshalJSON() ([]byte, error) {
3903 type NoMethod GoogleCloudDatalabelingV1beta1NormalizedVertex
3904 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3905 }
3906
3907 func (s *GoogleCloudDatalabelingV1beta1NormalizedVertex) UnmarshalJSON(data []byte) error {
3908 type NoMethod GoogleCloudDatalabelingV1beta1NormalizedVertex
3909 var s1 struct {
3910 X gensupport.JSONFloat64 `json:"x"`
3911 Y gensupport.JSONFloat64 `json:"y"`
3912 *NoMethod
3913 }
3914 s1.NoMethod = (*NoMethod)(s)
3915 if err := json.Unmarshal(data, &s1); err != nil {
3916 return err
3917 }
3918 s.X = float64(s1.X)
3919 s.Y = float64(s1.Y)
3920 return nil
3921 }
3922
3923
3924
3925
3926
3927
3928 type GoogleCloudDatalabelingV1beta1ObjectDetectionConfig struct {
3929
3930 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
3931
3932
3933 ExtractionFrameRate float64 `json:"extractionFrameRate,omitempty"`
3934
3935
3936
3937
3938
3939 ForceSendFields []string `json:"-"`
3940
3941
3942
3943
3944 NullFields []string `json:"-"`
3945 }
3946
3947 func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig) MarshalJSON() ([]byte, error) {
3948 type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionConfig
3949 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3950 }
3951
3952 func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionConfig) UnmarshalJSON(data []byte) error {
3953 type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionConfig
3954 var s1 struct {
3955 ExtractionFrameRate gensupport.JSONFloat64 `json:"extractionFrameRate"`
3956 *NoMethod
3957 }
3958 s1.NoMethod = (*NoMethod)(s)
3959 if err := json.Unmarshal(data, &s1); err != nil {
3960 return err
3961 }
3962 s.ExtractionFrameRate = float64(s1.ExtractionFrameRate)
3963 return nil
3964 }
3965
3966
3967
3968 type GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics struct {
3969
3970 PrCurve *GoogleCloudDatalabelingV1beta1PrCurve `json:"prCurve,omitempty"`
3971
3972
3973
3974
3975
3976 ForceSendFields []string `json:"-"`
3977
3978
3979
3980
3981 NullFields []string `json:"-"`
3982 }
3983
3984 func (s *GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics) MarshalJSON() ([]byte, error) {
3985 type NoMethod GoogleCloudDatalabelingV1beta1ObjectDetectionMetrics
3986 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
3987 }
3988
3989
3990
3991 type GoogleCloudDatalabelingV1beta1ObjectTrackingConfig struct {
3992
3993 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
3994
3995
3996
3997 ClipLength int64 `json:"clipLength,omitempty"`
3998
3999
4000 OverlapLength int64 `json:"overlapLength,omitempty"`
4001
4002
4003
4004
4005
4006 ForceSendFields []string `json:"-"`
4007
4008
4009
4010
4011 NullFields []string `json:"-"`
4012 }
4013
4014 func (s *GoogleCloudDatalabelingV1beta1ObjectTrackingConfig) MarshalJSON() ([]byte, error) {
4015 type NoMethod GoogleCloudDatalabelingV1beta1ObjectTrackingConfig
4016 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4017 }
4018
4019
4020
4021 type GoogleCloudDatalabelingV1beta1ObjectTrackingFrame struct {
4022 BoundingPoly *GoogleCloudDatalabelingV1beta1BoundingPoly `json:"boundingPoly,omitempty"`
4023 NormalizedBoundingPoly *GoogleCloudDatalabelingV1beta1NormalizedBoundingPoly `json:"normalizedBoundingPoly,omitempty"`
4024
4025
4026 TimeOffset string `json:"timeOffset,omitempty"`
4027
4028
4029
4030
4031
4032 ForceSendFields []string `json:"-"`
4033
4034
4035
4036
4037 NullFields []string `json:"-"`
4038 }
4039
4040 func (s *GoogleCloudDatalabelingV1beta1ObjectTrackingFrame) MarshalJSON() ([]byte, error) {
4041 type NoMethod GoogleCloudDatalabelingV1beta1ObjectTrackingFrame
4042 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4043 }
4044
4045
4046
4047 type GoogleCloudDatalabelingV1beta1OperatorFeedbackMetadata struct {
4048 }
4049
4050
4051
4052 type GoogleCloudDatalabelingV1beta1OperatorMetadata struct {
4053
4054 Comments []string `json:"comments,omitempty"`
4055
4056 LabelVotes int64 `json:"labelVotes,omitempty"`
4057
4058
4059
4060 Score float64 `json:"score,omitempty"`
4061
4062 TotalVotes int64 `json:"totalVotes,omitempty"`
4063
4064
4065
4066
4067
4068 ForceSendFields []string `json:"-"`
4069
4070
4071
4072
4073 NullFields []string `json:"-"`
4074 }
4075
4076 func (s *GoogleCloudDatalabelingV1beta1OperatorMetadata) MarshalJSON() ([]byte, error) {
4077 type NoMethod GoogleCloudDatalabelingV1beta1OperatorMetadata
4078 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4079 }
4080
4081 func (s *GoogleCloudDatalabelingV1beta1OperatorMetadata) UnmarshalJSON(data []byte) error {
4082 type NoMethod GoogleCloudDatalabelingV1beta1OperatorMetadata
4083 var s1 struct {
4084 Score gensupport.JSONFloat64 `json:"score"`
4085 *NoMethod
4086 }
4087 s1.NoMethod = (*NoMethod)(s)
4088 if err := json.Unmarshal(data, &s1); err != nil {
4089 return err
4090 }
4091 s.Score = float64(s1.Score)
4092 return nil
4093 }
4094
4095
4096
4097 type GoogleCloudDatalabelingV1beta1OutputConfig struct {
4098
4099
4100 GcsDestination *GoogleCloudDatalabelingV1beta1GcsDestination `json:"gcsDestination,omitempty"`
4101
4102
4103 GcsFolderDestination *GoogleCloudDatalabelingV1beta1GcsFolderDestination `json:"gcsFolderDestination,omitempty"`
4104
4105
4106
4107
4108
4109 ForceSendFields []string `json:"-"`
4110
4111
4112
4113
4114 NullFields []string `json:"-"`
4115 }
4116
4117 func (s *GoogleCloudDatalabelingV1beta1OutputConfig) MarshalJSON() ([]byte, error) {
4118 type NoMethod GoogleCloudDatalabelingV1beta1OutputConfig
4119 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4120 }
4121
4122
4123
4124 type GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest struct {
4125 }
4126
4127
4128 type GoogleCloudDatalabelingV1beta1PdfInstruction struct {
4129
4130 GcsFileUri string `json:"gcsFileUri,omitempty"`
4131
4132
4133
4134
4135
4136 ForceSendFields []string `json:"-"`
4137
4138
4139
4140
4141 NullFields []string `json:"-"`
4142 }
4143
4144 func (s *GoogleCloudDatalabelingV1beta1PdfInstruction) MarshalJSON() ([]byte, error) {
4145 type NoMethod GoogleCloudDatalabelingV1beta1PdfInstruction
4146 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4147 }
4148
4149
4150 type GoogleCloudDatalabelingV1beta1Polyline struct {
4151
4152 Vertices []*GoogleCloudDatalabelingV1beta1Vertex `json:"vertices,omitempty"`
4153
4154
4155
4156
4157
4158 ForceSendFields []string `json:"-"`
4159
4160
4161
4162
4163 NullFields []string `json:"-"`
4164 }
4165
4166 func (s *GoogleCloudDatalabelingV1beta1Polyline) MarshalJSON() ([]byte, error) {
4167 type NoMethod GoogleCloudDatalabelingV1beta1Polyline
4168 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4169 }
4170
4171
4172
4173 type GoogleCloudDatalabelingV1beta1PolylineConfig struct {
4174
4175 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
4176
4177 InstructionMessage string `json:"instructionMessage,omitempty"`
4178
4179
4180
4181
4182
4183 ForceSendFields []string `json:"-"`
4184
4185
4186
4187
4188 NullFields []string `json:"-"`
4189 }
4190
4191 func (s *GoogleCloudDatalabelingV1beta1PolylineConfig) MarshalJSON() ([]byte, error) {
4192 type NoMethod GoogleCloudDatalabelingV1beta1PolylineConfig
4193 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4194 }
4195
4196 type GoogleCloudDatalabelingV1beta1PrCurve struct {
4197
4198
4199
4200 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
4201
4202
4203 AreaUnderCurve float64 `json:"areaUnderCurve,omitempty"`
4204
4205
4206
4207 ConfidenceMetricsEntries []*GoogleCloudDatalabelingV1beta1ConfidenceMetricsEntry `json:"confidenceMetricsEntries,omitempty"`
4208
4209 MeanAveragePrecision float64 `json:"meanAveragePrecision,omitempty"`
4210
4211
4212
4213
4214
4215 ForceSendFields []string `json:"-"`
4216
4217
4218
4219
4220 NullFields []string `json:"-"`
4221 }
4222
4223 func (s *GoogleCloudDatalabelingV1beta1PrCurve) MarshalJSON() ([]byte, error) {
4224 type NoMethod GoogleCloudDatalabelingV1beta1PrCurve
4225 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4226 }
4227
4228 func (s *GoogleCloudDatalabelingV1beta1PrCurve) UnmarshalJSON(data []byte) error {
4229 type NoMethod GoogleCloudDatalabelingV1beta1PrCurve
4230 var s1 struct {
4231 AreaUnderCurve gensupport.JSONFloat64 `json:"areaUnderCurve"`
4232 MeanAveragePrecision gensupport.JSONFloat64 `json:"meanAveragePrecision"`
4233 *NoMethod
4234 }
4235 s1.NoMethod = (*NoMethod)(s)
4236 if err := json.Unmarshal(data, &s1); err != nil {
4237 return err
4238 }
4239 s.AreaUnderCurve = float64(s1.AreaUnderCurve)
4240 s.MeanAveragePrecision = float64(s1.MeanAveragePrecision)
4241 return nil
4242 }
4243
4244
4245
4246 type GoogleCloudDatalabelingV1beta1RequesterFeedbackMetadata struct {
4247 }
4248
4249
4250
4251 type GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest struct {
4252 }
4253
4254
4255
4256 type GoogleCloudDatalabelingV1beta1Row struct {
4257
4258 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
4259
4260
4261 Entries []*GoogleCloudDatalabelingV1beta1ConfusionMatrixEntry `json:"entries,omitempty"`
4262
4263
4264
4265
4266
4267 ForceSendFields []string `json:"-"`
4268
4269
4270
4271
4272 NullFields []string `json:"-"`
4273 }
4274
4275 func (s *GoogleCloudDatalabelingV1beta1Row) MarshalJSON() ([]byte, error) {
4276 type NoMethod GoogleCloudDatalabelingV1beta1Row
4277 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4278 }
4279
4280
4281
4282 type GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse struct {
4283
4284 Evaluations []*GoogleCloudDatalabelingV1beta1Evaluation `json:"evaluations,omitempty"`
4285
4286 NextPageToken string `json:"nextPageToken,omitempty"`
4287
4288
4289 googleapi.ServerResponse `json:"-"`
4290
4291
4292
4293
4294
4295 ForceSendFields []string `json:"-"`
4296
4297
4298
4299
4300 NullFields []string `json:"-"`
4301 }
4302
4303 func (s *GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse) MarshalJSON() ([]byte, error) {
4304 type NoMethod GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse
4305 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4306 }
4307
4308
4309
4310 type GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest struct {
4311
4312
4313 PageSize int64 `json:"pageSize,omitempty"`
4314
4315
4316
4317
4318 PageToken string `json:"pageToken,omitempty"`
4319
4320
4321
4322
4323
4324 ForceSendFields []string `json:"-"`
4325
4326
4327
4328
4329 NullFields []string `json:"-"`
4330 }
4331
4332 func (s *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest) MarshalJSON() ([]byte, error) {
4333 type NoMethod GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest
4334 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4335 }
4336
4337
4338
4339 type GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse struct {
4340
4341
4342 ExampleComparisons []*GoogleCloudDatalabelingV1beta1ExampleComparison `json:"exampleComparisons,omitempty"`
4343
4344 NextPageToken string `json:"nextPageToken,omitempty"`
4345
4346
4347 googleapi.ServerResponse `json:"-"`
4348
4349
4350
4351
4352
4353 ForceSendFields []string `json:"-"`
4354
4355
4356
4357
4358 NullFields []string `json:"-"`
4359 }
4360
4361 func (s *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse) MarshalJSON() ([]byte, error) {
4362 type NoMethod GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse
4363 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4364 }
4365
4366
4367
4368 type GoogleCloudDatalabelingV1beta1SegmentationConfig struct {
4369
4370
4371 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
4372
4373 InstructionMessage string `json:"instructionMessage,omitempty"`
4374
4375
4376
4377
4378
4379 ForceSendFields []string `json:"-"`
4380
4381
4382
4383
4384 NullFields []string `json:"-"`
4385 }
4386
4387 func (s *GoogleCloudDatalabelingV1beta1SegmentationConfig) MarshalJSON() ([]byte, error) {
4388 type NoMethod GoogleCloudDatalabelingV1beta1SegmentationConfig
4389 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4390 }
4391
4392
4393
4394 type GoogleCloudDatalabelingV1beta1SentimentConfig struct {
4395
4396
4397
4398 EnableLabelSentimentSelection bool `json:"enableLabelSentimentSelection,omitempty"`
4399
4400
4401
4402
4403
4404 ForceSendFields []string `json:"-"`
4405
4406
4407
4408
4409 NullFields []string `json:"-"`
4410 }
4411
4412 func (s *GoogleCloudDatalabelingV1beta1SentimentConfig) MarshalJSON() ([]byte, error) {
4413 type NoMethod GoogleCloudDatalabelingV1beta1SentimentConfig
4414 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4415 }
4416
4417
4418
4419 type GoogleCloudDatalabelingV1beta1SequentialSegment struct {
4420
4421 End int64 `json:"end,omitempty"`
4422
4423 Start int64 `json:"start,omitempty"`
4424
4425
4426
4427
4428
4429 ForceSendFields []string `json:"-"`
4430
4431
4432
4433
4434 NullFields []string `json:"-"`
4435 }
4436
4437 func (s *GoogleCloudDatalabelingV1beta1SequentialSegment) MarshalJSON() ([]byte, error) {
4438 type NoMethod GoogleCloudDatalabelingV1beta1SequentialSegment
4439 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4440 }
4441
4442
4443
4444 type GoogleCloudDatalabelingV1beta1TextClassificationAnnotation struct {
4445
4446 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
4447
4448
4449
4450
4451
4452 ForceSendFields []string `json:"-"`
4453
4454
4455
4456
4457 NullFields []string `json:"-"`
4458 }
4459
4460 func (s *GoogleCloudDatalabelingV1beta1TextClassificationAnnotation) MarshalJSON() ([]byte, error) {
4461 type NoMethod GoogleCloudDatalabelingV1beta1TextClassificationAnnotation
4462 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4463 }
4464
4465
4466
4467 type GoogleCloudDatalabelingV1beta1TextClassificationConfig struct {
4468
4469
4470 AllowMultiLabel bool `json:"allowMultiLabel,omitempty"`
4471
4472 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
4473
4474
4475 SentimentConfig *GoogleCloudDatalabelingV1beta1SentimentConfig `json:"sentimentConfig,omitempty"`
4476
4477
4478
4479
4480
4481 ForceSendFields []string `json:"-"`
4482
4483
4484
4485
4486 NullFields []string `json:"-"`
4487 }
4488
4489 func (s *GoogleCloudDatalabelingV1beta1TextClassificationConfig) MarshalJSON() ([]byte, error) {
4490 type NoMethod GoogleCloudDatalabelingV1beta1TextClassificationConfig
4491 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4492 }
4493
4494
4495
4496 type GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation struct {
4497
4498 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
4499
4500 SequentialSegment *GoogleCloudDatalabelingV1beta1SequentialSegment `json:"sequentialSegment,omitempty"`
4501
4502
4503
4504
4505
4506 ForceSendFields []string `json:"-"`
4507
4508
4509
4510
4511 NullFields []string `json:"-"`
4512 }
4513
4514 func (s *GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation) MarshalJSON() ([]byte, error) {
4515 type NoMethod GoogleCloudDatalabelingV1beta1TextEntityExtractionAnnotation
4516 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4517 }
4518
4519
4520
4521 type GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig struct {
4522
4523 AnnotationSpecSet string `json:"annotationSpecSet,omitempty"`
4524
4525
4526
4527
4528
4529 ForceSendFields []string `json:"-"`
4530
4531
4532
4533
4534 NullFields []string `json:"-"`
4535 }
4536
4537 func (s *GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig) MarshalJSON() ([]byte, error) {
4538 type NoMethod GoogleCloudDatalabelingV1beta1TextEntityExtractionConfig
4539 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4540 }
4541
4542
4543 type GoogleCloudDatalabelingV1beta1TextMetadata struct {
4544
4545
4546 LanguageCode string `json:"languageCode,omitempty"`
4547
4548
4549
4550
4551
4552 ForceSendFields []string `json:"-"`
4553
4554
4555
4556
4557 NullFields []string `json:"-"`
4558 }
4559
4560 func (s *GoogleCloudDatalabelingV1beta1TextMetadata) MarshalJSON() ([]byte, error) {
4561 type NoMethod GoogleCloudDatalabelingV1beta1TextMetadata
4562 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4563 }
4564
4565
4566
4567 type GoogleCloudDatalabelingV1beta1TextPayload struct {
4568
4569 TextContent string `json:"textContent,omitempty"`
4570
4571
4572
4573
4574
4575 ForceSendFields []string `json:"-"`
4576
4577
4578
4579
4580 NullFields []string `json:"-"`
4581 }
4582
4583 func (s *GoogleCloudDatalabelingV1beta1TextPayload) MarshalJSON() ([]byte, error) {
4584 type NoMethod GoogleCloudDatalabelingV1beta1TextPayload
4585 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4586 }
4587
4588
4589
4590 type GoogleCloudDatalabelingV1beta1TimeSegment struct {
4591
4592
4593 EndTimeOffset string `json:"endTimeOffset,omitempty"`
4594
4595
4596 StartTimeOffset string `json:"startTimeOffset,omitempty"`
4597
4598
4599
4600
4601
4602 ForceSendFields []string `json:"-"`
4603
4604
4605
4606
4607 NullFields []string `json:"-"`
4608 }
4609
4610 func (s *GoogleCloudDatalabelingV1beta1TimeSegment) MarshalJSON() ([]byte, error) {
4611 type NoMethod GoogleCloudDatalabelingV1beta1TimeSegment
4612 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4613 }
4614
4615
4616
4617
4618 type GoogleCloudDatalabelingV1beta1Vertex struct {
4619
4620 X int64 `json:"x,omitempty"`
4621
4622 Y int64 `json:"y,omitempty"`
4623
4624
4625
4626
4627
4628 ForceSendFields []string `json:"-"`
4629
4630
4631
4632
4633 NullFields []string `json:"-"`
4634 }
4635
4636 func (s *GoogleCloudDatalabelingV1beta1Vertex) MarshalJSON() ([]byte, error) {
4637 type NoMethod GoogleCloudDatalabelingV1beta1Vertex
4638 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4639 }
4640
4641
4642
4643 type GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation struct {
4644
4645 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
4646
4647 TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"`
4648
4649
4650
4651
4652
4653 ForceSendFields []string `json:"-"`
4654
4655
4656
4657
4658 NullFields []string `json:"-"`
4659 }
4660
4661 func (s *GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation) MarshalJSON() ([]byte, error) {
4662 type NoMethod GoogleCloudDatalabelingV1beta1VideoClassificationAnnotation
4663 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4664 }
4665
4666
4667
4668
4669
4670
4671 type GoogleCloudDatalabelingV1beta1VideoClassificationConfig struct {
4672
4673
4674
4675
4676
4677
4678 AnnotationSpecSetConfigs []*GoogleCloudDatalabelingV1beta1AnnotationSpecSetConfig `json:"annotationSpecSetConfigs,omitempty"`
4679
4680 ApplyShotDetection bool `json:"applyShotDetection,omitempty"`
4681
4682
4683
4684
4685
4686 ForceSendFields []string `json:"-"`
4687
4688
4689
4690
4691 NullFields []string `json:"-"`
4692 }
4693
4694 func (s *GoogleCloudDatalabelingV1beta1VideoClassificationConfig) MarshalJSON() ([]byte, error) {
4695 type NoMethod GoogleCloudDatalabelingV1beta1VideoClassificationConfig
4696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4697 }
4698
4699
4700 type GoogleCloudDatalabelingV1beta1VideoEventAnnotation struct {
4701
4702 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
4703
4704 TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"`
4705
4706
4707
4708
4709
4710 ForceSendFields []string `json:"-"`
4711
4712
4713
4714
4715 NullFields []string `json:"-"`
4716 }
4717
4718 func (s *GoogleCloudDatalabelingV1beta1VideoEventAnnotation) MarshalJSON() ([]byte, error) {
4719 type NoMethod GoogleCloudDatalabelingV1beta1VideoEventAnnotation
4720 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4721 }
4722
4723
4724
4725 type GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation struct {
4726
4727 AnnotationSpec *GoogleCloudDatalabelingV1beta1AnnotationSpec `json:"annotationSpec,omitempty"`
4728
4729 ObjectTrackingFrames []*GoogleCloudDatalabelingV1beta1ObjectTrackingFrame `json:"objectTrackingFrames,omitempty"`
4730
4731 TimeSegment *GoogleCloudDatalabelingV1beta1TimeSegment `json:"timeSegment,omitempty"`
4732
4733
4734
4735
4736
4737 ForceSendFields []string `json:"-"`
4738
4739
4740
4741
4742 NullFields []string `json:"-"`
4743 }
4744
4745 func (s *GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation) MarshalJSON() ([]byte, error) {
4746 type NoMethod GoogleCloudDatalabelingV1beta1VideoObjectTrackingAnnotation
4747 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4748 }
4749
4750
4751
4752 type GoogleCloudDatalabelingV1beta1VideoPayload struct {
4753
4754 FrameRate float64 `json:"frameRate,omitempty"`
4755
4756 MimeType string `json:"mimeType,omitempty"`
4757
4758 SignedUri string `json:"signedUri,omitempty"`
4759
4760 VideoThumbnails []*GoogleCloudDatalabelingV1beta1VideoThumbnail `json:"videoThumbnails,omitempty"`
4761
4762 VideoUri string `json:"videoUri,omitempty"`
4763
4764
4765
4766
4767
4768 ForceSendFields []string `json:"-"`
4769
4770
4771
4772
4773 NullFields []string `json:"-"`
4774 }
4775
4776 func (s *GoogleCloudDatalabelingV1beta1VideoPayload) MarshalJSON() ([]byte, error) {
4777 type NoMethod GoogleCloudDatalabelingV1beta1VideoPayload
4778 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4779 }
4780
4781 func (s *GoogleCloudDatalabelingV1beta1VideoPayload) UnmarshalJSON(data []byte) error {
4782 type NoMethod GoogleCloudDatalabelingV1beta1VideoPayload
4783 var s1 struct {
4784 FrameRate gensupport.JSONFloat64 `json:"frameRate"`
4785 *NoMethod
4786 }
4787 s1.NoMethod = (*NoMethod)(s)
4788 if err := json.Unmarshal(data, &s1); err != nil {
4789 return err
4790 }
4791 s.FrameRate = float64(s1.FrameRate)
4792 return nil
4793 }
4794
4795
4796
4797 type GoogleCloudDatalabelingV1beta1VideoThumbnail struct {
4798
4799 Thumbnail string `json:"thumbnail,omitempty"`
4800
4801
4802
4803 TimeOffset string `json:"timeOffset,omitempty"`
4804
4805
4806
4807
4808
4809 ForceSendFields []string `json:"-"`
4810
4811
4812
4813
4814 NullFields []string `json:"-"`
4815 }
4816
4817 func (s *GoogleCloudDatalabelingV1beta1VideoThumbnail) MarshalJSON() ([]byte, error) {
4818 type NoMethod GoogleCloudDatalabelingV1beta1VideoThumbnail
4819 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4820 }
4821
4822
4823
4824 type GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata struct {
4825
4826 CreateTime string `json:"createTime,omitempty"`
4827
4828
4829 Instruction string `json:"instruction,omitempty"`
4830
4831
4832
4833 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
4834
4835
4836
4837
4838
4839 ForceSendFields []string `json:"-"`
4840
4841
4842
4843
4844 NullFields []string `json:"-"`
4845 }
4846
4847 func (s *GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) {
4848 type NoMethod GoogleCloudDatalabelingV1p1alpha1CreateInstructionMetadata
4849 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4850 }
4851
4852
4853
4854 type GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata struct {
4855
4856
4857 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
4858
4859 CreateTime string `json:"createTime,omitempty"`
4860
4861
4862 Dataset string `json:"dataset,omitempty"`
4863
4864
4865
4866 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
4867
4868
4869
4870
4871
4872 ForceSendFields []string `json:"-"`
4873
4874
4875
4876
4877 NullFields []string `json:"-"`
4878 }
4879
4880 func (s *GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) {
4881 type NoMethod GoogleCloudDatalabelingV1p1alpha1ExportDataOperationMetadata
4882 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4883 }
4884
4885
4886
4887 type GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse struct {
4888
4889
4890 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
4891
4892 Dataset string `json:"dataset,omitempty"`
4893
4894 ExportCount int64 `json:"exportCount,omitempty"`
4895
4896 LabelStats *GoogleCloudDatalabelingV1p1alpha1LabelStats `json:"labelStats,omitempty"`
4897
4898 OutputConfig *GoogleCloudDatalabelingV1p1alpha1OutputConfig `json:"outputConfig,omitempty"`
4899
4900 TotalCount int64 `json:"totalCount,omitempty"`
4901
4902
4903
4904
4905
4906 ForceSendFields []string `json:"-"`
4907
4908
4909
4910
4911 NullFields []string `json:"-"`
4912 }
4913
4914 func (s *GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) {
4915 type NoMethod GoogleCloudDatalabelingV1p1alpha1ExportDataOperationResponse
4916 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4917 }
4918
4919
4920
4921 type GoogleCloudDatalabelingV1p1alpha1GcsDestination struct {
4922
4923
4924 MimeType string `json:"mimeType,omitempty"`
4925
4926 OutputUri string `json:"outputUri,omitempty"`
4927
4928
4929
4930
4931
4932 ForceSendFields []string `json:"-"`
4933
4934
4935
4936
4937 NullFields []string `json:"-"`
4938 }
4939
4940 func (s *GoogleCloudDatalabelingV1p1alpha1GcsDestination) MarshalJSON() ([]byte, error) {
4941 type NoMethod GoogleCloudDatalabelingV1p1alpha1GcsDestination
4942 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4943 }
4944
4945
4946
4947 type GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination struct {
4948
4949 OutputFolderUri string `json:"outputFolderUri,omitempty"`
4950
4951
4952
4953
4954
4955 ForceSendFields []string `json:"-"`
4956
4957
4958
4959
4960 NullFields []string `json:"-"`
4961 }
4962
4963 func (s *GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) {
4964 type NoMethod GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination
4965 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4966 }
4967
4968
4969
4970 type GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata struct {
4971
4972 CreateTime string `json:"createTime,omitempty"`
4973
4974
4975 Dataset string `json:"dataset,omitempty"`
4976
4977
4978
4979
4980
4981 ForceSendFields []string `json:"-"`
4982
4983
4984
4985
4986 NullFields []string `json:"-"`
4987 }
4988
4989 func (s *GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata) MarshalJSON() ([]byte, error) {
4990 type NoMethod GoogleCloudDatalabelingV1p1alpha1GenerateAnalysisReportOperationMetadata
4991 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
4992 }
4993
4994
4995
4996 type GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig struct {
4997
4998
4999 AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"`
5000
5001
5002 AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"`
5003
5004
5005
5006
5007
5008 ContributorEmails []string `json:"contributorEmails,omitempty"`
5009
5010 Instruction string `json:"instruction,omitempty"`
5011
5012
5013
5014 LabelGroup string `json:"labelGroup,omitempty"`
5015
5016
5017
5018
5019 LanguageCode string `json:"languageCode,omitempty"`
5020
5021
5022 QuestionDuration string `json:"questionDuration,omitempty"`
5023
5024
5025
5026
5027 ReplicaCount int64 `json:"replicaCount,omitempty"`
5028
5029
5030 UserEmailAddress string `json:"userEmailAddress,omitempty"`
5031
5032
5033
5034
5035
5036 ForceSendFields []string `json:"-"`
5037
5038
5039
5040
5041 NullFields []string `json:"-"`
5042 }
5043
5044 func (s *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) {
5045 type NoMethod GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig
5046 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5047 }
5048
5049
5050
5051 type GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata struct {
5052
5053 CreateTime string `json:"createTime,omitempty"`
5054
5055 Dataset string `json:"dataset,omitempty"`
5056
5057
5058
5059 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
5060
5061
5062
5063
5064
5065 ForceSendFields []string `json:"-"`
5066
5067
5068
5069
5070 NullFields []string `json:"-"`
5071 }
5072
5073 func (s *GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) {
5074 type NoMethod GoogleCloudDatalabelingV1p1alpha1ImportDataOperationMetadata
5075 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5076 }
5077
5078
5079
5080 type GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse struct {
5081
5082 Dataset string `json:"dataset,omitempty"`
5083
5084 ImportCount int64 `json:"importCount,omitempty"`
5085
5086 TotalCount int64 `json:"totalCount,omitempty"`
5087
5088
5089
5090
5091
5092 ForceSendFields []string `json:"-"`
5093
5094
5095
5096
5097 NullFields []string `json:"-"`
5098 }
5099
5100 func (s *GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) {
5101 type NoMethod GoogleCloudDatalabelingV1p1alpha1ImportDataOperationResponse
5102 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5103 }
5104
5105
5106
5107 type GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata struct {
5108
5109 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5110
5111
5112
5113
5114
5115 ForceSendFields []string `json:"-"`
5116
5117
5118
5119
5120 NullFields []string `json:"-"`
5121 }
5122
5123 func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
5124 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata
5125 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5126 }
5127
5128
5129
5130 type GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata struct {
5131
5132 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5133
5134
5135
5136
5137
5138 ForceSendFields []string `json:"-"`
5139
5140
5141
5142
5143 NullFields []string `json:"-"`
5144 }
5145
5146 func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) {
5147 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata
5148 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5149 }
5150
5151
5152
5153 type GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata struct {
5154
5155 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5156
5157
5158
5159
5160
5161 ForceSendFields []string `json:"-"`
5162
5163
5164
5165
5166 NullFields []string `json:"-"`
5167 }
5168
5169 func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
5170 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata
5171 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5172 }
5173
5174
5175
5176 type GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata struct {
5177
5178 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5179
5180
5181
5182
5183
5184 ForceSendFields []string `json:"-"`
5185
5186
5187
5188
5189 NullFields []string `json:"-"`
5190 }
5191
5192 func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
5193 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata
5194 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5195 }
5196
5197
5198
5199 type GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata struct {
5200
5201 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5202
5203
5204
5205
5206
5207 ForceSendFields []string `json:"-"`
5208
5209
5210
5211
5212 NullFields []string `json:"-"`
5213 }
5214
5215 func (s *GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) {
5216 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata
5217 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5218 }
5219
5220
5221
5222 type GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata struct {
5223
5224 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5225
5226
5227
5228
5229
5230 ForceSendFields []string `json:"-"`
5231
5232
5233
5234
5235 NullFields []string `json:"-"`
5236 }
5237
5238 func (s *GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) {
5239 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata
5240 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5241 }
5242
5243
5244
5245 type GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata struct {
5246
5247
5248 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
5249
5250 CreateTime string `json:"createTime,omitempty"`
5251
5252
5253 Dataset string `json:"dataset,omitempty"`
5254
5255 ImageBoundingBoxDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"`
5256
5257 ImageBoundingPolyDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"`
5258
5259 ImageClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"`
5260
5261
5262 ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"`
5263
5264 ImagePolylineDetails *GoogleCloudDatalabelingV1p1alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"`
5265
5266 ImageSegmentationDetails *GoogleCloudDatalabelingV1p1alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"`
5267
5268
5269
5270 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
5271
5272 ProgressPercent int64 `json:"progressPercent,omitempty"`
5273
5274 TextClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"`
5275
5276
5277 TextEntityExtractionDetails *GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"`
5278
5279 VideoClassificationDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"`
5280
5281 VideoEventDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"`
5282
5283
5284 VideoObjectDetectionDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"`
5285
5286
5287 VideoObjectTrackingDetails *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"`
5288
5289
5290
5291
5292
5293 ForceSendFields []string `json:"-"`
5294
5295
5296
5297
5298 NullFields []string `json:"-"`
5299 }
5300
5301 func (s *GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) {
5302 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelOperationMetadata
5303 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5304 }
5305
5306
5307
5308 type GoogleCloudDatalabelingV1p1alpha1LabelStats struct {
5309
5310
5311
5312
5313
5314 ExampleCount map[string]string `json:"exampleCount,omitempty"`
5315
5316
5317
5318
5319
5320 ForceSendFields []string `json:"-"`
5321
5322
5323
5324
5325 NullFields []string `json:"-"`
5326 }
5327
5328 func (s *GoogleCloudDatalabelingV1p1alpha1LabelStats) MarshalJSON() ([]byte, error) {
5329 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelStats
5330 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5331 }
5332
5333
5334
5335 type GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata struct {
5336
5337 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5338
5339
5340
5341
5342
5343 ForceSendFields []string `json:"-"`
5344
5345
5346
5347
5348 NullFields []string `json:"-"`
5349 }
5350
5351 func (s *GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
5352 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelTextClassificationOperationMetadata
5353 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5354 }
5355
5356
5357
5358 type GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata struct {
5359
5360 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5361
5362
5363
5364
5365
5366 ForceSendFields []string `json:"-"`
5367
5368
5369
5370
5371 NullFields []string `json:"-"`
5372 }
5373
5374 func (s *GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) {
5375 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelTextEntityExtractionOperationMetadata
5376 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5377 }
5378
5379
5380
5381 type GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata struct {
5382
5383 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5384
5385
5386
5387
5388
5389 ForceSendFields []string `json:"-"`
5390
5391
5392
5393
5394 NullFields []string `json:"-"`
5395 }
5396
5397 func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
5398 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoClassificationOperationMetadata
5399 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5400 }
5401
5402
5403
5404 type GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata struct {
5405
5406 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5407
5408
5409
5410
5411
5412 ForceSendFields []string `json:"-"`
5413
5414
5415
5416
5417 NullFields []string `json:"-"`
5418 }
5419
5420 func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) {
5421 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoEventOperationMetadata
5422 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5423 }
5424
5425
5426
5427 type GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata struct {
5428
5429 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5430
5431
5432
5433
5434
5435 ForceSendFields []string `json:"-"`
5436
5437
5438
5439
5440 NullFields []string `json:"-"`
5441 }
5442
5443 func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) {
5444 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectDetectionOperationMetadata
5445 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5446 }
5447
5448
5449
5450 type GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata struct {
5451
5452 BasicConfig *GoogleCloudDatalabelingV1p1alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5453
5454
5455
5456
5457
5458 ForceSendFields []string `json:"-"`
5459
5460
5461
5462
5463 NullFields []string `json:"-"`
5464 }
5465
5466 func (s *GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) {
5467 type NoMethod GoogleCloudDatalabelingV1p1alpha1LabelVideoObjectTrackingOperationMetadata
5468 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5469 }
5470
5471
5472
5473 type GoogleCloudDatalabelingV1p1alpha1OutputConfig struct {
5474
5475
5476 GcsDestination *GoogleCloudDatalabelingV1p1alpha1GcsDestination `json:"gcsDestination,omitempty"`
5477
5478
5479 GcsFolderDestination *GoogleCloudDatalabelingV1p1alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"`
5480
5481
5482
5483
5484
5485 ForceSendFields []string `json:"-"`
5486
5487
5488
5489
5490 NullFields []string `json:"-"`
5491 }
5492
5493 func (s *GoogleCloudDatalabelingV1p1alpha1OutputConfig) MarshalJSON() ([]byte, error) {
5494 type NoMethod GoogleCloudDatalabelingV1p1alpha1OutputConfig
5495 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5496 }
5497
5498
5499
5500 type GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata struct {
5501
5502 CreateTime string `json:"createTime,omitempty"`
5503
5504
5505 Instruction string `json:"instruction,omitempty"`
5506
5507
5508
5509 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
5510
5511
5512
5513
5514
5515 ForceSendFields []string `json:"-"`
5516
5517
5518
5519
5520 NullFields []string `json:"-"`
5521 }
5522
5523 func (s *GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata) MarshalJSON() ([]byte, error) {
5524 type NoMethod GoogleCloudDatalabelingV1p2alpha1CreateInstructionMetadata
5525 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5526 }
5527
5528
5529
5530 type GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata struct {
5531
5532
5533 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
5534
5535 CreateTime string `json:"createTime,omitempty"`
5536
5537
5538 Dataset string `json:"dataset,omitempty"`
5539
5540
5541
5542 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
5543
5544
5545
5546
5547
5548 ForceSendFields []string `json:"-"`
5549
5550
5551
5552
5553 NullFields []string `json:"-"`
5554 }
5555
5556 func (s *GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata) MarshalJSON() ([]byte, error) {
5557 type NoMethod GoogleCloudDatalabelingV1p2alpha1ExportDataOperationMetadata
5558 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5559 }
5560
5561
5562
5563 type GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse struct {
5564
5565
5566 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
5567
5568 Dataset string `json:"dataset,omitempty"`
5569
5570 ExportCount int64 `json:"exportCount,omitempty"`
5571
5572 LabelStats *GoogleCloudDatalabelingV1p2alpha1LabelStats `json:"labelStats,omitempty"`
5573
5574 OutputConfig *GoogleCloudDatalabelingV1p2alpha1OutputConfig `json:"outputConfig,omitempty"`
5575
5576 TotalCount int64 `json:"totalCount,omitempty"`
5577
5578
5579
5580
5581
5582 ForceSendFields []string `json:"-"`
5583
5584
5585
5586
5587 NullFields []string `json:"-"`
5588 }
5589
5590 func (s *GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse) MarshalJSON() ([]byte, error) {
5591 type NoMethod GoogleCloudDatalabelingV1p2alpha1ExportDataOperationResponse
5592 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5593 }
5594
5595
5596
5597 type GoogleCloudDatalabelingV1p2alpha1GcsDestination struct {
5598
5599
5600 MimeType string `json:"mimeType,omitempty"`
5601
5602 OutputUri string `json:"outputUri,omitempty"`
5603
5604
5605
5606
5607
5608 ForceSendFields []string `json:"-"`
5609
5610
5611
5612
5613 NullFields []string `json:"-"`
5614 }
5615
5616 func (s *GoogleCloudDatalabelingV1p2alpha1GcsDestination) MarshalJSON() ([]byte, error) {
5617 type NoMethod GoogleCloudDatalabelingV1p2alpha1GcsDestination
5618 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5619 }
5620
5621
5622
5623 type GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination struct {
5624
5625 OutputFolderUri string `json:"outputFolderUri,omitempty"`
5626
5627
5628
5629
5630
5631 ForceSendFields []string `json:"-"`
5632
5633
5634
5635
5636 NullFields []string `json:"-"`
5637 }
5638
5639 func (s *GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination) MarshalJSON() ([]byte, error) {
5640 type NoMethod GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination
5641 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5642 }
5643
5644
5645
5646 type GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig struct {
5647
5648
5649 AnnotatedDatasetDescription string `json:"annotatedDatasetDescription,omitempty"`
5650
5651
5652 AnnotatedDatasetDisplayName string `json:"annotatedDatasetDisplayName,omitempty"`
5653
5654
5655
5656
5657
5658 ContributorEmails []string `json:"contributorEmails,omitempty"`
5659
5660 Instruction string `json:"instruction,omitempty"`
5661
5662
5663
5664 LabelGroup string `json:"labelGroup,omitempty"`
5665
5666
5667
5668
5669 LanguageCode string `json:"languageCode,omitempty"`
5670
5671
5672 QuestionDuration string `json:"questionDuration,omitempty"`
5673
5674
5675
5676
5677 ReplicaCount int64 `json:"replicaCount,omitempty"`
5678
5679
5680 UserEmailAddress string `json:"userEmailAddress,omitempty"`
5681
5682
5683
5684
5685
5686 ForceSendFields []string `json:"-"`
5687
5688
5689
5690
5691 NullFields []string `json:"-"`
5692 }
5693
5694 func (s *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig) MarshalJSON() ([]byte, error) {
5695 type NoMethod GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig
5696 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5697 }
5698
5699
5700
5701 type GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata struct {
5702
5703 CreateTime string `json:"createTime,omitempty"`
5704
5705 Dataset string `json:"dataset,omitempty"`
5706
5707
5708
5709 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
5710
5711
5712
5713
5714
5715 ForceSendFields []string `json:"-"`
5716
5717
5718
5719
5720 NullFields []string `json:"-"`
5721 }
5722
5723 func (s *GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata) MarshalJSON() ([]byte, error) {
5724 type NoMethod GoogleCloudDatalabelingV1p2alpha1ImportDataOperationMetadata
5725 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5726 }
5727
5728
5729
5730 type GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse struct {
5731
5732 Dataset string `json:"dataset,omitempty"`
5733
5734 ImportCount int64 `json:"importCount,omitempty"`
5735
5736 TotalCount int64 `json:"totalCount,omitempty"`
5737
5738
5739
5740
5741
5742 ForceSendFields []string `json:"-"`
5743
5744
5745
5746
5747 NullFields []string `json:"-"`
5748 }
5749
5750 func (s *GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse) MarshalJSON() ([]byte, error) {
5751 type NoMethod GoogleCloudDatalabelingV1p2alpha1ImportDataOperationResponse
5752 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5753 }
5754
5755
5756
5757 type GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata struct {
5758
5759 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5760
5761
5762
5763
5764
5765 ForceSendFields []string `json:"-"`
5766
5767
5768
5769
5770 NullFields []string `json:"-"`
5771 }
5772
5773 func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
5774 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata
5775 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5776 }
5777
5778
5779
5780 type GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata struct {
5781
5782 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5783
5784
5785
5786
5787
5788 ForceSendFields []string `json:"-"`
5789
5790
5791
5792
5793 NullFields []string `json:"-"`
5794 }
5795
5796 func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata) MarshalJSON() ([]byte, error) {
5797 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata
5798 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5799 }
5800
5801
5802
5803 type GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata struct {
5804
5805 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5806
5807
5808
5809
5810
5811 ForceSendFields []string `json:"-"`
5812
5813
5814
5815
5816 NullFields []string `json:"-"`
5817 }
5818
5819 func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
5820 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata
5821 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5822 }
5823
5824
5825
5826 type GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata struct {
5827
5828 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5829
5830
5831
5832
5833
5834 ForceSendFields []string `json:"-"`
5835
5836
5837
5838
5839 NullFields []string `json:"-"`
5840 }
5841
5842 func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata) MarshalJSON() ([]byte, error) {
5843 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata
5844 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5845 }
5846
5847
5848
5849 type GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata struct {
5850
5851 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5852
5853
5854
5855
5856
5857 ForceSendFields []string `json:"-"`
5858
5859
5860
5861
5862 NullFields []string `json:"-"`
5863 }
5864
5865 func (s *GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata) MarshalJSON() ([]byte, error) {
5866 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata
5867 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5868 }
5869
5870
5871
5872 type GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata struct {
5873
5874 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5875
5876
5877
5878
5879
5880 ForceSendFields []string `json:"-"`
5881
5882
5883
5884
5885 NullFields []string `json:"-"`
5886 }
5887
5888 func (s *GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata) MarshalJSON() ([]byte, error) {
5889 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata
5890 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5891 }
5892
5893
5894
5895 type GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata struct {
5896
5897
5898 AnnotatedDataset string `json:"annotatedDataset,omitempty"`
5899
5900 CreateTime string `json:"createTime,omitempty"`
5901
5902
5903 Dataset string `json:"dataset,omitempty"`
5904
5905 ImageBoundingBoxDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingBoxOperationMetadata `json:"imageBoundingBoxDetails,omitempty"`
5906
5907 ImageBoundingPolyDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageBoundingPolyOperationMetadata `json:"imageBoundingPolyDetails,omitempty"`
5908
5909 ImageClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageClassificationOperationMetadata `json:"imageClassificationDetails,omitempty"`
5910
5911
5912 ImageOrientedBoundingBoxDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageOrientedBoundingBoxOperationMetadata `json:"imageOrientedBoundingBoxDetails,omitempty"`
5913
5914 ImagePolylineDetails *GoogleCloudDatalabelingV1p2alpha1LabelImagePolylineOperationMetadata `json:"imagePolylineDetails,omitempty"`
5915
5916 ImageSegmentationDetails *GoogleCloudDatalabelingV1p2alpha1LabelImageSegmentationOperationMetadata `json:"imageSegmentationDetails,omitempty"`
5917
5918
5919
5920 PartialFailures []*GoogleRpcStatus `json:"partialFailures,omitempty"`
5921
5922 ProgressPercent int64 `json:"progressPercent,omitempty"`
5923
5924 TextClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata `json:"textClassificationDetails,omitempty"`
5925
5926
5927 TextEntityExtractionDetails *GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata `json:"textEntityExtractionDetails,omitempty"`
5928
5929 VideoClassificationDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata `json:"videoClassificationDetails,omitempty"`
5930
5931 VideoEventDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata `json:"videoEventDetails,omitempty"`
5932
5933
5934 VideoObjectDetectionDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata `json:"videoObjectDetectionDetails,omitempty"`
5935
5936
5937 VideoObjectTrackingDetails *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata `json:"videoObjectTrackingDetails,omitempty"`
5938
5939
5940
5941
5942
5943 ForceSendFields []string `json:"-"`
5944
5945
5946
5947
5948 NullFields []string `json:"-"`
5949 }
5950
5951 func (s *GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata) MarshalJSON() ([]byte, error) {
5952 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelOperationMetadata
5953 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5954 }
5955
5956
5957
5958 type GoogleCloudDatalabelingV1p2alpha1LabelStats struct {
5959
5960
5961
5962
5963
5964 ExampleCount map[string]string `json:"exampleCount,omitempty"`
5965
5966
5967
5968
5969
5970 ForceSendFields []string `json:"-"`
5971
5972
5973
5974
5975 NullFields []string `json:"-"`
5976 }
5977
5978 func (s *GoogleCloudDatalabelingV1p2alpha1LabelStats) MarshalJSON() ([]byte, error) {
5979 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelStats
5980 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
5981 }
5982
5983
5984
5985 type GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata struct {
5986
5987 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
5988
5989
5990
5991
5992
5993 ForceSendFields []string `json:"-"`
5994
5995
5996
5997
5998 NullFields []string `json:"-"`
5999 }
6000
6001 func (s *GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
6002 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelTextClassificationOperationMetadata
6003 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6004 }
6005
6006
6007
6008 type GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata struct {
6009
6010 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
6011
6012
6013
6014
6015
6016 ForceSendFields []string `json:"-"`
6017
6018
6019
6020
6021 NullFields []string `json:"-"`
6022 }
6023
6024 func (s *GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata) MarshalJSON() ([]byte, error) {
6025 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelTextEntityExtractionOperationMetadata
6026 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6027 }
6028
6029
6030
6031 type GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata struct {
6032
6033 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
6034
6035
6036
6037
6038
6039 ForceSendFields []string `json:"-"`
6040
6041
6042
6043
6044 NullFields []string `json:"-"`
6045 }
6046
6047 func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata) MarshalJSON() ([]byte, error) {
6048 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoClassificationOperationMetadata
6049 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6050 }
6051
6052
6053
6054 type GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata struct {
6055
6056 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
6057
6058
6059
6060
6061
6062 ForceSendFields []string `json:"-"`
6063
6064
6065
6066
6067 NullFields []string `json:"-"`
6068 }
6069
6070 func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata) MarshalJSON() ([]byte, error) {
6071 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoEventOperationMetadata
6072 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6073 }
6074
6075
6076
6077 type GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata struct {
6078
6079 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
6080
6081
6082
6083
6084
6085 ForceSendFields []string `json:"-"`
6086
6087
6088
6089
6090 NullFields []string `json:"-"`
6091 }
6092
6093 func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata) MarshalJSON() ([]byte, error) {
6094 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectDetectionOperationMetadata
6095 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6096 }
6097
6098
6099
6100 type GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata struct {
6101
6102 BasicConfig *GoogleCloudDatalabelingV1p2alpha1HumanAnnotationConfig `json:"basicConfig,omitempty"`
6103
6104
6105
6106
6107
6108 ForceSendFields []string `json:"-"`
6109
6110
6111
6112
6113 NullFields []string `json:"-"`
6114 }
6115
6116 func (s *GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata) MarshalJSON() ([]byte, error) {
6117 type NoMethod GoogleCloudDatalabelingV1p2alpha1LabelVideoObjectTrackingOperationMetadata
6118 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6119 }
6120
6121
6122
6123 type GoogleCloudDatalabelingV1p2alpha1OutputConfig struct {
6124
6125
6126 GcsDestination *GoogleCloudDatalabelingV1p2alpha1GcsDestination `json:"gcsDestination,omitempty"`
6127
6128
6129 GcsFolderDestination *GoogleCloudDatalabelingV1p2alpha1GcsFolderDestination `json:"gcsFolderDestination,omitempty"`
6130
6131
6132
6133
6134
6135 ForceSendFields []string `json:"-"`
6136
6137
6138
6139
6140 NullFields []string `json:"-"`
6141 }
6142
6143 func (s *GoogleCloudDatalabelingV1p2alpha1OutputConfig) MarshalJSON() ([]byte, error) {
6144 type NoMethod GoogleCloudDatalabelingV1p2alpha1OutputConfig
6145 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6146 }
6147
6148
6149
6150 type GoogleLongrunningListOperationsResponse struct {
6151
6152 NextPageToken string `json:"nextPageToken,omitempty"`
6153
6154
6155 Operations []*GoogleLongrunningOperation `json:"operations,omitempty"`
6156
6157
6158 googleapi.ServerResponse `json:"-"`
6159
6160
6161
6162
6163
6164 ForceSendFields []string `json:"-"`
6165
6166
6167
6168
6169 NullFields []string `json:"-"`
6170 }
6171
6172 func (s *GoogleLongrunningListOperationsResponse) MarshalJSON() ([]byte, error) {
6173 type NoMethod GoogleLongrunningListOperationsResponse
6174 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6175 }
6176
6177
6178
6179 type GoogleLongrunningOperation struct {
6180
6181
6182
6183 Done bool `json:"done,omitempty"`
6184
6185 Error *GoogleRpcStatus `json:"error,omitempty"`
6186
6187
6188
6189
6190 Metadata googleapi.RawMessage `json:"metadata,omitempty"`
6191
6192
6193
6194 Name string `json:"name,omitempty"`
6195
6196
6197
6198
6199
6200
6201
6202 Response googleapi.RawMessage `json:"response,omitempty"`
6203
6204
6205 googleapi.ServerResponse `json:"-"`
6206
6207
6208
6209
6210
6211 ForceSendFields []string `json:"-"`
6212
6213
6214
6215
6216 NullFields []string `json:"-"`
6217 }
6218
6219 func (s *GoogleLongrunningOperation) MarshalJSON() ([]byte, error) {
6220 type NoMethod GoogleLongrunningOperation
6221 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6222 }
6223
6224
6225
6226
6227
6228
6229 type GoogleProtobufEmpty struct {
6230
6231 googleapi.ServerResponse `json:"-"`
6232 }
6233
6234
6235
6236
6237
6238
6239
6240 type GoogleRpcStatus struct {
6241
6242 Code int64 `json:"code,omitempty"`
6243
6244
6245 Details []googleapi.RawMessage `json:"details,omitempty"`
6246
6247
6248
6249 Message string `json:"message,omitempty"`
6250
6251
6252
6253
6254
6255 ForceSendFields []string `json:"-"`
6256
6257
6258
6259
6260 NullFields []string `json:"-"`
6261 }
6262
6263 func (s *GoogleRpcStatus) MarshalJSON() ([]byte, error) {
6264 type NoMethod GoogleRpcStatus
6265 return gensupport.MarshalJSON(NoMethod(*s), s.ForceSendFields, s.NullFields)
6266 }
6267
6268 type ProjectsAnnotationSpecSetsCreateCall struct {
6269 s *Service
6270 parent string
6271 googleclouddatalabelingv1beta1createannotationspecsetrequest *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest
6272 urlParams_ gensupport.URLParams
6273 ctx_ context.Context
6274 header_ http.Header
6275 }
6276
6277
6278
6279
6280 func (r *ProjectsAnnotationSpecSetsService) Create(parent string, googleclouddatalabelingv1beta1createannotationspecsetrequest *GoogleCloudDatalabelingV1beta1CreateAnnotationSpecSetRequest) *ProjectsAnnotationSpecSetsCreateCall {
6281 c := &ProjectsAnnotationSpecSetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6282 c.parent = parent
6283 c.googleclouddatalabelingv1beta1createannotationspecsetrequest = googleclouddatalabelingv1beta1createannotationspecsetrequest
6284 return c
6285 }
6286
6287
6288
6289
6290 func (c *ProjectsAnnotationSpecSetsCreateCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsCreateCall {
6291 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6292 return c
6293 }
6294
6295
6296 func (c *ProjectsAnnotationSpecSetsCreateCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsCreateCall {
6297 c.ctx_ = ctx
6298 return c
6299 }
6300
6301
6302
6303 func (c *ProjectsAnnotationSpecSetsCreateCall) Header() http.Header {
6304 if c.header_ == nil {
6305 c.header_ = make(http.Header)
6306 }
6307 return c.header_
6308 }
6309
6310 func (c *ProjectsAnnotationSpecSetsCreateCall) doRequest(alt string) (*http.Response, error) {
6311 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6312 var body io.Reader = nil
6313 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createannotationspecsetrequest)
6314 if err != nil {
6315 return nil, err
6316 }
6317 c.urlParams_.Set("alt", alt)
6318 c.urlParams_.Set("prettyPrint", "false")
6319 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationSpecSets")
6320 urls += "?" + c.urlParams_.Encode()
6321 req, err := http.NewRequest("POST", urls, body)
6322 if err != nil {
6323 return nil, err
6324 }
6325 req.Header = reqHeaders
6326 googleapi.Expand(req.URL, map[string]string{
6327 "parent": c.parent,
6328 })
6329 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6330 }
6331
6332
6333
6334
6335
6336
6337
6338 func (c *ProjectsAnnotationSpecSetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotationSpecSet, error) {
6339 gensupport.SetOptions(c.urlParams_, opts...)
6340 res, err := c.doRequest("json")
6341 if res != nil && res.StatusCode == http.StatusNotModified {
6342 if res.Body != nil {
6343 res.Body.Close()
6344 }
6345 return nil, gensupport.WrapError(&googleapi.Error{
6346 Code: res.StatusCode,
6347 Header: res.Header,
6348 })
6349 }
6350 if err != nil {
6351 return nil, err
6352 }
6353 defer googleapi.CloseBody(res)
6354 if err := googleapi.CheckResponse(res); err != nil {
6355 return nil, gensupport.WrapError(err)
6356 }
6357 ret := &GoogleCloudDatalabelingV1beta1AnnotationSpecSet{
6358 ServerResponse: googleapi.ServerResponse{
6359 Header: res.Header,
6360 HTTPStatusCode: res.StatusCode,
6361 },
6362 }
6363 target := &ret
6364 if err := gensupport.DecodeResponse(target, res); err != nil {
6365 return nil, err
6366 }
6367 return ret, nil
6368 }
6369
6370 type ProjectsAnnotationSpecSetsDeleteCall struct {
6371 s *Service
6372 name string
6373 urlParams_ gensupport.URLParams
6374 ctx_ context.Context
6375 header_ http.Header
6376 }
6377
6378
6379
6380
6381
6382 func (r *ProjectsAnnotationSpecSetsService) Delete(name string) *ProjectsAnnotationSpecSetsDeleteCall {
6383 c := &ProjectsAnnotationSpecSetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6384 c.name = name
6385 return c
6386 }
6387
6388
6389
6390
6391 func (c *ProjectsAnnotationSpecSetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsDeleteCall {
6392 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6393 return c
6394 }
6395
6396
6397 func (c *ProjectsAnnotationSpecSetsDeleteCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsDeleteCall {
6398 c.ctx_ = ctx
6399 return c
6400 }
6401
6402
6403
6404 func (c *ProjectsAnnotationSpecSetsDeleteCall) Header() http.Header {
6405 if c.header_ == nil {
6406 c.header_ = make(http.Header)
6407 }
6408 return c.header_
6409 }
6410
6411 func (c *ProjectsAnnotationSpecSetsDeleteCall) doRequest(alt string) (*http.Response, error) {
6412 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6413 var body io.Reader = nil
6414 c.urlParams_.Set("alt", alt)
6415 c.urlParams_.Set("prettyPrint", "false")
6416 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
6417 urls += "?" + c.urlParams_.Encode()
6418 req, err := http.NewRequest("DELETE", urls, body)
6419 if err != nil {
6420 return nil, err
6421 }
6422 req.Header = reqHeaders
6423 googleapi.Expand(req.URL, map[string]string{
6424 "name": c.name,
6425 })
6426 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6427 }
6428
6429
6430
6431
6432
6433
6434
6435 func (c *ProjectsAnnotationSpecSetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
6436 gensupport.SetOptions(c.urlParams_, opts...)
6437 res, err := c.doRequest("json")
6438 if res != nil && res.StatusCode == http.StatusNotModified {
6439 if res.Body != nil {
6440 res.Body.Close()
6441 }
6442 return nil, gensupport.WrapError(&googleapi.Error{
6443 Code: res.StatusCode,
6444 Header: res.Header,
6445 })
6446 }
6447 if err != nil {
6448 return nil, err
6449 }
6450 defer googleapi.CloseBody(res)
6451 if err := googleapi.CheckResponse(res); err != nil {
6452 return nil, gensupport.WrapError(err)
6453 }
6454 ret := &GoogleProtobufEmpty{
6455 ServerResponse: googleapi.ServerResponse{
6456 Header: res.Header,
6457 HTTPStatusCode: res.StatusCode,
6458 },
6459 }
6460 target := &ret
6461 if err := gensupport.DecodeResponse(target, res); err != nil {
6462 return nil, err
6463 }
6464 return ret, nil
6465 }
6466
6467 type ProjectsAnnotationSpecSetsGetCall struct {
6468 s *Service
6469 name string
6470 urlParams_ gensupport.URLParams
6471 ifNoneMatch_ string
6472 ctx_ context.Context
6473 header_ http.Header
6474 }
6475
6476
6477
6478
6479
6480 func (r *ProjectsAnnotationSpecSetsService) Get(name string) *ProjectsAnnotationSpecSetsGetCall {
6481 c := &ProjectsAnnotationSpecSetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6482 c.name = name
6483 return c
6484 }
6485
6486
6487
6488
6489 func (c *ProjectsAnnotationSpecSetsGetCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsGetCall {
6490 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6491 return c
6492 }
6493
6494
6495
6496
6497 func (c *ProjectsAnnotationSpecSetsGetCall) IfNoneMatch(entityTag string) *ProjectsAnnotationSpecSetsGetCall {
6498 c.ifNoneMatch_ = entityTag
6499 return c
6500 }
6501
6502
6503 func (c *ProjectsAnnotationSpecSetsGetCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsGetCall {
6504 c.ctx_ = ctx
6505 return c
6506 }
6507
6508
6509
6510 func (c *ProjectsAnnotationSpecSetsGetCall) Header() http.Header {
6511 if c.header_ == nil {
6512 c.header_ = make(http.Header)
6513 }
6514 return c.header_
6515 }
6516
6517 func (c *ProjectsAnnotationSpecSetsGetCall) doRequest(alt string) (*http.Response, error) {
6518 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6519 if c.ifNoneMatch_ != "" {
6520 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6521 }
6522 var body io.Reader = nil
6523 c.urlParams_.Set("alt", alt)
6524 c.urlParams_.Set("prettyPrint", "false")
6525 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
6526 urls += "?" + c.urlParams_.Encode()
6527 req, err := http.NewRequest("GET", urls, body)
6528 if err != nil {
6529 return nil, err
6530 }
6531 req.Header = reqHeaders
6532 googleapi.Expand(req.URL, map[string]string{
6533 "name": c.name,
6534 })
6535 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6536 }
6537
6538
6539
6540
6541
6542
6543
6544 func (c *ProjectsAnnotationSpecSetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotationSpecSet, error) {
6545 gensupport.SetOptions(c.urlParams_, opts...)
6546 res, err := c.doRequest("json")
6547 if res != nil && res.StatusCode == http.StatusNotModified {
6548 if res.Body != nil {
6549 res.Body.Close()
6550 }
6551 return nil, gensupport.WrapError(&googleapi.Error{
6552 Code: res.StatusCode,
6553 Header: res.Header,
6554 })
6555 }
6556 if err != nil {
6557 return nil, err
6558 }
6559 defer googleapi.CloseBody(res)
6560 if err := googleapi.CheckResponse(res); err != nil {
6561 return nil, gensupport.WrapError(err)
6562 }
6563 ret := &GoogleCloudDatalabelingV1beta1AnnotationSpecSet{
6564 ServerResponse: googleapi.ServerResponse{
6565 Header: res.Header,
6566 HTTPStatusCode: res.StatusCode,
6567 },
6568 }
6569 target := &ret
6570 if err := gensupport.DecodeResponse(target, res); err != nil {
6571 return nil, err
6572 }
6573 return ret, nil
6574 }
6575
6576 type ProjectsAnnotationSpecSetsListCall struct {
6577 s *Service
6578 parent string
6579 urlParams_ gensupport.URLParams
6580 ifNoneMatch_ string
6581 ctx_ context.Context
6582 header_ http.Header
6583 }
6584
6585
6586
6587
6588
6589 func (r *ProjectsAnnotationSpecSetsService) List(parent string) *ProjectsAnnotationSpecSetsListCall {
6590 c := &ProjectsAnnotationSpecSetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6591 c.parent = parent
6592 return c
6593 }
6594
6595
6596
6597 func (c *ProjectsAnnotationSpecSetsListCall) Filter(filter string) *ProjectsAnnotationSpecSetsListCall {
6598 c.urlParams_.Set("filter", filter)
6599 return c
6600 }
6601
6602
6603
6604 func (c *ProjectsAnnotationSpecSetsListCall) PageSize(pageSize int64) *ProjectsAnnotationSpecSetsListCall {
6605 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
6606 return c
6607 }
6608
6609
6610
6611
6612
6613
6614 func (c *ProjectsAnnotationSpecSetsListCall) PageToken(pageToken string) *ProjectsAnnotationSpecSetsListCall {
6615 c.urlParams_.Set("pageToken", pageToken)
6616 return c
6617 }
6618
6619
6620
6621
6622 func (c *ProjectsAnnotationSpecSetsListCall) Fields(s ...googleapi.Field) *ProjectsAnnotationSpecSetsListCall {
6623 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6624 return c
6625 }
6626
6627
6628
6629
6630 func (c *ProjectsAnnotationSpecSetsListCall) IfNoneMatch(entityTag string) *ProjectsAnnotationSpecSetsListCall {
6631 c.ifNoneMatch_ = entityTag
6632 return c
6633 }
6634
6635
6636 func (c *ProjectsAnnotationSpecSetsListCall) Context(ctx context.Context) *ProjectsAnnotationSpecSetsListCall {
6637 c.ctx_ = ctx
6638 return c
6639 }
6640
6641
6642
6643 func (c *ProjectsAnnotationSpecSetsListCall) Header() http.Header {
6644 if c.header_ == nil {
6645 c.header_ = make(http.Header)
6646 }
6647 return c.header_
6648 }
6649
6650 func (c *ProjectsAnnotationSpecSetsListCall) doRequest(alt string) (*http.Response, error) {
6651 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6652 if c.ifNoneMatch_ != "" {
6653 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
6654 }
6655 var body io.Reader = nil
6656 c.urlParams_.Set("alt", alt)
6657 c.urlParams_.Set("prettyPrint", "false")
6658 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotationSpecSets")
6659 urls += "?" + c.urlParams_.Encode()
6660 req, err := http.NewRequest("GET", urls, body)
6661 if err != nil {
6662 return nil, err
6663 }
6664 req.Header = reqHeaders
6665 googleapi.Expand(req.URL, map[string]string{
6666 "parent": c.parent,
6667 })
6668 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6669 }
6670
6671
6672
6673
6674
6675
6676
6677 func (c *ProjectsAnnotationSpecSetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse, error) {
6678 gensupport.SetOptions(c.urlParams_, opts...)
6679 res, err := c.doRequest("json")
6680 if res != nil && res.StatusCode == http.StatusNotModified {
6681 if res.Body != nil {
6682 res.Body.Close()
6683 }
6684 return nil, gensupport.WrapError(&googleapi.Error{
6685 Code: res.StatusCode,
6686 Header: res.Header,
6687 })
6688 }
6689 if err != nil {
6690 return nil, err
6691 }
6692 defer googleapi.CloseBody(res)
6693 if err := googleapi.CheckResponse(res); err != nil {
6694 return nil, gensupport.WrapError(err)
6695 }
6696 ret := &GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse{
6697 ServerResponse: googleapi.ServerResponse{
6698 Header: res.Header,
6699 HTTPStatusCode: res.StatusCode,
6700 },
6701 }
6702 target := &ret
6703 if err := gensupport.DecodeResponse(target, res); err != nil {
6704 return nil, err
6705 }
6706 return ret, nil
6707 }
6708
6709
6710
6711
6712 func (c *ProjectsAnnotationSpecSetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListAnnotationSpecSetsResponse) error) error {
6713 c.ctx_ = ctx
6714 defer c.PageToken(c.urlParams_.Get("pageToken"))
6715 for {
6716 x, err := c.Do()
6717 if err != nil {
6718 return err
6719 }
6720 if err := f(x); err != nil {
6721 return err
6722 }
6723 if x.NextPageToken == "" {
6724 return nil
6725 }
6726 c.PageToken(x.NextPageToken)
6727 }
6728 }
6729
6730 type ProjectsDatasetsCreateCall struct {
6731 s *Service
6732 parent string
6733 googleclouddatalabelingv1beta1createdatasetrequest *GoogleCloudDatalabelingV1beta1CreateDatasetRequest
6734 urlParams_ gensupport.URLParams
6735 ctx_ context.Context
6736 header_ http.Header
6737 }
6738
6739
6740
6741
6742 func (r *ProjectsDatasetsService) Create(parent string, googleclouddatalabelingv1beta1createdatasetrequest *GoogleCloudDatalabelingV1beta1CreateDatasetRequest) *ProjectsDatasetsCreateCall {
6743 c := &ProjectsDatasetsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6744 c.parent = parent
6745 c.googleclouddatalabelingv1beta1createdatasetrequest = googleclouddatalabelingv1beta1createdatasetrequest
6746 return c
6747 }
6748
6749
6750
6751
6752 func (c *ProjectsDatasetsCreateCall) Fields(s ...googleapi.Field) *ProjectsDatasetsCreateCall {
6753 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6754 return c
6755 }
6756
6757
6758 func (c *ProjectsDatasetsCreateCall) Context(ctx context.Context) *ProjectsDatasetsCreateCall {
6759 c.ctx_ = ctx
6760 return c
6761 }
6762
6763
6764
6765 func (c *ProjectsDatasetsCreateCall) Header() http.Header {
6766 if c.header_ == nil {
6767 c.header_ = make(http.Header)
6768 }
6769 return c.header_
6770 }
6771
6772 func (c *ProjectsDatasetsCreateCall) doRequest(alt string) (*http.Response, error) {
6773 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6774 var body io.Reader = nil
6775 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createdatasetrequest)
6776 if err != nil {
6777 return nil, err
6778 }
6779 c.urlParams_.Set("alt", alt)
6780 c.urlParams_.Set("prettyPrint", "false")
6781 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets")
6782 urls += "?" + c.urlParams_.Encode()
6783 req, err := http.NewRequest("POST", urls, body)
6784 if err != nil {
6785 return nil, err
6786 }
6787 req.Header = reqHeaders
6788 googleapi.Expand(req.URL, map[string]string{
6789 "parent": c.parent,
6790 })
6791 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6792 }
6793
6794
6795
6796
6797
6798
6799
6800 func (c *ProjectsDatasetsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Dataset, error) {
6801 gensupport.SetOptions(c.urlParams_, opts...)
6802 res, err := c.doRequest("json")
6803 if res != nil && res.StatusCode == http.StatusNotModified {
6804 if res.Body != nil {
6805 res.Body.Close()
6806 }
6807 return nil, gensupport.WrapError(&googleapi.Error{
6808 Code: res.StatusCode,
6809 Header: res.Header,
6810 })
6811 }
6812 if err != nil {
6813 return nil, err
6814 }
6815 defer googleapi.CloseBody(res)
6816 if err := googleapi.CheckResponse(res); err != nil {
6817 return nil, gensupport.WrapError(err)
6818 }
6819 ret := &GoogleCloudDatalabelingV1beta1Dataset{
6820 ServerResponse: googleapi.ServerResponse{
6821 Header: res.Header,
6822 HTTPStatusCode: res.StatusCode,
6823 },
6824 }
6825 target := &ret
6826 if err := gensupport.DecodeResponse(target, res); err != nil {
6827 return nil, err
6828 }
6829 return ret, nil
6830 }
6831
6832 type ProjectsDatasetsDeleteCall struct {
6833 s *Service
6834 name string
6835 urlParams_ gensupport.URLParams
6836 ctx_ context.Context
6837 header_ http.Header
6838 }
6839
6840
6841
6842
6843
6844 func (r *ProjectsDatasetsService) Delete(name string) *ProjectsDatasetsDeleteCall {
6845 c := &ProjectsDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6846 c.name = name
6847 return c
6848 }
6849
6850
6851
6852
6853 func (c *ProjectsDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDeleteCall {
6854 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6855 return c
6856 }
6857
6858
6859 func (c *ProjectsDatasetsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsDeleteCall {
6860 c.ctx_ = ctx
6861 return c
6862 }
6863
6864
6865
6866 func (c *ProjectsDatasetsDeleteCall) Header() http.Header {
6867 if c.header_ == nil {
6868 c.header_ = make(http.Header)
6869 }
6870 return c.header_
6871 }
6872
6873 func (c *ProjectsDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
6874 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
6875 var body io.Reader = nil
6876 c.urlParams_.Set("alt", alt)
6877 c.urlParams_.Set("prettyPrint", "false")
6878 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
6879 urls += "?" + c.urlParams_.Encode()
6880 req, err := http.NewRequest("DELETE", urls, body)
6881 if err != nil {
6882 return nil, err
6883 }
6884 req.Header = reqHeaders
6885 googleapi.Expand(req.URL, map[string]string{
6886 "name": c.name,
6887 })
6888 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6889 }
6890
6891
6892
6893
6894
6895
6896
6897 func (c *ProjectsDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
6898 gensupport.SetOptions(c.urlParams_, opts...)
6899 res, err := c.doRequest("json")
6900 if res != nil && res.StatusCode == http.StatusNotModified {
6901 if res.Body != nil {
6902 res.Body.Close()
6903 }
6904 return nil, gensupport.WrapError(&googleapi.Error{
6905 Code: res.StatusCode,
6906 Header: res.Header,
6907 })
6908 }
6909 if err != nil {
6910 return nil, err
6911 }
6912 defer googleapi.CloseBody(res)
6913 if err := googleapi.CheckResponse(res); err != nil {
6914 return nil, gensupport.WrapError(err)
6915 }
6916 ret := &GoogleProtobufEmpty{
6917 ServerResponse: googleapi.ServerResponse{
6918 Header: res.Header,
6919 HTTPStatusCode: res.StatusCode,
6920 },
6921 }
6922 target := &ret
6923 if err := gensupport.DecodeResponse(target, res); err != nil {
6924 return nil, err
6925 }
6926 return ret, nil
6927 }
6928
6929 type ProjectsDatasetsExportDataCall struct {
6930 s *Service
6931 name string
6932 googleclouddatalabelingv1beta1exportdatarequest *GoogleCloudDatalabelingV1beta1ExportDataRequest
6933 urlParams_ gensupport.URLParams
6934 ctx_ context.Context
6935 header_ http.Header
6936 }
6937
6938
6939
6940
6941
6942 func (r *ProjectsDatasetsService) ExportData(name string, googleclouddatalabelingv1beta1exportdatarequest *GoogleCloudDatalabelingV1beta1ExportDataRequest) *ProjectsDatasetsExportDataCall {
6943 c := &ProjectsDatasetsExportDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
6944 c.name = name
6945 c.googleclouddatalabelingv1beta1exportdatarequest = googleclouddatalabelingv1beta1exportdatarequest
6946 return c
6947 }
6948
6949
6950
6951
6952 func (c *ProjectsDatasetsExportDataCall) Fields(s ...googleapi.Field) *ProjectsDatasetsExportDataCall {
6953 c.urlParams_.Set("fields", googleapi.CombineFields(s))
6954 return c
6955 }
6956
6957
6958 func (c *ProjectsDatasetsExportDataCall) Context(ctx context.Context) *ProjectsDatasetsExportDataCall {
6959 c.ctx_ = ctx
6960 return c
6961 }
6962
6963
6964
6965 func (c *ProjectsDatasetsExportDataCall) Header() http.Header {
6966 if c.header_ == nil {
6967 c.header_ = make(http.Header)
6968 }
6969 return c.header_
6970 }
6971
6972 func (c *ProjectsDatasetsExportDataCall) doRequest(alt string) (*http.Response, error) {
6973 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
6974 var body io.Reader = nil
6975 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1exportdatarequest)
6976 if err != nil {
6977 return nil, err
6978 }
6979 c.urlParams_.Set("alt", alt)
6980 c.urlParams_.Set("prettyPrint", "false")
6981 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:exportData")
6982 urls += "?" + c.urlParams_.Encode()
6983 req, err := http.NewRequest("POST", urls, body)
6984 if err != nil {
6985 return nil, err
6986 }
6987 req.Header = reqHeaders
6988 googleapi.Expand(req.URL, map[string]string{
6989 "name": c.name,
6990 })
6991 return gensupport.SendRequest(c.ctx_, c.s.client, req)
6992 }
6993
6994
6995
6996
6997
6998
6999
7000 func (c *ProjectsDatasetsExportDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
7001 gensupport.SetOptions(c.urlParams_, opts...)
7002 res, err := c.doRequest("json")
7003 if res != nil && res.StatusCode == http.StatusNotModified {
7004 if res.Body != nil {
7005 res.Body.Close()
7006 }
7007 return nil, gensupport.WrapError(&googleapi.Error{
7008 Code: res.StatusCode,
7009 Header: res.Header,
7010 })
7011 }
7012 if err != nil {
7013 return nil, err
7014 }
7015 defer googleapi.CloseBody(res)
7016 if err := googleapi.CheckResponse(res); err != nil {
7017 return nil, gensupport.WrapError(err)
7018 }
7019 ret := &GoogleLongrunningOperation{
7020 ServerResponse: googleapi.ServerResponse{
7021 Header: res.Header,
7022 HTTPStatusCode: res.StatusCode,
7023 },
7024 }
7025 target := &ret
7026 if err := gensupport.DecodeResponse(target, res); err != nil {
7027 return nil, err
7028 }
7029 return ret, nil
7030 }
7031
7032 type ProjectsDatasetsGetCall struct {
7033 s *Service
7034 name string
7035 urlParams_ gensupport.URLParams
7036 ifNoneMatch_ string
7037 ctx_ context.Context
7038 header_ http.Header
7039 }
7040
7041
7042
7043
7044
7045 func (r *ProjectsDatasetsService) Get(name string) *ProjectsDatasetsGetCall {
7046 c := &ProjectsDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7047 c.name = name
7048 return c
7049 }
7050
7051
7052
7053
7054 func (c *ProjectsDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsGetCall {
7055 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7056 return c
7057 }
7058
7059
7060
7061
7062 func (c *ProjectsDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsGetCall {
7063 c.ifNoneMatch_ = entityTag
7064 return c
7065 }
7066
7067
7068 func (c *ProjectsDatasetsGetCall) Context(ctx context.Context) *ProjectsDatasetsGetCall {
7069 c.ctx_ = ctx
7070 return c
7071 }
7072
7073
7074
7075 func (c *ProjectsDatasetsGetCall) Header() http.Header {
7076 if c.header_ == nil {
7077 c.header_ = make(http.Header)
7078 }
7079 return c.header_
7080 }
7081
7082 func (c *ProjectsDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
7083 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7084 if c.ifNoneMatch_ != "" {
7085 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7086 }
7087 var body io.Reader = nil
7088 c.urlParams_.Set("alt", alt)
7089 c.urlParams_.Set("prettyPrint", "false")
7090 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
7091 urls += "?" + c.urlParams_.Encode()
7092 req, err := http.NewRequest("GET", urls, body)
7093 if err != nil {
7094 return nil, err
7095 }
7096 req.Header = reqHeaders
7097 googleapi.Expand(req.URL, map[string]string{
7098 "name": c.name,
7099 })
7100 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7101 }
7102
7103
7104
7105
7106
7107
7108
7109 func (c *ProjectsDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Dataset, error) {
7110 gensupport.SetOptions(c.urlParams_, opts...)
7111 res, err := c.doRequest("json")
7112 if res != nil && res.StatusCode == http.StatusNotModified {
7113 if res.Body != nil {
7114 res.Body.Close()
7115 }
7116 return nil, gensupport.WrapError(&googleapi.Error{
7117 Code: res.StatusCode,
7118 Header: res.Header,
7119 })
7120 }
7121 if err != nil {
7122 return nil, err
7123 }
7124 defer googleapi.CloseBody(res)
7125 if err := googleapi.CheckResponse(res); err != nil {
7126 return nil, gensupport.WrapError(err)
7127 }
7128 ret := &GoogleCloudDatalabelingV1beta1Dataset{
7129 ServerResponse: googleapi.ServerResponse{
7130 Header: res.Header,
7131 HTTPStatusCode: res.StatusCode,
7132 },
7133 }
7134 target := &ret
7135 if err := gensupport.DecodeResponse(target, res); err != nil {
7136 return nil, err
7137 }
7138 return ret, nil
7139 }
7140
7141 type ProjectsDatasetsImportDataCall struct {
7142 s *Service
7143 name string
7144 googleclouddatalabelingv1beta1importdatarequest *GoogleCloudDatalabelingV1beta1ImportDataRequest
7145 urlParams_ gensupport.URLParams
7146 ctx_ context.Context
7147 header_ http.Header
7148 }
7149
7150
7151
7152
7153
7154
7155
7156
7157
7158 func (r *ProjectsDatasetsService) ImportData(name string, googleclouddatalabelingv1beta1importdatarequest *GoogleCloudDatalabelingV1beta1ImportDataRequest) *ProjectsDatasetsImportDataCall {
7159 c := &ProjectsDatasetsImportDataCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7160 c.name = name
7161 c.googleclouddatalabelingv1beta1importdatarequest = googleclouddatalabelingv1beta1importdatarequest
7162 return c
7163 }
7164
7165
7166
7167
7168 func (c *ProjectsDatasetsImportDataCall) Fields(s ...googleapi.Field) *ProjectsDatasetsImportDataCall {
7169 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7170 return c
7171 }
7172
7173
7174 func (c *ProjectsDatasetsImportDataCall) Context(ctx context.Context) *ProjectsDatasetsImportDataCall {
7175 c.ctx_ = ctx
7176 return c
7177 }
7178
7179
7180
7181 func (c *ProjectsDatasetsImportDataCall) Header() http.Header {
7182 if c.header_ == nil {
7183 c.header_ = make(http.Header)
7184 }
7185 return c.header_
7186 }
7187
7188 func (c *ProjectsDatasetsImportDataCall) doRequest(alt string) (*http.Response, error) {
7189 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
7190 var body io.Reader = nil
7191 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1importdatarequest)
7192 if err != nil {
7193 return nil, err
7194 }
7195 c.urlParams_.Set("alt", alt)
7196 c.urlParams_.Set("prettyPrint", "false")
7197 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:importData")
7198 urls += "?" + c.urlParams_.Encode()
7199 req, err := http.NewRequest("POST", urls, body)
7200 if err != nil {
7201 return nil, err
7202 }
7203 req.Header = reqHeaders
7204 googleapi.Expand(req.URL, map[string]string{
7205 "name": c.name,
7206 })
7207 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7208 }
7209
7210
7211
7212
7213
7214
7215
7216 func (c *ProjectsDatasetsImportDataCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
7217 gensupport.SetOptions(c.urlParams_, opts...)
7218 res, err := c.doRequest("json")
7219 if res != nil && res.StatusCode == http.StatusNotModified {
7220 if res.Body != nil {
7221 res.Body.Close()
7222 }
7223 return nil, gensupport.WrapError(&googleapi.Error{
7224 Code: res.StatusCode,
7225 Header: res.Header,
7226 })
7227 }
7228 if err != nil {
7229 return nil, err
7230 }
7231 defer googleapi.CloseBody(res)
7232 if err := googleapi.CheckResponse(res); err != nil {
7233 return nil, gensupport.WrapError(err)
7234 }
7235 ret := &GoogleLongrunningOperation{
7236 ServerResponse: googleapi.ServerResponse{
7237 Header: res.Header,
7238 HTTPStatusCode: res.StatusCode,
7239 },
7240 }
7241 target := &ret
7242 if err := gensupport.DecodeResponse(target, res); err != nil {
7243 return nil, err
7244 }
7245 return ret, nil
7246 }
7247
7248 type ProjectsDatasetsListCall struct {
7249 s *Service
7250 parent string
7251 urlParams_ gensupport.URLParams
7252 ifNoneMatch_ string
7253 ctx_ context.Context
7254 header_ http.Header
7255 }
7256
7257
7258
7259
7260 func (r *ProjectsDatasetsService) List(parent string) *ProjectsDatasetsListCall {
7261 c := &ProjectsDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7262 c.parent = parent
7263 return c
7264 }
7265
7266
7267
7268 func (c *ProjectsDatasetsListCall) Filter(filter string) *ProjectsDatasetsListCall {
7269 c.urlParams_.Set("filter", filter)
7270 return c
7271 }
7272
7273
7274
7275 func (c *ProjectsDatasetsListCall) PageSize(pageSize int64) *ProjectsDatasetsListCall {
7276 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7277 return c
7278 }
7279
7280
7281
7282
7283
7284 func (c *ProjectsDatasetsListCall) PageToken(pageToken string) *ProjectsDatasetsListCall {
7285 c.urlParams_.Set("pageToken", pageToken)
7286 return c
7287 }
7288
7289
7290
7291
7292 func (c *ProjectsDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsListCall {
7293 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7294 return c
7295 }
7296
7297
7298
7299
7300 func (c *ProjectsDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsListCall {
7301 c.ifNoneMatch_ = entityTag
7302 return c
7303 }
7304
7305
7306 func (c *ProjectsDatasetsListCall) Context(ctx context.Context) *ProjectsDatasetsListCall {
7307 c.ctx_ = ctx
7308 return c
7309 }
7310
7311
7312
7313 func (c *ProjectsDatasetsListCall) Header() http.Header {
7314 if c.header_ == nil {
7315 c.header_ = make(http.Header)
7316 }
7317 return c.header_
7318 }
7319
7320 func (c *ProjectsDatasetsListCall) doRequest(alt string) (*http.Response, error) {
7321 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7322 if c.ifNoneMatch_ != "" {
7323 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7324 }
7325 var body io.Reader = nil
7326 c.urlParams_.Set("alt", alt)
7327 c.urlParams_.Set("prettyPrint", "false")
7328 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/datasets")
7329 urls += "?" + c.urlParams_.Encode()
7330 req, err := http.NewRequest("GET", urls, body)
7331 if err != nil {
7332 return nil, err
7333 }
7334 req.Header = reqHeaders
7335 googleapi.Expand(req.URL, map[string]string{
7336 "parent": c.parent,
7337 })
7338 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7339 }
7340
7341
7342
7343
7344
7345
7346
7347 func (c *ProjectsDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDatasetsResponse, error) {
7348 gensupport.SetOptions(c.urlParams_, opts...)
7349 res, err := c.doRequest("json")
7350 if res != nil && res.StatusCode == http.StatusNotModified {
7351 if res.Body != nil {
7352 res.Body.Close()
7353 }
7354 return nil, gensupport.WrapError(&googleapi.Error{
7355 Code: res.StatusCode,
7356 Header: res.Header,
7357 })
7358 }
7359 if err != nil {
7360 return nil, err
7361 }
7362 defer googleapi.CloseBody(res)
7363 if err := googleapi.CheckResponse(res); err != nil {
7364 return nil, gensupport.WrapError(err)
7365 }
7366 ret := &GoogleCloudDatalabelingV1beta1ListDatasetsResponse{
7367 ServerResponse: googleapi.ServerResponse{
7368 Header: res.Header,
7369 HTTPStatusCode: res.StatusCode,
7370 },
7371 }
7372 target := &ret
7373 if err := gensupport.DecodeResponse(target, res); err != nil {
7374 return nil, err
7375 }
7376 return ret, nil
7377 }
7378
7379
7380
7381
7382 func (c *ProjectsDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDatasetsResponse) error) error {
7383 c.ctx_ = ctx
7384 defer c.PageToken(c.urlParams_.Get("pageToken"))
7385 for {
7386 x, err := c.Do()
7387 if err != nil {
7388 return err
7389 }
7390 if err := f(x); err != nil {
7391 return err
7392 }
7393 if x.NextPageToken == "" {
7394 return nil
7395 }
7396 c.PageToken(x.NextPageToken)
7397 }
7398 }
7399
7400 type ProjectsDatasetsAnnotatedDatasetsDeleteCall struct {
7401 s *Service
7402 name string
7403 urlParams_ gensupport.URLParams
7404 ctx_ context.Context
7405 header_ http.Header
7406 }
7407
7408
7409
7410
7411
7412
7413 func (r *ProjectsDatasetsAnnotatedDatasetsService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsDeleteCall {
7414 c := &ProjectsDatasetsAnnotatedDatasetsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7415 c.name = name
7416 return c
7417 }
7418
7419
7420
7421
7422 func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDeleteCall {
7423 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7424 return c
7425 }
7426
7427
7428 func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDeleteCall {
7429 c.ctx_ = ctx
7430 return c
7431 }
7432
7433
7434
7435 func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Header() http.Header {
7436 if c.header_ == nil {
7437 c.header_ = make(http.Header)
7438 }
7439 return c.header_
7440 }
7441
7442 func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) doRequest(alt string) (*http.Response, error) {
7443 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7444 var body io.Reader = nil
7445 c.urlParams_.Set("alt", alt)
7446 c.urlParams_.Set("prettyPrint", "false")
7447 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
7448 urls += "?" + c.urlParams_.Encode()
7449 req, err := http.NewRequest("DELETE", urls, body)
7450 if err != nil {
7451 return nil, err
7452 }
7453 req.Header = reqHeaders
7454 googleapi.Expand(req.URL, map[string]string{
7455 "name": c.name,
7456 })
7457 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7458 }
7459
7460
7461
7462
7463
7464
7465
7466 func (c *ProjectsDatasetsAnnotatedDatasetsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
7467 gensupport.SetOptions(c.urlParams_, opts...)
7468 res, err := c.doRequest("json")
7469 if res != nil && res.StatusCode == http.StatusNotModified {
7470 if res.Body != nil {
7471 res.Body.Close()
7472 }
7473 return nil, gensupport.WrapError(&googleapi.Error{
7474 Code: res.StatusCode,
7475 Header: res.Header,
7476 })
7477 }
7478 if err != nil {
7479 return nil, err
7480 }
7481 defer googleapi.CloseBody(res)
7482 if err := googleapi.CheckResponse(res); err != nil {
7483 return nil, gensupport.WrapError(err)
7484 }
7485 ret := &GoogleProtobufEmpty{
7486 ServerResponse: googleapi.ServerResponse{
7487 Header: res.Header,
7488 HTTPStatusCode: res.StatusCode,
7489 },
7490 }
7491 target := &ret
7492 if err := gensupport.DecodeResponse(target, res); err != nil {
7493 return nil, err
7494 }
7495 return ret, nil
7496 }
7497
7498 type ProjectsDatasetsAnnotatedDatasetsGetCall struct {
7499 s *Service
7500 name string
7501 urlParams_ gensupport.URLParams
7502 ifNoneMatch_ string
7503 ctx_ context.Context
7504 header_ http.Header
7505 }
7506
7507
7508
7509
7510
7511
7512 func (r *ProjectsDatasetsAnnotatedDatasetsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsGetCall {
7513 c := &ProjectsDatasetsAnnotatedDatasetsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7514 c.name = name
7515 return c
7516 }
7517
7518
7519
7520
7521 func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsGetCall {
7522 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7523 return c
7524 }
7525
7526
7527
7528
7529 func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsGetCall {
7530 c.ifNoneMatch_ = entityTag
7531 return c
7532 }
7533
7534
7535 func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsGetCall {
7536 c.ctx_ = ctx
7537 return c
7538 }
7539
7540
7541
7542 func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Header() http.Header {
7543 if c.header_ == nil {
7544 c.header_ = make(http.Header)
7545 }
7546 return c.header_
7547 }
7548
7549 func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) doRequest(alt string) (*http.Response, error) {
7550 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7551 if c.ifNoneMatch_ != "" {
7552 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7553 }
7554 var body io.Reader = nil
7555 c.urlParams_.Set("alt", alt)
7556 c.urlParams_.Set("prettyPrint", "false")
7557 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
7558 urls += "?" + c.urlParams_.Encode()
7559 req, err := http.NewRequest("GET", urls, body)
7560 if err != nil {
7561 return nil, err
7562 }
7563 req.Header = reqHeaders
7564 googleapi.Expand(req.URL, map[string]string{
7565 "name": c.name,
7566 })
7567 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7568 }
7569
7570
7571
7572
7573
7574
7575
7576 func (c *ProjectsDatasetsAnnotatedDatasetsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1AnnotatedDataset, error) {
7577 gensupport.SetOptions(c.urlParams_, opts...)
7578 res, err := c.doRequest("json")
7579 if res != nil && res.StatusCode == http.StatusNotModified {
7580 if res.Body != nil {
7581 res.Body.Close()
7582 }
7583 return nil, gensupport.WrapError(&googleapi.Error{
7584 Code: res.StatusCode,
7585 Header: res.Header,
7586 })
7587 }
7588 if err != nil {
7589 return nil, err
7590 }
7591 defer googleapi.CloseBody(res)
7592 if err := googleapi.CheckResponse(res); err != nil {
7593 return nil, gensupport.WrapError(err)
7594 }
7595 ret := &GoogleCloudDatalabelingV1beta1AnnotatedDataset{
7596 ServerResponse: googleapi.ServerResponse{
7597 Header: res.Header,
7598 HTTPStatusCode: res.StatusCode,
7599 },
7600 }
7601 target := &ret
7602 if err := gensupport.DecodeResponse(target, res); err != nil {
7603 return nil, err
7604 }
7605 return ret, nil
7606 }
7607
7608 type ProjectsDatasetsAnnotatedDatasetsListCall struct {
7609 s *Service
7610 parent string
7611 urlParams_ gensupport.URLParams
7612 ifNoneMatch_ string
7613 ctx_ context.Context
7614 header_ http.Header
7615 }
7616
7617
7618
7619
7620
7621 func (r *ProjectsDatasetsAnnotatedDatasetsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsListCall {
7622 c := &ProjectsDatasetsAnnotatedDatasetsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7623 c.parent = parent
7624 return c
7625 }
7626
7627
7628
7629 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsListCall {
7630 c.urlParams_.Set("filter", filter)
7631 return c
7632 }
7633
7634
7635
7636 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsListCall {
7637 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7638 return c
7639 }
7640
7641
7642
7643
7644
7645
7646 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsListCall {
7647 c.urlParams_.Set("pageToken", pageToken)
7648 return c
7649 }
7650
7651
7652
7653
7654 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsListCall {
7655 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7656 return c
7657 }
7658
7659
7660
7661
7662 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsListCall {
7663 c.ifNoneMatch_ = entityTag
7664 return c
7665 }
7666
7667
7668 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsListCall {
7669 c.ctx_ = ctx
7670 return c
7671 }
7672
7673
7674
7675 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Header() http.Header {
7676 if c.header_ == nil {
7677 c.header_ = make(http.Header)
7678 }
7679 return c.header_
7680 }
7681
7682 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) doRequest(alt string) (*http.Response, error) {
7683 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7684 if c.ifNoneMatch_ != "" {
7685 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7686 }
7687 var body io.Reader = nil
7688 c.urlParams_.Set("alt", alt)
7689 c.urlParams_.Set("prettyPrint", "false")
7690 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/annotatedDatasets")
7691 urls += "?" + c.urlParams_.Encode()
7692 req, err := http.NewRequest("GET", urls, body)
7693 if err != nil {
7694 return nil, err
7695 }
7696 req.Header = reqHeaders
7697 googleapi.Expand(req.URL, map[string]string{
7698 "parent": c.parent,
7699 })
7700 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7701 }
7702
7703
7704
7705
7706
7707
7708
7709 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse, error) {
7710 gensupport.SetOptions(c.urlParams_, opts...)
7711 res, err := c.doRequest("json")
7712 if res != nil && res.StatusCode == http.StatusNotModified {
7713 if res.Body != nil {
7714 res.Body.Close()
7715 }
7716 return nil, gensupport.WrapError(&googleapi.Error{
7717 Code: res.StatusCode,
7718 Header: res.Header,
7719 })
7720 }
7721 if err != nil {
7722 return nil, err
7723 }
7724 defer googleapi.CloseBody(res)
7725 if err := googleapi.CheckResponse(res); err != nil {
7726 return nil, gensupport.WrapError(err)
7727 }
7728 ret := &GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse{
7729 ServerResponse: googleapi.ServerResponse{
7730 Header: res.Header,
7731 HTTPStatusCode: res.StatusCode,
7732 },
7733 }
7734 target := &ret
7735 if err := gensupport.DecodeResponse(target, res); err != nil {
7736 return nil, err
7737 }
7738 return ret, nil
7739 }
7740
7741
7742
7743
7744 func (c *ProjectsDatasetsAnnotatedDatasetsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListAnnotatedDatasetsResponse) error) error {
7745 c.ctx_ = ctx
7746 defer c.PageToken(c.urlParams_.Get("pageToken"))
7747 for {
7748 x, err := c.Do()
7749 if err != nil {
7750 return err
7751 }
7752 if err := f(x); err != nil {
7753 return err
7754 }
7755 if x.NextPageToken == "" {
7756 return nil
7757 }
7758 c.PageToken(x.NextPageToken)
7759 }
7760 }
7761
7762 type ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall struct {
7763 s *Service
7764 name string
7765 urlParams_ gensupport.URLParams
7766 ifNoneMatch_ string
7767 ctx_ context.Context
7768 header_ http.Header
7769 }
7770
7771
7772
7773
7774
7775
7776 func (r *ProjectsDatasetsAnnotatedDatasetsDataItemsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall {
7777 c := &ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7778 c.name = name
7779 return c
7780 }
7781
7782
7783
7784
7785 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall {
7786 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7787 return c
7788 }
7789
7790
7791
7792
7793 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall {
7794 c.ifNoneMatch_ = entityTag
7795 return c
7796 }
7797
7798
7799 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall {
7800 c.ctx_ = ctx
7801 return c
7802 }
7803
7804
7805
7806 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Header() http.Header {
7807 if c.header_ == nil {
7808 c.header_ = make(http.Header)
7809 }
7810 return c.header_
7811 }
7812
7813 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) doRequest(alt string) (*http.Response, error) {
7814 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7815 if c.ifNoneMatch_ != "" {
7816 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7817 }
7818 var body io.Reader = nil
7819 c.urlParams_.Set("alt", alt)
7820 c.urlParams_.Set("prettyPrint", "false")
7821 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
7822 urls += "?" + c.urlParams_.Encode()
7823 req, err := http.NewRequest("GET", urls, body)
7824 if err != nil {
7825 return nil, err
7826 }
7827 req.Header = reqHeaders
7828 googleapi.Expand(req.URL, map[string]string{
7829 "name": c.name,
7830 })
7831 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7832 }
7833
7834
7835
7836
7837
7838
7839
7840 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1DataItem, error) {
7841 gensupport.SetOptions(c.urlParams_, opts...)
7842 res, err := c.doRequest("json")
7843 if res != nil && res.StatusCode == http.StatusNotModified {
7844 if res.Body != nil {
7845 res.Body.Close()
7846 }
7847 return nil, gensupport.WrapError(&googleapi.Error{
7848 Code: res.StatusCode,
7849 Header: res.Header,
7850 })
7851 }
7852 if err != nil {
7853 return nil, err
7854 }
7855 defer googleapi.CloseBody(res)
7856 if err := googleapi.CheckResponse(res); err != nil {
7857 return nil, gensupport.WrapError(err)
7858 }
7859 ret := &GoogleCloudDatalabelingV1beta1DataItem{
7860 ServerResponse: googleapi.ServerResponse{
7861 Header: res.Header,
7862 HTTPStatusCode: res.StatusCode,
7863 },
7864 }
7865 target := &ret
7866 if err := gensupport.DecodeResponse(target, res); err != nil {
7867 return nil, err
7868 }
7869 return ret, nil
7870 }
7871
7872 type ProjectsDatasetsAnnotatedDatasetsDataItemsListCall struct {
7873 s *Service
7874 parent string
7875 urlParams_ gensupport.URLParams
7876 ifNoneMatch_ string
7877 ctx_ context.Context
7878 header_ http.Header
7879 }
7880
7881
7882
7883
7884
7885
7886 func (r *ProjectsDatasetsAnnotatedDatasetsDataItemsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
7887 c := &ProjectsDatasetsAnnotatedDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
7888 c.parent = parent
7889 return c
7890 }
7891
7892
7893
7894 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
7895 c.urlParams_.Set("filter", filter)
7896 return c
7897 }
7898
7899
7900
7901 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
7902 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
7903 return c
7904 }
7905
7906
7907
7908
7909
7910 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
7911 c.urlParams_.Set("pageToken", pageToken)
7912 return c
7913 }
7914
7915
7916
7917
7918 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
7919 c.urlParams_.Set("fields", googleapi.CombineFields(s))
7920 return c
7921 }
7922
7923
7924
7925
7926 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
7927 c.ifNoneMatch_ = entityTag
7928 return c
7929 }
7930
7931
7932 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall {
7933 c.ctx_ = ctx
7934 return c
7935 }
7936
7937
7938
7939 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Header() http.Header {
7940 if c.header_ == nil {
7941 c.header_ = make(http.Header)
7942 }
7943 return c.header_
7944 }
7945
7946 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) doRequest(alt string) (*http.Response, error) {
7947 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
7948 if c.ifNoneMatch_ != "" {
7949 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
7950 }
7951 var body io.Reader = nil
7952 c.urlParams_.Set("alt", alt)
7953 c.urlParams_.Set("prettyPrint", "false")
7954 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dataItems")
7955 urls += "?" + c.urlParams_.Encode()
7956 req, err := http.NewRequest("GET", urls, body)
7957 if err != nil {
7958 return nil, err
7959 }
7960 req.Header = reqHeaders
7961 googleapi.Expand(req.URL, map[string]string{
7962 "parent": c.parent,
7963 })
7964 return gensupport.SendRequest(c.ctx_, c.s.client, req)
7965 }
7966
7967
7968
7969
7970
7971
7972
7973 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDataItemsResponse, error) {
7974 gensupport.SetOptions(c.urlParams_, opts...)
7975 res, err := c.doRequest("json")
7976 if res != nil && res.StatusCode == http.StatusNotModified {
7977 if res.Body != nil {
7978 res.Body.Close()
7979 }
7980 return nil, gensupport.WrapError(&googleapi.Error{
7981 Code: res.StatusCode,
7982 Header: res.Header,
7983 })
7984 }
7985 if err != nil {
7986 return nil, err
7987 }
7988 defer googleapi.CloseBody(res)
7989 if err := googleapi.CheckResponse(res); err != nil {
7990 return nil, gensupport.WrapError(err)
7991 }
7992 ret := &GoogleCloudDatalabelingV1beta1ListDataItemsResponse{
7993 ServerResponse: googleapi.ServerResponse{
7994 Header: res.Header,
7995 HTTPStatusCode: res.StatusCode,
7996 },
7997 }
7998 target := &ret
7999 if err := gensupport.DecodeResponse(target, res); err != nil {
8000 return nil, err
8001 }
8002 return ret, nil
8003 }
8004
8005
8006
8007
8008 func (c *ProjectsDatasetsAnnotatedDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDataItemsResponse) error) error {
8009 c.ctx_ = ctx
8010 defer c.PageToken(c.urlParams_.Get("pageToken"))
8011 for {
8012 x, err := c.Do()
8013 if err != nil {
8014 return err
8015 }
8016 if err := f(x); err != nil {
8017 return err
8018 }
8019 if x.NextPageToken == "" {
8020 return nil
8021 }
8022 c.PageToken(x.NextPageToken)
8023 }
8024 }
8025
8026 type ProjectsDatasetsAnnotatedDatasetsExamplesGetCall struct {
8027 s *Service
8028 name string
8029 urlParams_ gensupport.URLParams
8030 ifNoneMatch_ string
8031 ctx_ context.Context
8032 header_ http.Header
8033 }
8034
8035
8036
8037
8038
8039
8040 func (r *ProjectsDatasetsAnnotatedDatasetsExamplesService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
8041 c := &ProjectsDatasetsAnnotatedDatasetsExamplesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8042 c.name = name
8043 return c
8044 }
8045
8046
8047
8048
8049 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
8050 c.urlParams_.Set("filter", filter)
8051 return c
8052 }
8053
8054
8055
8056
8057 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
8058 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8059 return c
8060 }
8061
8062
8063
8064
8065 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
8066 c.ifNoneMatch_ = entityTag
8067 return c
8068 }
8069
8070
8071 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall {
8072 c.ctx_ = ctx
8073 return c
8074 }
8075
8076
8077
8078 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Header() http.Header {
8079 if c.header_ == nil {
8080 c.header_ = make(http.Header)
8081 }
8082 return c.header_
8083 }
8084
8085 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) doRequest(alt string) (*http.Response, error) {
8086 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8087 if c.ifNoneMatch_ != "" {
8088 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8089 }
8090 var body io.Reader = nil
8091 c.urlParams_.Set("alt", alt)
8092 c.urlParams_.Set("prettyPrint", "false")
8093 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
8094 urls += "?" + c.urlParams_.Encode()
8095 req, err := http.NewRequest("GET", urls, body)
8096 if err != nil {
8097 return nil, err
8098 }
8099 req.Header = reqHeaders
8100 googleapi.Expand(req.URL, map[string]string{
8101 "name": c.name,
8102 })
8103 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8104 }
8105
8106
8107
8108
8109
8110
8111
8112 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Example, error) {
8113 gensupport.SetOptions(c.urlParams_, opts...)
8114 res, err := c.doRequest("json")
8115 if res != nil && res.StatusCode == http.StatusNotModified {
8116 if res.Body != nil {
8117 res.Body.Close()
8118 }
8119 return nil, gensupport.WrapError(&googleapi.Error{
8120 Code: res.StatusCode,
8121 Header: res.Header,
8122 })
8123 }
8124 if err != nil {
8125 return nil, err
8126 }
8127 defer googleapi.CloseBody(res)
8128 if err := googleapi.CheckResponse(res); err != nil {
8129 return nil, gensupport.WrapError(err)
8130 }
8131 ret := &GoogleCloudDatalabelingV1beta1Example{
8132 ServerResponse: googleapi.ServerResponse{
8133 Header: res.Header,
8134 HTTPStatusCode: res.StatusCode,
8135 },
8136 }
8137 target := &ret
8138 if err := gensupport.DecodeResponse(target, res); err != nil {
8139 return nil, err
8140 }
8141 return ret, nil
8142 }
8143
8144 type ProjectsDatasetsAnnotatedDatasetsExamplesListCall struct {
8145 s *Service
8146 parent string
8147 urlParams_ gensupport.URLParams
8148 ifNoneMatch_ string
8149 ctx_ context.Context
8150 header_ http.Header
8151 }
8152
8153
8154
8155
8156 func (r *ProjectsDatasetsAnnotatedDatasetsExamplesService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
8157 c := &ProjectsDatasetsAnnotatedDatasetsExamplesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8158 c.parent = parent
8159 return c
8160 }
8161
8162
8163
8164
8165
8166 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Filter(filter string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
8167 c.urlParams_.Set("filter", filter)
8168 return c
8169 }
8170
8171
8172
8173 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
8174 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8175 return c
8176 }
8177
8178
8179
8180
8181
8182 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
8183 c.urlParams_.Set("pageToken", pageToken)
8184 return c
8185 }
8186
8187
8188
8189
8190 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
8191 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8192 return c
8193 }
8194
8195
8196
8197
8198 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
8199 c.ifNoneMatch_ = entityTag
8200 return c
8201 }
8202
8203
8204 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsExamplesListCall {
8205 c.ctx_ = ctx
8206 return c
8207 }
8208
8209
8210
8211 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Header() http.Header {
8212 if c.header_ == nil {
8213 c.header_ = make(http.Header)
8214 }
8215 return c.header_
8216 }
8217
8218 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) doRequest(alt string) (*http.Response, error) {
8219 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8220 if c.ifNoneMatch_ != "" {
8221 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8222 }
8223 var body io.Reader = nil
8224 c.urlParams_.Set("alt", alt)
8225 c.urlParams_.Set("prettyPrint", "false")
8226 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/examples")
8227 urls += "?" + c.urlParams_.Encode()
8228 req, err := http.NewRequest("GET", urls, body)
8229 if err != nil {
8230 return nil, err
8231 }
8232 req.Header = reqHeaders
8233 googleapi.Expand(req.URL, map[string]string{
8234 "parent": c.parent,
8235 })
8236 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8237 }
8238
8239
8240
8241
8242
8243
8244
8245 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListExamplesResponse, error) {
8246 gensupport.SetOptions(c.urlParams_, opts...)
8247 res, err := c.doRequest("json")
8248 if res != nil && res.StatusCode == http.StatusNotModified {
8249 if res.Body != nil {
8250 res.Body.Close()
8251 }
8252 return nil, gensupport.WrapError(&googleapi.Error{
8253 Code: res.StatusCode,
8254 Header: res.Header,
8255 })
8256 }
8257 if err != nil {
8258 return nil, err
8259 }
8260 defer googleapi.CloseBody(res)
8261 if err := googleapi.CheckResponse(res); err != nil {
8262 return nil, gensupport.WrapError(err)
8263 }
8264 ret := &GoogleCloudDatalabelingV1beta1ListExamplesResponse{
8265 ServerResponse: googleapi.ServerResponse{
8266 Header: res.Header,
8267 HTTPStatusCode: res.StatusCode,
8268 },
8269 }
8270 target := &ret
8271 if err := gensupport.DecodeResponse(target, res); err != nil {
8272 return nil, err
8273 }
8274 return ret, nil
8275 }
8276
8277
8278
8279
8280 func (c *ProjectsDatasetsAnnotatedDatasetsExamplesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListExamplesResponse) error) error {
8281 c.ctx_ = ctx
8282 defer c.PageToken(c.urlParams_.Get("pageToken"))
8283 for {
8284 x, err := c.Do()
8285 if err != nil {
8286 return err
8287 }
8288 if err := f(x); err != nil {
8289 return err
8290 }
8291 if x.NextPageToken == "" {
8292 return nil
8293 }
8294 c.PageToken(x.NextPageToken)
8295 }
8296 }
8297
8298 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall struct {
8299 s *Service
8300 name string
8301 urlParams_ gensupport.URLParams
8302 ctx_ context.Context
8303 header_ http.Header
8304 }
8305
8306
8307
8308
8309
8310
8311 func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall {
8312 c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8313 c.name = name
8314 return c
8315 }
8316
8317
8318
8319
8320 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall {
8321 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8322 return c
8323 }
8324
8325
8326 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall {
8327 c.ctx_ = ctx
8328 return c
8329 }
8330
8331
8332
8333 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Header() http.Header {
8334 if c.header_ == nil {
8335 c.header_ = make(http.Header)
8336 }
8337 return c.header_
8338 }
8339
8340 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) doRequest(alt string) (*http.Response, error) {
8341 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8342 var body io.Reader = nil
8343 c.urlParams_.Set("alt", alt)
8344 c.urlParams_.Set("prettyPrint", "false")
8345 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
8346 urls += "?" + c.urlParams_.Encode()
8347 req, err := http.NewRequest("DELETE", urls, body)
8348 if err != nil {
8349 return nil, err
8350 }
8351 req.Header = reqHeaders
8352 googleapi.Expand(req.URL, map[string]string{
8353 "name": c.name,
8354 })
8355 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8356 }
8357
8358
8359
8360
8361
8362
8363
8364 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
8365 gensupport.SetOptions(c.urlParams_, opts...)
8366 res, err := c.doRequest("json")
8367 if res != nil && res.StatusCode == http.StatusNotModified {
8368 if res.Body != nil {
8369 res.Body.Close()
8370 }
8371 return nil, gensupport.WrapError(&googleapi.Error{
8372 Code: res.StatusCode,
8373 Header: res.Header,
8374 })
8375 }
8376 if err != nil {
8377 return nil, err
8378 }
8379 defer googleapi.CloseBody(res)
8380 if err := googleapi.CheckResponse(res); err != nil {
8381 return nil, gensupport.WrapError(err)
8382 }
8383 ret := &GoogleProtobufEmpty{
8384 ServerResponse: googleapi.ServerResponse{
8385 Header: res.Header,
8386 HTTPStatusCode: res.StatusCode,
8387 },
8388 }
8389 target := &ret
8390 if err := gensupport.DecodeResponse(target, res); err != nil {
8391 return nil, err
8392 }
8393 return ret, nil
8394 }
8395
8396 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall struct {
8397 s *Service
8398 name string
8399 urlParams_ gensupport.URLParams
8400 ifNoneMatch_ string
8401 ctx_ context.Context
8402 header_ http.Header
8403 }
8404
8405
8406
8407
8408
8409
8410 func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall {
8411 c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8412 c.name = name
8413 return c
8414 }
8415
8416
8417
8418
8419 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall {
8420 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8421 return c
8422 }
8423
8424
8425
8426
8427 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall {
8428 c.ifNoneMatch_ = entityTag
8429 return c
8430 }
8431
8432
8433 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall {
8434 c.ctx_ = ctx
8435 return c
8436 }
8437
8438
8439
8440 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Header() http.Header {
8441 if c.header_ == nil {
8442 c.header_ = make(http.Header)
8443 }
8444 return c.header_
8445 }
8446
8447 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) doRequest(alt string) (*http.Response, error) {
8448 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8449 if c.ifNoneMatch_ != "" {
8450 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8451 }
8452 var body io.Reader = nil
8453 c.urlParams_.Set("alt", alt)
8454 c.urlParams_.Set("prettyPrint", "false")
8455 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
8456 urls += "?" + c.urlParams_.Encode()
8457 req, err := http.NewRequest("GET", urls, body)
8458 if err != nil {
8459 return nil, err
8460 }
8461 req.Header = reqHeaders
8462 googleapi.Expand(req.URL, map[string]string{
8463 "name": c.name,
8464 })
8465 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8466 }
8467
8468
8469
8470
8471
8472
8473
8474 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1FeedbackThread, error) {
8475 gensupport.SetOptions(c.urlParams_, opts...)
8476 res, err := c.doRequest("json")
8477 if res != nil && res.StatusCode == http.StatusNotModified {
8478 if res.Body != nil {
8479 res.Body.Close()
8480 }
8481 return nil, gensupport.WrapError(&googleapi.Error{
8482 Code: res.StatusCode,
8483 Header: res.Header,
8484 })
8485 }
8486 if err != nil {
8487 return nil, err
8488 }
8489 defer googleapi.CloseBody(res)
8490 if err := googleapi.CheckResponse(res); err != nil {
8491 return nil, gensupport.WrapError(err)
8492 }
8493 ret := &GoogleCloudDatalabelingV1beta1FeedbackThread{
8494 ServerResponse: googleapi.ServerResponse{
8495 Header: res.Header,
8496 HTTPStatusCode: res.StatusCode,
8497 },
8498 }
8499 target := &ret
8500 if err := gensupport.DecodeResponse(target, res); err != nil {
8501 return nil, err
8502 }
8503 return ret, nil
8504 }
8505
8506 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall struct {
8507 s *Service
8508 parent string
8509 urlParams_ gensupport.URLParams
8510 ifNoneMatch_ string
8511 ctx_ context.Context
8512 header_ http.Header
8513 }
8514
8515
8516
8517
8518
8519
8520 func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
8521 c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8522 c.parent = parent
8523 return c
8524 }
8525
8526
8527
8528 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
8529 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8530 return c
8531 }
8532
8533
8534
8535
8536
8537 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
8538 c.urlParams_.Set("pageToken", pageToken)
8539 return c
8540 }
8541
8542
8543
8544
8545 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
8546 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8547 return c
8548 }
8549
8550
8551
8552
8553 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
8554 c.ifNoneMatch_ = entityTag
8555 return c
8556 }
8557
8558
8559 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall {
8560 c.ctx_ = ctx
8561 return c
8562 }
8563
8564
8565
8566 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Header() http.Header {
8567 if c.header_ == nil {
8568 c.header_ = make(http.Header)
8569 }
8570 return c.header_
8571 }
8572
8573 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) doRequest(alt string) (*http.Response, error) {
8574 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8575 if c.ifNoneMatch_ != "" {
8576 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8577 }
8578 var body io.Reader = nil
8579 c.urlParams_.Set("alt", alt)
8580 c.urlParams_.Set("prettyPrint", "false")
8581 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackThreads")
8582 urls += "?" + c.urlParams_.Encode()
8583 req, err := http.NewRequest("GET", urls, body)
8584 if err != nil {
8585 return nil, err
8586 }
8587 req.Header = reqHeaders
8588 googleapi.Expand(req.URL, map[string]string{
8589 "parent": c.parent,
8590 })
8591 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8592 }
8593
8594
8595
8596
8597
8598
8599
8600 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse, error) {
8601 gensupport.SetOptions(c.urlParams_, opts...)
8602 res, err := c.doRequest("json")
8603 if res != nil && res.StatusCode == http.StatusNotModified {
8604 if res.Body != nil {
8605 res.Body.Close()
8606 }
8607 return nil, gensupport.WrapError(&googleapi.Error{
8608 Code: res.StatusCode,
8609 Header: res.Header,
8610 })
8611 }
8612 if err != nil {
8613 return nil, err
8614 }
8615 defer googleapi.CloseBody(res)
8616 if err := googleapi.CheckResponse(res); err != nil {
8617 return nil, gensupport.WrapError(err)
8618 }
8619 ret := &GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse{
8620 ServerResponse: googleapi.ServerResponse{
8621 Header: res.Header,
8622 HTTPStatusCode: res.StatusCode,
8623 },
8624 }
8625 target := &ret
8626 if err := gensupport.DecodeResponse(target, res); err != nil {
8627 return nil, err
8628 }
8629 return ret, nil
8630 }
8631
8632
8633
8634
8635 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListFeedbackThreadsResponse) error) error {
8636 c.ctx_ = ctx
8637 defer c.PageToken(c.urlParams_.Get("pageToken"))
8638 for {
8639 x, err := c.Do()
8640 if err != nil {
8641 return err
8642 }
8643 if err := f(x); err != nil {
8644 return err
8645 }
8646 if x.NextPageToken == "" {
8647 return nil
8648 }
8649 c.PageToken(x.NextPageToken)
8650 }
8651 }
8652
8653 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall struct {
8654 s *Service
8655 parent string
8656 googleclouddatalabelingv1beta1feedbackmessage *GoogleCloudDatalabelingV1beta1FeedbackMessage
8657 urlParams_ gensupport.URLParams
8658 ctx_ context.Context
8659 header_ http.Header
8660 }
8661
8662
8663
8664
8665
8666
8667 func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Create(parent string, googleclouddatalabelingv1beta1feedbackmessage *GoogleCloudDatalabelingV1beta1FeedbackMessage) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall {
8668 c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8669 c.parent = parent
8670 c.googleclouddatalabelingv1beta1feedbackmessage = googleclouddatalabelingv1beta1feedbackmessage
8671 return c
8672 }
8673
8674
8675
8676
8677 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall {
8678 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8679 return c
8680 }
8681
8682
8683 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall {
8684 c.ctx_ = ctx
8685 return c
8686 }
8687
8688
8689
8690 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Header() http.Header {
8691 if c.header_ == nil {
8692 c.header_ = make(http.Header)
8693 }
8694 return c.header_
8695 }
8696
8697 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) doRequest(alt string) (*http.Response, error) {
8698 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
8699 var body io.Reader = nil
8700 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1feedbackmessage)
8701 if err != nil {
8702 return nil, err
8703 }
8704 c.urlParams_.Set("alt", alt)
8705 c.urlParams_.Set("prettyPrint", "false")
8706 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackMessages")
8707 urls += "?" + c.urlParams_.Encode()
8708 req, err := http.NewRequest("POST", urls, body)
8709 if err != nil {
8710 return nil, err
8711 }
8712 req.Header = reqHeaders
8713 googleapi.Expand(req.URL, map[string]string{
8714 "parent": c.parent,
8715 })
8716 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8717 }
8718
8719
8720
8721
8722
8723
8724
8725 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
8726 gensupport.SetOptions(c.urlParams_, opts...)
8727 res, err := c.doRequest("json")
8728 if res != nil && res.StatusCode == http.StatusNotModified {
8729 if res.Body != nil {
8730 res.Body.Close()
8731 }
8732 return nil, gensupport.WrapError(&googleapi.Error{
8733 Code: res.StatusCode,
8734 Header: res.Header,
8735 })
8736 }
8737 if err != nil {
8738 return nil, err
8739 }
8740 defer googleapi.CloseBody(res)
8741 if err := googleapi.CheckResponse(res); err != nil {
8742 return nil, gensupport.WrapError(err)
8743 }
8744 ret := &GoogleLongrunningOperation{
8745 ServerResponse: googleapi.ServerResponse{
8746 Header: res.Header,
8747 HTTPStatusCode: res.StatusCode,
8748 },
8749 }
8750 target := &ret
8751 if err := gensupport.DecodeResponse(target, res); err != nil {
8752 return nil, err
8753 }
8754 return ret, nil
8755 }
8756
8757 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall struct {
8758 s *Service
8759 name string
8760 urlParams_ gensupport.URLParams
8761 ctx_ context.Context
8762 header_ http.Header
8763 }
8764
8765
8766
8767
8768
8769
8770
8771 func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Delete(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall {
8772 c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8773 c.name = name
8774 return c
8775 }
8776
8777
8778
8779
8780 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall {
8781 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8782 return c
8783 }
8784
8785
8786 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall {
8787 c.ctx_ = ctx
8788 return c
8789 }
8790
8791
8792
8793 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Header() http.Header {
8794 if c.header_ == nil {
8795 c.header_ = make(http.Header)
8796 }
8797 return c.header_
8798 }
8799
8800 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) doRequest(alt string) (*http.Response, error) {
8801 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8802 var body io.Reader = nil
8803 c.urlParams_.Set("alt", alt)
8804 c.urlParams_.Set("prettyPrint", "false")
8805 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
8806 urls += "?" + c.urlParams_.Encode()
8807 req, err := http.NewRequest("DELETE", urls, body)
8808 if err != nil {
8809 return nil, err
8810 }
8811 req.Header = reqHeaders
8812 googleapi.Expand(req.URL, map[string]string{
8813 "name": c.name,
8814 })
8815 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8816 }
8817
8818
8819
8820
8821
8822
8823
8824 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
8825 gensupport.SetOptions(c.urlParams_, opts...)
8826 res, err := c.doRequest("json")
8827 if res != nil && res.StatusCode == http.StatusNotModified {
8828 if res.Body != nil {
8829 res.Body.Close()
8830 }
8831 return nil, gensupport.WrapError(&googleapi.Error{
8832 Code: res.StatusCode,
8833 Header: res.Header,
8834 })
8835 }
8836 if err != nil {
8837 return nil, err
8838 }
8839 defer googleapi.CloseBody(res)
8840 if err := googleapi.CheckResponse(res); err != nil {
8841 return nil, gensupport.WrapError(err)
8842 }
8843 ret := &GoogleProtobufEmpty{
8844 ServerResponse: googleapi.ServerResponse{
8845 Header: res.Header,
8846 HTTPStatusCode: res.StatusCode,
8847 },
8848 }
8849 target := &ret
8850 if err := gensupport.DecodeResponse(target, res); err != nil {
8851 return nil, err
8852 }
8853 return ret, nil
8854 }
8855
8856 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall struct {
8857 s *Service
8858 name string
8859 urlParams_ gensupport.URLParams
8860 ifNoneMatch_ string
8861 ctx_ context.Context
8862 header_ http.Header
8863 }
8864
8865
8866
8867
8868
8869
8870
8871 func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) Get(name string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall {
8872 c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8873 c.name = name
8874 return c
8875 }
8876
8877
8878
8879
8880 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall {
8881 c.urlParams_.Set("fields", googleapi.CombineFields(s))
8882 return c
8883 }
8884
8885
8886
8887
8888 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall {
8889 c.ifNoneMatch_ = entityTag
8890 return c
8891 }
8892
8893
8894 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall {
8895 c.ctx_ = ctx
8896 return c
8897 }
8898
8899
8900
8901 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Header() http.Header {
8902 if c.header_ == nil {
8903 c.header_ = make(http.Header)
8904 }
8905 return c.header_
8906 }
8907
8908 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) doRequest(alt string) (*http.Response, error) {
8909 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
8910 if c.ifNoneMatch_ != "" {
8911 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
8912 }
8913 var body io.Reader = nil
8914 c.urlParams_.Set("alt", alt)
8915 c.urlParams_.Set("prettyPrint", "false")
8916 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
8917 urls += "?" + c.urlParams_.Encode()
8918 req, err := http.NewRequest("GET", urls, body)
8919 if err != nil {
8920 return nil, err
8921 }
8922 req.Header = reqHeaders
8923 googleapi.Expand(req.URL, map[string]string{
8924 "name": c.name,
8925 })
8926 return gensupport.SendRequest(c.ctx_, c.s.client, req)
8927 }
8928
8929
8930
8931
8932
8933
8934
8935 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1FeedbackMessage, error) {
8936 gensupport.SetOptions(c.urlParams_, opts...)
8937 res, err := c.doRequest("json")
8938 if res != nil && res.StatusCode == http.StatusNotModified {
8939 if res.Body != nil {
8940 res.Body.Close()
8941 }
8942 return nil, gensupport.WrapError(&googleapi.Error{
8943 Code: res.StatusCode,
8944 Header: res.Header,
8945 })
8946 }
8947 if err != nil {
8948 return nil, err
8949 }
8950 defer googleapi.CloseBody(res)
8951 if err := googleapi.CheckResponse(res); err != nil {
8952 return nil, gensupport.WrapError(err)
8953 }
8954 ret := &GoogleCloudDatalabelingV1beta1FeedbackMessage{
8955 ServerResponse: googleapi.ServerResponse{
8956 Header: res.Header,
8957 HTTPStatusCode: res.StatusCode,
8958 },
8959 }
8960 target := &ret
8961 if err := gensupport.DecodeResponse(target, res); err != nil {
8962 return nil, err
8963 }
8964 return ret, nil
8965 }
8966
8967 type ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall struct {
8968 s *Service
8969 parent string
8970 urlParams_ gensupport.URLParams
8971 ifNoneMatch_ string
8972 ctx_ context.Context
8973 header_ http.Header
8974 }
8975
8976
8977
8978
8979
8980
8981 func (r *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesService) List(parent string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
8982 c := &ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
8983 c.parent = parent
8984 return c
8985 }
8986
8987
8988
8989 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) PageSize(pageSize int64) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
8990 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
8991 return c
8992 }
8993
8994
8995
8996
8997
8998 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) PageToken(pageToken string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
8999 c.urlParams_.Set("pageToken", pageToken)
9000 return c
9001 }
9002
9003
9004
9005
9006 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
9007 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9008 return c
9009 }
9010
9011
9012
9013
9014 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
9015 c.ifNoneMatch_ = entityTag
9016 return c
9017 }
9018
9019
9020 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Context(ctx context.Context) *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall {
9021 c.ctx_ = ctx
9022 return c
9023 }
9024
9025
9026
9027 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Header() http.Header {
9028 if c.header_ == nil {
9029 c.header_ = make(http.Header)
9030 }
9031 return c.header_
9032 }
9033
9034 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) doRequest(alt string) (*http.Response, error) {
9035 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9036 if c.ifNoneMatch_ != "" {
9037 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9038 }
9039 var body io.Reader = nil
9040 c.urlParams_.Set("alt", alt)
9041 c.urlParams_.Set("prettyPrint", "false")
9042 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/feedbackMessages")
9043 urls += "?" + c.urlParams_.Encode()
9044 req, err := http.NewRequest("GET", urls, body)
9045 if err != nil {
9046 return nil, err
9047 }
9048 req.Header = reqHeaders
9049 googleapi.Expand(req.URL, map[string]string{
9050 "parent": c.parent,
9051 })
9052 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9053 }
9054
9055
9056
9057
9058
9059
9060
9061 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse, error) {
9062 gensupport.SetOptions(c.urlParams_, opts...)
9063 res, err := c.doRequest("json")
9064 if res != nil && res.StatusCode == http.StatusNotModified {
9065 if res.Body != nil {
9066 res.Body.Close()
9067 }
9068 return nil, gensupport.WrapError(&googleapi.Error{
9069 Code: res.StatusCode,
9070 Header: res.Header,
9071 })
9072 }
9073 if err != nil {
9074 return nil, err
9075 }
9076 defer googleapi.CloseBody(res)
9077 if err := googleapi.CheckResponse(res); err != nil {
9078 return nil, gensupport.WrapError(err)
9079 }
9080 ret := &GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse{
9081 ServerResponse: googleapi.ServerResponse{
9082 Header: res.Header,
9083 HTTPStatusCode: res.StatusCode,
9084 },
9085 }
9086 target := &ret
9087 if err := gensupport.DecodeResponse(target, res); err != nil {
9088 return nil, err
9089 }
9090 return ret, nil
9091 }
9092
9093
9094
9095
9096 func (c *ProjectsDatasetsAnnotatedDatasetsFeedbackThreadsFeedbackMessagesListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListFeedbackMessagesResponse) error) error {
9097 c.ctx_ = ctx
9098 defer c.PageToken(c.urlParams_.Get("pageToken"))
9099 for {
9100 x, err := c.Do()
9101 if err != nil {
9102 return err
9103 }
9104 if err := f(x); err != nil {
9105 return err
9106 }
9107 if x.NextPageToken == "" {
9108 return nil
9109 }
9110 c.PageToken(x.NextPageToken)
9111 }
9112 }
9113
9114 type ProjectsDatasetsDataItemsGetCall struct {
9115 s *Service
9116 name string
9117 urlParams_ gensupport.URLParams
9118 ifNoneMatch_ string
9119 ctx_ context.Context
9120 header_ http.Header
9121 }
9122
9123
9124
9125
9126
9127
9128 func (r *ProjectsDatasetsDataItemsService) Get(name string) *ProjectsDatasetsDataItemsGetCall {
9129 c := &ProjectsDatasetsDataItemsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9130 c.name = name
9131 return c
9132 }
9133
9134
9135
9136
9137 func (c *ProjectsDatasetsDataItemsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDataItemsGetCall {
9138 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9139 return c
9140 }
9141
9142
9143
9144
9145 func (c *ProjectsDatasetsDataItemsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsDataItemsGetCall {
9146 c.ifNoneMatch_ = entityTag
9147 return c
9148 }
9149
9150
9151 func (c *ProjectsDatasetsDataItemsGetCall) Context(ctx context.Context) *ProjectsDatasetsDataItemsGetCall {
9152 c.ctx_ = ctx
9153 return c
9154 }
9155
9156
9157
9158 func (c *ProjectsDatasetsDataItemsGetCall) Header() http.Header {
9159 if c.header_ == nil {
9160 c.header_ = make(http.Header)
9161 }
9162 return c.header_
9163 }
9164
9165 func (c *ProjectsDatasetsDataItemsGetCall) doRequest(alt string) (*http.Response, error) {
9166 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9167 if c.ifNoneMatch_ != "" {
9168 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9169 }
9170 var body io.Reader = nil
9171 c.urlParams_.Set("alt", alt)
9172 c.urlParams_.Set("prettyPrint", "false")
9173 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
9174 urls += "?" + c.urlParams_.Encode()
9175 req, err := http.NewRequest("GET", urls, body)
9176 if err != nil {
9177 return nil, err
9178 }
9179 req.Header = reqHeaders
9180 googleapi.Expand(req.URL, map[string]string{
9181 "name": c.name,
9182 })
9183 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9184 }
9185
9186
9187
9188
9189
9190
9191
9192 func (c *ProjectsDatasetsDataItemsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1DataItem, error) {
9193 gensupport.SetOptions(c.urlParams_, opts...)
9194 res, err := c.doRequest("json")
9195 if res != nil && res.StatusCode == http.StatusNotModified {
9196 if res.Body != nil {
9197 res.Body.Close()
9198 }
9199 return nil, gensupport.WrapError(&googleapi.Error{
9200 Code: res.StatusCode,
9201 Header: res.Header,
9202 })
9203 }
9204 if err != nil {
9205 return nil, err
9206 }
9207 defer googleapi.CloseBody(res)
9208 if err := googleapi.CheckResponse(res); err != nil {
9209 return nil, gensupport.WrapError(err)
9210 }
9211 ret := &GoogleCloudDatalabelingV1beta1DataItem{
9212 ServerResponse: googleapi.ServerResponse{
9213 Header: res.Header,
9214 HTTPStatusCode: res.StatusCode,
9215 },
9216 }
9217 target := &ret
9218 if err := gensupport.DecodeResponse(target, res); err != nil {
9219 return nil, err
9220 }
9221 return ret, nil
9222 }
9223
9224 type ProjectsDatasetsDataItemsListCall struct {
9225 s *Service
9226 parent string
9227 urlParams_ gensupport.URLParams
9228 ifNoneMatch_ string
9229 ctx_ context.Context
9230 header_ http.Header
9231 }
9232
9233
9234
9235
9236
9237
9238 func (r *ProjectsDatasetsDataItemsService) List(parent string) *ProjectsDatasetsDataItemsListCall {
9239 c := &ProjectsDatasetsDataItemsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9240 c.parent = parent
9241 return c
9242 }
9243
9244
9245
9246 func (c *ProjectsDatasetsDataItemsListCall) Filter(filter string) *ProjectsDatasetsDataItemsListCall {
9247 c.urlParams_.Set("filter", filter)
9248 return c
9249 }
9250
9251
9252
9253 func (c *ProjectsDatasetsDataItemsListCall) PageSize(pageSize int64) *ProjectsDatasetsDataItemsListCall {
9254 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
9255 return c
9256 }
9257
9258
9259
9260
9261
9262 func (c *ProjectsDatasetsDataItemsListCall) PageToken(pageToken string) *ProjectsDatasetsDataItemsListCall {
9263 c.urlParams_.Set("pageToken", pageToken)
9264 return c
9265 }
9266
9267
9268
9269
9270 func (c *ProjectsDatasetsDataItemsListCall) Fields(s ...googleapi.Field) *ProjectsDatasetsDataItemsListCall {
9271 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9272 return c
9273 }
9274
9275
9276
9277
9278 func (c *ProjectsDatasetsDataItemsListCall) IfNoneMatch(entityTag string) *ProjectsDatasetsDataItemsListCall {
9279 c.ifNoneMatch_ = entityTag
9280 return c
9281 }
9282
9283
9284 func (c *ProjectsDatasetsDataItemsListCall) Context(ctx context.Context) *ProjectsDatasetsDataItemsListCall {
9285 c.ctx_ = ctx
9286 return c
9287 }
9288
9289
9290
9291 func (c *ProjectsDatasetsDataItemsListCall) Header() http.Header {
9292 if c.header_ == nil {
9293 c.header_ = make(http.Header)
9294 }
9295 return c.header_
9296 }
9297
9298 func (c *ProjectsDatasetsDataItemsListCall) doRequest(alt string) (*http.Response, error) {
9299 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9300 if c.ifNoneMatch_ != "" {
9301 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9302 }
9303 var body io.Reader = nil
9304 c.urlParams_.Set("alt", alt)
9305 c.urlParams_.Set("prettyPrint", "false")
9306 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/dataItems")
9307 urls += "?" + c.urlParams_.Encode()
9308 req, err := http.NewRequest("GET", urls, body)
9309 if err != nil {
9310 return nil, err
9311 }
9312 req.Header = reqHeaders
9313 googleapi.Expand(req.URL, map[string]string{
9314 "parent": c.parent,
9315 })
9316 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9317 }
9318
9319
9320
9321
9322
9323
9324
9325 func (c *ProjectsDatasetsDataItemsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListDataItemsResponse, error) {
9326 gensupport.SetOptions(c.urlParams_, opts...)
9327 res, err := c.doRequest("json")
9328 if res != nil && res.StatusCode == http.StatusNotModified {
9329 if res.Body != nil {
9330 res.Body.Close()
9331 }
9332 return nil, gensupport.WrapError(&googleapi.Error{
9333 Code: res.StatusCode,
9334 Header: res.Header,
9335 })
9336 }
9337 if err != nil {
9338 return nil, err
9339 }
9340 defer googleapi.CloseBody(res)
9341 if err := googleapi.CheckResponse(res); err != nil {
9342 return nil, gensupport.WrapError(err)
9343 }
9344 ret := &GoogleCloudDatalabelingV1beta1ListDataItemsResponse{
9345 ServerResponse: googleapi.ServerResponse{
9346 Header: res.Header,
9347 HTTPStatusCode: res.StatusCode,
9348 },
9349 }
9350 target := &ret
9351 if err := gensupport.DecodeResponse(target, res); err != nil {
9352 return nil, err
9353 }
9354 return ret, nil
9355 }
9356
9357
9358
9359
9360 func (c *ProjectsDatasetsDataItemsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListDataItemsResponse) error) error {
9361 c.ctx_ = ctx
9362 defer c.PageToken(c.urlParams_.Get("pageToken"))
9363 for {
9364 x, err := c.Do()
9365 if err != nil {
9366 return err
9367 }
9368 if err := f(x); err != nil {
9369 return err
9370 }
9371 if x.NextPageToken == "" {
9372 return nil
9373 }
9374 c.PageToken(x.NextPageToken)
9375 }
9376 }
9377
9378 type ProjectsDatasetsEvaluationsGetCall struct {
9379 s *Service
9380 name string
9381 urlParams_ gensupport.URLParams
9382 ifNoneMatch_ string
9383 ctx_ context.Context
9384 header_ http.Header
9385 }
9386
9387
9388
9389
9390
9391
9392 func (r *ProjectsDatasetsEvaluationsService) Get(name string) *ProjectsDatasetsEvaluationsGetCall {
9393 c := &ProjectsDatasetsEvaluationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9394 c.name = name
9395 return c
9396 }
9397
9398
9399
9400
9401 func (c *ProjectsDatasetsEvaluationsGetCall) Fields(s ...googleapi.Field) *ProjectsDatasetsEvaluationsGetCall {
9402 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9403 return c
9404 }
9405
9406
9407
9408
9409 func (c *ProjectsDatasetsEvaluationsGetCall) IfNoneMatch(entityTag string) *ProjectsDatasetsEvaluationsGetCall {
9410 c.ifNoneMatch_ = entityTag
9411 return c
9412 }
9413
9414
9415 func (c *ProjectsDatasetsEvaluationsGetCall) Context(ctx context.Context) *ProjectsDatasetsEvaluationsGetCall {
9416 c.ctx_ = ctx
9417 return c
9418 }
9419
9420
9421
9422 func (c *ProjectsDatasetsEvaluationsGetCall) Header() http.Header {
9423 if c.header_ == nil {
9424 c.header_ = make(http.Header)
9425 }
9426 return c.header_
9427 }
9428
9429 func (c *ProjectsDatasetsEvaluationsGetCall) doRequest(alt string) (*http.Response, error) {
9430 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
9431 if c.ifNoneMatch_ != "" {
9432 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
9433 }
9434 var body io.Reader = nil
9435 c.urlParams_.Set("alt", alt)
9436 c.urlParams_.Set("prettyPrint", "false")
9437 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
9438 urls += "?" + c.urlParams_.Encode()
9439 req, err := http.NewRequest("GET", urls, body)
9440 if err != nil {
9441 return nil, err
9442 }
9443 req.Header = reqHeaders
9444 googleapi.Expand(req.URL, map[string]string{
9445 "name": c.name,
9446 })
9447 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9448 }
9449
9450
9451
9452
9453
9454
9455
9456 func (c *ProjectsDatasetsEvaluationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Evaluation, error) {
9457 gensupport.SetOptions(c.urlParams_, opts...)
9458 res, err := c.doRequest("json")
9459 if res != nil && res.StatusCode == http.StatusNotModified {
9460 if res.Body != nil {
9461 res.Body.Close()
9462 }
9463 return nil, gensupport.WrapError(&googleapi.Error{
9464 Code: res.StatusCode,
9465 Header: res.Header,
9466 })
9467 }
9468 if err != nil {
9469 return nil, err
9470 }
9471 defer googleapi.CloseBody(res)
9472 if err := googleapi.CheckResponse(res); err != nil {
9473 return nil, gensupport.WrapError(err)
9474 }
9475 ret := &GoogleCloudDatalabelingV1beta1Evaluation{
9476 ServerResponse: googleapi.ServerResponse{
9477 Header: res.Header,
9478 HTTPStatusCode: res.StatusCode,
9479 },
9480 }
9481 target := &ret
9482 if err := gensupport.DecodeResponse(target, res); err != nil {
9483 return nil, err
9484 }
9485 return ret, nil
9486 }
9487
9488 type ProjectsDatasetsEvaluationsExampleComparisonsSearchCall struct {
9489 s *Service
9490 parent string
9491 googleclouddatalabelingv1beta1searchexamplecomparisonsrequest *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest
9492 urlParams_ gensupport.URLParams
9493 ctx_ context.Context
9494 header_ http.Header
9495 }
9496
9497
9498
9499
9500
9501
9502
9503
9504 func (r *ProjectsDatasetsEvaluationsExampleComparisonsService) Search(parent string, googleclouddatalabelingv1beta1searchexamplecomparisonsrequest *GoogleCloudDatalabelingV1beta1SearchExampleComparisonsRequest) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall {
9505 c := &ProjectsDatasetsEvaluationsExampleComparisonsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9506 c.parent = parent
9507 c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest = googleclouddatalabelingv1beta1searchexamplecomparisonsrequest
9508 return c
9509 }
9510
9511
9512
9513
9514 func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Fields(s ...googleapi.Field) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall {
9515 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9516 return c
9517 }
9518
9519
9520 func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Context(ctx context.Context) *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall {
9521 c.ctx_ = ctx
9522 return c
9523 }
9524
9525
9526
9527 func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Header() http.Header {
9528 if c.header_ == nil {
9529 c.header_ = make(http.Header)
9530 }
9531 return c.header_
9532 }
9533
9534 func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) doRequest(alt string) (*http.Response, error) {
9535 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9536 var body io.Reader = nil
9537 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest)
9538 if err != nil {
9539 return nil, err
9540 }
9541 c.urlParams_.Set("alt", alt)
9542 c.urlParams_.Set("prettyPrint", "false")
9543 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/exampleComparisons:search")
9544 urls += "?" + c.urlParams_.Encode()
9545 req, err := http.NewRequest("POST", urls, body)
9546 if err != nil {
9547 return nil, err
9548 }
9549 req.Header = reqHeaders
9550 googleapi.Expand(req.URL, map[string]string{
9551 "parent": c.parent,
9552 })
9553 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9554 }
9555
9556
9557
9558
9559
9560
9561
9562 func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse, error) {
9563 gensupport.SetOptions(c.urlParams_, opts...)
9564 res, err := c.doRequest("json")
9565 if res != nil && res.StatusCode == http.StatusNotModified {
9566 if res.Body != nil {
9567 res.Body.Close()
9568 }
9569 return nil, gensupport.WrapError(&googleapi.Error{
9570 Code: res.StatusCode,
9571 Header: res.Header,
9572 })
9573 }
9574 if err != nil {
9575 return nil, err
9576 }
9577 defer googleapi.CloseBody(res)
9578 if err := googleapi.CheckResponse(res); err != nil {
9579 return nil, gensupport.WrapError(err)
9580 }
9581 ret := &GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse{
9582 ServerResponse: googleapi.ServerResponse{
9583 Header: res.Header,
9584 HTTPStatusCode: res.StatusCode,
9585 },
9586 }
9587 target := &ret
9588 if err := gensupport.DecodeResponse(target, res); err != nil {
9589 return nil, err
9590 }
9591 return ret, nil
9592 }
9593
9594
9595
9596
9597 func (c *ProjectsDatasetsEvaluationsExampleComparisonsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1SearchExampleComparisonsResponse) error) error {
9598 c.ctx_ = ctx
9599 defer func(pt string) { c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken = pt }(c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken)
9600 for {
9601 x, err := c.Do()
9602 if err != nil {
9603 return err
9604 }
9605 if err := f(x); err != nil {
9606 return err
9607 }
9608 if x.NextPageToken == "" {
9609 return nil
9610 }
9611 c.googleclouddatalabelingv1beta1searchexamplecomparisonsrequest.PageToken = x.NextPageToken
9612 }
9613 }
9614
9615 type ProjectsDatasetsImageLabelCall struct {
9616 s *Service
9617 parent string
9618 googleclouddatalabelingv1beta1labelimagerequest *GoogleCloudDatalabelingV1beta1LabelImageRequest
9619 urlParams_ gensupport.URLParams
9620 ctx_ context.Context
9621 header_ http.Header
9622 }
9623
9624
9625
9626
9627
9628
9629 func (r *ProjectsDatasetsImageService) Label(parent string, googleclouddatalabelingv1beta1labelimagerequest *GoogleCloudDatalabelingV1beta1LabelImageRequest) *ProjectsDatasetsImageLabelCall {
9630 c := &ProjectsDatasetsImageLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9631 c.parent = parent
9632 c.googleclouddatalabelingv1beta1labelimagerequest = googleclouddatalabelingv1beta1labelimagerequest
9633 return c
9634 }
9635
9636
9637
9638
9639 func (c *ProjectsDatasetsImageLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsImageLabelCall {
9640 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9641 return c
9642 }
9643
9644
9645 func (c *ProjectsDatasetsImageLabelCall) Context(ctx context.Context) *ProjectsDatasetsImageLabelCall {
9646 c.ctx_ = ctx
9647 return c
9648 }
9649
9650
9651
9652 func (c *ProjectsDatasetsImageLabelCall) Header() http.Header {
9653 if c.header_ == nil {
9654 c.header_ = make(http.Header)
9655 }
9656 return c.header_
9657 }
9658
9659 func (c *ProjectsDatasetsImageLabelCall) doRequest(alt string) (*http.Response, error) {
9660 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9661 var body io.Reader = nil
9662 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labelimagerequest)
9663 if err != nil {
9664 return nil, err
9665 }
9666 c.urlParams_.Set("alt", alt)
9667 c.urlParams_.Set("prettyPrint", "false")
9668 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/image:label")
9669 urls += "?" + c.urlParams_.Encode()
9670 req, err := http.NewRequest("POST", urls, body)
9671 if err != nil {
9672 return nil, err
9673 }
9674 req.Header = reqHeaders
9675 googleapi.Expand(req.URL, map[string]string{
9676 "parent": c.parent,
9677 })
9678 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9679 }
9680
9681
9682
9683
9684
9685
9686
9687 func (c *ProjectsDatasetsImageLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9688 gensupport.SetOptions(c.urlParams_, opts...)
9689 res, err := c.doRequest("json")
9690 if res != nil && res.StatusCode == http.StatusNotModified {
9691 if res.Body != nil {
9692 res.Body.Close()
9693 }
9694 return nil, gensupport.WrapError(&googleapi.Error{
9695 Code: res.StatusCode,
9696 Header: res.Header,
9697 })
9698 }
9699 if err != nil {
9700 return nil, err
9701 }
9702 defer googleapi.CloseBody(res)
9703 if err := googleapi.CheckResponse(res); err != nil {
9704 return nil, gensupport.WrapError(err)
9705 }
9706 ret := &GoogleLongrunningOperation{
9707 ServerResponse: googleapi.ServerResponse{
9708 Header: res.Header,
9709 HTTPStatusCode: res.StatusCode,
9710 },
9711 }
9712 target := &ret
9713 if err := gensupport.DecodeResponse(target, res); err != nil {
9714 return nil, err
9715 }
9716 return ret, nil
9717 }
9718
9719 type ProjectsDatasetsTextLabelCall struct {
9720 s *Service
9721 parent string
9722 googleclouddatalabelingv1beta1labeltextrequest *GoogleCloudDatalabelingV1beta1LabelTextRequest
9723 urlParams_ gensupport.URLParams
9724 ctx_ context.Context
9725 header_ http.Header
9726 }
9727
9728
9729
9730
9731
9732
9733 func (r *ProjectsDatasetsTextService) Label(parent string, googleclouddatalabelingv1beta1labeltextrequest *GoogleCloudDatalabelingV1beta1LabelTextRequest) *ProjectsDatasetsTextLabelCall {
9734 c := &ProjectsDatasetsTextLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9735 c.parent = parent
9736 c.googleclouddatalabelingv1beta1labeltextrequest = googleclouddatalabelingv1beta1labeltextrequest
9737 return c
9738 }
9739
9740
9741
9742
9743 func (c *ProjectsDatasetsTextLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsTextLabelCall {
9744 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9745 return c
9746 }
9747
9748
9749 func (c *ProjectsDatasetsTextLabelCall) Context(ctx context.Context) *ProjectsDatasetsTextLabelCall {
9750 c.ctx_ = ctx
9751 return c
9752 }
9753
9754
9755
9756 func (c *ProjectsDatasetsTextLabelCall) Header() http.Header {
9757 if c.header_ == nil {
9758 c.header_ = make(http.Header)
9759 }
9760 return c.header_
9761 }
9762
9763 func (c *ProjectsDatasetsTextLabelCall) doRequest(alt string) (*http.Response, error) {
9764 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9765 var body io.Reader = nil
9766 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labeltextrequest)
9767 if err != nil {
9768 return nil, err
9769 }
9770 c.urlParams_.Set("alt", alt)
9771 c.urlParams_.Set("prettyPrint", "false")
9772 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/text:label")
9773 urls += "?" + c.urlParams_.Encode()
9774 req, err := http.NewRequest("POST", urls, body)
9775 if err != nil {
9776 return nil, err
9777 }
9778 req.Header = reqHeaders
9779 googleapi.Expand(req.URL, map[string]string{
9780 "parent": c.parent,
9781 })
9782 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9783 }
9784
9785
9786
9787
9788
9789
9790
9791 func (c *ProjectsDatasetsTextLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9792 gensupport.SetOptions(c.urlParams_, opts...)
9793 res, err := c.doRequest("json")
9794 if res != nil && res.StatusCode == http.StatusNotModified {
9795 if res.Body != nil {
9796 res.Body.Close()
9797 }
9798 return nil, gensupport.WrapError(&googleapi.Error{
9799 Code: res.StatusCode,
9800 Header: res.Header,
9801 })
9802 }
9803 if err != nil {
9804 return nil, err
9805 }
9806 defer googleapi.CloseBody(res)
9807 if err := googleapi.CheckResponse(res); err != nil {
9808 return nil, gensupport.WrapError(err)
9809 }
9810 ret := &GoogleLongrunningOperation{
9811 ServerResponse: googleapi.ServerResponse{
9812 Header: res.Header,
9813 HTTPStatusCode: res.StatusCode,
9814 },
9815 }
9816 target := &ret
9817 if err := gensupport.DecodeResponse(target, res); err != nil {
9818 return nil, err
9819 }
9820 return ret, nil
9821 }
9822
9823 type ProjectsDatasetsVideoLabelCall struct {
9824 s *Service
9825 parent string
9826 googleclouddatalabelingv1beta1labelvideorequest *GoogleCloudDatalabelingV1beta1LabelVideoRequest
9827 urlParams_ gensupport.URLParams
9828 ctx_ context.Context
9829 header_ http.Header
9830 }
9831
9832
9833
9834
9835
9836
9837 func (r *ProjectsDatasetsVideoService) Label(parent string, googleclouddatalabelingv1beta1labelvideorequest *GoogleCloudDatalabelingV1beta1LabelVideoRequest) *ProjectsDatasetsVideoLabelCall {
9838 c := &ProjectsDatasetsVideoLabelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9839 c.parent = parent
9840 c.googleclouddatalabelingv1beta1labelvideorequest = googleclouddatalabelingv1beta1labelvideorequest
9841 return c
9842 }
9843
9844
9845
9846
9847 func (c *ProjectsDatasetsVideoLabelCall) Fields(s ...googleapi.Field) *ProjectsDatasetsVideoLabelCall {
9848 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9849 return c
9850 }
9851
9852
9853 func (c *ProjectsDatasetsVideoLabelCall) Context(ctx context.Context) *ProjectsDatasetsVideoLabelCall {
9854 c.ctx_ = ctx
9855 return c
9856 }
9857
9858
9859
9860 func (c *ProjectsDatasetsVideoLabelCall) Header() http.Header {
9861 if c.header_ == nil {
9862 c.header_ = make(http.Header)
9863 }
9864 return c.header_
9865 }
9866
9867 func (c *ProjectsDatasetsVideoLabelCall) doRequest(alt string) (*http.Response, error) {
9868 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9869 var body io.Reader = nil
9870 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1labelvideorequest)
9871 if err != nil {
9872 return nil, err
9873 }
9874 c.urlParams_.Set("alt", alt)
9875 c.urlParams_.Set("prettyPrint", "false")
9876 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/video:label")
9877 urls += "?" + c.urlParams_.Encode()
9878 req, err := http.NewRequest("POST", urls, body)
9879 if err != nil {
9880 return nil, err
9881 }
9882 req.Header = reqHeaders
9883 googleapi.Expand(req.URL, map[string]string{
9884 "parent": c.parent,
9885 })
9886 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9887 }
9888
9889
9890
9891
9892
9893
9894
9895 func (c *ProjectsDatasetsVideoLabelCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
9896 gensupport.SetOptions(c.urlParams_, opts...)
9897 res, err := c.doRequest("json")
9898 if res != nil && res.StatusCode == http.StatusNotModified {
9899 if res.Body != nil {
9900 res.Body.Close()
9901 }
9902 return nil, gensupport.WrapError(&googleapi.Error{
9903 Code: res.StatusCode,
9904 Header: res.Header,
9905 })
9906 }
9907 if err != nil {
9908 return nil, err
9909 }
9910 defer googleapi.CloseBody(res)
9911 if err := googleapi.CheckResponse(res); err != nil {
9912 return nil, gensupport.WrapError(err)
9913 }
9914 ret := &GoogleLongrunningOperation{
9915 ServerResponse: googleapi.ServerResponse{
9916 Header: res.Header,
9917 HTTPStatusCode: res.StatusCode,
9918 },
9919 }
9920 target := &ret
9921 if err := gensupport.DecodeResponse(target, res); err != nil {
9922 return nil, err
9923 }
9924 return ret, nil
9925 }
9926
9927 type ProjectsEvaluationJobsCreateCall struct {
9928 s *Service
9929 parent string
9930 googleclouddatalabelingv1beta1createevaluationjobrequest *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest
9931 urlParams_ gensupport.URLParams
9932 ctx_ context.Context
9933 header_ http.Header
9934 }
9935
9936
9937
9938
9939 func (r *ProjectsEvaluationJobsService) Create(parent string, googleclouddatalabelingv1beta1createevaluationjobrequest *GoogleCloudDatalabelingV1beta1CreateEvaluationJobRequest) *ProjectsEvaluationJobsCreateCall {
9940 c := &ProjectsEvaluationJobsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
9941 c.parent = parent
9942 c.googleclouddatalabelingv1beta1createevaluationjobrequest = googleclouddatalabelingv1beta1createevaluationjobrequest
9943 return c
9944 }
9945
9946
9947
9948
9949 func (c *ProjectsEvaluationJobsCreateCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsCreateCall {
9950 c.urlParams_.Set("fields", googleapi.CombineFields(s))
9951 return c
9952 }
9953
9954
9955 func (c *ProjectsEvaluationJobsCreateCall) Context(ctx context.Context) *ProjectsEvaluationJobsCreateCall {
9956 c.ctx_ = ctx
9957 return c
9958 }
9959
9960
9961
9962 func (c *ProjectsEvaluationJobsCreateCall) Header() http.Header {
9963 if c.header_ == nil {
9964 c.header_ = make(http.Header)
9965 }
9966 return c.header_
9967 }
9968
9969 func (c *ProjectsEvaluationJobsCreateCall) doRequest(alt string) (*http.Response, error) {
9970 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
9971 var body io.Reader = nil
9972 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createevaluationjobrequest)
9973 if err != nil {
9974 return nil, err
9975 }
9976 c.urlParams_.Set("alt", alt)
9977 c.urlParams_.Set("prettyPrint", "false")
9978 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluationJobs")
9979 urls += "?" + c.urlParams_.Encode()
9980 req, err := http.NewRequest("POST", urls, body)
9981 if err != nil {
9982 return nil, err
9983 }
9984 req.Header = reqHeaders
9985 googleapi.Expand(req.URL, map[string]string{
9986 "parent": c.parent,
9987 })
9988 return gensupport.SendRequest(c.ctx_, c.s.client, req)
9989 }
9990
9991
9992
9993
9994
9995
9996
9997 func (c *ProjectsEvaluationJobsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) {
9998 gensupport.SetOptions(c.urlParams_, opts...)
9999 res, err := c.doRequest("json")
10000 if res != nil && res.StatusCode == http.StatusNotModified {
10001 if res.Body != nil {
10002 res.Body.Close()
10003 }
10004 return nil, gensupport.WrapError(&googleapi.Error{
10005 Code: res.StatusCode,
10006 Header: res.Header,
10007 })
10008 }
10009 if err != nil {
10010 return nil, err
10011 }
10012 defer googleapi.CloseBody(res)
10013 if err := googleapi.CheckResponse(res); err != nil {
10014 return nil, gensupport.WrapError(err)
10015 }
10016 ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{
10017 ServerResponse: googleapi.ServerResponse{
10018 Header: res.Header,
10019 HTTPStatusCode: res.StatusCode,
10020 },
10021 }
10022 target := &ret
10023 if err := gensupport.DecodeResponse(target, res); err != nil {
10024 return nil, err
10025 }
10026 return ret, nil
10027 }
10028
10029 type ProjectsEvaluationJobsDeleteCall struct {
10030 s *Service
10031 name string
10032 urlParams_ gensupport.URLParams
10033 ctx_ context.Context
10034 header_ http.Header
10035 }
10036
10037
10038
10039
10040
10041 func (r *ProjectsEvaluationJobsService) Delete(name string) *ProjectsEvaluationJobsDeleteCall {
10042 c := &ProjectsEvaluationJobsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10043 c.name = name
10044 return c
10045 }
10046
10047
10048
10049
10050 func (c *ProjectsEvaluationJobsDeleteCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsDeleteCall {
10051 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10052 return c
10053 }
10054
10055
10056 func (c *ProjectsEvaluationJobsDeleteCall) Context(ctx context.Context) *ProjectsEvaluationJobsDeleteCall {
10057 c.ctx_ = ctx
10058 return c
10059 }
10060
10061
10062
10063 func (c *ProjectsEvaluationJobsDeleteCall) Header() http.Header {
10064 if c.header_ == nil {
10065 c.header_ = make(http.Header)
10066 }
10067 return c.header_
10068 }
10069
10070 func (c *ProjectsEvaluationJobsDeleteCall) doRequest(alt string) (*http.Response, error) {
10071 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10072 var body io.Reader = nil
10073 c.urlParams_.Set("alt", alt)
10074 c.urlParams_.Set("prettyPrint", "false")
10075 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
10076 urls += "?" + c.urlParams_.Encode()
10077 req, err := http.NewRequest("DELETE", urls, body)
10078 if err != nil {
10079 return nil, err
10080 }
10081 req.Header = reqHeaders
10082 googleapi.Expand(req.URL, map[string]string{
10083 "name": c.name,
10084 })
10085 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10086 }
10087
10088
10089
10090
10091
10092
10093
10094 func (c *ProjectsEvaluationJobsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
10095 gensupport.SetOptions(c.urlParams_, opts...)
10096 res, err := c.doRequest("json")
10097 if res != nil && res.StatusCode == http.StatusNotModified {
10098 if res.Body != nil {
10099 res.Body.Close()
10100 }
10101 return nil, gensupport.WrapError(&googleapi.Error{
10102 Code: res.StatusCode,
10103 Header: res.Header,
10104 })
10105 }
10106 if err != nil {
10107 return nil, err
10108 }
10109 defer googleapi.CloseBody(res)
10110 if err := googleapi.CheckResponse(res); err != nil {
10111 return nil, gensupport.WrapError(err)
10112 }
10113 ret := &GoogleProtobufEmpty{
10114 ServerResponse: googleapi.ServerResponse{
10115 Header: res.Header,
10116 HTTPStatusCode: res.StatusCode,
10117 },
10118 }
10119 target := &ret
10120 if err := gensupport.DecodeResponse(target, res); err != nil {
10121 return nil, err
10122 }
10123 return ret, nil
10124 }
10125
10126 type ProjectsEvaluationJobsGetCall struct {
10127 s *Service
10128 name string
10129 urlParams_ gensupport.URLParams
10130 ifNoneMatch_ string
10131 ctx_ context.Context
10132 header_ http.Header
10133 }
10134
10135
10136
10137
10138
10139 func (r *ProjectsEvaluationJobsService) Get(name string) *ProjectsEvaluationJobsGetCall {
10140 c := &ProjectsEvaluationJobsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10141 c.name = name
10142 return c
10143 }
10144
10145
10146
10147
10148 func (c *ProjectsEvaluationJobsGetCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsGetCall {
10149 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10150 return c
10151 }
10152
10153
10154
10155
10156 func (c *ProjectsEvaluationJobsGetCall) IfNoneMatch(entityTag string) *ProjectsEvaluationJobsGetCall {
10157 c.ifNoneMatch_ = entityTag
10158 return c
10159 }
10160
10161
10162 func (c *ProjectsEvaluationJobsGetCall) Context(ctx context.Context) *ProjectsEvaluationJobsGetCall {
10163 c.ctx_ = ctx
10164 return c
10165 }
10166
10167
10168
10169 func (c *ProjectsEvaluationJobsGetCall) Header() http.Header {
10170 if c.header_ == nil {
10171 c.header_ = make(http.Header)
10172 }
10173 return c.header_
10174 }
10175
10176 func (c *ProjectsEvaluationJobsGetCall) doRequest(alt string) (*http.Response, error) {
10177 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10178 if c.ifNoneMatch_ != "" {
10179 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10180 }
10181 var body io.Reader = nil
10182 c.urlParams_.Set("alt", alt)
10183 c.urlParams_.Set("prettyPrint", "false")
10184 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
10185 urls += "?" + c.urlParams_.Encode()
10186 req, err := http.NewRequest("GET", urls, body)
10187 if err != nil {
10188 return nil, err
10189 }
10190 req.Header = reqHeaders
10191 googleapi.Expand(req.URL, map[string]string{
10192 "name": c.name,
10193 })
10194 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10195 }
10196
10197
10198
10199
10200
10201
10202
10203 func (c *ProjectsEvaluationJobsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) {
10204 gensupport.SetOptions(c.urlParams_, opts...)
10205 res, err := c.doRequest("json")
10206 if res != nil && res.StatusCode == http.StatusNotModified {
10207 if res.Body != nil {
10208 res.Body.Close()
10209 }
10210 return nil, gensupport.WrapError(&googleapi.Error{
10211 Code: res.StatusCode,
10212 Header: res.Header,
10213 })
10214 }
10215 if err != nil {
10216 return nil, err
10217 }
10218 defer googleapi.CloseBody(res)
10219 if err := googleapi.CheckResponse(res); err != nil {
10220 return nil, gensupport.WrapError(err)
10221 }
10222 ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{
10223 ServerResponse: googleapi.ServerResponse{
10224 Header: res.Header,
10225 HTTPStatusCode: res.StatusCode,
10226 },
10227 }
10228 target := &ret
10229 if err := gensupport.DecodeResponse(target, res); err != nil {
10230 return nil, err
10231 }
10232 return ret, nil
10233 }
10234
10235 type ProjectsEvaluationJobsListCall struct {
10236 s *Service
10237 parent string
10238 urlParams_ gensupport.URLParams
10239 ifNoneMatch_ string
10240 ctx_ context.Context
10241 header_ http.Header
10242 }
10243
10244
10245
10246
10247
10248 func (r *ProjectsEvaluationJobsService) List(parent string) *ProjectsEvaluationJobsListCall {
10249 c := &ProjectsEvaluationJobsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10250 c.parent = parent
10251 return c
10252 }
10253
10254
10255
10256
10257
10258
10259
10260
10261 func (c *ProjectsEvaluationJobsListCall) Filter(filter string) *ProjectsEvaluationJobsListCall {
10262 c.urlParams_.Set("filter", filter)
10263 return c
10264 }
10265
10266
10267
10268 func (c *ProjectsEvaluationJobsListCall) PageSize(pageSize int64) *ProjectsEvaluationJobsListCall {
10269 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10270 return c
10271 }
10272
10273
10274
10275
10276
10277 func (c *ProjectsEvaluationJobsListCall) PageToken(pageToken string) *ProjectsEvaluationJobsListCall {
10278 c.urlParams_.Set("pageToken", pageToken)
10279 return c
10280 }
10281
10282
10283
10284
10285 func (c *ProjectsEvaluationJobsListCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsListCall {
10286 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10287 return c
10288 }
10289
10290
10291
10292
10293 func (c *ProjectsEvaluationJobsListCall) IfNoneMatch(entityTag string) *ProjectsEvaluationJobsListCall {
10294 c.ifNoneMatch_ = entityTag
10295 return c
10296 }
10297
10298
10299 func (c *ProjectsEvaluationJobsListCall) Context(ctx context.Context) *ProjectsEvaluationJobsListCall {
10300 c.ctx_ = ctx
10301 return c
10302 }
10303
10304
10305
10306 func (c *ProjectsEvaluationJobsListCall) Header() http.Header {
10307 if c.header_ == nil {
10308 c.header_ = make(http.Header)
10309 }
10310 return c.header_
10311 }
10312
10313 func (c *ProjectsEvaluationJobsListCall) doRequest(alt string) (*http.Response, error) {
10314 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10315 if c.ifNoneMatch_ != "" {
10316 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10317 }
10318 var body io.Reader = nil
10319 c.urlParams_.Set("alt", alt)
10320 c.urlParams_.Set("prettyPrint", "false")
10321 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluationJobs")
10322 urls += "?" + c.urlParams_.Encode()
10323 req, err := http.NewRequest("GET", urls, body)
10324 if err != nil {
10325 return nil, err
10326 }
10327 req.Header = reqHeaders
10328 googleapi.Expand(req.URL, map[string]string{
10329 "parent": c.parent,
10330 })
10331 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10332 }
10333
10334
10335
10336
10337
10338
10339
10340 func (c *ProjectsEvaluationJobsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse, error) {
10341 gensupport.SetOptions(c.urlParams_, opts...)
10342 res, err := c.doRequest("json")
10343 if res != nil && res.StatusCode == http.StatusNotModified {
10344 if res.Body != nil {
10345 res.Body.Close()
10346 }
10347 return nil, gensupport.WrapError(&googleapi.Error{
10348 Code: res.StatusCode,
10349 Header: res.Header,
10350 })
10351 }
10352 if err != nil {
10353 return nil, err
10354 }
10355 defer googleapi.CloseBody(res)
10356 if err := googleapi.CheckResponse(res); err != nil {
10357 return nil, gensupport.WrapError(err)
10358 }
10359 ret := &GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse{
10360 ServerResponse: googleapi.ServerResponse{
10361 Header: res.Header,
10362 HTTPStatusCode: res.StatusCode,
10363 },
10364 }
10365 target := &ret
10366 if err := gensupport.DecodeResponse(target, res); err != nil {
10367 return nil, err
10368 }
10369 return ret, nil
10370 }
10371
10372
10373
10374
10375 func (c *ProjectsEvaluationJobsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListEvaluationJobsResponse) error) error {
10376 c.ctx_ = ctx
10377 defer c.PageToken(c.urlParams_.Get("pageToken"))
10378 for {
10379 x, err := c.Do()
10380 if err != nil {
10381 return err
10382 }
10383 if err := f(x); err != nil {
10384 return err
10385 }
10386 if x.NextPageToken == "" {
10387 return nil
10388 }
10389 c.PageToken(x.NextPageToken)
10390 }
10391 }
10392
10393 type ProjectsEvaluationJobsPatchCall struct {
10394 s *Service
10395 name string
10396 googleclouddatalabelingv1beta1evaluationjob *GoogleCloudDatalabelingV1beta1EvaluationJob
10397 urlParams_ gensupport.URLParams
10398 ctx_ context.Context
10399 header_ http.Header
10400 }
10401
10402
10403
10404
10405
10406
10407
10408
10409
10410
10411 func (r *ProjectsEvaluationJobsService) Patch(name string, googleclouddatalabelingv1beta1evaluationjob *GoogleCloudDatalabelingV1beta1EvaluationJob) *ProjectsEvaluationJobsPatchCall {
10412 c := &ProjectsEvaluationJobsPatchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10413 c.name = name
10414 c.googleclouddatalabelingv1beta1evaluationjob = googleclouddatalabelingv1beta1evaluationjob
10415 return c
10416 }
10417
10418
10419
10420
10421
10422
10423
10424 func (c *ProjectsEvaluationJobsPatchCall) UpdateMask(updateMask string) *ProjectsEvaluationJobsPatchCall {
10425 c.urlParams_.Set("updateMask", updateMask)
10426 return c
10427 }
10428
10429
10430
10431
10432 func (c *ProjectsEvaluationJobsPatchCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsPatchCall {
10433 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10434 return c
10435 }
10436
10437
10438 func (c *ProjectsEvaluationJobsPatchCall) Context(ctx context.Context) *ProjectsEvaluationJobsPatchCall {
10439 c.ctx_ = ctx
10440 return c
10441 }
10442
10443
10444
10445 func (c *ProjectsEvaluationJobsPatchCall) Header() http.Header {
10446 if c.header_ == nil {
10447 c.header_ = make(http.Header)
10448 }
10449 return c.header_
10450 }
10451
10452 func (c *ProjectsEvaluationJobsPatchCall) doRequest(alt string) (*http.Response, error) {
10453 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10454 var body io.Reader = nil
10455 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1evaluationjob)
10456 if err != nil {
10457 return nil, err
10458 }
10459 c.urlParams_.Set("alt", alt)
10460 c.urlParams_.Set("prettyPrint", "false")
10461 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
10462 urls += "?" + c.urlParams_.Encode()
10463 req, err := http.NewRequest("PATCH", urls, body)
10464 if err != nil {
10465 return nil, err
10466 }
10467 req.Header = reqHeaders
10468 googleapi.Expand(req.URL, map[string]string{
10469 "name": c.name,
10470 })
10471 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10472 }
10473
10474
10475
10476
10477
10478
10479
10480 func (c *ProjectsEvaluationJobsPatchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1EvaluationJob, error) {
10481 gensupport.SetOptions(c.urlParams_, opts...)
10482 res, err := c.doRequest("json")
10483 if res != nil && res.StatusCode == http.StatusNotModified {
10484 if res.Body != nil {
10485 res.Body.Close()
10486 }
10487 return nil, gensupport.WrapError(&googleapi.Error{
10488 Code: res.StatusCode,
10489 Header: res.Header,
10490 })
10491 }
10492 if err != nil {
10493 return nil, err
10494 }
10495 defer googleapi.CloseBody(res)
10496 if err := googleapi.CheckResponse(res); err != nil {
10497 return nil, gensupport.WrapError(err)
10498 }
10499 ret := &GoogleCloudDatalabelingV1beta1EvaluationJob{
10500 ServerResponse: googleapi.ServerResponse{
10501 Header: res.Header,
10502 HTTPStatusCode: res.StatusCode,
10503 },
10504 }
10505 target := &ret
10506 if err := gensupport.DecodeResponse(target, res); err != nil {
10507 return nil, err
10508 }
10509 return ret, nil
10510 }
10511
10512 type ProjectsEvaluationJobsPauseCall struct {
10513 s *Service
10514 name string
10515 googleclouddatalabelingv1beta1pauseevaluationjobrequest *GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest
10516 urlParams_ gensupport.URLParams
10517 ctx_ context.Context
10518 header_ http.Header
10519 }
10520
10521
10522
10523
10524
10525
10526 func (r *ProjectsEvaluationJobsService) Pause(name string, googleclouddatalabelingv1beta1pauseevaluationjobrequest *GoogleCloudDatalabelingV1beta1PauseEvaluationJobRequest) *ProjectsEvaluationJobsPauseCall {
10527 c := &ProjectsEvaluationJobsPauseCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10528 c.name = name
10529 c.googleclouddatalabelingv1beta1pauseevaluationjobrequest = googleclouddatalabelingv1beta1pauseevaluationjobrequest
10530 return c
10531 }
10532
10533
10534
10535
10536 func (c *ProjectsEvaluationJobsPauseCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsPauseCall {
10537 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10538 return c
10539 }
10540
10541
10542 func (c *ProjectsEvaluationJobsPauseCall) Context(ctx context.Context) *ProjectsEvaluationJobsPauseCall {
10543 c.ctx_ = ctx
10544 return c
10545 }
10546
10547
10548
10549 func (c *ProjectsEvaluationJobsPauseCall) Header() http.Header {
10550 if c.header_ == nil {
10551 c.header_ = make(http.Header)
10552 }
10553 return c.header_
10554 }
10555
10556 func (c *ProjectsEvaluationJobsPauseCall) doRequest(alt string) (*http.Response, error) {
10557 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10558 var body io.Reader = nil
10559 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1pauseevaluationjobrequest)
10560 if err != nil {
10561 return nil, err
10562 }
10563 c.urlParams_.Set("alt", alt)
10564 c.urlParams_.Set("prettyPrint", "false")
10565 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:pause")
10566 urls += "?" + c.urlParams_.Encode()
10567 req, err := http.NewRequest("POST", urls, body)
10568 if err != nil {
10569 return nil, err
10570 }
10571 req.Header = reqHeaders
10572 googleapi.Expand(req.URL, map[string]string{
10573 "name": c.name,
10574 })
10575 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10576 }
10577
10578
10579
10580
10581
10582
10583
10584 func (c *ProjectsEvaluationJobsPauseCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
10585 gensupport.SetOptions(c.urlParams_, opts...)
10586 res, err := c.doRequest("json")
10587 if res != nil && res.StatusCode == http.StatusNotModified {
10588 if res.Body != nil {
10589 res.Body.Close()
10590 }
10591 return nil, gensupport.WrapError(&googleapi.Error{
10592 Code: res.StatusCode,
10593 Header: res.Header,
10594 })
10595 }
10596 if err != nil {
10597 return nil, err
10598 }
10599 defer googleapi.CloseBody(res)
10600 if err := googleapi.CheckResponse(res); err != nil {
10601 return nil, gensupport.WrapError(err)
10602 }
10603 ret := &GoogleProtobufEmpty{
10604 ServerResponse: googleapi.ServerResponse{
10605 Header: res.Header,
10606 HTTPStatusCode: res.StatusCode,
10607 },
10608 }
10609 target := &ret
10610 if err := gensupport.DecodeResponse(target, res); err != nil {
10611 return nil, err
10612 }
10613 return ret, nil
10614 }
10615
10616 type ProjectsEvaluationJobsResumeCall struct {
10617 s *Service
10618 name string
10619 googleclouddatalabelingv1beta1resumeevaluationjobrequest *GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest
10620 urlParams_ gensupport.URLParams
10621 ctx_ context.Context
10622 header_ http.Header
10623 }
10624
10625
10626
10627
10628
10629
10630 func (r *ProjectsEvaluationJobsService) Resume(name string, googleclouddatalabelingv1beta1resumeevaluationjobrequest *GoogleCloudDatalabelingV1beta1ResumeEvaluationJobRequest) *ProjectsEvaluationJobsResumeCall {
10631 c := &ProjectsEvaluationJobsResumeCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10632 c.name = name
10633 c.googleclouddatalabelingv1beta1resumeevaluationjobrequest = googleclouddatalabelingv1beta1resumeevaluationjobrequest
10634 return c
10635 }
10636
10637
10638
10639
10640 func (c *ProjectsEvaluationJobsResumeCall) Fields(s ...googleapi.Field) *ProjectsEvaluationJobsResumeCall {
10641 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10642 return c
10643 }
10644
10645
10646 func (c *ProjectsEvaluationJobsResumeCall) Context(ctx context.Context) *ProjectsEvaluationJobsResumeCall {
10647 c.ctx_ = ctx
10648 return c
10649 }
10650
10651
10652
10653 func (c *ProjectsEvaluationJobsResumeCall) Header() http.Header {
10654 if c.header_ == nil {
10655 c.header_ = make(http.Header)
10656 }
10657 return c.header_
10658 }
10659
10660 func (c *ProjectsEvaluationJobsResumeCall) doRequest(alt string) (*http.Response, error) {
10661 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10662 var body io.Reader = nil
10663 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1resumeevaluationjobrequest)
10664 if err != nil {
10665 return nil, err
10666 }
10667 c.urlParams_.Set("alt", alt)
10668 c.urlParams_.Set("prettyPrint", "false")
10669 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:resume")
10670 urls += "?" + c.urlParams_.Encode()
10671 req, err := http.NewRequest("POST", urls, body)
10672 if err != nil {
10673 return nil, err
10674 }
10675 req.Header = reqHeaders
10676 googleapi.Expand(req.URL, map[string]string{
10677 "name": c.name,
10678 })
10679 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10680 }
10681
10682
10683
10684
10685
10686
10687
10688 func (c *ProjectsEvaluationJobsResumeCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
10689 gensupport.SetOptions(c.urlParams_, opts...)
10690 res, err := c.doRequest("json")
10691 if res != nil && res.StatusCode == http.StatusNotModified {
10692 if res.Body != nil {
10693 res.Body.Close()
10694 }
10695 return nil, gensupport.WrapError(&googleapi.Error{
10696 Code: res.StatusCode,
10697 Header: res.Header,
10698 })
10699 }
10700 if err != nil {
10701 return nil, err
10702 }
10703 defer googleapi.CloseBody(res)
10704 if err := googleapi.CheckResponse(res); err != nil {
10705 return nil, gensupport.WrapError(err)
10706 }
10707 ret := &GoogleProtobufEmpty{
10708 ServerResponse: googleapi.ServerResponse{
10709 Header: res.Header,
10710 HTTPStatusCode: res.StatusCode,
10711 },
10712 }
10713 target := &ret
10714 if err := gensupport.DecodeResponse(target, res); err != nil {
10715 return nil, err
10716 }
10717 return ret, nil
10718 }
10719
10720 type ProjectsEvaluationsSearchCall struct {
10721 s *Service
10722 parent string
10723 urlParams_ gensupport.URLParams
10724 ifNoneMatch_ string
10725 ctx_ context.Context
10726 header_ http.Header
10727 }
10728
10729
10730
10731
10732
10733 func (r *ProjectsEvaluationsService) Search(parent string) *ProjectsEvaluationsSearchCall {
10734 c := &ProjectsEvaluationsSearchCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10735 c.parent = parent
10736 return c
10737 }
10738
10739
10740
10741
10742
10743
10744
10745
10746
10747
10748
10749
10750
10751
10752
10753
10754
10755
10756 func (c *ProjectsEvaluationsSearchCall) Filter(filter string) *ProjectsEvaluationsSearchCall {
10757 c.urlParams_.Set("filter", filter)
10758 return c
10759 }
10760
10761
10762
10763 func (c *ProjectsEvaluationsSearchCall) PageSize(pageSize int64) *ProjectsEvaluationsSearchCall {
10764 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
10765 return c
10766 }
10767
10768
10769
10770
10771
10772 func (c *ProjectsEvaluationsSearchCall) PageToken(pageToken string) *ProjectsEvaluationsSearchCall {
10773 c.urlParams_.Set("pageToken", pageToken)
10774 return c
10775 }
10776
10777
10778
10779
10780 func (c *ProjectsEvaluationsSearchCall) Fields(s ...googleapi.Field) *ProjectsEvaluationsSearchCall {
10781 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10782 return c
10783 }
10784
10785
10786
10787
10788 func (c *ProjectsEvaluationsSearchCall) IfNoneMatch(entityTag string) *ProjectsEvaluationsSearchCall {
10789 c.ifNoneMatch_ = entityTag
10790 return c
10791 }
10792
10793
10794 func (c *ProjectsEvaluationsSearchCall) Context(ctx context.Context) *ProjectsEvaluationsSearchCall {
10795 c.ctx_ = ctx
10796 return c
10797 }
10798
10799
10800
10801 func (c *ProjectsEvaluationsSearchCall) Header() http.Header {
10802 if c.header_ == nil {
10803 c.header_ = make(http.Header)
10804 }
10805 return c.header_
10806 }
10807
10808 func (c *ProjectsEvaluationsSearchCall) doRequest(alt string) (*http.Response, error) {
10809 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
10810 if c.ifNoneMatch_ != "" {
10811 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
10812 }
10813 var body io.Reader = nil
10814 c.urlParams_.Set("alt", alt)
10815 c.urlParams_.Set("prettyPrint", "false")
10816 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/evaluations:search")
10817 urls += "?" + c.urlParams_.Encode()
10818 req, err := http.NewRequest("GET", urls, body)
10819 if err != nil {
10820 return nil, err
10821 }
10822 req.Header = reqHeaders
10823 googleapi.Expand(req.URL, map[string]string{
10824 "parent": c.parent,
10825 })
10826 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10827 }
10828
10829
10830
10831
10832
10833
10834
10835 func (c *ProjectsEvaluationsSearchCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse, error) {
10836 gensupport.SetOptions(c.urlParams_, opts...)
10837 res, err := c.doRequest("json")
10838 if res != nil && res.StatusCode == http.StatusNotModified {
10839 if res.Body != nil {
10840 res.Body.Close()
10841 }
10842 return nil, gensupport.WrapError(&googleapi.Error{
10843 Code: res.StatusCode,
10844 Header: res.Header,
10845 })
10846 }
10847 if err != nil {
10848 return nil, err
10849 }
10850 defer googleapi.CloseBody(res)
10851 if err := googleapi.CheckResponse(res); err != nil {
10852 return nil, gensupport.WrapError(err)
10853 }
10854 ret := &GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse{
10855 ServerResponse: googleapi.ServerResponse{
10856 Header: res.Header,
10857 HTTPStatusCode: res.StatusCode,
10858 },
10859 }
10860 target := &ret
10861 if err := gensupport.DecodeResponse(target, res); err != nil {
10862 return nil, err
10863 }
10864 return ret, nil
10865 }
10866
10867
10868
10869
10870 func (c *ProjectsEvaluationsSearchCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1SearchEvaluationsResponse) error) error {
10871 c.ctx_ = ctx
10872 defer c.PageToken(c.urlParams_.Get("pageToken"))
10873 for {
10874 x, err := c.Do()
10875 if err != nil {
10876 return err
10877 }
10878 if err := f(x); err != nil {
10879 return err
10880 }
10881 if x.NextPageToken == "" {
10882 return nil
10883 }
10884 c.PageToken(x.NextPageToken)
10885 }
10886 }
10887
10888 type ProjectsInstructionsCreateCall struct {
10889 s *Service
10890 parent string
10891 googleclouddatalabelingv1beta1createinstructionrequest *GoogleCloudDatalabelingV1beta1CreateInstructionRequest
10892 urlParams_ gensupport.URLParams
10893 ctx_ context.Context
10894 header_ http.Header
10895 }
10896
10897
10898
10899
10900 func (r *ProjectsInstructionsService) Create(parent string, googleclouddatalabelingv1beta1createinstructionrequest *GoogleCloudDatalabelingV1beta1CreateInstructionRequest) *ProjectsInstructionsCreateCall {
10901 c := &ProjectsInstructionsCreateCall{s: r.s, urlParams_: make(gensupport.URLParams)}
10902 c.parent = parent
10903 c.googleclouddatalabelingv1beta1createinstructionrequest = googleclouddatalabelingv1beta1createinstructionrequest
10904 return c
10905 }
10906
10907
10908
10909
10910 func (c *ProjectsInstructionsCreateCall) Fields(s ...googleapi.Field) *ProjectsInstructionsCreateCall {
10911 c.urlParams_.Set("fields", googleapi.CombineFields(s))
10912 return c
10913 }
10914
10915
10916 func (c *ProjectsInstructionsCreateCall) Context(ctx context.Context) *ProjectsInstructionsCreateCall {
10917 c.ctx_ = ctx
10918 return c
10919 }
10920
10921
10922
10923 func (c *ProjectsInstructionsCreateCall) Header() http.Header {
10924 if c.header_ == nil {
10925 c.header_ = make(http.Header)
10926 }
10927 return c.header_
10928 }
10929
10930 func (c *ProjectsInstructionsCreateCall) doRequest(alt string) (*http.Response, error) {
10931 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "application/json", c.header_)
10932 var body io.Reader = nil
10933 body, err := googleapi.WithoutDataWrapper.JSONReader(c.googleclouddatalabelingv1beta1createinstructionrequest)
10934 if err != nil {
10935 return nil, err
10936 }
10937 c.urlParams_.Set("alt", alt)
10938 c.urlParams_.Set("prettyPrint", "false")
10939 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/instructions")
10940 urls += "?" + c.urlParams_.Encode()
10941 req, err := http.NewRequest("POST", urls, body)
10942 if err != nil {
10943 return nil, err
10944 }
10945 req.Header = reqHeaders
10946 googleapi.Expand(req.URL, map[string]string{
10947 "parent": c.parent,
10948 })
10949 return gensupport.SendRequest(c.ctx_, c.s.client, req)
10950 }
10951
10952
10953
10954
10955
10956
10957
10958 func (c *ProjectsInstructionsCreateCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
10959 gensupport.SetOptions(c.urlParams_, opts...)
10960 res, err := c.doRequest("json")
10961 if res != nil && res.StatusCode == http.StatusNotModified {
10962 if res.Body != nil {
10963 res.Body.Close()
10964 }
10965 return nil, gensupport.WrapError(&googleapi.Error{
10966 Code: res.StatusCode,
10967 Header: res.Header,
10968 })
10969 }
10970 if err != nil {
10971 return nil, err
10972 }
10973 defer googleapi.CloseBody(res)
10974 if err := googleapi.CheckResponse(res); err != nil {
10975 return nil, gensupport.WrapError(err)
10976 }
10977 ret := &GoogleLongrunningOperation{
10978 ServerResponse: googleapi.ServerResponse{
10979 Header: res.Header,
10980 HTTPStatusCode: res.StatusCode,
10981 },
10982 }
10983 target := &ret
10984 if err := gensupport.DecodeResponse(target, res); err != nil {
10985 return nil, err
10986 }
10987 return ret, nil
10988 }
10989
10990 type ProjectsInstructionsDeleteCall struct {
10991 s *Service
10992 name string
10993 urlParams_ gensupport.URLParams
10994 ctx_ context.Context
10995 header_ http.Header
10996 }
10997
10998
10999
11000
11001
11002 func (r *ProjectsInstructionsService) Delete(name string) *ProjectsInstructionsDeleteCall {
11003 c := &ProjectsInstructionsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11004 c.name = name
11005 return c
11006 }
11007
11008
11009
11010
11011 func (c *ProjectsInstructionsDeleteCall) Fields(s ...googleapi.Field) *ProjectsInstructionsDeleteCall {
11012 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11013 return c
11014 }
11015
11016
11017 func (c *ProjectsInstructionsDeleteCall) Context(ctx context.Context) *ProjectsInstructionsDeleteCall {
11018 c.ctx_ = ctx
11019 return c
11020 }
11021
11022
11023
11024 func (c *ProjectsInstructionsDeleteCall) Header() http.Header {
11025 if c.header_ == nil {
11026 c.header_ = make(http.Header)
11027 }
11028 return c.header_
11029 }
11030
11031 func (c *ProjectsInstructionsDeleteCall) doRequest(alt string) (*http.Response, error) {
11032 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11033 var body io.Reader = nil
11034 c.urlParams_.Set("alt", alt)
11035 c.urlParams_.Set("prettyPrint", "false")
11036 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
11037 urls += "?" + c.urlParams_.Encode()
11038 req, err := http.NewRequest("DELETE", urls, body)
11039 if err != nil {
11040 return nil, err
11041 }
11042 req.Header = reqHeaders
11043 googleapi.Expand(req.URL, map[string]string{
11044 "name": c.name,
11045 })
11046 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11047 }
11048
11049
11050
11051
11052
11053
11054
11055 func (c *ProjectsInstructionsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11056 gensupport.SetOptions(c.urlParams_, opts...)
11057 res, err := c.doRequest("json")
11058 if res != nil && res.StatusCode == http.StatusNotModified {
11059 if res.Body != nil {
11060 res.Body.Close()
11061 }
11062 return nil, gensupport.WrapError(&googleapi.Error{
11063 Code: res.StatusCode,
11064 Header: res.Header,
11065 })
11066 }
11067 if err != nil {
11068 return nil, err
11069 }
11070 defer googleapi.CloseBody(res)
11071 if err := googleapi.CheckResponse(res); err != nil {
11072 return nil, gensupport.WrapError(err)
11073 }
11074 ret := &GoogleProtobufEmpty{
11075 ServerResponse: googleapi.ServerResponse{
11076 Header: res.Header,
11077 HTTPStatusCode: res.StatusCode,
11078 },
11079 }
11080 target := &ret
11081 if err := gensupport.DecodeResponse(target, res); err != nil {
11082 return nil, err
11083 }
11084 return ret, nil
11085 }
11086
11087 type ProjectsInstructionsGetCall struct {
11088 s *Service
11089 name string
11090 urlParams_ gensupport.URLParams
11091 ifNoneMatch_ string
11092 ctx_ context.Context
11093 header_ http.Header
11094 }
11095
11096
11097
11098
11099
11100 func (r *ProjectsInstructionsService) Get(name string) *ProjectsInstructionsGetCall {
11101 c := &ProjectsInstructionsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11102 c.name = name
11103 return c
11104 }
11105
11106
11107
11108
11109 func (c *ProjectsInstructionsGetCall) Fields(s ...googleapi.Field) *ProjectsInstructionsGetCall {
11110 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11111 return c
11112 }
11113
11114
11115
11116
11117 func (c *ProjectsInstructionsGetCall) IfNoneMatch(entityTag string) *ProjectsInstructionsGetCall {
11118 c.ifNoneMatch_ = entityTag
11119 return c
11120 }
11121
11122
11123 func (c *ProjectsInstructionsGetCall) Context(ctx context.Context) *ProjectsInstructionsGetCall {
11124 c.ctx_ = ctx
11125 return c
11126 }
11127
11128
11129
11130 func (c *ProjectsInstructionsGetCall) Header() http.Header {
11131 if c.header_ == nil {
11132 c.header_ = make(http.Header)
11133 }
11134 return c.header_
11135 }
11136
11137 func (c *ProjectsInstructionsGetCall) doRequest(alt string) (*http.Response, error) {
11138 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11139 if c.ifNoneMatch_ != "" {
11140 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11141 }
11142 var body io.Reader = nil
11143 c.urlParams_.Set("alt", alt)
11144 c.urlParams_.Set("prettyPrint", "false")
11145 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
11146 urls += "?" + c.urlParams_.Encode()
11147 req, err := http.NewRequest("GET", urls, body)
11148 if err != nil {
11149 return nil, err
11150 }
11151 req.Header = reqHeaders
11152 googleapi.Expand(req.URL, map[string]string{
11153 "name": c.name,
11154 })
11155 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11156 }
11157
11158
11159
11160
11161
11162
11163
11164 func (c *ProjectsInstructionsGetCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1Instruction, error) {
11165 gensupport.SetOptions(c.urlParams_, opts...)
11166 res, err := c.doRequest("json")
11167 if res != nil && res.StatusCode == http.StatusNotModified {
11168 if res.Body != nil {
11169 res.Body.Close()
11170 }
11171 return nil, gensupport.WrapError(&googleapi.Error{
11172 Code: res.StatusCode,
11173 Header: res.Header,
11174 })
11175 }
11176 if err != nil {
11177 return nil, err
11178 }
11179 defer googleapi.CloseBody(res)
11180 if err := googleapi.CheckResponse(res); err != nil {
11181 return nil, gensupport.WrapError(err)
11182 }
11183 ret := &GoogleCloudDatalabelingV1beta1Instruction{
11184 ServerResponse: googleapi.ServerResponse{
11185 Header: res.Header,
11186 HTTPStatusCode: res.StatusCode,
11187 },
11188 }
11189 target := &ret
11190 if err := gensupport.DecodeResponse(target, res); err != nil {
11191 return nil, err
11192 }
11193 return ret, nil
11194 }
11195
11196 type ProjectsInstructionsListCall struct {
11197 s *Service
11198 parent string
11199 urlParams_ gensupport.URLParams
11200 ifNoneMatch_ string
11201 ctx_ context.Context
11202 header_ http.Header
11203 }
11204
11205
11206
11207
11208 func (r *ProjectsInstructionsService) List(parent string) *ProjectsInstructionsListCall {
11209 c := &ProjectsInstructionsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11210 c.parent = parent
11211 return c
11212 }
11213
11214
11215
11216 func (c *ProjectsInstructionsListCall) Filter(filter string) *ProjectsInstructionsListCall {
11217 c.urlParams_.Set("filter", filter)
11218 return c
11219 }
11220
11221
11222
11223 func (c *ProjectsInstructionsListCall) PageSize(pageSize int64) *ProjectsInstructionsListCall {
11224 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11225 return c
11226 }
11227
11228
11229
11230
11231
11232 func (c *ProjectsInstructionsListCall) PageToken(pageToken string) *ProjectsInstructionsListCall {
11233 c.urlParams_.Set("pageToken", pageToken)
11234 return c
11235 }
11236
11237
11238
11239
11240 func (c *ProjectsInstructionsListCall) Fields(s ...googleapi.Field) *ProjectsInstructionsListCall {
11241 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11242 return c
11243 }
11244
11245
11246
11247
11248 func (c *ProjectsInstructionsListCall) IfNoneMatch(entityTag string) *ProjectsInstructionsListCall {
11249 c.ifNoneMatch_ = entityTag
11250 return c
11251 }
11252
11253
11254 func (c *ProjectsInstructionsListCall) Context(ctx context.Context) *ProjectsInstructionsListCall {
11255 c.ctx_ = ctx
11256 return c
11257 }
11258
11259
11260
11261 func (c *ProjectsInstructionsListCall) Header() http.Header {
11262 if c.header_ == nil {
11263 c.header_ = make(http.Header)
11264 }
11265 return c.header_
11266 }
11267
11268 func (c *ProjectsInstructionsListCall) doRequest(alt string) (*http.Response, error) {
11269 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11270 if c.ifNoneMatch_ != "" {
11271 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11272 }
11273 var body io.Reader = nil
11274 c.urlParams_.Set("alt", alt)
11275 c.urlParams_.Set("prettyPrint", "false")
11276 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+parent}/instructions")
11277 urls += "?" + c.urlParams_.Encode()
11278 req, err := http.NewRequest("GET", urls, body)
11279 if err != nil {
11280 return nil, err
11281 }
11282 req.Header = reqHeaders
11283 googleapi.Expand(req.URL, map[string]string{
11284 "parent": c.parent,
11285 })
11286 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11287 }
11288
11289
11290
11291
11292
11293
11294
11295
11296
11297 func (c *ProjectsInstructionsListCall) Do(opts ...googleapi.CallOption) (*GoogleCloudDatalabelingV1beta1ListInstructionsResponse, error) {
11298 gensupport.SetOptions(c.urlParams_, opts...)
11299 res, err := c.doRequest("json")
11300 if res != nil && res.StatusCode == http.StatusNotModified {
11301 if res.Body != nil {
11302 res.Body.Close()
11303 }
11304 return nil, gensupport.WrapError(&googleapi.Error{
11305 Code: res.StatusCode,
11306 Header: res.Header,
11307 })
11308 }
11309 if err != nil {
11310 return nil, err
11311 }
11312 defer googleapi.CloseBody(res)
11313 if err := googleapi.CheckResponse(res); err != nil {
11314 return nil, gensupport.WrapError(err)
11315 }
11316 ret := &GoogleCloudDatalabelingV1beta1ListInstructionsResponse{
11317 ServerResponse: googleapi.ServerResponse{
11318 Header: res.Header,
11319 HTTPStatusCode: res.StatusCode,
11320 },
11321 }
11322 target := &ret
11323 if err := gensupport.DecodeResponse(target, res); err != nil {
11324 return nil, err
11325 }
11326 return ret, nil
11327 }
11328
11329
11330
11331
11332 func (c *ProjectsInstructionsListCall) Pages(ctx context.Context, f func(*GoogleCloudDatalabelingV1beta1ListInstructionsResponse) error) error {
11333 c.ctx_ = ctx
11334 defer c.PageToken(c.urlParams_.Get("pageToken"))
11335 for {
11336 x, err := c.Do()
11337 if err != nil {
11338 return err
11339 }
11340 if err := f(x); err != nil {
11341 return err
11342 }
11343 if x.NextPageToken == "" {
11344 return nil
11345 }
11346 c.PageToken(x.NextPageToken)
11347 }
11348 }
11349
11350 type ProjectsOperationsCancelCall struct {
11351 s *Service
11352 name string
11353 urlParams_ gensupport.URLParams
11354 ifNoneMatch_ string
11355 ctx_ context.Context
11356 header_ http.Header
11357 }
11358
11359
11360
11361
11362
11363
11364
11365
11366
11367
11368
11369
11370 func (r *ProjectsOperationsService) Cancel(name string) *ProjectsOperationsCancelCall {
11371 c := &ProjectsOperationsCancelCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11372 c.name = name
11373 return c
11374 }
11375
11376
11377
11378
11379 func (c *ProjectsOperationsCancelCall) Fields(s ...googleapi.Field) *ProjectsOperationsCancelCall {
11380 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11381 return c
11382 }
11383
11384
11385
11386
11387 func (c *ProjectsOperationsCancelCall) IfNoneMatch(entityTag string) *ProjectsOperationsCancelCall {
11388 c.ifNoneMatch_ = entityTag
11389 return c
11390 }
11391
11392
11393 func (c *ProjectsOperationsCancelCall) Context(ctx context.Context) *ProjectsOperationsCancelCall {
11394 c.ctx_ = ctx
11395 return c
11396 }
11397
11398
11399
11400 func (c *ProjectsOperationsCancelCall) Header() http.Header {
11401 if c.header_ == nil {
11402 c.header_ = make(http.Header)
11403 }
11404 return c.header_
11405 }
11406
11407 func (c *ProjectsOperationsCancelCall) doRequest(alt string) (*http.Response, error) {
11408 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11409 if c.ifNoneMatch_ != "" {
11410 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11411 }
11412 var body io.Reader = nil
11413 c.urlParams_.Set("alt", alt)
11414 c.urlParams_.Set("prettyPrint", "false")
11415 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}:cancel")
11416 urls += "?" + c.urlParams_.Encode()
11417 req, err := http.NewRequest("GET", urls, body)
11418 if err != nil {
11419 return nil, err
11420 }
11421 req.Header = reqHeaders
11422 googleapi.Expand(req.URL, map[string]string{
11423 "name": c.name,
11424 })
11425 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11426 }
11427
11428
11429
11430
11431
11432
11433
11434 func (c *ProjectsOperationsCancelCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11435 gensupport.SetOptions(c.urlParams_, opts...)
11436 res, err := c.doRequest("json")
11437 if res != nil && res.StatusCode == http.StatusNotModified {
11438 if res.Body != nil {
11439 res.Body.Close()
11440 }
11441 return nil, gensupport.WrapError(&googleapi.Error{
11442 Code: res.StatusCode,
11443 Header: res.Header,
11444 })
11445 }
11446 if err != nil {
11447 return nil, err
11448 }
11449 defer googleapi.CloseBody(res)
11450 if err := googleapi.CheckResponse(res); err != nil {
11451 return nil, gensupport.WrapError(err)
11452 }
11453 ret := &GoogleProtobufEmpty{
11454 ServerResponse: googleapi.ServerResponse{
11455 Header: res.Header,
11456 HTTPStatusCode: res.StatusCode,
11457 },
11458 }
11459 target := &ret
11460 if err := gensupport.DecodeResponse(target, res); err != nil {
11461 return nil, err
11462 }
11463 return ret, nil
11464 }
11465
11466 type ProjectsOperationsDeleteCall struct {
11467 s *Service
11468 name string
11469 urlParams_ gensupport.URLParams
11470 ctx_ context.Context
11471 header_ http.Header
11472 }
11473
11474
11475
11476
11477
11478
11479
11480 func (r *ProjectsOperationsService) Delete(name string) *ProjectsOperationsDeleteCall {
11481 c := &ProjectsOperationsDeleteCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11482 c.name = name
11483 return c
11484 }
11485
11486
11487
11488
11489 func (c *ProjectsOperationsDeleteCall) Fields(s ...googleapi.Field) *ProjectsOperationsDeleteCall {
11490 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11491 return c
11492 }
11493
11494
11495 func (c *ProjectsOperationsDeleteCall) Context(ctx context.Context) *ProjectsOperationsDeleteCall {
11496 c.ctx_ = ctx
11497 return c
11498 }
11499
11500
11501
11502 func (c *ProjectsOperationsDeleteCall) Header() http.Header {
11503 if c.header_ == nil {
11504 c.header_ = make(http.Header)
11505 }
11506 return c.header_
11507 }
11508
11509 func (c *ProjectsOperationsDeleteCall) doRequest(alt string) (*http.Response, error) {
11510 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11511 var body io.Reader = nil
11512 c.urlParams_.Set("alt", alt)
11513 c.urlParams_.Set("prettyPrint", "false")
11514 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
11515 urls += "?" + c.urlParams_.Encode()
11516 req, err := http.NewRequest("DELETE", urls, body)
11517 if err != nil {
11518 return nil, err
11519 }
11520 req.Header = reqHeaders
11521 googleapi.Expand(req.URL, map[string]string{
11522 "name": c.name,
11523 })
11524 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11525 }
11526
11527
11528
11529
11530
11531
11532
11533 func (c *ProjectsOperationsDeleteCall) Do(opts ...googleapi.CallOption) (*GoogleProtobufEmpty, error) {
11534 gensupport.SetOptions(c.urlParams_, opts...)
11535 res, err := c.doRequest("json")
11536 if res != nil && res.StatusCode == http.StatusNotModified {
11537 if res.Body != nil {
11538 res.Body.Close()
11539 }
11540 return nil, gensupport.WrapError(&googleapi.Error{
11541 Code: res.StatusCode,
11542 Header: res.Header,
11543 })
11544 }
11545 if err != nil {
11546 return nil, err
11547 }
11548 defer googleapi.CloseBody(res)
11549 if err := googleapi.CheckResponse(res); err != nil {
11550 return nil, gensupport.WrapError(err)
11551 }
11552 ret := &GoogleProtobufEmpty{
11553 ServerResponse: googleapi.ServerResponse{
11554 Header: res.Header,
11555 HTTPStatusCode: res.StatusCode,
11556 },
11557 }
11558 target := &ret
11559 if err := gensupport.DecodeResponse(target, res); err != nil {
11560 return nil, err
11561 }
11562 return ret, nil
11563 }
11564
11565 type ProjectsOperationsGetCall struct {
11566 s *Service
11567 name string
11568 urlParams_ gensupport.URLParams
11569 ifNoneMatch_ string
11570 ctx_ context.Context
11571 header_ http.Header
11572 }
11573
11574
11575
11576
11577
11578
11579 func (r *ProjectsOperationsService) Get(name string) *ProjectsOperationsGetCall {
11580 c := &ProjectsOperationsGetCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11581 c.name = name
11582 return c
11583 }
11584
11585
11586
11587
11588 func (c *ProjectsOperationsGetCall) Fields(s ...googleapi.Field) *ProjectsOperationsGetCall {
11589 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11590 return c
11591 }
11592
11593
11594
11595
11596 func (c *ProjectsOperationsGetCall) IfNoneMatch(entityTag string) *ProjectsOperationsGetCall {
11597 c.ifNoneMatch_ = entityTag
11598 return c
11599 }
11600
11601
11602 func (c *ProjectsOperationsGetCall) Context(ctx context.Context) *ProjectsOperationsGetCall {
11603 c.ctx_ = ctx
11604 return c
11605 }
11606
11607
11608
11609 func (c *ProjectsOperationsGetCall) Header() http.Header {
11610 if c.header_ == nil {
11611 c.header_ = make(http.Header)
11612 }
11613 return c.header_
11614 }
11615
11616 func (c *ProjectsOperationsGetCall) doRequest(alt string) (*http.Response, error) {
11617 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11618 if c.ifNoneMatch_ != "" {
11619 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11620 }
11621 var body io.Reader = nil
11622 c.urlParams_.Set("alt", alt)
11623 c.urlParams_.Set("prettyPrint", "false")
11624 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}")
11625 urls += "?" + c.urlParams_.Encode()
11626 req, err := http.NewRequest("GET", urls, body)
11627 if err != nil {
11628 return nil, err
11629 }
11630 req.Header = reqHeaders
11631 googleapi.Expand(req.URL, map[string]string{
11632 "name": c.name,
11633 })
11634 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11635 }
11636
11637
11638
11639
11640
11641
11642
11643 func (c *ProjectsOperationsGetCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningOperation, error) {
11644 gensupport.SetOptions(c.urlParams_, opts...)
11645 res, err := c.doRequest("json")
11646 if res != nil && res.StatusCode == http.StatusNotModified {
11647 if res.Body != nil {
11648 res.Body.Close()
11649 }
11650 return nil, gensupport.WrapError(&googleapi.Error{
11651 Code: res.StatusCode,
11652 Header: res.Header,
11653 })
11654 }
11655 if err != nil {
11656 return nil, err
11657 }
11658 defer googleapi.CloseBody(res)
11659 if err := googleapi.CheckResponse(res); err != nil {
11660 return nil, gensupport.WrapError(err)
11661 }
11662 ret := &GoogleLongrunningOperation{
11663 ServerResponse: googleapi.ServerResponse{
11664 Header: res.Header,
11665 HTTPStatusCode: res.StatusCode,
11666 },
11667 }
11668 target := &ret
11669 if err := gensupport.DecodeResponse(target, res); err != nil {
11670 return nil, err
11671 }
11672 return ret, nil
11673 }
11674
11675 type ProjectsOperationsListCall struct {
11676 s *Service
11677 name string
11678 urlParams_ gensupport.URLParams
11679 ifNoneMatch_ string
11680 ctx_ context.Context
11681 header_ http.Header
11682 }
11683
11684
11685
11686
11687
11688 func (r *ProjectsOperationsService) List(name string) *ProjectsOperationsListCall {
11689 c := &ProjectsOperationsListCall{s: r.s, urlParams_: make(gensupport.URLParams)}
11690 c.name = name
11691 return c
11692 }
11693
11694
11695 func (c *ProjectsOperationsListCall) Filter(filter string) *ProjectsOperationsListCall {
11696 c.urlParams_.Set("filter", filter)
11697 return c
11698 }
11699
11700
11701
11702 func (c *ProjectsOperationsListCall) PageSize(pageSize int64) *ProjectsOperationsListCall {
11703 c.urlParams_.Set("pageSize", fmt.Sprint(pageSize))
11704 return c
11705 }
11706
11707
11708
11709 func (c *ProjectsOperationsListCall) PageToken(pageToken string) *ProjectsOperationsListCall {
11710 c.urlParams_.Set("pageToken", pageToken)
11711 return c
11712 }
11713
11714
11715
11716
11717 func (c *ProjectsOperationsListCall) Fields(s ...googleapi.Field) *ProjectsOperationsListCall {
11718 c.urlParams_.Set("fields", googleapi.CombineFields(s))
11719 return c
11720 }
11721
11722
11723
11724
11725 func (c *ProjectsOperationsListCall) IfNoneMatch(entityTag string) *ProjectsOperationsListCall {
11726 c.ifNoneMatch_ = entityTag
11727 return c
11728 }
11729
11730
11731 func (c *ProjectsOperationsListCall) Context(ctx context.Context) *ProjectsOperationsListCall {
11732 c.ctx_ = ctx
11733 return c
11734 }
11735
11736
11737
11738 func (c *ProjectsOperationsListCall) Header() http.Header {
11739 if c.header_ == nil {
11740 c.header_ = make(http.Header)
11741 }
11742 return c.header_
11743 }
11744
11745 func (c *ProjectsOperationsListCall) doRequest(alt string) (*http.Response, error) {
11746 reqHeaders := gensupport.SetHeaders(c.s.userAgent(), "", c.header_)
11747 if c.ifNoneMatch_ != "" {
11748 reqHeaders.Set("If-None-Match", c.ifNoneMatch_)
11749 }
11750 var body io.Reader = nil
11751 c.urlParams_.Set("alt", alt)
11752 c.urlParams_.Set("prettyPrint", "false")
11753 urls := googleapi.ResolveRelative(c.s.BasePath, "v1beta1/{+name}/operations")
11754 urls += "?" + c.urlParams_.Encode()
11755 req, err := http.NewRequest("GET", urls, body)
11756 if err != nil {
11757 return nil, err
11758 }
11759 req.Header = reqHeaders
11760 googleapi.Expand(req.URL, map[string]string{
11761 "name": c.name,
11762 })
11763 return gensupport.SendRequest(c.ctx_, c.s.client, req)
11764 }
11765
11766
11767
11768
11769
11770
11771
11772 func (c *ProjectsOperationsListCall) Do(opts ...googleapi.CallOption) (*GoogleLongrunningListOperationsResponse, error) {
11773 gensupport.SetOptions(c.urlParams_, opts...)
11774 res, err := c.doRequest("json")
11775 if res != nil && res.StatusCode == http.StatusNotModified {
11776 if res.Body != nil {
11777 res.Body.Close()
11778 }
11779 return nil, gensupport.WrapError(&googleapi.Error{
11780 Code: res.StatusCode,
11781 Header: res.Header,
11782 })
11783 }
11784 if err != nil {
11785 return nil, err
11786 }
11787 defer googleapi.CloseBody(res)
11788 if err := googleapi.CheckResponse(res); err != nil {
11789 return nil, gensupport.WrapError(err)
11790 }
11791 ret := &GoogleLongrunningListOperationsResponse{
11792 ServerResponse: googleapi.ServerResponse{
11793 Header: res.Header,
11794 HTTPStatusCode: res.StatusCode,
11795 },
11796 }
11797 target := &ret
11798 if err := gensupport.DecodeResponse(target, res); err != nil {
11799 return nil, err
11800 }
11801 return ret, nil
11802 }
11803
11804
11805
11806
11807 func (c *ProjectsOperationsListCall) Pages(ctx context.Context, f func(*GoogleLongrunningListOperationsResponse) error) error {
11808 c.ctx_ = ctx
11809 defer c.PageToken(c.urlParams_.Get("pageToken"))
11810 for {
11811 x, err := c.Do()
11812 if err != nil {
11813 return err
11814 }
11815 if err := f(x); err != nil {
11816 return err
11817 }
11818 if x.NextPageToken == "" {
11819 return nil
11820 }
11821 c.PageToken(x.NextPageToken)
11822 }
11823 }
11824
View as plain text