forked from googleapis/java-spanner
/
dataset.pb.go
2115 lines (1887 loc) · 93.7 KB
/
dataset.pb.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// Copyright 2019 Google LLC.
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
// http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.
//
// Code generated by protoc-gen-go. DO NOT EDIT.
// versions:
// protoc-gen-go v1.25.0
// protoc v3.13.0
// source: google/cloud/datalabeling/v1beta1/dataset.proto
package datalabeling
import (
reflect "reflect"
sync "sync"
proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
timestamppb "google.golang.org/protobuf/types/known/timestamppb"
)
const (
// Verify that this generated code is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(20 - protoimpl.MinVersion)
// Verify that runtime/protoimpl is sufficiently up-to-date.
_ = protoimpl.EnforceVersion(protoimpl.MaxVersion - 20)
)
// This is a compile-time assertion that a sufficiently up-to-date version
// of the legacy proto package is being used.
const _ = proto.ProtoPackageIsVersion4
type DataType int32
const (
DataType_DATA_TYPE_UNSPECIFIED DataType = 0
// Allowed for continuous evaluation.
DataType_IMAGE DataType = 1
DataType_VIDEO DataType = 2
// Allowed for continuous evaluation.
DataType_TEXT DataType = 4
// Allowed for continuous evaluation.
DataType_GENERAL_DATA DataType = 6
)
// Enum value maps for DataType.
var (
DataType_name = map[int32]string{
0: "DATA_TYPE_UNSPECIFIED",
1: "IMAGE",
2: "VIDEO",
4: "TEXT",
6: "GENERAL_DATA",
}
DataType_value = map[string]int32{
"DATA_TYPE_UNSPECIFIED": 0,
"IMAGE": 1,
"VIDEO": 2,
"TEXT": 4,
"GENERAL_DATA": 6,
}
)
func (x DataType) Enum() *DataType {
p := new(DataType)
*p = x
return p
}
func (x DataType) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (DataType) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_enumTypes[0].Descriptor()
}
func (DataType) Type() protoreflect.EnumType {
return &file_google_cloud_datalabeling_v1beta1_dataset_proto_enumTypes[0]
}
func (x DataType) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use DataType.Descriptor instead.
func (DataType) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{0}
}
// Dataset is the resource to hold your data. You can request multiple labeling
// tasks for a dataset while each one will generate an AnnotatedDataset.
type Dataset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. Dataset resource name, format is:
// projects/{project_id}/datasets/{dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Required. The display name of the dataset. Maximum of 64 characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Optional. User-provided description of the annotation specification set.
// The description can be up to 10000 characters long.
Description string `protobuf:"bytes,3,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Time the dataset is created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,4,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. This is populated with the original input configs
// where ImportData is called. It is available only after the clients
// import data to this dataset.
InputConfigs []*InputConfig `protobuf:"bytes,5,rep,name=input_configs,json=inputConfigs,proto3" json:"input_configs,omitempty"`
// Output only. The names of any related resources that are blocking changes
// to the dataset.
BlockingResources []string `protobuf:"bytes,6,rep,name=blocking_resources,json=blockingResources,proto3" json:"blocking_resources,omitempty"`
// Output only. The number of data items in the dataset.
DataItemCount int64 `protobuf:"varint,7,opt,name=data_item_count,json=dataItemCount,proto3" json:"data_item_count,omitempty"`
}
func (x *Dataset) Reset() {
*x = Dataset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *Dataset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*Dataset) ProtoMessage() {}
func (x *Dataset) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[0]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use Dataset.ProtoReflect.Descriptor instead.
func (*Dataset) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{0}
}
func (x *Dataset) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *Dataset) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *Dataset) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *Dataset) GetCreateTime() *timestamppb.Timestamp {
if x != nil {
return x.CreateTime
}
return nil
}
func (x *Dataset) GetInputConfigs() []*InputConfig {
if x != nil {
return x.InputConfigs
}
return nil
}
func (x *Dataset) GetBlockingResources() []string {
if x != nil {
return x.BlockingResources
}
return nil
}
func (x *Dataset) GetDataItemCount() int64 {
if x != nil {
return x.DataItemCount
}
return 0
}
// The configuration of input data, including data type, location, etc.
type InputConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Optional. The metadata associated with each data type.
//
// Types that are assignable to DataTypeMetadata:
// *InputConfig_TextMetadata
DataTypeMetadata isInputConfig_DataTypeMetadata `protobuf_oneof:"data_type_metadata"`
// Required. Where the data is from.
//
// Types that are assignable to Source:
// *InputConfig_GcsSource
// *InputConfig_BigquerySource
Source isInputConfig_Source `protobuf_oneof:"source"`
// Required. Data type must be specifed when user tries to import data.
DataType DataType `protobuf:"varint,1,opt,name=data_type,json=dataType,proto3,enum=google.cloud.datalabeling.v1beta1.DataType" json:"data_type,omitempty"`
// Optional. The type of annotation to be performed on this data. You must
// specify this field if you are using this InputConfig in an
// [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
AnnotationType AnnotationType `protobuf:"varint,3,opt,name=annotation_type,json=annotationType,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationType" json:"annotation_type,omitempty"`
// Optional. Metadata about annotations for the input. You must specify this
// field if you are using this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob] for a
// model version that performs classification.
ClassificationMetadata *ClassificationMetadata `protobuf:"bytes,4,opt,name=classification_metadata,json=classificationMetadata,proto3" json:"classification_metadata,omitempty"`
}
func (x *InputConfig) Reset() {
*x = InputConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *InputConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*InputConfig) ProtoMessage() {}
func (x *InputConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[1]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use InputConfig.ProtoReflect.Descriptor instead.
func (*InputConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{1}
}
func (m *InputConfig) GetDataTypeMetadata() isInputConfig_DataTypeMetadata {
if m != nil {
return m.DataTypeMetadata
}
return nil
}
func (x *InputConfig) GetTextMetadata() *TextMetadata {
if x, ok := x.GetDataTypeMetadata().(*InputConfig_TextMetadata); ok {
return x.TextMetadata
}
return nil
}
func (m *InputConfig) GetSource() isInputConfig_Source {
if m != nil {
return m.Source
}
return nil
}
func (x *InputConfig) GetGcsSource() *GcsSource {
if x, ok := x.GetSource().(*InputConfig_GcsSource); ok {
return x.GcsSource
}
return nil
}
func (x *InputConfig) GetBigquerySource() *BigQuerySource {
if x, ok := x.GetSource().(*InputConfig_BigquerySource); ok {
return x.BigquerySource
}
return nil
}
func (x *InputConfig) GetDataType() DataType {
if x != nil {
return x.DataType
}
return DataType_DATA_TYPE_UNSPECIFIED
}
func (x *InputConfig) GetAnnotationType() AnnotationType {
if x != nil {
return x.AnnotationType
}
return AnnotationType_ANNOTATION_TYPE_UNSPECIFIED
}
func (x *InputConfig) GetClassificationMetadata() *ClassificationMetadata {
if x != nil {
return x.ClassificationMetadata
}
return nil
}
type isInputConfig_DataTypeMetadata interface {
isInputConfig_DataTypeMetadata()
}
type InputConfig_TextMetadata struct {
// Required for text import, as language code must be specified.
TextMetadata *TextMetadata `protobuf:"bytes,6,opt,name=text_metadata,json=textMetadata,proto3,oneof"`
}
func (*InputConfig_TextMetadata) isInputConfig_DataTypeMetadata() {}
type isInputConfig_Source interface {
isInputConfig_Source()
}
type InputConfig_GcsSource struct {
// Source located in Cloud Storage.
GcsSource *GcsSource `protobuf:"bytes,2,opt,name=gcs_source,json=gcsSource,proto3,oneof"`
}
type InputConfig_BigquerySource struct {
// Source located in BigQuery. You must specify this field if you are using
// this InputConfig in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob].
BigquerySource *BigQuerySource `protobuf:"bytes,5,opt,name=bigquery_source,json=bigquerySource,proto3,oneof"`
}
func (*InputConfig_GcsSource) isInputConfig_Source() {}
func (*InputConfig_BigquerySource) isInputConfig_Source() {}
// Metadata for the text.
type TextMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// The language of this text, as a
// [BCP-47](https://www.rfc-editor.org/rfc/bcp/bcp47.txt).
// Default value is en-US.
LanguageCode string `protobuf:"bytes,1,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"`
}
func (x *TextMetadata) Reset() {
*x = TextMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TextMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TextMetadata) ProtoMessage() {}
func (x *TextMetadata) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[2]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use TextMetadata.ProtoReflect.Descriptor instead.
func (*TextMetadata) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{2}
}
func (x *TextMetadata) GetLanguageCode() string {
if x != nil {
return x.LanguageCode
}
return ""
}
// Metadata for classification annotations.
type ClassificationMetadata struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Whether the classification task is multi-label or not.
IsMultiLabel bool `protobuf:"varint,1,opt,name=is_multi_label,json=isMultiLabel,proto3" json:"is_multi_label,omitempty"`
}
func (x *ClassificationMetadata) Reset() {
*x = ClassificationMetadata{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ClassificationMetadata) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ClassificationMetadata) ProtoMessage() {}
func (x *ClassificationMetadata) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[3]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use ClassificationMetadata.ProtoReflect.Descriptor instead.
func (*ClassificationMetadata) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{3}
}
func (x *ClassificationMetadata) GetIsMultiLabel() bool {
if x != nil {
return x.IsMultiLabel
}
return false
}
// Source of the Cloud Storage file to be imported.
type GcsSource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The input URI of source file. This must be a Cloud Storage path
// (`gs://...`).
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
// Required. The format of the source file. Only "text/csv" is supported.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
}
func (x *GcsSource) Reset() {
*x = GcsSource{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GcsSource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GcsSource) ProtoMessage() {}
func (x *GcsSource) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[4]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GcsSource.ProtoReflect.Descriptor instead.
func (*GcsSource) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{4}
}
func (x *GcsSource) GetInputUri() string {
if x != nil {
return x.InputUri
}
return ""
}
func (x *GcsSource) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
// The BigQuery location for input data. If used in an [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob], this
// is where the service saves the prediction input and output sampled from the
// model version.
type BigQuerySource struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. BigQuery URI to a table, up to 2,000 characters long. If you
// specify the URI of a table that does not exist, Data Labeling Service
// creates a table at the URI with the correct schema when you create your
// [EvaluationJob][google.cloud.datalabeling.v1beta1.EvaluationJob]. If you specify the URI of a table that already exists,
// it must have the
// [correct
// schema](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
//
// Provide the table URI in the following format:
//
// "bq://<var>{your_project_id}</var>/<var>{your_dataset_name}</var>/<var>{your_table_name}</var>"
//
// [Learn
// more](/ml-engine/docs/continuous-evaluation/create-job#table-schema).
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
}
func (x *BigQuerySource) Reset() {
*x = BigQuerySource{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *BigQuerySource) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*BigQuerySource) ProtoMessage() {}
func (x *BigQuerySource) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[5]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use BigQuerySource.ProtoReflect.Descriptor instead.
func (*BigQuerySource) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{5}
}
func (x *BigQuerySource) GetInputUri() string {
if x != nil {
return x.InputUri
}
return ""
}
// The configuration of output data.
type OutputConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Location to output data to.
//
// Types that are assignable to Destination:
// *OutputConfig_GcsDestination
// *OutputConfig_GcsFolderDestination
Destination isOutputConfig_Destination `protobuf_oneof:"destination"`
}
func (x *OutputConfig) Reset() {
*x = OutputConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *OutputConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*OutputConfig) ProtoMessage() {}
func (x *OutputConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[6]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use OutputConfig.ProtoReflect.Descriptor instead.
func (*OutputConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{6}
}
func (m *OutputConfig) GetDestination() isOutputConfig_Destination {
if m != nil {
return m.Destination
}
return nil
}
func (x *OutputConfig) GetGcsDestination() *GcsDestination {
if x, ok := x.GetDestination().(*OutputConfig_GcsDestination); ok {
return x.GcsDestination
}
return nil
}
func (x *OutputConfig) GetGcsFolderDestination() *GcsFolderDestination {
if x, ok := x.GetDestination().(*OutputConfig_GcsFolderDestination); ok {
return x.GcsFolderDestination
}
return nil
}
type isOutputConfig_Destination interface {
isOutputConfig_Destination()
}
type OutputConfig_GcsDestination struct {
// Output to a file in Cloud Storage. Should be used for labeling output
// other than image segmentation.
GcsDestination *GcsDestination `protobuf:"bytes,1,opt,name=gcs_destination,json=gcsDestination,proto3,oneof"`
}
type OutputConfig_GcsFolderDestination struct {
// Output to a folder in Cloud Storage. Should be used for image
// segmentation labeling output.
GcsFolderDestination *GcsFolderDestination `protobuf:"bytes,2,opt,name=gcs_folder_destination,json=gcsFolderDestination,proto3,oneof"`
}
func (*OutputConfig_GcsDestination) isOutputConfig_Destination() {}
func (*OutputConfig_GcsFolderDestination) isOutputConfig_Destination() {}
// Export destination of the data.Only gcs path is allowed in
// output_uri.
type GcsDestination struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. The output uri of destination file.
OutputUri string `protobuf:"bytes,1,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"`
// Required. The format of the gcs destination. Only "text/csv" and
// "application/json"
// are supported.
MimeType string `protobuf:"bytes,2,opt,name=mime_type,json=mimeType,proto3" json:"mime_type,omitempty"`
}
func (x *GcsDestination) Reset() {
*x = GcsDestination{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GcsDestination) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GcsDestination) ProtoMessage() {}
func (x *GcsDestination) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[7]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GcsDestination.ProtoReflect.Descriptor instead.
func (*GcsDestination) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{7}
}
func (x *GcsDestination) GetOutputUri() string {
if x != nil {
return x.OutputUri
}
return ""
}
func (x *GcsDestination) GetMimeType() string {
if x != nil {
return x.MimeType
}
return ""
}
// Export folder destination of the data.
type GcsFolderDestination struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Required. Cloud Storage directory to export data to.
OutputFolderUri string `protobuf:"bytes,1,opt,name=output_folder_uri,json=outputFolderUri,proto3" json:"output_folder_uri,omitempty"`
}
func (x *GcsFolderDestination) Reset() {
*x = GcsFolderDestination{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *GcsFolderDestination) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*GcsFolderDestination) ProtoMessage() {}
func (x *GcsFolderDestination) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[8]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use GcsFolderDestination.ProtoReflect.Descriptor instead.
func (*GcsFolderDestination) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{8}
}
func (x *GcsFolderDestination) GetOutputFolderUri() string {
if x != nil {
return x.OutputFolderUri
}
return ""
}
// DataItem is a piece of data, without annotation. For example, an image.
type DataItem struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only.
//
// Types that are assignable to Payload:
// *DataItem_ImagePayload
// *DataItem_TextPayload
// *DataItem_VideoPayload
Payload isDataItem_Payload `protobuf_oneof:"payload"`
// Output only. Name of the data item, in format of:
// projects/{project_id}/datasets/{dataset_id}/dataItems/{data_item_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
}
func (x *DataItem) Reset() {
*x = DataItem{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *DataItem) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*DataItem) ProtoMessage() {}
func (x *DataItem) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[9]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use DataItem.ProtoReflect.Descriptor instead.
func (*DataItem) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{9}
}
func (m *DataItem) GetPayload() isDataItem_Payload {
if m != nil {
return m.Payload
}
return nil
}
func (x *DataItem) GetImagePayload() *ImagePayload {
if x, ok := x.GetPayload().(*DataItem_ImagePayload); ok {
return x.ImagePayload
}
return nil
}
func (x *DataItem) GetTextPayload() *TextPayload {
if x, ok := x.GetPayload().(*DataItem_TextPayload); ok {
return x.TextPayload
}
return nil
}
func (x *DataItem) GetVideoPayload() *VideoPayload {
if x, ok := x.GetPayload().(*DataItem_VideoPayload); ok {
return x.VideoPayload
}
return nil
}
func (x *DataItem) GetName() string {
if x != nil {
return x.Name
}
return ""
}
type isDataItem_Payload interface {
isDataItem_Payload()
}
type DataItem_ImagePayload struct {
// The image payload, a container of the image bytes/uri.
ImagePayload *ImagePayload `protobuf:"bytes,2,opt,name=image_payload,json=imagePayload,proto3,oneof"`
}
type DataItem_TextPayload struct {
// The text payload, a container of text content.
TextPayload *TextPayload `protobuf:"bytes,3,opt,name=text_payload,json=textPayload,proto3,oneof"`
}
type DataItem_VideoPayload struct {
// The video payload, a container of the video uri.
VideoPayload *VideoPayload `protobuf:"bytes,4,opt,name=video_payload,json=videoPayload,proto3,oneof"`
}
func (*DataItem_ImagePayload) isDataItem_Payload() {}
func (*DataItem_TextPayload) isDataItem_Payload() {}
func (*DataItem_VideoPayload) isDataItem_Payload() {}
// AnnotatedDataset is a set holding annotations for data in a Dataset. Each
// labeling task will generate an AnnotatedDataset under the Dataset that the
// task is requested for.
type AnnotatedDataset struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Output only. AnnotatedDataset resource name in format of:
// projects/{project_id}/datasets/{dataset_id}/annotatedDatasets/
// {annotated_dataset_id}
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// Output only. The display name of the AnnotatedDataset. It is specified in
// HumanAnnotationConfig when user starts a labeling task. Maximum of 64
// characters.
DisplayName string `protobuf:"bytes,2,opt,name=display_name,json=displayName,proto3" json:"display_name,omitempty"`
// Output only. The description of the AnnotatedDataset. It is specified in
// HumanAnnotationConfig when user starts a labeling task. Maximum of 10000
// characters.
Description string `protobuf:"bytes,9,opt,name=description,proto3" json:"description,omitempty"`
// Output only. Source of the annotation.
AnnotationSource AnnotationSource `protobuf:"varint,3,opt,name=annotation_source,json=annotationSource,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationSource" json:"annotation_source,omitempty"`
// Output only. Type of the annotation. It is specified when starting labeling
// task.
AnnotationType AnnotationType `protobuf:"varint,8,opt,name=annotation_type,json=annotationType,proto3,enum=google.cloud.datalabeling.v1beta1.AnnotationType" json:"annotation_type,omitempty"`
// Output only. Number of examples in the annotated dataset.
ExampleCount int64 `protobuf:"varint,4,opt,name=example_count,json=exampleCount,proto3" json:"example_count,omitempty"`
// Output only. Number of examples that have annotation in the annotated
// dataset.
CompletedExampleCount int64 `protobuf:"varint,5,opt,name=completed_example_count,json=completedExampleCount,proto3" json:"completed_example_count,omitempty"`
// Output only. Per label statistics.
LabelStats *LabelStats `protobuf:"bytes,6,opt,name=label_stats,json=labelStats,proto3" json:"label_stats,omitempty"`
// Output only. Time the AnnotatedDataset was created.
CreateTime *timestamppb.Timestamp `protobuf:"bytes,7,opt,name=create_time,json=createTime,proto3" json:"create_time,omitempty"`
// Output only. Additional information about AnnotatedDataset.
Metadata *AnnotatedDatasetMetadata `protobuf:"bytes,10,opt,name=metadata,proto3" json:"metadata,omitempty"`
// Output only. The names of any related resources that are blocking changes
// to the annotated dataset.
BlockingResources []string `protobuf:"bytes,11,rep,name=blocking_resources,json=blockingResources,proto3" json:"blocking_resources,omitempty"`
}
func (x *AnnotatedDataset) Reset() {
*x = AnnotatedDataset{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[10]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnnotatedDataset) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnnotatedDataset) ProtoMessage() {}
func (x *AnnotatedDataset) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_datalabeling_v1beta1_dataset_proto_msgTypes[10]
if protoimpl.UnsafeEnabled && x != nil {
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
if ms.LoadMessageInfo() == nil {
ms.StoreMessageInfo(mi)
}
return ms
}
return mi.MessageOf(x)
}
// Deprecated: Use AnnotatedDataset.ProtoReflect.Descriptor instead.
func (*AnnotatedDataset) Descriptor() ([]byte, []int) {
return file_google_cloud_datalabeling_v1beta1_dataset_proto_rawDescGZIP(), []int{10}
}
func (x *AnnotatedDataset) GetName() string {
if x != nil {
return x.Name
}
return ""
}
func (x *AnnotatedDataset) GetDisplayName() string {
if x != nil {
return x.DisplayName
}
return ""
}
func (x *AnnotatedDataset) GetDescription() string {
if x != nil {
return x.Description
}
return ""
}
func (x *AnnotatedDataset) GetAnnotationSource() AnnotationSource {
if x != nil {
return x.AnnotationSource
}
return AnnotationSource_ANNOTATION_SOURCE_UNSPECIFIED
}
func (x *AnnotatedDataset) GetAnnotationType() AnnotationType {
if x != nil {
return x.AnnotationType
}
return AnnotationType_ANNOTATION_TYPE_UNSPECIFIED
}
func (x *AnnotatedDataset) GetExampleCount() int64 {
if x != nil {
return x.ExampleCount