8000 fix(Spring CodeGen): To only include options to set to rest transport when supported by zhumin8 · Pull Request #1078 · googleapis/sdk-platform-java · GitHub
[go: up one dir, main page]

Skip to content

fix(Spring CodeGen): To only include options to set to rest transport when supported #1078 10000

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

Merged
merged 11 commits into from
Nov 7, 2022

Conversation

zhumin8
Copy link
Contributor
@zhumin8 zhumin8 commented Nov 1, 2022

As per earlier discussions, defaultHttpJsonTransportProvider is only applicable when Transport.REST_GRPC (e.g. in case of java_vision). In this change:

  • if Transport.GRPC: do not provide property useRest to override TransportProvider, use default defaultTransportChannelProvider().
  • if Transport.REST_GRPC: by default, set useRest = false and use default settings same as above. But override to defaultHttpJsonTransportProvider when property useRest is set to true.
  • In both cases, keep TransportChannelProvider bean. This bean defaults to defaultTransportChannelProvider(), but allows advanced users to override in user application (e.g. to set a proxy)

@zhumin8 zhumin8 marked this pull request as ready for review November 1, 2022 16:47
@zhumin8 zhumin8 requested review from a team as code owners November 1, 2022 16:47
@zhumin8 zhumin8 added the spring pr that's related to spring code gen, intend to merge into autoconfig-gen-draft2 branch. label Nov 1, 2022
Copy link
Contributor
@emmileaf emmileaf left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Two minor comments, otherwise LGTM!

@sonarqubecloud
Copy link
sonarqubecloud bot commented Nov 3, 2022

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 3 Code Smells

100.0% 100.0% Coverage
0.0% 0.0% Duplication

@zhumin8 zhumin8 merged commit 5fb9091 into autoconfig-gen-draft2 Nov 7, 2022
@zhumin8 zhumin8 deleted the autoconfig-gen-draft2-transport branch November 7, 2022 22:20
diegomarquezp pushed a commit that referenced this pull request Nov 14, 2022
… when supported (#1078)

As per earlier discussions, `defaultHttpJsonTransportProvider` is only applicable when Transport.REST_GRPC (e.g. in case of [java_vision](https://github.com/googleapis/googleapis/blob/master/google/cloud/vision/v1/BUILD.bazel#L86)). In this change:
- if Transport.GRPC: do not provide property `useRest` to override TransportProvider, use default `defaultTransportChannelProvider()`.
- if Transport.REST_GRPC: by default, set `useRest = false` and use default settings same as above. But override to `defaultHttpJsonTransportProvider` when property `useRest` is set to `true`.
- In both cases, keep `TransportChannelProvider` bean. This bean defaults to `defaultTransportChannelProvider()`, but allows advanced users to override in user application (e.g. to [set a proxy](https://github.com/googleapis/google-cloud-java#configuring-a-proxy))
suztomo pushed a commit that referenced this pull request Mar 21, 2023
…1078)

* chore: Upgrade to later version of gcp-uploader and protobuf

* chore: Add secretstorage version

* chore: Use python 3.9.13

* chore: Unpin all python versions

* chore: Rerun pipcompile tool

* chore: Rerun pipcompile tool with --allow-unsafe

* chore: Add --require-hashes

* chore: Update requirements file

* chore: Remove --require-hashes

* chore: Print python version

* chore: Add new generated hashes for requirements.txt

* chore: Remove python version check in cloud build

* chore: Allow synthtool to update python dependencies

* chore: Add typing-extensions into requirements

* chore: Unpin docker requirements.in file

* chore: Add java synthtool validation

* chore: Add check to import java synthtool python package
Source-Link: googleapis/synthtool@91904bf
Post-Processor: gcr.io/cloud-devrel-public-resources/owlbot-java:latest@sha256:4566cf7fcd0eece77705330267b2b61a70165711c7829d049b60bc2f1bbcd74e

Co-authored-by: Owl Bot <gcf-owl-bot[bot]@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
spring pr that's related to spring code gen, intend to merge into autoconfig-gen-draft2 branch.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants
0