Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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