You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 

1538 lines
62 KiB

  1. {
  2. "auth": {
  3. "oauth2": {
  4. "scopes": {
  5. "https://www.googleapis.com/auth/cloud-platform": {
  6. "description": "View and manage your data across Google Cloud Platform services"
  7. }
  8. }
  9. }
  10. },
  11. "basePath": "",
  12. "baseUrl": "https://videointelligence.googleapis.com/",
  13. "batchPath": "batch",
  14. "canonicalName": "Cloud Video Intelligence",
  15. "description": "Cloud Video Intelligence API.",
  16. "discoveryVersion": "v1",
  17. "documentationLink": "https://cloud.google.com/video-intelligence/docs/",
  18. "fullyEncodeReservedExpansion": true,
  19. "icons": {
  20. "x16": "http://www.google.com/images/icons/product/search-16.gif",
  21. "x32": "http://www.google.com/images/icons/product/search-32.gif"
  22. },
  23. "id": "videointelligence:v1beta1",
  24. "kind": "discovery#restDescription",
  25. "name": "videointelligence",
  26. "ownerDomain": "google.com",
  27. "ownerName": "Google",
  28. "parameters": {
  29. "$.xgafv": {
  30. "description": "V1 error format.",
  31. "enum": [
  32. "1",
  33. "2"
  34. ],
  35. "enumDescriptions": [
  36. "v1 error format",
  37. "v2 error format"
  38. ],
  39. "location": "query",
  40. "type": "string"
  41. },
  42. "access_token": {
  43. "description": "OAuth access token.",
  44. "location": "query",
  45. "type": "string"
  46. },
  47. "alt": {
  48. "default": "json",
  49. "description": "Data format for response.",
  50. "enum": [
  51. "json",
  52. "media",
  53. "proto"
  54. ],
  55. "enumDescriptions": [
  56. "Responses with Content-Type of application/json",
  57. "Media download with context-dependent Content-Type",
  58. "Responses with Content-Type of application/x-protobuf"
  59. ],
  60. "location": "query",
  61. "type": "string"
  62. },
  63. "bearer_token": {
  64. "description": "OAuth bearer token.",
  65. "location": "query",
  66. "type": "string"
  67. },
  68. "callback": {
  69. "description": "JSONP",
  70. "location": "query",
  71. "type": "string"
  72. },
  73. "fields": {
  74. "description": "Selector specifying which fields to include in a partial response.",
  75. "location": "query",
  76. "type": "string"
  77. },
  78. "key": {
  79. "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.",
  80. "location": "query",
  81. "type": "string"
  82. },
  83. "oauth_token": {
  84. "description": "OAuth 2.0 token for the current user.",
  85. "location": "query",
  86. "type": "string"
  87. },
  88. "pp": {
  89. "default": "true",
  90. "description": "Pretty-print response.",
  91. "location": "query",
  92. "type": "boolean"
  93. },
  94. "prettyPrint": {
  95. "default": "true",
  96. "description": "Returns response with indentations and line breaks.",
  97. "location": "query",
  98. "type": "boolean"
  99. },
  100. "quotaUser": {
  101. "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.",
  102. "location": "query",
  103. "type": "string"
  104. },
  105. "uploadType": {
  106. "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
  107. "location": "query",
  108. "type": "string"
  109. },
  110. "upload_protocol": {
  111. "description": "Upload protocol for media (e.g. \"raw\", \"multipart\").",
  112. "location": "query",
  113. "type": "string"
  114. }
  115. },
  116. "protocol": "rest",
  117. "resources": {
  118. "videos": {
  119. "methods": {
  120. "annotate": {
  121. "description": "Performs asynchronous video annotation. Progress and results can be\nretrieved through the `google.longrunning.Operations` interface.\n`Operation.metadata` contains `AnnotateVideoProgress` (progress).\n`Operation.response` contains `AnnotateVideoResponse` (results).",
  122. "flatPath": "v1beta1/videos:annotate",
  123. "httpMethod": "POST",
  124. "id": "videointelligence.videos.annotate",
  125. "parameterOrder": [],
  126. "parameters": {},
  127. "path": "v1beta1/videos:annotate",
  128. "request": {
  129. "$ref": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest"
  130. },
  131. "response": {
  132. "$ref": "GoogleLongrunning_Operation"
  133. },
  134. "scopes": [
  135. "https://www.googleapis.com/auth/cloud-platform"
  136. ]
  137. }
  138. }
  139. }
  140. },
  141. "revision": "20180502",
  142. "rootUrl": "https://videointelligence.googleapis.com/",
  143. "schemas": {
  144. "GoogleCloudVideointelligenceV1_AnnotateVideoProgress": {
  145. "description": "Video annotation progress. Included in the `metadata`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
  146. "id": "GoogleCloudVideointelligenceV1_AnnotateVideoProgress",
  147. "properties": {
  148. "annotationProgress": {
  149. "description": "Progress metadata for all videos specified in `AnnotateVideoRequest`.",
  150. "items": {
  151. "$ref": "GoogleCloudVideointelligenceV1_VideoAnnotationProgress"
  152. },
  153. "type": "array"
  154. }
  155. },
  156. "type": "object"
  157. },
  158. "GoogleCloudVideointelligenceV1_AnnotateVideoResponse": {
  159. "description": "Video annotation response. Included in the `response`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
  160. "id": "GoogleCloudVideointelligenceV1_AnnotateVideoResponse",
  161. "properties": {
  162. "annotationResults": {
  163. "description": "Annotation results for all videos specified in `AnnotateVideoRequest`.",
  164. "items": {
  165. "$ref": "GoogleCloudVideointelligenceV1_VideoAnnotationResults"
  166. },
  167. "type": "array"
  168. }
  169. },
  170. "type": "object"
  171. },
  172. "GoogleCloudVideointelligenceV1_Entity": {
  173. "description": "Detected entity from video analysis.",
  174. "id": "GoogleCloudVideointelligenceV1_Entity",
  175. "properties": {
  176. "description": {
  177. "description": "Textual description, e.g. `Fixed-gear bicycle`.",
  178. "type": "string"
  179. },
  180. "entityId": {
  181. "description": "Opaque entity ID. Some IDs may be available in\n[Google Knowledge Graph Search\nAPI](https://developers.google.com/knowledge-graph/).",
  182. "type": "string"
  183. },
  184. "languageCode": {
  185. "description": "Language code for `description` in BCP-47 format.",
  186. "type": "string"
  187. }
  188. },
  189. "type": "object"
  190. },
  191. "GoogleCloudVideointelligenceV1_ExplicitContentAnnotation": {
  192. "description": "Explicit content annotation (based on per-frame visual signals only).\nIf no explicit content has been detected in a frame, no annotations are\npresent for that frame.",
  193. "id": "GoogleCloudVideointelligenceV1_ExplicitContentAnnotation",
  194. "properties": {
  195. "frames": {
  196. "description": "All video frames where explicit content was detected.",
  197. "items": {
  198. "$ref": "GoogleCloudVideointelligenceV1_ExplicitContentFrame"
  199. },
  200. "type": "array"
  201. }
  202. },
  203. "type": "object"
  204. },
  205. "GoogleCloudVideointelligenceV1_ExplicitContentFrame": {
  206. "description": "Video frame level annotation results for explicit content.",
  207. "id": "GoogleCloudVideointelligenceV1_ExplicitContentFrame",
  208. "properties": {
  209. "pornographyLikelihood": {
  210. "description": "Likelihood of the pornography content..",
  211. "enum": [
  212. "LIKELIHOOD_UNSPECIFIED",
  213. "VERY_UNLIKELY",
  214. "UNLIKELY",
  215. "POSSIBLE",
  216. "LIKELY",
  217. "VERY_LIKELY"
  218. ],
  219. "enumDescriptions": [
  220. "Unspecified likelihood.",
  221. "Very unlikely.",
  222. "Unlikely.",
  223. "Possible.",
  224. "Likely.",
  225. "Very likely."
  226. ],
  227. "type": "string"
  228. },
  229. "timeOffset": {
  230. "description": "Time-offset, relative to the beginning of the video, corresponding to the\nvideo frame for this location.",
  231. "format": "google-duration",
  232. "type": "string"
  233. }
  234. },
  235. "type": "object"
  236. },
  237. "GoogleCloudVideointelligenceV1_LabelAnnotation": {
  238. "description": "Label annotation.",
  239. "id": "GoogleCloudVideointelligenceV1_LabelAnnotation",
  240. "properties": {
  241. "categoryEntities": {
  242. "description": "Common categories for the detected entity.\nE.g. when the label is `Terrier` the category is likely `dog`. And in some\ncases there might be more than one categories e.g. `Terrier` could also be\na `pet`.",
  243. "items": {
  244. "$ref": "GoogleCloudVideointelligenceV1_Entity"
  245. },
  246. "type": "array"
  247. },
  248. "entity": {
  249. "$ref": "GoogleCloudVideointelligenceV1_Entity",
  250. "description": "Detected entity."
  251. },
  252. "frames": {
  253. "description": "All video frames where a label was detected.",
  254. "items": {
  255. "$ref": "GoogleCloudVideointelligenceV1_LabelFrame"
  256. },
  257. "type": "array"
  258. },
  259. "segments": {
  260. "description": "All video segments where a label was detected.",
  261. "items": {
  262. "$ref": "GoogleCloudVideointelligenceV1_LabelSegment"
  263. },
  264. "type": "array"
  265. }
  266. },
  267. "type": "object"
  268. },
  269. "GoogleCloudVideointelligenceV1_LabelFrame": {
  270. "description": "Video frame level annotation results for label detection.",
  271. "id": "GoogleCloudVideointelligenceV1_LabelFrame",
  272. "properties": {
  273. "confidence": {
  274. "description": "Confidence that the label is accurate. Range: [0, 1].",
  275. "format": "float",
  276. "type": "number"
  277. },
  278. "timeOffset": {
  279. "description": "Time-offset, relative to the beginning of the video, corresponding to the\nvideo frame for this location.",
  280. "format": "google-duration",
  281. "type": "string"
  282. }
  283. },
  284. "type": "object"
  285. },
  286. "GoogleCloudVideointelligenceV1_LabelSegment": {
  287. "description": "Video segment level annotation results for label detection.",
  288. "id": "GoogleCloudVideointelligenceV1_LabelSegment",
  289. "properties": {
  290. "confidence": {
  291. "description": "Confidence that the label is accurate. Range: [0, 1].",
  292. "format": "float",
  293. "type": "number"
  294. },
  295. "segment": {
  296. "$ref": "GoogleCloudVideointelligenceV1_VideoSegment",
  297. "description": "Video segment where a label was detected."
  298. }
  299. },
  300. "type": "object"
  301. },
  302. "GoogleCloudVideointelligenceV1_VideoAnnotationProgress": {
  303. "description": "Annotation progress for a single video.",
  304. "id": "GoogleCloudVideointelligenceV1_VideoAnnotationProgress",
  305. "properties": {
  306. "inputUri": {
  307. "description": "Output only. Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
  308. "type": "string"
  309. },
  310. "progressPercent": {
  311. "description": "Output only. Approximate percentage processed thus far. Guaranteed to be\n100 when fully processed.",
  312. "format": "int32",
  313. "type": "integer"
  314. },
  315. "startTime": {
  316. "description": "Output only. Time when the request was received.",
  317. "format": "google-datetime",
  318. "type": "string"
  319. },
  320. "updateTime": {
  321. "description": "Output only. Time of the most recent update.",
  322. "format": "google-datetime",
  323. "type": "string"
  324. }
  325. },
  326. "type": "object"
  327. },
  328. "GoogleCloudVideointelligenceV1_VideoAnnotationResults": {
  329. "description": "Annotation results for a single video.",
  330. "id": "GoogleCloudVideointelligenceV1_VideoAnnotationResults",
  331. "properties": {
  332. "error": {
  333. "$ref": "GoogleRpc_Status",
  334. "description": "Output only. Non-streaming error only. If set, indicates an error. Note\nthat for a single `AnnotateVideoRequest` some videos may succeed and some\nmay fail."
  335. },
  336. "explicitAnnotation": {
  337. "$ref": "GoogleCloudVideointelligenceV1_ExplicitContentAnnotation",
  338. "description": "Explicit content annotation."
  339. },
  340. "frameLabelAnnotations": {
  341. "description": "Label annotations on frame level.\nThere is exactly one element for each unique label.",
  342. "items": {
  343. "$ref": "GoogleCloudVideointelligenceV1_LabelAnnotation"
  344. },
  345. "type": "array"
  346. },
  347. "inputUri": {
  348. "description": "Output only. Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
  349. "type": "string"
  350. },
  351. "segmentLabelAnnotations": {
  352. "description": "Label annotations on video level or user specified segment level.\nThere is exactly one element for each unique label.",
  353. "items": {
  354. "$ref": "GoogleCloudVideointelligenceV1_LabelAnnotation"
  355. },
  356. "type": "array"
  357. },
  358. "shotAnnotations": {
  359. "description": "Shot annotations. Each shot is represented as a video segment.",
  360. "items": {
  361. "$ref": "GoogleCloudVideointelligenceV1_VideoSegment"
  362. },
  363. "type": "array"
  364. },
  365. "shotLabelAnnotations": {
  366. "description": "Label annotations on shot level.\nThere is exactly one element for each unique label.",
  367. "items": {
  368. "$ref": "GoogleCloudVideointelligenceV1_LabelAnnotation"
  369. },
  370. "type": "array"
  371. }
  372. },
  373. "type": "object"
  374. },
  375. "GoogleCloudVideointelligenceV1_VideoSegment": {
  376. "description": "Video segment.",
  377. "id": "GoogleCloudVideointelligenceV1_VideoSegment",
  378. "properties": {
  379. "endTimeOffset": {
  380. "description": "Time-offset, relative to the beginning of the video,\ncorresponding to the end of the segment (inclusive).",
  381. "format": "google-duration",
  382. "type": "string"
  383. },
  384. "startTimeOffset": {
  385. "description": "Time-offset, relative to the beginning of the video,\ncorresponding to the start of the segment (inclusive).",
  386. "format": "google-duration",
  387. "type": "string"
  388. }
  389. },
  390. "type": "object"
  391. },
  392. "GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress": {
  393. "description": "Video annotation progress. Included in the `metadata`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
  394. "id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoProgress",
  395. "properties": {
  396. "annotationProgress": {
  397. "description": "Progress metadata for all videos specified in `AnnotateVideoRequest`.",
  398. "items": {
  399. "$ref": "GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress"
  400. },
  401. "type": "array"
  402. }
  403. },
  404. "type": "object"
  405. },
  406. "GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest": {
  407. "description": "Video annotation request.",
  408. "id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoRequest",
  409. "properties": {
  410. "features": {
  411. "description": "Requested video annotation features.",
  412. "enumDescriptions": [
  413. "Unspecified.",
  414. "Label detection. Detect objects, such as dog or flower.",
  415. "Shot change detection.",
  416. "Safe search detection."
  417. ],
  418. "items": {
  419. "enum": [
  420. "FEATURE_UNSPECIFIED",
  421. "LABEL_DETECTION",
  422. "SHOT_CHANGE_DETECTION",
  423. "SAFE_SEARCH_DETECTION"
  424. ],
  425. "type": "string"
  426. },
  427. "type": "array"
  428. },
  429. "inputContent": {
  430. "description": "The video data bytes. Encoding: base64. If unset, the input video(s)\nshould be specified via `input_uri`. If set, `input_uri` should be unset.",
  431. "type": "string"
  432. },
  433. "inputUri": {
  434. "description": "Input video location. Currently, only\n[Google 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 URI 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 video should be embedded\nin the request as `input_content`. If set, `input_content` should be unset.",
  435. "type": "string"
  436. },
  437. "locationId": {
  438. "description": "Optional cloud region where annotation should 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 video file location.",
  439. "type": "string"
  440. },
  441. "outputUri": {
  442. "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 following format:\n`gs://bucket-id/object-id` (other URI formats return\ngoogle.rpc.Code.INVALID_ARGUMENT). For more information, see\n[Request URIs](/storage/docs/reference-uris).",
  443. "type": "string"
  444. },
  445. "videoContext": {
  446. "$ref": "GoogleCloudVideointelligenceV1beta1_VideoContext",
  447. "description": "Additional video context and/or feature-specific parameters."
  448. }
  449. },
  450. "type": "object"
  451. },
  452. "GoogleCloudVideointelligenceV1beta1_AnnotateVideoResponse": {
  453. "description": "Video annotation response. Included in the `response`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
  454. "id": "GoogleCloudVideointelligenceV1beta1_AnnotateVideoResponse",
  455. "properties": {
  456. "annotationResults": {
  457. "description": "Annotation results for all videos specified in `AnnotateVideoRequest`.",
  458. "items": {
  459. "$ref": "GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults"
  460. },
  461. "type": "array"
  462. }
  463. },
  464. "type": "object"
  465. },
  466. "GoogleCloudVideointelligenceV1beta1_LabelAnnotation": {
  467. "description": "Label annotation.",
  468. "id": "GoogleCloudVideointelligenceV1beta1_LabelAnnotation",
  469. "properties": {
  470. "description": {
  471. "description": "Textual description, e.g. `Fixed-gear bicycle`.",
  472. "type": "string"
  473. },
  474. "languageCode": {
  475. "description": "Language code for `description` in BCP-47 format.",
  476. "type": "string"
  477. },
  478. "locations": {
  479. "description": "Where the label was detected and with what confidence.",
  480. "items": {
  481. "$ref": "GoogleCloudVideointelligenceV1beta1_LabelLocation"
  482. },
  483. "type": "array"
  484. }
  485. },
  486. "type": "object"
  487. },
  488. "GoogleCloudVideointelligenceV1beta1_LabelLocation": {
  489. "description": "Label location.",
  490. "id": "GoogleCloudVideointelligenceV1beta1_LabelLocation",
  491. "properties": {
  492. "confidence": {
  493. "description": "Confidence that the label is accurate. Range: [0, 1].",
  494. "format": "float",
  495. "type": "number"
  496. },
  497. "level": {
  498. "description": "Label level.",
  499. "enum": [
  500. "LABEL_LEVEL_UNSPECIFIED",
  501. "VIDEO_LEVEL",
  502. "SEGMENT_LEVEL",
  503. "SHOT_LEVEL",
  504. "FRAME_LEVEL"
  505. ],
  506. "enumDescriptions": [
  507. "Unspecified.",
  508. "Video-level. Corresponds to the whole video.",
  509. "Segment-level. Corresponds to one of `AnnotateSpec.segments`.",
  510. "Shot-level. Corresponds to a single shot (i.e. a series of frames\nwithout a major camera position or background change).",
  511. "Frame-level. Corresponds to a single video frame."
  512. ],
  513. "type": "string"
  514. },
  515. "segment": {
  516. "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegment",
  517. "description": "Video segment. Set to [-1, -1] for video-level labels.\nSet to [timestamp, timestamp] for frame-level labels.\nOtherwise, corresponds to one of `AnnotateSpec.segments`\n(if specified) or to shot boundaries (if requested)."
  518. }
  519. },
  520. "type": "object"
  521. },
  522. "GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation": {
  523. "description": "Safe search annotation (based on per-frame visual signals 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 detected in a frame, the likelihood is set to `UNKNOWN`\nfor all other types of unsafe content.",
  524. "id": "GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation",
  525. "properties": {
  526. "adult": {
  527. "description": "Likelihood of adult content.",
  528. "enum": [
  529. "UNKNOWN",
  530. "VERY_UNLIKELY",
  531. "UNLIKELY",
  532. "POSSIBLE",
  533. "LIKELY",
  534. "VERY_LIKELY"
  535. ],
  536. "enumDescriptions": [
  537. "Unknown likelihood.",
  538. "Very unlikely.",
  539. "Unlikely.",
  540. "Possible.",
  541. "Likely.",
  542. "Very likely."
  543. ],
  544. "type": "string"
  545. },
  546. "medical": {
  547. "description": "Likelihood of medical content.",
  548. "enum": [
  549. "UNKNOWN",
  550. "VERY_UNLIKELY",
  551. "UNLIKELY",
  552. "POSSIBLE",
  553. "LIKELY",
  554. "VERY_LIKELY"
  555. ],
  556. "enumDescriptions": [
  557. "Unknown likelihood.",
  558. "Very unlikely.",
  559. "Unlikely.",
  560. "Possible.",
  561. "Likely.",
  562. "Very likely."
  563. ],
  564. "type": "string"
  565. },
  566. "racy": {
  567. "description": "Likelihood of racy content.",
  568. "enum": [
  569. "UNKNOWN",
  570. "VERY_UNLIKELY",
  571. "UNLIKELY",
  572. "POSSIBLE",
  573. "LIKELY",
  574. "VERY_LIKELY"
  575. ],
  576. "enumDescriptions": [
  577. "Unknown likelihood.",
  578. "Very unlikely.",
  579. "Unlikely.",
  580. "Possible.",
  581. "Likely.",
  582. "Very likely."
  583. ],
  584. "type": "string"
  585. },
  586. "spoof": {
  587. "description": "Likelihood that an obvious modification was made to the original\nversion to make it appear funny or offensive.",
  588. "enum": [
  589. "UNKNOWN",
  590. "VERY_UNLIKELY",
  591. "UNLIKELY",
  592. "POSSIBLE",
  593. "LIKELY",
  594. "VERY_LIKELY"
  595. ],
  596. "enumDescriptions": [
  597. "Unknown likelihood.",
  598. "Very unlikely.",
  599. "Unlikely.",
  600. "Possible.",
  601. "Likely.",
  602. "Very likely."
  603. ],
  604. "type": "string"
  605. },
  606. "timeOffset": {
  607. "description": "Video time offset in microseconds.",
  608. "format": "int64",
  609. "type": "string"
  610. },
  611. "violent": {
  612. "description": "Likelihood of violent content.",
  613. "enum": [
  614. "UNKNOWN",
  615. "VERY_UNLIKELY",
  616. "UNLIKELY",
  617. "POSSIBLE",
  618. "LIKELY",
  619. "VERY_LIKELY"
  620. ],
  621. "enumDescriptions": [
  622. "Unknown likelihood.",
  623. "Very unlikely.",
  624. "Unlikely.",
  625. "Possible.",
  626. "Likely.",
  627. "Very likely."
  628. ],
  629. "type": "string"
  630. }
  631. },
  632. "type": "object"
  633. },
  634. "GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress": {
  635. "description": "Annotation progress for a single video.",
  636. "id": "GoogleCloudVideointelligenceV1beta1_VideoAnnotationProgress",
  637. "properties": {
  638. "inputUri": {
  639. "description": "Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
  640. "type": "string"
  641. },
  642. "progressPercent": {
  643. "description": "Approximate percentage processed thus far.\nGuaranteed to be 100 when fully processed.",
  644. "format": "int32",
  645. "type": "integer"
  646. },
  647. "startTime": {
  648. "description": "Time when the request was received.",
  649. "format": "google-datetime",
  650. "type": "string"
  651. },
  652. "updateTime": {
  653. "description": "Time of the most recent update.",
  654. "format": "google-datetime",
  655. "type": "string"
  656. }
  657. },
  658. "type": "object"
  659. },
  660. "GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults": {
  661. "description": "Annotation results for a single video.",
  662. "id": "GoogleCloudVideointelligenceV1beta1_VideoAnnotationResults",
  663. "properties": {
  664. "error": {
  665. "$ref": "GoogleRpc_Status",
  666. "description": "If set, indicates an error. Note that for a single `AnnotateVideoRequest`\nsome videos may succeed and some may fail."
  667. },
  668. "inputUri": {
  669. "description": "Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
  670. "type": "string"
  671. },
  672. "labelAnnotations": {
  673. "description": "Label annotations. There is exactly one element for each unique label.",
  674. "items": {
  675. "$ref": "GoogleCloudVideointelligenceV1beta1_LabelAnnotation"
  676. },
  677. "type": "array"
  678. },
  679. "safeSearchAnnotations": {
  680. "description": "Safe search annotations.",
  681. "items": {
  682. "$ref": "GoogleCloudVideointelligenceV1beta1_SafeSearchAnnotation"
  683. },
  684. "type": "array"
  685. },
  686. "shotAnnotations": {
  687. "description": "Shot annotations. Each shot is represented as a video segment.",
  688. "items": {
  689. "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegment"
  690. },
  691. "type": "array"
  692. }
  693. },
  694. "type": "object"
  695. },
  696. "GoogleCloudVideointelligenceV1beta1_VideoContext": {
  697. "description": "Video context and/or feature-specific parameters.",
  698. "id": "GoogleCloudVideointelligenceV1beta1_VideoContext",
  699. "properties": {
  700. "labelDetectionMode": {
  701. "description": "If label detection has been requested, what labels should be detected\nin addition to video-level labels or segment-level labels. If unspecified,\ndefaults to `SHOT_MODE`.",
  702. "enum": [
  703. "LABEL_DETECTION_MODE_UNSPECIFIED",
  704. "SHOT_MODE",
  705. "FRAME_MODE",
  706. "SHOT_AND_FRAME_MODE"
  707. ],
  708. "enumDescriptions": [
  709. "Unspecified.",
  710. "Detect shot-level labels.",
  711. "Detect frame-level labels.",
  712. "Detect both shot-level and frame-level labels."
  713. ],
  714. "type": "string"
  715. },
  716. "labelDetectionModel": {
  717. "description": "Model to use for label detection.\nSupported values: \"latest\" and \"stable\" (the default).",
  718. "type": "string"
  719. },
  720. "safeSearchDetectionModel": {
  721. "description": "Model to use for safe search detection.\nSupported values: \"latest\" and \"stable\" (the default).",
  722. "type": "string"
  723. },
  724. "segments": {
  725. "description": "Video segments to annotate. The segments may overlap and are not required\nto be contiguous or span the whole video. If unspecified, each video\nis treated as a single segment.",
  726. "items": {
  727. "$ref": "GoogleCloudVideointelligenceV1beta1_VideoSegment"
  728. },
  729. "type": "array"
  730. },
  731. "shotChangeDetectionModel": {
  732. "description": "Model to use for shot change detection.\nSupported values: \"latest\" and \"stable\" (the default).",
  733. "type": "string"
  734. },
  735. "stationaryCamera": {
  736. "description": "Whether the video has been shot from a stationary (i.e. non-moving) camera.\nWhen set to true, might improve detection accuracy for moving objects.",
  737. "type": "boolean"
  738. }
  739. },
  740. "type": "object"
  741. },
  742. "GoogleCloudVideointelligenceV1beta1_VideoSegment": {
  743. "description": "Video segment.",
  744. "id": "GoogleCloudVideointelligenceV1beta1_VideoSegment",
  745. "properties": {
  746. "endTimeOffset": {
  747. "description": "End offset in microseconds (inclusive). Unset means 0.",
  748. "format": "int64",
  749. "type": "string"
  750. },
  751. "startTimeOffset": {
  752. "description": "Start offset in microseconds (inclusive). Unset means 0.",
  753. "format": "int64",
  754. "type": "string"
  755. }
  756. },
  757. "type": "object"
  758. },
  759. "GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress": {
  760. "description": "Video annotation progress. Included in the `metadata`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
  761. "id": "GoogleCloudVideointelligenceV1beta2_AnnotateVideoProgress",
  762. "properties": {
  763. "annotationProgress": {
  764. "description": "Progress metadata for all videos specified in `AnnotateVideoRequest`.",
  765. "items": {
  766. "$ref": "GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress"
  767. },
  768. "type": "array"
  769. }
  770. },
  771. "type": "object"
  772. },
  773. "GoogleCloudVideointelligenceV1beta2_AnnotateVideoResponse": {
  774. "description": "Video annotation response. Included in the `response`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
  775. "id": "GoogleCloudVideointelligenceV1beta2_AnnotateVideoResponse",
  776. "properties": {
  777. "annotationResults": {
  778. "description": "Annotation results for all videos specified in `AnnotateVideoRequest`.",
  779. "items": {
  780. "$ref": "GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults"
  781. },
  782. "type": "array"
  783. }
  784. },
  785. "type": "object"
  786. },
  787. "GoogleCloudVideointelligenceV1beta2_Entity": {
  788. "description": "Detected entity from video analysis.",
  789. "id": "GoogleCloudVideointelligenceV1beta2_Entity",
  790. "properties": {
  791. "description": {
  792. "description": "Textual description, e.g. `Fixed-gear bicycle`.",
  793. "type": "string"
  794. },
  795. "entityId": {
  796. "description": "Opaque entity ID. Some IDs may be available in\n[Google Knowledge Graph Search\nAPI](https://developers.google.com/knowledge-graph/).",
  797. "type": "string"
  798. },
  799. "languageCode": {
  800. "description": "Language code for `description` in BCP-47 format.",
  801. "type": "string"
  802. }
  803. },
  804. "type": "object"
  805. },
  806. "GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation": {
  807. "description": "Explicit content annotation (based on per-frame visual signals only).\nIf no explicit content has been detected in a frame, no annotations are\npresent for that frame.",
  808. "id": "GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation",
  809. "properties": {
  810. "frames": {
  811. "description": "All video frames where explicit content was detected.",
  812. "items": {
  813. "$ref": "GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame"
  814. },
  815. "type": "array"
  816. }
  817. },
  818. "type": "object"
  819. },
  820. "GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame": {
  821. "description": "Video frame level annotation results for explicit content.",
  822. "id": "GoogleCloudVideointelligenceV1beta2_ExplicitContentFrame",
  823. "properties": {
  824. "pornographyLikelihood": {
  825. "description": "Likelihood of the pornography content..",
  826. "enum": [
  827. "LIKELIHOOD_UNSPECIFIED",
  828. "VERY_UNLIKELY",
  829. "UNLIKELY",
  830. "POSSIBLE",
  831. "LIKELY",
  832. "VERY_LIKELY"
  833. ],
  834. "enumDescriptions": [
  835. "Unspecified likelihood.",
  836. "Very unlikely.",
  837. "Unlikely.",
  838. "Possible.",
  839. "Likely.",
  840. "Very likely."
  841. ],
  842. "type": "string"
  843. },
  844. "timeOffset": {
  845. "description": "Time-offset, relative to the beginning of the video, corresponding to the\nvideo frame for this location.",
  846. "format": "google-duration",
  847. "type": "string"
  848. }
  849. },
  850. "type": "object"
  851. },
  852. "GoogleCloudVideointelligenceV1beta2_LabelAnnotation": {
  853. "description": "Label annotation.",
  854. "id": "GoogleCloudVideointelligenceV1beta2_LabelAnnotation",
  855. "properties": {
  856. "categoryEntities": {
  857. "description": "Common categories for the detected entity.\nE.g. when the label is `Terrier` the category is likely `dog`. And in some\ncases there might be more than one categories e.g. `Terrier` could also be\na `pet`.",
  858. "items": {
  859. "$ref": "GoogleCloudVideointelligenceV1beta2_Entity"
  860. },
  861. "type": "array"
  862. },
  863. "entity": {
  864. "$ref": "GoogleCloudVideointelligenceV1beta2_Entity",
  865. "description": "Detected entity."
  866. },
  867. "frames": {
  868. "description": "All video frames where a label was detected.",
  869. "items": {
  870. "$ref": "GoogleCloudVideointelligenceV1beta2_LabelFrame"
  871. },
  872. "type": "array"
  873. },
  874. "segments": {
  875. "description": "All video segments where a label was detected.",
  876. "items": {
  877. "$ref": "GoogleCloudVideointelligenceV1beta2_LabelSegment"
  878. },
  879. "type": "array"
  880. }
  881. },
  882. "type": "object"
  883. },
  884. "GoogleCloudVideointelligenceV1beta2_LabelFrame": {
  885. "description": "Video frame level annotation results for label detection.",
  886. "id": "GoogleCloudVideointelligenceV1beta2_LabelFrame",
  887. "properties": {
  888. "confidence": {
  889. "description": "Confidence that the label is accurate. Range: [0, 1].",
  890. "format": "float",
  891. "type": "number"
  892. },
  893. "timeOffset": {
  894. "description": "Time-offset, relative to the beginning of the video, corresponding to the\nvideo frame for this location.",
  895. "format": "google-duration",
  896. "type": "string"
  897. }
  898. },
  899. "type": "object"
  900. },
  901. "GoogleCloudVideointelligenceV1beta2_LabelSegment": {
  902. "description": "Video segment level annotation results for label detection.",
  903. "id": "GoogleCloudVideointelligenceV1beta2_LabelSegment",
  904. "properties": {
  905. "confidence": {
  906. "description": "Confidence that the label is accurate. Range: [0, 1].",
  907. "format": "float",
  908. "type": "number"
  909. },
  910. "segment": {
  911. "$ref": "GoogleCloudVideointelligenceV1beta2_VideoSegment",
  912. "description": "Video segment where a label was detected."
  913. }
  914. },
  915. "type": "object"
  916. },
  917. "GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress": {
  918. "description": "Annotation progress for a single video.",
  919. "id": "GoogleCloudVideointelligenceV1beta2_VideoAnnotationProgress",
  920. "properties": {
  921. "inputUri": {
  922. "description": "Output only. Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
  923. "type": "string"
  924. },
  925. "progressPercent": {
  926. "description": "Output only. Approximate percentage processed thus far. Guaranteed to be\n100 when fully processed.",
  927. "format": "int32",
  928. "type": "integer"
  929. },
  930. "startTime": {
  931. "description": "Output only. Time when the request was received.",
  932. "format": "google-datetime",
  933. "type": "string"
  934. },
  935. "updateTime": {
  936. "description": "Output only. Time of the most recent update.",
  937. "format": "google-datetime",
  938. "type": "string"
  939. }
  940. },
  941. "type": "object"
  942. },
  943. "GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults": {
  944. "description": "Annotation results for a single video.",
  945. "id": "GoogleCloudVideointelligenceV1beta2_VideoAnnotationResults",
  946. "properties": {
  947. "error": {
  948. "$ref": "GoogleRpc_Status",
  949. "description": "Output only. Non-streaming error only. If set, indicates an error. Note\nthat for a single `AnnotateVideoRequest` some videos may succeed and some\nmay fail."
  950. },
  951. "explicitAnnotation": {
  952. "$ref": "GoogleCloudVideointelligenceV1beta2_ExplicitContentAnnotation",
  953. "description": "Explicit content annotation."
  954. },
  955. "frameLabelAnnotations": {
  956. "description": "Label annotations on frame level.\nThere is exactly one element for each unique label.",
  957. "items": {
  958. "$ref": "GoogleCloudVideointelligenceV1beta2_LabelAnnotation"
  959. },
  960. "type": "array"
  961. },
  962. "inputUri": {
  963. "description": "Output only. Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
  964. "type": "string"
  965. },
  966. "segmentLabelAnnotations": {
  967. "description": "Label annotations on video level or user specified segment level.\nThere is exactly one element for each unique label.",
  968. "items": {
  969. "$ref": "GoogleCloudVideointelligenceV1beta2_LabelAnnotation"
  970. },
  971. "type": "array"
  972. },
  973. "shotAnnotations": {
  974. "description": "Shot annotations. Each shot is represented as a video segment.",
  975. "items": {
  976. "$ref": "GoogleCloudVideointelligenceV1beta2_VideoSegment"
  977. },
  978. "type": "array"
  979. },
  980. "shotLabelAnnotations": {
  981. "description": "Label annotations on shot level.\nThere is exactly one element for each unique label.",
  982. "items": {
  983. "$ref": "GoogleCloudVideointelligenceV1beta2_LabelAnnotation"
  984. },
  985. "type": "array"
  986. }
  987. },
  988. "type": "object"
  989. },
  990. "GoogleCloudVideointelligenceV1beta2_VideoSegment": {
  991. "description": "Video segment.",
  992. "id": "GoogleCloudVideointelligenceV1beta2_VideoSegment",
  993. "properties": {
  994. "endTimeOffset": {
  995. "description": "Time-offset, relative to the beginning of the video,\ncorresponding to the end of the segment (inclusive).",
  996. "format": "google-duration",
  997. "type": "string"
  998. },
  999. "startTimeOffset": {
  1000. "description": "Time-offset, relative to the beginning of the video,\ncorresponding to the start of the segment (inclusive).",
  1001. "format": "google-duration",
  1002. "type": "string"
  1003. }
  1004. },
  1005. "type": "object"
  1006. },
  1007. "GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress": {
  1008. "description": "Video annotation progress. Included in the `metadata`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
  1009. "id": "GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoProgress",
  1010. "properties": {
  1011. "annotationProgress": {
  1012. "description": "Progress metadata for all videos specified in `AnnotateVideoRequest`.",
  1013. "items": {
  1014. "$ref": "GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress"
  1015. },
  1016. "type": "array"
  1017. }
  1018. },
  1019. "type": "object"
  1020. },
  1021. "GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse": {
  1022. "description": "Video annotation response. Included in the `response`\nfield of the `Operation` returned by the `GetOperation`\ncall of the `google::longrunning::Operations` service.",
  1023. "id": "GoogleCloudVideointelligenceV1p1beta1_AnnotateVideoResponse",
  1024. "properties": {
  1025. "annotationResults": {
  1026. "description": "Annotation results for all videos specified in `AnnotateVideoRequest`.",
  1027. "items": {
  1028. "$ref": "GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults"
  1029. },
  1030. "type": "array"
  1031. }
  1032. },
  1033. "type": "object"
  1034. },
  1035. "GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute": {
  1036. "description": "Emotion attribute.",
  1037. "id": "GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute",
  1038. "properties": {
  1039. "emotion": {
  1040. "description": "Emotion entry.",
  1041. "enum": [
  1042. "EMOTION_UNSPECIFIED",
  1043. "AMUSEMENT",
  1044. "ANGER",
  1045. "CONCENTRATION",
  1046. "CONTENTMENT",
  1047. "DESIRE",
  1048. "DISAPPOINTMENT",
  1049. "DISGUST",
  1050. "ELATION",
  1051. "EMBARRASSMENT",
  1052. "INTEREST",
  1053. "PRIDE",
  1054. "SADNESS",
  1055. "SURPRISE"
  1056. ],
  1057. "enumDescriptions": [
  1058. "Unspecified emotion.",
  1059. "Amusement.",
  1060. "Anger.",
  1061. "Concentration.",
  1062. "Contentment.",
  1063. "Desire.",
  1064. "Disappointment.",
  1065. "Disgust.",
  1066. "Elation.",
  1067. "Embarrassment.",
  1068. "Interest.",
  1069. "Pride.",
  1070. "Sadness.",
  1071. "Surprise."
  1072. ],
  1073. "type": "string"
  1074. },
  1075. "score": {
  1076. "description": "Confidence score.",
  1077. "format": "float",
  1078. "type": "number"
  1079. }
  1080. },
  1081. "type": "object"
  1082. },
  1083. "GoogleCloudVideointelligenceV1p1beta1_Entity": {
  1084. "description": "Detected entity from video analysis.",
  1085. "id": "GoogleCloudVideointelligenceV1p1beta1_Entity",
  1086. "properties": {
  1087. "description": {
  1088. "description": "Textual description, e.g. `Fixed-gear bicycle`.",
  1089. "type": "string"
  1090. },
  1091. "entityId": {
  1092. "description": "Opaque entity ID. Some IDs may be available in\n[Google Knowledge Graph Search\nAPI](https://developers.google.com/knowledge-graph/).",
  1093. "type": "string"
  1094. },
  1095. "languageCode": {
  1096. "description": "Language code for `description` in BCP-47 format.",
  1097. "type": "string"
  1098. }
  1099. },
  1100. "type": "object"
  1101. },
  1102. "GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation": {
  1103. "description": "Explicit content annotation (based on per-frame visual signals only).\nIf no explicit content has been detected in a frame, no annotations are\npresent for that frame.",
  1104. "id": "GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation",
  1105. "properties": {
  1106. "frames": {
  1107. "description": "All video frames where explicit content was detected.",
  1108. "items": {
  1109. "$ref": "GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame"
  1110. },
  1111. "type": "array"
  1112. }
  1113. },
  1114. "type": "object"
  1115. },
  1116. "GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame": {
  1117. "description": "Video frame level annotation results for explicit content.",
  1118. "id": "GoogleCloudVideointelligenceV1p1beta1_ExplicitContentFrame",
  1119. "properties": {
  1120. "pornographyLikelihood": {
  1121. "description": "Likelihood of the pornography content..",
  1122. "enum": [
  1123. "LIKELIHOOD_UNSPECIFIED",
  1124. "VERY_UNLIKELY",
  1125. "UNLIKELY",
  1126. "POSSIBLE",
  1127. "LIKELY",
  1128. "VERY_LIKELY"
  1129. ],
  1130. "enumDescriptions": [
  1131. "Unspecified likelihood.",
  1132. "Very unlikely.",
  1133. "Unlikely.",
  1134. "Possible.",
  1135. "Likely.",
  1136. "Very likely."
  1137. ],
  1138. "type": "string"
  1139. },
  1140. "timeOffset": {
  1141. "description": "Time-offset, relative to the beginning of the video, corresponding to the\nvideo frame for this location.",
  1142. "format": "google-duration",
  1143. "type": "string"
  1144. }
  1145. },
  1146. "type": "object"
  1147. },
  1148. "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation": {
  1149. "description": "Face detection annotation.",
  1150. "id": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation",
  1151. "properties": {
  1152. "frames": {
  1153. "description": "All video frames where a face was detected.",
  1154. "items": {
  1155. "$ref": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame"
  1156. },
  1157. "type": "array"
  1158. },
  1159. "segments": {
  1160. "description": "All video segments where a face was detected.",
  1161. "items": {
  1162. "$ref": "GoogleCloudVideointelligenceV1p1beta1_FaceSegment"
  1163. },
  1164. "type": "array"
  1165. }
  1166. },
  1167. "type": "object"
  1168. },
  1169. "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute": {
  1170. "description": "Face detection attribute.",
  1171. "id": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute",
  1172. "properties": {
  1173. "emotions": {
  1174. "description": "Emotion attributes.",
  1175. "items": {
  1176. "$ref": "GoogleCloudVideointelligenceV1p1beta1_EmotionAttribute"
  1177. },
  1178. "type": "array"
  1179. },
  1180. "normalizedBoundingBox": {
  1181. "$ref": "GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox",
  1182. "description": "Normalized Bounding box."
  1183. }
  1184. },
  1185. "type": "object"
  1186. },
  1187. "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame": {
  1188. "description": "Video frame level annotation results for face detection.",
  1189. "id": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionFrame",
  1190. "properties": {
  1191. "attributes": {
  1192. "description": "Face attributes in a frame.\nThere can be more than one attributes if the same face is detected in\nmultiple locations within the current frame.",
  1193. "items": {
  1194. "$ref": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAttribute"
  1195. },
  1196. "type": "array"
  1197. },
  1198. "timeOffset": {
  1199. "description": "Time-offset, relative to the beginning of the video,\ncorresponding to the video frame for this location.",
  1200. "format": "google-duration",
  1201. "type": "string"
  1202. }
  1203. },
  1204. "type": "object"
  1205. },
  1206. "GoogleCloudVideointelligenceV1p1beta1_FaceSegment": {
  1207. "description": "Video segment level annotation results for face detection.",
  1208. "id": "GoogleCloudVideointelligenceV1p1beta1_FaceSegment",
  1209. "properties": {
  1210. "segment": {
  1211. "$ref": "GoogleCloudVideointelligenceV1p1beta1_VideoSegment",
  1212. "description": "Video segment where a face was detected."
  1213. }
  1214. },
  1215. "type": "object"
  1216. },
  1217. "GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation": {
  1218. "description": "Label annotation.",
  1219. "id": "GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation",
  1220. "properties": {
  1221. "categoryEntities": {
  1222. "description": "Common categories for the detected entity.\nE.g. when the label is `Terrier` the category is likely `dog`. And in some\ncases there might be more than one categories e.g. `Terrier` could also be\na `pet`.",
  1223. "items": {
  1224. "$ref": "GoogleCloudVideointelligenceV1p1beta1_Entity"
  1225. },
  1226. "type": "array"
  1227. },
  1228. "entity": {
  1229. "$ref": "GoogleCloudVideointelligenceV1p1beta1_Entity",
  1230. "description": "Detected entity."
  1231. },
  1232. "frames": {
  1233. "description": "All video frames where a label was detected.",
  1234. "items": {
  1235. "$ref": "GoogleCloudVideointelligenceV1p1beta1_LabelFrame"
  1236. },
  1237. "type": "array"
  1238. },
  1239. "segments": {
  1240. "description": "All video segments where a label was detected.",
  1241. "items": {
  1242. "$ref": "GoogleCloudVideointelligenceV1p1beta1_LabelSegment"
  1243. },
  1244. "type": "array"
  1245. }
  1246. },
  1247. "type": "object"
  1248. },
  1249. "GoogleCloudVideointelligenceV1p1beta1_LabelFrame": {
  1250. "description": "Video frame level annotation results for label detection.",
  1251. "id": "GoogleCloudVideointelligenceV1p1beta1_LabelFrame",
  1252. "properties": {
  1253. "confidence": {
  1254. "description": "Confidence that the label is accurate. Range: [0, 1].",
  1255. "format": "float",
  1256. "type": "number"
  1257. },
  1258. "timeOffset": {
  1259. "description": "Time-offset, relative to the beginning of the video, corresponding to the\nvideo frame for this location.",
  1260. "format": "google-duration",
  1261. "type": "string"
  1262. }
  1263. },
  1264. "type": "object"
  1265. },
  1266. "GoogleCloudVideointelligenceV1p1beta1_LabelSegment": {
  1267. "description": "Video segment level annotation results for label detection.",
  1268. "id": "GoogleCloudVideointelligenceV1p1beta1_LabelSegment",
  1269. "properties": {
  1270. "confidence": {
  1271. "description": "Confidence that the label is accurate. Range: [0, 1].",
  1272. "format": "float",
  1273. "type": "number"
  1274. },
  1275. "segment": {
  1276. "$ref": "GoogleCloudVideointelligenceV1p1beta1_VideoSegment",
  1277. "description": "Video segment where a label was detected."
  1278. }
  1279. },
  1280. "type": "object"
  1281. },
  1282. "GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox": {
  1283. "description": "Normalized bounding box.\nThe normalized vertex coordinates are relative to the original image.\nRange: [0, 1].",
  1284. "id": "GoogleCloudVideointelligenceV1p1beta1_NormalizedBoundingBox",
  1285. "properties": {
  1286. "bottom": {
  1287. "description": "Bottom Y coordinate.",
  1288. "format": "float",
  1289. "type": "number"
  1290. },
  1291. "left": {
  1292. "description": "Left X coordinate.",
  1293. "format": "float",
  1294. "type": "number"
  1295. },
  1296. "right": {
  1297. "description": "Right X coordinate.",
  1298. "format": "float",
  1299. "type": "number"
  1300. },
  1301. "top": {
  1302. "description": "Top Y coordinate.",
  1303. "format": "float",
  1304. "type": "number"
  1305. }
  1306. },
  1307. "type": "object"
  1308. },
  1309. "GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative": {
  1310. "description": "Alternative hypotheses (a.k.a. n-best list).",
  1311. "id": "GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative",
  1312. "properties": {
  1313. "confidence": {
  1314. "description": "Output only. The confidence estimate between 0.0 and 1.0. A higher number\nindicates an estimated greater likelihood that the recognized words are\ncorrect. This field is typically provided only for the top hypothesis, and\nonly for `is_final=true` results. Clients should not rely on the\n`confidence` field as it is not guaranteed to be accurate or consistent.\nThe default of 0.0 is a sentinel value indicating `confidence` was not set.",
  1315. "format": "float",
  1316. "type": "number"
  1317. },
  1318. "transcript": {
  1319. "description": "Output only. Transcript text representing the words that the user spoke.",
  1320. "type": "string"
  1321. },
  1322. "words": {
  1323. "description": "Output only. A list of word-specific information for each recognized word.",
  1324. "items": {
  1325. "$ref": "GoogleCloudVideointelligenceV1p1beta1_WordInfo"
  1326. },
  1327. "type": "array"
  1328. }
  1329. },
  1330. "type": "object"
  1331. },
  1332. "GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription": {
  1333. "description": "A speech recognition result corresponding to a portion of the audio.",
  1334. "id": "GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription",
  1335. "properties": {
  1336. "alternatives": {
  1337. "description": "Output only. May contain one or more recognition hypotheses (up to the\nmaximum specified in `max_alternatives`).\nThese alternatives are ordered in terms of accuracy, with the top (first)\nalternative being the most probable, as ranked by the recognizer.",
  1338. "items": {
  1339. "$ref": "GoogleCloudVideointelligenceV1p1beta1_SpeechRecognitionAlternative"
  1340. },
  1341. "type": "array"
  1342. }
  1343. },
  1344. "type": "object"
  1345. },
  1346. "GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress": {
  1347. "description": "Annotation progress for a single video.",
  1348. "id": "GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationProgress",
  1349. "properties": {
  1350. "inputUri": {
  1351. "description": "Output only. Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
  1352. "type": "string"
  1353. },
  1354. "progressPercent": {
  1355. "description": "Output only. Approximate percentage processed thus far. Guaranteed to be\n100 when fully processed.",
  1356. "format": "int32",
  1357. "type": "integer"
  1358. },
  1359. "startTime": {
  1360. "description": "Output only. Time when the request was received.",
  1361. "format": "google-datetime",
  1362. "type": "string"
  1363. },
  1364. "updateTime": {
  1365. "description": "Output only. Time of the most recent update.",
  1366. "format": "google-datetime",
  1367. "type": "string"
  1368. }
  1369. },
  1370. "type": "object"
  1371. },
  1372. "GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults": {
  1373. "description": "Annotation results for a single video.",
  1374. "id": "GoogleCloudVideointelligenceV1p1beta1_VideoAnnotationResults",
  1375. "properties": {
  1376. "error": {
  1377. "$ref": "GoogleRpc_Status",
  1378. "description": "Output only. Non-streaming error only. If set, indicates an error. Note\nthat for a single `AnnotateVideoRequest` some videos may succeed and some\nmay fail."
  1379. },
  1380. "explicitAnnotation": {
  1381. "$ref": "GoogleCloudVideointelligenceV1p1beta1_ExplicitContentAnnotation",
  1382. "description": "Explicit content annotation."
  1383. },
  1384. "faceDetectionAnnotations": {
  1385. "description": "Face detection annotations.",
  1386. "items": {
  1387. "$ref": "GoogleCloudVideointelligenceV1p1beta1_FaceDetectionAnnotation"
  1388. },
  1389. "type": "array"
  1390. },
  1391. "frameLabelAnnotations": {
  1392. "description": "Label annotations on frame level.\nThere is exactly one element for each unique label.",
  1393. "items": {
  1394. "$ref": "GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation"
  1395. },
  1396. "type": "array"
  1397. },
  1398. "inputUri": {
  1399. "description": "Output only. Video file location in\n[Google Cloud Storage](https://cloud.google.com/storage/).",
  1400. "type": "string"
  1401. },
  1402. "segmentLabelAnnotations": {
  1403. "description": "Label annotations on video level or user specified segment level.\nThere is exactly one element for each unique label.",
  1404. "items": {
  1405. "$ref": "GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation"
  1406. },
  1407. "type": "array"
  1408. },
  1409. "shotAnnotations": {
  1410. "description": "Shot annotations. Each shot is represented as a video segment.",
  1411. "items": {
  1412. "$ref": "GoogleCloudVideointelligenceV1p1beta1_VideoSegment"
  1413. },
  1414. "type": "array"
  1415. },
  1416. "shotLabelAnnotations": {
  1417. "description": "Label annotations on shot level.\nThere is exactly one element for each unique label.",
  1418. "items": {
  1419. "$ref": "GoogleCloudVideointelligenceV1p1beta1_LabelAnnotation"
  1420. },
  1421. "type": "array"
  1422. },
  1423. "speechTranscriptions": {
  1424. "description": "Speech transcription.",
  1425. "items": {
  1426. "$ref": "GoogleCloudVideointelligenceV1p1beta1_SpeechTranscription"
  1427. },
  1428. "type": "array"
  1429. }
  1430. },
  1431. "type": "object"
  1432. },
  1433. "GoogleCloudVideointelligenceV1p1beta1_VideoSegment": {
  1434. "description": "Video segment.",
  1435. "id": "GoogleCloudVideointelligenceV1p1beta1_VideoSegment",
  1436. "properties": {
  1437. "endTimeOffset": {
  1438. "description": "Time-offset, relative to the beginning of the video,\ncorresponding to the end of the segment (inclusive).",
  1439. "format": "google-duration",
  1440. "type": "string"
  1441. },
  1442. "startTimeOffset": {
  1443. "description": "Time-offset, relative to the beginning of the video,\ncorresponding to the start of the segment (inclusive).",
  1444. "format": "google-duration",
  1445. "type": "string"
  1446. }
  1447. },
  1448. "type": "object"
  1449. },
  1450. "GoogleCloudVideointelligenceV1p1beta1_WordInfo": {
  1451. "description": "Word-specific information for recognized words. Word information is only\nincluded in the response when certain request parameters are set, such\nas `enable_word_time_offsets`.",
  1452. "id": "GoogleCloudVideointelligenceV1p1beta1_WordInfo",
  1453. "properties": {
  1454. "endTime": {
  1455. "description": "Output only. Time offset relative to the beginning of the audio, and\ncorresponding to the end of the spoken word. This field is only set if\n`enable_word_time_offsets=true` and only in the top hypothesis. This is an\nexperimental feature and the accuracy of the time offset can vary.",
  1456. "format": "google-duration",
  1457. "type": "string"
  1458. },
  1459. "startTime": {
  1460. "description": "Output only. Time offset relative to the beginning of the audio, and\ncorresponding to the start of the spoken word. This field is only set if\n`enable_word_time_offsets=true` and only in the top hypothesis. This is an\nexperimental feature and the accuracy of the time offset can vary.",
  1461. "format": "google-duration",
  1462. "type": "string"
  1463. },
  1464. "word": {
  1465. "description": "Output only. The word corresponding to this set of information.",
  1466. "type": "string"
  1467. }
  1468. },
  1469. "type": "object"
  1470. },
  1471. "GoogleLongrunning_Operation": {
  1472. "description": "This resource represents a long-running operation that is the result of a\nnetwork API call.",
  1473. "id": "GoogleLongrunning_Operation",
  1474. "properties": {
  1475. "done": {
  1476. "description": "If the value is `false`, it means the operation is still in progress.\nIf `true`, the operation is completed, and either `error` or `response` is\navailable.",
  1477. "type": "boolean"
  1478. },
  1479. "error": {
  1480. "$ref": "GoogleRpc_Status",
  1481. "description": "The error result of the operation in case of failure or cancellation."
  1482. },
  1483. "metadata": {
  1484. "additionalProperties": {
  1485. "description": "Properties of the object. Contains field @type with type URL.",
  1486. "type": "any"
  1487. },
  1488. "description": "Service-specific metadata associated with the operation. It typically\ncontains progress information and common metadata such as create time.\nSome services might not provide such metadata. Any method that returns a\nlong-running operation should document the metadata type, if any.",
  1489. "type": "object"
  1490. },
  1491. "name": {
  1492. "description": "The server-assigned name, which is only unique within the same service that\noriginally returns it. If you use the default HTTP mapping, the\n`name` should have the format of `operations/some/unique/name`.",
  1493. "type": "string"
  1494. },
  1495. "response": {
  1496. "additionalProperties": {
  1497. "description": "Properties of the object. Contains field @type with type URL.",
  1498. "type": "any"
  1499. },
  1500. "description": "The normal response of the operation in case of success. If the original\nmethod returns no data on success, such as `Delete`, the response is\n`google.protobuf.Empty`. If the original method is standard\n`Get`/`Create`/`Update`, the response should be the resource. For other\nmethods, the response should have the type `XxxResponse`, where `Xxx`\nis the original method name. For example, if the original method name\nis `TakeSnapshot()`, the inferred response type is\n`TakeSnapshotResponse`.",
  1501. "type": "object"
  1502. }
  1503. },
  1504. "type": "object"
  1505. },
  1506. "GoogleRpc_Status": {
  1507. "description": "The `Status` type defines a logical error model that is suitable for different\nprogramming environments, including REST APIs and RPC APIs. It is used by\n[gRPC](https://github.com/grpc). The error model is designed to be:\n\n- Simple to use and understand for most users\n- Flexible enough to meet unexpected needs\n\n# Overview\n\nThe `Status` message contains three pieces of data: error code, error message,\nand error details. The error code should 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 that helps\ndevelopers *understand* and *resolve* the error. If a localized user-facing\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\ninformation 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# Language 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` message is\nexposed in different client libraries and different wire protocols, it can be\nmapped differently. For example, it will likely be mapped to some exceptions\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\nenvironments, 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 may\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 results 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 stored in logs, the message `Status` could\n be used directly after any stripping needed for security/privacy reasons.",
  1508. "id": "GoogleRpc_Status",
  1509. "properties": {
  1510. "code": {
  1511. "description": "The status code, which should be an enum value of google.rpc.Code.",
  1512. "format": "int32",
  1513. "type": "integer"
  1514. },
  1515. "details": {
  1516. "description": "A list of messages that carry the error details. There is a common set of\nmessage types for APIs to use.",
  1517. "items": {
  1518. "additionalProperties": {
  1519. "description": "Properties of the object. Contains field @type with type URL.",
  1520. "type": "any"
  1521. },
  1522. "type": "object"
  1523. },
  1524. "type": "array"
  1525. },
  1526. "message": {
  1527. "description": "A developer-facing error message, which should be in English. Any\nuser-facing error message should be localized and sent in the\ngoogle.rpc.Status.details field, or localized by the client.",
  1528. "type": "string"
  1529. }
  1530. },
  1531. "type": "object"
  1532. }
  1533. },
  1534. "servicePath": "",
  1535. "title": "Cloud Video Intelligence API",
  1536. "version": "v1beta1",
  1537. "version_module": true
  1538. }