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

Commit ace2700

Browse files
fix: update gapic-generator-java with mock service generation fixes (#1016)
- [ ] Regenerate this pull request now. PiperOrigin-RevId: 457524730 Source-Link: googleapis/googleapis@917e7f2 Source-Link: https://github.com/googleapis/googleapis-gen/commit/2497f9a069d3f6b2d6810d5a4e239cda1e7e5a39 Copy-Tag: eyJwIjoiLmdpdGh1Yi8uT3dsQm90LnlhbWwiLCJoIjoiMjQ5N2Y5YTA2OWQzZjZiMmQ2ODEwZDVhNGUyMzljZGExZTdlNWEzOSJ9
1 parent 883aa47 commit ace2700

File tree

22 files changed

+40
-74
lines changed

22 files changed

+40
-74
lines changed

google-cloud-translate/src/main/java/com/google/cloud/translate/v3/TranslationServiceClient.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
import com.google.api.core.ApiFuture;
2020
import com.google.api.core.ApiFutures;
21+
import com.google.api.core.BetaApi;
2122
import com.google.api.gax.core.BackgroundResource;
2223
import com.google.api.gax.httpjson.longrunning.OperationsClient;
2324
import com.google.api.gax.longrunning.OperationFuture;
@@ -193,6 +194,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
193194
* Returns the OperationsClient that can be used to query the status of a long-running operation
194195
* returned by another API method call.
195196
*/
197+
@BetaApi
196198
public final OperationsClient getHttpJsonOperationsClient() {
197199
return httpJsonOperationsClient;
198200
}

google-cloud-translate/src/main/java/com/google/cloud/translate/v3beta1/TranslationServiceClient.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,7 @@ public final com.google.longrunning.OperationsClient getOperationsClient() {
202202
* Returns the OperationsClient that can be used to query the status of a long-running operation
203203
* returned by another API method call.
204204
*/
205+
@BetaApi
205206
public final OperationsClient getHttpJsonOperationsClient() {
206207
return httpJsonOperationsClient;
207208
}

samples/snippets/generated/com/google/cloud/translate/v3/translationserviceclient/batchtranslatedocument/SyncBatchTranslateDocumentLocationnameStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.translate.v3.samples;
1818

19-
// [START
20-
// translation_v3_generated_translationserviceclient_batchtranslatedocument_locationnamestringliststringlistbatchdocumentinputconfigbatchdocumentoutputconfig_sync]
19+
// [START translation_v3_generated_translationserviceclient_batchtranslatedocument_locationnamestringliststringlistbatchdocumentinputconfigbatchdocumentoutputconfig_sync]
2120
import com.google.cloud.translate.v3.BatchDocumentInputConfig;
2221
import com.google.cloud.translate.v3.BatchDocumentOutputConfig;
2322
import com.google.cloud.translate.v3.BatchTranslateDocumentResponse;
@@ -52,5 +51,4 @@ public static void main(String[] args) throws Exception {
5251
}
5352
}
5453
}
55-
// [END
56-
// translation_v3_generated_translationserviceclient_batchtranslatedocument_locationnamestringliststringlistbatchdocumentinputconfigbatchdocumentoutputconfig_sync]
54+
// [END translation_v3_generated_translationserviceclient_batchtranslatedocument_locationnamestringliststringlistbatchdocumentinputconfigbatchdocumentoutputconfig_sync]

samples/snippets/generated/com/google/cloud/translate/v3/translationserviceclient/batchtranslatedocument/SyncBatchTranslateDocumentStringStringListstringListbatchdocumentinputconfigBatchdocumentoutputconfig.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.translate.v3.samples;
1818

19-
// [START
20-
// translation_v3_generated_translationserviceclient_batchtranslatedocument_stringstringliststringlistbatchdocumentinputconfigbatchdocumentoutputconfig_sync]
19+
// [START translation_v3_generated_translationserviceclient_batchtranslatedocument_stringstringliststringlistbatchdocumentinputconfigbatchdocumentoutputconfig_sync]
2120
import com.google.cloud.translate.v3.BatchDocumentInputConfig;
2221
import com.google.cloud.translate.v3.BatchDocumentOutputConfig;
2322
import com.google.cloud.translate.v3.BatchTranslateDocumentResponse;
@@ -52,5 +51,4 @@ public static void main(String[] args) throws Exception {
5251
}
5352
}
5453
}
55-
// [END
56-
// translation_v3_generated_translationserviceclient_batchtranslatedocument_stringstringliststringlistbatchdocumentinputconfigbatchdocumentoutputconfig_sync]
54+
// [END translation_v3_generated_translationserviceclient_batchtranslatedocument_stringstringliststringlistbatchdocumentinputconfigbatchdocumentoutputconfig_sync]

samples/snippets/generated/com/google/cloud/translate/v3/translationserviceclient/createglossary/SyncCreateGlossaryLocationnameGlossary.java

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.translate.v3.samples;
1818

19-
// [START
20-
// translation_v3_generated_translationserviceclient_createglossary_locationnameglossary_sync]
19+
// [START translation_v3_generated_translationserviceclient_createglossary_locationnameglossary_sync]
2120
import com.google.cloud.translate.v3.Glossary;
2221
import com.google.cloud.translate.v3.LocationName;
2322
import com.google.cloud.translate.v3.TranslationServiceClient;

samples/snippets/generated/com/google/cloud/translate/v3/translationserviceclient/detectlanguage/SyncDetectLanguageLocationnameStringStringString.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.translate.v3.samples;
1818

19-
// [START
20-
// translation_v3_generated_translationserviceclient_detectlanguage_locationnamestringstringstring_sync]
19+
// [START translation_v3_generated_translationserviceclient_detectlanguage_locationnamestringstringstring_sync]
2120
import com.google.cloud.translate.v3.DetectLanguageResponse;
2221
import com.google.cloud.translate.v3.LocationName;
2322
import com.google.cloud.translate.v3.TranslationServiceClient;
@@ -41,5 +40,4 @@ public static void syncDetectLanguageLocationnameStringStringString() throws Exc
4140
}
4241
}
4342
}
44-
// [END
45-
// translation_v3_generated_translationserviceclient_detectlanguage_locationnamestringstringstring_sync]
43+
// [END translation_v3_generated_translationserviceclient_detectlanguage_locationnamestringstringstring_sync]

samples/snippets/generated/com/google/cloud/translate/v3/translationserviceclient/detectlanguage/SyncDetectLanguageStringStringStringString.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.translate.v3.samples;
1818

19-
// [START
20-
// translation_v3_generated_translationserviceclient_detectlanguage_stringstringstringstring_sync]
19+
// [START translation_v3_generated_translationserviceclient_detectlanguage_stringstringstringstring_sync]
2120
import com.google.cloud.translate.v3.DetectLanguageResponse;
2221
import com.google.cloud.translate.v3.LocationName;
2322
import com.google.cloud.translate.v3.TranslationServiceClient;
@@ -41,5 +40,4 @@ public static void syncDetectLanguageStringStringStringString() throws Exception
4140
}
4241
}
4342
}
44-
// [END
45-
// translation_v3_generated_translationserviceclient_detectlanguage_stringstringstringstring_sync]
43+
// [END translation_v3_generated_translationserviceclient_detectlanguage_stringstringstringstring_sync]

samples/snippets/generated/com/google/cloud/translate/v3/translationserviceclient/getsupportedlanguages/SyncGetSupportedLanguagesLocationnameStringString.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.translate.v3.samples;
1818

19-
// [START
20-
// translation_v3_generated_translationserviceclient_getsupportedlanguages_locationnamestringstring_sync]
19+
// [START translation_v3_generated_translationserviceclient_getsupportedlanguages_locationnamestringstring_sync]
2120
import com.google.cloud.translate.v3.LocationName;
2221
import com.google.cloud.translate.v3.SupportedLanguages;
2322
import com.google.cloud.translate.v3.TranslationServiceClient;
@@ -40,5 +39,4 @@ public static void syncGetSupportedLanguagesLocationnameStringString() throws Ex
4039
}
4140
}
4241
}
43-
// [END
44-
// translation_v3_generated_translationserviceclient_getsupportedlanguages_locationnamestringstring_sync]
42+
// [END translation_v3_generated_translationserviceclient_getsupportedlanguages_locationnamestringstring_sync]

samples/snippets/generated/com/google/cloud/translate/v3/translationserviceclient/getsupportedlanguages/SyncGetSupportedLanguagesStringStringString.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.translate.v3.samples;
1818

19-
// [START
20-
// translation_v3_generated_translationserviceclient_getsupportedlanguages_stringstringstring_sync]
19+
// [START translation_v3_generated_translationserviceclient_getsupportedlanguages_stringstringstring_sync]
2120
import com.google.cloud.translate.v3.LocationName;
2221
import com.google.cloud.translate.v3.SupportedLanguages;
2322
import com.google.cloud.translate.v3.TranslationServiceClient;
@@ -40,5 +39,4 @@ public static void syncGetSupportedLanguagesStringStringString() throws Exceptio
4039
}
4140
}
4241
}
43-
// [END
44-
// translation_v3_generated_translationserviceclient_getsupportedlanguages_stringstringstring_sync]
42+
// [END translation_v3_generated_translationserviceclient_getsupportedlanguages_stringstringstring_sync]

samples/snippets/generated/com/google/cloud/translate/v3/translationserviceclient/translatetext/SyncTranslateTextLocationnameStringListstring.java

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,8 +16,7 @@
1616

1717
package com.google.cloud.translate.v3.samples;
1818

19-
// [START
20-
// translation_v3_generated_translationserviceclient_translatetext_locationnamestringliststring_sync]
19+
// [START translation_v3_generated_translationserviceclient_translatetext_locationnamestringliststring_sync]
2120
import com.google.cloud.translate.v3.LocationName;
2221
import com.google.cloud.translate.v3.TranslateTextResponse;
2322
import com.google.cloud.translate.v3.TranslationServiceClient;
@@ -42,5 +41,4 @@ public static void syncTranslateTextLocationnameStringListstring() throws Except
4241
}
4342
}
4443
}
45-
// [END
46-
// translation_v3_generated_translationserviceclient_translatetext_locationnamestringliststring_sync]
44+
// [END translation_v3_generated_translationserviceclient_translatetext_locationnamestringliststring_sync]

0 commit comments

Comments
 (0)