Skip to content

Make Speech client use autogen layer#1631

Merged
stephenplusplus merged 3 commits intogoogleapis:masterfrom
jmdobry:gax-speech
Sep 28, 2016
Merged

Make Speech client use autogen layer#1631
stephenplusplus merged 3 commits intogoogleapis:masterfrom
jmdobry:gax-speech

Conversation

@jmdobry
Copy link
Copy Markdown
Contributor

@jmdobry jmdobry commented Sep 26, 2016

My initial attempt at using the autogen layer in the handwritten layer. I have a concern:

It would appear that gax-nodejs does not translate camel case option names into the snake case names defined the proto. Where sampleRate worked before, thy tests for recognize and createRecognitionStream started failing until I switched it to sample_rate.

Other than that it seems to work fine.

I found some other gax-nodejs usability issues with pagination that don't apply here.

@googlebot googlebot added the cla: yes This human has signed the Contributor License Agreement. label Sep 26, 2016
@stephenplusplus stephenplusplus added the api: speech Issues related to the Speech-to-Text API. label Sep 26, 2016
@stephenplusplus
Copy link
Copy Markdown
Contributor

stephenplusplus commented Sep 26, 2016

// @jmuk

Is it possible to update gax-nodejs to expect camelcase args instead of snake? JS convention is generally camelcase. These are the options we had to provide to grpc to enable this: https://github.com/GoogleCloudPlatform/google-cloud-node/blob/95881d2a83904be5f2e4ebc24ee93369db212ac4/packages/common/src/grpc-service.js#L755

};

common.GrpcService.call(this, config, options);
this.api = new v1beta1(options).speechApi();

This comment was marked as spam.

This comment was marked as spam.

};

common.GrpcService.call(this, config, options);
this.api = {

This comment was marked as spam.

This comment was marked as spam.


common.GrpcService.call(this, config, options);
this.api = {
speechApi: v1beta1(options).speechApi()

This comment was marked as spam.

This comment was marked as spam.

This comment was marked as spam.

@stephenplusplus
Copy link
Copy Markdown
Contributor

Just adding the don't merge while we wait to see if we can stick to 🐫 💼 .

@stephenplusplus
Copy link
Copy Markdown
Contributor

I found some other gax-nodejs usability issues with pagination that don't apply here.

Anything to call out here, or are you going to file something somewhere else?

@jmdobry
Copy link
Copy Markdown
Contributor Author

jmdobry commented Sep 26, 2016

Regarding camel case, it looks like gax-nodejs might need to be updated to output code that passes { convertFieldsToCamelCase: true } here: https://github.com/GoogleCloudPlatform/google-cloud-node/blob/master/packages/speech/src/v1beta1/speech_api.js#L220

Regarding pagination, will file elsewhere.

@stephenplusplus
Copy link
Copy Markdown
Contributor

There's a new release of gax out (0.7.0) which camelCases and upgrades to gRPC@1.0. I believe we're now just waiting on the API files to be generated.

@jmdobry
Copy link
Copy Markdown
Contributor Author

jmdobry commented Sep 28, 2016

I'll wait for that PR to be merged then.

@stephenplusplus
Copy link
Copy Markdown
Contributor

The PR with the re-generated files has been merged.

};

self.request(protoOpts, reqOpts, function(err, apiResponse) {
self.api.Speech.syncRecognize(config, foundFile, function(err, apiResponse) {

This comment was marked as spam.

This comment was marked as spam.

@jmdobry
Copy link
Copy Markdown
Contributor Author

jmdobry commented Sep 28, 2016

Updated

@googlebot googlebot added cla: no This human has *not* signed the Contributor License Agreement. and removed cla: yes This human has signed the Contributor License Agreement. labels Sep 28, 2016
@stephenplusplus stephenplusplus added cla: yes This human has signed the Contributor License Agreement. and removed don't merge cla: no This human has *not* signed the Contributor License Agreement. labels Sep 28, 2016
@stephenplusplus stephenplusplus merged commit 0f8d832 into googleapis:master Sep 28, 2016
@jmdobry jmdobry deleted the gax-speech branch September 28, 2016 17:36
@coveralls
Copy link
Copy Markdown

Coverage Status

Coverage remained the same at 100.0% when pulling 216b575 on jmdobry:gax-speech into 96b845b on GoogleCloudPlatform:master.

sofisl pushed a commit that referenced this pull request Jan 24, 2023
sofisl pushed a commit that referenced this pull request Jan 25, 2023
miguelvelezsa pushed a commit that referenced this pull request Jul 23, 2025
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [jackspeak](https://togithub.com/isaacs/jackspeak) | [`3.4.0` -> `3.4.3`](https://renovatebot.com/diffs/npm/jackspeak/3.4.0/3.4.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/jackspeak/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/jackspeak/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/jackspeak/3.4.0/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/jackspeak/3.4.0/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>isaacs/jackspeak (jackspeak)</summary>

### [`v3.4.3`](https://togithub.com/isaacs/jackspeak/compare/v3.4.2...v3.4.3)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.2...v3.4.3)

### [`v3.4.2`](https://togithub.com/isaacs/jackspeak/compare/v3.4.1...v3.4.2)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.1...v3.4.2)

### [`v3.4.1`](https://togithub.com/isaacs/jackspeak/compare/v3.4.0...v3.4.1)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.0...v3.4.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gax-nodejs).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
sofisl pushed a commit that referenced this pull request Mar 17, 2026
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [jackspeak](https://togithub.com/isaacs/jackspeak) | [`3.4.0` -> `3.4.3`](https://renovatebot.com/diffs/npm/jackspeak/3.4.0/3.4.3) | [![age](https://developer.mend.io/api/mc/badges/age/npm/jackspeak/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/jackspeak/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/jackspeak/3.4.0/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/jackspeak/3.4.0/3.4.3?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>isaacs/jackspeak (jackspeak)</summary>

### [`v3.4.3`](https://togithub.com/isaacs/jackspeak/compare/v3.4.2...v3.4.3)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.2...v3.4.3)

### [`v3.4.2`](https://togithub.com/isaacs/jackspeak/compare/v3.4.1...v3.4.2)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.1...v3.4.2)

### [`v3.4.1`](https://togithub.com/isaacs/jackspeak/compare/v3.4.0...v3.4.1)

[Compare Source](https://togithub.com/isaacs/jackspeak/compare/v3.4.0...v3.4.1)

</details>

---

### Configuration

📅 **Schedule**: Branch creation - "after 9am and before 3pm" (UTC), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View repository job log [here](https://developer.mend.io/github/googleapis/gax-nodejs).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MjUuMSIsInVwZGF0ZWRJblZlciI6IjM3LjQyNS4xIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
sofisl pushed a commit that referenced this pull request Mar 17, 2026
[![Mend Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [mocha](https://mochajs.org/) ([source](https://togithub.com/mochajs/mocha)) | [`^10.6.0` -> `^10.7.0`](https://renovatebot.com/diffs/npm/mocha/10.6.0/10.7.0) | [![age](https://developer.mend.io/api/mc/badges/age/npm/mocha/10.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/npm/mocha/10.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/npm/mocha/10.6.0/10.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/npm/mocha/10.6.0/10.7.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) |

---

### Release Notes

<details>
<summary>mochajs/mocha (mocha)</summary>

### [`v10.7.0`](https://togithub.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1070--2024-07-20)

[Compare Source](https://togithub.com/mochajs/mocha/compare/v10.6.1...v10.7.0)

##### 🎉 Enhancements

-   [#&#8203;4771](https://togithub.com/mochajs/mocha/pull/4771) feat: add option to not fail on failing test suite ([**@&#8203;ilgonmic**](https://togithub.com/ilgonmic))

### [`v10.6.1`](https://togithub.com/mochajs/mocha/blob/HEAD/CHANGELOG.md#1061--2024-07-20)

[Compare Source](https://togithub.com/mochajs/mocha/compare/v10.6.0...v10.6.1)

##### 🐛 Fixes

-   [#&#8203;3825](https://togithub.com/mochajs/mocha/pull/3825) fix: do not exit when only unref'd timer is present in test code ([**@&#8203;boneskull**](https://togithub.com/boneskull))
-   [#&#8203;5040](https://togithub.com/mochajs/mocha/pull/5040) fix: support canonical module ([**@&#8203;JacobLey**](https://togithub.com/JacobLey))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR was generated by [Mend Renovate](https://www.mend.io/free-developer-tools/renovate/). View the [repository job log](https://developer.mend.io/github/googleapis/gapic-generator-typescript).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy40MzEuNCIsInVwZGF0ZWRJblZlciI6IjM3LjQzOC4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6W119-->
thiyaguk09 pushed a commit to thiyaguk09/google-cloud-node-fork that referenced this pull request Mar 18, 2026
GautamSharda pushed a commit that referenced this pull request Mar 23, 2026
…ection (#1631)

## Description

This PR adds source code changes with plumbing so that client side metric collection can be done for unary calls. No client side metrics are actually collected yet for readModifyWriteRow or checkAndMutate calls, but future PRs will use this plumbing to collect metrics for those calls. A test is provided that makes a fake method on the table to demonstrate how a method would collect these metrics to serve as an example.

## Impact

Doesn't change the way the client library works. Just provides support for when we open a PR that collects client side metrics for unary calls.

## Testing

A unit test is created that adds a fake method to a table that does a basic unary readModifyWriteRow call. It ensures that the metrics make it to the test metrics handler correctly.

## Additional Information

**Changes:**

`src/interceptor.ts`: This file contains code for attaching interceptors to a call that will call the correct metrics collector methods when data arrives

`src/client-side-metrics/operation-metrics-collector.ts`: The types are cleaned up in this file. None of the functionality has changed in this file

`system-test/read-modify-write-row-interceptors.ts`: This adds a test that ensures the plumbing for collecting metadata trailers and headers works as intended for unary calls.
GautamSharda pushed a commit that referenced this pull request Mar 25, 2026
…ection (#1631)

## Description

This PR adds source code changes with plumbing so that client side metric collection can be done for unary calls. No client side metrics are actually collected yet for readModifyWriteRow or checkAndMutate calls, but future PRs will use this plumbing to collect metrics for those calls. A test is provided that makes a fake method on the table to demonstrate how a method would collect these metrics to serve as an example.

## Impact

Doesn't change the way the client library works. Just provides support for when we open a PR that collects client side metrics for unary calls.

## Testing

A unit test is created that adds a fake method to a table that does a basic unary readModifyWriteRow call. It ensures that the metrics make it to the test metrics handler correctly.

## Additional Information

**Changes:**

`src/interceptor.ts`: This file contains code for attaching interceptors to a call that will call the correct metrics collector methods when data arrives

`src/client-side-metrics/operation-metrics-collector.ts`: The types are cleaned up in this file. None of the functionality has changed in this file

`system-test/read-modify-write-row-interceptors.ts`: This adds a test that ensures the plumbing for collecting metadata trailers and headers works as intended for unary calls.
shivanee-p pushed a commit that referenced this pull request Mar 27, 2026
…ection (#1631)

## Description

This PR adds source code changes with plumbing so that client side metric collection can be done for unary calls. No client side metrics are actually collected yet for readModifyWriteRow or checkAndMutate calls, but future PRs will use this plumbing to collect metrics for those calls. A test is provided that makes a fake method on the table to demonstrate how a method would collect these metrics to serve as an example.

## Impact

Doesn't change the way the client library works. Just provides support for when we open a PR that collects client side metrics for unary calls.

## Testing

A unit test is created that adds a fake method to a table that does a basic unary readModifyWriteRow call. It ensures that the metrics make it to the test metrics handler correctly.

## Additional Information

**Changes:**

`src/interceptor.ts`: This file contains code for attaching interceptors to a call that will call the correct metrics collector methods when data arrives

`src/client-side-metrics/operation-metrics-collector.ts`: The types are cleaned up in this file. None of the functionality has changed in this file

`system-test/read-modify-write-row-interceptors.ts`: This adds a test that ensures the plumbing for collecting metadata trailers and headers works as intended for unary calls.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

api: speech Issues related to the Speech-to-Text API. cla: yes This human has signed the Contributor License Agreement.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants