1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/videointelligence/v1beta2/video_intelligence.proto 3 4package videointelligence 5 6import ( 7 context "context" 8 fmt "fmt" 9 math "math" 10 11 proto "github.com/golang/protobuf/proto" 12 duration "github.com/golang/protobuf/ptypes/duration" 13 timestamp "github.com/golang/protobuf/ptypes/timestamp" 14 _ "google.golang.org/genproto/googleapis/api/annotations" 15 longrunning "google.golang.org/genproto/googleapis/longrunning" 16 status "google.golang.org/genproto/googleapis/rpc/status" 17 grpc "google.golang.org/grpc" 18 codes "google.golang.org/grpc/codes" 19 status1 "google.golang.org/grpc/status" 20) 21 22// Reference imports to suppress errors if they are not otherwise used. 23var _ = proto.Marshal 24var _ = fmt.Errorf 25var _ = math.Inf 26 27// This is a compile-time assertion to ensure that this generated file 28// is compatible with the proto package it is being compiled against. 29// A compilation error at this line likely means your copy of the 30// proto package needs to be updated. 31const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 32 33// Video annotation feature. 34type Feature int32 35 36const ( 37 // Unspecified. 38 Feature_FEATURE_UNSPECIFIED Feature = 0 39 // Label detection. Detect objects, such as dog or flower. 40 Feature_LABEL_DETECTION Feature = 1 41 // Shot change detection. 42 Feature_SHOT_CHANGE_DETECTION Feature = 2 43 // Explicit content detection. 44 Feature_EXPLICIT_CONTENT_DETECTION Feature = 3 45 // Human face detection and tracking. 46 Feature_FACE_DETECTION Feature = 4 47) 48 49var Feature_name = map[int32]string{ 50 0: "FEATURE_UNSPECIFIED", 51 1: "LABEL_DETECTION", 52 2: "SHOT_CHANGE_DETECTION", 53 3: "EXPLICIT_CONTENT_DETECTION", 54 4: "FACE_DETECTION", 55} 56 57var Feature_value = map[string]int32{ 58 "FEATURE_UNSPECIFIED": 0, 59 "LABEL_DETECTION": 1, 60 "SHOT_CHANGE_DETECTION": 2, 61 "EXPLICIT_CONTENT_DETECTION": 3, 62 "FACE_DETECTION": 4, 63} 64 65func (x Feature) String() string { 66 return proto.EnumName(Feature_name, int32(x)) 67} 68 69func (Feature) EnumDescriptor() ([]byte, []int) { 70 return fileDescriptor_84237f664d80452c, []int{0} 71} 72 73// Label detection mode. 74type LabelDetectionMode int32 75 76const ( 77 // Unspecified. 78 LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED LabelDetectionMode = 0 79 // Detect shot-level labels. 80 LabelDetectionMode_SHOT_MODE LabelDetectionMode = 1 81 // Detect frame-level labels. 82 LabelDetectionMode_FRAME_MODE LabelDetectionMode = 2 83 // Detect both shot-level and frame-level labels. 84 LabelDetectionMode_SHOT_AND_FRAME_MODE LabelDetectionMode = 3 85) 86 87var LabelDetectionMode_name = map[int32]string{ 88 0: "LABEL_DETECTION_MODE_UNSPECIFIED", 89 1: "SHOT_MODE", 90 2: "FRAME_MODE", 91 3: "SHOT_AND_FRAME_MODE", 92} 93 94var LabelDetectionMode_value = map[string]int32{ 95 "LABEL_DETECTION_MODE_UNSPECIFIED": 0, 96 "SHOT_MODE": 1, 97 "FRAME_MODE": 2, 98 "SHOT_AND_FRAME_MODE": 3, 99} 100 101func (x LabelDetectionMode) String() string { 102 return proto.EnumName(LabelDetectionMode_name, int32(x)) 103} 104 105func (LabelDetectionMode) EnumDescriptor() ([]byte, []int) { 106 return fileDescriptor_84237f664d80452c, []int{1} 107} 108 109// Bucketized representation of likelihood. 110type Likelihood int32 111 112const ( 113 // Unspecified likelihood. 114 Likelihood_LIKELIHOOD_UNSPECIFIED Likelihood = 0 115 // Very unlikely. 116 Likelihood_VERY_UNLIKELY Likelihood = 1 117 // Unlikely. 118 Likelihood_UNLIKELY Likelihood = 2 119 // Possible. 120 Likelihood_POSSIBLE Likelihood = 3 121 // Likely. 122 Likelihood_LIKELY Likelihood = 4 123 // Very likely. 124 Likelihood_VERY_LIKELY Likelihood = 5 125) 126 127var Likelihood_name = map[int32]string{ 128 0: "LIKELIHOOD_UNSPECIFIED", 129 1: "VERY_UNLIKELY", 130 2: "UNLIKELY", 131 3: "POSSIBLE", 132 4: "LIKELY", 133 5: "VERY_LIKELY", 134} 135 136var Likelihood_value = map[string]int32{ 137 "LIKELIHOOD_UNSPECIFIED": 0, 138 "VERY_UNLIKELY": 1, 139 "UNLIKELY": 2, 140 "POSSIBLE": 3, 141 "LIKELY": 4, 142 "VERY_LIKELY": 5, 143} 144 145func (x Likelihood) String() string { 146 return proto.EnumName(Likelihood_name, int32(x)) 147} 148 149func (Likelihood) EnumDescriptor() ([]byte, []int) { 150 return fileDescriptor_84237f664d80452c, []int{2} 151} 152 153// Video annotation request. 154type AnnotateVideoRequest struct { 155 // Input video location. Currently, only 156 // [Google Cloud Storage](https://cloud.google.com/storage/) URIs are 157 // supported, which must be specified in the following format: 158 // `gs://bucket-id/object-id` (other URI formats return 159 // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For 160 // more information, see [Request URIs](/storage/docs/reference-uris). A video 161 // URI may include wildcards in `object-id`, and thus identify multiple 162 // videos. Supported wildcards: '*' to match 0 or more characters; 163 // '?' to match 1 character. If unset, the input video should be embedded 164 // in the request as `input_content`. If set, `input_content` should be unset. 165 InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` 166 // The video data bytes. 167 // If unset, the input video(s) should be specified via `input_uri`. 168 // If set, `input_uri` should be unset. 169 InputContent []byte `protobuf:"bytes,6,opt,name=input_content,json=inputContent,proto3" json:"input_content,omitempty"` 170 // Requested video annotation features. 171 Features []Feature `protobuf:"varint,2,rep,packed,name=features,proto3,enum=google.cloud.videointelligence.v1beta2.Feature" json:"features,omitempty"` 172 // Additional video context and/or feature-specific parameters. 173 VideoContext *VideoContext `protobuf:"bytes,3,opt,name=video_context,json=videoContext,proto3" json:"video_context,omitempty"` 174 // Optional location where the output (in JSON format) should be stored. 175 // Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) 176 // URIs are supported, which must be specified in the following format: 177 // `gs://bucket-id/object-id` (other URI formats return 178 // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For 179 // more information, see [Request URIs](/storage/docs/reference-uris). 180 OutputUri string `protobuf:"bytes,4,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"` 181 // Optional cloud region where annotation should take place. Supported cloud 182 // regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region 183 // is specified, a region will be determined based on video file location. 184 LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"` 185 XXX_NoUnkeyedLiteral struct{} `json:"-"` 186 XXX_unrecognized []byte `json:"-"` 187 XXX_sizecache int32 `json:"-"` 188} 189 190func (m *AnnotateVideoRequest) Reset() { *m = AnnotateVideoRequest{} } 191func (m *AnnotateVideoRequest) String() string { return proto.CompactTextString(m) } 192func (*AnnotateVideoRequest) ProtoMessage() {} 193func (*AnnotateVideoRequest) Descriptor() ([]byte, []int) { 194 return fileDescriptor_84237f664d80452c, []int{0} 195} 196 197func (m *AnnotateVideoRequest) XXX_Unmarshal(b []byte) error { 198 return xxx_messageInfo_AnnotateVideoRequest.Unmarshal(m, b) 199} 200func (m *AnnotateVideoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 201 return xxx_messageInfo_AnnotateVideoRequest.Marshal(b, m, deterministic) 202} 203func (m *AnnotateVideoRequest) XXX_Merge(src proto.Message) { 204 xxx_messageInfo_AnnotateVideoRequest.Merge(m, src) 205} 206func (m *AnnotateVideoRequest) XXX_Size() int { 207 return xxx_messageInfo_AnnotateVideoRequest.Size(m) 208} 209func (m *AnnotateVideoRequest) XXX_DiscardUnknown() { 210 xxx_messageInfo_AnnotateVideoRequest.DiscardUnknown(m) 211} 212 213var xxx_messageInfo_AnnotateVideoRequest proto.InternalMessageInfo 214 215func (m *AnnotateVideoRequest) GetInputUri() string { 216 if m != nil { 217 return m.InputUri 218 } 219 return "" 220} 221 222func (m *AnnotateVideoRequest) GetInputContent() []byte { 223 if m != nil { 224 return m.InputContent 225 } 226 return nil 227} 228 229func (m *AnnotateVideoRequest) GetFeatures() []Feature { 230 if m != nil { 231 return m.Features 232 } 233 return nil 234} 235 236func (m *AnnotateVideoRequest) GetVideoContext() *VideoContext { 237 if m != nil { 238 return m.VideoContext 239 } 240 return nil 241} 242 243func (m *AnnotateVideoRequest) GetOutputUri() string { 244 if m != nil { 245 return m.OutputUri 246 } 247 return "" 248} 249 250func (m *AnnotateVideoRequest) GetLocationId() string { 251 if m != nil { 252 return m.LocationId 253 } 254 return "" 255} 256 257// Video context and/or feature-specific parameters. 258type VideoContext struct { 259 // Video segments to annotate. The segments may overlap and are not required 260 // to be contiguous or span the whole video. If unspecified, each video 261 // is treated as a single segment. 262 Segments []*VideoSegment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"` 263 // Config for LABEL_DETECTION. 264 LabelDetectionConfig *LabelDetectionConfig `protobuf:"bytes,2,opt,name=label_detection_config,json=labelDetectionConfig,proto3" json:"label_detection_config,omitempty"` 265 // Config for SHOT_CHANGE_DETECTION. 266 ShotChangeDetectionConfig *ShotChangeDetectionConfig `protobuf:"bytes,3,opt,name=shot_change_detection_config,json=shotChangeDetectionConfig,proto3" json:"shot_change_detection_config,omitempty"` 267 // Config for EXPLICIT_CONTENT_DETECTION. 268 ExplicitContentDetectionConfig *ExplicitContentDetectionConfig `protobuf:"bytes,4,opt,name=explicit_content_detection_config,json=explicitContentDetectionConfig,proto3" json:"explicit_content_detection_config,omitempty"` 269 // Config for FACE_DETECTION. 270 FaceDetectionConfig *FaceDetectionConfig `protobuf:"bytes,5,opt,name=face_detection_config,json=faceDetectionConfig,proto3" json:"face_detection_config,omitempty"` 271 XXX_NoUnkeyedLiteral struct{} `json:"-"` 272 XXX_unrecognized []byte `json:"-"` 273 XXX_sizecache int32 `json:"-"` 274} 275 276func (m *VideoContext) Reset() { *m = VideoContext{} } 277func (m *VideoContext) String() string { return proto.CompactTextString(m) } 278func (*VideoContext) ProtoMessage() {} 279func (*VideoContext) Descriptor() ([]byte, []int) { 280 return fileDescriptor_84237f664d80452c, []int{1} 281} 282 283func (m *VideoContext) XXX_Unmarshal(b []byte) error { 284 return xxx_messageInfo_VideoContext.Unmarshal(m, b) 285} 286func (m *VideoContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 287 return xxx_messageInfo_VideoContext.Marshal(b, m, deterministic) 288} 289func (m *VideoContext) XXX_Merge(src proto.Message) { 290 xxx_messageInfo_VideoContext.Merge(m, src) 291} 292func (m *VideoContext) XXX_Size() int { 293 return xxx_messageInfo_VideoContext.Size(m) 294} 295func (m *VideoContext) XXX_DiscardUnknown() { 296 xxx_messageInfo_VideoContext.DiscardUnknown(m) 297} 298 299var xxx_messageInfo_VideoContext proto.InternalMessageInfo 300 301func (m *VideoContext) GetSegments() []*VideoSegment { 302 if m != nil { 303 return m.Segments 304 } 305 return nil 306} 307 308func (m *VideoContext) GetLabelDetectionConfig() *LabelDetectionConfig { 309 if m != nil { 310 return m.LabelDetectionConfig 311 } 312 return nil 313} 314 315func (m *VideoContext) GetShotChangeDetectionConfig() *ShotChangeDetectionConfig { 316 if m != nil { 317 return m.ShotChangeDetectionConfig 318 } 319 return nil 320} 321 322func (m *VideoContext) GetExplicitContentDetectionConfig() *ExplicitContentDetectionConfig { 323 if m != nil { 324 return m.ExplicitContentDetectionConfig 325 } 326 return nil 327} 328 329func (m *VideoContext) GetFaceDetectionConfig() *FaceDetectionConfig { 330 if m != nil { 331 return m.FaceDetectionConfig 332 } 333 return nil 334} 335 336// Config for LABEL_DETECTION. 337type LabelDetectionConfig struct { 338 // What labels should be detected with LABEL_DETECTION, in addition to 339 // video-level labels or segment-level labels. 340 // If unspecified, defaults to `SHOT_MODE`. 341 LabelDetectionMode LabelDetectionMode `protobuf:"varint,1,opt,name=label_detection_mode,json=labelDetectionMode,proto3,enum=google.cloud.videointelligence.v1beta2.LabelDetectionMode" json:"label_detection_mode,omitempty"` 342 // Whether the video has been shot from a stationary (i.e. non-moving) camera. 343 // When set to true, might improve detection accuracy for moving objects. 344 // Should be used with `SHOT_AND_FRAME_MODE` enabled. 345 StationaryCamera bool `protobuf:"varint,2,opt,name=stationary_camera,json=stationaryCamera,proto3" json:"stationary_camera,omitempty"` 346 // Model to use for label detection. 347 // Supported values: "builtin/stable" (the default if unset) and 348 // "builtin/latest". 349 Model string `protobuf:"bytes,3,opt,name=model,proto3" json:"model,omitempty"` 350 XXX_NoUnkeyedLiteral struct{} `json:"-"` 351 XXX_unrecognized []byte `json:"-"` 352 XXX_sizecache int32 `json:"-"` 353} 354 355func (m *LabelDetectionConfig) Reset() { *m = LabelDetectionConfig{} } 356func (m *LabelDetectionConfig) String() string { return proto.CompactTextString(m) } 357func (*LabelDetectionConfig) ProtoMessage() {} 358func (*LabelDetectionConfig) Descriptor() ([]byte, []int) { 359 return fileDescriptor_84237f664d80452c, []int{2} 360} 361 362func (m *LabelDetectionConfig) XXX_Unmarshal(b []byte) error { 363 return xxx_messageInfo_LabelDetectionConfig.Unmarshal(m, b) 364} 365func (m *LabelDetectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 366 return xxx_messageInfo_LabelDetectionConfig.Marshal(b, m, deterministic) 367} 368func (m *LabelDetectionConfig) XXX_Merge(src proto.Message) { 369 xxx_messageInfo_LabelDetectionConfig.Merge(m, src) 370} 371func (m *LabelDetectionConfig) XXX_Size() int { 372 return xxx_messageInfo_LabelDetectionConfig.Size(m) 373} 374func (m *LabelDetectionConfig) XXX_DiscardUnknown() { 375 xxx_messageInfo_LabelDetectionConfig.DiscardUnknown(m) 376} 377 378var xxx_messageInfo_LabelDetectionConfig proto.InternalMessageInfo 379 380func (m *LabelDetectionConfig) GetLabelDetectionMode() LabelDetectionMode { 381 if m != nil { 382 return m.LabelDetectionMode 383 } 384 return LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED 385} 386 387func (m *LabelDetectionConfig) GetStationaryCamera() bool { 388 if m != nil { 389 return m.StationaryCamera 390 } 391 return false 392} 393 394func (m *LabelDetectionConfig) GetModel() string { 395 if m != nil { 396 return m.Model 397 } 398 return "" 399} 400 401// Config for SHOT_CHANGE_DETECTION. 402type ShotChangeDetectionConfig struct { 403 // Model to use for shot change detection. 404 // Supported values: "builtin/stable" (the default if unset) and 405 // "builtin/latest". 406 Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` 407 XXX_NoUnkeyedLiteral struct{} `json:"-"` 408 XXX_unrecognized []byte `json:"-"` 409 XXX_sizecache int32 `json:"-"` 410} 411 412func (m *ShotChangeDetectionConfig) Reset() { *m = ShotChangeDetectionConfig{} } 413func (m *ShotChangeDetectionConfig) String() string { return proto.CompactTextString(m) } 414func (*ShotChangeDetectionConfig) ProtoMessage() {} 415func (*ShotChangeDetectionConfig) Descriptor() ([]byte, []int) { 416 return fileDescriptor_84237f664d80452c, []int{3} 417} 418 419func (m *ShotChangeDetectionConfig) XXX_Unmarshal(b []byte) error { 420 return xxx_messageInfo_ShotChangeDetectionConfig.Unmarshal(m, b) 421} 422func (m *ShotChangeDetectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 423 return xxx_messageInfo_ShotChangeDetectionConfig.Marshal(b, m, deterministic) 424} 425func (m *ShotChangeDetectionConfig) XXX_Merge(src proto.Message) { 426 xxx_messageInfo_ShotChangeDetectionConfig.Merge(m, src) 427} 428func (m *ShotChangeDetectionConfig) XXX_Size() int { 429 return xxx_messageInfo_ShotChangeDetectionConfig.Size(m) 430} 431func (m *ShotChangeDetectionConfig) XXX_DiscardUnknown() { 432 xxx_messageInfo_ShotChangeDetectionConfig.DiscardUnknown(m) 433} 434 435var xxx_messageInfo_ShotChangeDetectionConfig proto.InternalMessageInfo 436 437func (m *ShotChangeDetectionConfig) GetModel() string { 438 if m != nil { 439 return m.Model 440 } 441 return "" 442} 443 444// Config for EXPLICIT_CONTENT_DETECTION. 445type ExplicitContentDetectionConfig struct { 446 // Model to use for explicit content detection. 447 // Supported values: "builtin/stable" (the default if unset) and 448 // "builtin/latest". 449 Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` 450 XXX_NoUnkeyedLiteral struct{} `json:"-"` 451 XXX_unrecognized []byte `json:"-"` 452 XXX_sizecache int32 `json:"-"` 453} 454 455func (m *ExplicitContentDetectionConfig) Reset() { *m = ExplicitContentDetectionConfig{} } 456func (m *ExplicitContentDetectionConfig) String() string { return proto.CompactTextString(m) } 457func (*ExplicitContentDetectionConfig) ProtoMessage() {} 458func (*ExplicitContentDetectionConfig) Descriptor() ([]byte, []int) { 459 return fileDescriptor_84237f664d80452c, []int{4} 460} 461 462func (m *ExplicitContentDetectionConfig) XXX_Unmarshal(b []byte) error { 463 return xxx_messageInfo_ExplicitContentDetectionConfig.Unmarshal(m, b) 464} 465func (m *ExplicitContentDetectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 466 return xxx_messageInfo_ExplicitContentDetectionConfig.Marshal(b, m, deterministic) 467} 468func (m *ExplicitContentDetectionConfig) XXX_Merge(src proto.Message) { 469 xxx_messageInfo_ExplicitContentDetectionConfig.Merge(m, src) 470} 471func (m *ExplicitContentDetectionConfig) XXX_Size() int { 472 return xxx_messageInfo_ExplicitContentDetectionConfig.Size(m) 473} 474func (m *ExplicitContentDetectionConfig) XXX_DiscardUnknown() { 475 xxx_messageInfo_ExplicitContentDetectionConfig.DiscardUnknown(m) 476} 477 478var xxx_messageInfo_ExplicitContentDetectionConfig proto.InternalMessageInfo 479 480func (m *ExplicitContentDetectionConfig) GetModel() string { 481 if m != nil { 482 return m.Model 483 } 484 return "" 485} 486 487// Config for FACE_DETECTION. 488type FaceDetectionConfig struct { 489 // Model to use for face detection. 490 // Supported values: "builtin/stable" (the default if unset) and 491 // "builtin/latest". 492 Model string `protobuf:"bytes,1,opt,name=model,proto3" json:"model,omitempty"` 493 // Whether bounding boxes be included in the face annotation output. 494 IncludeBoundingBoxes bool `protobuf:"varint,2,opt,name=include_bounding_boxes,json=includeBoundingBoxes,proto3" json:"include_bounding_boxes,omitempty"` 495 XXX_NoUnkeyedLiteral struct{} `json:"-"` 496 XXX_unrecognized []byte `json:"-"` 497 XXX_sizecache int32 `json:"-"` 498} 499 500func (m *FaceDetectionConfig) Reset() { *m = FaceDetectionConfig{} } 501func (m *FaceDetectionConfig) String() string { return proto.CompactTextString(m) } 502func (*FaceDetectionConfig) ProtoMessage() {} 503func (*FaceDetectionConfig) Descriptor() ([]byte, []int) { 504 return fileDescriptor_84237f664d80452c, []int{5} 505} 506 507func (m *FaceDetectionConfig) XXX_Unmarshal(b []byte) error { 508 return xxx_messageInfo_FaceDetectionConfig.Unmarshal(m, b) 509} 510func (m *FaceDetectionConfig) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 511 return xxx_messageInfo_FaceDetectionConfig.Marshal(b, m, deterministic) 512} 513func (m *FaceDetectionConfig) XXX_Merge(src proto.Message) { 514 xxx_messageInfo_FaceDetectionConfig.Merge(m, src) 515} 516func (m *FaceDetectionConfig) XXX_Size() int { 517 return xxx_messageInfo_FaceDetectionConfig.Size(m) 518} 519func (m *FaceDetectionConfig) XXX_DiscardUnknown() { 520 xxx_messageInfo_FaceDetectionConfig.DiscardUnknown(m) 521} 522 523var xxx_messageInfo_FaceDetectionConfig proto.InternalMessageInfo 524 525func (m *FaceDetectionConfig) GetModel() string { 526 if m != nil { 527 return m.Model 528 } 529 return "" 530} 531 532func (m *FaceDetectionConfig) GetIncludeBoundingBoxes() bool { 533 if m != nil { 534 return m.IncludeBoundingBoxes 535 } 536 return false 537} 538 539// Video segment. 540type VideoSegment struct { 541 // Time-offset, relative to the beginning of the video, 542 // corresponding to the start of the segment (inclusive). 543 StartTimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` 544 // Time-offset, relative to the beginning of the video, 545 // corresponding to the end of the segment (inclusive). 546 EndTimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` 547 XXX_NoUnkeyedLiteral struct{} `json:"-"` 548 XXX_unrecognized []byte `json:"-"` 549 XXX_sizecache int32 `json:"-"` 550} 551 552func (m *VideoSegment) Reset() { *m = VideoSegment{} } 553func (m *VideoSegment) String() string { return proto.CompactTextString(m) } 554func (*VideoSegment) ProtoMessage() {} 555func (*VideoSegment) Descriptor() ([]byte, []int) { 556 return fileDescriptor_84237f664d80452c, []int{6} 557} 558 559func (m *VideoSegment) XXX_Unmarshal(b []byte) error { 560 return xxx_messageInfo_VideoSegment.Unmarshal(m, b) 561} 562func (m *VideoSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 563 return xxx_messageInfo_VideoSegment.Marshal(b, m, deterministic) 564} 565func (m *VideoSegment) XXX_Merge(src proto.Message) { 566 xxx_messageInfo_VideoSegment.Merge(m, src) 567} 568func (m *VideoSegment) XXX_Size() int { 569 return xxx_messageInfo_VideoSegment.Size(m) 570} 571func (m *VideoSegment) XXX_DiscardUnknown() { 572 xxx_messageInfo_VideoSegment.DiscardUnknown(m) 573} 574 575var xxx_messageInfo_VideoSegment proto.InternalMessageInfo 576 577func (m *VideoSegment) GetStartTimeOffset() *duration.Duration { 578 if m != nil { 579 return m.StartTimeOffset 580 } 581 return nil 582} 583 584func (m *VideoSegment) GetEndTimeOffset() *duration.Duration { 585 if m != nil { 586 return m.EndTimeOffset 587 } 588 return nil 589} 590 591// Video segment level annotation results for label detection. 592type LabelSegment struct { 593 // Video segment where a label was detected. 594 Segment *VideoSegment `protobuf:"bytes,1,opt,name=segment,proto3" json:"segment,omitempty"` 595 // Confidence that the label is accurate. Range: [0, 1]. 596 Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` 597 XXX_NoUnkeyedLiteral struct{} `json:"-"` 598 XXX_unrecognized []byte `json:"-"` 599 XXX_sizecache int32 `json:"-"` 600} 601 602func (m *LabelSegment) Reset() { *m = LabelSegment{} } 603func (m *LabelSegment) String() string { return proto.CompactTextString(m) } 604func (*LabelSegment) ProtoMessage() {} 605func (*LabelSegment) Descriptor() ([]byte, []int) { 606 return fileDescriptor_84237f664d80452c, []int{7} 607} 608 609func (m *LabelSegment) XXX_Unmarshal(b []byte) error { 610 return xxx_messageInfo_LabelSegment.Unmarshal(m, b) 611} 612func (m *LabelSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 613 return xxx_messageInfo_LabelSegment.Marshal(b, m, deterministic) 614} 615func (m *LabelSegment) XXX_Merge(src proto.Message) { 616 xxx_messageInfo_LabelSegment.Merge(m, src) 617} 618func (m *LabelSegment) XXX_Size() int { 619 return xxx_messageInfo_LabelSegment.Size(m) 620} 621func (m *LabelSegment) XXX_DiscardUnknown() { 622 xxx_messageInfo_LabelSegment.DiscardUnknown(m) 623} 624 625var xxx_messageInfo_LabelSegment proto.InternalMessageInfo 626 627func (m *LabelSegment) GetSegment() *VideoSegment { 628 if m != nil { 629 return m.Segment 630 } 631 return nil 632} 633 634func (m *LabelSegment) GetConfidence() float32 { 635 if m != nil { 636 return m.Confidence 637 } 638 return 0 639} 640 641// Video frame level annotation results for label detection. 642type LabelFrame struct { 643 // Time-offset, relative to the beginning of the video, corresponding to the 644 // video frame for this location. 645 TimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` 646 // Confidence that the label is accurate. Range: [0, 1]. 647 Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` 648 XXX_NoUnkeyedLiteral struct{} `json:"-"` 649 XXX_unrecognized []byte `json:"-"` 650 XXX_sizecache int32 `json:"-"` 651} 652 653func (m *LabelFrame) Reset() { *m = LabelFrame{} } 654func (m *LabelFrame) String() string { return proto.CompactTextString(m) } 655func (*LabelFrame) ProtoMessage() {} 656func (*LabelFrame) Descriptor() ([]byte, []int) { 657 return fileDescriptor_84237f664d80452c, []int{8} 658} 659 660func (m *LabelFrame) XXX_Unmarshal(b []byte) error { 661 return xxx_messageInfo_LabelFrame.Unmarshal(m, b) 662} 663func (m *LabelFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 664 return xxx_messageInfo_LabelFrame.Marshal(b, m, deterministic) 665} 666func (m *LabelFrame) XXX_Merge(src proto.Message) { 667 xxx_messageInfo_LabelFrame.Merge(m, src) 668} 669func (m *LabelFrame) XXX_Size() int { 670 return xxx_messageInfo_LabelFrame.Size(m) 671} 672func (m *LabelFrame) XXX_DiscardUnknown() { 673 xxx_messageInfo_LabelFrame.DiscardUnknown(m) 674} 675 676var xxx_messageInfo_LabelFrame proto.InternalMessageInfo 677 678func (m *LabelFrame) GetTimeOffset() *duration.Duration { 679 if m != nil { 680 return m.TimeOffset 681 } 682 return nil 683} 684 685func (m *LabelFrame) GetConfidence() float32 { 686 if m != nil { 687 return m.Confidence 688 } 689 return 0 690} 691 692// Detected entity from video analysis. 693type Entity struct { 694 // Opaque entity ID. Some IDs may be available in 695 // [Google Knowledge Graph Search 696 // API](https://developers.google.com/knowledge-graph/). 697 EntityId string `protobuf:"bytes,1,opt,name=entity_id,json=entityId,proto3" json:"entity_id,omitempty"` 698 // Textual description, e.g. `Fixed-gear bicycle`. 699 Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"` 700 // Language code for `description` in BCP-47 format. 701 LanguageCode string `protobuf:"bytes,3,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 702 XXX_NoUnkeyedLiteral struct{} `json:"-"` 703 XXX_unrecognized []byte `json:"-"` 704 XXX_sizecache int32 `json:"-"` 705} 706 707func (m *Entity) Reset() { *m = Entity{} } 708func (m *Entity) String() string { return proto.CompactTextString(m) } 709func (*Entity) ProtoMessage() {} 710func (*Entity) Descriptor() ([]byte, []int) { 711 return fileDescriptor_84237f664d80452c, []int{9} 712} 713 714func (m *Entity) XXX_Unmarshal(b []byte) error { 715 return xxx_messageInfo_Entity.Unmarshal(m, b) 716} 717func (m *Entity) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 718 return xxx_messageInfo_Entity.Marshal(b, m, deterministic) 719} 720func (m *Entity) XXX_Merge(src proto.Message) { 721 xxx_messageInfo_Entity.Merge(m, src) 722} 723func (m *Entity) XXX_Size() int { 724 return xxx_messageInfo_Entity.Size(m) 725} 726func (m *Entity) XXX_DiscardUnknown() { 727 xxx_messageInfo_Entity.DiscardUnknown(m) 728} 729 730var xxx_messageInfo_Entity proto.InternalMessageInfo 731 732func (m *Entity) GetEntityId() string { 733 if m != nil { 734 return m.EntityId 735 } 736 return "" 737} 738 739func (m *Entity) GetDescription() string { 740 if m != nil { 741 return m.Description 742 } 743 return "" 744} 745 746func (m *Entity) GetLanguageCode() string { 747 if m != nil { 748 return m.LanguageCode 749 } 750 return "" 751} 752 753// Label annotation. 754type LabelAnnotation struct { 755 // Detected entity. 756 Entity *Entity `protobuf:"bytes,1,opt,name=entity,proto3" json:"entity,omitempty"` 757 // Common categories for the detected entity. 758 // E.g. when the label is `Terrier` the category is likely `dog`. And in some 759 // cases there might be more than one categories e.g. `Terrier` could also be 760 // a `pet`. 761 CategoryEntities []*Entity `protobuf:"bytes,2,rep,name=category_entities,json=categoryEntities,proto3" json:"category_entities,omitempty"` 762 // All video segments where a label was detected. 763 Segments []*LabelSegment `protobuf:"bytes,3,rep,name=segments,proto3" json:"segments,omitempty"` 764 // All video frames where a label was detected. 765 Frames []*LabelFrame `protobuf:"bytes,4,rep,name=frames,proto3" json:"frames,omitempty"` 766 XXX_NoUnkeyedLiteral struct{} `json:"-"` 767 XXX_unrecognized []byte `json:"-"` 768 XXX_sizecache int32 `json:"-"` 769} 770 771func (m *LabelAnnotation) Reset() { *m = LabelAnnotation{} } 772func (m *LabelAnnotation) String() string { return proto.CompactTextString(m) } 773func (*LabelAnnotation) ProtoMessage() {} 774func (*LabelAnnotation) Descriptor() ([]byte, []int) { 775 return fileDescriptor_84237f664d80452c, []int{10} 776} 777 778func (m *LabelAnnotation) XXX_Unmarshal(b []byte) error { 779 return xxx_messageInfo_LabelAnnotation.Unmarshal(m, b) 780} 781func (m *LabelAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 782 return xxx_messageInfo_LabelAnnotation.Marshal(b, m, deterministic) 783} 784func (m *LabelAnnotation) XXX_Merge(src proto.Message) { 785 xxx_messageInfo_LabelAnnotation.Merge(m, src) 786} 787func (m *LabelAnnotation) XXX_Size() int { 788 return xxx_messageInfo_LabelAnnotation.Size(m) 789} 790func (m *LabelAnnotation) XXX_DiscardUnknown() { 791 xxx_messageInfo_LabelAnnotation.DiscardUnknown(m) 792} 793 794var xxx_messageInfo_LabelAnnotation proto.InternalMessageInfo 795 796func (m *LabelAnnotation) GetEntity() *Entity { 797 if m != nil { 798 return m.Entity 799 } 800 return nil 801} 802 803func (m *LabelAnnotation) GetCategoryEntities() []*Entity { 804 if m != nil { 805 return m.CategoryEntities 806 } 807 return nil 808} 809 810func (m *LabelAnnotation) GetSegments() []*LabelSegment { 811 if m != nil { 812 return m.Segments 813 } 814 return nil 815} 816 817func (m *LabelAnnotation) GetFrames() []*LabelFrame { 818 if m != nil { 819 return m.Frames 820 } 821 return nil 822} 823 824// Video frame level annotation results for explicit content. 825type ExplicitContentFrame struct { 826 // Time-offset, relative to the beginning of the video, corresponding to the 827 // video frame for this location. 828 TimeOffset *duration.Duration `protobuf:"bytes,1,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` 829 // Likelihood of the pornography content.. 830 PornographyLikelihood Likelihood `protobuf:"varint,2,opt,name=pornography_likelihood,json=pornographyLikelihood,proto3,enum=google.cloud.videointelligence.v1beta2.Likelihood" json:"pornography_likelihood,omitempty"` 831 XXX_NoUnkeyedLiteral struct{} `json:"-"` 832 XXX_unrecognized []byte `json:"-"` 833 XXX_sizecache int32 `json:"-"` 834} 835 836func (m *ExplicitContentFrame) Reset() { *m = ExplicitContentFrame{} } 837func (m *ExplicitContentFrame) String() string { return proto.CompactTextString(m) } 838func (*ExplicitContentFrame) ProtoMessage() {} 839func (*ExplicitContentFrame) Descriptor() ([]byte, []int) { 840 return fileDescriptor_84237f664d80452c, []int{11} 841} 842 843func (m *ExplicitContentFrame) XXX_Unmarshal(b []byte) error { 844 return xxx_messageInfo_ExplicitContentFrame.Unmarshal(m, b) 845} 846func (m *ExplicitContentFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 847 return xxx_messageInfo_ExplicitContentFrame.Marshal(b, m, deterministic) 848} 849func (m *ExplicitContentFrame) XXX_Merge(src proto.Message) { 850 xxx_messageInfo_ExplicitContentFrame.Merge(m, src) 851} 852func (m *ExplicitContentFrame) XXX_Size() int { 853 return xxx_messageInfo_ExplicitContentFrame.Size(m) 854} 855func (m *ExplicitContentFrame) XXX_DiscardUnknown() { 856 xxx_messageInfo_ExplicitContentFrame.DiscardUnknown(m) 857} 858 859var xxx_messageInfo_ExplicitContentFrame proto.InternalMessageInfo 860 861func (m *ExplicitContentFrame) GetTimeOffset() *duration.Duration { 862 if m != nil { 863 return m.TimeOffset 864 } 865 return nil 866} 867 868func (m *ExplicitContentFrame) GetPornographyLikelihood() Likelihood { 869 if m != nil { 870 return m.PornographyLikelihood 871 } 872 return Likelihood_LIKELIHOOD_UNSPECIFIED 873} 874 875// Explicit content annotation (based on per-frame visual signals only). 876// If no explicit content has been detected in a frame, no annotations are 877// present for that frame. 878type ExplicitContentAnnotation struct { 879 // All video frames where explicit content was detected. 880 Frames []*ExplicitContentFrame `protobuf:"bytes,1,rep,name=frames,proto3" json:"frames,omitempty"` 881 XXX_NoUnkeyedLiteral struct{} `json:"-"` 882 XXX_unrecognized []byte `json:"-"` 883 XXX_sizecache int32 `json:"-"` 884} 885 886func (m *ExplicitContentAnnotation) Reset() { *m = ExplicitContentAnnotation{} } 887func (m *ExplicitContentAnnotation) String() string { return proto.CompactTextString(m) } 888func (*ExplicitContentAnnotation) ProtoMessage() {} 889func (*ExplicitContentAnnotation) Descriptor() ([]byte, []int) { 890 return fileDescriptor_84237f664d80452c, []int{12} 891} 892 893func (m *ExplicitContentAnnotation) XXX_Unmarshal(b []byte) error { 894 return xxx_messageInfo_ExplicitContentAnnotation.Unmarshal(m, b) 895} 896func (m *ExplicitContentAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 897 return xxx_messageInfo_ExplicitContentAnnotation.Marshal(b, m, deterministic) 898} 899func (m *ExplicitContentAnnotation) XXX_Merge(src proto.Message) { 900 xxx_messageInfo_ExplicitContentAnnotation.Merge(m, src) 901} 902func (m *ExplicitContentAnnotation) XXX_Size() int { 903 return xxx_messageInfo_ExplicitContentAnnotation.Size(m) 904} 905func (m *ExplicitContentAnnotation) XXX_DiscardUnknown() { 906 xxx_messageInfo_ExplicitContentAnnotation.DiscardUnknown(m) 907} 908 909var xxx_messageInfo_ExplicitContentAnnotation proto.InternalMessageInfo 910 911func (m *ExplicitContentAnnotation) GetFrames() []*ExplicitContentFrame { 912 if m != nil { 913 return m.Frames 914 } 915 return nil 916} 917 918// Normalized bounding box. 919// The normalized vertex coordinates are relative to the original image. 920// Range: [0, 1]. 921type NormalizedBoundingBox struct { 922 // Left X coordinate. 923 Left float32 `protobuf:"fixed32,1,opt,name=left,proto3" json:"left,omitempty"` 924 // Top Y coordinate. 925 Top float32 `protobuf:"fixed32,2,opt,name=top,proto3" json:"top,omitempty"` 926 // Right X coordinate. 927 Right float32 `protobuf:"fixed32,3,opt,name=right,proto3" json:"right,omitempty"` 928 // Bottom Y coordinate. 929 Bottom float32 `protobuf:"fixed32,4,opt,name=bottom,proto3" json:"bottom,omitempty"` 930 XXX_NoUnkeyedLiteral struct{} `json:"-"` 931 XXX_unrecognized []byte `json:"-"` 932 XXX_sizecache int32 `json:"-"` 933} 934 935func (m *NormalizedBoundingBox) Reset() { *m = NormalizedBoundingBox{} } 936func (m *NormalizedBoundingBox) String() string { return proto.CompactTextString(m) } 937func (*NormalizedBoundingBox) ProtoMessage() {} 938func (*NormalizedBoundingBox) Descriptor() ([]byte, []int) { 939 return fileDescriptor_84237f664d80452c, []int{13} 940} 941 942func (m *NormalizedBoundingBox) XXX_Unmarshal(b []byte) error { 943 return xxx_messageInfo_NormalizedBoundingBox.Unmarshal(m, b) 944} 945func (m *NormalizedBoundingBox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 946 return xxx_messageInfo_NormalizedBoundingBox.Marshal(b, m, deterministic) 947} 948func (m *NormalizedBoundingBox) XXX_Merge(src proto.Message) { 949 xxx_messageInfo_NormalizedBoundingBox.Merge(m, src) 950} 951func (m *NormalizedBoundingBox) XXX_Size() int { 952 return xxx_messageInfo_NormalizedBoundingBox.Size(m) 953} 954func (m *NormalizedBoundingBox) XXX_DiscardUnknown() { 955 xxx_messageInfo_NormalizedBoundingBox.DiscardUnknown(m) 956} 957 958var xxx_messageInfo_NormalizedBoundingBox proto.InternalMessageInfo 959 960func (m *NormalizedBoundingBox) GetLeft() float32 { 961 if m != nil { 962 return m.Left 963 } 964 return 0 965} 966 967func (m *NormalizedBoundingBox) GetTop() float32 { 968 if m != nil { 969 return m.Top 970 } 971 return 0 972} 973 974func (m *NormalizedBoundingBox) GetRight() float32 { 975 if m != nil { 976 return m.Right 977 } 978 return 0 979} 980 981func (m *NormalizedBoundingBox) GetBottom() float32 { 982 if m != nil { 983 return m.Bottom 984 } 985 return 0 986} 987 988// Video segment level annotation results for face detection. 989type FaceSegment struct { 990 // Video segment where a face was detected. 991 Segment *VideoSegment `protobuf:"bytes,1,opt,name=segment,proto3" json:"segment,omitempty"` 992 XXX_NoUnkeyedLiteral struct{} `json:"-"` 993 XXX_unrecognized []byte `json:"-"` 994 XXX_sizecache int32 `json:"-"` 995} 996 997func (m *FaceSegment) Reset() { *m = FaceSegment{} } 998func (m *FaceSegment) String() string { return proto.CompactTextString(m) } 999func (*FaceSegment) ProtoMessage() {} 1000func (*FaceSegment) Descriptor() ([]byte, []int) { 1001 return fileDescriptor_84237f664d80452c, []int{14} 1002} 1003 1004func (m *FaceSegment) XXX_Unmarshal(b []byte) error { 1005 return xxx_messageInfo_FaceSegment.Unmarshal(m, b) 1006} 1007func (m *FaceSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1008 return xxx_messageInfo_FaceSegment.Marshal(b, m, deterministic) 1009} 1010func (m *FaceSegment) XXX_Merge(src proto.Message) { 1011 xxx_messageInfo_FaceSegment.Merge(m, src) 1012} 1013func (m *FaceSegment) XXX_Size() int { 1014 return xxx_messageInfo_FaceSegment.Size(m) 1015} 1016func (m *FaceSegment) XXX_DiscardUnknown() { 1017 xxx_messageInfo_FaceSegment.DiscardUnknown(m) 1018} 1019 1020var xxx_messageInfo_FaceSegment proto.InternalMessageInfo 1021 1022func (m *FaceSegment) GetSegment() *VideoSegment { 1023 if m != nil { 1024 return m.Segment 1025 } 1026 return nil 1027} 1028 1029// Video frame level annotation results for face detection. 1030type FaceFrame struct { 1031 // Normalized Bounding boxes in a frame. 1032 // There can be more than one boxes if the same face is detected in multiple 1033 // locations within the current frame. 1034 NormalizedBoundingBoxes []*NormalizedBoundingBox `protobuf:"bytes,1,rep,name=normalized_bounding_boxes,json=normalizedBoundingBoxes,proto3" json:"normalized_bounding_boxes,omitempty"` 1035 // Time-offset, relative to the beginning of the video, 1036 // corresponding to the video frame for this location. 1037 TimeOffset *duration.Duration `protobuf:"bytes,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` 1038 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1039 XXX_unrecognized []byte `json:"-"` 1040 XXX_sizecache int32 `json:"-"` 1041} 1042 1043func (m *FaceFrame) Reset() { *m = FaceFrame{} } 1044func (m *FaceFrame) String() string { return proto.CompactTextString(m) } 1045func (*FaceFrame) ProtoMessage() {} 1046func (*FaceFrame) Descriptor() ([]byte, []int) { 1047 return fileDescriptor_84237f664d80452c, []int{15} 1048} 1049 1050func (m *FaceFrame) XXX_Unmarshal(b []byte) error { 1051 return xxx_messageInfo_FaceFrame.Unmarshal(m, b) 1052} 1053func (m *FaceFrame) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1054 return xxx_messageInfo_FaceFrame.Marshal(b, m, deterministic) 1055} 1056func (m *FaceFrame) XXX_Merge(src proto.Message) { 1057 xxx_messageInfo_FaceFrame.Merge(m, src) 1058} 1059func (m *FaceFrame) XXX_Size() int { 1060 return xxx_messageInfo_FaceFrame.Size(m) 1061} 1062func (m *FaceFrame) XXX_DiscardUnknown() { 1063 xxx_messageInfo_FaceFrame.DiscardUnknown(m) 1064} 1065 1066var xxx_messageInfo_FaceFrame proto.InternalMessageInfo 1067 1068func (m *FaceFrame) GetNormalizedBoundingBoxes() []*NormalizedBoundingBox { 1069 if m != nil { 1070 return m.NormalizedBoundingBoxes 1071 } 1072 return nil 1073} 1074 1075func (m *FaceFrame) GetTimeOffset() *duration.Duration { 1076 if m != nil { 1077 return m.TimeOffset 1078 } 1079 return nil 1080} 1081 1082// Face annotation. 1083type FaceAnnotation struct { 1084 // Thumbnail of a representative face view (in JPEG format). 1085 Thumbnail []byte `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` 1086 // All video segments where a face was detected. 1087 Segments []*FaceSegment `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"` 1088 // All video frames where a face was detected. 1089 Frames []*FaceFrame `protobuf:"bytes,3,rep,name=frames,proto3" json:"frames,omitempty"` 1090 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1091 XXX_unrecognized []byte `json:"-"` 1092 XXX_sizecache int32 `json:"-"` 1093} 1094 1095func (m *FaceAnnotation) Reset() { *m = FaceAnnotation{} } 1096func (m *FaceAnnotation) String() string { return proto.CompactTextString(m) } 1097func (*FaceAnnotation) ProtoMessage() {} 1098func (*FaceAnnotation) Descriptor() ([]byte, []int) { 1099 return fileDescriptor_84237f664d80452c, []int{16} 1100} 1101 1102func (m *FaceAnnotation) XXX_Unmarshal(b []byte) error { 1103 return xxx_messageInfo_FaceAnnotation.Unmarshal(m, b) 1104} 1105func (m *FaceAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1106 return xxx_messageInfo_FaceAnnotation.Marshal(b, m, deterministic) 1107} 1108func (m *FaceAnnotation) XXX_Merge(src proto.Message) { 1109 xxx_messageInfo_FaceAnnotation.Merge(m, src) 1110} 1111func (m *FaceAnnotation) XXX_Size() int { 1112 return xxx_messageInfo_FaceAnnotation.Size(m) 1113} 1114func (m *FaceAnnotation) XXX_DiscardUnknown() { 1115 xxx_messageInfo_FaceAnnotation.DiscardUnknown(m) 1116} 1117 1118var xxx_messageInfo_FaceAnnotation proto.InternalMessageInfo 1119 1120func (m *FaceAnnotation) GetThumbnail() []byte { 1121 if m != nil { 1122 return m.Thumbnail 1123 } 1124 return nil 1125} 1126 1127func (m *FaceAnnotation) GetSegments() []*FaceSegment { 1128 if m != nil { 1129 return m.Segments 1130 } 1131 return nil 1132} 1133 1134func (m *FaceAnnotation) GetFrames() []*FaceFrame { 1135 if m != nil { 1136 return m.Frames 1137 } 1138 return nil 1139} 1140 1141// Annotation results for a single video. 1142type VideoAnnotationResults struct { 1143 // Video file location in 1144 // [Google Cloud Storage](https://cloud.google.com/storage/). 1145 InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` 1146 // Label annotations on video level or user specified segment level. 1147 // There is exactly one element for each unique label. 1148 SegmentLabelAnnotations []*LabelAnnotation `protobuf:"bytes,2,rep,name=segment_label_annotations,json=segmentLabelAnnotations,proto3" json:"segment_label_annotations,omitempty"` 1149 // Label annotations on shot level. 1150 // There is exactly one element for each unique label. 1151 ShotLabelAnnotations []*LabelAnnotation `protobuf:"bytes,3,rep,name=shot_label_annotations,json=shotLabelAnnotations,proto3" json:"shot_label_annotations,omitempty"` 1152 // Label annotations on frame level. 1153 // There is exactly one element for each unique label. 1154 FrameLabelAnnotations []*LabelAnnotation `protobuf:"bytes,4,rep,name=frame_label_annotations,json=frameLabelAnnotations,proto3" json:"frame_label_annotations,omitempty"` 1155 // Face annotations. There is exactly one element for each unique face. 1156 FaceAnnotations []*FaceAnnotation `protobuf:"bytes,5,rep,name=face_annotations,json=faceAnnotations,proto3" json:"face_annotations,omitempty"` 1157 // Shot annotations. Each shot is represented as a video segment. 1158 ShotAnnotations []*VideoSegment `protobuf:"bytes,6,rep,name=shot_annotations,json=shotAnnotations,proto3" json:"shot_annotations,omitempty"` 1159 // Explicit content annotation. 1160 ExplicitAnnotation *ExplicitContentAnnotation `protobuf:"bytes,7,opt,name=explicit_annotation,json=explicitAnnotation,proto3" json:"explicit_annotation,omitempty"` 1161 // If set, indicates an error. Note that for a single `AnnotateVideoRequest` 1162 // some videos may succeed and some may fail. 1163 Error *status.Status `protobuf:"bytes,9,opt,name=error,proto3" json:"error,omitempty"` 1164 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1165 XXX_unrecognized []byte `json:"-"` 1166 XXX_sizecache int32 `json:"-"` 1167} 1168 1169func (m *VideoAnnotationResults) Reset() { *m = VideoAnnotationResults{} } 1170func (m *VideoAnnotationResults) String() string { return proto.CompactTextString(m) } 1171func (*VideoAnnotationResults) ProtoMessage() {} 1172func (*VideoAnnotationResults) Descriptor() ([]byte, []int) { 1173 return fileDescriptor_84237f664d80452c, []int{17} 1174} 1175 1176func (m *VideoAnnotationResults) XXX_Unmarshal(b []byte) error { 1177 return xxx_messageInfo_VideoAnnotationResults.Unmarshal(m, b) 1178} 1179func (m *VideoAnnotationResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1180 return xxx_messageInfo_VideoAnnotationResults.Marshal(b, m, deterministic) 1181} 1182func (m *VideoAnnotationResults) XXX_Merge(src proto.Message) { 1183 xxx_messageInfo_VideoAnnotationResults.Merge(m, src) 1184} 1185func (m *VideoAnnotationResults) XXX_Size() int { 1186 return xxx_messageInfo_VideoAnnotationResults.Size(m) 1187} 1188func (m *VideoAnnotationResults) XXX_DiscardUnknown() { 1189 xxx_messageInfo_VideoAnnotationResults.DiscardUnknown(m) 1190} 1191 1192var xxx_messageInfo_VideoAnnotationResults proto.InternalMessageInfo 1193 1194func (m *VideoAnnotationResults) GetInputUri() string { 1195 if m != nil { 1196 return m.InputUri 1197 } 1198 return "" 1199} 1200 1201func (m *VideoAnnotationResults) GetSegmentLabelAnnotations() []*LabelAnnotation { 1202 if m != nil { 1203 return m.SegmentLabelAnnotations 1204 } 1205 return nil 1206} 1207 1208func (m *VideoAnnotationResults) GetShotLabelAnnotations() []*LabelAnnotation { 1209 if m != nil { 1210 return m.ShotLabelAnnotations 1211 } 1212 return nil 1213} 1214 1215func (m *VideoAnnotationResults) GetFrameLabelAnnotations() []*LabelAnnotation { 1216 if m != nil { 1217 return m.FrameLabelAnnotations 1218 } 1219 return nil 1220} 1221 1222func (m *VideoAnnotationResults) GetFaceAnnotations() []*FaceAnnotation { 1223 if m != nil { 1224 return m.FaceAnnotations 1225 } 1226 return nil 1227} 1228 1229func (m *VideoAnnotationResults) GetShotAnnotations() []*VideoSegment { 1230 if m != nil { 1231 return m.ShotAnnotations 1232 } 1233 return nil 1234} 1235 1236func (m *VideoAnnotationResults) GetExplicitAnnotation() *ExplicitContentAnnotation { 1237 if m != nil { 1238 return m.ExplicitAnnotation 1239 } 1240 return nil 1241} 1242 1243func (m *VideoAnnotationResults) GetError() *status.Status { 1244 if m != nil { 1245 return m.Error 1246 } 1247 return nil 1248} 1249 1250// Video annotation response. Included in the `response` 1251// field of the `Operation` returned by the `GetOperation` 1252// call of the `google::longrunning::Operations` service. 1253type AnnotateVideoResponse struct { 1254 // Annotation results for all videos specified in `AnnotateVideoRequest`. 1255 AnnotationResults []*VideoAnnotationResults `protobuf:"bytes,1,rep,name=annotation_results,json=annotationResults,proto3" json:"annotation_results,omitempty"` 1256 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1257 XXX_unrecognized []byte `json:"-"` 1258 XXX_sizecache int32 `json:"-"` 1259} 1260 1261func (m *AnnotateVideoResponse) Reset() { *m = AnnotateVideoResponse{} } 1262func (m *AnnotateVideoResponse) String() string { return proto.CompactTextString(m) } 1263func (*AnnotateVideoResponse) ProtoMessage() {} 1264func (*AnnotateVideoResponse) Descriptor() ([]byte, []int) { 1265 return fileDescriptor_84237f664d80452c, []int{18} 1266} 1267 1268func (m *AnnotateVideoResponse) XXX_Unmarshal(b []byte) error { 1269 return xxx_messageInfo_AnnotateVideoResponse.Unmarshal(m, b) 1270} 1271func (m *AnnotateVideoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1272 return xxx_messageInfo_AnnotateVideoResponse.Marshal(b, m, deterministic) 1273} 1274func (m *AnnotateVideoResponse) XXX_Merge(src proto.Message) { 1275 xxx_messageInfo_AnnotateVideoResponse.Merge(m, src) 1276} 1277func (m *AnnotateVideoResponse) XXX_Size() int { 1278 return xxx_messageInfo_AnnotateVideoResponse.Size(m) 1279} 1280func (m *AnnotateVideoResponse) XXX_DiscardUnknown() { 1281 xxx_messageInfo_AnnotateVideoResponse.DiscardUnknown(m) 1282} 1283 1284var xxx_messageInfo_AnnotateVideoResponse proto.InternalMessageInfo 1285 1286func (m *AnnotateVideoResponse) GetAnnotationResults() []*VideoAnnotationResults { 1287 if m != nil { 1288 return m.AnnotationResults 1289 } 1290 return nil 1291} 1292 1293// Annotation progress for a single video. 1294type VideoAnnotationProgress struct { 1295 // Video file location in 1296 // [Google Cloud Storage](https://cloud.google.com/storage/). 1297 InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` 1298 // Approximate percentage processed thus far. 1299 // Guaranteed to be 100 when fully processed. 1300 ProgressPercent int32 `protobuf:"varint,2,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` 1301 // Time when the request was received. 1302 StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` 1303 // Time of the most recent update. 1304 UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 1305 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1306 XXX_unrecognized []byte `json:"-"` 1307 XXX_sizecache int32 `json:"-"` 1308} 1309 1310func (m *VideoAnnotationProgress) Reset() { *m = VideoAnnotationProgress{} } 1311func (m *VideoAnnotationProgress) String() string { return proto.CompactTextString(m) } 1312func (*VideoAnnotationProgress) ProtoMessage() {} 1313func (*VideoAnnotationProgress) Descriptor() ([]byte, []int) { 1314 return fileDescriptor_84237f664d80452c, []int{19} 1315} 1316 1317func (m *VideoAnnotationProgress) XXX_Unmarshal(b []byte) error { 1318 return xxx_messageInfo_VideoAnnotationProgress.Unmarshal(m, b) 1319} 1320func (m *VideoAnnotationProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1321 return xxx_messageInfo_VideoAnnotationProgress.Marshal(b, m, deterministic) 1322} 1323func (m *VideoAnnotationProgress) XXX_Merge(src proto.Message) { 1324 xxx_messageInfo_VideoAnnotationProgress.Merge(m, src) 1325} 1326func (m *VideoAnnotationProgress) XXX_Size() int { 1327 return xxx_messageInfo_VideoAnnotationProgress.Size(m) 1328} 1329func (m *VideoAnnotationProgress) XXX_DiscardUnknown() { 1330 xxx_messageInfo_VideoAnnotationProgress.DiscardUnknown(m) 1331} 1332 1333var xxx_messageInfo_VideoAnnotationProgress proto.InternalMessageInfo 1334 1335func (m *VideoAnnotationProgress) GetInputUri() string { 1336 if m != nil { 1337 return m.InputUri 1338 } 1339 return "" 1340} 1341 1342func (m *VideoAnnotationProgress) GetProgressPercent() int32 { 1343 if m != nil { 1344 return m.ProgressPercent 1345 } 1346 return 0 1347} 1348 1349func (m *VideoAnnotationProgress) GetStartTime() *timestamp.Timestamp { 1350 if m != nil { 1351 return m.StartTime 1352 } 1353 return nil 1354} 1355 1356func (m *VideoAnnotationProgress) GetUpdateTime() *timestamp.Timestamp { 1357 if m != nil { 1358 return m.UpdateTime 1359 } 1360 return nil 1361} 1362 1363// Video annotation progress. Included in the `metadata` 1364// field of the `Operation` returned by the `GetOperation` 1365// call of the `google::longrunning::Operations` service. 1366type AnnotateVideoProgress struct { 1367 // Progress metadata for all videos specified in `AnnotateVideoRequest`. 1368 AnnotationProgress []*VideoAnnotationProgress `protobuf:"bytes,1,rep,name=annotation_progress,json=annotationProgress,proto3" json:"annotation_progress,omitempty"` 1369 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1370 XXX_unrecognized []byte `json:"-"` 1371 XXX_sizecache int32 `json:"-"` 1372} 1373 1374func (m *AnnotateVideoProgress) Reset() { *m = AnnotateVideoProgress{} } 1375func (m *AnnotateVideoProgress) String() string { return proto.CompactTextString(m) } 1376func (*AnnotateVideoProgress) ProtoMessage() {} 1377func (*AnnotateVideoProgress) Descriptor() ([]byte, []int) { 1378 return fileDescriptor_84237f664d80452c, []int{20} 1379} 1380 1381func (m *AnnotateVideoProgress) XXX_Unmarshal(b []byte) error { 1382 return xxx_messageInfo_AnnotateVideoProgress.Unmarshal(m, b) 1383} 1384func (m *AnnotateVideoProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1385 return xxx_messageInfo_AnnotateVideoProgress.Marshal(b, m, deterministic) 1386} 1387func (m *AnnotateVideoProgress) XXX_Merge(src proto.Message) { 1388 xxx_messageInfo_AnnotateVideoProgress.Merge(m, src) 1389} 1390func (m *AnnotateVideoProgress) XXX_Size() int { 1391 return xxx_messageInfo_AnnotateVideoProgress.Size(m) 1392} 1393func (m *AnnotateVideoProgress) XXX_DiscardUnknown() { 1394 xxx_messageInfo_AnnotateVideoProgress.DiscardUnknown(m) 1395} 1396 1397var xxx_messageInfo_AnnotateVideoProgress proto.InternalMessageInfo 1398 1399func (m *AnnotateVideoProgress) GetAnnotationProgress() []*VideoAnnotationProgress { 1400 if m != nil { 1401 return m.AnnotationProgress 1402 } 1403 return nil 1404} 1405 1406func init() { 1407 proto.RegisterEnum("google.cloud.videointelligence.v1beta2.Feature", Feature_name, Feature_value) 1408 proto.RegisterEnum("google.cloud.videointelligence.v1beta2.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) 1409 proto.RegisterEnum("google.cloud.videointelligence.v1beta2.Likelihood", Likelihood_name, Likelihood_value) 1410 proto.RegisterType((*AnnotateVideoRequest)(nil), "google.cloud.videointelligence.v1beta2.AnnotateVideoRequest") 1411 proto.RegisterType((*VideoContext)(nil), "google.cloud.videointelligence.v1beta2.VideoContext") 1412 proto.RegisterType((*LabelDetectionConfig)(nil), "google.cloud.videointelligence.v1beta2.LabelDetectionConfig") 1413 proto.RegisterType((*ShotChangeDetectionConfig)(nil), "google.cloud.videointelligence.v1beta2.ShotChangeDetectionConfig") 1414 proto.RegisterType((*ExplicitContentDetectionConfig)(nil), "google.cloud.videointelligence.v1beta2.ExplicitContentDetectionConfig") 1415 proto.RegisterType((*FaceDetectionConfig)(nil), "google.cloud.videointelligence.v1beta2.FaceDetectionConfig") 1416 proto.RegisterType((*VideoSegment)(nil), "google.cloud.videointelligence.v1beta2.VideoSegment") 1417 proto.RegisterType((*LabelSegment)(nil), "google.cloud.videointelligence.v1beta2.LabelSegment") 1418 proto.RegisterType((*LabelFrame)(nil), "google.cloud.videointelligence.v1beta2.LabelFrame") 1419 proto.RegisterType((*Entity)(nil), "google.cloud.videointelligence.v1beta2.Entity") 1420 proto.RegisterType((*LabelAnnotation)(nil), "google.cloud.videointelligence.v1beta2.LabelAnnotation") 1421 proto.RegisterType((*ExplicitContentFrame)(nil), "google.cloud.videointelligence.v1beta2.ExplicitContentFrame") 1422 proto.RegisterType((*ExplicitContentAnnotation)(nil), "google.cloud.videointelligence.v1beta2.ExplicitContentAnnotation") 1423 proto.RegisterType((*NormalizedBoundingBox)(nil), "google.cloud.videointelligence.v1beta2.NormalizedBoundingBox") 1424 proto.RegisterType((*FaceSegment)(nil), "google.cloud.videointelligence.v1beta2.FaceSegment") 1425 proto.RegisterType((*FaceFrame)(nil), "google.cloud.videointelligence.v1beta2.FaceFrame") 1426 proto.RegisterType((*FaceAnnotation)(nil), "google.cloud.videointelligence.v1beta2.FaceAnnotation") 1427 proto.RegisterType((*VideoAnnotationResults)(nil), "google.cloud.videointelligence.v1beta2.VideoAnnotationResults") 1428 proto.RegisterType((*AnnotateVideoResponse)(nil), "google.cloud.videointelligence.v1beta2.AnnotateVideoResponse") 1429 proto.RegisterType((*VideoAnnotationProgress)(nil), "google.cloud.videointelligence.v1beta2.VideoAnnotationProgress") 1430 proto.RegisterType((*AnnotateVideoProgress)(nil), "google.cloud.videointelligence.v1beta2.AnnotateVideoProgress") 1431} 1432 1433func init() { 1434 proto.RegisterFile("google/cloud/videointelligence/v1beta2/video_intelligence.proto", fileDescriptor_84237f664d80452c) 1435} 1436 1437var fileDescriptor_84237f664d80452c = []byte{ 1438 // 1736 bytes of a gzipped FileDescriptorProto 1439 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xb4, 0x58, 0xcd, 0x6f, 0xdb, 0xc8, 1440 0x15, 0x2f, 0x29, 0xd9, 0xb1, 0x9e, 0xbf, 0x94, 0xf1, 0x97, 0xec, 0x26, 0x5e, 0x97, 0x29, 0x16, 1441 0x5e, 0x17, 0x90, 0x10, 0xef, 0x62, 0x8b, 0x2a, 0xdb, 0x2e, 0x64, 0x99, 0xde, 0xa8, 0xeb, 0x48, 1442 0x06, 0xa5, 0xa4, 0x4d, 0x9b, 0x82, 0xa0, 0xc8, 0x11, 0x45, 0x2c, 0xc5, 0xe1, 0x92, 0xc3, 0x20, 1443 0xee, 0xa1, 0x87, 0x3d, 0x2c, 0xd0, 0x63, 0xd1, 0x4b, 0xff, 0x80, 0x9e, 0x7a, 0xe8, 0x7f, 0x50, 1444 0xa0, 0xe8, 0xa5, 0xc0, 0x5e, 0xdb, 0x4b, 0x2f, 0x3d, 0xf5, 0x54, 0xf4, 0x8f, 0x28, 0x38, 0x33, 1445 0x94, 0x28, 0x52, 0x8e, 0xa5, 0x18, 0x7b, 0xe3, 0xbc, 0x8f, 0xdf, 0xfb, 0x98, 0xf7, 0xde, 0xcc, 1446 0x10, 0x3e, 0xb5, 0x09, 0xb1, 0x5d, 0x5c, 0x33, 0x5d, 0x12, 0x59, 0xb5, 0xd7, 0x8e, 0x85, 0x89, 1447 0xe3, 0x51, 0xec, 0xba, 0x8e, 0x8d, 0x3d, 0x13, 0xd7, 0x5e, 0x3f, 0xee, 0x63, 0x6a, 0x9c, 0x72, 1448 0x8e, 0x9e, 0x66, 0x55, 0xfd, 0x80, 0x50, 0x82, 0xde, 0xe7, 0x00, 0x55, 0x06, 0x50, 0xcd, 0x01, 1449 0x54, 0x05, 0xc0, 0xc1, 0x03, 0x61, 0xc8, 0xf0, 0x9d, 0x9a, 0xe1, 0x79, 0x84, 0x1a, 0xd4, 0x21, 1450 0x5e, 0xc8, 0x51, 0x0e, 0x1e, 0x09, 0xae, 0x4b, 0x3c, 0x3b, 0x88, 0x3c, 0xcf, 0xf1, 0xec, 0x1a, 1451 0xf1, 0x71, 0x30, 0x25, 0x74, 0x28, 0x84, 0xd8, 0xaa, 0x1f, 0x0d, 0x6a, 0x56, 0xc4, 0x05, 0x04, 1452 0xff, 0xbd, 0x2c, 0x9f, 0x3a, 0x23, 0x1c, 0x52, 0x63, 0xe4, 0x0b, 0x81, 0x3d, 0x21, 0x10, 0xf8, 1453 0x66, 0x2d, 0xa4, 0x06, 0x8d, 0x04, 0xb2, 0xf2, 0x57, 0x19, 0xb6, 0x1b, 0xdc, 0x29, 0xfc, 0x22, 1454 0x0e, 0x41, 0xc3, 0x5f, 0x46, 0x38, 0xa4, 0xe8, 0xbb, 0x50, 0x72, 0x3c, 0x3f, 0xa2, 0x7a, 0x14, 1455 0x38, 0x15, 0xe9, 0x48, 0x3a, 0x2e, 0x69, 0x2b, 0x8c, 0xf0, 0x3c, 0x70, 0xd0, 0x23, 0x58, 0xe7, 1456 0x4c, 0x93, 0x78, 0x14, 0x7b, 0xb4, 0xb2, 0x7c, 0x24, 0x1d, 0xaf, 0x69, 0x6b, 0x8c, 0xd8, 0xe4, 1457 0x34, 0xf4, 0x39, 0xac, 0x0c, 0xb0, 0x41, 0xa3, 0x00, 0x87, 0x15, 0xf9, 0xa8, 0x70, 0xbc, 0x71, 1458 0x5a, 0xab, 0xce, 0x97, 0xb2, 0xea, 0x05, 0xd7, 0xd3, 0xc6, 0x00, 0xe8, 0x25, 0xac, 0xf3, 0x8d, 1459 0x60, 0x16, 0xdf, 0xd0, 0x4a, 0xe1, 0x48, 0x3a, 0x5e, 0x3d, 0xfd, 0x68, 0x5e, 0x44, 0x16, 0x5b, 1460 0x93, 0xeb, 0x6a, 0x6b, 0xaf, 0x53, 0x2b, 0xf4, 0x10, 0x80, 0x44, 0x34, 0x09, 0xb5, 0xc8, 0x42, 1461 0x2d, 0x71, 0x4a, 0x1c, 0xeb, 0x7b, 0xb0, 0xea, 0x12, 0x93, 0x65, 0x5b, 0x77, 0xac, 0xca, 0x12, 1462 0xe3, 0x43, 0x42, 0x6a, 0x59, 0xca, 0xbf, 0x8b, 0xb0, 0x96, 0x86, 0x47, 0x57, 0xb0, 0x12, 0x62, 1463 0x7b, 0x84, 0x3d, 0x1a, 0x56, 0xa4, 0xa3, 0xc2, 0xc2, 0x6e, 0x76, 0xb9, 0xb2, 0x36, 0x46, 0x41, 1464 0x01, 0xec, 0xba, 0x46, 0x1f, 0xbb, 0xba, 0x85, 0x29, 0x36, 0x99, 0x2b, 0x26, 0xf1, 0x06, 0x8e, 1465 0x5d, 0x91, 0x59, 0x1a, 0x3e, 0x99, 0x17, 0xff, 0x32, 0x46, 0x39, 0x4f, 0x40, 0x9a, 0x0c, 0x43, 1466 0xdb, 0x76, 0x67, 0x50, 0xd1, 0x57, 0x12, 0x3c, 0x08, 0x87, 0x84, 0xea, 0xe6, 0xd0, 0xf0, 0x6c, 1467 0x9c, 0x37, 0xcd, 0x77, 0xa0, 0x31, 0xaf, 0xe9, 0xee, 0x90, 0xd0, 0x26, 0x83, 0xca, 0xda, 0xdf, 1468 0x0f, 0x6f, 0x62, 0xa1, 0xdf, 0x49, 0xf0, 0x3d, 0xfc, 0xc6, 0x77, 0x1d, 0xd3, 0x19, 0x17, 0x5b, 1469 0xde, 0x93, 0x22, 0xf3, 0xe4, 0x62, 0x5e, 0x4f, 0x54, 0x01, 0x28, 0x0a, 0x35, 0xeb, 0xce, 0x21, 1470 0x7e, 0x2b, 0x1f, 0x11, 0xd8, 0x19, 0x18, 0xe6, 0x8c, 0x84, 0x2c, 0x31, 0x37, 0x9e, 0xcc, 0x5d, 1471 0xe4, 0x86, 0x99, 0x4b, 0xc5, 0xd6, 0x20, 0x4f, 0x54, 0xfe, 0x2e, 0xc1, 0xf6, 0xac, 0x8d, 0x43, 1472 0x2e, 0x6c, 0x67, 0xcb, 0x62, 0x44, 0x2c, 0xcc, 0xda, 0x75, 0xe3, 0xb4, 0xfe, 0x6e, 0x45, 0xf1, 1473 0x8c, 0x58, 0x58, 0x43, 0x6e, 0x8e, 0x86, 0x7e, 0x00, 0xf7, 0x43, 0x3e, 0xbb, 0x8c, 0xe0, 0x5a, 1474 0x37, 0x8d, 0x11, 0x0e, 0x0c, 0x56, 0x7f, 0x2b, 0x5a, 0x79, 0xc2, 0x68, 0x32, 0x3a, 0xda, 0x86, 1475 0xa5, 0xd8, 0x15, 0x97, 0x55, 0x49, 0x49, 0xe3, 0x0b, 0xe5, 0x31, 0xec, 0xdf, 0x58, 0x06, 0x13, 1476 0x15, 0x29, 0xad, 0xf2, 0x31, 0x1c, 0xbe, 0x7d, 0xbf, 0x6e, 0xd0, 0x33, 0x60, 0x6b, 0x46, 0x82, 1477 0x67, 0x0b, 0xa3, 0x8f, 0x60, 0xd7, 0xf1, 0x4c, 0x37, 0xb2, 0xb0, 0xde, 0x27, 0x91, 0x67, 0x39, 1478 0x9e, 0xad, 0xf7, 0xc9, 0x1b, 0x36, 0xb8, 0xe2, 0xf8, 0xb6, 0x05, 0xf7, 0x4c, 0x30, 0xcf, 0x62, 1479 0x9e, 0xf2, 0x07, 0x49, 0x34, 0xbe, 0x68, 0x58, 0xa4, 0xb2, 0x0c, 0x05, 0x54, 0x8f, 0xc7, 0xaf, 1480 0x4e, 0x06, 0x83, 0x10, 0x53, 0x66, 0x68, 0xf5, 0x74, 0x3f, 0xd9, 0x8c, 0x64, 0x44, 0x57, 0xcf, 1481 0xc5, 0x08, 0xd7, 0x36, 0x99, 0x4e, 0xcf, 0x19, 0xe1, 0x0e, 0xd3, 0x40, 0x0d, 0xd8, 0xc4, 0x9e, 1482 0x35, 0x05, 0x22, 0xdf, 0x06, 0xb2, 0x8e, 0x3d, 0x6b, 0x02, 0xa1, 0xfc, 0x06, 0xd6, 0xd8, 0xae, 1483 0x26, 0x9e, 0xb5, 0xe1, 0x9e, 0x18, 0x26, 0xc2, 0x9f, 0x77, 0x9b, 0x48, 0x09, 0x08, 0x3a, 0x04, 1484 0x60, 0x45, 0x6f, 0xc5, 0xb2, 0xcc, 0x3b, 0x59, 0x4b, 0x51, 0x94, 0x21, 0x00, 0xb3, 0x7f, 0x11, 1485 0x18, 0x23, 0x8c, 0xea, 0xb0, 0xba, 0x50, 0x46, 0x80, 0x4e, 0x92, 0x71, 0x9b, 0x25, 0x17, 0x96, 1486 0x55, 0x8f, 0x3a, 0xf4, 0x3a, 0x3e, 0xb1, 0x30, 0xfb, 0x8a, 0xc7, 0xb4, 0x38, 0xb1, 0x38, 0xa1, 1487 0x65, 0xa1, 0x23, 0x58, 0xb5, 0x70, 0x68, 0x06, 0x8e, 0x1f, 0x5b, 0x60, 0x38, 0x25, 0x2d, 0x4d, 1488 0x8a, 0xcf, 0x34, 0xd7, 0xf0, 0xec, 0xc8, 0xb0, 0xb1, 0x6e, 0xc6, 0x5d, 0xc4, 0x2b, 0x77, 0x2d, 1489 0x21, 0x36, 0x89, 0x85, 0x95, 0x7f, 0xca, 0xb0, 0xc9, 0x02, 0x6b, 0x8c, 0x0f, 0x72, 0x74, 0x01, 1490 0xcb, 0xdc, 0x8c, 0x08, 0xac, 0x3a, 0xf7, 0x1c, 0x62, 0x5a, 0x9a, 0xd0, 0x46, 0xbf, 0x84, 0xfb, 1491 0xa6, 0x41, 0xb1, 0x4d, 0x82, 0x6b, 0x9d, 0x91, 0x1c, 0x71, 0x70, 0x2e, 0x0e, 0x59, 0x4e, 0x80, 1492 0x54, 0x81, 0x33, 0x75, 0x26, 0x15, 0x16, 0x3b, 0x93, 0xd2, 0x85, 0x94, 0x3a, 0x93, 0x7e, 0x0a, 1493 0xcb, 0x83, 0x78, 0x77, 0xc3, 0x4a, 0x91, 0xe1, 0x9d, 0x2e, 0x84, 0xc7, 0x0a, 0x43, 0x13, 0x08, 1494 0xca, 0x5f, 0x24, 0xd8, 0xce, 0x74, 0xf9, 0xdd, 0x2b, 0xc7, 0x81, 0x5d, 0x9f, 0x04, 0x1e, 0xb1, 1495 0x03, 0xc3, 0x1f, 0x5e, 0xeb, 0xae, 0xf3, 0x05, 0x76, 0x9d, 0x21, 0x21, 0x16, 0xdb, 0xfd, 0x8d, 1496 0x05, 0x1c, 0x1e, 0x6b, 0x6a, 0x3b, 0x29, 0xc4, 0x09, 0x59, 0xf9, 0x12, 0xf6, 0x33, 0xee, 0xa7, 1497 0xea, 0xa3, 0x37, 0x4e, 0x14, 0xbf, 0x0c, 0x7c, 0xf2, 0x8e, 0xe7, 0xd4, 0x74, 0xca, 0xbe, 0x80, 1498 0x9d, 0x36, 0x09, 0x46, 0x86, 0xeb, 0xfc, 0x1a, 0x5b, 0xa9, 0xb9, 0x84, 0x10, 0x14, 0x5d, 0x3c, 1499 0xe0, 0xb9, 0x92, 0x35, 0xf6, 0x8d, 0xca, 0x50, 0xa0, 0xc4, 0x17, 0xdd, 0x13, 0x7f, 0xc6, 0x73, 1500 0x30, 0x70, 0xec, 0x21, 0xbf, 0x47, 0xc9, 0x1a, 0x5f, 0xa0, 0x5d, 0x58, 0xee, 0x13, 0x4a, 0xc9, 1501 0x88, 0x1d, 0xa9, 0xb2, 0x26, 0x56, 0xca, 0xaf, 0x60, 0x35, 0x1e, 0xa6, 0xdf, 0xd2, 0x34, 0x51, 1502 0xfe, 0x26, 0x41, 0x29, 0xc6, 0xe7, 0x7b, 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x00, 0x00, 0xff, 0xff, 1547 0xf3, 0x71, 0x6c, 0x41, 0x50, 0x15, 0x00, 0x00, 1548} 1549 1550// Reference imports to suppress errors if they are not otherwise used. 1551var _ context.Context 1552var _ grpc.ClientConn 1553 1554// This is a compile-time assertion to ensure that this generated file 1555// is compatible with the grpc package it is being compiled against. 1556const _ = grpc.SupportPackageIsVersion4 1557 1558// VideoIntelligenceServiceClient is the client API for VideoIntelligenceService service. 1559// 1560// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1561type VideoIntelligenceServiceClient interface { 1562 // Performs asynchronous video annotation. Progress and results can be 1563 // retrieved through the `google.longrunning.Operations` interface. 1564 // `Operation.metadata` contains `AnnotateVideoProgress` (progress). 1565 // `Operation.response` contains `AnnotateVideoResponse` (results). 1566 AnnotateVideo(ctx context.Context, in *AnnotateVideoRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1567} 1568 1569type videoIntelligenceServiceClient struct { 1570 cc *grpc.ClientConn 1571} 1572 1573func NewVideoIntelligenceServiceClient(cc *grpc.ClientConn) VideoIntelligenceServiceClient { 1574 return &videoIntelligenceServiceClient{cc} 1575} 1576 1577func (c *videoIntelligenceServiceClient) AnnotateVideo(ctx context.Context, in *AnnotateVideoRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1578 out := new(longrunning.Operation) 1579 err := c.cc.Invoke(ctx, "/google.cloud.videointelligence.v1beta2.VideoIntelligenceService/AnnotateVideo", in, out, opts...) 1580 if err != nil { 1581 return nil, err 1582 } 1583 return out, nil 1584} 1585 1586// VideoIntelligenceServiceServer is the server API for VideoIntelligenceService service. 1587type VideoIntelligenceServiceServer interface { 1588 // Performs asynchronous video annotation. Progress and results can be 1589 // retrieved through the `google.longrunning.Operations` interface. 1590 // `Operation.metadata` contains `AnnotateVideoProgress` (progress). 1591 // `Operation.response` contains `AnnotateVideoResponse` (results). 1592 AnnotateVideo(context.Context, *AnnotateVideoRequest) (*longrunning.Operation, error) 1593} 1594 1595// UnimplementedVideoIntelligenceServiceServer can be embedded to have forward compatible implementations. 1596type UnimplementedVideoIntelligenceServiceServer struct { 1597} 1598 1599func (*UnimplementedVideoIntelligenceServiceServer) AnnotateVideo(ctx context.Context, req *AnnotateVideoRequest) (*longrunning.Operation, error) { 1600 return nil, status1.Errorf(codes.Unimplemented, "method AnnotateVideo not implemented") 1601} 1602 1603func RegisterVideoIntelligenceServiceServer(s *grpc.Server, srv VideoIntelligenceServiceServer) { 1604 s.RegisterService(&_VideoIntelligenceService_serviceDesc, srv) 1605} 1606 1607func _VideoIntelligenceService_AnnotateVideo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1608 in := new(AnnotateVideoRequest) 1609 if err := dec(in); err != nil { 1610 return nil, err 1611 } 1612 if interceptor == nil { 1613 return srv.(VideoIntelligenceServiceServer).AnnotateVideo(ctx, in) 1614 } 1615 info := &grpc.UnaryServerInfo{ 1616 Server: srv, 1617 FullMethod: "/google.cloud.videointelligence.v1beta2.VideoIntelligenceService/AnnotateVideo", 1618 } 1619 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1620 return srv.(VideoIntelligenceServiceServer).AnnotateVideo(ctx, req.(*AnnotateVideoRequest)) 1621 } 1622 return interceptor(ctx, in, info, handler) 1623} 1624 1625var _VideoIntelligenceService_serviceDesc = grpc.ServiceDesc{ 1626 ServiceName: "google.cloud.videointelligence.v1beta2.VideoIntelligenceService", 1627 HandlerType: (*VideoIntelligenceServiceServer)(nil), 1628 Methods: []grpc.MethodDesc{ 1629 { 1630 MethodName: "AnnotateVideo", 1631 Handler: _VideoIntelligenceService_AnnotateVideo_Handler, 1632 }, 1633 }, 1634 Streams: []grpc.StreamDesc{}, 1635 Metadata: "google/cloud/videointelligence/v1beta2/video_intelligence.proto", 1636} 1637