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