-
Notifications
You must be signed in to change notification settings - Fork 1.3k
/
video_intelligence.pb.go
5037 lines (4535 loc) · 216 KB
/
video_intelligence.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 2020 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.26.0
// protoc v3.21.5
// source: google/cloud/videointelligence/v1/video_intelligence.proto
package videointelligencepb
import (
context "context"
reflect "reflect"
sync "sync"
_ "google.golang.org/genproto/googleapis/api/annotations"
longrunning "google.golang.org/genproto/googleapis/longrunning"
status "google.golang.org/genproto/googleapis/rpc/status"
grpc "google.golang.org/grpc"
codes "google.golang.org/grpc/codes"
status1 "google.golang.org/grpc/status"
protoreflect "google.golang.org/protobuf/reflect/protoreflect"
protoimpl "google.golang.org/protobuf/runtime/protoimpl"
durationpb "google.golang.org/protobuf/types/known/durationpb"
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)
)
// Video annotation feature.
type Feature int32
const (
// Unspecified.
Feature_FEATURE_UNSPECIFIED Feature = 0
// Label detection. Detect objects, such as dog or flower.
Feature_LABEL_DETECTION Feature = 1
// Shot change detection.
Feature_SHOT_CHANGE_DETECTION Feature = 2
// Explicit content detection.
Feature_EXPLICIT_CONTENT_DETECTION Feature = 3
// Human face detection.
Feature_FACE_DETECTION Feature = 4
// Speech transcription.
Feature_SPEECH_TRANSCRIPTION Feature = 6
// OCR text detection and tracking.
Feature_TEXT_DETECTION Feature = 7
// Object detection and tracking.
Feature_OBJECT_TRACKING Feature = 9
// Logo detection, tracking, and recognition.
Feature_LOGO_RECOGNITION Feature = 12
// Person detection.
Feature_PERSON_DETECTION Feature = 14
)
// Enum value maps for Feature.
var (
Feature_name = map[int32]string{
0: "FEATURE_UNSPECIFIED",
1: "LABEL_DETECTION",
2: "SHOT_CHANGE_DETECTION",
3: "EXPLICIT_CONTENT_DETECTION",
4: "FACE_DETECTION",
6: "SPEECH_TRANSCRIPTION",
7: "TEXT_DETECTION",
9: "OBJECT_TRACKING",
12: "LOGO_RECOGNITION",
14: "PERSON_DETECTION",
}
Feature_value = map[string]int32{
"FEATURE_UNSPECIFIED": 0,
"LABEL_DETECTION": 1,
"SHOT_CHANGE_DETECTION": 2,
"EXPLICIT_CONTENT_DETECTION": 3,
"FACE_DETECTION": 4,
"SPEECH_TRANSCRIPTION": 6,
"TEXT_DETECTION": 7,
"OBJECT_TRACKING": 9,
"LOGO_RECOGNITION": 12,
"PERSON_DETECTION": 14,
}
)
func (x Feature) Enum() *Feature {
p := new(Feature)
*p = x
return p
}
func (x Feature) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Feature) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_enumTypes[0].Descriptor()
}
func (Feature) Type() protoreflect.EnumType {
return &file_google_cloud_videointelligence_v1_video_intelligence_proto_enumTypes[0]
}
func (x Feature) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Feature.Descriptor instead.
func (Feature) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{0}
}
// Label detection mode.
type LabelDetectionMode int32
const (
// Unspecified.
LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED LabelDetectionMode = 0
// Detect shot-level labels.
LabelDetectionMode_SHOT_MODE LabelDetectionMode = 1
// Detect frame-level labels.
LabelDetectionMode_FRAME_MODE LabelDetectionMode = 2
// Detect both shot-level and frame-level labels.
LabelDetectionMode_SHOT_AND_FRAME_MODE LabelDetectionMode = 3
)
// Enum value maps for LabelDetectionMode.
var (
LabelDetectionMode_name = map[int32]string{
0: "LABEL_DETECTION_MODE_UNSPECIFIED",
1: "SHOT_MODE",
2: "FRAME_MODE",
3: "SHOT_AND_FRAME_MODE",
}
LabelDetectionMode_value = map[string]int32{
"LABEL_DETECTION_MODE_UNSPECIFIED": 0,
"SHOT_MODE": 1,
"FRAME_MODE": 2,
"SHOT_AND_FRAME_MODE": 3,
}
)
func (x LabelDetectionMode) Enum() *LabelDetectionMode {
p := new(LabelDetectionMode)
*p = x
return p
}
func (x LabelDetectionMode) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (LabelDetectionMode) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_enumTypes[1].Descriptor()
}
func (LabelDetectionMode) Type() protoreflect.EnumType {
return &file_google_cloud_videointelligence_v1_video_intelligence_proto_enumTypes[1]
}
func (x LabelDetectionMode) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use LabelDetectionMode.Descriptor instead.
func (LabelDetectionMode) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{1}
}
// Bucketized representation of likelihood.
type Likelihood int32
const (
// Unspecified likelihood.
Likelihood_LIKELIHOOD_UNSPECIFIED Likelihood = 0
// Very unlikely.
Likelihood_VERY_UNLIKELY Likelihood = 1
// Unlikely.
Likelihood_UNLIKELY Likelihood = 2
// Possible.
Likelihood_POSSIBLE Likelihood = 3
// Likely.
Likelihood_LIKELY Likelihood = 4
// Very likely.
Likelihood_VERY_LIKELY Likelihood = 5
)
// Enum value maps for Likelihood.
var (
Likelihood_name = map[int32]string{
0: "LIKELIHOOD_UNSPECIFIED",
1: "VERY_UNLIKELY",
2: "UNLIKELY",
3: "POSSIBLE",
4: "LIKELY",
5: "VERY_LIKELY",
}
Likelihood_value = map[string]int32{
"LIKELIHOOD_UNSPECIFIED": 0,
"VERY_UNLIKELY": 1,
"UNLIKELY": 2,
"POSSIBLE": 3,
"LIKELY": 4,
"VERY_LIKELY": 5,
}
)
func (x Likelihood) Enum() *Likelihood {
p := new(Likelihood)
*p = x
return p
}
func (x Likelihood) String() string {
return protoimpl.X.EnumStringOf(x.Descriptor(), protoreflect.EnumNumber(x))
}
func (Likelihood) Descriptor() protoreflect.EnumDescriptor {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_enumTypes[2].Descriptor()
}
func (Likelihood) Type() protoreflect.EnumType {
return &file_google_cloud_videointelligence_v1_video_intelligence_proto_enumTypes[2]
}
func (x Likelihood) Number() protoreflect.EnumNumber {
return protoreflect.EnumNumber(x)
}
// Deprecated: Use Likelihood.Descriptor instead.
func (Likelihood) EnumDescriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{2}
}
// Video annotation request.
type AnnotateVideoRequest struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Input video location. Currently, only
// [Cloud Storage](https://cloud.google.com/storage/) URIs are
// supported. URIs must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
// more information, see [Request
// URIs](https://cloud.google.com/storage/docs/request-endpoints). To identify
// multiple videos, a video URI may include wildcards in the `object-id`.
// Supported wildcards: '*' to match 0 or more characters;
// '?' to match 1 character. If unset, the input video should be embedded
// in the request as `input_content`. If set, `input_content` must be unset.
InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"`
// The video data bytes.
// If unset, the input video(s) should be specified via the `input_uri`.
// If set, `input_uri` must be unset.
InputContent []byte `protobuf:"bytes,6,opt,name=input_content,json=inputContent,proto3" json:"input_content,omitempty"`
// Required. Requested video annotation features.
Features []Feature `protobuf:"varint,2,rep,packed,name=features,proto3,enum=google.cloud.videointelligence.v1.Feature" json:"features,omitempty"`
// Additional video context and/or feature-specific parameters.
VideoContext *VideoContext `protobuf:"bytes,3,opt,name=video_context,json=videoContext,proto3" json:"video_context,omitempty"`
// Optional. Location where the output (in JSON format) should be stored.
// Currently, only [Cloud Storage](https://cloud.google.com/storage/)
// URIs are supported. These must be specified in the following format:
// `gs://bucket-id/object-id` (other URI formats return
// [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For
// more information, see [Request
// URIs](https://cloud.google.com/storage/docs/request-endpoints).
OutputUri string `protobuf:"bytes,4,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"`
// Optional. Cloud region where annotation should take place. Supported cloud
// regions are: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no
// region is specified, the region will be determined based on video file
// location.
LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"`
}
func (x *AnnotateVideoRequest) Reset() {
*x = AnnotateVideoRequest{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[0]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *AnnotateVideoRequest) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*AnnotateVideoRequest) ProtoMessage() {}
func (x *AnnotateVideoRequest) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 AnnotateVideoRequest.ProtoReflect.Descriptor instead.
func (*AnnotateVideoRequest) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{0}
}
func (x *AnnotateVideoRequest) GetInputUri() string {
if x != nil {
return x.InputUri
}
return ""
}
func (x *AnnotateVideoRequest) GetInputContent() []byte {
if x != nil {
return x.InputContent
}
return nil
}
func (x *AnnotateVideoRequest) GetFeatures() []Feature {
if x != nil {
return x.Features
}
return nil
}
func (x *AnnotateVideoRequest) GetVideoContext() *VideoContext {
if x != nil {
return x.VideoContext
}
return nil
}
func (x *AnnotateVideoRequest) GetOutputUri() string {
if x != nil {
return x.OutputUri
}
return ""
}
func (x *AnnotateVideoRequest) GetLocationId() string {
if x != nil {
return x.LocationId
}
return ""
}
// Video context and/or feature-specific parameters.
type VideoContext struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Video segments to annotate. The segments may overlap and are not required
// to be contiguous or span the whole video. If unspecified, each video is
// treated as a single segment.
Segments []*VideoSegment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"`
// Config for LABEL_DETECTION.
LabelDetectionConfig *LabelDetectionConfig `protobuf:"bytes,2,opt,name=label_detection_config,json=labelDetectionConfig,proto3" json:"label_detection_config,omitempty"`
// Config for SHOT_CHANGE_DETECTION.
ShotChangeDetectionConfig *ShotChangeDetectionConfig `protobuf:"bytes,3,opt,name=shot_change_detection_config,json=shotChangeDetectionConfig,proto3" json:"shot_change_detection_config,omitempty"`
// Config for EXPLICIT_CONTENT_DETECTION.
ExplicitContentDetectionConfig *ExplicitContentDetectionConfig `protobuf:"bytes,4,opt,name=explicit_content_detection_config,json=explicitContentDetectionConfig,proto3" json:"explicit_content_detection_config,omitempty"`
// Config for FACE_DETECTION.
FaceDetectionConfig *FaceDetectionConfig `protobuf:"bytes,5,opt,name=face_detection_config,json=faceDetectionConfig,proto3" json:"face_detection_config,omitempty"`
// Config for SPEECH_TRANSCRIPTION.
SpeechTranscriptionConfig *SpeechTranscriptionConfig `protobuf:"bytes,6,opt,name=speech_transcription_config,json=speechTranscriptionConfig,proto3" json:"speech_transcription_config,omitempty"`
// Config for TEXT_DETECTION.
TextDetectionConfig *TextDetectionConfig `protobuf:"bytes,8,opt,name=text_detection_config,json=textDetectionConfig,proto3" json:"text_detection_config,omitempty"`
// Config for PERSON_DETECTION.
PersonDetectionConfig *PersonDetectionConfig `protobuf:"bytes,11,opt,name=person_detection_config,json=personDetectionConfig,proto3" json:"person_detection_config,omitempty"`
// Config for OBJECT_TRACKING.
ObjectTrackingConfig *ObjectTrackingConfig `protobuf:"bytes,13,opt,name=object_tracking_config,json=objectTrackingConfig,proto3" json:"object_tracking_config,omitempty"`
}
func (x *VideoContext) Reset() {
*x = VideoContext{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[1]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VideoContext) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VideoContext) ProtoMessage() {}
func (x *VideoContext) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 VideoContext.ProtoReflect.Descriptor instead.
func (*VideoContext) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{1}
}
func (x *VideoContext) GetSegments() []*VideoSegment {
if x != nil {
return x.Segments
}
return nil
}
func (x *VideoContext) GetLabelDetectionConfig() *LabelDetectionConfig {
if x != nil {
return x.LabelDetectionConfig
}
return nil
}
func (x *VideoContext) GetShotChangeDetectionConfig() *ShotChangeDetectionConfig {
if x != nil {
return x.ShotChangeDetectionConfig
}
return nil
}
func (x *VideoContext) GetExplicitContentDetectionConfig() *ExplicitContentDetectionConfig {
if x != nil {
return x.ExplicitContentDetectionConfig
}
return nil
}
func (x *VideoContext) GetFaceDetectionConfig() *FaceDetectionConfig {
if x != nil {
return x.FaceDetectionConfig
}
return nil
}
func (x *VideoContext) GetSpeechTranscriptionConfig() *SpeechTranscriptionConfig {
if x != nil {
return x.SpeechTranscriptionConfig
}
return nil
}
func (x *VideoContext) GetTextDetectionConfig() *TextDetectionConfig {
if x != nil {
return x.TextDetectionConfig
}
return nil
}
func (x *VideoContext) GetPersonDetectionConfig() *PersonDetectionConfig {
if x != nil {
return x.PersonDetectionConfig
}
return nil
}
func (x *VideoContext) GetObjectTrackingConfig() *ObjectTrackingConfig {
if x != nil {
return x.ObjectTrackingConfig
}
return nil
}
// Config for LABEL_DETECTION.
type LabelDetectionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// What labels should be detected with LABEL_DETECTION, in addition to
// video-level labels or segment-level labels.
// If unspecified, defaults to `SHOT_MODE`.
LabelDetectionMode LabelDetectionMode `protobuf:"varint,1,opt,name=label_detection_mode,json=labelDetectionMode,proto3,enum=google.cloud.videointelligence.v1.LabelDetectionMode" json:"label_detection_mode,omitempty"`
// Whether the video has been shot from a stationary (i.e., non-moving)
// camera. When set to true, might improve detection accuracy for moving
// objects. Should be used with `SHOT_AND_FRAME_MODE` enabled.
StationaryCamera bool `protobuf:"varint,2,opt,name=stationary_camera,json=stationaryCamera,proto3" json:"stationary_camera,omitempty"`
// Model to use for label detection.
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"`
// The confidence threshold we perform filtering on the labels from
// frame-level detection. If not set, it is set to 0.4 by default. The valid
// range for this threshold is [0.1, 0.9]. Any value set outside of this
// range will be clipped.
// Note: For best results, follow the default threshold. We will update
// the default threshold everytime when we release a new model.
FrameConfidenceThreshold float32 `protobuf:"fixed32,4,opt,name=frame_confidence_threshold,json=frameConfidenceThreshold,proto3" json:"frame_confidence_threshold,omitempty"`
// The confidence threshold we perform filtering on the labels from
// video-level and shot-level detections. If not set, it's set to 0.3 by
// default. The valid range for this threshold is [0.1, 0.9]. Any value set
// outside of this range will be clipped.
// Note: For best results, follow the default threshold. We will update
// the default threshold everytime when we release a new model.
VideoConfidenceThreshold float32 `protobuf:"fixed32,5,opt,name=video_confidence_threshold,json=videoConfidenceThreshold,proto3" json:"video_confidence_threshold,omitempty"`
}
func (x *LabelDetectionConfig) Reset() {
*x = LabelDetectionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[2]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *LabelDetectionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*LabelDetectionConfig) ProtoMessage() {}
func (x *LabelDetectionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 LabelDetectionConfig.ProtoReflect.Descriptor instead.
func (*LabelDetectionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{2}
}
func (x *LabelDetectionConfig) GetLabelDetectionMode() LabelDetectionMode {
if x != nil {
return x.LabelDetectionMode
}
return LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED
}
func (x *LabelDetectionConfig) GetStationaryCamera() bool {
if x != nil {
return x.StationaryCamera
}
return false
}
func (x *LabelDetectionConfig) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
func (x *LabelDetectionConfig) GetFrameConfidenceThreshold() float32 {
if x != nil {
return x.FrameConfidenceThreshold
}
return 0
}
func (x *LabelDetectionConfig) GetVideoConfidenceThreshold() float32 {
if x != nil {
return x.VideoConfidenceThreshold
}
return 0
}
// Config for SHOT_CHANGE_DETECTION.
type ShotChangeDetectionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Model to use for shot change detection.
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
}
func (x *ShotChangeDetectionConfig) Reset() {
*x = ShotChangeDetectionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[3]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ShotChangeDetectionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ShotChangeDetectionConfig) ProtoMessage() {}
func (x *ShotChangeDetectionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 ShotChangeDetectionConfig.ProtoReflect.Descriptor instead.
func (*ShotChangeDetectionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{3}
}
func (x *ShotChangeDetectionConfig) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
// Config for OBJECT_TRACKING.
type ObjectTrackingConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Model to use for object tracking.
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
}
func (x *ObjectTrackingConfig) Reset() {
*x = ObjectTrackingConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[4]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ObjectTrackingConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ObjectTrackingConfig) ProtoMessage() {}
func (x *ObjectTrackingConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 ObjectTrackingConfig.ProtoReflect.Descriptor instead.
func (*ObjectTrackingConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{4}
}
func (x *ObjectTrackingConfig) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
// Config for FACE_DETECTION.
type FaceDetectionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Model to use for face detection.
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
// Whether bounding boxes are included in the face annotation output.
IncludeBoundingBoxes bool `protobuf:"varint,2,opt,name=include_bounding_boxes,json=includeBoundingBoxes,proto3" json:"include_bounding_boxes,omitempty"`
// Whether to enable face attributes detection, such as glasses, dark_glasses,
// mouth_open etc. Ignored if 'include_bounding_boxes' is set to false.
IncludeAttributes bool `protobuf:"varint,5,opt,name=include_attributes,json=includeAttributes,proto3" json:"include_attributes,omitempty"`
}
func (x *FaceDetectionConfig) Reset() {
*x = FaceDetectionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[5]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *FaceDetectionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*FaceDetectionConfig) ProtoMessage() {}
func (x *FaceDetectionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 FaceDetectionConfig.ProtoReflect.Descriptor instead.
func (*FaceDetectionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{5}
}
func (x *FaceDetectionConfig) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
func (x *FaceDetectionConfig) GetIncludeBoundingBoxes() bool {
if x != nil {
return x.IncludeBoundingBoxes
}
return false
}
func (x *FaceDetectionConfig) GetIncludeAttributes() bool {
if x != nil {
return x.IncludeAttributes
}
return false
}
// Config for PERSON_DETECTION.
type PersonDetectionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Whether bounding boxes are included in the person detection annotation
// output.
IncludeBoundingBoxes bool `protobuf:"varint,1,opt,name=include_bounding_boxes,json=includeBoundingBoxes,proto3" json:"include_bounding_boxes,omitempty"`
// Whether to enable pose landmarks detection. Ignored if
// 'include_bounding_boxes' is set to false.
IncludePoseLandmarks bool `protobuf:"varint,2,opt,name=include_pose_landmarks,json=includePoseLandmarks,proto3" json:"include_pose_landmarks,omitempty"`
// Whether to enable person attributes detection, such as cloth color (black,
// blue, etc), type (coat, dress, etc), pattern (plain, floral, etc), hair,
// etc.
// Ignored if 'include_bounding_boxes' is set to false.
IncludeAttributes bool `protobuf:"varint,3,opt,name=include_attributes,json=includeAttributes,proto3" json:"include_attributes,omitempty"`
}
func (x *PersonDetectionConfig) Reset() {
*x = PersonDetectionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[6]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *PersonDetectionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*PersonDetectionConfig) ProtoMessage() {}
func (x *PersonDetectionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 PersonDetectionConfig.ProtoReflect.Descriptor instead.
func (*PersonDetectionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{6}
}
func (x *PersonDetectionConfig) GetIncludeBoundingBoxes() bool {
if x != nil {
return x.IncludeBoundingBoxes
}
return false
}
func (x *PersonDetectionConfig) GetIncludePoseLandmarks() bool {
if x != nil {
return x.IncludePoseLandmarks
}
return false
}
func (x *PersonDetectionConfig) GetIncludeAttributes() bool {
if x != nil {
return x.IncludeAttributes
}
return false
}
// Config for EXPLICIT_CONTENT_DETECTION.
type ExplicitContentDetectionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Model to use for explicit content detection.
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"`
}
func (x *ExplicitContentDetectionConfig) Reset() {
*x = ExplicitContentDetectionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[7]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *ExplicitContentDetectionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*ExplicitContentDetectionConfig) ProtoMessage() {}
func (x *ExplicitContentDetectionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 ExplicitContentDetectionConfig.ProtoReflect.Descriptor instead.
func (*ExplicitContentDetectionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{7}
}
func (x *ExplicitContentDetectionConfig) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
// Config for TEXT_DETECTION.
type TextDetectionConfig struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Language hint can be specified if the language to be detected is known a
// priori. It can increase the accuracy of the detection. Language hint must
// be language code in BCP-47 format.
//
// Automatic language detection is performed if no hint is provided.
LanguageHints []string `protobuf:"bytes,1,rep,name=language_hints,json=languageHints,proto3" json:"language_hints,omitempty"`
// Model to use for text detection.
// Supported values: "builtin/stable" (the default if unset) and
// "builtin/latest".
Model string `protobuf:"bytes,2,opt,name=model,proto3" json:"model,omitempty"`
}
func (x *TextDetectionConfig) Reset() {
*x = TextDetectionConfig{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[8]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *TextDetectionConfig) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*TextDetectionConfig) ProtoMessage() {}
func (x *TextDetectionConfig) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 TextDetectionConfig.ProtoReflect.Descriptor instead.
func (*TextDetectionConfig) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{8}
}
func (x *TextDetectionConfig) GetLanguageHints() []string {
if x != nil {
return x.LanguageHints
}
return nil
}
func (x *TextDetectionConfig) GetModel() string {
if x != nil {
return x.Model
}
return ""
}
// Video segment.
type VideoSegment struct {
state protoimpl.MessageState
sizeCache protoimpl.SizeCache
unknownFields protoimpl.UnknownFields
// Time-offset, relative to the beginning of the video,
// corresponding to the start of the segment (inclusive).
StartTimeOffset *durationpb.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"`
// Time-offset, relative to the beginning of the video,
// corresponding to the end of the segment (inclusive).
EndTimeOffset *durationpb.Duration `protobuf:"bytes,2,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"`
}
func (x *VideoSegment) Reset() {
*x = VideoSegment{}
if protoimpl.UnsafeEnabled {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_proto_msgTypes[9]
ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
ms.StoreMessageInfo(mi)
}
}
func (x *VideoSegment) String() string {
return protoimpl.X.MessageStringOf(x)
}
func (*VideoSegment) ProtoMessage() {}
func (x *VideoSegment) ProtoReflect() protoreflect.Message {
mi := &file_google_cloud_videointelligence_v1_video_intelligence_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 VideoSegment.ProtoReflect.Descriptor instead.
func (*VideoSegment) Descriptor() ([]byte, []int) {
return file_google_cloud_videointelligence_v1_video_intelligence_proto_rawDescGZIP(), []int{9}
}
func (x *VideoSegment) GetStartTimeOffset() *durationpb.Duration {
if x != nil {
return x.StartTimeOffset
}
return nil
}