-
Notifications
You must be signed in to change notification settings - Fork 598
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update videointelligence v1beta1 client
- Loading branch information
Showing
6 changed files
with
80 additions
and
83 deletions.
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
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 |
---|---|---|
@@ -1,72 +1,60 @@ | ||
/* | ||
* Copyright 2017 Google Inc. All rights reserved. | ||
* 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 | ||
* 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'); | ||
var extend = require('extend'); | ||
var gapic = { | ||
v1beta1: require('./v1beta1') | ||
}; | ||
var gaxGrpc = require('google-gax').grpc(); | ||
|
||
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. | ||
* Create an videoIntelligenceServiceClient with additional helpers for common | ||
* tasks. | ||
* | ||
* 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. | ||
* Service that implements Google Cloud Video Intelligence API. | ||
* | ||
* @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. | ||
* @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) { | ||
function videoIntelligenceV1beta1(options) { | ||
// Define the header options. | ||
options = options || {}; | ||
options.libName = 'gccl'; | ||
options.libVersion = VERSION; | ||
options = extend({}, options, { | ||
libName: 'gccl', | ||
libVersion: VERSION | ||
}); | ||
|
||
// Create the image annotator client with the provided options. | ||
var client = v1beta1(options).videoIntelligenceServiceClient(options); | ||
// Create the client with the provided options. | ||
var client = gapic.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; | ||
var v1beta1Protos = {}; | ||
|
||
extend(v1beta1Protos, gaxGrpc.load([{ | ||
root: require('google-proto-files')('..'), | ||
file: 'google/cloud/videointelligence/v1beta1/video_intelligence.proto' | ||
}]).google.cloud.videointelligence.v1beta1); | ||
|
||
module.exports = videoIntelligenceV1beta1; | ||
module.exports.types = v1beta1Protos; | ||
module.exports.v1beta1 = videoIntelligenceV1beta1; | ||
module.exports.v1beta1.types = v1beta1Protos; |
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
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