Add x-goog-api-client support to HTTP1.1#1790
Conversation
|
Note the build will fail until the GAX change is released. |
| import com.google.auth.Credentials; | ||
| import com.google.auth.http.HttpCredentialsAdapter; | ||
| import com.google.auth.http.HttpTransportFactory; | ||
| import com.google.common.annotations.VisibleForTesting; |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| } | ||
|
|
||
| @VisibleForTesting | ||
| String xApiClientHeader() { |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| @VisibleForTesting | ||
| String xApiClientHeader() { | ||
| return String.format( | ||
| "gl-java/%s %s/%s gax/%s grpc/%s", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
| ServiceOptions.getGoogApiClientLibName(), | ||
| ServiceOptions.getLibraryVersion(), | ||
| GaxPropertiesProvider.getGaxVersion(), | ||
| GaxPropertiesProvider.getGrpcVersion()); |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Changes Unknown when pulling 6996c5a on shinfan:master into ** on GoogleCloudPlatform:master**. |
|
@garrettjonesgoogle PTAL. CI passed. |
|
LGTM, but @garrettjonesgoogle has final approval. |
|
|
||
| String getXGoogApiClientHeader() { | ||
| return String.format( | ||
| "gl-java/%s %s/%s gax/%s", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
Changes Unknown when pulling feead82 on shinfan:master into ** on GoogleCloudPlatform:master**. |
| <google.auth.version>0.6.0</google.auth.version> | ||
| <grpc.version>1.0.3</grpc.version> | ||
| <gax.version>0.6.0</gax.version> | ||
| <gax.version>0.6.1</gax.version> |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
|
||
| String getXGoogApiClientHeader() { | ||
| return String.format( | ||
| "gl-java/%s %s/%s", |
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
This comment was marked as spam.
This comment was marked as spam.
Sorry, something went wrong.
|
LGTM |
#1790) * chore: Update generation configuration at Wed Apr 23 17:13:26 UTC 2025 * chore: generate libraries at Wed Apr 23 17:14:00 UTC 2025 * chore: Update generation configuration at Thu Apr 24 02:28:57 UTC 2025 * chore: manually update generation configuration * chore: generate libraries at Thu Apr 24 14:52:36 UTC 2025 * chore: update libraries bom version to the latest * chore: generate libraries at Thu Apr 24 14:58:18 UTC 2025 * chore: remove old kokoro jobs --------- Co-authored-by: Diego Marquez <[email protected]>
* docs: Update README with X.509 feature details. * Address the review comments
googleapis#1790) * chore: Update generation configuration at Wed Apr 23 17:13:26 UTC 2025 * chore: generate libraries at Wed Apr 23 17:14:00 UTC 2025 * chore: Update generation configuration at Thu Apr 24 02:28:57 UTC 2025 * chore: manually update generation configuration * chore: generate libraries at Thu Apr 24 14:52:36 UTC 2025 * chore: update libraries bom version to the latest * chore: generate libraries at Thu Apr 24 14:58:18 UTC 2025 * chore: remove old kokoro jobs --------- Co-authored-by: Diego Marquez <[email protected]>
* docs: Update README with X.509 feature details. * Address the review comments
…es/java_library/.kokoro (#1885) (#1790) Source-Link: googleapis/synthtool@e4a9d44 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
…es/java_library/.kokoro (#1885) (#1790) Source-Link: googleapis/synthtool@e4a9d44 Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:4875b2142cb4325542ba4f3175a81921c4b2b8256db012b220e3ca9637b34154 Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
* firestore sample for multiple inequality * fix typo * format code * change samples to be in own file * Create maven.yml * Delete .github/workflows/maven.yml * change query to lowercase to pass test case * fix checkstyle lint error * update copyright dates
This PR depends on the GAX change: googleapis/gax-java#250
cc/ @bjwatson