forked from rai-project/dlframework
-
Notifications
You must be signed in to change notification settings - Fork 0
/
features.pb.go
8153 lines (7927 loc) · 232 KB
/
features.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
// Code generated by protoc-gen-gogo. DO NOT EDIT.
// source: features.proto
package dlframework
import (
bytes "bytes"
compress_gzip "compress/gzip"
encoding_binary "encoding/binary"
fmt "fmt"
_ "github.com/gogo/protobuf/gogoproto"
github_com_gogo_protobuf_proto "github.com/gogo/protobuf/proto"
proto "github.com/gogo/protobuf/proto"
github_com_gogo_protobuf_protoc_gen_gogo_descriptor "github.com/gogo/protobuf/protoc-gen-gogo/descriptor"
github_com_gogo_protobuf_sortkeys "github.com/gogo/protobuf/sortkeys"
golang_proto "github.com/golang/protobuf/proto"
_ "google.golang.org/genproto/googleapis/api/annotations"
io "io"
io_ioutil "io/ioutil"
math "math"
math_bits "math/bits"
reflect "reflect"
strings "strings"
)
// Reference imports to suppress errors if they are not otherwise used.
var _ = proto.Marshal
var _ = golang_proto.Marshal
var _ = fmt.Errorf
var _ = math.Inf
// This is a compile-time assertion to ensure that this generated file
// is compatible with the proto package it is being compiled against.
// A compilation error at this line likely means your copy of the
// proto package needs to be updated.
const _ = proto.GoGoProtoPackageIsVersion2 // please upgrade the proto package
type FeatureType int32
const (
FeatureType_UNKNOWN FeatureType = 0
FeatureType_IMAGE FeatureType = 1
FeatureType_RAW_IMAGE FeatureType = 2
FeatureType_CLASSIFICATION FeatureType = 3
FeatureType_BOUNDINGBOX FeatureType = 4
FeatureType_SEMANTICSEGMENT FeatureType = 5
FeatureType_INSTANCESEGMENT FeatureType = 6
FeatureType_GEOLOCATION FeatureType = 7
FeatureType_REGION FeatureType = 8
FeatureType_TEXT FeatureType = 9
FeatureType_AUDIO FeatureType = 10
FeatureType_RAW FeatureType = 100
)
var FeatureType_name = map[int32]string{
0: "UNKNOWN",
1: "IMAGE",
2: "RAW_IMAGE",
3: "CLASSIFICATION",
4: "BOUNDINGBOX",
5: "SEMANTICSEGMENT",
6: "INSTANCESEGMENT",
7: "GEOLOCATION",
8: "REGION",
9: "TEXT",
10: "AUDIO",
100: "RAW",
}
var FeatureType_value = map[string]int32{
"UNKNOWN": 0,
"IMAGE": 1,
"RAW_IMAGE": 2,
"CLASSIFICATION": 3,
"BOUNDINGBOX": 4,
"SEMANTICSEGMENT": 5,
"INSTANCESEGMENT": 6,
"GEOLOCATION": 7,
"REGION": 8,
"TEXT": 9,
"AUDIO": 10,
"RAW": 100,
}
func (x FeatureType) String() string {
return proto.EnumName(FeatureType_name, int32(x))
}
func (FeatureType) EnumDescriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{0}
}
type Image struct {
// An id used to identify the output feature: maps to input_id for output
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id,omitempty"`
// The image is base64 encoded
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty" yaml:"data,omitempty"`
}
func (m *Image) Reset() { *m = Image{} }
func (*Image) ProtoMessage() {}
func (*Image) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{0}
}
func (m *Image) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Image) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Image.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Image) XXX_Merge(src proto.Message) {
xxx_messageInfo_Image.Merge(m, src)
}
func (m *Image) XXX_Size() int {
return m.Size()
}
func (m *Image) XXX_DiscardUnknown() {
xxx_messageInfo_Image.DiscardUnknown(m)
}
var xxx_messageInfo_Image proto.InternalMessageInfo
func (m *Image) GetID() string {
if m != nil {
return m.ID
}
return ""
}
func (m *Image) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type RawImage struct {
// An id used to identify the output feature: maps to input_id for output
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id,omitempty"`
DataType string `protobuf:"bytes,2,opt,name=data_type,json=dataType,proto3" json:"data_type,omitempty" yaml:"data_type,omitempty"`
CharList []int32 `protobuf:"varint,3,rep,packed,name=char_list,json=charList,proto3" json:"char_list,omitempty" yaml:"char_list,omitempty"`
FloatList []float32 `protobuf:"fixed32,4,rep,packed,name=float_list,json=floatList,proto3" json:"float_list,omitempty" yaml:"float_list,omitempty"`
Width int32 `protobuf:"varint,5,opt,name=width,proto3" json:"width,omitempty" yaml:"width,omitempty"`
Height int32 `protobuf:"varint,6,opt,name=height,proto3" json:"height,omitempty" yaml:"height,omitempty"`
Channels int32 `protobuf:"varint,7,opt,name=channels,proto3" json:"channels,omitempty" yaml:"channels,omitempty"`
// compressed data is only used by the webserver and javascript codes
CompressedData []byte `protobuf:"bytes,8,opt,name=compressed_data,json=compressedData,proto3" json:"compressed_data,omitempty" yaml:"compressed_data,omitempty"`
// jpeg data is only used by the webserver and javascript codes
JpegData []byte `protobuf:"bytes,9,opt,name=jpeg_data,json=jpegData,proto3" json:"jpeg_data,omitempty" yaml:"jpeg_data,omitempty"`
}
func (m *RawImage) Reset() { *m = RawImage{} }
func (*RawImage) ProtoMessage() {}
func (*RawImage) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{1}
}
func (m *RawImage) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *RawImage) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_RawImage.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *RawImage) XXX_Merge(src proto.Message) {
xxx_messageInfo_RawImage.Merge(m, src)
}
func (m *RawImage) XXX_Size() int {
return m.Size()
}
func (m *RawImage) XXX_DiscardUnknown() {
xxx_messageInfo_RawImage.DiscardUnknown(m)
}
var xxx_messageInfo_RawImage proto.InternalMessageInfo
func (m *RawImage) GetID() string {
if m != nil {
return m.ID
}
return ""
}
func (m *RawImage) GetDataType() string {
if m != nil {
return m.DataType
}
return ""
}
func (m *RawImage) GetCharList() []int32 {
if m != nil {
return m.CharList
}
return nil
}
func (m *RawImage) GetFloatList() []float32 {
if m != nil {
return m.FloatList
}
return nil
}
func (m *RawImage) GetWidth() int32 {
if m != nil {
return m.Width
}
return 0
}
func (m *RawImage) GetHeight() int32 {
if m != nil {
return m.Height
}
return 0
}
func (m *RawImage) GetChannels() int32 {
if m != nil {
return m.Channels
}
return 0
}
func (m *RawImage) GetCompressedData() []byte {
if m != nil {
return m.CompressedData
}
return nil
}
func (m *RawImage) GetJpegData() []byte {
if m != nil {
return m.JpegData
}
return nil
}
type Classification struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty" yaml:"label,omitempty"`
}
func (m *Classification) Reset() { *m = Classification{} }
func (*Classification) ProtoMessage() {}
func (*Classification) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{2}
}
func (m *Classification) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Classification) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Classification.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Classification) XXX_Merge(src proto.Message) {
xxx_messageInfo_Classification.Merge(m, src)
}
func (m *Classification) XXX_Size() int {
return m.Size()
}
func (m *Classification) XXX_DiscardUnknown() {
xxx_messageInfo_Classification.DiscardUnknown(m)
}
var xxx_messageInfo_Classification proto.InternalMessageInfo
func (m *Classification) GetIndex() int32 {
if m != nil {
return m.Index
}
return 0
}
func (m *Classification) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
type BoundingBox struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty" yaml:"label,omitempty"`
Xmin float32 `protobuf:"fixed32,3,opt,name=xmin,proto3" json:"xmin,omitempty" yaml:"xmin,omitempty"`
Xmax float32 `protobuf:"fixed32,4,opt,name=xmax,proto3" json:"xmax,omitempty" yaml:"xmax,omitempty"`
Ymin float32 `protobuf:"fixed32,5,opt,name=ymin,proto3" json:"ymin,omitempty" yaml:"ymin,omitempty"`
Ymax float32 `protobuf:"fixed32,6,opt,name=ymax,proto3" json:"ymax,omitempty" yaml:"ymax,omitempty"`
}
func (m *BoundingBox) Reset() { *m = BoundingBox{} }
func (*BoundingBox) ProtoMessage() {}
func (*BoundingBox) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{3}
}
func (m *BoundingBox) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *BoundingBox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_BoundingBox.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *BoundingBox) XXX_Merge(src proto.Message) {
xxx_messageInfo_BoundingBox.Merge(m, src)
}
func (m *BoundingBox) XXX_Size() int {
return m.Size()
}
func (m *BoundingBox) XXX_DiscardUnknown() {
xxx_messageInfo_BoundingBox.DiscardUnknown(m)
}
var xxx_messageInfo_BoundingBox proto.InternalMessageInfo
func (m *BoundingBox) GetIndex() int32 {
if m != nil {
return m.Index
}
return 0
}
func (m *BoundingBox) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *BoundingBox) GetXmin() float32 {
if m != nil {
return m.Xmin
}
return 0
}
func (m *BoundingBox) GetXmax() float32 {
if m != nil {
return m.Xmax
}
return 0
}
func (m *BoundingBox) GetYmin() float32 {
if m != nil {
return m.Ymin
}
return 0
}
func (m *BoundingBox) GetYmax() float32 {
if m != nil {
return m.Ymax
}
return 0
}
type SemanticSegment struct {
Height int32 `protobuf:"varint,1,opt,name=height,proto3" json:"height,omitempty" yaml:"height,omitempty"`
Width int32 `protobuf:"varint,2,opt,name=width,proto3" json:"width,omitempty" yaml:"width,omitempty"`
IntMask []int32 `protobuf:"varint,3,rep,packed,name=int_mask,json=intMask,proto3" json:"int_mask,omitempty" yaml:"int_mask,omitempty"`
}
func (m *SemanticSegment) Reset() { *m = SemanticSegment{} }
func (*SemanticSegment) ProtoMessage() {}
func (*SemanticSegment) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{4}
}
func (m *SemanticSegment) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *SemanticSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_SemanticSegment.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *SemanticSegment) XXX_Merge(src proto.Message) {
xxx_messageInfo_SemanticSegment.Merge(m, src)
}
func (m *SemanticSegment) XXX_Size() int {
return m.Size()
}
func (m *SemanticSegment) XXX_DiscardUnknown() {
xxx_messageInfo_SemanticSegment.DiscardUnknown(m)
}
var xxx_messageInfo_SemanticSegment proto.InternalMessageInfo
func (m *SemanticSegment) GetHeight() int32 {
if m != nil {
return m.Height
}
return 0
}
func (m *SemanticSegment) GetWidth() int32 {
if m != nil {
return m.Width
}
return 0
}
func (m *SemanticSegment) GetIntMask() []int32 {
if m != nil {
return m.IntMask
}
return nil
}
type InstanceSegment struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index,omitempty"`
Label string `protobuf:"bytes,2,opt,name=label,proto3" json:"label,omitempty" yaml:"label,omitempty"`
Xmin float32 `protobuf:"fixed32,3,opt,name=xmin,proto3" json:"xmin,omitempty" yaml:"xmin,omitempty"`
Xmax float32 `protobuf:"fixed32,4,opt,name=xmax,proto3" json:"xmax,omitempty" yaml:"xmax,omitempty"`
Ymin float32 `protobuf:"fixed32,5,opt,name=ymin,proto3" json:"ymin,omitempty" yaml:"ymin,omitempty"`
Ymax float32 `protobuf:"fixed32,6,opt,name=ymax,proto3" json:"ymax,omitempty" yaml:"ymax,omitempty"`
MaskType string `protobuf:"bytes,7,opt,name=mask_type,json=maskType,proto3" json:"mask_type,omitempty" yaml:"mask_type,omitempty"`
Height int32 `protobuf:"varint,8,opt,name=height,proto3" json:"height,omitempty" yaml:"height,omitempty"`
Width int32 `protobuf:"varint,9,opt,name=width,proto3" json:"width,omitempty" yaml:"width,omitempty"`
IntMask []int32 `protobuf:"varint,10,rep,packed,name=int_mask,json=intMask,proto3" json:"int_mask,omitempty" yaml:"int_mask,omitempty"`
FloatMask []float32 `protobuf:"fixed32,11,rep,packed,name=float_mask,json=floatMask,proto3" json:"float_mask,omitempty" yaml:"float_mask,omitempty"`
}
func (m *InstanceSegment) Reset() { *m = InstanceSegment{} }
func (*InstanceSegment) ProtoMessage() {}
func (*InstanceSegment) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{5}
}
func (m *InstanceSegment) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *InstanceSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_InstanceSegment.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *InstanceSegment) XXX_Merge(src proto.Message) {
xxx_messageInfo_InstanceSegment.Merge(m, src)
}
func (m *InstanceSegment) XXX_Size() int {
return m.Size()
}
func (m *InstanceSegment) XXX_DiscardUnknown() {
xxx_messageInfo_InstanceSegment.DiscardUnknown(m)
}
var xxx_messageInfo_InstanceSegment proto.InternalMessageInfo
func (m *InstanceSegment) GetIndex() int32 {
if m != nil {
return m.Index
}
return 0
}
func (m *InstanceSegment) GetLabel() string {
if m != nil {
return m.Label
}
return ""
}
func (m *InstanceSegment) GetXmin() float32 {
if m != nil {
return m.Xmin
}
return 0
}
func (m *InstanceSegment) GetXmax() float32 {
if m != nil {
return m.Xmax
}
return 0
}
func (m *InstanceSegment) GetYmin() float32 {
if m != nil {
return m.Ymin
}
return 0
}
func (m *InstanceSegment) GetYmax() float32 {
if m != nil {
return m.Ymax
}
return 0
}
func (m *InstanceSegment) GetMaskType() string {
if m != nil {
return m.MaskType
}
return ""
}
func (m *InstanceSegment) GetHeight() int32 {
if m != nil {
return m.Height
}
return 0
}
func (m *InstanceSegment) GetWidth() int32 {
if m != nil {
return m.Width
}
return 0
}
func (m *InstanceSegment) GetIntMask() []int32 {
if m != nil {
return m.IntMask
}
return nil
}
func (m *InstanceSegment) GetFloatMask() []float32 {
if m != nil {
return m.FloatMask
}
return nil
}
type GeoLocation struct {
Index int32 `protobuf:"varint,1,opt,name=index,proto3" json:"index,omitempty" yaml:"index,omitempty"`
Latitude float32 `protobuf:"fixed32,2,opt,name=latitude,proto3" json:"latitude,omitempty" yaml:"latitude,omitempty"`
Longitude float32 `protobuf:"fixed32,3,opt,name=longitude,proto3" json:"longitude,omitempty" yaml:"longitude,omitempty"`
}
func (m *GeoLocation) Reset() { *m = GeoLocation{} }
func (*GeoLocation) ProtoMessage() {}
func (*GeoLocation) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{6}
}
func (m *GeoLocation) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *GeoLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_GeoLocation.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *GeoLocation) XXX_Merge(src proto.Message) {
xxx_messageInfo_GeoLocation.Merge(m, src)
}
func (m *GeoLocation) XXX_Size() int {
return m.Size()
}
func (m *GeoLocation) XXX_DiscardUnknown() {
xxx_messageInfo_GeoLocation.DiscardUnknown(m)
}
var xxx_messageInfo_GeoLocation proto.InternalMessageInfo
func (m *GeoLocation) GetIndex() int32 {
if m != nil {
return m.Index
}
return 0
}
func (m *GeoLocation) GetLatitude() float32 {
if m != nil {
return m.Latitude
}
return 0
}
func (m *GeoLocation) GetLongitude() float32 {
if m != nil {
return m.Longitude
}
return 0
}
type Region struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" yaml:"data,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty" yaml:"format,omitempty"`
}
func (m *Region) Reset() { *m = Region{} }
func (*Region) ProtoMessage() {}
func (*Region) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{7}
}
func (m *Region) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Region) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Region.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Region) XXX_Merge(src proto.Message) {
xxx_messageInfo_Region.Merge(m, src)
}
func (m *Region) XXX_Size() int {
return m.Size()
}
func (m *Region) XXX_DiscardUnknown() {
xxx_messageInfo_Region.DiscardUnknown(m)
}
var xxx_messageInfo_Region proto.InternalMessageInfo
func (m *Region) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *Region) GetFormat() string {
if m != nil {
return m.Format
}
return ""
}
type Text struct {
Data []byte `protobuf:"bytes,2,opt,name=data,proto3" json:"data,omitempty" yaml:"data,omitempty"`
}
func (m *Text) Reset() { *m = Text{} }
func (*Text) ProtoMessage() {}
func (*Text) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{8}
}
func (m *Text) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Text) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Text.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Text) XXX_Merge(src proto.Message) {
xxx_messageInfo_Text.Merge(m, src)
}
func (m *Text) XXX_Size() int {
return m.Size()
}
func (m *Text) XXX_DiscardUnknown() {
xxx_messageInfo_Text.DiscardUnknown(m)
}
var xxx_messageInfo_Text proto.InternalMessageInfo
func (m *Text) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
type Audio struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" yaml:"data,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty" yaml:"format,omitempty"`
}
func (m *Audio) Reset() { *m = Audio{} }
func (*Audio) ProtoMessage() {}
func (*Audio) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{9}
}
func (m *Audio) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Audio) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Audio.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Audio) XXX_Merge(src proto.Message) {
xxx_messageInfo_Audio.Merge(m, src)
}
func (m *Audio) XXX_Size() int {
return m.Size()
}
func (m *Audio) XXX_DiscardUnknown() {
xxx_messageInfo_Audio.DiscardUnknown(m)
}
var xxx_messageInfo_Audio proto.InternalMessageInfo
func (m *Audio) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *Audio) GetFormat() string {
if m != nil {
return m.Format
}
return ""
}
type Raw struct {
Data []byte `protobuf:"bytes,1,opt,name=data,proto3" json:"data,omitempty" yaml:"data,omitempty"`
Format string `protobuf:"bytes,2,opt,name=format,proto3" json:"format,omitempty" yaml:"format,omitempty"`
}
func (m *Raw) Reset() { *m = Raw{} }
func (*Raw) ProtoMessage() {}
func (*Raw) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{10}
}
func (m *Raw) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Raw) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Raw.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Raw) XXX_Merge(src proto.Message) {
xxx_messageInfo_Raw.Merge(m, src)
}
func (m *Raw) XXX_Size() int {
return m.Size()
}
func (m *Raw) XXX_DiscardUnknown() {
xxx_messageInfo_Raw.DiscardUnknown(m)
}
var xxx_messageInfo_Raw proto.InternalMessageInfo
func (m *Raw) GetData() []byte {
if m != nil {
return m.Data
}
return nil
}
func (m *Raw) GetFormat() string {
if m != nil {
return m.Format
}
return ""
}
type Feature struct {
ID string `protobuf:"bytes,1,opt,name=id,proto3" json:"id,omitempty" yaml:"id,omitempty"`
Type FeatureType `protobuf:"varint,3,opt,name=type,proto3,enum=mlmodelscope.org.dlframework.FeatureType" json:"type,omitempty" yaml:"type,omitempty"`
Probability float32 `protobuf:"fixed32,4,opt,name=probability,proto3" json:"probability,omitempty" yaml:"probability,omitempty"`
Metadata map[string]string `protobuf:"bytes,5,rep,name=metadata,proto3" json:"metadata,omitempty" yaml:"metadata,omitempty" protobuf_key:"bytes,1,opt,name=key,proto3" protobuf_val:"bytes,2,opt,name=value,proto3"`
// Types that are valid to be assigned to Feature:
// *Feature_Image
// *Feature_RawImage
// *Feature_Classification
// *Feature_BoundingBox
// *Feature_SemanticSegment
// *Feature_InstanceSegment
// *Feature_Text
// *Feature_Region
// *Feature_Audio
// *Feature_Geolocation
// *Feature_Raw
Feature isFeature_Feature `protobuf_oneof:"feature"`
}
func (m *Feature) Reset() { *m = Feature{} }
func (*Feature) ProtoMessage() {}
func (*Feature) Descriptor() ([]byte, []int) {
return fileDescriptor_2216f05915163cdf, []int{11}
}
func (m *Feature) XXX_Unmarshal(b []byte) error {
return m.Unmarshal(b)
}
func (m *Feature) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) {
if deterministic {
return xxx_messageInfo_Feature.Marshal(b, m, deterministic)
} else {
b = b[:cap(b)]
n, err := m.MarshalTo(b)
if err != nil {
return nil, err
}
return b[:n], nil
}
}
func (m *Feature) XXX_Merge(src proto.Message) {
xxx_messageInfo_Feature.Merge(m, src)
}
func (m *Feature) XXX_Size() int {
return m.Size()
}
func (m *Feature) XXX_DiscardUnknown() {
xxx_messageInfo_Feature.DiscardUnknown(m)
}
var xxx_messageInfo_Feature proto.InternalMessageInfo
type isFeature_Feature interface {
isFeature_Feature()
Equal(interface{}) bool
VerboseEqual(interface{}) error
MarshalTo([]byte) (int, error)
Size() int
}
type Feature_Image struct {
Image *Image `protobuf:"bytes,6,opt,name=image,proto3,oneof"`
}
type Feature_RawImage struct {
RawImage *RawImage `protobuf:"bytes,7,opt,name=raw_image,json=rawImage,proto3,oneof"`
}
type Feature_Classification struct {
Classification *Classification `protobuf:"bytes,8,opt,name=classification,proto3,oneof"`
}
type Feature_BoundingBox struct {
BoundingBox *BoundingBox `protobuf:"bytes,9,opt,name=bounding_box,json=boundingBox,proto3,oneof"`
}
type Feature_SemanticSegment struct {
SemanticSegment *SemanticSegment `protobuf:"bytes,10,opt,name=semantic_segment,json=semanticSegment,proto3,oneof"`
}
type Feature_InstanceSegment struct {
InstanceSegment *InstanceSegment `protobuf:"bytes,11,opt,name=instance_segment,json=instanceSegment,proto3,oneof"`
}
type Feature_Text struct {
Text *Text `protobuf:"bytes,12,opt,name=text,proto3,oneof"`
}
type Feature_Region struct {
Region *Region `protobuf:"bytes,13,opt,name=region,proto3,oneof"`
}
type Feature_Audio struct {
Audio *Audio `protobuf:"bytes,14,opt,name=audio,proto3,oneof"`
}
type Feature_Geolocation struct {
Geolocation *GeoLocation `protobuf:"bytes,15,opt,name=geolocation,proto3,oneof"`
}
type Feature_Raw struct {
Raw *Raw `protobuf:"bytes,1000,opt,name=raw,proto3,oneof"`
}
func (*Feature_Image) isFeature_Feature() {}
func (*Feature_RawImage) isFeature_Feature() {}
func (*Feature_Classification) isFeature_Feature() {}
func (*Feature_BoundingBox) isFeature_Feature() {}
func (*Feature_SemanticSegment) isFeature_Feature() {}
func (*Feature_InstanceSegment) isFeature_Feature() {}
func (*Feature_Text) isFeature_Feature() {}
func (*Feature_Region) isFeature_Feature() {}
func (*Feature_Audio) isFeature_Feature() {}
func (*Feature_Geolocation) isFeature_Feature() {}
func (*Feature_Raw) isFeature_Feature() {}
func (m *Feature) GetFeature() isFeature_Feature {
if m != nil {
return m.Feature
}
return nil
}
func (m *Feature) GetID() string {
if m != nil {
return m.ID
}
return ""
}
func (m *Feature) GetType() FeatureType {
if m != nil {
return m.Type
}
return FeatureType_UNKNOWN
}
func (m *Feature) GetProbability() float32 {
if m != nil {
return m.Probability
}
return 0
}
func (m *Feature) GetMetadata() map[string]string {
if m != nil {
return m.Metadata
}
return nil
}
func (m *Feature) GetImage() *Image {
if x, ok := m.GetFeature().(*Feature_Image); ok {
return x.Image
}
return nil
}
func (m *Feature) GetRawImage() *RawImage {
if x, ok := m.GetFeature().(*Feature_RawImage); ok {
return x.RawImage
}
return nil
}
func (m *Feature) GetClassification() *Classification {
if x, ok := m.GetFeature().(*Feature_Classification); ok {
return x.Classification
}
return nil
}
func (m *Feature) GetBoundingBox() *BoundingBox {
if x, ok := m.GetFeature().(*Feature_BoundingBox); ok {
return x.BoundingBox
}
return nil
}
func (m *Feature) GetSemanticSegment() *SemanticSegment {
if x, ok := m.GetFeature().(*Feature_SemanticSegment); ok {
return x.SemanticSegment
}
return nil