Skip to content

Commit e48d2f5

Browse files
committed
Generate gapic client for language v1beta2
1 parent d153530 commit e48d2f5

File tree

5 files changed

+526
-7
lines changed

5 files changed

+526
-7
lines changed

packages/language/src/v1/language_service_client.js

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
/*
2-
* Copyright 2016 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,
@@ -35,7 +35,7 @@ var SERVICE_ADDRESS = 'language.googleapis.com';
3535

3636
var DEFAULT_SERVICE_PORT = 443;
3737

38-
var CODE_GEN_NAME_VERSION = 'gapic/0.1.0';
38+
var CODE_GEN_NAME_VERSION = 'gapic/0.7.1';
3939

4040
/**
4141
* The scopes needed to make gRPC calls to all of the methods defined in
@@ -111,9 +111,10 @@ function LanguageServiceClient(gaxGrpc, grpcClients, opts) {
111111
});
112112
}
113113

114+
114115
/**
115116
* Get the project ID used by this class.
116-
* @aram {function(Error, string)} callback - the callback to be called with
117+
* @param {function(Error, string)} callback - the callback to be called with
117118
* the current project Id.
118119
*/
119120
LanguageServiceClient.prototype.getProjectId = function(callback) {
@@ -171,8 +172,9 @@ LanguageServiceClient.prototype.analyzeSentiment = function(request, options, ca
171172
};
172173

173174
/**
174-
* Finds named entities (currently finds proper names) in the text,
175-
* entity types, salience, mentions for each entity, and other properties.
175+
* Finds named entities (currently proper names and common nouns) in the text
176+
* along with entity types, salience, mentions for each entity, and
177+
* other properties.
176178
*
177179
* @param {Object} request
178180
* The request object that will be sent.

packages/language/src/v1/language_service_client_config.json

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,9 @@
66
"DEADLINE_EXCEEDED",
77
"UNAVAILABLE"
88
],
9-
"non_idempotent": []
9+
"non_idempotent": [
10+
"UNAVAILABLE"
11+
]
1012
},
1113
"retry_params": {
1214
"default": {
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
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.SERVICE_ADDRESS = languageServiceClient.SERVICE_ADDRESS;
31+
v1beta2.ALL_SCOPES = languageServiceClient.ALL_SCOPES;
32+
33+
module.exports = v1beta2;

0 commit comments

Comments
 (0)