Skip to content

Commit

Permalink
revert adding v1beta1 (#114)
Browse files Browse the repository at this point in the history
  • Loading branch information
crwilcox authored Jul 12, 2018
1 parent f60d9b1 commit a68e369
Show file tree
Hide file tree
Showing 11 changed files with 8 additions and 1,691 deletions.
8 changes: 4 additions & 4 deletions packages/google-cloud-node/smoke-test/speech_smoke_test.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,16 @@ describe('SpeechSmokeTest', () => {
it('successfully makes a call to the service', done => {
const speech = require('../src');

var client = new speech.v1beta1.SpeechClient({
var client = new speech.v1p1beta1.SpeechClient({
// optional auth parameters.
});

var languageCode = 'en-US';
var sampleRate = 44100;
var sampleRateHertz = 44100;
var encoding = 'FLAC';
var config = {
languageCode: languageCode,
sampleRate: sampleRate,
sampleRateHertz: sampleRateHertz,
encoding: encoding,
};
var uri = 'gs://gapic-toolkit/hello.flac';
Expand All @@ -38,7 +38,7 @@ describe('SpeechSmokeTest', () => {
config: config,
audio: audio,
};
client.syncRecognize(request)
client.recognize(request)
.then(responses => {
var response = responses[0];
console.log(response);
Expand Down
7 changes: 0 additions & 7 deletions packages/google-cloud-node/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,6 @@ const helpers = require('./helpers');
const gapic = Object.freeze({
v1: require('./v1'),
v1p1beta1: require('./v1p1beta1'),
v1beta1: require('./v1beta1'),
});

// Augment the SpeechClient objects with the helpers.
Expand Down Expand Up @@ -97,11 +96,5 @@ module.exports.v1 = gapic.v1;
*/
module.exports.v1p1beta1 = gapic.v1p1beta1;

/**
* @type {object}
* @property {constructor} SpeechClient Reference to {@link v1beta1.SpeechClient}.
*/
module.exports.v1beta1 = gapic.v1beta1;

// Alias `module.exports` as `module.exports.default`, for future-proofing.
module.exports.default = Object.assign({}, module.exports);

This file was deleted.

This file was deleted.

131 changes: 0 additions & 131 deletions packages/google-cloud-node/src/v1beta1/doc/google/protobuf/doc_any.js

This file was deleted.

Loading

0 comments on commit a68e369

Please sign in to comment.