-
Notifications
You must be signed in to change notification settings - Fork 591
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Video Intelligence (GAPIC only) #2318
Merged
Merged
Changes from 12 commits
Commits
Show all changes
14 commits
Select commit
Hold shift + click to select a range
e1cba42
Add video intelligence GAPIC-only release.
38d576a
Make video intelligence GAPIC-only conform to Vision semi-GAPIC idioms.
62ee805
Merge branch 'public-master' into videointelligence
lukesneeringer 3e65573
Updates based on CI and @stephenplusplus feedback.
lukesneeringer fe021c0
Add publish-module'
lukesneeringer 75c0b64
Fix lint.
lukesneeringer 2aba91f
Derp.
lukesneeringer 704b653
Ignore videointelligence for docs.
lukesneeringer 0b2f332
Fix a stupid error.
lukesneeringer 54a4a30
Hyphens, how do they work?
lukesneeringer df81904
update deps
stephenplusplus 4785160
add intro, docs, params
stephenplusplus bb3c63f
add VI to docs config
stephenplusplus d328897
remove through2 from dev deps
stephenplusplus File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,3 +2,5 @@ | |
**/system-test/*/**/* | ||
**/test/*/**/* | ||
**/node_modules/ | ||
**/coverage | ||
**/gapic*.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
{ | ||
"name": "@google-cloud/video-intelligence", | ||
"repository": "googlecloudplatform/google-cloud-node", | ||
"version": "0.0.0", | ||
"author": "Google Inc", | ||
"description": "Google Cloud Video Intelligence API client for Node.js", | ||
"main": "src/index.js", | ||
"files": [ | ||
"src" | ||
], | ||
"dependencies": { | ||
"google-proto-files": "^0.12.0", | ||
"google-gax": "^0.13.2", | ||
"extend": "^3.0.0" | ||
}, | ||
"devDependencies": { | ||
"mocha": "3.2.0", | ||
"through2": "2.0.3" | ||
}, | ||
"license": "Apache-2.0", | ||
"engines": { | ||
"node": ">=4.0.0" | ||
}, | ||
"scripts": { | ||
"publish-module": "node ../../scripts/publish.js video-intelligence", | ||
"test": "mocha" | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,72 @@ | ||
/* | ||
* Copyright 2017 Google Inc. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
|
||
/*! | ||
* @module video-intelligence | ||
*/ | ||
|
||
'use strict'; | ||
|
||
var v1beta1 = require('./v1beta1/index.js'); | ||
|
||
const VERSION = require('../package.json').version; | ||
|
||
/** | ||
* [Google Cloud Video Intelligence API](https://cloud.google.com/video-intelligence) | ||
* makes videos searchable, and discoverable, by extracting metadata with an | ||
* easy to use REST API. You can now search every moment of every video file in | ||
* your catalog and find every occurrence as well as its significance. It | ||
* quickly annotates videos stored in Google Cloud Storage, and helps you | ||
* identify key nouns entities of your video, and when they occur within the | ||
* video. Separate signal from noise, by retrieving relevant information at the | ||
* video, shot or per frame. | ||
* | ||
* <h2>This is an auto-generated API</h2> | ||
* | ||
* It does not follow the conventions you're familiar with from other parts of | ||
* our library. A handwritten layer is not yet available. | ||
* | ||
* The example below shows you how to instantiate the generated client. For | ||
* further documentation, please browse the | ||
* [Video Intelligence .proto files](https://github.com/googleapis/googleapis/blob/master/google/cloud/videointelligence/v1beta1/video_intelligence.proto) | ||
* on GitHub. | ||
* | ||
* @constructor | ||
* @alias module:video-intelligence | ||
* | ||
* @resource [Cloud Video Intelligence](https://cloud.google.com/video-intelligence) | ||
* | ||
* @param {object} options - [Configuration object](#/docs). | ||
* @param {number=} options.port - The port on which to connect to the remote | ||
* host. | ||
* @param {string=} options.servicePath - The domain name of the API remote | ||
* host. | ||
*/ | ||
function VideoIntelligence(options) { | ||
// Define the header options. | ||
options = options || {}; | ||
options.libName = 'gccl'; | ||
options.libVersion = VERSION; | ||
|
||
// Create the image annotator client with the provided options. | ||
var client = v1beta1(options).videoIntelligenceServiceClient(options); | ||
return client; | ||
} | ||
|
||
// The default export should be the latest version. | ||
// Assign all versions as version properties on the default. | ||
module.exports = VideoIntelligence; | ||
module.exports.v1beta1 = v1beta1; | ||
This comment was marked as spam.
Sorry, something went wrong. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,34 @@ | ||
/* | ||
* Copyright 2017 Google Inc. All rights reserved. | ||
* | ||
* Licensed under the Apache License, Version 2.0 (the "License"); | ||
* you may not use this file except in compliance with the License. | ||
* You may obtain a copy of the License at | ||
* | ||
* http://www.apache.org/licenses/LICENSE-2.0 | ||
* | ||
* Unless required by applicable law or agreed to in writing, software | ||
* distributed under the License is distributed on an "AS IS" BASIS, | ||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. | ||
* See the License for the specific language governing permissions and | ||
* limitations under the License. | ||
*/ | ||
'use strict'; | ||
|
||
var videoIntelligenceServiceClient = require('./video_intelligence_service_client'); | ||
var gax = require('google-gax'); | ||
var extend = require('extend'); | ||
|
||
function v1beta1(options) { | ||
options = extend({ | ||
scopes: v1beta1.ALL_SCOPES | ||
}, options); | ||
var gaxGrpc = gax.grpc(options); | ||
return videoIntelligenceServiceClient(gaxGrpc); | ||
} | ||
|
||
v1beta1.GAPIC_VERSION = '0.7.1'; | ||
v1beta1.SERVICE_ADDRESS = videoIntelligenceServiceClient.SERVICE_ADDRESS; | ||
v1beta1.ALL_SCOPES = videoIntelligenceServiceClient.ALL_SCOPES; | ||
|
||
module.exports = v1beta1; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This comment was marked as spam.
Sorry, something went wrong.