Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

Commit

Permalink
chore: release gapic-generator-java v1.0.12 (#457)
Browse files Browse the repository at this point in the history
Committer: @miraleung
PiperOrigin-RevId: 378718217

Source-Link: googleapis/googleapis@08c4eeb

Source-Link: googleapis/googleapis-gen@9a27cb4
  • Loading branch information
gcf-owl-bot[bot] committed Jun 15, 2021
1 parent 1f3a7b3 commit 67f40a9
Showing 1 changed file with 7 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,11 @@ public static String getDefaultEndpoint() {
return "accessapproval.googleapis.com:443";
}

/** Returns the default mTLS service endpoint. */
public static String getDefaultMtlsEndpoint() {
return "accessapproval.mtls.googleapis.com:443";
}

/** Returns the default service scopes. */
public static List<String> getDefaultServiceScopes() {
return DEFAULT_SERVICE_SCOPES;
Expand Down Expand Up @@ -430,6 +435,8 @@ private static Builder createDefault() {
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
builder.setEndpoint(getDefaultEndpoint());
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
builder.setSwitchToMtlsEndpointAllowed(true);

return initDefaults(builder);
}
Expand Down

0 comments on commit 67f40a9

Please sign in to comment.