googleapis / googleapis/google-cloud-java

Setting project for LanguageServiceClient / LanguageServiceSettings is not possible

Open
#10,025 0 comments 0 reactions 0 assignees View on GitHub
api: language priority: p3 type: feature request
Dominant language
Java
Stars
2.1k
Forks
1.2k
Avg merge
1d 23h
Merged PRs (30d)
154

Description

**Is your feature request related to a problem? Please describe.**
Using the `LanguageServiceClient` I would like to access another project then where my service account is located.

**Describe the solution you'd like**

* The `LanguageServiceClient` should respect `GOOGLE_CLOUD_PROJECT` environment variable
* The `LanguageServiceSettings` should have a `setProjectId()` similar to the `StorageOptions` etc.

**Describe alternatives you've considered**

Recreating the service account in the project seams to be the only workaround as per now.

**Additional context**

N/A

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.