Skip to content
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 14 commits into from
May 18, 2017
4 changes: 3 additions & 1 deletion .jscsrc
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
"excludeFiles": [
"**/src/*/**/*",
"**/system-test/*/**/*",
"**/test/**/gapic-*.js",
"**/test/*/**/*",
"**/node_modules/"
"**/node_modules/",
"**/.coverage/**/*.js",
]
}
2 changes: 2 additions & 0 deletions .jshintignore
Original file line number Diff line number Diff line change
Expand Up @@ -2,3 +2,5 @@
**/system-test/*/**/*
**/test/*/**/*
**/node_modules/
**/coverage
**/gapic*.js
28 changes: 28 additions & 0 deletions packages/video-intelligence/package.json
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 comment was marked as spam.

}
}
72 changes: 72 additions & 0 deletions packages/video-intelligence/src/index.js
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.

34 changes: 34 additions & 0 deletions packages/video-intelligence/src/v1beta1/index.js
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;
Loading