Skip to content

Commit 7454e9e

Browse files
committed
VideoIntelligence: regeneration
1 parent b9b7dfa commit 7454e9e

9 files changed

Lines changed: 811 additions & 82 deletions

File tree

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
# Node.js Client for Google Cloud Video Intelligence API ([Alpha](https://github.com/GoogleCloudPlatform/google-cloud-node#versioning))
1+
# Node.js Client for Google Cloud Video Intelligence API ([Beta](https://github.com/GoogleCloudPlatform/google-cloud-node#versioning))
22

3-
Idiomatic Node.js client for [Google Cloud Video Intelligence API][Product Documentation]
3+
[Google Cloud Video Intelligence API][Product Documentation]: Google Cloud Video Intelligence API.
44
- [Client Library Documentation][]
55
- [Product Documentation][]
66

77
## Quick Start
88
In order to use this library, you first need to go through the following steps:
99

1010
1. [Select or create a Cloud Platform project.](https://console.cloud.google.com/project)
11-
2. [Enable the video-intelligence api.](https://console.cloud.google.com/apis/api/video-intelligence)
11+
2. [Enable the Google Cloud Video Intelligence API.](https://console.cloud.google.com/apis/api/video-intelligence)
1212
3. [Setup Authentication.](https://googlecloudplatform.github.io/google-cloud-node/#/docs/google-cloud/master/guides/authentication)
1313

1414
### Installation
1515
```
16-
$ npm install @google-cloud/video-intelligence
16+
$ npm install --save @google-cloud/videointelligence
1717
```
1818

1919
### Next Steps
@@ -22,4 +22,4 @@ $ npm install @google-cloud/video-intelligence
2222
- View this [repository's main README](https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/README.md) to see the full list of Cloud APIs that we cover.
2323

2424
[Client Library Documentation]: https://googlecloudplatform.github.io/google-cloud-node/#/docs/video-intelligence
25-
[Product Documentation]: https://cloud.google.com/video-intelligence
25+
[Product Documentation]: https://cloud.google.com/video-intelligence

packages/video-intelligence/package.json

Lines changed: 9 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
{
2+
"repository": "GoogleCloudPlatform/google-cloud-node",
23
"name": "@google-cloud/video-intelligence",
34
"version": "0.1.0",
45
"author": "Google Inc",
@@ -7,10 +8,8 @@
78
"files": [
89
"src",
910
"AUTHORS",
10-
"CONTRIBUTORS",
1111
"COPYING"
1212
],
13-
"repository": "googlecloudplatform/google-cloud-node",
1413
"keywords": [
1514
"google apis client",
1615
"google api client",
@@ -20,20 +19,22 @@
2019
"google cloud platform",
2120
"google cloud",
2221
"cloud",
23-
"google video intelligence",
24-
"video intelligence",
25-
"video"
22+
"google video-intelligence",
23+
"video-intelligence",
24+
"Google Cloud Video Intelligence API"
2625
],
2726
"dependencies": {
28-
"extend": "^3.0.0",
27+
"google-proto-files": "^0.12.0",
2928
"google-gax": "^0.13.2",
30-
"google-proto-files": "^0.12.0"
29+
"extend": "^3.0.0"
3130
},
3231
"devDependencies": {
33-
"mocha": "^3.2.0"
32+
"mocha": "^3.2.0",
33+
"through2": "^2.0.3"
3434
},
3535
"scripts": {
3636
"publish-module": "node ../../scripts/publish.js video-intelligence",
37+
"smoke-test": "mocha smoke-test/*.js --timeout 5000",
3738
"test": "mocha test/*.js"
3839
},
3940
"license": "Apache-2.0",
Lines changed: 33 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -1,72 +1,60 @@
11
/*
2-
* Copyright 2017 Google Inc. All rights reserved.
2+
* Copyright 2017, Google Inc. All rights reserved.
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
77
*
8-
* http://www.apache.org/licenses/LICENSE-2.0
8+
* http://www.apache.org/licenses/LICENSE-2.0
99
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1313
* See the License for the specific language governing permissions and
1414
* limitations under the License.
1515
*/
16-
17-
/*!
18-
* @module video-intelligence
19-
*/
20-
2116
'use strict';
2217

23-
var v1beta1 = require('./v1beta1/index.js');
18+
var extend = require('extend');
19+
var gapic = {
20+
v1beta1: require('./v1beta1')
21+
};
22+
var gaxGrpc = require('google-gax').grpc();
2423

2524
const VERSION = require('../package.json').version;
2625

2726
/**
28-
* [Google Cloud Video Intelligence API](https://cloud.google.com/video-intelligence)
29-
* makes videos searchable, and discoverable, by extracting metadata with an
30-
* easy to use REST API. You can now search every moment of every video file in
31-
* your catalog and find every occurrence as well as its significance. It
32-
* quickly annotates videos stored in Google Cloud Storage, and helps you
33-
* identify key nouns entities of your video, and when they occur within the
34-
* video. Separate signal from noise, by retrieving relevant information at the
35-
* video, shot or per frame.
36-
*
37-
* <h2>This is an auto-generated API</h2>
38-
*
39-
* It does not follow the conventions you're familiar with from other parts of
40-
* our library. A handwritten layer is not yet available.
27+
* Create an videoIntelligenceServiceClient with additional helpers for common
28+
* tasks.
4129
*
42-
* The example below shows you how to instantiate the generated client. For
43-
* further documentation, please browse the
44-
* [Video Intelligence .proto files](https://github.com/googleapis/googleapis/blob/master/google/cloud/videointelligence/v1beta1/video_intelligence.proto)
45-
* on GitHub.
30+
* Service that implements Google Cloud Video Intelligence API.
4631
*
47-
* @constructor
48-
* @alias module:video-intelligence
49-
*
50-
* @resource [Cloud Video Intelligence](https://cloud.google.com/video-intelligence)
51-
*
52-
* @param {object} options - [Configuration object](#/docs).
53-
* @param {number=} options.port - The port on which to connect to the remote
54-
* host.
55-
* @param {string=} options.servicePath - The domain name of the API remote
56-
* host.
32+
* @param {object=} options - [Configuration object](#/docs).
33+
* @param {number=} options.port - The port on which to connect to
34+
* the remote host.
35+
* @param {string=} options.servicePath - The domain name of the
36+
* API remote host.
5737
*/
58-
function VideoIntelligence(options) {
38+
function videoIntelligenceV1beta1(options) {
5939
// Define the header options.
60-
options = options || {};
61-
options.libName = 'gccl';
62-
options.libVersion = VERSION;
40+
options = extend({}, options, {
41+
libName: 'gccl',
42+
libVersion: VERSION
43+
});
6344

64-
// Create the image annotator client with the provided options.
65-
var client = v1beta1(options).videoIntelligenceServiceClient(options);
45+
// Create the client with the provided options.
46+
var client = gapic.v1beta1(options).videoIntelligenceServiceClient(options);
6647
return client;
6748
}
6849

69-
// The default export should be the latest version.
70-
// Assign all versions as version properties on the default.
71-
module.exports = VideoIntelligence;
72-
module.exports.v1beta1 = v1beta1;
50+
var v1beta1Protos = {};
51+
52+
extend(v1beta1Protos, gaxGrpc.load([{
53+
root: require('google-proto-files')('..'),
54+
file: 'google/cloud/videointelligence/v1beta1/video_intelligence.proto'
55+
}]).google.cloud.videointelligence.v1beta1);
56+
57+
module.exports = videoIntelligenceV1beta1;
58+
module.exports.types = v1beta1Protos;
59+
module.exports.v1beta1 = videoIntelligenceV1beta1;
60+
module.exports.v1beta1.types = v1beta1Protos;
Lines changed: 121 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,121 @@
1+
/*
2+
* Copyright 2017, Google Inc. All rights reserved.
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
17+
/*
18+
* Note: this file is purely for documentation. Any contents are not expected
19+
* to be loaded as the JS file.
20+
*/
21+
22+
/**
23+
* `Any` contains an arbitrary serialized protocol buffer message along with a
24+
* URL that describes the type of the serialized message.
25+
*
26+
* Protobuf library provides support to pack/unpack Any values in the form
27+
* of utility functions or additional generated methods of the Any type.
28+
*
29+
* Example 1: Pack and unpack a message in C++.
30+
*
31+
* Foo foo = ...;
32+
* Any any;
33+
* any.PackFrom(foo);
34+
* ...
35+
* if (any.UnpackTo(&foo)) {
36+
* ...
37+
* }
38+
*
39+
* Example 2: Pack and unpack a message in Java.
40+
*
41+
* Foo foo = ...;
42+
* Any any = Any.pack(foo);
43+
* ...
44+
* if (any.is(Foo.class)) {
45+
* foo = any.unpack(Foo.class);
46+
* }
47+
*
48+
* Example 3: Pack and unpack a message in Python.
49+
*
50+
* foo = Foo(...)
51+
* any = Any()
52+
* any.Pack(foo)
53+
* ...
54+
* if any.Is(Foo.DESCRIPTOR):
55+
* any.Unpack(foo)
56+
* ...
57+
*
58+
* The pack methods provided by protobuf library will by default use
59+
* 'type.googleapis.com/full.type.name' as the type URL and the unpack
60+
* methods only use the fully qualified type name after the last '/'
61+
* in the type URL, for example "foo.bar.com/x/y.z" will yield type
62+
* name "y.z".
63+
*
64+
*
65+
* # JSON
66+
*
67+
* The JSON representation of an `Any` value uses the regular
68+
* representation of the deserialized, embedded message, with an
69+
* additional field `@type` which contains the type URL. Example:
70+
*
71+
* package google.profile;
72+
* message Person {
73+
* string first_name = 1;
74+
* string last_name = 2;
75+
* }
76+
*
77+
* {
78+
* "@type": "type.googleapis.com/google.profile.Person",
79+
* "firstName": <string>,
80+
* "lastName": <string>
81+
* }
82+
*
83+
* If the embedded message type is well-known and has a custom JSON
84+
* representation, that representation will be embedded adding a field
85+
* `value` which holds the custom JSON in addition to the `@type`
86+
* field. Example (for message {@link google.protobuf.Duration}):
87+
*
88+
* {
89+
* "@type": "type.googleapis.com/google.protobuf.Duration",
90+
* "value": "1.212s"
91+
* }
92+
*
93+
* @external "google.protobuf.Any"
94+
* @property {string} typeUrl
95+
* A URL/resource name whose content describes the type of the
96+
* serialized protocol buffer message.
97+
*
98+
* For URLs which use the scheme `http`, `https`, or no scheme, the
99+
* following restrictions and interpretations apply:
100+
*
101+
* * If no scheme is provided, `https` is assumed.
102+
* * The last segment of the URL's path must represent the fully
103+
* qualified name of the type (as in `path/google.protobuf.Duration`).
104+
* The name should be in a canonical form (e.g., leading "." is
105+
* not accepted).
106+
* * An HTTP GET on the URL must yield a {@link google.protobuf.Type}
107+
* value in binary format, or produce an error.
108+
* * Applications are allowed to cache lookup results based on the
109+
* URL, or have them precompiled into a binary to avoid any
110+
* lookup. Therefore, binary compatibility needs to be preserved
111+
* on changes to types. (Use versioned type names to manage
112+
* breaking changes.)
113+
*
114+
* Schemes other than `http`, `https` (or the empty scheme) might be
115+
* used with implementation specific semantics.
116+
*
117+
* @property {string} value
118+
* Must be a valid serialized protocol buffer of the above specified type.
119+
*
120+
* @see [google.protobuf.Any definition in proto format]{@link https://github.com/google/protobuf/blob/master/src/google/protobuf/any.proto}
121+
*/

0 commit comments

Comments
 (0)