1// Code generated by protoc-gen-go. DO NOT EDIT. 2// source: google/cloud/videointelligence/v1beta1/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 timestamp "github.com/golang/protobuf/ptypes/timestamp" 13 _ "google.golang.org/genproto/googleapis/api/annotations" 14 longrunning "google.golang.org/genproto/googleapis/longrunning" 15 status "google.golang.org/genproto/googleapis/rpc/status" 16 grpc "google.golang.org/grpc" 17) 18 19// Reference imports to suppress errors if they are not otherwise used. 20var _ = proto.Marshal 21var _ = fmt.Errorf 22var _ = math.Inf 23 24// This is a compile-time assertion to ensure that this generated file 25// is compatible with the proto package it is being compiled against. 26// A compilation error at this line likely means your copy of the 27// proto package needs to be updated. 28const _ = proto.ProtoPackageIsVersion3 // please upgrade the proto package 29 30// Video annotation feature. 31type Feature int32 32 33const ( 34 // Unspecified. 35 Feature_FEATURE_UNSPECIFIED Feature = 0 36 // Label detection. Detect objects, such as dog or flower. 37 Feature_LABEL_DETECTION Feature = 1 38 // Human face detection and tracking. 39 Feature_FACE_DETECTION Feature = 2 40 // Shot change detection. 41 Feature_SHOT_CHANGE_DETECTION Feature = 3 42 // Safe search detection. 43 Feature_SAFE_SEARCH_DETECTION Feature = 4 44) 45 46var Feature_name = map[int32]string{ 47 0: "FEATURE_UNSPECIFIED", 48 1: "LABEL_DETECTION", 49 2: "FACE_DETECTION", 50 3: "SHOT_CHANGE_DETECTION", 51 4: "SAFE_SEARCH_DETECTION", 52} 53 54var Feature_value = map[string]int32{ 55 "FEATURE_UNSPECIFIED": 0, 56 "LABEL_DETECTION": 1, 57 "FACE_DETECTION": 2, 58 "SHOT_CHANGE_DETECTION": 3, 59 "SAFE_SEARCH_DETECTION": 4, 60} 61 62func (x Feature) String() string { 63 return proto.EnumName(Feature_name, int32(x)) 64} 65 66func (Feature) EnumDescriptor() ([]byte, []int) { 67 return fileDescriptor_bda050609d2e9d85, []int{0} 68} 69 70// Label level (scope). 71type LabelLevel int32 72 73const ( 74 // Unspecified. 75 LabelLevel_LABEL_LEVEL_UNSPECIFIED LabelLevel = 0 76 // Video-level. Corresponds to the whole video. 77 LabelLevel_VIDEO_LEVEL LabelLevel = 1 78 // Segment-level. Corresponds to one of `AnnotateSpec.segments`. 79 LabelLevel_SEGMENT_LEVEL LabelLevel = 2 80 // Shot-level. Corresponds to a single shot (i.e. a series of frames 81 // without a major camera position or background change). 82 LabelLevel_SHOT_LEVEL LabelLevel = 3 83 // Frame-level. Corresponds to a single video frame. 84 LabelLevel_FRAME_LEVEL LabelLevel = 4 85) 86 87var LabelLevel_name = map[int32]string{ 88 0: "LABEL_LEVEL_UNSPECIFIED", 89 1: "VIDEO_LEVEL", 90 2: "SEGMENT_LEVEL", 91 3: "SHOT_LEVEL", 92 4: "FRAME_LEVEL", 93} 94 95var LabelLevel_value = map[string]int32{ 96 "LABEL_LEVEL_UNSPECIFIED": 0, 97 "VIDEO_LEVEL": 1, 98 "SEGMENT_LEVEL": 2, 99 "SHOT_LEVEL": 3, 100 "FRAME_LEVEL": 4, 101} 102 103func (x LabelLevel) String() string { 104 return proto.EnumName(LabelLevel_name, int32(x)) 105} 106 107func (LabelLevel) EnumDescriptor() ([]byte, []int) { 108 return fileDescriptor_bda050609d2e9d85, []int{1} 109} 110 111// Label detection mode. 112type LabelDetectionMode int32 113 114const ( 115 // Unspecified. 116 LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED LabelDetectionMode = 0 117 // Detect shot-level labels. 118 LabelDetectionMode_SHOT_MODE LabelDetectionMode = 1 119 // Detect frame-level labels. 120 LabelDetectionMode_FRAME_MODE LabelDetectionMode = 2 121 // Detect both shot-level and frame-level labels. 122 LabelDetectionMode_SHOT_AND_FRAME_MODE LabelDetectionMode = 3 123) 124 125var LabelDetectionMode_name = map[int32]string{ 126 0: "LABEL_DETECTION_MODE_UNSPECIFIED", 127 1: "SHOT_MODE", 128 2: "FRAME_MODE", 129 3: "SHOT_AND_FRAME_MODE", 130} 131 132var LabelDetectionMode_value = map[string]int32{ 133 "LABEL_DETECTION_MODE_UNSPECIFIED": 0, 134 "SHOT_MODE": 1, 135 "FRAME_MODE": 2, 136 "SHOT_AND_FRAME_MODE": 3, 137} 138 139func (x LabelDetectionMode) String() string { 140 return proto.EnumName(LabelDetectionMode_name, int32(x)) 141} 142 143func (LabelDetectionMode) EnumDescriptor() ([]byte, []int) { 144 return fileDescriptor_bda050609d2e9d85, []int{2} 145} 146 147// Bucketized representation of likelihood. 148type Likelihood int32 149 150const ( 151 // Unknown likelihood. 152 Likelihood_UNKNOWN Likelihood = 0 153 // Very unlikely. 154 Likelihood_VERY_UNLIKELY Likelihood = 1 155 // Unlikely. 156 Likelihood_UNLIKELY Likelihood = 2 157 // Possible. 158 Likelihood_POSSIBLE Likelihood = 3 159 // Likely. 160 Likelihood_LIKELY Likelihood = 4 161 // Very likely. 162 Likelihood_VERY_LIKELY Likelihood = 5 163) 164 165var Likelihood_name = map[int32]string{ 166 0: "UNKNOWN", 167 1: "VERY_UNLIKELY", 168 2: "UNLIKELY", 169 3: "POSSIBLE", 170 4: "LIKELY", 171 5: "VERY_LIKELY", 172} 173 174var Likelihood_value = map[string]int32{ 175 "UNKNOWN": 0, 176 "VERY_UNLIKELY": 1, 177 "UNLIKELY": 2, 178 "POSSIBLE": 3, 179 "LIKELY": 4, 180 "VERY_LIKELY": 5, 181} 182 183func (x Likelihood) String() string { 184 return proto.EnumName(Likelihood_name, int32(x)) 185} 186 187func (Likelihood) EnumDescriptor() ([]byte, []int) { 188 return fileDescriptor_bda050609d2e9d85, []int{3} 189} 190 191// Video annotation request. 192type AnnotateVideoRequest struct { 193 // Input video location. Currently, only 194 // [Google Cloud Storage](https://cloud.google.com/storage/) URIs are 195 // supported, which must be specified in the following format: 196 // `gs://bucket-id/object-id` (other URI formats return 197 // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For 198 // more information, see [Request URIs](/storage/docs/reference-uris). A video 199 // URI may include wildcards in `object-id`, and thus identify multiple 200 // videos. Supported wildcards: '*' to match 0 or more characters; 201 // '?' to match 1 character. If unset, the input video should be embedded 202 // in the request as `input_content`. If set, `input_content` should be unset. 203 InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` 204 // The video data bytes. Encoding: base64. If unset, the input video(s) 205 // should be specified via `input_uri`. If set, `input_uri` should be unset. 206 InputContent string `protobuf:"bytes,6,opt,name=input_content,json=inputContent,proto3" json:"input_content,omitempty"` 207 // Requested video annotation features. 208 Features []Feature `protobuf:"varint,2,rep,packed,name=features,proto3,enum=google.cloud.videointelligence.v1beta1.Feature" json:"features,omitempty"` 209 // Additional video context and/or feature-specific parameters. 210 VideoContext *VideoContext `protobuf:"bytes,3,opt,name=video_context,json=videoContext,proto3" json:"video_context,omitempty"` 211 // Optional location where the output (in JSON format) should be stored. 212 // Currently, only [Google Cloud Storage](https://cloud.google.com/storage/) 213 // URIs are supported, which must be specified in the following format: 214 // `gs://bucket-id/object-id` (other URI formats return 215 // [google.rpc.Code.INVALID_ARGUMENT][google.rpc.Code.INVALID_ARGUMENT]). For 216 // more information, see [Request URIs](/storage/docs/reference-uris). 217 OutputUri string `protobuf:"bytes,4,opt,name=output_uri,json=outputUri,proto3" json:"output_uri,omitempty"` 218 // Optional cloud region where annotation should take place. Supported cloud 219 // regions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region 220 // is specified, a region will be determined based on video file location. 221 LocationId string `protobuf:"bytes,5,opt,name=location_id,json=locationId,proto3" json:"location_id,omitempty"` 222 XXX_NoUnkeyedLiteral struct{} `json:"-"` 223 XXX_unrecognized []byte `json:"-"` 224 XXX_sizecache int32 `json:"-"` 225} 226 227func (m *AnnotateVideoRequest) Reset() { *m = AnnotateVideoRequest{} } 228func (m *AnnotateVideoRequest) String() string { return proto.CompactTextString(m) } 229func (*AnnotateVideoRequest) ProtoMessage() {} 230func (*AnnotateVideoRequest) Descriptor() ([]byte, []int) { 231 return fileDescriptor_bda050609d2e9d85, []int{0} 232} 233 234func (m *AnnotateVideoRequest) XXX_Unmarshal(b []byte) error { 235 return xxx_messageInfo_AnnotateVideoRequest.Unmarshal(m, b) 236} 237func (m *AnnotateVideoRequest) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 238 return xxx_messageInfo_AnnotateVideoRequest.Marshal(b, m, deterministic) 239} 240func (m *AnnotateVideoRequest) XXX_Merge(src proto.Message) { 241 xxx_messageInfo_AnnotateVideoRequest.Merge(m, src) 242} 243func (m *AnnotateVideoRequest) XXX_Size() int { 244 return xxx_messageInfo_AnnotateVideoRequest.Size(m) 245} 246func (m *AnnotateVideoRequest) XXX_DiscardUnknown() { 247 xxx_messageInfo_AnnotateVideoRequest.DiscardUnknown(m) 248} 249 250var xxx_messageInfo_AnnotateVideoRequest proto.InternalMessageInfo 251 252func (m *AnnotateVideoRequest) GetInputUri() string { 253 if m != nil { 254 return m.InputUri 255 } 256 return "" 257} 258 259func (m *AnnotateVideoRequest) GetInputContent() string { 260 if m != nil { 261 return m.InputContent 262 } 263 return "" 264} 265 266func (m *AnnotateVideoRequest) GetFeatures() []Feature { 267 if m != nil { 268 return m.Features 269 } 270 return nil 271} 272 273func (m *AnnotateVideoRequest) GetVideoContext() *VideoContext { 274 if m != nil { 275 return m.VideoContext 276 } 277 return nil 278} 279 280func (m *AnnotateVideoRequest) GetOutputUri() string { 281 if m != nil { 282 return m.OutputUri 283 } 284 return "" 285} 286 287func (m *AnnotateVideoRequest) GetLocationId() string { 288 if m != nil { 289 return m.LocationId 290 } 291 return "" 292} 293 294// Video context and/or feature-specific parameters. 295type VideoContext struct { 296 // Video segments to annotate. The segments may overlap and are not required 297 // to be contiguous or span the whole video. If unspecified, each video 298 // is treated as a single segment. 299 Segments []*VideoSegment `protobuf:"bytes,1,rep,name=segments,proto3" json:"segments,omitempty"` 300 // If label detection has been requested, what labels should be detected 301 // in addition to video-level labels or segment-level labels. If unspecified, 302 // defaults to `SHOT_MODE`. 303 LabelDetectionMode LabelDetectionMode `protobuf:"varint,2,opt,name=label_detection_mode,json=labelDetectionMode,proto3,enum=google.cloud.videointelligence.v1beta1.LabelDetectionMode" json:"label_detection_mode,omitempty"` 304 // Whether the video has been shot from a stationary (i.e. non-moving) camera. 305 // When set to true, might improve detection accuracy for moving objects. 306 StationaryCamera bool `protobuf:"varint,3,opt,name=stationary_camera,json=stationaryCamera,proto3" json:"stationary_camera,omitempty"` 307 // Model to use for label detection. 308 // Supported values: "latest" and "stable" (the default). 309 LabelDetectionModel string `protobuf:"bytes,4,opt,name=label_detection_model,json=labelDetectionModel,proto3" json:"label_detection_model,omitempty"` 310 // Model to use for face detection. 311 // Supported values: "latest" and "stable" (the default). 312 FaceDetectionModel string `protobuf:"bytes,5,opt,name=face_detection_model,json=faceDetectionModel,proto3" json:"face_detection_model,omitempty"` 313 // Model to use for shot change detection. 314 // Supported values: "latest" and "stable" (the default). 315 ShotChangeDetectionModel string `protobuf:"bytes,6,opt,name=shot_change_detection_model,json=shotChangeDetectionModel,proto3" json:"shot_change_detection_model,omitempty"` 316 // Model to use for safe search detection. 317 // Supported values: "latest" and "stable" (the default). 318 SafeSearchDetectionModel string `protobuf:"bytes,7,opt,name=safe_search_detection_model,json=safeSearchDetectionModel,proto3" json:"safe_search_detection_model,omitempty"` 319 XXX_NoUnkeyedLiteral struct{} `json:"-"` 320 XXX_unrecognized []byte `json:"-"` 321 XXX_sizecache int32 `json:"-"` 322} 323 324func (m *VideoContext) Reset() { *m = VideoContext{} } 325func (m *VideoContext) String() string { return proto.CompactTextString(m) } 326func (*VideoContext) ProtoMessage() {} 327func (*VideoContext) Descriptor() ([]byte, []int) { 328 return fileDescriptor_bda050609d2e9d85, []int{1} 329} 330 331func (m *VideoContext) XXX_Unmarshal(b []byte) error { 332 return xxx_messageInfo_VideoContext.Unmarshal(m, b) 333} 334func (m *VideoContext) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 335 return xxx_messageInfo_VideoContext.Marshal(b, m, deterministic) 336} 337func (m *VideoContext) XXX_Merge(src proto.Message) { 338 xxx_messageInfo_VideoContext.Merge(m, src) 339} 340func (m *VideoContext) XXX_Size() int { 341 return xxx_messageInfo_VideoContext.Size(m) 342} 343func (m *VideoContext) XXX_DiscardUnknown() { 344 xxx_messageInfo_VideoContext.DiscardUnknown(m) 345} 346 347var xxx_messageInfo_VideoContext proto.InternalMessageInfo 348 349func (m *VideoContext) GetSegments() []*VideoSegment { 350 if m != nil { 351 return m.Segments 352 } 353 return nil 354} 355 356func (m *VideoContext) GetLabelDetectionMode() LabelDetectionMode { 357 if m != nil { 358 return m.LabelDetectionMode 359 } 360 return LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED 361} 362 363func (m *VideoContext) GetStationaryCamera() bool { 364 if m != nil { 365 return m.StationaryCamera 366 } 367 return false 368} 369 370func (m *VideoContext) GetLabelDetectionModel() string { 371 if m != nil { 372 return m.LabelDetectionModel 373 } 374 return "" 375} 376 377func (m *VideoContext) GetFaceDetectionModel() string { 378 if m != nil { 379 return m.FaceDetectionModel 380 } 381 return "" 382} 383 384func (m *VideoContext) GetShotChangeDetectionModel() string { 385 if m != nil { 386 return m.ShotChangeDetectionModel 387 } 388 return "" 389} 390 391func (m *VideoContext) GetSafeSearchDetectionModel() string { 392 if m != nil { 393 return m.SafeSearchDetectionModel 394 } 395 return "" 396} 397 398// Video segment. 399type VideoSegment struct { 400 // Start offset in microseconds (inclusive). Unset means 0. 401 StartTimeOffset int64 `protobuf:"varint,1,opt,name=start_time_offset,json=startTimeOffset,proto3" json:"start_time_offset,omitempty"` 402 // End offset in microseconds (inclusive). Unset means 0. 403 EndTimeOffset int64 `protobuf:"varint,2,opt,name=end_time_offset,json=endTimeOffset,proto3" json:"end_time_offset,omitempty"` 404 XXX_NoUnkeyedLiteral struct{} `json:"-"` 405 XXX_unrecognized []byte `json:"-"` 406 XXX_sizecache int32 `json:"-"` 407} 408 409func (m *VideoSegment) Reset() { *m = VideoSegment{} } 410func (m *VideoSegment) String() string { return proto.CompactTextString(m) } 411func (*VideoSegment) ProtoMessage() {} 412func (*VideoSegment) Descriptor() ([]byte, []int) { 413 return fileDescriptor_bda050609d2e9d85, []int{2} 414} 415 416func (m *VideoSegment) XXX_Unmarshal(b []byte) error { 417 return xxx_messageInfo_VideoSegment.Unmarshal(m, b) 418} 419func (m *VideoSegment) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 420 return xxx_messageInfo_VideoSegment.Marshal(b, m, deterministic) 421} 422func (m *VideoSegment) XXX_Merge(src proto.Message) { 423 xxx_messageInfo_VideoSegment.Merge(m, src) 424} 425func (m *VideoSegment) XXX_Size() int { 426 return xxx_messageInfo_VideoSegment.Size(m) 427} 428func (m *VideoSegment) XXX_DiscardUnknown() { 429 xxx_messageInfo_VideoSegment.DiscardUnknown(m) 430} 431 432var xxx_messageInfo_VideoSegment proto.InternalMessageInfo 433 434func (m *VideoSegment) GetStartTimeOffset() int64 { 435 if m != nil { 436 return m.StartTimeOffset 437 } 438 return 0 439} 440 441func (m *VideoSegment) GetEndTimeOffset() int64 { 442 if m != nil { 443 return m.EndTimeOffset 444 } 445 return 0 446} 447 448// Label location. 449type LabelLocation struct { 450 // Video segment. Set to [-1, -1] for video-level labels. 451 // Set to [timestamp, timestamp] for frame-level labels. 452 // Otherwise, corresponds to one of `AnnotateSpec.segments` 453 // (if specified) or to shot boundaries (if requested). 454 Segment *VideoSegment `protobuf:"bytes,1,opt,name=segment,proto3" json:"segment,omitempty"` 455 // Confidence that the label is accurate. Range: [0, 1]. 456 Confidence float32 `protobuf:"fixed32,2,opt,name=confidence,proto3" json:"confidence,omitempty"` 457 // Label level. 458 Level LabelLevel `protobuf:"varint,3,opt,name=level,proto3,enum=google.cloud.videointelligence.v1beta1.LabelLevel" json:"level,omitempty"` 459 XXX_NoUnkeyedLiteral struct{} `json:"-"` 460 XXX_unrecognized []byte `json:"-"` 461 XXX_sizecache int32 `json:"-"` 462} 463 464func (m *LabelLocation) Reset() { *m = LabelLocation{} } 465func (m *LabelLocation) String() string { return proto.CompactTextString(m) } 466func (*LabelLocation) ProtoMessage() {} 467func (*LabelLocation) Descriptor() ([]byte, []int) { 468 return fileDescriptor_bda050609d2e9d85, []int{3} 469} 470 471func (m *LabelLocation) XXX_Unmarshal(b []byte) error { 472 return xxx_messageInfo_LabelLocation.Unmarshal(m, b) 473} 474func (m *LabelLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 475 return xxx_messageInfo_LabelLocation.Marshal(b, m, deterministic) 476} 477func (m *LabelLocation) XXX_Merge(src proto.Message) { 478 xxx_messageInfo_LabelLocation.Merge(m, src) 479} 480func (m *LabelLocation) XXX_Size() int { 481 return xxx_messageInfo_LabelLocation.Size(m) 482} 483func (m *LabelLocation) XXX_DiscardUnknown() { 484 xxx_messageInfo_LabelLocation.DiscardUnknown(m) 485} 486 487var xxx_messageInfo_LabelLocation proto.InternalMessageInfo 488 489func (m *LabelLocation) GetSegment() *VideoSegment { 490 if m != nil { 491 return m.Segment 492 } 493 return nil 494} 495 496func (m *LabelLocation) GetConfidence() float32 { 497 if m != nil { 498 return m.Confidence 499 } 500 return 0 501} 502 503func (m *LabelLocation) GetLevel() LabelLevel { 504 if m != nil { 505 return m.Level 506 } 507 return LabelLevel_LABEL_LEVEL_UNSPECIFIED 508} 509 510// Label annotation. 511type LabelAnnotation struct { 512 // Textual description, e.g. `Fixed-gear bicycle`. 513 Description string `protobuf:"bytes,1,opt,name=description,proto3" json:"description,omitempty"` 514 // Language code for `description` in BCP-47 format. 515 LanguageCode string `protobuf:"bytes,2,opt,name=language_code,json=languageCode,proto3" json:"language_code,omitempty"` 516 // Where the label was detected and with what confidence. 517 Locations []*LabelLocation `protobuf:"bytes,3,rep,name=locations,proto3" json:"locations,omitempty"` 518 XXX_NoUnkeyedLiteral struct{} `json:"-"` 519 XXX_unrecognized []byte `json:"-"` 520 XXX_sizecache int32 `json:"-"` 521} 522 523func (m *LabelAnnotation) Reset() { *m = LabelAnnotation{} } 524func (m *LabelAnnotation) String() string { return proto.CompactTextString(m) } 525func (*LabelAnnotation) ProtoMessage() {} 526func (*LabelAnnotation) Descriptor() ([]byte, []int) { 527 return fileDescriptor_bda050609d2e9d85, []int{4} 528} 529 530func (m *LabelAnnotation) XXX_Unmarshal(b []byte) error { 531 return xxx_messageInfo_LabelAnnotation.Unmarshal(m, b) 532} 533func (m *LabelAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 534 return xxx_messageInfo_LabelAnnotation.Marshal(b, m, deterministic) 535} 536func (m *LabelAnnotation) XXX_Merge(src proto.Message) { 537 xxx_messageInfo_LabelAnnotation.Merge(m, src) 538} 539func (m *LabelAnnotation) XXX_Size() int { 540 return xxx_messageInfo_LabelAnnotation.Size(m) 541} 542func (m *LabelAnnotation) XXX_DiscardUnknown() { 543 xxx_messageInfo_LabelAnnotation.DiscardUnknown(m) 544} 545 546var xxx_messageInfo_LabelAnnotation proto.InternalMessageInfo 547 548func (m *LabelAnnotation) GetDescription() string { 549 if m != nil { 550 return m.Description 551 } 552 return "" 553} 554 555func (m *LabelAnnotation) GetLanguageCode() string { 556 if m != nil { 557 return m.LanguageCode 558 } 559 return "" 560} 561 562func (m *LabelAnnotation) GetLocations() []*LabelLocation { 563 if m != nil { 564 return m.Locations 565 } 566 return nil 567} 568 569// Safe search annotation (based on per-frame visual signals only). 570// If no unsafe content has been detected in a frame, no annotations 571// are present for that frame. If only some types of unsafe content 572// have been detected in a frame, the likelihood is set to `UNKNOWN` 573// for all other types of unsafe content. 574type SafeSearchAnnotation struct { 575 // Likelihood of adult content. 576 Adult Likelihood `protobuf:"varint,1,opt,name=adult,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"adult,omitempty"` 577 // Likelihood that an obvious modification was made to the original 578 // version to make it appear funny or offensive. 579 Spoof Likelihood `protobuf:"varint,2,opt,name=spoof,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"spoof,omitempty"` 580 // Likelihood of medical content. 581 Medical Likelihood `protobuf:"varint,3,opt,name=medical,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"medical,omitempty"` 582 // Likelihood of violent content. 583 Violent Likelihood `protobuf:"varint,4,opt,name=violent,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"violent,omitempty"` 584 // Likelihood of racy content. 585 Racy Likelihood `protobuf:"varint,5,opt,name=racy,proto3,enum=google.cloud.videointelligence.v1beta1.Likelihood" json:"racy,omitempty"` 586 // Video time offset in microseconds. 587 TimeOffset int64 `protobuf:"varint,6,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` 588 XXX_NoUnkeyedLiteral struct{} `json:"-"` 589 XXX_unrecognized []byte `json:"-"` 590 XXX_sizecache int32 `json:"-"` 591} 592 593func (m *SafeSearchAnnotation) Reset() { *m = SafeSearchAnnotation{} } 594func (m *SafeSearchAnnotation) String() string { return proto.CompactTextString(m) } 595func (*SafeSearchAnnotation) ProtoMessage() {} 596func (*SafeSearchAnnotation) Descriptor() ([]byte, []int) { 597 return fileDescriptor_bda050609d2e9d85, []int{5} 598} 599 600func (m *SafeSearchAnnotation) XXX_Unmarshal(b []byte) error { 601 return xxx_messageInfo_SafeSearchAnnotation.Unmarshal(m, b) 602} 603func (m *SafeSearchAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 604 return xxx_messageInfo_SafeSearchAnnotation.Marshal(b, m, deterministic) 605} 606func (m *SafeSearchAnnotation) XXX_Merge(src proto.Message) { 607 xxx_messageInfo_SafeSearchAnnotation.Merge(m, src) 608} 609func (m *SafeSearchAnnotation) XXX_Size() int { 610 return xxx_messageInfo_SafeSearchAnnotation.Size(m) 611} 612func (m *SafeSearchAnnotation) XXX_DiscardUnknown() { 613 xxx_messageInfo_SafeSearchAnnotation.DiscardUnknown(m) 614} 615 616var xxx_messageInfo_SafeSearchAnnotation proto.InternalMessageInfo 617 618func (m *SafeSearchAnnotation) GetAdult() Likelihood { 619 if m != nil { 620 return m.Adult 621 } 622 return Likelihood_UNKNOWN 623} 624 625func (m *SafeSearchAnnotation) GetSpoof() Likelihood { 626 if m != nil { 627 return m.Spoof 628 } 629 return Likelihood_UNKNOWN 630} 631 632func (m *SafeSearchAnnotation) GetMedical() Likelihood { 633 if m != nil { 634 return m.Medical 635 } 636 return Likelihood_UNKNOWN 637} 638 639func (m *SafeSearchAnnotation) GetViolent() Likelihood { 640 if m != nil { 641 return m.Violent 642 } 643 return Likelihood_UNKNOWN 644} 645 646func (m *SafeSearchAnnotation) GetRacy() Likelihood { 647 if m != nil { 648 return m.Racy 649 } 650 return Likelihood_UNKNOWN 651} 652 653func (m *SafeSearchAnnotation) GetTimeOffset() int64 { 654 if m != nil { 655 return m.TimeOffset 656 } 657 return 0 658} 659 660// Bounding box. 661type BoundingBox struct { 662 // Left X coordinate. 663 Left int32 `protobuf:"varint,1,opt,name=left,proto3" json:"left,omitempty"` 664 // Right X coordinate. 665 Right int32 `protobuf:"varint,2,opt,name=right,proto3" json:"right,omitempty"` 666 // Bottom Y coordinate. 667 Bottom int32 `protobuf:"varint,3,opt,name=bottom,proto3" json:"bottom,omitempty"` 668 // Top Y coordinate. 669 Top int32 `protobuf:"varint,4,opt,name=top,proto3" json:"top,omitempty"` 670 XXX_NoUnkeyedLiteral struct{} `json:"-"` 671 XXX_unrecognized []byte `json:"-"` 672 XXX_sizecache int32 `json:"-"` 673} 674 675func (m *BoundingBox) Reset() { *m = BoundingBox{} } 676func (m *BoundingBox) String() string { return proto.CompactTextString(m) } 677func (*BoundingBox) ProtoMessage() {} 678func (*BoundingBox) Descriptor() ([]byte, []int) { 679 return fileDescriptor_bda050609d2e9d85, []int{6} 680} 681 682func (m *BoundingBox) XXX_Unmarshal(b []byte) error { 683 return xxx_messageInfo_BoundingBox.Unmarshal(m, b) 684} 685func (m *BoundingBox) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 686 return xxx_messageInfo_BoundingBox.Marshal(b, m, deterministic) 687} 688func (m *BoundingBox) XXX_Merge(src proto.Message) { 689 xxx_messageInfo_BoundingBox.Merge(m, src) 690} 691func (m *BoundingBox) XXX_Size() int { 692 return xxx_messageInfo_BoundingBox.Size(m) 693} 694func (m *BoundingBox) XXX_DiscardUnknown() { 695 xxx_messageInfo_BoundingBox.DiscardUnknown(m) 696} 697 698var xxx_messageInfo_BoundingBox proto.InternalMessageInfo 699 700func (m *BoundingBox) GetLeft() int32 { 701 if m != nil { 702 return m.Left 703 } 704 return 0 705} 706 707func (m *BoundingBox) GetRight() int32 { 708 if m != nil { 709 return m.Right 710 } 711 return 0 712} 713 714func (m *BoundingBox) GetBottom() int32 { 715 if m != nil { 716 return m.Bottom 717 } 718 return 0 719} 720 721func (m *BoundingBox) GetTop() int32 { 722 if m != nil { 723 return m.Top 724 } 725 return 0 726} 727 728// Face location. 729type FaceLocation struct { 730 // Bounding box in a frame. 731 BoundingBox *BoundingBox `protobuf:"bytes,1,opt,name=bounding_box,json=boundingBox,proto3" json:"bounding_box,omitempty"` 732 // Video time offset in microseconds. 733 TimeOffset int64 `protobuf:"varint,2,opt,name=time_offset,json=timeOffset,proto3" json:"time_offset,omitempty"` 734 XXX_NoUnkeyedLiteral struct{} `json:"-"` 735 XXX_unrecognized []byte `json:"-"` 736 XXX_sizecache int32 `json:"-"` 737} 738 739func (m *FaceLocation) Reset() { *m = FaceLocation{} } 740func (m *FaceLocation) String() string { return proto.CompactTextString(m) } 741func (*FaceLocation) ProtoMessage() {} 742func (*FaceLocation) Descriptor() ([]byte, []int) { 743 return fileDescriptor_bda050609d2e9d85, []int{7} 744} 745 746func (m *FaceLocation) XXX_Unmarshal(b []byte) error { 747 return xxx_messageInfo_FaceLocation.Unmarshal(m, b) 748} 749func (m *FaceLocation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 750 return xxx_messageInfo_FaceLocation.Marshal(b, m, deterministic) 751} 752func (m *FaceLocation) XXX_Merge(src proto.Message) { 753 xxx_messageInfo_FaceLocation.Merge(m, src) 754} 755func (m *FaceLocation) XXX_Size() int { 756 return xxx_messageInfo_FaceLocation.Size(m) 757} 758func (m *FaceLocation) XXX_DiscardUnknown() { 759 xxx_messageInfo_FaceLocation.DiscardUnknown(m) 760} 761 762var xxx_messageInfo_FaceLocation proto.InternalMessageInfo 763 764func (m *FaceLocation) GetBoundingBox() *BoundingBox { 765 if m != nil { 766 return m.BoundingBox 767 } 768 return nil 769} 770 771func (m *FaceLocation) GetTimeOffset() int64 { 772 if m != nil { 773 return m.TimeOffset 774 } 775 return 0 776} 777 778// Face annotation. 779type FaceAnnotation struct { 780 // Thumbnail of a representative face view (in JPEG format). Encoding: base64. 781 Thumbnail string `protobuf:"bytes,1,opt,name=thumbnail,proto3" json:"thumbnail,omitempty"` 782 // All locations where a face was detected. 783 // Faces are detected and tracked on a per-video basis 784 // (as opposed to across multiple videos). 785 Segments []*VideoSegment `protobuf:"bytes,2,rep,name=segments,proto3" json:"segments,omitempty"` 786 // Face locations at one frame per second. 787 Locations []*FaceLocation `protobuf:"bytes,3,rep,name=locations,proto3" json:"locations,omitempty"` 788 XXX_NoUnkeyedLiteral struct{} `json:"-"` 789 XXX_unrecognized []byte `json:"-"` 790 XXX_sizecache int32 `json:"-"` 791} 792 793func (m *FaceAnnotation) Reset() { *m = FaceAnnotation{} } 794func (m *FaceAnnotation) String() string { return proto.CompactTextString(m) } 795func (*FaceAnnotation) ProtoMessage() {} 796func (*FaceAnnotation) Descriptor() ([]byte, []int) { 797 return fileDescriptor_bda050609d2e9d85, []int{8} 798} 799 800func (m *FaceAnnotation) XXX_Unmarshal(b []byte) error { 801 return xxx_messageInfo_FaceAnnotation.Unmarshal(m, b) 802} 803func (m *FaceAnnotation) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 804 return xxx_messageInfo_FaceAnnotation.Marshal(b, m, deterministic) 805} 806func (m *FaceAnnotation) XXX_Merge(src proto.Message) { 807 xxx_messageInfo_FaceAnnotation.Merge(m, src) 808} 809func (m *FaceAnnotation) XXX_Size() int { 810 return xxx_messageInfo_FaceAnnotation.Size(m) 811} 812func (m *FaceAnnotation) XXX_DiscardUnknown() { 813 xxx_messageInfo_FaceAnnotation.DiscardUnknown(m) 814} 815 816var xxx_messageInfo_FaceAnnotation proto.InternalMessageInfo 817 818func (m *FaceAnnotation) GetThumbnail() string { 819 if m != nil { 820 return m.Thumbnail 821 } 822 return "" 823} 824 825func (m *FaceAnnotation) GetSegments() []*VideoSegment { 826 if m != nil { 827 return m.Segments 828 } 829 return nil 830} 831 832func (m *FaceAnnotation) GetLocations() []*FaceLocation { 833 if m != nil { 834 return m.Locations 835 } 836 return nil 837} 838 839// Annotation results for a single video. 840type VideoAnnotationResults struct { 841 // Video file location in 842 // [Google Cloud Storage](https://cloud.google.com/storage/). 843 InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` 844 // Label annotations. There is exactly one element for each unique label. 845 LabelAnnotations []*LabelAnnotation `protobuf:"bytes,2,rep,name=label_annotations,json=labelAnnotations,proto3" json:"label_annotations,omitempty"` 846 // Face annotations. There is exactly one element for each unique face. 847 FaceAnnotations []*FaceAnnotation `protobuf:"bytes,3,rep,name=face_annotations,json=faceAnnotations,proto3" json:"face_annotations,omitempty"` 848 // Shot annotations. Each shot is represented as a video segment. 849 ShotAnnotations []*VideoSegment `protobuf:"bytes,4,rep,name=shot_annotations,json=shotAnnotations,proto3" json:"shot_annotations,omitempty"` 850 // Safe search annotations. 851 SafeSearchAnnotations []*SafeSearchAnnotation `protobuf:"bytes,6,rep,name=safe_search_annotations,json=safeSearchAnnotations,proto3" json:"safe_search_annotations,omitempty"` 852 // If set, indicates an error. Note that for a single `AnnotateVideoRequest` 853 // some videos may succeed and some may fail. 854 Error *status.Status `protobuf:"bytes,5,opt,name=error,proto3" json:"error,omitempty"` 855 XXX_NoUnkeyedLiteral struct{} `json:"-"` 856 XXX_unrecognized []byte `json:"-"` 857 XXX_sizecache int32 `json:"-"` 858} 859 860func (m *VideoAnnotationResults) Reset() { *m = VideoAnnotationResults{} } 861func (m *VideoAnnotationResults) String() string { return proto.CompactTextString(m) } 862func (*VideoAnnotationResults) ProtoMessage() {} 863func (*VideoAnnotationResults) Descriptor() ([]byte, []int) { 864 return fileDescriptor_bda050609d2e9d85, []int{9} 865} 866 867func (m *VideoAnnotationResults) XXX_Unmarshal(b []byte) error { 868 return xxx_messageInfo_VideoAnnotationResults.Unmarshal(m, b) 869} 870func (m *VideoAnnotationResults) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 871 return xxx_messageInfo_VideoAnnotationResults.Marshal(b, m, deterministic) 872} 873func (m *VideoAnnotationResults) XXX_Merge(src proto.Message) { 874 xxx_messageInfo_VideoAnnotationResults.Merge(m, src) 875} 876func (m *VideoAnnotationResults) XXX_Size() int { 877 return xxx_messageInfo_VideoAnnotationResults.Size(m) 878} 879func (m *VideoAnnotationResults) XXX_DiscardUnknown() { 880 xxx_messageInfo_VideoAnnotationResults.DiscardUnknown(m) 881} 882 883var xxx_messageInfo_VideoAnnotationResults proto.InternalMessageInfo 884 885func (m *VideoAnnotationResults) GetInputUri() string { 886 if m != nil { 887 return m.InputUri 888 } 889 return "" 890} 891 892func (m *VideoAnnotationResults) GetLabelAnnotations() []*LabelAnnotation { 893 if m != nil { 894 return m.LabelAnnotations 895 } 896 return nil 897} 898 899func (m *VideoAnnotationResults) GetFaceAnnotations() []*FaceAnnotation { 900 if m != nil { 901 return m.FaceAnnotations 902 } 903 return nil 904} 905 906func (m *VideoAnnotationResults) GetShotAnnotations() []*VideoSegment { 907 if m != nil { 908 return m.ShotAnnotations 909 } 910 return nil 911} 912 913func (m *VideoAnnotationResults) GetSafeSearchAnnotations() []*SafeSearchAnnotation { 914 if m != nil { 915 return m.SafeSearchAnnotations 916 } 917 return nil 918} 919 920func (m *VideoAnnotationResults) GetError() *status.Status { 921 if m != nil { 922 return m.Error 923 } 924 return nil 925} 926 927// Video annotation response. Included in the `response` 928// field of the `Operation` returned by the `GetOperation` 929// call of the `google::longrunning::Operations` service. 930type AnnotateVideoResponse struct { 931 // Annotation results for all videos specified in `AnnotateVideoRequest`. 932 AnnotationResults []*VideoAnnotationResults `protobuf:"bytes,1,rep,name=annotation_results,json=annotationResults,proto3" json:"annotation_results,omitempty"` 933 XXX_NoUnkeyedLiteral struct{} `json:"-"` 934 XXX_unrecognized []byte `json:"-"` 935 XXX_sizecache int32 `json:"-"` 936} 937 938func (m *AnnotateVideoResponse) Reset() { *m = AnnotateVideoResponse{} } 939func (m *AnnotateVideoResponse) String() string { return proto.CompactTextString(m) } 940func (*AnnotateVideoResponse) ProtoMessage() {} 941func (*AnnotateVideoResponse) Descriptor() ([]byte, []int) { 942 return fileDescriptor_bda050609d2e9d85, []int{10} 943} 944 945func (m *AnnotateVideoResponse) XXX_Unmarshal(b []byte) error { 946 return xxx_messageInfo_AnnotateVideoResponse.Unmarshal(m, b) 947} 948func (m *AnnotateVideoResponse) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 949 return xxx_messageInfo_AnnotateVideoResponse.Marshal(b, m, deterministic) 950} 951func (m *AnnotateVideoResponse) XXX_Merge(src proto.Message) { 952 xxx_messageInfo_AnnotateVideoResponse.Merge(m, src) 953} 954func (m *AnnotateVideoResponse) XXX_Size() int { 955 return xxx_messageInfo_AnnotateVideoResponse.Size(m) 956} 957func (m *AnnotateVideoResponse) XXX_DiscardUnknown() { 958 xxx_messageInfo_AnnotateVideoResponse.DiscardUnknown(m) 959} 960 961var xxx_messageInfo_AnnotateVideoResponse proto.InternalMessageInfo 962 963func (m *AnnotateVideoResponse) GetAnnotationResults() []*VideoAnnotationResults { 964 if m != nil { 965 return m.AnnotationResults 966 } 967 return nil 968} 969 970// Annotation progress for a single video. 971type VideoAnnotationProgress struct { 972 // Video file location in 973 // [Google Cloud Storage](https://cloud.google.com/storage/). 974 InputUri string `protobuf:"bytes,1,opt,name=input_uri,json=inputUri,proto3" json:"input_uri,omitempty"` 975 // Approximate percentage processed thus far. 976 // Guaranteed to be 100 when fully processed. 977 ProgressPercent int32 `protobuf:"varint,2,opt,name=progress_percent,json=progressPercent,proto3" json:"progress_percent,omitempty"` 978 // Time when the request was received. 979 StartTime *timestamp.Timestamp `protobuf:"bytes,3,opt,name=start_time,json=startTime,proto3" json:"start_time,omitempty"` 980 // Time of the most recent update. 981 UpdateTime *timestamp.Timestamp `protobuf:"bytes,4,opt,name=update_time,json=updateTime,proto3" json:"update_time,omitempty"` 982 XXX_NoUnkeyedLiteral struct{} `json:"-"` 983 XXX_unrecognized []byte `json:"-"` 984 XXX_sizecache int32 `json:"-"` 985} 986 987func (m *VideoAnnotationProgress) Reset() { *m = VideoAnnotationProgress{} } 988func (m *VideoAnnotationProgress) String() string { return proto.CompactTextString(m) } 989func (*VideoAnnotationProgress) ProtoMessage() {} 990func (*VideoAnnotationProgress) Descriptor() ([]byte, []int) { 991 return fileDescriptor_bda050609d2e9d85, []int{11} 992} 993 994func (m *VideoAnnotationProgress) XXX_Unmarshal(b []byte) error { 995 return xxx_messageInfo_VideoAnnotationProgress.Unmarshal(m, b) 996} 997func (m *VideoAnnotationProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 998 return xxx_messageInfo_VideoAnnotationProgress.Marshal(b, m, deterministic) 999} 1000func (m *VideoAnnotationProgress) XXX_Merge(src proto.Message) { 1001 xxx_messageInfo_VideoAnnotationProgress.Merge(m, src) 1002} 1003func (m *VideoAnnotationProgress) XXX_Size() int { 1004 return xxx_messageInfo_VideoAnnotationProgress.Size(m) 1005} 1006func (m *VideoAnnotationProgress) XXX_DiscardUnknown() { 1007 xxx_messageInfo_VideoAnnotationProgress.DiscardUnknown(m) 1008} 1009 1010var xxx_messageInfo_VideoAnnotationProgress proto.InternalMessageInfo 1011 1012func (m *VideoAnnotationProgress) GetInputUri() string { 1013 if m != nil { 1014 return m.InputUri 1015 } 1016 return "" 1017} 1018 1019func (m *VideoAnnotationProgress) GetProgressPercent() int32 { 1020 if m != nil { 1021 return m.ProgressPercent 1022 } 1023 return 0 1024} 1025 1026func (m *VideoAnnotationProgress) GetStartTime() *timestamp.Timestamp { 1027 if m != nil { 1028 return m.StartTime 1029 } 1030 return nil 1031} 1032 1033func (m *VideoAnnotationProgress) GetUpdateTime() *timestamp.Timestamp { 1034 if m != nil { 1035 return m.UpdateTime 1036 } 1037 return nil 1038} 1039 1040// Video annotation progress. Included in the `metadata` 1041// field of the `Operation` returned by the `GetOperation` 1042// call of the `google::longrunning::Operations` service. 1043type AnnotateVideoProgress struct { 1044 // Progress metadata for all videos specified in `AnnotateVideoRequest`. 1045 AnnotationProgress []*VideoAnnotationProgress `protobuf:"bytes,1,rep,name=annotation_progress,json=annotationProgress,proto3" json:"annotation_progress,omitempty"` 1046 XXX_NoUnkeyedLiteral struct{} `json:"-"` 1047 XXX_unrecognized []byte `json:"-"` 1048 XXX_sizecache int32 `json:"-"` 1049} 1050 1051func (m *AnnotateVideoProgress) Reset() { *m = AnnotateVideoProgress{} } 1052func (m *AnnotateVideoProgress) String() string { return proto.CompactTextString(m) } 1053func (*AnnotateVideoProgress) ProtoMessage() {} 1054func (*AnnotateVideoProgress) Descriptor() ([]byte, []int) { 1055 return fileDescriptor_bda050609d2e9d85, []int{12} 1056} 1057 1058func (m *AnnotateVideoProgress) XXX_Unmarshal(b []byte) error { 1059 return xxx_messageInfo_AnnotateVideoProgress.Unmarshal(m, b) 1060} 1061func (m *AnnotateVideoProgress) XXX_Marshal(b []byte, deterministic bool) ([]byte, error) { 1062 return xxx_messageInfo_AnnotateVideoProgress.Marshal(b, m, deterministic) 1063} 1064func (m *AnnotateVideoProgress) XXX_Merge(src proto.Message) { 1065 xxx_messageInfo_AnnotateVideoProgress.Merge(m, src) 1066} 1067func (m *AnnotateVideoProgress) XXX_Size() int { 1068 return xxx_messageInfo_AnnotateVideoProgress.Size(m) 1069} 1070func (m *AnnotateVideoProgress) XXX_DiscardUnknown() { 1071 xxx_messageInfo_AnnotateVideoProgress.DiscardUnknown(m) 1072} 1073 1074var xxx_messageInfo_AnnotateVideoProgress proto.InternalMessageInfo 1075 1076func (m *AnnotateVideoProgress) GetAnnotationProgress() []*VideoAnnotationProgress { 1077 if m != nil { 1078 return m.AnnotationProgress 1079 } 1080 return nil 1081} 1082 1083func init() { 1084 proto.RegisterEnum("google.cloud.videointelligence.v1beta1.Feature", Feature_name, Feature_value) 1085 proto.RegisterEnum("google.cloud.videointelligence.v1beta1.LabelLevel", LabelLevel_name, LabelLevel_value) 1086 proto.RegisterEnum("google.cloud.videointelligence.v1beta1.LabelDetectionMode", LabelDetectionMode_name, LabelDetectionMode_value) 1087 proto.RegisterEnum("google.cloud.videointelligence.v1beta1.Likelihood", Likelihood_name, Likelihood_value) 1088 proto.RegisterType((*AnnotateVideoRequest)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoRequest") 1089 proto.RegisterType((*VideoContext)(nil), "google.cloud.videointelligence.v1beta1.VideoContext") 1090 proto.RegisterType((*VideoSegment)(nil), "google.cloud.videointelligence.v1beta1.VideoSegment") 1091 proto.RegisterType((*LabelLocation)(nil), "google.cloud.videointelligence.v1beta1.LabelLocation") 1092 proto.RegisterType((*LabelAnnotation)(nil), "google.cloud.videointelligence.v1beta1.LabelAnnotation") 1093 proto.RegisterType((*SafeSearchAnnotation)(nil), "google.cloud.videointelligence.v1beta1.SafeSearchAnnotation") 1094 proto.RegisterType((*BoundingBox)(nil), "google.cloud.videointelligence.v1beta1.BoundingBox") 1095 proto.RegisterType((*FaceLocation)(nil), "google.cloud.videointelligence.v1beta1.FaceLocation") 1096 proto.RegisterType((*FaceAnnotation)(nil), "google.cloud.videointelligence.v1beta1.FaceAnnotation") 1097 proto.RegisterType((*VideoAnnotationResults)(nil), "google.cloud.videointelligence.v1beta1.VideoAnnotationResults") 1098 proto.RegisterType((*AnnotateVideoResponse)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoResponse") 1099 proto.RegisterType((*VideoAnnotationProgress)(nil), "google.cloud.videointelligence.v1beta1.VideoAnnotationProgress") 1100 proto.RegisterType((*AnnotateVideoProgress)(nil), "google.cloud.videointelligence.v1beta1.AnnotateVideoProgress") 1101} 1102 1103func init() { 1104 proto.RegisterFile("google/cloud/videointelligence/v1beta1/video_intelligence.proto", fileDescriptor_bda050609d2e9d85) 1105} 1106 1107var fileDescriptor_bda050609d2e9d85 = []byte{ 1108 // 1537 bytes of a gzipped FileDescriptorProto 1109 0x1f, 0x8b, 0x08, 0x00, 0x00, 0x00, 0x00, 0x00, 0x02, 0xff, 0xac, 0x58, 0xcb, 0x6f, 0x1b, 0xd5, 1110 0x1a, 0xef, 0xf8, 0x91, 0xc4, 0x9f, 0x93, 0xd8, 0x39, 0x49, 0x1a, 0xdf, 0xb4, 0xb9, 0x8d, 0xdc, 1111 0xab, 0x2a, 0xcd, 0x95, 0xec, 0x5b, 0xf7, 0x02, 0xc2, 0x05, 0x2a, 0xc7, 0x19, 0x37, 0x56, 0x1d, 1112 0x3b, 0x1a, 0x27, 0xa9, 0x8a, 0x2a, 0x8d, 0xc6, 0x33, 0xc7, 0x93, 0x11, 0xe3, 0x39, 0xc3, 0x3c, 1113 0xa2, 0x76, 0x09, 0x0b, 0x10, 0x4b, 0xc4, 0xbf, 0xc0, 0x0a, 0x09, 0xf8, 0x17, 0xd8, 0xc2, 0x16, 1114 0x36, 0xac, 0xd8, 0xb0, 0xe2, 0x9f, 0x00, 0x9d, 0xc7, 0xd8, 0x63, 0x3b, 0x50, 0x3b, 0xb0, 0xf3, 1115 0xf9, 0x1e, 0xbf, 0xef, 0x7d, 0xce, 0x37, 0x86, 0xc7, 0x26, 0x21, 0xa6, 0x8d, 0xcb, 0xba, 0x4d, 1116 0x42, 0xa3, 0x7c, 0x69, 0x19, 0x98, 0x58, 0x4e, 0x80, 0x6d, 0xdb, 0x32, 0xb1, 0xa3, 0xe3, 0xf2, 1117 0xe5, 0x83, 0x1e, 0x0e, 0xb4, 0x07, 0x9c, 0xa3, 0xc6, 0x59, 0x25, 0xd7, 0x23, 0x01, 0x41, 0xf7, 1118 0x38, 0x40, 0x89, 0x01, 0x94, 0xa6, 0x00, 0x4a, 0x02, 0x60, 0xfb, 0xb6, 0x30, 0xa4, 0xb9, 0x56, 1119 0x59, 0x73, 0x1c, 0x12, 0x68, 0x81, 0x45, 0x1c, 0x9f, 0xa3, 0x6c, 0xdf, 0x15, 0x5c, 0x9b, 0x38, 1120 0xa6, 0x17, 0x3a, 0x8e, 0xe5, 0x98, 0x65, 0xe2, 0x62, 0x6f, 0x4c, 0xe8, 0x8e, 0x10, 0x62, 0xa7, 1121 0x5e, 0xd8, 0x2f, 0x07, 0xd6, 0x00, 0xfb, 0x81, 0x36, 0x70, 0x85, 0xc0, 0x96, 0x10, 0xf0, 0x5c, 1122 0xbd, 0xec, 0x07, 0x5a, 0x10, 0x0a, 0xcd, 0xe2, 0x77, 0x09, 0xd8, 0xa8, 0x71, 0xa3, 0xf8, 0x9c, 1123 0xba, 0xa8, 0xe0, 0x0f, 0x43, 0xec, 0x07, 0xe8, 0x16, 0x64, 0x2c, 0xc7, 0x0d, 0x03, 0x35, 0xf4, 1124 0xac, 0x82, 0xb4, 0x2b, 0xed, 0x65, 0x94, 0x25, 0x46, 0x38, 0xf3, 0x2c, 0x74, 0x17, 0x56, 0x38, 1125 0x53, 0x27, 0x4e, 0x80, 0x9d, 0xa0, 0xb0, 0xc0, 0x04, 0x96, 0x19, 0xb1, 0xce, 0x69, 0xe8, 0x29, 1126 0x2c, 0xf5, 0xb1, 0x16, 0x84, 0x1e, 0xf6, 0x0b, 0x89, 0xdd, 0xe4, 0xde, 0x6a, 0xa5, 0x5c, 0x9a, 1127 0x2d, 0x25, 0xa5, 0x06, 0xd7, 0x53, 0x86, 0x00, 0xe8, 0x39, 0xac, 0xf0, 0x44, 0x33, 0x8b, 0x2f, 1128 0x83, 0x42, 0x72, 0x57, 0xda, 0xcb, 0x56, 0xfe, 0x3f, 0x2b, 0x22, 0x8b, 0xad, 0xce, 0x75, 0x95, 1129 0xe5, 0xcb, 0xd8, 0x09, 0xed, 0x00, 0x90, 0x30, 0x88, 0x42, 0x4d, 0xb1, 0x48, 0x32, 0x9c, 0x42, 1130 0x63, 0xbd, 0x03, 0x59, 0x9b, 0xe8, 0x2c, 0xdd, 0xaa, 0x65, 0x14, 0xd2, 0x8c, 0x0f, 0x11, 0xa9, 1131 0x69, 0x14, 0x7f, 0x49, 0xc2, 0x72, 0x1c, 0x1e, 0x9d, 0xc0, 0x92, 0x8f, 0xcd, 0x01, 0x76, 0x02, 1132 0xbf, 0x20, 0xed, 0x26, 0xe7, 0x76, 0xb3, 0xcb, 0x95, 0x95, 0x21, 0x0a, 0xb2, 0x61, 0xc3, 0xd6, 1133 0x7a, 0xd8, 0x56, 0x0d, 0x1c, 0x60, 0x9d, 0xb9, 0x32, 0x20, 0x06, 0x2e, 0x24, 0x76, 0xa5, 0xbd, 1134 0xd5, 0x4a, 0x75, 0x56, 0xf4, 0x16, 0xc5, 0x38, 0x8c, 0x20, 0x8e, 0x89, 0x81, 0x15, 0x64, 0x4f, 1135 0xd1, 0xd0, 0x7f, 0x61, 0xcd, 0xe7, 0x4d, 0xa8, 0x79, 0xaf, 0x54, 0x5d, 0x1b, 0x60, 0x4f, 0x63, 1136 0xf9, 0x5e, 0x52, 0xf2, 0x23, 0x46, 0x9d, 0xd1, 0x51, 0x05, 0x36, 0xaf, 0x72, 0xcd, 0x16, 0x89, 1137 0x5c, 0x9f, 0xc6, 0xb7, 0xd1, 0xff, 0x60, 0xa3, 0xaf, 0xe9, 0x78, 0x4a, 0x85, 0xe7, 0x16, 0x51, 1138 0xde, 0x84, 0xc6, 0xbb, 0x70, 0xcb, 0xbf, 0x20, 0x81, 0xaa, 0x5f, 0x68, 0x8e, 0x39, 0xad, 0xc8, 1139 0xdb, 0xaf, 0x40, 0x45, 0xea, 0x4c, 0xe2, 0x0a, 0x75, 0xad, 0x8f, 0x55, 0x1f, 0x6b, 0x9e, 0x7e, 1140 0x31, 0xa5, 0xbe, 0x28, 0xd4, 0xb5, 0x3e, 0xee, 0x32, 0x89, 0x71, 0xf5, 0x62, 0x4f, 0x14, 0x58, 1141 0x14, 0x06, 0xed, 0xb3, 0x04, 0x79, 0x81, 0x4a, 0xc7, 0x4c, 0x25, 0xfd, 0xbe, 0x8f, 0x03, 0x36, 1142 0x23, 0x49, 0x25, 0xc7, 0x18, 0xa7, 0xd6, 0x00, 0x77, 0x18, 0x19, 0xdd, 0x83, 0x1c, 0x76, 0x8c, 1143 0x31, 0xc9, 0x04, 0x93, 0x5c, 0xc1, 0x8e, 0x31, 0x92, 0x2b, 0x7e, 0x2f, 0xc1, 0x0a, 0xab, 0x4f, 1144 0x4b, 0x74, 0x16, 0x6a, 0xc3, 0xa2, 0x68, 0x00, 0x86, 0x7d, 0xdd, 0x2e, 0x8a, 0x40, 0xd0, 0xbf, 1145 0x01, 0x74, 0xe2, 0xf4, 0x2d, 0x83, 0xca, 0x32, 0x27, 0x12, 0x4a, 0x8c, 0x82, 0x8e, 0x20, 0x6d, 1146 0xe3, 0x4b, 0x6c, 0xb3, 0x52, 0xaf, 0x56, 0x2a, 0x73, 0x75, 0x55, 0x8b, 0x6a, 0x2a, 0x1c, 0xa0, 1147 0xf8, 0xb5, 0x04, 0x39, 0x46, 0xad, 0x0d, 0xaf, 0x33, 0xb4, 0x0b, 0x59, 0x03, 0xfb, 0xba, 0x67, 1148 0xb9, 0xf4, 0x28, 0x6e, 0x94, 0x38, 0x89, 0x5e, 0x2a, 0xb6, 0xe6, 0x98, 0xa1, 0x66, 0x62, 0x55, 1149 0x8f, 0xba, 0x3b, 0xa3, 0x2c, 0x47, 0xc4, 0x3a, 0xed, 0xcd, 0x2e, 0x64, 0xa2, 0xd1, 0xf3, 0x0b, 1150 0x49, 0x36, 0x5c, 0x6f, 0xcc, 0xe7, 0xa8, 0xd0, 0x56, 0x46, 0x38, 0xc5, 0x6f, 0x93, 0xb0, 0xd1, 1151 0x1d, 0x16, 0x3f, 0xe6, 0xf4, 0x11, 0xa4, 0x35, 0x23, 0xb4, 0x79, 0x01, 0xe6, 0x49, 0x89, 0xf5, 1152 0x01, 0xb6, 0xad, 0x0b, 0x42, 0x0c, 0x85, 0x03, 0x50, 0x24, 0xdf, 0x25, 0xa4, 0x2f, 0x46, 0xf6, 1153 0x5a, 0x48, 0x0c, 0x00, 0xb5, 0x60, 0x71, 0x80, 0x0d, 0x4b, 0xd7, 0xe6, 0x2f, 0xd4, 0x08, 0x2b, 1154 0x82, 0xa0, 0x68, 0x97, 0x16, 0xb1, 0x69, 0x93, 0xa5, 0xae, 0x8f, 0x26, 0x20, 0x50, 0x03, 0x52, 1155 0x9e, 0xa6, 0xbf, 0x62, 0x83, 0x7c, 0x3d, 0x28, 0xa6, 0x4f, 0xef, 0xdc, 0xf8, 0xc0, 0x2c, 0xb0, 1156 0x81, 0x81, 0x60, 0x34, 0x2d, 0x1a, 0x64, 0x0f, 0x48, 0xe8, 0x18, 0x96, 0x63, 0x1e, 0x90, 0x97, 1157 0x08, 0x41, 0xca, 0xc6, 0x7d, 0x5e, 0xa6, 0xb4, 0xc2, 0x7e, 0xa3, 0x0d, 0x48, 0x7b, 0x96, 0x79, 1158 0xc1, 0xc7, 0x2d, 0xad, 0xf0, 0x03, 0xba, 0x09, 0x0b, 0x3d, 0x12, 0x04, 0x64, 0xc0, 0x92, 0x97, 1159 0x56, 0xc4, 0x09, 0xe5, 0x21, 0x19, 0x10, 0x97, 0xe5, 0x20, 0xad, 0xd0, 0x9f, 0xc5, 0x4f, 0x25, 1160 0x58, 0x6e, 0x68, 0x3a, 0x1e, 0xce, 0xe3, 0x39, 0x2c, 0xf7, 0x84, 0x4d, 0xb5, 0x47, 0x5e, 0x8a, 1161 0xa1, 0x7c, 0x38, 0x6b, 0x90, 0x31, 0x7f, 0x95, 0x6c, 0x2f, 0xe6, 0xfc, 0x44, 0xb0, 0x89, 0xa9, 1162 0x60, 0x7f, 0x92, 0x60, 0x95, 0x7a, 0x12, 0x6b, 0xcc, 0xdb, 0x90, 0x09, 0x2e, 0xc2, 0x41, 0xcf, 1163 0xd1, 0x2c, 0x5b, 0xcc, 0xd2, 0x88, 0x30, 0xf6, 0x00, 0x25, 0xfe, 0x91, 0x07, 0x48, 0x99, 0x1e, 1164 0xbb, 0x99, 0x21, 0xe3, 0x49, 0x8c, 0x4f, 0xdd, 0xef, 0x49, 0xb8, 0xc9, 0xcc, 0x8d, 0xe2, 0x52, 1165 0xb0, 0x1f, 0xda, 0x81, 0xff, 0xd7, 0xcb, 0x87, 0x01, 0x6b, 0xfc, 0xc5, 0x89, 0x2d, 0x4b, 0x22, 1166 0xcc, 0xb7, 0xe6, 0xba, 0x0a, 0x62, 0x76, 0xf3, 0xf6, 0x38, 0xc1, 0x47, 0x1a, 0xe4, 0xd9, 0x1b, 1167 0x15, 0x37, 0xc2, 0x03, 0x7f, 0x73, 0x9e, 0xc0, 0x63, 0x36, 0x72, 0xfd, 0xb1, 0xb3, 0x8f, 0x54, 1168 0xc8, 0xb3, 0x47, 0x2d, 0x6e, 0x22, 0xf5, 0x37, 0xca, 0x95, 0xa3, 0x68, 0x71, 0x03, 0x01, 0x6c, 1169 0xc5, 0x9f, 0xbd, 0xb8, 0x9d, 0x05, 0x66, 0xe7, 0x9d, 0x59, 0xed, 0x5c, 0x75, 0x3b, 0x2a, 0x9b, 1170 0xfe, 0x15, 0x54, 0x1f, 0xed, 0x41, 0x1a, 0x7b, 0x1e, 0xf1, 0xd8, 0x2d, 0x90, 0xad, 0xa0, 0xc8, 1171 0x86, 0xe7, 0xea, 0xa5, 0x2e, 0xdb, 0x3d, 0x15, 0x2e, 0x50, 0xfc, 0x44, 0x82, 0xcd, 0x89, 0xe5, 1172 0xd3, 0x77, 0x89, 0xe3, 0x63, 0x34, 0x00, 0x34, 0xf2, 0x56, 0xf5, 0x78, 0x5b, 0x88, 0x65, 0xea, 1173 0xbd, 0xb9, 0x92, 0x33, 0xd5, 0x5c, 0xca, 0x9a, 0x36, 0x49, 0x2a, 0xfe, 0x2c, 0xc1, 0xd6, 0x84, 1174 0xf4, 0x89, 0x47, 0x4c, 0x0f, 0xfb, 0xaf, 0xe9, 0xc5, 0xfb, 0x90, 0x77, 0x85, 0xa0, 0xea, 0x62, 1175 0x4f, 0xa7, 0xf7, 0x28, 0xbf, 0x6f, 0x72, 0x11, 0xfd, 0x84, 0x93, 0xd1, 0xdb, 0x00, 0xa3, 0xa5, 1176 0x41, 0xac, 0xaf, 0xdb, 0x51, 0x28, 0xd1, 0xe2, 0x5e, 0x3a, 0x8d, 0x16, 0x77, 0x25, 0x33, 0xdc, 1177 0x24, 0xd0, 0x23, 0xc8, 0x86, 0xae, 0xa1, 0x05, 0x98, 0xeb, 0xa6, 0x5e, 0xab, 0x0b, 0x5c, 0x9c, 1178 0x12, 0x8a, 0x9f, 0x4d, 0x26, 0x79, 0x18, 0x99, 0x0b, 0xeb, 0xb1, 0x24, 0x47, 0xfe, 0x8a, 0x2c, 1179 0x3f, 0xbe, 0x66, 0x96, 0x23, 0x74, 0x25, 0x56, 0xc0, 0x88, 0xb6, 0xff, 0x91, 0x04, 0x8b, 0x62, 1180 0xb7, 0x47, 0x5b, 0xb0, 0xde, 0x90, 0x6b, 0xa7, 0x67, 0x8a, 0xac, 0x9e, 0xb5, 0xbb, 0x27, 0x72, 1181 0xbd, 0xd9, 0x68, 0xca, 0x87, 0xf9, 0x1b, 0x68, 0x1d, 0x72, 0xad, 0xda, 0x81, 0xdc, 0x52, 0x0f, 1182 0xe5, 0x53, 0xb9, 0x7e, 0xda, 0xec, 0xb4, 0xf3, 0x12, 0x42, 0xb0, 0xda, 0xa8, 0xd5, 0xe5, 0x18, 1183 0x2d, 0x81, 0xfe, 0x05, 0x9b, 0xdd, 0xa3, 0xce, 0xa9, 0x5a, 0x3f, 0xaa, 0xb5, 0x9f, 0xc4, 0x59, 1184 0x49, 0xc6, 0xaa, 0x35, 0x64, 0xb5, 0x2b, 0xd7, 0x94, 0xfa, 0x51, 0x8c, 0x95, 0xda, 0x77, 0x00, 1185 0x46, 0x1b, 0x0b, 0xba, 0x05, 0x5b, 0xdc, 0x58, 0x4b, 0x3e, 0x97, 0x5b, 0x13, 0x9e, 0xe4, 0x20, 1186 0x7b, 0xde, 0x3c, 0x94, 0x3b, 0x9c, 0x99, 0x97, 0xd0, 0x1a, 0xac, 0x74, 0xe5, 0x27, 0xc7, 0x72, 1187 0xfb, 0x54, 0x90, 0x12, 0x68, 0x15, 0x80, 0x39, 0xc1, 0xcf, 0x49, 0xaa, 0xd3, 0x50, 0x6a, 0xc7, 1188 0xb2, 0x20, 0xa4, 0xf6, 0x3d, 0x40, 0xd3, 0x7b, 0x37, 0xfa, 0x0f, 0xec, 0x4e, 0x04, 0xa9, 0x1e, 1189 0x77, 0x0e, 0x27, 0x53, 0xb1, 0x02, 0x19, 0x06, 0x4e, 0x59, 0x79, 0x89, 0xda, 0xe2, 0xd8, 0xec, 1190 0x9c, 0xa0, 0x29, 0x64, 0xec, 0x5a, 0xfb, 0x50, 0x8d, 0x31, 0x92, 0xfb, 0x18, 0x60, 0xf4, 0xa6, 1191 0xa2, 0x2c, 0x2c, 0x9e, 0xb5, 0x9f, 0xb6, 0x3b, 0xcf, 0xda, 0xf9, 0x1b, 0x34, 0x84, 0x73, 0x59, 1192 0x79, 0xae, 0x9e, 0xb5, 0x5b, 0xcd, 0xa7, 0x72, 0xeb, 0x79, 0x5e, 0x42, 0xcb, 0xb0, 0x34, 0x3c, 1193 0x25, 0xe8, 0xe9, 0xa4, 0xd3, 0xed, 0x36, 0x0f, 0x5a, 0x72, 0x3e, 0x89, 0x00, 0x16, 0x04, 0x27, 1194 0xc5, 0xd2, 0x41, 0x55, 0x05, 0x21, 0x5d, 0xf9, 0x46, 0x82, 0x02, 0x2b, 0x7f, 0x33, 0xd6, 0x18, 1195 0x5d, 0xec, 0x5d, 0x5a, 0x3a, 0x46, 0x9f, 0x4b, 0xb0, 0x32, 0xd6, 0x77, 0x68, 0xe6, 0xdb, 0xe6, 1196 0xaa, 0x0f, 0xd2, 0xed, 0x9d, 0x48, 0x3b, 0xf6, 0x25, 0x5c, 0xea, 0x44, 0x5f, 0xc2, 0xc5, 0xbb, 1197 0x1f, 0xff, 0xf8, 0xeb, 0x17, 0x89, 0x9d, 0x62, 0x61, 0xfc, 0xc3, 0xdc, 0xaf, 0x8a, 0x36, 0xc4, 1198 0x55, 0x69, 0xff, 0xe0, 0xcb, 0x04, 0xec, 0xeb, 0x64, 0x30, 0xa3, 0x1f, 0x07, 0x3b, 0x7f, 0x16, 1199 0xdc, 0x09, 0x1d, 0xb9, 0x13, 0xe9, 0xfd, 0x67, 0x02, 0xc8, 0x24, 0x74, 0x49, 0x2d, 0x11, 0xcf, 1200 0x2c, 0x9b, 0xd8, 0x61, 0x03, 0x59, 0xe6, 0x2c, 0xcd, 0xb5, 0xfc, 0xd7, 0xfd, 0x85, 0xf0, 0x68, 1201 0x8a, 0xf3, 0x55, 0xe2, 0xde, 0x13, 0x8e, 0x5c, 0x67, 0x2e, 0x4e, 0xf9, 0x51, 0x3a, 0x7f, 0x70, 1202 0x40, 0x55, 0x7f, 0x88, 0x04, 0x5f, 0x30, 0xc1, 0x17, 0x53, 0x82, 0x2f, 0xce, 0xb9, 0x8d, 0xdf, 1203 0x12, 0xf7, 0xb9, 0x60, 0xb5, 0xca, 0x24, 0xab, 0xd5, 0x29, 0xd1, 0x6a, 0x55, 0xc8, 0xf6, 0x16, 1204 0x58, 0x04, 0x0f, 0xff, 0x08, 0x00, 0x00, 0xff, 0xff, 0x2b, 0xad, 0x21, 0xb6, 0x03, 0x11, 0x00, 1205 0x00, 1206} 1207 1208// Reference imports to suppress errors if they are not otherwise used. 1209var _ context.Context 1210var _ grpc.ClientConn 1211 1212// This is a compile-time assertion to ensure that this generated file 1213// is compatible with the grpc package it is being compiled against. 1214const _ = grpc.SupportPackageIsVersion4 1215 1216// VideoIntelligenceServiceClient is the client API for VideoIntelligenceService service. 1217// 1218// For semantics around ctx use and closing/ending streaming RPCs, please refer to https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. 1219type VideoIntelligenceServiceClient interface { 1220 // Performs asynchronous video annotation. Progress and results can be 1221 // retrieved through the `google.longrunning.Operations` interface. 1222 // `Operation.metadata` contains `AnnotateVideoProgress` (progress). 1223 // `Operation.response` contains `AnnotateVideoResponse` (results). 1224 AnnotateVideo(ctx context.Context, in *AnnotateVideoRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) 1225} 1226 1227type videoIntelligenceServiceClient struct { 1228 cc *grpc.ClientConn 1229} 1230 1231func NewVideoIntelligenceServiceClient(cc *grpc.ClientConn) VideoIntelligenceServiceClient { 1232 return &videoIntelligenceServiceClient{cc} 1233} 1234 1235func (c *videoIntelligenceServiceClient) AnnotateVideo(ctx context.Context, in *AnnotateVideoRequest, opts ...grpc.CallOption) (*longrunning.Operation, error) { 1236 out := new(longrunning.Operation) 1237 err := c.cc.Invoke(ctx, "/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo", in, out, opts...) 1238 if err != nil { 1239 return nil, err 1240 } 1241 return out, nil 1242} 1243 1244// VideoIntelligenceServiceServer is the server API for VideoIntelligenceService service. 1245type VideoIntelligenceServiceServer interface { 1246 // Performs asynchronous video annotation. Progress and results can be 1247 // retrieved through the `google.longrunning.Operations` interface. 1248 // `Operation.metadata` contains `AnnotateVideoProgress` (progress). 1249 // `Operation.response` contains `AnnotateVideoResponse` (results). 1250 AnnotateVideo(context.Context, *AnnotateVideoRequest) (*longrunning.Operation, error) 1251} 1252 1253func RegisterVideoIntelligenceServiceServer(s *grpc.Server, srv VideoIntelligenceServiceServer) { 1254 s.RegisterService(&_VideoIntelligenceService_serviceDesc, srv) 1255} 1256 1257func _VideoIntelligenceService_AnnotateVideo_Handler(srv interface{}, ctx context.Context, dec func(interface{}) error, interceptor grpc.UnaryServerInterceptor) (interface{}, error) { 1258 in := new(AnnotateVideoRequest) 1259 if err := dec(in); err != nil { 1260 return nil, err 1261 } 1262 if interceptor == nil { 1263 return srv.(VideoIntelligenceServiceServer).AnnotateVideo(ctx, in) 1264 } 1265 info := &grpc.UnaryServerInfo{ 1266 Server: srv, 1267 FullMethod: "/google.cloud.videointelligence.v1beta1.VideoIntelligenceService/AnnotateVideo", 1268 } 1269 handler := func(ctx context.Context, req interface{}) (interface{}, error) { 1270 return srv.(VideoIntelligenceServiceServer).AnnotateVideo(ctx, req.(*AnnotateVideoRequest)) 1271 } 1272 return interceptor(ctx, in, info, handler) 1273} 1274 1275var _VideoIntelligenceService_serviceDesc = grpc.ServiceDesc{ 1276 ServiceName: "google.cloud.videointelligence.v1beta1.VideoIntelligenceService", 1277 HandlerType: (*VideoIntelligenceServiceServer)(nil), 1278 Methods: []grpc.MethodDesc{ 1279 { 1280 MethodName: "AnnotateVideo", 1281 Handler: _VideoIntelligenceService_AnnotateVideo_Handler, 1282 }, 1283 }, 1284 Streams: []grpc.StreamDesc{}, 1285 Metadata: "google/cloud/videointelligence/v1beta1/video_intelligence.proto", 1286} 1287