Skip to content
This repository was archived by the owner on Dec 15, 2023. It is now read-only.

Commit 3baccc5

Browse files
chore: release gapic-generator-java v1.0.12 (#560)
This PR was generated using Autosynth. 🌈 Synth log will be available here: https://source.cloud.google.com/results/invocations/6f6e5989-1d20-464b-9749-3a5ee5399650/targets - [ ] To automatically regenerate this PR, check this box. (May take up to 24 hours.) PiperOrigin-RevId: 378718217 Source-Link: googleapis/googleapis@08c4eeb
1 parent e1df9e3 commit 3baccc5

File tree

4 files changed

+26
-5
lines changed

4 files changed

+26
-5
lines changed

google-cloud-speech/src/main/java/com/google/cloud/speech/v1/stub/SpeechStubSettings.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -144,6 +144,11 @@ public static String getDefaultEndpoint() {
144144
return "speech.googleapis.com:443";
145145
}
146146

147+
/** Returns the default mTLS service endpoint. */
148+
public static String getDefaultMtlsEndpoint() {
149+
return "speech.mtls.googleapis.com:443";
150+
}
151+
147152
/** Returns the default service scopes. */
148153
public static List<String> getDefaultServiceScopes() {
149154
return DEFAULT_SERVICE_SCOPES;
@@ -291,6 +296,8 @@ private static Builder createDefault() {
291296
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
292297
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
293298
builder.setEndpoint(getDefaultEndpoint());
299+
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
300+
builder.setSwitchToMtlsEndpointAllowed(true);
294301

295302
return initDefaults(builder);
296303
}

google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/AdaptationStubSettings.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -306,6 +306,11 @@ public static String getDefaultEndpoint() {
306306
return "speech.googleapis.com:443";
307307
}
308308

309+
/** Returns the default mTLS service endpoint. */
310+
public static String getDefaultMtlsEndpoint() {
311+
return "speech.mtls.googleapis.com:443";
312+
}
313+
309314
/** Returns the default service scopes. */
310315
public static List<String> getDefaultServiceScopes() {
311316
return DEFAULT_SERVICE_SCOPES;
@@ -476,6 +481,8 @@ private static Builder createDefault() {
476481
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
477482
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
478483
builder.setEndpoint(getDefaultEndpoint());
484+
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
485+
builder.setSwitchToMtlsEndpointAllowed(true);
479486

480487
return initDefaults(builder);
481488
}

google-cloud-speech/src/main/java/com/google/cloud/speech/v1p1beta1/stub/SpeechStubSettings.java

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -145,6 +145,11 @@ public static String getDefaultEndpoint() {
145145
return "speech.googleapis.com:443";
146146
}
147147

148+
/** Returns the default mTLS service endpoint. */
149+
public static String getDefaultMtlsEndpoint() {
150+
return "speech.mtls.googleapis.com:443";
151+
}
152+
148153
/** Returns the default service scopes. */
149154
public static List<String> getDefaultServiceScopes() {
150155
return DEFAULT_SERVICE_SCOPES;
@@ -292,6 +297,8 @@ private static Builder createDefault() {
292297
builder.setCredentialsProvider(defaultCredentialsProviderBuilder().build());
293298
builder.setInternalHeaderProvider(defaultApiClientHeaderProviderBuilder().build());
294299
builder.setEndpoint(getDefaultEndpoint());
300+
builder.setMtlsEndpoint(getDefaultMtlsEndpoint());
301+
builder.setSwitchToMtlsEndpointAllowed(true);
295302

296303
return initDefaults(builder);
297304
}

synth.metadata

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,23 +4,23 @@
44
"git": {
55
"name": ".",
66
"remote": "https://github.com/googleapis/java-speech.git",
7-
"sha": "b9604e27756f2c84cbb184ee560d96e0644d57a4"
7+
"sha": "e1df9e3e5ed5208061171d52d8a7a1797af4219e"
88
}
99
},
1010
{
1111
"git": {
1212
"name": "googleapis",
1313
"remote": "https://github.com/googleapis/googleapis.git",
14-
"sha": "9e3105549a35520f215359065c11e8dce15e18af",
15-
"internalRef": "378266372"
14+
"sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902",
15+
"internalRef": "378718217"
1616
}
1717
},
1818
{
1919
"git": {
2020
"name": "googleapis",
2121
"remote": "https://github.com/googleapis/googleapis.git",
22-
"sha": "9e3105549a35520f215359065c11e8dce15e18af",
23-
"internalRef": "378266372"
22+
"sha": "08c4eeb531c01ad031134dca94b18e3f7dd35902",
23+
"internalRef": "378718217"
2424
}
2525
},
2626
{

0 commit comments

Comments
 (0)