GeezerVison is showing github.com (truncated) — pubsub: delete Subscriber.Builder::setCredentials by pongad · Pull Request #1975 · googleapis/google-cloud-java
Conversation
The credentials provided to this method is not used.
Currently the credentials should be set in the ChannelProvider.
Updates #1959.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
The credentials provided to this method is not used.
Currently the credentials should be set in the ChannelProvider.
Updates #1959.
|

Changes Unknown when pulling af98a13 on pongad:sub-cred into ** on GoogleCloudPlatform:master**.
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We should also remove the comment from Subscriber.java and Publisher.java that says "If no credentials are provided, the {@link Subscriber} will use application default credentials through {@link GoogleCredentials#getApplicationDefault}." since there is no way to change the credentials in these classes at this time.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@kamalaboulhosn There is actually a way to change credentials: by changing the ChannelProvider. I'm not sure how to best document this.
@garrettjonesgoogle Do we have a central doc somewhere detailing how to change credentials? We can create a .md file somewhere in the repo and link to it in docs. WDYT?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
@pongad could you nominate another person in our team to do this review?
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Nominating @vam-google since we were just talking about this 😆
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
import com.google.api.gax.grpc.ChannelProvider;
|
|
|
import com.google.api.gax.grpc.ExecutorProvider;
|
|
|
import com.google.api.gax.grpc.InstantiatingExecutorProvider;
|
|
|
import com.google.auth.Credentials;
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
|
.build();
|
|
|
|
|
|
SubscriptionName subscriptionName;
|
|
|
Optional<Credentials> credentials = Optional.absent();
|
This comment was marked as spam.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
chingor13
pushed a commit
that referenced
this pull request
Jan 22, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
lqiu96
pushed a commit
that referenced
this pull request
Mar 20, 2026
Co-authored-by: release-please[bot] <55107282+release-please[bot]@users.noreply.github.com>
suztomo
pushed a commit
to suztomo/google-cloud-java
that referenced
this pull request
Mar 23, 2026
Use the call stack the first time that a JDBC connection is being created to
determine whether the connection should use the sp-jdbc or sp-hib user-agent
token.
|