Skip to content

Commit

Permalink
Nodejs GAPIC: vision v1
Browse files Browse the repository at this point in the history
  • Loading branch information
Luke Sneeringer committed Apr 17, 2017
1 parent a7d8030 commit cb19b54
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 6 deletions.
11 changes: 6 additions & 5 deletions packages/vision/src/v1/image_annotator_client.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
/*
* Copyright 2016 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,
Expand Down Expand Up @@ -35,7 +35,7 @@ var SERVICE_ADDRESS = 'vision.googleapis.com';

var DEFAULT_SERVICE_PORT = 443;

var CODE_GEN_NAME_VERSION = 'gapic/0.1.0';
var CODE_GEN_NAME_VERSION = 'gapic/0.7.1';

/**
* The scopes needed to make gRPC calls to all of the methods defined in
Expand Down Expand Up @@ -109,9 +109,10 @@ function ImageAnnotatorClient(gaxGrpc, grpcClients, opts) {
});
}


/**
* Get the project ID used by this class.
* @aram {function(Error, string)} callback - the callback to be called with
* @param {function(Error, string)} callback - the callback to be called with
* the current project Id.
*/
ImageAnnotatorClient.prototype.getProjectId = function(callback) {
Expand Down Expand Up @@ -196,4 +197,4 @@ function ImageAnnotatorClientBuilder(gaxGrpc) {
}
module.exports = ImageAnnotatorClientBuilder;
module.exports.SERVICE_ADDRESS = SERVICE_ADDRESS;
module.exports.ALL_SCOPES = ALL_SCOPES;
module.exports.ALL_SCOPES = ALL_SCOPES;
4 changes: 3 additions & 1 deletion packages/vision/src/v1/image_annotator_client_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
"DEADLINE_EXCEEDED",
"UNAVAILABLE"
],
"non_idempotent": []
"non_idempotent": [
"UNAVAILABLE"
]
},
"retry_params": {
"default": {
Expand Down
1 change: 1 addition & 0 deletions packages/vision/src/v1/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ function v1(options) {
return imageAnnotatorClient(gaxGrpc);
}

v1.GAPIC_VERSION = '0.7.1';
v1.SERVICE_ADDRESS = imageAnnotatorClient.SERVICE_ADDRESS;
v1.ALL_SCOPES = imageAnnotatorClient.ALL_SCOPES;

Expand Down

0 comments on commit cb19b54

Please sign in to comment.