| 1 |
// Copyright 2022 Google LLC |
| 2 |
// |
| 3 |
// Licensed under the Apache License, Version 2.0 (the "License"); |
| 4 |
// you may not use this file except in compliance with the License. |
| 5 |
// You may obtain a copy of the License at |
| 6 |
// |
| 7 |
// http://www.apache.org/licenses/LICENSE-2.0 |
| 8 |
// |
| 9 |
// Unless required by applicable law or agreed to in writing, software |
| 10 |
// distributed under the License is distributed on an "AS IS" BASIS, |
| 11 |
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 12 |
// See the License for the specific language governing permissions and |
| 13 |
// limitations under the License. |
| 14 |
|
| 15 |
// Code generated by aliasgen. DO NOT EDIT. |
| 16 |
|
| 17 |
// Package videointelligence aliases all exported identifiers in package |
| 18 |
// "cloud.google.com/go/videointelligence/apiv1/videointelligencepb". |
| 19 |
// |
| 20 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb. |
| 21 |
// Please read https://github.com/googleapis/google-cloud-go/blob/main/migration.md |
| 22 |
// for more details. |
| 23 |
package videointelligence |
| 24 |
|
| 25 |
import ( |
| 26 |
src "cloud.google.com/go/videointelligence/apiv1/videointelligencepb" |
| 27 |
grpc "google.golang.org/grpc" |
| 28 |
) |
| 29 |
|
| 30 |
// Deprecated: Please use consts in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 31 |
const ( |
| 32 |
Feature_EXPLICIT_CONTENT_DETECTION = src.Feature_EXPLICIT_CONTENT_DETECTION |
| 33 |
Feature_FACE_DETECTION = src.Feature_FACE_DETECTION |
| 34 |
Feature_FEATURE_UNSPECIFIED = src.Feature_FEATURE_UNSPECIFIED |
| 35 |
Feature_LABEL_DETECTION = src.Feature_LABEL_DETECTION |
| 36 |
Feature_LOGO_RECOGNITION = src.Feature_LOGO_RECOGNITION |
| 37 |
Feature_OBJECT_TRACKING = src.Feature_OBJECT_TRACKING |
| 38 |
Feature_PERSON_DETECTION = src.Feature_PERSON_DETECTION |
| 39 |
Feature_SHOT_CHANGE_DETECTION = src.Feature_SHOT_CHANGE_DETECTION |
| 40 |
Feature_SPEECH_TRANSCRIPTION = src.Feature_SPEECH_TRANSCRIPTION |
| 41 |
Feature_TEXT_DETECTION = src.Feature_TEXT_DETECTION |
| 42 |
LabelDetectionMode_FRAME_MODE = src.LabelDetectionMode_FRAME_MODE |
| 43 |
LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED = src.LabelDetectionMode_LABEL_DETECTION_MODE_UNSPECIFIED |
| 44 |
LabelDetectionMode_SHOT_AND_FRAME_MODE = src.LabelDetectionMode_SHOT_AND_FRAME_MODE |
| 45 |
LabelDetectionMode_SHOT_MODE = src.LabelDetectionMode_SHOT_MODE |
| 46 |
Likelihood_LIKELIHOOD_UNSPECIFIED = src.Likelihood_LIKELIHOOD_UNSPECIFIED |
| 47 |
Likelihood_LIKELY = src.Likelihood_LIKELY |
| 48 |
Likelihood_POSSIBLE = src.Likelihood_POSSIBLE |
| 49 |
Likelihood_UNLIKELY = src.Likelihood_UNLIKELY |
| 50 |
Likelihood_VERY_LIKELY = src.Likelihood_VERY_LIKELY |
| 51 |
Likelihood_VERY_UNLIKELY = src.Likelihood_VERY_UNLIKELY |
| 52 |
) |
| 53 |
|
| 54 |
// Deprecated: Please use vars in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 55 |
var ( |
| 56 |
Feature_name = src.Feature_name |
| 57 |
Feature_value = src.Feature_value |
| 58 |
File_google_cloud_videointelligence_v1_video_intelligence_proto = src.File_google_cloud_videointelligence_v1_video_intelligence_proto |
| 59 |
LabelDetectionMode_name = src.LabelDetectionMode_name |
| 60 |
LabelDetectionMode_value = src.LabelDetectionMode_value |
| 61 |
Likelihood_name = src.Likelihood_name |
| 62 |
Likelihood_value = src.Likelihood_value |
| 63 |
) |
| 64 |
|
| 65 |
// Video annotation progress. Included in the `metadata` field of the |
| 66 |
// `Operation` returned by the `GetOperation` call of the |
| 67 |
// `google::longrunning::Operations` service. |
| 68 |
// |
| 69 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 70 |
type AnnotateVideoProgress = src.AnnotateVideoProgress |
| 71 |
|
| 72 |
// Video annotation request. |
| 73 |
// |
| 74 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 75 |
type AnnotateVideoRequest = src.AnnotateVideoRequest |
| 76 |
|
| 77 |
// Video annotation response. Included in the `response` field of the |
| 78 |
// `Operation` returned by the `GetOperation` call of the |
| 79 |
// `google::longrunning::Operations` service. |
| 80 |
// |
| 81 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 82 |
type AnnotateVideoResponse = src.AnnotateVideoResponse |
| 83 |
|
| 84 |
// A generic detected attribute represented by name in string format. |
| 85 |
// |
| 86 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 87 |
type DetectedAttribute = src.DetectedAttribute |
| 88 |
|
| 89 |
// A generic detected landmark represented by name in string format and a 2D |
| 90 |
// location. |
| 91 |
// |
| 92 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 93 |
type DetectedLandmark = src.DetectedLandmark |
| 94 |
|
| 95 |
// Detected entity from video analysis. |
| 96 |
// |
| 97 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 98 |
type Entity = src.Entity |
| 99 |
|
| 100 |
// Explicit content annotation (based on per-frame visual signals only). If no |
| 101 |
// explicit content has been detected in a frame, no annotations are present |
| 102 |
// for that frame. |
| 103 |
// |
| 104 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 105 |
type ExplicitContentAnnotation = src.ExplicitContentAnnotation |
| 106 |
|
| 107 |
// Config for EXPLICIT_CONTENT_DETECTION. |
| 108 |
// |
| 109 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 110 |
type ExplicitContentDetectionConfig = src.ExplicitContentDetectionConfig |
| 111 |
|
| 112 |
// Video frame level annotation results for explicit content. |
| 113 |
// |
| 114 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 115 |
type ExplicitContentFrame = src.ExplicitContentFrame |
| 116 |
|
| 117 |
// Deprecated. No effect. Deprecated: Do not use. |
| 118 |
// |
| 119 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 120 |
type FaceAnnotation = src.FaceAnnotation |
| 121 |
|
| 122 |
// Face detection annotation. |
| 123 |
// |
| 124 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 125 |
type FaceDetectionAnnotation = src.FaceDetectionAnnotation |
| 126 |
|
| 127 |
// Config for FACE_DETECTION. |
| 128 |
// |
| 129 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 130 |
type FaceDetectionConfig = src.FaceDetectionConfig |
| 131 |
|
| 132 |
// Deprecated. No effect. Deprecated: Do not use. |
| 133 |
// |
| 134 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 135 |
type FaceFrame = src.FaceFrame |
| 136 |
|
| 137 |
// Video segment level annotation results for face detection. |
| 138 |
// |
| 139 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 140 |
type FaceSegment = src.FaceSegment |
| 141 |
|
| 142 |
// Video annotation feature. |
| 143 |
// |
| 144 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 145 |
type Feature = src.Feature |
| 146 |
|
| 147 |
// Label annotation. |
| 148 |
// |
| 149 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 150 |
type LabelAnnotation = src.LabelAnnotation |
| 151 |
|
| 152 |
// Config for LABEL_DETECTION. |
| 153 |
// |
| 154 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 155 |
type LabelDetectionConfig = src.LabelDetectionConfig |
| 156 |
|
| 157 |
// Label detection mode. |
| 158 |
// |
| 159 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 160 |
type LabelDetectionMode = src.LabelDetectionMode |
| 161 |
|
| 162 |
// Video frame level annotation results for label detection. |
| 163 |
// |
| 164 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 165 |
type LabelFrame = src.LabelFrame |
| 166 |
|
| 167 |
// Video segment level annotation results for label detection. |
| 168 |
// |
| 169 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 170 |
type LabelSegment = src.LabelSegment |
| 171 |
|
| 172 |
// Bucketized representation of likelihood. |
| 173 |
// |
| 174 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 175 |
type Likelihood = src.Likelihood |
| 176 |
|
| 177 |
// Annotation corresponding to one detected, tracked and recognized logo |
| 178 |
// class. |
| 179 |
// |
| 180 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 181 |
type LogoRecognitionAnnotation = src.LogoRecognitionAnnotation |
| 182 |
|
| 183 |
// Normalized bounding box. The normalized vertex coordinates are relative to |
| 184 |
// the original image. Range: [0, 1]. |
| 185 |
// |
| 186 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 187 |
type NormalizedBoundingBox = src.NormalizedBoundingBox |
| 188 |
|
| 189 |
// Normalized bounding polygon for text (that might not be aligned with axis). |
| 190 |
// Contains list of the corner points in clockwise order starting from top-left |
| 191 |
// corner. For example, for a rectangular bounding box: When the text is |
| 192 |
// horizontal it might look like: 0----1 | | 3----2 When it's clockwise rotated |
| 193 |
// 180 degrees around the top-left corner it becomes: 2----3 | | 1----0 and the |
| 194 |
// vertex order will still be (0, 1, 2, 3). Note that values can be less than |
| 195 |
// 0, or greater than 1 due to trignometric calculations for location of the |
| 196 |
// box. |
| 197 |
// |
| 198 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 199 |
type NormalizedBoundingPoly = src.NormalizedBoundingPoly |
| 200 |
|
| 201 |
// A vertex represents a 2D point in the image. NOTE: the normalized vertex |
| 202 |
// coordinates are relative to the original image and range from 0 to 1. |
| 203 |
// |
| 204 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 205 |
type NormalizedVertex = src.NormalizedVertex |
| 206 |
|
| 207 |
// Annotations corresponding to one tracked object. |
| 208 |
// |
| 209 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 210 |
type ObjectTrackingAnnotation = src.ObjectTrackingAnnotation |
| 211 |
type ObjectTrackingAnnotation_Segment = src.ObjectTrackingAnnotation_Segment |
| 212 |
type ObjectTrackingAnnotation_TrackId = src.ObjectTrackingAnnotation_TrackId |
| 213 |
|
| 214 |
// Config for OBJECT_TRACKING. |
| 215 |
// |
| 216 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 217 |
type ObjectTrackingConfig = src.ObjectTrackingConfig |
| 218 |
|
| 219 |
// Video frame level annotations for object detection and tracking. This field |
| 220 |
// stores per frame location, time offset, and confidence. |
| 221 |
// |
| 222 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 223 |
type ObjectTrackingFrame = src.ObjectTrackingFrame |
| 224 |
|
| 225 |
// Person detection annotation per video. |
| 226 |
// |
| 227 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 228 |
type PersonDetectionAnnotation = src.PersonDetectionAnnotation |
| 229 |
|
| 230 |
// Config for PERSON_DETECTION. |
| 231 |
// |
| 232 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 233 |
type PersonDetectionConfig = src.PersonDetectionConfig |
| 234 |
|
| 235 |
// Config for SHOT_CHANGE_DETECTION. |
| 236 |
// |
| 237 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 238 |
type ShotChangeDetectionConfig = src.ShotChangeDetectionConfig |
| 239 |
|
| 240 |
// Provides "hints" to the speech recognizer to favor specific words and |
| 241 |
// phrases in the results. |
| 242 |
// |
| 243 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 244 |
type SpeechContext = src.SpeechContext |
| 245 |
|
| 246 |
// Alternative hypotheses (a.k.a. n-best list). |
| 247 |
// |
| 248 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 249 |
type SpeechRecognitionAlternative = src.SpeechRecognitionAlternative |
| 250 |
|
| 251 |
// A speech recognition result corresponding to a portion of the audio. |
| 252 |
// |
| 253 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 254 |
type SpeechTranscription = src.SpeechTranscription |
| 255 |
|
| 256 |
// Config for SPEECH_TRANSCRIPTION. |
| 257 |
// |
| 258 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 259 |
type SpeechTranscriptionConfig = src.SpeechTranscriptionConfig |
| 260 |
|
| 261 |
// Annotations related to one detected OCR text snippet. This will contain the |
| 262 |
// corresponding text, confidence value, and frame level information for each |
| 263 |
// detection. |
| 264 |
// |
| 265 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 266 |
type TextAnnotation = src.TextAnnotation |
| 267 |
|
| 268 |
// Config for TEXT_DETECTION. |
| 269 |
// |
| 270 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 271 |
type TextDetectionConfig = src.TextDetectionConfig |
| 272 |
|
| 273 |
// Video frame level annotation results for text annotation (OCR). Contains |
| 274 |
// information regarding timestamp and bounding box locations for the frames |
| 275 |
// containing detected OCR text snippets. |
| 276 |
// |
| 277 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 278 |
type TextFrame = src.TextFrame |
| 279 |
|
| 280 |
// Video segment level annotation results for text detection. |
| 281 |
// |
| 282 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 283 |
type TextSegment = src.TextSegment |
| 284 |
|
| 285 |
// For tracking related features. An object at time_offset with attributes, |
| 286 |
// and located with normalized_bounding_box. |
| 287 |
// |
| 288 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 289 |
type TimestampedObject = src.TimestampedObject |
| 290 |
|
| 291 |
// A track of an object instance. |
| 292 |
// |
| 293 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 294 |
type Track = src.Track |
| 295 |
|
| 296 |
// UnimplementedVideoIntelligenceServiceServer can be embedded to have forward |
| 297 |
// compatible implementations. |
| 298 |
// |
| 299 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 300 |
type UnimplementedVideoIntelligenceServiceServer = src.UnimplementedVideoIntelligenceServiceServer |
| 301 |
|
| 302 |
// Annotation progress for a single video. |
| 303 |
// |
| 304 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 305 |
type VideoAnnotationProgress = src.VideoAnnotationProgress |
| 306 |
|
| 307 |
// Annotation results for a single video. |
| 308 |
// |
| 309 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 310 |
type VideoAnnotationResults = src.VideoAnnotationResults |
| 311 |
|
| 312 |
// Video context and/or feature-specific parameters. |
| 313 |
// |
| 314 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 315 |
type VideoContext = src.VideoContext |
| 316 |
|
| 317 |
// VideoIntelligenceServiceClient is the client API for |
| 318 |
// VideoIntelligenceService service. For semantics around ctx use and |
| 319 |
// closing/ending streaming RPCs, please refer to |
| 320 |
// https://godoc.org/google.golang.org/grpc#ClientConn.NewStream. |
| 321 |
// |
| 322 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 323 |
type VideoIntelligenceServiceClient = src.VideoIntelligenceServiceClient |
| 324 |
|
| 325 |
// VideoIntelligenceServiceServer is the server API for |
| 326 |
// VideoIntelligenceService service. |
| 327 |
// |
| 328 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 329 |
type VideoIntelligenceServiceServer = src.VideoIntelligenceServiceServer |
| 330 |
|
| 331 |
// Video segment. |
| 332 |
// |
| 333 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 334 |
type VideoSegment = src.VideoSegment |
| 335 |
|
| 336 |
// Word-specific information for recognized words. Word information is only |
| 337 |
// included in the response when certain request parameters are set, such as |
| 338 |
// `enable_word_time_offsets`. |
| 339 |
// |
| 340 |
// Deprecated: Please use types in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 341 |
type WordInfo = src.WordInfo |
| 342 |
|
| 343 |
// Deprecated: Please use funcs in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 344 |
func NewVideoIntelligenceServiceClient(cc grpc.ClientConnInterface) VideoIntelligenceServiceClient { |
| 345 |
return src.NewVideoIntelligenceServiceClient(cc) |
| 346 |
} |
| 347 |
|
| 348 |
// Deprecated: Please use funcs in: cloud.google.com/go/videointelligence/apiv1/videointelligencepb |
| 349 |
func RegisterVideoIntelligenceServiceServer(s *grpc.Server, srv VideoIntelligenceServiceServer) { |
| 350 |
src.RegisterVideoIntelligenceServiceServer(s, srv) |
| 351 |
} |