Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3)

Side by Side Diff: discovery/googleapis_beta/videointelligence__v1beta1.json

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 { 1 {
2 "auth": { 2 "auth": {
3 "oauth2": { 3 "oauth2": {
4 "scopes": { 4 "scopes": {
5 "https://www.googleapis.com/auth/cloud-platform": { 5 "https://www.googleapis.com/auth/cloud-platform": {
6 "description": "View and manage your data across Google Clou d Platform services" 6 "description": "View and manage your data across Google Clou d Platform services"
7 } 7 }
8 } 8 }
9 } 9 }
10 }, 10 },
11 "basePath": "", 11 "basePath": "",
12 "baseUrl": "https://videointelligence.googleapis.com/", 12 "baseUrl": "https://videointelligence.googleapis.com/",
13 "batchPath": "batch", 13 "batchPath": "batch",
14 "canonicalName": "Cloud Video Intelligence", 14 "canonicalName": "Cloud Video Intelligence",
15 "description": "Google Cloud Video Intelligence API.", 15 "description": "Google Cloud Video Intelligence API.",
16 "discoveryVersion": "v1", 16 "discoveryVersion": "v1",
17 "documentationLink": "https://cloud.google.com/video-intelligence/docs/", 17 "documentationLink": "https://cloud.google.com/video-intelligence/docs/",
18 "icons": { 18 "icons": {
19 "x16": "http://www.google.com/images/icons/product/search-16.gif", 19 "x16": "http://www.google.com/images/icons/product/search-16.gif",
20 "x32": "http://www.google.com/images/icons/product/search-32.gif" 20 "x32": "http://www.google.com/images/icons/product/search-32.gif"
21 }, 21 },
22 "id": "videointelligence:v1beta1", 22 "id": "videointelligence:v1beta1",
23 "kind": "discovery#restDescription", 23 "kind": "discovery#restDescription",
24 "name": "videointelligence", 24 "name": "videointelligence",
25 "ownerDomain": "google.com", 25 "ownerDomain": "google.com",
26 "ownerName": "Google", 26 "ownerName": "Google",
27 "parameters": { 27 "parameters": {
28 "access_token": {
29 "description": "OAuth access token.",
30 "location": "query",
31 "type": "string"
32 },
33 "key": {
34 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
35 "location": "query",
36 "type": "string"
37 },
38 "quotaUser": {
39 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
40 "location": "query",
41 "type": "string"
42 },
43 "pp": {
44 "default": "true",
45 "description": "Pretty-print response.",
46 "location": "query",
47 "type": "boolean"
48 },
49 "bearer_token": {
50 "description": "OAuth bearer token.",
51 "location": "query",
52 "type": "string"
53 },
54 "oauth_token": {
55 "description": "OAuth 2.0 token for the current user.",
56 "location": "query",
57 "type": "string"
58 },
59 "upload_protocol": { 28 "upload_protocol": {
60 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").", 29 "description": "Upload protocol for media (e.g. \"raw\", \"multipart \").",
61 "location": "query", 30 "location": "query",
62 "type": "string" 31 "type": "string"
63 }, 32 },
64 "prettyPrint": { 33 "prettyPrint": {
65 "default": "true", 34 "default": "true",
66 "description": "Returns response with indentations and line breaks." , 35 "description": "Returns response with indentations and line breaks." ,
67 "location": "query", 36 "location": "query",
68 "type": "boolean" 37 "type": "boolean"
69 }, 38 },
39 "uploadType": {
40 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
41 "location": "query",
42 "type": "string"
43 },
70 "fields": { 44 "fields": {
71 "description": "Selector specifying which fields to include in a par tial response.", 45 "description": "Selector specifying which fields to include in a par tial response.",
72 "location": "query", 46 "location": "query",
73 "type": "string" 47 "type": "string"
74 }, 48 },
75 "uploadType": {
76 "description": "Legacy upload protocol for media (e.g. \"media\", \" multipart\").",
77 "location": "query",
78 "type": "string"
79 },
80 "$.xgafv": { 49 "$.xgafv": {
81 "description": "V1 error format.", 50 "description": "V1 error format.",
82 "enum": [ 51 "enum": [
83 "1", 52 "1",
84 "2" 53 "2"
85 ], 54 ],
86 "enumDescriptions": [ 55 "enumDescriptions": [
87 "v1 error format", 56 "v1 error format",
88 "v2 error format" 57 "v2 error format"
89 ], 58 ],
(...skipping 13 matching lines...) Expand all
103 "media", 72 "media",
104 "proto" 73 "proto"
105 ], 74 ],
106 "enumDescriptions": [ 75 "enumDescriptions": [
107 "Responses with Content-Type of application/json", 76 "Responses with Content-Type of application/json",
108 "Media download with context-dependent Content-Type", 77 "Media download with context-dependent Content-Type",
109 "Responses with Content-Type of application/x-protobuf" 78 "Responses with Content-Type of application/x-protobuf"
110 ], 79 ],
111 "location": "query", 80 "location": "query",
112 "type": "string" 81 "type": "string"
82 },
83 "access_token": {
84 "description": "OAuth access token.",
85 "location": "query",
86 "type": "string"
87 },
88 "key": {
89 "description": "API key. Your API key identifies your project and pr ovides you with API access, quota, and reports. Required unless you provide an O Auth 2.0 token.",
90 "location": "query",
91 "type": "string"
92 },
93 "quotaUser": {
94 "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exc eed 40 characters.",
95 "location": "query",
96 "type": "string"
97 },
98 "pp": {
99 "default": "true",
100 "description": "Pretty-print response.",
101 "location": "query",
102 "type": "boolean"
103 },
104 "bearer_token": {
105 "description": "OAuth bearer token.",
106 "location": "query",
107 "type": "string"
108 },
109 "oauth_token": {
110 "description": "OAuth 2.0 token for the current user.",
111 "location": "query",
112 "type": "string"
113 } 113 }
114 }, 114 },
115 "protocol": "rest", 115 "protocol": "rest",
116 "resources": { 116 "resources": {
117 "videos": { 117 "videos": {
118 "methods": { 118 "methods": {
119 "annotate": { 119 "annotate": {
120 "description": "Performs asynchronous video annotation. Prog ress and results can be\nretrieved through the `google.longrunning.Operations` i nterface.\n`Operation.metadata` contains `AnnotateVideoProgress` (progress).\n`O peration.response` contains `AnnotateVideoResponse` (results).", 120 "description": "Performs asynchronous video annotation. Prog ress and results can be\nretrieved through the `google.longrunning.Operations` i nterface.\n`Operation.metadata` contains `AnnotateVideoProgress` (progress).\n`O peration.response` contains `AnnotateVideoResponse` (results).",
121 "httpMethod": "POST", 121 "httpMethod": "POST",
122 "id": "videointelligence.videos.annotate", 122 "id": "videointelligence.videos.annotate",
123 "parameterOrder": [], 123 "parameterOrder": [],
124 "parameters": {}, 124 "parameters": {},
125 "path": "v1beta1/videos:annotate", 125 "path": "v1beta1/videos:annotate",
126 "request": { 126 "request": {
127 "$ref": "GoogleCloudVideointelligenceV1beta1_AnnotateVid eoRequest" 127 "$ref": "GoogleCloudVideointelligenceV1beta1_AnnotateVid eoRequest"
128 }, 128 },
129 "response": { 129 "response": {
130 "$ref": "GoogleLongrunning_Operation" 130 "$ref": "GoogleLongrunning_Operation"
131 }, 131 },
132 "scopes": [ 132 "scopes": [
133 "https://www.googleapis.com/auth/cloud-platform" 133 "https://www.googleapis.com/auth/cloud-platform"
134 ] 134 ]
135 } 135 }
136 } 136 }
137 } 137 }
138 }, 138 },
139 "revision": "20170621", 139 "revision": "20170718",
140 "rootUrl": "https://videointelligence.googleapis.com/", 140 "rootUrl": "https://videointelligence.googleapis.com/",
141 "schemas": { 141 "schemas": {
142 "GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest": {
143 "description": "Video annotation request.",
144 "id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest",
145 "properties": {
146 "features": {
147 "description": "Requested video annotation features.",
148 "enumDescriptions": [
149 "Unspecified.",
150 "Label detection. Detect objects, such as dog or flower. ",
151 "Shot change detection."
152 ],
153 "items": {
154 "enum": [
155 "FEATURE_UNSPECIFIED",
156 "LABEL_DETECTION",
157 "SHOT_CHANGE_DETECTION"
158 ],
159 "type": "string"
160 },
161 "type": "array"
162 },
163 "outputUri": {
164 "description": "Optional location where the output (in JSON format) should be stored.\nCurrently, only [Google Cloud Storage](https://cloud. google.com/storage/)\nURIs are supported, which must be specified in the followi ng format:\n`gs://bucket-id/object-id` (other URI formats return\ngoogle.rpc.Cod e.INVALID_ARGUMENT). For more information, see\n[Request URIs](/storage/docs/ref erence-uris).",
165 "type": "string"
166 },
167 "videoContext": {
168 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoContext",
169 "description": "Additional video context and/or feature-spec ific parameters."
170 },
171 "locationId": {
172 "description": "Optional cloud region where annotation shoul d take place. Supported cloud\nregions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region\nis specified, a region will be determined based on v ideo file location.",
173 "type": "string"
174 },
175 "inputUri": {
176 "description": "Input video location. Currently, only\n[Goog le Cloud Storage](https://cloud.google.com/storage/) URIs are\nsupported, which must be specified in the following format:\n`gs://bucket-id/object-id` (other UR I formats return\ngoogle.rpc.Code.INVALID_ARGUMENT). For more information, see\n [Request URIs](/storage/docs/reference-uris).\nA video URI may include wildcards in `object-id`, and thus identify\nmultiple videos. Supported wildcards: '*' to match 0 or more characters;\n'?' to match 1 character. If unset, the input vide o should be embedded\nin the request as `input_content`. If set, `input_content` should be unset.",
177 "type": "string"
178 },
179 "inputContent": {
180 "description": "The video data bytes. Encoding: base64. If u nset, the input video(s)\nshould be specified via `input_uri`. If set, `input_ur i` should be unset.",
181 "type": "string"
182 }
183 },
184 "type": "object"
185 },
186 "GoogleCloudVideointelligenceV1beta1_LabelLocation": {
187 "description": "Label location.",
188 "id": "GoogleCloudVideointelligenceV1beta1_LabelLocation",
189 "properties": {
190 "level": {
191 "description": "Label level.",
192 "enum": [
193 "LABEL_LEVEL_UNSPECIFIED",
194 "VIDEO_LEVEL",
195 "SEGMENT_LEVEL",
196 "SHOT_LEVEL",
197 "FRAME_LEVEL"
198 ],
199 "enumDescriptions": [
200 "Unspecified.",
201 "Video-level. Corresponds to the whole video.",
202 "Segment-level. Corresponds to one of `AnnotateSpec.segm ents`.",
203 "Shot-level. Corresponds to a single shot (i.e. a series of frames\nwithout a major camera position or background change).",
204 "Frame-level. Corresponds to a single video frame."
205 ],
206 "type": "string"
207 },
208 "confidence": {
209 "description": "Confidence that the label is accurate. Range : [0, 1].",
210 "format": "float",
211 "type": "number"
212 },
213 "segment": {
214 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegment",
215 "description": "Video segment. Set to [-1, -1] for video-lev el labels.\nSet to [timestamp, timestamp] for frame-level labels.\nOtherwise, co rresponds to one of `AnnotateSpec.segments`\n(if specified) or to shot boundarie s (if requested)."
216 }
217 },
218 "type": "object"
219 },
220 "GoogleCloudVideointelligenceV1beta1_VideoSegment": {
221 "description": "Video segment.",
222 "id": "GoogleCloudVideointelligenceV1beta1_VideoSegment",
223 "properties": {
224 "endTimeOffset": {
225 "description": "End offset in microseconds (inclusive). Unse t means 0.",
226 "format": "int64",
227 "type": "string"
228 },
229 "startTimeOffset": {
230 "description": "Start offset in microseconds (inclusive). Un set means 0.",
231 "format": "int64",
232 "type": "string"
233 }
234 },
235 "type": "object"
236 },
237 "GoogleCloudVideointelligenceV1_SafeSearchAnnotation": { 142 "GoogleCloudVideointelligenceV1_SafeSearchAnnotation": {
238 "description": "Safe search annotation (based on per-frame visual si gnals only).\nIf no unsafe content has been detected in a frame, no annotations\ nare present for that frame.", 143 "description": "Safe search annotation (based on per-frame visual si gnals only).\nIf no unsafe content has been detected in a frame, no annotations\ nare present for that frame.",
239 "id": "GoogleCloudVideointelligenceV1_SafeSearchAnnotation", 144 "id": "GoogleCloudVideointelligenceV1_SafeSearchAnnotation",
240 "properties": { 145 "properties": {
241 "time": { 146 "time": {
242 "description": "Time-offset, relative to the beginning of th e video,\ncorresponding to the video frame for this annotation.", 147 "description": "Time-offset, relative to the beginning of th e video,\ncorresponding to the video frame for this annotation.",
243 "format": "google-duration", 148 "format": "google-duration",
244 "type": "string" 149 "type": "string"
245 }, 150 },
246 "adult": { 151 "adult": {
152 "description": "Likelihood of adult content.",
153 "enum": [
154 "UNKNOWN",
155 "VERY_UNLIKELY",
156 "UNLIKELY",
157 "POSSIBLE",
158 "LIKELY",
159 "VERY_LIKELY"
160 ],
161 "enumDescriptions": [
162 "Unknown likelihood.",
163 "Very unlikely.",
164 "Unlikely.",
165 "Possible.",
166 "Likely.",
167 "Very likely."
168 ],
169 "type": "string"
170 }
171 },
172 "type": "object"
173 },
174 "GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation": {
175 "description": "Safe search annotation (based on per-frame visual si gnals only).\nIf no unsafe content has been detected in a frame, no annotations\ nare present for that frame. If only some types of unsafe content\nhave been det ected in a frame, the likelihood is set to `UNKNOWN`\nfor all other types of uns afe content.",
176 "id": "GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation",
177 "properties": {
178 "racy": {
179 "description": "Likelihood of racy content.",
180 "enum": [
181 "UNKNOWN",
182 "VERY_UNLIKELY",
183 "UNLIKELY",
184 "POSSIBLE",
185 "LIKELY",
186 "VERY_LIKELY"
187 ],
188 "enumDescriptions": [
189 "Unknown likelihood.",
190 "Very unlikely.",
191 "Unlikely.",
192 "Possible.",
193 "Likely.",
194 "Very likely."
195 ],
196 "type": "string"
197 },
198 "timeOffset": {
199 "description": "Video time offset in microseconds.",
200 "format": "int64",
201 "type": "string"
202 },
203 "violent": {
204 "description": "Likelihood of violent content.",
205 "enum": [
206 "UNKNOWN",
207 "VERY_UNLIKELY",
208 "UNLIKELY",
209 "POSSIBLE",
210 "LIKELY",
211 "VERY_LIKELY"
212 ],
213 "enumDescriptions": [
214 "Unknown likelihood.",
215 "Very unlikely.",
216 "Unlikely.",
217 "Possible.",
218 "Likely.",
219 "Very likely."
220 ],
221 "type": "string"
222 },
223 "spoof": {
224 "description": "Likelihood that an obvious modification was made to the original\nversion to make it appear funny or offensive.",
225 "enum": [
226 "UNKNOWN",
227 "VERY_UNLIKELY",
228 "UNLIKELY",
229 "POSSIBLE",
230 "LIKELY",
231 "VERY_LIKELY"
232 ],
233 "enumDescriptions": [
234 "Unknown likelihood.",
235 "Very unlikely.",
236 "Unlikely.",
237 "Possible.",
238 "Likely.",
239 "Very likely."
240 ],
241 "type": "string"
242 },
243 "medical": {
244 "description": "Likelihood of medical content.",
245 "enum": [
246 "UNKNOWN",
247 "VERY_UNLIKELY",
248 "UNLIKELY",
249 "POSSIBLE",
250 "LIKELY",
251 "VERY_LIKELY"
252 ],
253 "enumDescriptions": [
254 "Unknown likelihood.",
255 "Very unlikely.",
256 "Unlikely.",
257 "Possible.",
258 "Likely.",
259 "Very likely."
260 ],
261 "type": "string"
262 },
263 "adult": {
247 "description": "Likelihood of adult content.", 264 "description": "Likelihood of adult content.",
248 "enum": [ 265 "enum": [
249 "UNKNOWN", 266 "UNKNOWN",
250 "VERY_UNLIKELY", 267 "VERY_UNLIKELY",
251 "UNLIKELY", 268 "UNLIKELY",
252 "POSSIBLE", 269 "POSSIBLE",
253 "LIKELY", 270 "LIKELY",
254 "VERY_LIKELY" 271 "VERY_LIKELY"
255 ], 272 ],
256 "enumDescriptions": [ 273 "enumDescriptions": [
257 "Unknown likelihood.", 274 "Unknown likelihood.",
258 "Very unlikely.", 275 "Very unlikely.",
259 "Unlikely.", 276 "Unlikely.",
260 "Possible.", 277 "Possible.",
261 "Likely.", 278 "Likely.",
262 "Very likely." 279 "Very likely."
263 ], 280 ],
264 "type": "string" 281 "type": "string"
265 } 282 }
266 }, 283 },
267 "type": "object" 284 "type": "object"
268 }, 285 },
269 "GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress": {
270 "description": "Video annotation progress. Included in the `metadata `\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google: :longrunning::Operations` service.",
271 "id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress",
272 "properties": {
273 "annotationProgress": {
274 "description": "Progress metadata for all videos specified i n `AnnotateVideoRequest`.",
275 "items": {
276 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoAnnota tionProgress"
277 },
278 "type": "array"
279 }
280 },
281 "type": "object"
282 },
283 "GoogleCloudVideointelligenceV1_VideoAnnotationProgress": { 286 "GoogleCloudVideointelligenceV1_VideoAnnotationProgress": {
284 "description": "Annotation progress for a single video.", 287 "description": "Annotation progress for a single video.",
285 "id": "GoogleCloudVideointelligenceV1_VideoAnnotationProgress", 288 "id": "GoogleCloudVideointelligenceV1_VideoAnnotationProgress",
286 "properties": { 289 "properties": {
287 "inputUri": {
288 "description": "Video file location in\n[Google Cloud Storag e](https://cloud.google.com/storage/).",
289 "type": "string"
290 },
291 "progressPercent": { 290 "progressPercent": {
292 "description": "Approximate percentage processed thus far.\n Guaranteed to be 100 when fully processed.", 291 "description": "Approximate percentage processed thus far.\n Guaranteed to be 100 when fully processed.",
293 "format": "int32", 292 "format": "int32",
294 "type": "integer" 293 "type": "integer"
295 }, 294 },
296 "updateTime": { 295 "updateTime": {
297 "description": "Time of the most recent update.", 296 "description": "Time of the most recent update.",
298 "format": "google-datetime", 297 "format": "google-datetime",
299 "type": "string" 298 "type": "string"
300 }, 299 },
301 "startTime": { 300 "startTime": {
302 "description": "Time when the request was received.", 301 "description": "Time when the request was received.",
303 "format": "google-datetime", 302 "format": "google-datetime",
304 "type": "string" 303 "type": "string"
304 },
305 "inputUri": {
306 "description": "Video file location in\n[Google Cloud Storag e](https://cloud.google.com/storage/).",
307 "type": "string"
305 } 308 }
306 }, 309 },
307 "type": "object" 310 "type": "object"
308 }, 311 },
309 "GoogleCloudVideointelligenceV1_AnnotateVideoProgress": { 312 "GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress": {
310 "description": "Video annotation progress. Included in the `metadata `\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google: :longrunning::Operations` service.", 313 "description": "Video annotation progress. Included in the `metadata `\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google: :longrunning::Operations` service.",
311 "id": "GoogleCloudVideointelligenceV1_AnnotateVideoProgress", 314 "id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress",
312 "properties": { 315 "properties": {
313 "annotationProgress": { 316 "annotationProgress": {
314 "description": "Progress metadata for all videos specified i n `AnnotateVideoRequest`.", 317 "description": "Progress metadata for all videos specified i n `AnnotateVideoRequest`.",
315 "items": { 318 "items": {
316 "$ref": "GoogleCloudVideointelligenceV1_VideoAnnotationP rogress" 319 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoAnnota tionProgress"
317 }, 320 },
318 "type": "array" 321 "type": "array"
319 } 322 }
320 }, 323 },
321 "type": "object" 324 "type": "object"
322 }, 325 },
323 "GoogleCloudVideointelligenceV1_LabelLocation": {
324 "description": "Label location.",
325 "id": "GoogleCloudVideointelligenceV1_LabelLocation",
326 "properties": {
327 "confidence": {
328 "description": "Confidence that the label is accurate. Range : [0, 1].",
329 "format": "float",
330 "type": "number"
331 },
332 "segment": {
333 "$ref": "GoogleCloudVideointelligenceV1_VideoSegment",
334 "description": "Video segment. Unset for video-level labels. \nSet to a frame timestamp for frame-level labels.\nOtherwise, corresponds to on e of `AnnotateSpec.segments`\n(if specified) or to shot boundaries (if requested )."
335 },
336 "level": {
337 "description": "Label level.",
338 "enum": [
339 "LABEL_LEVEL_UNSPECIFIED",
340 "VIDEO_LEVEL",
341 "SEGMENT_LEVEL",
342 "SHOT_LEVEL",
343 "FRAME_LEVEL"
344 ],
345 "enumDescriptions": [
346 "Unspecified.",
347 "Video-level. Corresponds to the whole video.",
348 "Segment-level. Corresponds to one of `AnnotateSpec.segm ents`.",
349 "Shot-level. Corresponds to a single shot (i.e. a series of frames\nwithout a major camera position or background change).",
350 "Frame-level. Corresponds to a single video frame."
351 ],
352 "type": "string"
353 }
354 },
355 "type": "object"
356 },
357 "GoogleCloudVideointelligenceV1_VideoAnnotationResults": { 326 "GoogleCloudVideointelligenceV1_VideoAnnotationResults": {
358 "description": "Annotation results for a single video.", 327 "description": "Annotation results for a single video.",
359 "id": "GoogleCloudVideointelligenceV1_VideoAnnotationResults", 328 "id": "GoogleCloudVideointelligenceV1_VideoAnnotationResults",
360 "properties": { 329 "properties": {
361 "error": { 330 "error": {
362 "$ref": "GoogleRpc_Status", 331 "$ref": "GoogleRpc_Status",
363 "description": "If set, indicates an error. Note that for a single `AnnotateVideoRequest`\nsome videos may succeed and some may fail." 332 "description": "If set, indicates an error. Note that for a single `AnnotateVideoRequest`\nsome videos may succeed and some may fail."
364 }, 333 },
365 "shotAnnotations": { 334 "shotAnnotations": {
366 "description": "Shot annotations. Each shot is represented a s a video segment.", 335 "description": "Shot annotations. Each shot is represented a s a video segment.",
(...skipping 16 matching lines...) Expand all
383 "labelAnnotations": { 352 "labelAnnotations": {
384 "description": "Label annotations. There is exactly one elem ent for each unique label.", 353 "description": "Label annotations. There is exactly one elem ent for each unique label.",
385 "items": { 354 "items": {
386 "$ref": "GoogleCloudVideointelligenceV1_LabelAnnotation" 355 "$ref": "GoogleCloudVideointelligenceV1_LabelAnnotation"
387 }, 356 },
388 "type": "array" 357 "type": "array"
389 } 358 }
390 }, 359 },
391 "type": "object" 360 "type": "object"
392 }, 361 },
362 "GoogleCloudVideointelligenceV1_AnnotateVideoProgress": {
363 "description": "Video annotation progress. Included in the `metadata `\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google: :longrunning::Operations` service.",
364 "id": "GoogleCloudVideointelligenceV1_AnnotateVideoProgress",
365 "properties": {
366 "annotationProgress": {
367 "description": "Progress metadata for all videos specified i n `AnnotateVideoRequest`.",
368 "items": {
369 "$ref": "GoogleCloudVideointelligenceV1_VideoAnnotationP rogress"
370 },
371 "type": "array"
372 }
373 },
374 "type": "object"
375 },
376 "GoogleCloudVideointelligenceV1_LabelLocation": {
377 "description": "Label location.",
378 "id": "GoogleCloudVideointelligenceV1_LabelLocation",
379 "properties": {
380 "level": {
381 "description": "Label level.",
382 "enum": [
383 "LABEL_LEVEL_UNSPECIFIED",
384 "VIDEO_LEVEL",
385 "SEGMENT_LEVEL",
386 "SHOT_LEVEL",
387 "FRAME_LEVEL"
388 ],
389 "enumDescriptions": [
390 "Unspecified.",
391 "Video-level. Corresponds to the whole video.",
392 "Segment-level. Corresponds to one of `AnnotateSpec.segm ents`.",
393 "Shot-level. Corresponds to a single shot (i.e. a series of frames\nwithout a major camera position or background change).",
394 "Frame-level. Corresponds to a single video frame."
395 ],
396 "type": "string"
397 },
398 "confidence": {
399 "description": "Confidence that the label is accurate. Range : [0, 1].",
400 "format": "float",
401 "type": "number"
402 },
403 "segment": {
404 "$ref": "GoogleCloudVideointelligenceV1_VideoSegment",
405 "description": "Video segment. Unset for video-level labels. \nSet to a frame timestamp for frame-level labels.\nOtherwise, corresponds to on e of `AnnotateSpec.segments`\n(if specified) or to shot boundaries (if requested )."
406 }
407 },
408 "type": "object"
409 },
393 "GoogleLongrunning_Operation": { 410 "GoogleLongrunning_Operation": {
394 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.", 411 "description": "This resource represents a long-running operation th at is the result of a\nnetwork API call.",
395 "id": "GoogleLongrunning_Operation", 412 "id": "GoogleLongrunning_Operation",
396 "properties": { 413 "properties": {
397 "done": { 414 "done": {
398 "description": "If the value is `false`, it means the operat ion is still in progress.\nIf true, the operation is completed, and either `erro r` or `response` is\navailable.", 415 "description": "If the value is `false`, it means the operat ion is still in progress.\nIf true, the operation is completed, and either `erro r` or `response` is\navailable.",
399 "type": "boolean" 416 "type": "boolean"
400 }, 417 },
401 "response": { 418 "response": {
402 "additionalProperties": { 419 "additionalProperties": {
(...skipping 30 matching lines...) Expand all
433 "$ref": "GoogleRpc_Status", 450 "$ref": "GoogleRpc_Status",
434 "description": "If set, indicates an error. Note that for a single `AnnotateVideoRequest`\nsome videos may succeed and some may fail." 451 "description": "If set, indicates an error. Note that for a single `AnnotateVideoRequest`\nsome videos may succeed and some may fail."
435 }, 452 },
436 "shotAnnotations": { 453 "shotAnnotations": {
437 "description": "Shot annotations. Each shot is represented a s a video segment.", 454 "description": "Shot annotations. Each shot is represented a s a video segment.",
438 "items": { 455 "items": {
439 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegmen t" 456 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegmen t"
440 }, 457 },
441 "type": "array" 458 "type": "array"
442 }, 459 },
460 "safeSearchAnnotations": {
461 "description": "Safe search annotations.",
462 "items": {
463 "$ref": "GoogleCloudVideointelligenceV1beta1_SafeSearchA nnotation"
464 },
465 "type": "array"
466 },
443 "inputUri": { 467 "inputUri": {
444 "description": "Video file location in\n[Google Cloud Storag e](https://cloud.google.com/storage/).", 468 "description": "Video file location in\n[Google Cloud Storag e](https://cloud.google.com/storage/).",
445 "type": "string" 469 "type": "string"
446 }, 470 },
447 "labelAnnotations": { 471 "labelAnnotations": {
448 "description": "Label annotations. There is exactly one elem ent for each unique label.", 472 "description": "Label annotations. There is exactly one elem ent for each unique label.",
449 "items": { 473 "items": {
450 "$ref": "GoogleCloudVideointelligenceV1beta1_LabelAnnota tion" 474 "$ref": "GoogleCloudVideointelligenceV1beta1_LabelAnnota tion"
451 }, 475 },
452 "type": "array" 476 "type": "array"
453 } 477 }
454 }, 478 },
455 "type": "object" 479 "type": "object"
456 }, 480 },
457 "GoogleCloudVideointelligenceV1beta1_LabelAnnotation": { 481 "GoogleCloudVideointelligenceV1beta1_LabelAnnotation": {
458 "description": "Label annotation.", 482 "description": "Label annotation.",
459 "id": "GoogleCloudVideointelligenceV1beta1_LabelAnnotation", 483 "id": "GoogleCloudVideointelligenceV1beta1_LabelAnnotation",
460 "properties": { 484 "properties": {
461 "description": {
462 "description": "Textual description, e.g. `Fixed-gear bicycl e`.",
463 "type": "string"
464 },
465 "locations": { 485 "locations": {
466 "description": "Where the label was detected and with what c onfidence.", 486 "description": "Where the label was detected and with what c onfidence.",
467 "items": { 487 "items": {
468 "$ref": "GoogleCloudVideointelligenceV1beta1_LabelLocati on" 488 "$ref": "GoogleCloudVideointelligenceV1beta1_LabelLocati on"
469 }, 489 },
470 "type": "array" 490 "type": "array"
471 }, 491 },
472 "languageCode": { 492 "languageCode": {
473 "description": "Language code for `description` in BCP-47 fo rmat.", 493 "description": "Language code for `description` in BCP-47 fo rmat.",
474 "type": "string" 494 "type": "string"
495 },
496 "description": {
497 "description": "Textual description, e.g. `Fixed-gear bicycl e`.",
498 "type": "string"
475 } 499 }
476 }, 500 },
477 "type": "object" 501 "type": "object"
478 }, 502 },
479 "GoogleCloudVideointelligenceV1_AnnotateVideoResponse": { 503 "GoogleCloudVideointelligenceV1_AnnotateVideoResponse": {
480 "description": "Video annotation response. Included in the `response `\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google: :longrunning::Operations` service.", 504 "description": "Video annotation response. Included in the `response `\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google: :longrunning::Operations` service.",
481 "id": "GoogleCloudVideointelligenceV1_AnnotateVideoResponse", 505 "id": "GoogleCloudVideointelligenceV1_AnnotateVideoResponse",
482 "properties": { 506 "properties": {
483 "annotationResults": { 507 "annotationResults": {
484 "description": "Annotation results for all videos specified in `AnnotateVideoRequest`.", 508 "description": "Annotation results for all videos specified in `AnnotateVideoRequest`.",
(...skipping 12 matching lines...) Expand all
497 "annotationResults": { 521 "annotationResults": {
498 "description": "Annotation results for all videos specified in `AnnotateVideoRequest`.", 522 "description": "Annotation results for all videos specified in `AnnotateVideoRequest`.",
499 "items": { 523 "items": {
500 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoAnnota tionResults" 524 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoAnnota tionResults"
501 }, 525 },
502 "type": "array" 526 "type": "array"
503 } 527 }
504 }, 528 },
505 "type": "object" 529 "type": "object"
506 }, 530 },
507 "GoogleCloudVideointelligenceV1_LabelAnnotation": {
508 "description": "Label annotation.",
509 "id": "GoogleCloudVideointelligenceV1_LabelAnnotation",
510 "properties": {
511 "languageCode": {
512 "description": "Language code for `description` in BCP-47 fo rmat.",
513 "type": "string"
514 },
515 "description": {
516 "description": "Textual description, e.g. `Fixed-gear bicycl e`.",
517 "type": "string"
518 },
519 "locations": {
520 "description": "Where the label was detected and with what c onfidence.",
521 "items": {
522 "$ref": "GoogleCloudVideointelligenceV1_LabelLocation"
523 },
524 "type": "array"
525 }
526 },
527 "type": "object"
528 },
529 "GoogleCloudVideointelligenceV1beta1_VideoContext": { 531 "GoogleCloudVideointelligenceV1beta1_VideoContext": {
530 "description": "Video context and/or feature-specific parameters.", 532 "description": "Video context and/or feature-specific parameters.",
531 "id": "GoogleCloudVideointelligenceV1beta1_VideoContext", 533 "id": "GoogleCloudVideointelligenceV1beta1_VideoContext",
532 "properties": { 534 "properties": {
533 "shotChangeDetectionModel": {
534 "description": "Model to use for shot change detection.\nSup ported values: \"latest\" and \"stable\" (the default).",
535 "type": "string"
536 },
537 "segments": { 535 "segments": {
538 "description": "Video segments to annotate. The segments may overlap and are not required\nto be contiguous or span the whole video. If unsp ecified, each video\nis treated as a single segment.", 536 "description": "Video segments to annotate. The segments may overlap and are not required\nto be contiguous or span the whole video. If unsp ecified, each video\nis treated as a single segment.",
539 "items": { 537 "items": {
540 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegmen t" 538 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegmen t"
541 }, 539 },
542 "type": "array" 540 "type": "array"
543 }, 541 },
544 "labelDetectionModel": { 542 "labelDetectionModel": {
545 "description": "Model to use for label detection.\nSupported values: \"latest\" and \"stable\" (the default).", 543 "description": "Model to use for label detection.\nSupported values: \"latest\" and \"stable\" (the default).",
546 "type": "string" 544 "type": "string"
547 }, 545 },
546 "shotChangeDetectionModel": {
547 "description": "Model to use for shot change detection.\nSup ported values: \"latest\" and \"stable\" (the default).",
548 "type": "string"
549 },
548 "labelDetectionMode": { 550 "labelDetectionMode": {
549 "description": "If label detection has been requested, what labels should be detected\nin addition to video-level labels or segment-level la bels. If unspecified,\ndefaults to `SHOT_MODE`.", 551 "description": "If label detection has been requested, what labels should be detected\nin addition to video-level labels or segment-level la bels. If unspecified,\ndefaults to `SHOT_MODE`.",
550 "enum": [ 552 "enum": [
551 "LABEL_DETECTION_MODE_UNSPECIFIED", 553 "LABEL_DETECTION_MODE_UNSPECIFIED",
552 "SHOT_MODE", 554 "SHOT_MODE",
553 "FRAME_MODE", 555 "FRAME_MODE",
554 "SHOT_AND_FRAME_MODE" 556 "SHOT_AND_FRAME_MODE"
555 ], 557 ],
556 "enumDescriptions": [ 558 "enumDescriptions": [
557 "Unspecified.", 559 "Unspecified.",
558 "Detect shot-level labels.", 560 "Detect shot-level labels.",
559 "Detect frame-level labels.", 561 "Detect frame-level labels.",
560 "Detect both shot-level and frame-level labels." 562 "Detect both shot-level and frame-level labels."
561 ], 563 ],
562 "type": "string" 564 "type": "string"
565 },
566 "stationaryCamera": {
567 "description": "Whether the video has been shot from a stati onary (i.e. non-moving) camera.\nWhen set to true, might improve detection accur acy for moving objects.",
568 "type": "boolean"
569 },
570 "safeSearchDetectionModel": {
571 "description": "Model to use for safe search detection.\nSup ported values: \"latest\" and \"stable\" (the default).",
572 "type": "string"
563 } 573 }
564 }, 574 },
565 "type": "object" 575 "type": "object"
576 },
577 "GoogleCloudVideointelligenceV1_LabelAnnotation": {
578 "description": "Label annotation.",
579 "id": "GoogleCloudVideointelligenceV1_LabelAnnotation",
580 "properties": {
581 "locations": {
582 "description": "Where the label was detected and with what c onfidence.",
583 "items": {
584 "$ref": "GoogleCloudVideointelligenceV1_LabelLocation"
585 },
586 "type": "array"
587 },
588 "languageCode": {
589 "description": "Language code for `description` in BCP-47 fo rmat.",
590 "type": "string"
591 },
592 "description": {
593 "description": "Textual description, e.g. `Fixed-gear bicycl e`.",
594 "type": "string"
595 }
596 },
597 "type": "object"
566 }, 598 },
567 "GoogleRpc_Status": { 599 "GoogleRpc_Status": {
568 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RP C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie ces of data: error code, error message,\nand error details. The error code shoul d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message tha t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa cing\nerror message is needed, put the localized message in the error details or \nlocalize it in the client. The optional error details may contain arbitrary\ni nformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Lang uage mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` mess age is\nexposed in different client libraries and different wire protocols, it c an be\nmapped differently. For example, it will likely be mapped to some excepti ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n \nThe error model and the `Status` message can be used in a variety of\nenvironm ents, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n - Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\ n- Asynchronous operations. If an API call embeds asynchronous operation\n re sults in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are store d in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.", 600 "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RP C APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is desig ned to be:\n\n- Simple to use and understand for most users\n- Flexible enough t o meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pie ces of data: error code, error message,\nand error details. The error code shoul d be an enum value of\ngoogle.rpc.Code, but it may accept additional error codes if needed. The\nerror message should be a developer-facing English message tha t helps\ndevelopers *understand* and *resolve* the error. If a localized user-fa cing\nerror message is needed, put the localized message in the error details or \nlocalize it in the client. The optional error details may contain arbitrary\ni nformation about the error. There is a predefined set of error detail types\nin the package `google.rpc` that can be used for common error conditions.\n\n# Lang uage mapping\n\nThe `Status` message is the logical representation of the error model, but it\nis not necessarily the actual wire format. When the `Status` mess age is\nexposed in different client libraries and different wire protocols, it c an be\nmapped differently. For example, it will likely be mapped to some excepti ons\nin Java, but more likely mapped to some error codes in C.\n\n# Other uses\n \nThe error model and the `Status` message can be used in a variety of\nenvironm ents, either with or without APIs, to provide a\nconsistent developer experience across different environments.\n\nExample uses of this error model include:\n\n - Partial errors. If a service needs to return partial errors to the client,\n it may embed the `Status` in the normal response to indicate the partial\n errors.\n\n- Workflow errors. A typical workflow has multiple steps. Each step m ay\n have a `Status` message for error reporting.\n\n- Batch operations. If a client uses batch request and batch response, the\n `Status` message should be used directly inside batch response, one for\n each error sub-response.\n\ n- Asynchronous operations. If an API call embeds asynchronous operation\n re sults in its response, the status of those operations should be\n represented directly using the `Status` message.\n\n- Logging. If some API errors are store d in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
569 "id": "GoogleRpc_Status", 601 "id": "GoogleRpc_Status",
570 "properties": { 602 "properties": {
571 "details": { 603 "details": {
572 "description": "A list of messages that carry the error deta ils. There will be a\ncommon set of message types for APIs to use.", 604 "description": "A list of messages that carry the error deta ils. There is a common set of\nmessage types for APIs to use.",
573 "items": { 605 "items": {
574 "additionalProperties": { 606 "additionalProperties": {
575 "description": "Properties of the object. Contains f ield @type with type URL.", 607 "description": "Properties of the object. Contains f ield @type with type URL.",
576 "type": "any" 608 "type": "any"
577 }, 609 },
578 "type": "object" 610 "type": "object"
579 }, 611 },
580 "type": "array" 612 "type": "array"
581 }, 613 },
582 "code": { 614 "code": {
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
626 "format": "google-duration", 658 "format": "google-duration",
627 "type": "string" 659 "type": "string"
628 }, 660 },
629 "endTime": { 661 "endTime": {
630 "description": "Time-offset, relative to the beginning of th e video,\ncorresponding to the end of the segment (inclusive).", 662 "description": "Time-offset, relative to the beginning of th e video,\ncorresponding to the end of the segment (inclusive).",
631 "format": "google-duration", 663 "format": "google-duration",
632 "type": "string" 664 "type": "string"
633 } 665 }
634 }, 666 },
635 "type": "object" 667 "type": "object"
668 },
669 "GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest": {
670 "description": "Video annotation request.",
671 "id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest",
672 "properties": {
673 "locationId": {
674 "description": "Optional cloud region where annotation shoul d take place. Supported cloud\nregions: `us-east1`, `us-west1`, `europe-west1`, `asia-east1`. If no region\nis specified, a region will be determined based on v ideo file location.",
675 "type": "string"
676 },
677 "inputUri": {
678 "description": "Input video location. Currently, only\n[Goog le Cloud Storage](https://cloud.google.com/storage/) URIs are\nsupported, which must be specified in the following format:\n`gs://bucket-id/object-id` (other UR I formats return\ngoogle.rpc.Code.INVALID_ARGUMENT). For more information, see\n [Request URIs](/storage/docs/reference-uris).\nA video URI may include wildcards in `object-id`, and thus identify\nmultiple videos. Supported wildcards: '*' to match 0 or more characters;\n'?' to match 1 character. If unset, the input vide o should be embedded\nin the request as `input_content`. If set, `input_content` should be unset.",
679 "type": "string"
680 },
681 "inputContent": {
682 "description": "The video data bytes. Encoding: base64. If u nset, the input video(s)\nshould be specified via `input_uri`. If set, `input_ur i` should be unset.",
683 "type": "string"
684 },
685 "features": {
686 "description": "Requested video annotation features.",
687 "enumDescriptions": [
688 "Unspecified.",
689 "Label detection. Detect objects, such as dog or flower. ",
690 "Shot change detection.",
691 "Safe search detection."
692 ],
693 "items": {
694 "enum": [
695 "FEATURE_UNSPECIFIED",
696 "LABEL_DETECTION",
697 "SHOT_CHANGE_DETECTION",
698 "SAFE_SEARCH_DETECTION"
699 ],
700 "type": "string"
701 },
702 "type": "array"
703 },
704 "outputUri": {
705 "description": "Optional location where the output (in JSON format) should be stored.\nCurrently, only [Google Cloud Storage](https://cloud. google.com/storage/)\nURIs are supported, which must be specified in the followi ng format:\n`gs://bucket-id/object-id` (other URI formats return\ngoogle.rpc.Cod e.INVALID_ARGUMENT). For more information, see\n[Request URIs](/storage/docs/ref erence-uris).",
706 "type": "string"
707 },
708 "videoContext": {
709 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoContext",
710 "description": "Additional video context and/or feature-spec ific parameters."
711 }
712 },
713 "type": "object"
714 },
715 "GoogleCloudVideointelligenceV1beta1_LabelLocation": {
716 "description": "Label location.",
717 "id": "GoogleCloudVideointelligenceV1beta1_LabelLocation",
718 "properties": {
719 "confidence": {
720 "description": "Confidence that the label is accurate. Range : [0, 1].",
721 "format": "float",
722 "type": "number"
723 },
724 "segment": {
725 "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegment",
726 "description": "Video segment. Set to [-1, -1] for video-lev el labels.\nSet to [timestamp, timestamp] for frame-level labels.\nOtherwise, co rresponds to one of `AnnotateSpec.segments`\n(if specified) or to shot boundarie s (if requested)."
727 },
728 "level": {
729 "description": "Label level.",
730 "enum": [
731 "LABEL_LEVEL_UNSPECIFIED",
732 "VIDEO_LEVEL",
733 "SEGMENT_LEVEL",
734 "SHOT_LEVEL",
735 "FRAME_LEVEL"
736 ],
737 "enumDescriptions": [
738 "Unspecified.",
739 "Video-level. Corresponds to the whole video.",
740 "Segment-level. Corresponds to one of `AnnotateSpec.segm ents`.",
741 "Shot-level. Corresponds to a single shot (i.e. a series of frames\nwithout a major camera position or background change).",
742 "Frame-level. Corresponds to a single video frame."
743 ],
744 "type": "string"
745 }
746 },
747 "type": "object"
748 },
749 "GoogleCloudVideointelligenceV1beta1_VideoSegment": {
750 "description": "Video segment.",
751 "id": "GoogleCloudVideointelligenceV1beta1_VideoSegment",
752 "properties": {
753 "endTimeOffset": {
754 "description": "End offset in microseconds (inclusive). Unse t means 0.",
755 "format": "int64",
756 "type": "string"
757 },
758 "startTimeOffset": {
759 "description": "Start offset in microseconds (inclusive). Un set means 0.",
760 "format": "int64",
761 "type": "string"
762 }
763 },
764 "type": "object"
636 } 765 }
637 }, 766 },
638 "servicePath": "", 767 "servicePath": "",
639 "title": "Google Cloud Video Intelligence API", 768 "title": "Google Cloud Video Intelligence API",
640 "version": "v1beta1" 769 "version": "v1beta1"
641 } 770 }
OLDNEW
« no previous file with comments | « discovery/googleapis_beta/toolresults__v1beta3firstparty.json ('k') | generated/googleapis/CHANGELOG.md » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698