Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Re-generate library using /synth.py #303

Merged
merged 1 commit into from
Sep 14, 2018
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
64 changes: 32 additions & 32 deletions src/v2/bigtable_client.js
Original file line number Diff line number Diff line change
Expand Up @@ -71,13 +71,13 @@ class BigtableClient {
// Create a `gaxGrpc` object, with any grpc-specific options
// sent to the client.
opts.scopes = this.constructor.scopes;
var gaxGrpc = new gax.GrpcClient(opts);
const gaxGrpc = new gax.GrpcClient(opts);

// Save the auth object to the client, for use by other methods.
this.auth = gaxGrpc.auth;

// Determine the client header string.
var clientHeader = [
const clientHeader = [
`gl-node/${process.version}`,
`grpc/${gaxGrpc.grpcVersion}`,
`gax/${gax.version}`,
Expand All @@ -88,7 +88,7 @@ class BigtableClient {
}

// Load the applicable protos.
var protos = merge(
const protos = merge(
{},
gaxGrpc.loadProto(
path.join(__dirname, '..', '..', 'protos'),
Expand All @@ -114,7 +114,7 @@ class BigtableClient {
};

// Put together the default options sent with requests.
var defaults = gaxGrpc.constructSettings(
const defaults = gaxGrpc.constructSettings(
'google.bigtable.v2.Bigtable',
gapicConfig,
opts.clientConfig,
Expand All @@ -128,14 +128,14 @@ class BigtableClient {

// Put together the "service stub" for
// google.bigtable.v2.Bigtable.
var bigtableStub = gaxGrpc.createStub(
const bigtableStub = gaxGrpc.createStub(
protos.google.bigtable.v2.Bigtable,
opts
);

// Iterate over each of the methods that the service provides
// and create an API call method for each.
var bigtableStubMethods = [
const bigtableStubMethods = [
'readRows',
'sampleRowKeys',
'mutateRow',
Expand All @@ -148,7 +148,7 @@ class BigtableClient {
bigtableStub.then(
stub =>
function() {
var args = Array.prototype.slice.call(arguments, 0);
const args = Array.prototype.slice.call(arguments, 0);
return stub[methodName].apply(stub, args);
}
),
Expand Down Expand Up @@ -238,11 +238,11 @@ class BigtableClient {
*
* const bigtable = require('@google-cloud/bigtable');
*
* var client = new bigtable.v2.BigtableClient({
* const client = new bigtable.v2.BigtableClient({
* // optional auth parameters.
* });
*
* var formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* const formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* client.readRows({tableName: formattedTableName}).on('data', response => {
* // doThingsWith(response)
* });
Expand Down Expand Up @@ -285,11 +285,11 @@ class BigtableClient {
*
* const bigtable = require('@google-cloud/bigtable');
*
* var client = new bigtable.v2.BigtableClient({
* const client = new bigtable.v2.BigtableClient({
* // optional auth parameters.
* });
*
* var formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* const formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* client.sampleRowKeys({tableName: formattedTableName}).on('data', response => {
* // doThingsWith(response)
* });
Expand Down Expand Up @@ -343,21 +343,21 @@ class BigtableClient {
*
* const bigtable = require('@google-cloud/bigtable');
*
* var client = new bigtable.v2.BigtableClient({
* const client = new bigtable.v2.BigtableClient({
* // optional auth parameters.
* });
*
* var formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* var rowKey = '';
* var mutations = [];
* var request = {
* const formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* const rowKey = '';
* const mutations = [];
* const request = {
* tableName: formattedTableName,
* rowKey: rowKey,
* mutations: mutations,
* };
* client.mutateRow(request)
* .then(responses => {
* var response = responses[0];
* const response = responses[0];
* // doThingsWith(response)
* })
* .catch(err => {
Expand Down Expand Up @@ -411,13 +411,13 @@ class BigtableClient {
*
* const bigtable = require('@google-cloud/bigtable');
*
* var client = new bigtable.v2.BigtableClient({
* const client = new bigtable.v2.BigtableClient({
* // optional auth parameters.
* });
*
* var formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* var entries = [];
* var request = {
* const formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* const entries = [];
* const request = {
* tableName: formattedTableName,
* entries: entries,
* };
Expand Down Expand Up @@ -491,19 +491,19 @@ class BigtableClient {
*
* const bigtable = require('@google-cloud/bigtable');
*
* var client = new bigtable.v2.BigtableClient({
* const client = new bigtable.v2.BigtableClient({
* // optional auth parameters.
* });
*
* var formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* var rowKey = '';
* var request = {
* const formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* const rowKey = '';
* const request = {
* tableName: formattedTableName,
* rowKey: rowKey,
* };
* client.checkAndMutateRow(request)
* .then(responses => {
* var response = responses[0];
* const response = responses[0];
* // doThingsWith(response)
* })
* .catch(err => {
Expand Down Expand Up @@ -567,21 +567,21 @@ class BigtableClient {
*
* const bigtable = require('@google-cloud/bigtable');
*
* var client = new bigtable.v2.BigtableClient({
* const client = new bigtable.v2.BigtableClient({
* // optional auth parameters.
* });
*
* var formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* var rowKey = '';
* var rules = [];
* var request = {
* const formattedTableName = client.tablePath('[PROJECT]', '[INSTANCE]', '[TABLE]');
* const rowKey = '';
* const rules = [];
* const request = {
* tableName: formattedTableName,
* rowKey: rowKey,
* rules: rules,
* };
* client.readModifyWriteRow(request)
* .then(responses => {
* var response = responses[0];
* const response = responses[0];
* // doThingsWith(response)
* })
* .catch(err => {
Expand Down
24 changes: 12 additions & 12 deletions src/v2/doc/google/bigtable/v2/doc_bigtable.js
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.ReadRowsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var ReadRowsRequest = {
const ReadRowsRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -69,7 +69,7 @@ var ReadRowsRequest = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.ReadRowsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var ReadRowsResponse = {
const ReadRowsResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.

/**
Expand Down Expand Up @@ -162,7 +162,7 @@ var ReadRowsResponse = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.SampleRowKeysRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var SampleRowKeysRequest = {
const SampleRowKeysRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -188,7 +188,7 @@ var SampleRowKeysRequest = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.SampleRowKeysResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var SampleRowKeysResponse = {
const SampleRowKeysResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand Down Expand Up @@ -218,7 +218,7 @@ var SampleRowKeysResponse = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.MutateRowRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var MutateRowRequest = {
const MutateRowRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -228,7 +228,7 @@ var MutateRowRequest = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.MutateRowResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var MutateRowResponse = {
const MutateRowResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -255,7 +255,7 @@ var MutateRowResponse = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.MutateRowsRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var MutateRowsRequest = {
const MutateRowsRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.

/**
Expand Down Expand Up @@ -291,7 +291,7 @@ var MutateRowsRequest = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.MutateRowsResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var MutateRowsResponse = {
const MutateRowsResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.

/**
Expand Down Expand Up @@ -362,7 +362,7 @@ var MutateRowsResponse = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.CheckAndMutateRowRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var CheckAndMutateRowRequest = {
const CheckAndMutateRowRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -377,7 +377,7 @@ var CheckAndMutateRowRequest = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.CheckAndMutateRowResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var CheckAndMutateRowResponse = {
const CheckAndMutateRowResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand Down Expand Up @@ -408,7 +408,7 @@ var CheckAndMutateRowResponse = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.ReadModifyWriteRowRequest definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var ReadModifyWriteRowRequest = {
const ReadModifyWriteRowRequest = {
// This is for documentation. Actual contents will be loaded by gRPC.
};

Expand All @@ -424,6 +424,6 @@ var ReadModifyWriteRowRequest = {
* @memberof google.bigtable.v2
* @see [google.bigtable.v2.ReadModifyWriteRowResponse definition in proto format]{@link https://github.com/googleapis/googleapis/blob/master/google/bigtable/v2/bigtable.proto}
*/
var ReadModifyWriteRowResponse = {
const ReadModifyWriteRowResponse = {
// This is for documentation. Actual contents will be loaded by gRPC.
};
Loading