Skip to content

Commit e9fbf3f

Browse files
lukesneeringerstephenplusplus
authored andcommitted
Natural Language v1beta2 GAPIC. (#2188)
1 parent fbd9eb2 commit e9fbf3f

File tree

4 files changed

+518
-0
lines changed

4 files changed

+518
-0
lines changed

packages/google-cloud-language/src/index.js

+2
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,7 @@ var common = require('@google-cloud/common');
2424
var extend = require('extend');
2525
var is = require('is');
2626
var v1 = require('./v1');
27+
var v1beta2 = require('./v1beta2');
2728

2829
/**
2930
* @type {module:language/document}
@@ -543,3 +544,4 @@ common.util.promisifyAll(Language, {
543544

544545
module.exports = Language;
545546
module.exports.v1 = v1;
547+
module.exports.v1beta2 = v1beta2;
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
/*
2+
* Copyright 2016 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+
'use strict';
17+
18+
var languageServiceClient = require('./language_service_client');
19+
var gax = require('google-gax');
20+
var extend = require('extend');
21+
22+
function v1beta2(options) {
23+
options = extend({
24+
scopes: v1beta2.ALL_SCOPES
25+
}, options);
26+
var gaxGrpc = gax.grpc(options);
27+
return languageServiceClient(gaxGrpc);
28+
}
29+
30+
v1beta2.GAPIC_VERSION = '0.7.1';
31+
v1beta2.SERVICE_ADDRESS = languageServiceClient.SERVICE_ADDRESS;
32+
v1beta2.ALL_SCOPES = languageServiceClient.ALL_SCOPES;
33+
34+
module.exports = v1beta2;

0 commit comments

Comments
 (0)