Skip to content
Draft
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
26 changes: 0 additions & 26 deletions handwritten/bigtable/.OwlBot.yaml

This file was deleted.

7 changes: 0 additions & 7 deletions handwritten/bigtable/.eslintignore

This file was deleted.

3 changes: 0 additions & 3 deletions handwritten/bigtable/.eslintrc.json

This file was deleted.

6 changes: 0 additions & 6 deletions handwritten/bigtable/.prettierignore

This file was deleted.

3 changes: 2 additions & 1 deletion handwritten/bigtable/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
],
"scripts": {
"compile": "tsc -p . && cp -r proto* build/ && cp -r testproxy/proto* build/testproxy/",
"compile-protos": "compileProtos src && sh testproxy/compile-protos.sh",
"compile-protos": "sh testproxy/compile-protos.sh",
"predocs": "npm run compile",
"docs": "jsdoc -c .jsdoc.js",
"fix": "gts fix",
Expand All @@ -49,6 +49,7 @@
"precompile": "gts clean"
},
"dependencies": {
"@google-cloud/bigtable-api": "^0.2.0",
"@google-cloud/monitoring": "^5.0.1",
"@google-cloud/opentelemetry-cloud-monitoring-exporter": "^0.20.0",
"@google-cloud/opentelemetry-resource-util": "^2.4.0",
Expand Down
42,057 changes: 0 additions & 42,057 deletions handwritten/bigtable/protos/protos.d.ts

This file was deleted.

107,903 changes: 0 additions & 107,903 deletions handwritten/bigtable/protos/protos.js

This file was deleted.

10,191 changes: 0 additions & 10,191 deletions handwritten/bigtable/protos/protos.json

This file was deleted.

2 changes: 1 addition & 1 deletion handwritten/bigtable/src/admin/clients.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
// See the License for the specific language governing permissions and
// limitations under the License.

import {Bigtable} from '../';
import {Bigtable} from '..';
import {TableAdminClient} from './table';
import {InstanceAdminClient} from './instance';
import * as gax from 'google-gax';
Expand Down
3 changes: 2 additions & 1 deletion handwritten/bigtable/src/admin/gc-rule-builder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,8 @@
// limitations under the License.

import * as util from 'node:util';
import {google} from '../../protos/protos';
import {protos} from '@google-cloud/bigtable-api';
import google = protos.google;

export type IGcRule = google.bigtable.admin.v2.IGcRule;
export type IDuration = google.protobuf.IDuration;
Expand Down
13 changes: 9 additions & 4 deletions handwritten/bigtable/src/admin/table.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,14 @@
import {BigtableTableAdminClient} from './v2';
import {LROperation, CallOptions, ClientOptions} from 'google-gax';
import type * as gax from 'google-gax';
import * as fs from 'node:fs';

import {google} from '../../protos/protos';
import jsonProtos = require('../../protos/protos.json');
import {protos} from '@google-cloud/bigtable-api';
import google = protos.google;
import {getProtoPath} from '../utils/protos';

const JSON_PATH = getProtoPath('protos.json');
const JSON_PROTOS = JSON.parse(fs.readFileSync(JSON_PATH, 'utf-8'));

/**
* Service for creating, configuring, and deleting Cloud Bigtable tables.
Expand All @@ -39,7 +44,7 @@ export class TableAdminClient extends BigtableTableAdminClient {
) {
super(opts, gaxInstance);

const protoFilesRoot = this.pGaxModule.protobufFromJSON(jsonProtos);
const protoFilesRoot = this.pGaxModule.protobufFromJSON(JSON_PROTOS);

// This one isn't included since it's not a directly callable method on the proto.
const optimizeRestoredTableResponse = protoFilesRoot.lookup(
Expand All @@ -62,7 +67,7 @@ export class TableAdminClient extends BigtableTableAdminClient {

// We want to use the same gax module as the base class, but it's private.
private get pGaxModule() {
return this['_gaxModule'];
return this['_gaxModule'] as typeof gax;
}

// We want to use the same logger as the base class, but it's private.
Expand Down
Loading
Loading