gapic-generator-java
gapic-generator-java copied to clipboard
Generates GAPIC Java client libraries from protobufs.
Built on top of https://github.com/googleapis/sdk-platform-java/pull/3045 (needs to be merged first)
Following the flaky test reported in here: https://github.com/googleapis/sdk-platform-java/issues/2852, we discovered that some unit tests are creating a gRPC channel. Ideally, we would like to use a mock or stub instead...
Thank you for opening a Pull Request! Before submitting your PR, please read our [contributing guidelines](https://github.com/googleapis/gapic-generator-java/blob/main/CONTRIBUTING.md). There are a few things you can do to make sure it goes smoothly:...
When a client specifies a universe domain, the `host` value does not get automatically updated to match. For example, if I create a storage client: `Storage storage = StorageOptions.grpc().setUniverseDomain("my-universe-domain.com").build().getService();` Then...
Fixes: https://github.com/googleapis/sdk-platform-java/issues/1839 ## Changes When trying to generate default values for a message, the logic is updated for resource_references. - If the field has `resource_reference.type`, the generator will try to...
When a gRPC channel is created, the logic will invoke the `canUseDirectPath()` method: https://github.com/googleapis/sdk-platform-java/blob/af10a9ef26a5fd9f24fc5341d144b8ee00ff3d00/gax-java/gax-grpc/src/main/java/com/google/api/gax/grpc/InstantiatingGrpcChannelProvider.java#L476-L48. This call has a check to `isOnComputeEngine()` which will read a system file for GCE properties....
Once https://github.com/googleapis/sdk-platform-java/pull/1872 is in, it'll introduce java.time alternatives methods to the threetenbp methods. Update the generator to reference the java.time methods.
Experimenting the new Nullness annotations from https://jspecify.dev/ project. b/341380807 My memo: https://docs.google.com/document/d/1M7eg5XUk-cIezH_bt9n_ssAB2U5FZUnrnZi5MkY-Cx8